﻿:root {
    --brand-900: #0e3b43;
    --brand-700: #16616d;
    --brand-500: #26828f;
    --accent-500: #e89d2c;
    --accent-100: rgba(232, 157, 44, 0.14);
    --surface: #f4f7f8;
    --card: #ffffff;
    --border: #d5e0e3;
    --text: #12333b;
    --muted: #5d7880;
}

html {
    font-size: 14px;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(232, 157, 44, 0.18), transparent 22%),
        linear-gradient(180deg, #fbfcfc 0%, var(--surface) 100%);
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-900);
}

.nav-link {
    color: var(--text);
    font-weight: 500;
}

.btn-primary {
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-900);
    border-color: var(--brand-900);
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-500);
    font-weight: 700;
}

.hero-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(240,247,248,0.95));
}

.hero-metric-grid {
    display: grid;
    gap: 1rem;
}

.metric-card,
.summary-card,
.section-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card);
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(18, 51, 59, 0.06);
}

.metric-card span,
.summary-card span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.metric-card strong,
.summary-card strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 0.35rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.ro-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ro-meta div {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    background: #fff;
}

.ro-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table thead th {
    white-space: nowrap;
}

.print-shell {
    background: white;
    padding: 1.5rem;
}

.portal-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(22, 97, 109, 0.12);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(38, 130, 143, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(241,247,248,0.96));
    box-shadow: 0 22px 50px rgba(18, 51, 59, 0.08);
    overflow: hidden;
}

.portal-title {
    font-size: clamp(2.25rem, 4vw, 3.8rem);
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.portal-subtitle {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.portal-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.portal-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(22, 97, 109, 0.08);
    color: var(--brand-900);
    font-size: 0.85rem;
    font-weight: 600;
}

.portal-hero-panel {
    position: relative;
    display: flex;
    align-items: stretch;
}

.hero-panel-glow {
    position: absolute;
    inset: 0.75rem;
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(232, 157, 44, 0.15), rgba(38, 130, 143, 0.1));
    filter: blur(20px);
}

.hero-panel-card {
    position: relative;
    width: 100%;
    padding: 1.4rem;
    border: 1px solid rgba(22, 97, 109, 0.15);
    border-radius: 1.35rem;
    background: rgba(255,255,255,0.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.panel-label {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-100);
    color: #8a5600;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.hero-stat-tile {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,250,0.95));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-stat-tile:hover,
.feature-card:hover,
.band-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(18, 51, 59, 0.09);
}

.hero-stat-tile strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--brand-900);
}

.hero-stat-tile span {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-stat-tile.accent {
    background: linear-gradient(160deg, rgba(232,157,44,0.16), rgba(22,97,109,0.08));
}

.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 12px 30px rgba(18, 51, 59, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(22, 97, 109, 0.28);
}

.feature-card h2 {
    margin: 1rem 0 0.55rem;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(22,97,109,0.12), rgba(232,157,44,0.18));
    color: var(--brand-900);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.business-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,250,0.96));
    box-shadow: 0 14px 32px rgba(18, 51, 59, 0.06);
}

