:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --text: #17304f;
    --muted: #667990;
    --line: #d8e2ed;
    --navy: #082f5f;
    --navy-deep: #05264d;
    --blue: #1d5f9e;
    --yellow: #f4c62d;
    --danger-bg: #fff1f1;
    --danger: #a43d3d;
    --shadow: 0 22px 70px rgba(18, 48, 82, .18);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.eyebrow {
    margin: 0 0 .45rem;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(243, 247, 251, .22), rgba(255, 255, 255, .38)),
        url("../images/freightdesk-login-background.webp") center / cover fixed;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(230,238,247,.20)),
        radial-gradient(circle at 50% 38%, rgba(255,255,255,.42), transparent 36%);
}

.login-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 1.2rem;
    padding: clamp(1.3rem, 3vw, 2.5rem) clamp(1rem, 3vw, 3rem) 0;
}

.login-brand {
    text-align: center;
    animation: login-rise .65s ease-out both;
}

.login-wordmark {
    display: block;
    width: min(440px, 78vw);
    max-height: 155px;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 3px 8px rgba(18, 48, 82, .10));
}

.login-slogan {
    margin: -.25rem 0 0;
    color: var(--navy);
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: 650;
    letter-spacing: -.015em;
}

.login-card {
    width: min(470px, 100%);
    padding: clamp(1.65rem, 4vw, 2.5rem);
    border: 1px solid rgba(207, 219, 231, .92);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    animation: login-rise .72s .08s ease-out both;
}

.login-heading {
    text-align: center;
    margin-bottom: 1.45rem;
}

.login-heading h1 {
    margin: .05rem 0 .38rem;
    color: var(--navy-deep);
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    line-height: 1.15;
}

.login-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
}

.form-stack {
    display: grid;
    gap: 1.05rem;
}

.field > span:first-child {
    display: block;
    margin-bottom: .45rem;
    color: #24415f;
    font-size: .88rem;
    font-weight: 750;
}

.input-shell {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 48px;
    padding: 0 .9rem;
    border: 1px solid #cbd8e5;
    border-radius: 10px;
    background: #fff;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.input-shell:focus-within {
    border-color: #6fa0cf;
    box-shadow: 0 0 0 4px rgba(67, 126, 181, .13);
    transform: translateY(-1px);
}

.input-shell svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: #788da4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: .78rem 0;
    color: var(--text);
    background: transparent;
}

.input-shell input::placeholder { color: #9aa8b7; }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: .58rem;
    width: fit-content;
    color: var(--muted);
    font-size: .88rem;
    cursor: pointer;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--navy);
}

.button {
    border: 0;
    border-radius: 10px;
    padding: .82rem 1rem;
    font-weight: 780;
    cursor: pointer;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #0c417c, #062d5b);
    box-shadow: 0 8px 18px rgba(8, 47, 95, .19);
}

.button-primary:hover {
    background: linear-gradient(135deg, #12508f, #073565);
}

.button-secondary {
    color: var(--navy);
    background: var(--surface-soft);
}

.button-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 49px;
    margin-top: .1rem;
}

.button-login svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alert {
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border-radius: 10px;
}

.alert-error {
    color: var(--danger);
    background: var(--danger-bg);
}

.login-meta {
    width: calc(100% + clamp(2rem, 6vw, 6rem));
    min-height: 82px;
    margin-top: .4rem;
    padding: 1rem clamp(1.4rem, 7vw, 8rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(211, 221, 232, .92);
    background: rgba(250, 252, 254, .93);
    box-shadow: 0 -6px 22px rgba(18, 48, 82, .05);
    backdrop-filter: blur(16px);
    color: #4f647a;
    font-size: .84rem;
    animation: login-rise .72s .15s ease-out both;
}

.login-meta > div {
    display: grid;
    gap: .14rem;
}

.login-meta strong {
    color: var(--navy);
}

.login-meta > div:first-child span,
.developer-credit strong {
    color: #1d5f9e;
}

.login-copyright {
    text-align: center;
}

.developer-credit {
    justify-self: end;
    text-align: left;
}

@keyframes login-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
    .login-stage {
        padding-top: 1rem;
        gap: .9rem;
    }

    .login-wordmark {
        width: min(330px, 82vw);
        max-height: 116px;
    }

    .login-slogan {
        margin-top: -.45rem;
        padding: 0 1rem;
    }

    .login-card {
        border-radius: 16px;
    }

    .login-meta {
        width: calc(100% + 2rem);
        grid-template-columns: 1fr 1fr;
        padding: .9rem 1.2rem;
    }

    .login-copyright {
        display: none !important;
    }
}