.business-band-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.band-item {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.band-item strong {
    display: block;
    margin-bottom: 0.45rem;
}

.band-item span {
    color: var(--muted);
    line-height: 1.5;
}

.login-shell {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    border: 1px solid rgba(22, 97, 109, 0.12);
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 24px 50px rgba(18, 51, 59, 0.1);
}

.login-side {
    padding: 2.2rem;
    background:
        radial-gradient(circle at top left, rgba(232,157,44,0.22), transparent 28%),
        linear-gradient(160deg, var(--brand-900), #174d57 58%, #1b6975 100%);
    color: #f7fbfb;
}

.login-side-title {
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.login-side-text {
    max-width: 42ch;
    color: rgba(247, 251, 251, 0.82);
    font-size: 1rem;
}

.login-side-grid {
    display: grid;
    gap: 0.9rem;
}

.login-side-item {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 1rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}

.login-side-item strong {
    display: block;
    margin-bottom: 0.35rem;
}

.login-side-item span {
    color: rgba(247, 251, 251, 0.78);
    line-height: 1.5;
}

.login-form-panel {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-title {
    font-size: 1.55rem;
    line-height: 1.25;
}

.login-input {
    border-radius: 0.95rem;
    border-color: var(--border);
    box-shadow: none;
}

.login-input:focus {
    border-color: rgba(22, 97, 109, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(22, 97, 109, 0.12);
}

.password-toggle {
    border-radius: 0 0.95rem 0.95rem 0;
    border-color: var(--border);
}

.login-submit {
    border-radius: 0.95rem;
    font-weight: 700;
    min-height: 52px;
}

.login-submit.is-loading {
    opacity: 0.9;
}

.alert.alert-danger:empty {
    display: none;
}

@media (max-width: 1199px) {
    .feature-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .business-band,
    .login-card,
    .portal-hero,
    .hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .business-band-grid {
        grid-template-columns: 1fr;
    }

    .hero-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .feature-card-grid,
    .hero-stat-grid {
        grid-template-columns: 1fr;
    }

    .portal-hero,
    .business-band,
    .login-card {
        padding: 1.1rem;
    }

    .portal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-side,
    .login-form-panel {
        padding: 1.4rem;
    }
}
.account-dropdown-toggle {
    border-radius: 999px;
    padding: 0.4rem 0.75rem 0.4rem 0.45rem;
}

.account-avatar {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(22, 97, 109, 0.12);
    color: var(--brand-900);
    font-weight: 800;
}

.account-dropdown .dropdown-menu {
    min-width: 220px;
    border-radius: 1rem;
    border-color: var(--border);
}

.account-panel {
    max-width: 100%;
}

.profile-kv {
    display: grid;
    gap: 0.9rem;
}

.profile-kv div {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: #fff;
}

.profile-kv span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.profile-kv strong {
    display: block;
    color: var(--brand-900);
}

.account-input {
    border-radius: 0.9rem 0 0 0.9rem;
}.historical-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,250,0.95));
}

.table .text-end {
    font-variant-numeric: tabular-nums;
}

.chart-shell {
    position: relative;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
}

.chart-shell-sm {
    height: 240px;
}

.chart-shell-md {
    height: 300px;
}

.chart-shell-lg {
    height: 360px;
}

.chart-shell canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.historical-panel {
    overflow: hidden;
}

@media (max-width: 767px) {
    .chart-shell-sm,
    .chart-shell-md,
    .chart-shell-lg {
        height: 260px;
    }
}

.indent-compose-shell {
    display: grid;
    gap: 1.25rem;
}

.indent-lock-banner {
    border-radius: 1rem;
    border-color: rgba(232, 157, 44, 0.35);
    background: rgba(232, 157, 44, 0.14);
}

.indent-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 180px)) minmax(280px, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.indent-summary-metric,
.indent-summary-datebox,
.indent-entry-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,250,0.96));
    box-shadow: 0 10px 28px rgba(18, 51, 59, 0.06);
}

.indent-summary-metric {
    padding: 1rem 1.1rem;
}

.indent-summary-metric span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.indent-summary-metric strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.2rem;
    color: var(--brand-900);
}

.indent-summary-datebox {
    padding: 1rem 1.1rem;
}

.indent-date-input,
.indent-number-input,
.indent-remarks-input {
    border-radius: 0.85rem;
    border-color: var(--border);
}

.indent-number-input {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.indent-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.indent-entry-card {
    padding: 1.15rem 1.25rem;
}

.indent-section-header {
    margin-bottom: 1rem;
}

.indent-field-grid {
    display: grid;
    gap: 1rem;
}

.indent-field-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.indent-field-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.indent-field label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.indent-remarks-input {
    min-height: 132px;
    resize: vertical;
}

.indent-submit-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(244,247,248,0.9);
}

@media (max-width: 1199px) {
    .indent-summary-strip,
    .indent-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .indent-summary-strip,
    .indent-entry-grid,
    .indent-field-grid-4,
    .indent-field-grid-2 {
        grid-template-columns: 1fr;
    }

    .indent-submit-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

.indent-page-title {
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
}

.indent-page-subtitle {
    max-width: 72ch;
    line-height: 1.6;
}

.indent-master-card {
    padding: 1.35rem 1.45rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,250,0.98));
    box-shadow: 0 18px 36px rgba(18, 51, 59, 0.06);
}

.indent-summary-strip {
    gap: 1.1rem;
}