@media (max-width: 440px) {
    .login-meta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .developer-credit {
        justify-self: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}



.app-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f4f7fb;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 270px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dbe4ee;
    background: #fbfcfe;
    box-shadow: 8px 0 28px rgba(26, 56, 88, .055);
}

.sidebar-header {
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e3eaf2;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.sidebar-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.sidebar-brand div {
    min-width: 0;
    display: grid;
    gap: .18rem;
}

.sidebar-brand strong {
    color: var(--navy-deep);
    font-size: 1.04rem;
    white-space: nowrap;
}

.sidebar-brand span {
    color: var(--muted);
    font-size: .76rem;
    white-space: nowrap;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    border: 0;
    padding: .45rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.sidebar-close svg,
.menu-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem .8rem 1.4rem;
    scrollbar-width: thin;
}

.nav-heading {
    margin: 1.25rem .7rem .48rem;
    color: #8a9aad;
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-heading:first-of-type {
    margin-top: .8rem;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: .78rem;
    min-height: 42px;
    margin: .15rem 0;
    padding: .65rem .75rem;
    border-radius: 9px;
    color: #51677e;
    font-size: .89rem;
    font-weight: 680;
    transition: background .16s, color .16s, transform .16s;
}

.nav-item:hover {
    color: var(--navy);
    background: #eef4fa;
    transform: translateX(2px);
}

.nav-item.active {
    color: #0b477f;
    background: #e5eff8;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -.8rem;
    top: .52rem;
    bottom: .52rem;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--yellow);
}

.nav-item svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-footer {
    display: grid;
    gap: .12rem;
    padding: 1rem 1.2rem 1.15rem;
    border-top: 1px solid #e3eaf2;
    color: #75879a;
    font-size: .7rem;
}

.sidebar-footer strong {
    color: var(--navy);
    font-size: .76rem;
}

.sidebar-footer small {
    margin-top: .28rem;
    color: #8b9aac;
}

.workspace {
    grid-column: 2;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem clamp(1.25rem, 3vw, 2.4rem);
    border-bottom: 1px solid rgba(216, 226, 237, .92);
    background: rgba(250, 252, 254, .94);
    backdrop-filter: blur(16px);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.topbar h1 {
    margin: 0;
    color: var(--navy-deep);
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    letter-spacing: -.025em;
}

.page-description {
    margin: .22rem 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.menu-button {
    display: none;
    border: 1px solid #d6e0ea;
    border-radius: 9px;
    padding: .55rem;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
}

.user-menu,
.user-identity {
    display: flex;
    align-items: center;
}

.user-menu {
    gap: 1rem;
}

.user-identity {
    gap: .65rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #3779b5, #0b3d70);
    font-size: .87rem;
    font-weight: 850;
    box-shadow: 0 5px 12px rgba(23, 74, 120, .16);
}

.user-identity div {
    display: grid;
    gap: .12rem;
}

.user-identity strong {
    color: #27445f;
    font-size: .86rem;
}

.user-identity span:last-child {
    color: #8898a8;
    font-size: .72rem;
}

.button-compact {
    min-height: 38px;
    padding: .55rem .85rem;
    border: 1px solid #d9e3ed;
}

.content-area {
    padding: clamp(1.25rem, 3vw, 2.4rem);
}

.hero-panel,
.module-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.35rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background:
        linear-gradient(120deg, rgba(255,255,255,.98), rgba(238,245,251,.92)),
        radial-gradient(circle at 90% 10%, rgba(244,198,45,.18), transparent 28%);
    box-shadow: 0 12px 34px rgba(30, 65, 102, .07);
}

.hero-copy,
.module-intro > div {
    max-width: 760px;
}

.hero-panel h2,
.module-intro h2 {
    margin: 0 0 .45rem;
    color: var(--navy-deep);
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -.025em;
}

.hero-panel p:last-child,
.module-intro p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    padding: .5rem .72rem;
    border: 1px solid #d6e3ee;
    border-radius: 999px;
    color: #48647e;
    background: #f7fafc;
    font-size: .75rem;
    font-weight: 780;
    white-space: nowrap;
}

.status-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8ca1b5;
}