.indent-summary-metric,
.indent-summary-datebox,
.indent-entry-card {
    border: 1px solid rgba(17, 57, 65, 0.09);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,250,250,0.97));
    box-shadow: 0 18px 34px rgba(18, 51, 59, 0.05);
}

.indent-summary-metric {
    padding: 1.15rem 1.2rem;
}

.indent-summary-metric.accent {
    background: linear-gradient(160deg, rgba(22,97,109,0.12), rgba(232,157,44,0.18));
    border-color: rgba(22,97,109,0.18);
}

.indent-summary-metric span {
    font-size: 0.74rem;
    font-weight: 700;
}

.indent-summary-metric strong {
    margin-top: 0.45rem;
    font-size: 1.3rem;
}

.indent-summary-datebox {
    padding: 1.15rem 1.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,247,248,0.96));
}

.indent-date-input,
.indent-number-input,
.indent-remarks-input {
    min-height: 50px;
    border-radius: 0.95rem;
    border-color: rgba(17, 57, 65, 0.12);
    box-shadow: inset 0 1px 2px rgba(18, 51, 59, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.indent-date-input:focus,
.indent-number-input:focus,
.indent-remarks-input:focus {
    border-color: rgba(22, 97, 109, 0.45);
    box-shadow: 0 0 0 0.28rem rgba(22, 97, 109, 0.1);
}

.indent-number-input::placeholder,
.indent-remarks-input::placeholder {
    color: #91a4aa;
}

.indent-entry-grid {
    gap: 1.15rem;
}

.indent-entry-card {
    position: relative;
    padding: 1.35rem 1.35rem 1.25rem;
    overflow: hidden;
}

.indent-entry-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(22,97,109,0.8), rgba(232,157,44,0.72));
    opacity: 0.9;
}

.indent-entry-card-featured {
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(239,247,248,0.96));
}

.indent-entry-card-locked {
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,244,237,0.96));
}

.indent-card-title {
    color: var(--brand-900);
    font-size: 1.14rem;
    letter-spacing: -0.01em;
}

.indent-card-copy {
    font-size: 0.92rem;
    line-height: 1.55;
}

.indent-section-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.indent-field {
    display: grid;
    gap: 0.35rem;
}

.indent-field label {
    color: #49656c;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
}

.indent-number-readonly {
    background: rgba(241, 246, 247, 0.95);
    color: var(--brand-900);
    font-weight: 700;
}

.indent-helper-note {
    min-height: 1.25rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.indent-locked-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(232, 157, 44, 0.16);
    color: #835000;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.indent-remarks-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,249,250,0.98));
}

.indent-remarks-input {
    min-height: 140px;
}

.indent-submit-bar {
    border-radius: 1.15rem;
    border-color: rgba(17, 57, 65, 0.09);
    box-shadow: 0 14px 26px rgba(18, 51, 59, 0.05);
    background: linear-gradient(180deg, rgba(244,247,248,0.95), rgba(252,253,253,0.96));
}

.indent-primary-btn,
.indent-secondary-btn {
    min-height: 46px;
    padding-inline: 1.2rem;
    border-radius: 0.9rem;
    font-weight: 700;
}

.indent-secondary-btn {
    border-color: rgba(17, 57, 65, 0.12);
    color: var(--brand-900);
    background: rgba(255,255,255,0.9);
}

.indent-secondary-btn:hover,
.indent-secondary-btn:focus {
    background: rgba(241,247,248,0.96);
    border-color: rgba(22, 97, 109, 0.24);
    color: var(--brand-900);
}

.indent-primary-btn:hover,
.indent-primary-btn:focus {
    box-shadow: 0 10px 18px rgba(22, 97, 109, 0.18);
}

.indent-primary-btn:disabled,
.indent-secondary-btn:disabled {
    opacity: 0.7;
}

@media (max-width: 767px) {
    .indent-entry-card,
    .indent-master-card,
    .indent-submit-bar,
    .indent-summary-metric,
    .indent-summary-datebox {
        padding-inline: 1rem;
    }

    .indent-section-header {
        flex-direction: column;
    }
}

.profile-complete-alert {
    border-radius: 1rem;
    border-color: rgba(232, 157, 44, 0.28);
    background: linear-gradient(180deg, rgba(255,250,242,0.98), rgba(255,245,226,0.96));
    color: #704300;
    box-shadow: 0 12px 24px rgba(140, 90, 0, 0.08);
}

.account-contact-input {
    min-height: 50px;
    border-radius: 0.95rem;
    border-color: rgba(17, 57, 65, 0.12);
    box-shadow: inset 0 1px 2px rgba(18, 51, 59, 0.03);
}

.account-contact-input:focus {
    border-color: rgba(22, 97, 109, 0.42);
    box-shadow: 0 0 0 0.26rem rgba(22, 97, 109, 0.1);
}

.indent-compose-shell {
    gap: 1.5rem;
}

.indent-summary-strip {
    position: relative;
    padding: 0.2rem;
    border-radius: 1.35rem;
    background: linear-gradient(120deg, rgba(22,97,109,0.12), rgba(232,157,44,0.16));
    box-shadow: 0 24px 44px rgba(18, 51, 59, 0.08);
}

.indent-summary-metric,
.indent-summary-datebox {
    backdrop-filter: blur(6px);
}

.indent-summary-metric {
    border-radius: 1.1rem;
}

.indent-summary-metric strong {
    letter-spacing: -0.02em;
}

.indent-summary-datebox .form-label {
    color: var(--brand-900);
    letter-spacing: 0.01em;
}

.indent-master-card {
    border-radius: 1.3rem;
}

.indent-master-card .ro-meta div {
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,250,0.94));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.indent-master-card .portal-chip {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(17, 57, 65, 0.08);
}

.indent-entry-card {
    border-radius: 1.25rem;
    border-color: rgba(17, 57, 65, 0.11);
    box-shadow: 0 20px 34px rgba(18, 51, 59, 0.06);
}

.indent-entry-card::before {
    height: 5px;
}

.indent-entry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.indent-card-title {
    font-size: 1.18rem;
    font-weight: 700;
}

.indent-card-copy {
    font-size: 0.88rem;
    color: #62777d;
}

.indent-field label {
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
    color: #4e666d;
}

.indent-number-input,
.indent-date-input,
.indent-remarks-input {
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,251,0.97));
}

.indent-number-input:hover,
.indent-date-input:hover,
.indent-remarks-input:hover {
    border-color: rgba(22, 97, 109, 0.24);
}

.indent-number-readonly {
    background: linear-gradient(180deg, rgba(244,248,249,0.98), rgba(238,243,244,0.98));
    border-style: dashed;
}

.indent-locked-pill {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.indent-helper-note {
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(17, 57, 65, 0.08);
}

.indent-remarks-card {
    border-radius: 1.3rem;
}

.indent-remarks-input {
    min-height: 150px;
}

.indent-submit-bar {
    padding: 1.15rem 1.35rem;
    align-items: center;
}

.indent-primary-btn {
    min-width: 150px;
    background: linear-gradient(180deg, var(--brand-700), var(--brand-900));
    border: none;
}

.indent-primary-btn:hover,
.indent-primary-btn:focus {
    background: linear-gradient(180deg, var(--brand-900), #0a2f35);
}

.indent-secondary-btn {
    min-width: 124px;
}

.indent-lock-banner {
    border-left: 5px solid var(--accent-500);
    padding: 1rem 1.1rem;
}

.table-sort-link {
    color: inherit;
    text-decoration: none;
}

.table-sort-link:hover,
.table-sort-link:focus {
    color: var(--brand-700);
    text-decoration: underline;
}

.otp-shell {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.15fr);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.otp-side {
    padding: 2.5rem;
    background: linear-gradient(160deg, #0f766e 0%, #0f4c81 100%);
    color: #fff;
}

.otp-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.1;
    margin: 0;
}

.otp-text {
    color: rgba(255, 255, 255, 0.86);
    max-width: 36ch;
}

.otp-mobile-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.otp-form-panel {
    padding: 2.5rem;
    background: #f8fafc;
}

.otp-input {
    letter-spacing: 0.35rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 991.98px) {
    .otp-card {
        grid-template-columns: 1fr;
    }
}

.manager-row-actions .btn {
    white-space: nowrap;
}

.manager-control-modal {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.manager-reset-kv {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.manager-reset-kv div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.manager-reset-kv dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.manager-reset-kv dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.submission-records-card {
    overflow: hidden;
}

.submission-review-form {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248,250,252,0.92), rgba(241,245,249,0.92));
    border: 1px solid rgba(148,163,184,0.16);
}

.bulk-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(148,163,184,0.14);
}

.bulk-selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15,118,110,0.08);
    color: #0f4c81;
    font-weight: 600;
}