.status-pill.status-ready {
    color: #27704f;
    border-color: #c9e6d6;
    background: #eef9f3;
}

.status-pill.status-ready span {
    background: #39a56f;
    box-shadow: 0 0 0 4px rgba(57,165,111,.10);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.metric-card {
    min-width: 0;
    padding: 1.05rem;
    border: 1px solid #dce5ee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 21px rgba(32, 67, 103, .045);
}

.metric-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    color: #61768b;
    font-size: .76rem;
    font-weight: 750;
}

.metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a8b8c8;
}

.metric-jobs .metric-dot { background: #377fb8; }
.metric-collection .metric-dot { background: #6f91b2; }
.metric-delivery .metric-dot { background: #45a57a; }
.metric-customs .metric-dot { background: #d0a62b; }
.metric-duty .metric-dot { background: #8c72b5; }
.metric-vehicle .metric-dot { background: #4d94a8; }

.metric-card > strong {
    display: block;
    margin: .55rem 0 .22rem;
    color: var(--navy-deep);
    font-size: 1.85rem;
    line-height: 1;
}

.metric-card small {
    color: #92a0af;
    font-size: .69rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
    gap: 1rem;
}

.panel {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(33, 66, 100, .045);
}

.panel-wide {
    grid-column: 1;
}

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

.panel-heading h3 {
    margin: 0;
    color: var(--navy-deep);
    font-size: 1.04rem;
}

.panel-heading p:last-child {
    margin: .26rem 0 0;
    color: #8796a6;
    font-size: .78rem;
}

.text-link {
    color: #1c619e;
    font-size: .78rem;
    font-weight: 780;
}

.table-shell {
    overflow-x: auto;
    border: 1px solid #e2e9f0;
    border-radius: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
}

.data-table th {
    padding: .75rem .85rem;
    color: #65798d;
    background: #f7f9fc;
    font-size: .68rem;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    padding: .9rem;
    border-top: 1px solid #e6ecf2;
}

.empty-table-row td {
    padding: 1.2rem;
}

.empty-state {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    color: #8291a1;
    text-align: left;
}

.empty-state.compact {
    min-height: 76px;
}

.empty-state-large {
    min-height: 320px;
}

.empty-state strong {
    display: block;
    margin-bottom: .22rem;
    color: #536b82;
    font-size: .88rem;
}

.empty-state p {
    margin: 0;
    font-size: .76rem;
    line-height: 1.5;
}

.empty-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #5e7f9d;
    background: #edf4fa;
    font-size: 1rem;
    font-weight: 800;
}

.attention-list {
    display: grid;
    gap: .7rem;
}

.attention-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .8rem;
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    background: #fbfcfd;
}

.attention-indicator {
    width: 8px;
    height: 8px;
    margin-top: .3rem;
    border-radius: 50%;
}

.attention-clear {
    background: #53ad7e;
    box-shadow: 0 0 0 4px rgba(83,173,126,.10);
}

.attention-item strong {
    display: block;
    color: #4b647b;
    font-size: .8rem;
}

.attention-item p {
    margin: .18rem 0 0;
    color: #91a0ae;
    font-size: .72rem;
}

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

.quick-link {
    position: relative;
    min-height: 94px;
    display: grid;
    align-content: center;
    gap: .24rem;
    padding: .9rem 2rem .9rem .9rem;
    border: 1px solid #dfe8f0;
    border-radius: 10px;
    background: #fafcfe;
    transition: transform .16s, border-color .16s, box-shadow .16s;
}

.quick-link:hover {
    transform: translateY(-2px);
    border-color: #bad0e3;
    box-shadow: 0 8px 20px rgba(28, 76, 119, .07);
}

.quick-link span {
    color: #244b70;
    font-size: .82rem;
    font-weight: 800;
}

.quick-link small {
    color: #8b9aa9;
    font-size: .69rem;
    line-height: 1.35;
}

.quick-link b {
    position: absolute;
    right: .85rem;
    top: 50%;
    color: #4d7da7;
    transform: translateY(-50%);
}

.placeholder-panel {
    padding: 0;
}

.module-intro {
    margin-bottom: 1rem;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(13, 33, 54, .38);
    backdrop-filter: blur(2px);
}

@media (max-width: 1280px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 980px) {
    .app-shell {
        display: block;
    }

    .workspace {
        min-width: 0;
    }

    .sidebar {
        width: min(300px, 88vw);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close,
    .menu-button {
        display: inline-flex;
    }

    .topbar {
        min-height: 80px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .panel-wide {
        grid-column: auto;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        gap: 1rem;
    }

    .page-description {
        display: none;
    }

    .user-identity div {
        display: none;
    }

    .button-compact {
        display: none;
    }

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

    .hero-panel,
    .module-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .quick-link-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .content-area {
        padding: 1rem;
    }

    .topbar {
        padding: .9rem 1rem;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        width: 100%;
        text-align: center;
    }
}


.notice-success {
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #c9e6d6;
    border-radius: 10px;
    color: #27704f;
    background: #eef9f3;
    font-size: .86rem;
    font-weight: 700;
}

.toolbar-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    background: #fff;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select,
.form-grid input,
.form-grid select {
    min-height: 43px;
    border: 1px solid #cddae6;
    border-radius: 9px;
    padding: .68rem .78rem;
    color: var(--text);
    background: #fff;
    outline: none;
}

.filter-bar input {
    width: min(300px, 65vw);
}

.filter-bar input:focus,
.filter-bar select:focus,
.form-grid input:focus,
.form-grid select:focus {
    border-color: #6fa0cf;
    box-shadow: 0 0 0 4px rgba(67, 126, 181, .12);
}

.account-person {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.account-person > div {
    display: grid;
    gap: .18rem;
}

.account-person strong {
    color: #2d4a66;
    font-size: .84rem;
}

.account-person span:last-child {
    color: #8796a6;
    font-size: .73rem;
}

.role-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: .34rem .58rem;
    border-radius: 999px;
    font-size: .69rem;
    font-weight: 800;
}

.role-admin {
    color: #5d4b8a;
    background: #f0ebfa;
}

.role-staff {
    color: #315f83;
    background: #eaf3fa;
}

.status-active {
    color: #27704f;
    background: #eaf7f0;
}

.status-inactive {
    color: #8b5555;
    background: #f8eaea;
}

.actions-column {
    width: 1%;
    text-align: right !important;
    white-space: nowrap;
}

.pagination-wrap {
    margin-top: 1rem;
}

.form-panel {
    max-width: 920px;
}

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

.form-grid .field {
    display: grid;
    align-content: start;
}

.form-grid .field > span:first-child {
    margin-bottom: .45rem;
    color: #24415f;
    font-size: .84rem;
    font-weight: 760;
}

.form-grid .field > small {
    margin-top: .4rem;
    color: #8796a6;
    font-size: .72rem;
    line-height: 1.4;
}

.field-wide {
    grid-column: span 1;
}

.checkbox-card {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: .58rem;
    padding: .65rem .75rem;
    border: 1px solid #d7e1eb;
    border-radius: 9px;
    background: #f9fbfd;
    font-size: .82rem;
}

.checkbox-card input {
    min-height: auto;
    width: 17px;
    height: 17px;
    padding: 0;
    accent-color: var(--navy);
}

.field-error {
    color: #a43d3d !important;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .7rem;
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px solid #e3eaf1;
}

@media (max-width: 720px) {
    .toolbar-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-panel > .button {
        text-align: center;
    }

    .filter-bar {
        align-items: stretch;
    }

    .filter-bar input,
    .filter-bar select,
    .filter-bar button {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .button {
        width: 100%;
        text-align: center;
    }
}