.submission-records-table-wrap {
    max-height: 70vh;
    overflow: auto;
    border-radius: 1rem;
    border: 1px solid rgba(148,163,184,0.14);
}

.submission-records-table {
    min-width: 1800px;
    font-size: 0.92rem;
}

.submission-records-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    vertical-align: middle;
    white-space: nowrap;
}

.submission-records-table .sticky-col-start {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #f8fafc;
}

.submission-records-table tbody td.sticky-col-start {
    background: #fff;
}

.submission-records-table tbody tr.row-suppressed td {
    background: rgba(220, 38, 38, 0.08);
}

.submission-records-table tbody tr.row-modified td {
    background: rgba(14,165,233,0.08);
}

.submission-records-table tbody tr.row-suppressed td.sticky-col-start {
    background: rgba(220, 38, 38, 0.12);
}

.submission-records-table tbody tr.row-modified td.sticky-col-start {
    background: rgba(14,165,233,0.12);
}

.submission-records-table td,
.submission-records-table th {
    padding: 0.7rem 0.75rem;
}

.submission-records-table .remarks-cell {
    min-width: 220px;
    max-width: 320px;
}


.ajax-shell {
    position: relative;
    transition: opacity 0.18s ease;
}

.ajax-shell-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ajax-shell-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.45);
}

.ajax-shell-loading::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(22, 97, 109, 0.18);
    border-top-color: var(--brand-700);
    border-radius: 50%;
    animation: portal-spin 0.8s linear infinite;
    z-index: 2;
}

@keyframes portal-spin {
    to {
        transform: rotate(360deg);
    }
}

.portal-toast-container {
    z-index: 1085;
}

.summary-card-action {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
}

.filter-chip-button,
.table-filter-link {
    border: 0;
    background: transparent;
    color: var(--brand-700);
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.filter-chip-button:hover,
.table-filter-link:hover {
    color: var(--brand-900);
}

.inline-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.inline-status-actions .btn {
    min-width: 5.5rem;
}

.session-card-grid {
    display: grid;
    gap: 1rem;
}

.session-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,250,0.96));
    box-shadow: 0 10px 24px rgba(18, 51, 59, 0.05);
}

.session-card-current {
    border-color: rgba(22, 97, 109, 0.32);
    box-shadow: 0 14px 28px rgba(22, 97, 109, 0.08);
}

.session-title-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.session-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.session-meta-grid div {
    padding: 0.8rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(213, 224, 227, 0.9);
    background: rgba(255, 255, 255, 0.92);
}

.session-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.session-meta-grid strong {
    display: block;
    margin-top: 0.35rem;
    font-weight: 600;
    color: var(--text);
}

.session-agent {
    font-size: 0.84rem;
    line-height: 1.45;
    word-break: break-word;
}
.date-picker-field {
    position: relative;
}

.manager-date-input {
    padding-right: 3rem;
    cursor: pointer;
}

.date-picker-trigger {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #5f6f52;
    border-radius: 999px;
}

.date-picker-trigger:hover,
.date-picker-trigger:focus-visible {
    background: rgba(95, 111, 82, 0.1);
    color: #1f2a1c;
    outline: none;
}

.date-picker-trigger svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.date-format-text {
    font-size: 0.78rem;
    color: #6c757d;
}
.btn {
    --btn-shadow: 0 8px 18px rgba(18, 31, 38, 0.08);
    --btn-shadow-hover: 0 14px 28px rgba(18, 31, 38, 0.12);
    --btn-ring: 0 0 0 0.22rem rgba(36, 98, 110, 0.18);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.7rem;
    padding: 0.7rem 1.15rem;
    border-radius: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
    box-shadow: var(--btn-shadow);
}

.btn:hover:not(:disabled):not(.disabled) {
    transform: translateY(-1px);
    box-shadow: var(--btn-shadow-hover);
}

.btn:active:not(:disabled):not(.disabled) {
    transform: translateY(0);
    box-shadow: 0 7px 14px rgba(18, 31, 38, 0.09);
}

.btn:focus-visible,
.btn-check:focus + .btn,
.btn:focus {
    box-shadow: var(--btn-shadow), var(--btn-ring);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.58;
    box-shadow: none;
    transform: none;
}

.btn-sm {
    min-height: 2.2rem;
    padding: 0.48rem 0.82rem;
    border-radius: 0.78rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.btn-primary,
.indent-primary-btn {
    color: #fff;
    border: 1px solid rgba(19, 85, 95, 0.18);
    background: linear-gradient(180deg, #1f7382 0%, #145764 100%);
}

.btn-primary:hover,
.btn-primary:focus,
.indent-primary-btn:hover,
.indent-primary-btn:focus {
    color: #fff;
    border-color: rgba(11, 57, 65, 0.26);
    background: linear-gradient(180deg, #186675 0%, #0d4650 100%);
}

.btn-success {
    color: #fff;
    border: 1px solid rgba(25, 104, 69, 0.2);
    background: linear-gradient(180deg, #2a9b66 0%, #1d7e51 100%);
}

.btn-success:hover,
.btn-success:focus {
    color: #fff;
    border-color: rgba(18, 82, 55, 0.28);
    background: linear-gradient(180deg, #24885a 0%, #176742 100%);
}

.btn-outline-primary {
    color: #165f6c;
    border: 1px solid rgba(22, 95, 108, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(240, 248, 250, 0.98) 100%);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
    color: #fff;
    border-color: rgba(22, 95, 108, 0.2);
    background: linear-gradient(180deg, #2a8190 0%, #165f6c 100%);
}

.btn-outline-secondary,
.indent-secondary-btn {
    color: #48545f;
    border: 1px solid rgba(73, 84, 95, 0.16);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,246,248,0.98) 100%);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.indent-secondary-btn:hover,
.indent-secondary-btn:focus {
    color: #17212b;
    border-color: rgba(73, 84, 95, 0.24);
    background: linear-gradient(180deg, rgba(250,251,252,1) 0%, rgba(232,236,240,1) 100%);
}

.btn-outline-success {
    color: #1f7e52;
    border: 1px solid rgba(31, 126, 82, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(239, 249, 243, 1) 100%);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    color: #fff;
    border-color: rgba(24, 101, 66, 0.22);
    background: linear-gradient(180deg, #2a9b66 0%, #1d7e51 100%);
}

.btn-outline-dark {
    color: #24313d;
    border: 1px solid rgba(36, 49, 61, 0.15);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(238, 242, 246, 1) 100%);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    color: #fff;
    border-color: rgba(22, 29, 37, 0.2);
    background: linear-gradient(180deg, #425566 0%, #24313d 100%);
}

.btn-outline-danger {
    color: #aa3d47;
    border: 1px solid rgba(170, 61, 71, 0.16);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(253, 243, 244, 1) 100%);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #fff;
    border-color: rgba(148, 42, 53, 0.24);
    background: linear-gradient(180deg, #c3555f 0%, #97343f 100%);
}

.bulk-action-bar {
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(21, 57, 66, 0.07);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(250, 252, 252, 0.98) 0%, rgba(242, 247, 248, 0.98) 100%);
}

.bulk-action-bar .btn {
    min-width: 9rem;
}

.inline-status-actions {
    gap: 0.45rem;
}

.inline-status-actions .btn,
.submission-records-table .btn-sm {
    min-width: 5.8rem;
    box-shadow: 0 5px 12px rgba(15, 27, 34, 0.08);
}

.submission-records-table .btn-sm:hover:not(:disabled):not(.disabled) {
    box-shadow: 0 10px 18px rgba(15, 27, 34, 0.12);
}

.submission-records-table td .btn + .btn,
.submission-records-table td form + form,
.submission-records-table td form + a,
.submission-records-table td a + a {
    margin-left: 0;
}

.bulk-selected-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(21, 87, 98, 0.08);
    color: #0f4852;
    font-weight: 600;
}
.summary-card small {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.summary-card-alert {
    border-color: rgba(192, 117, 48, 0.24);
    background: linear-gradient(180deg, rgba(255,250,244,0.98), rgba(255,245,232,0.96));
}

.eyebrow {
    letter-spacing: 0.08em;
}

.table-warning-subtle {
    background: rgba(255, 245, 224, 0.72);
}
