﻿:root {
    --bg: #eef3f9;
    --surface: rgba(255, 255, 255, 0.97);
    --ink: #15335d;
    --muted: #627a9b;
    --line: rgba(21, 51, 93, 0.12);
    --primary: #1c568b;
    --primary-dark: #133f69;
    --orange: #e6871f;
    --green: #2cb15c;
    --green-dark: #1f8b47;
    --slate: #42566d;
    --danger: #c73d2c;
    --danger-soft: #ffe6df;
    --success-soft: #daf5de;
    --warning-soft: #f0f7cc;
    --shadow: 0 18px 38px rgba(19, 56, 104, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(230, 135, 31, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(28, 86, 139, 0.09), transparent 22%),
        linear-gradient(180deg, #f4f7fb 0%, #e8eef7 100%);
    animation: fadeBody 0.45s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

.brand-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero,
.footer-strip,
.footer-wrap {
    width: 100%;
    overflow: hidden;
}

.page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.hero {
    position: relative;
    padding: 0 0 18px;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.12), transparent 20%),
        radial-gradient(circle at top left, rgba(28, 86, 139, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.97));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(28, 86, 139, 0.05), transparent 34%, rgba(230, 135, 31, 0.07) 66%, transparent 100%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.24) 46%, transparent 100%);
    transform: translateX(-100%);
    animation: ambientSweep 12s linear infinite;
    opacity: 0.55;
    pointer-events: none;
}

.brand-banner,
.footer-strip img {
    width: 100%;
    display: block;
    border-radius: 0;
    box-shadow: var(--shadow);
}

.brand-banner-shell {
    position: relative;
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
    padding: 12px 16px 14px;
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 254, 0.96));
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow:
        0 26px 56px rgba(19, 56, 104, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.brand-banner-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at left center, rgba(28, 86, 139, 0.16), transparent 26%),
        radial-gradient(circle at right center, rgba(230, 135, 31, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(28, 86, 139, 0.04), transparent 35%, rgba(230, 135, 31, 0.06) 72%, transparent 100%);
    pointer-events: none;
}

.brand-banner-shell::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    pointer-events: none;
}

.brand-banner {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(19, 56, 104, 0.10);
}

.hero-copy,
.topbar-meta,
.hero .actions-row {
    width: min(1180px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
}

.hero-copy {
    margin: 14px 0 12px;
}

.hero-stage {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 24px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 246, 255, 0.95));
    border: 1px solid rgba(21, 51, 93, 0.09);
    box-shadow:
        0 26px 50px rgba(19, 56, 104, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: auto -10% -58% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 135, 31, 0.17), transparent 62%);
    animation: pulseFloat 8s ease-in-out infinite;
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: -60% auto auto -6%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 86, 139, 0.16), transparent 62%);
    animation: pulseFloat 7s ease-in-out infinite reverse;
}

.hero-aura {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.18;
    pointer-events: none;
}

.hero-aura-left {
    top: 110px;
    left: -40px;
    background: radial-gradient(circle, rgba(28, 86, 139, 0.7), transparent 65%);
}

.hero-aura-right {
    top: 80px;
    right: -10px;
    background: radial-gradient(circle, rgba(230, 135, 31, 0.75), transparent 65%);
}

.compact-copy h1,
.section-heading h2,
.driver-card h3,
.driver-summary h2,
.form-panel h2,
.search-panel h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
}

.compact-copy h1 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--orange);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 16px;
}

.section-heading > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.slim-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(21, 51, 93, 0.08);
}

.lead,
.section-note,
.muted-text,
.result-text {
    color: var(--muted);
    line-height: 1.5;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tight-actions {
    align-items: center;
}

.actions-row form {
    margin: 0;
}

.page {
    padding: 8px 0 36px;
}

.inline-note {
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(28, 86, 139, 0.06);
    border: 1px solid rgba(28, 86, 139, 0.10);
    color: var(--muted);
    font-size: 0.9rem;
}

.invoice-line-editor {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(239, 246, 255, 0.96));
    border: 1px solid rgba(21, 51, 93, 0.10);
}

.invoice-line-header,
.invoice-line-row {
    display: grid;
    grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.invoice-line-header {
    padding: 0 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.invoice-line-row input[readonly] {
    background: rgba(21, 51, 93, 0.05);
    color: var(--ink);
    font-weight: 700;
}

.stats,
.flash-stack,
.driver-grid,
.detail-layout,
.action-grid {
    display: grid;
    gap: 16px;
}

.stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: riseIn 0.45s ease both;
}

.stat-card,
.search-panel,
.table-card,
.info-card,
.form-card {
    padding: 18px;
}

.stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.stat-card strong {
    font-size: 1.7rem;
}

.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #2a6ead);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
    box-shadow:
        0 12px 26px rgba(28, 86, 139, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.button::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -120%;
    width: 68%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transform: skewX(-24deg);
    transition: left 0.45s ease;
}

.button::after {
    content: "";
    position: absolute;
    inset: auto -18% -140% auto;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 70%);
    pointer-events: none;
}

.button:hover {
    filter: brightness(1.05);
    transform: translateY(-2px) scale(1.01);
}

.button:hover::before {
    left: 160%;
}

.button:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 6px 12px rgba(28, 86, 139, 0.16);
}

.button-secondary {
    color: var(--primary);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.92));
    border: 1px solid rgba(21, 51, 93, 0.15);
    box-shadow:
        0 12px 24px rgba(19, 56, 104, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.home-button {
    min-width: 92px;
    color: var(--primary-dark);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.95));
    border: 1px solid rgba(21, 51, 93, 0.12);
    box-shadow:
        0 14px 28px rgba(19, 56, 104, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.quiet-button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.82rem;
    border-radius: 12px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 51, 93, 0.10);
    box-shadow: none;
}

.quiet-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(19, 56, 104, 0.08);
}

.search-row,
.slip-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(21, 51, 93, 0.16);
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #8b9ab0;
    font-size: 0.92em;
    text-overflow: ellipsis;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;
    padding: 0;
    border: none;
    background: transparent;
    accent-color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(230, 135, 31, 0.18);
    border-color: var(--orange);
}

.search-row input {
    flex: 1 1 340px;
}

.driver-grid {
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.full-width-card {
    grid-column: 1 / -1;
}

.simple-card {
    position: relative;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(21, 51, 93, 0.10);
    color: var(--ink);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

.simple-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #173f66, #f09a2a);
}

.simple-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -48px;
    top: -48px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 154, 42, 0.16), rgba(240, 154, 42, 0.02));
}

.simple-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(19, 56, 104, 0.16);
    border-color: rgba(240, 154, 42, 0.22);
}

.smart-card:nth-child(3n+2)::before {
    background: linear-gradient(90deg, #173f66, #ffb047);
}

.smart-card:nth-child(3n+3)::before {
    background: linear-gradient(90deg, #194260, #e6871f);
}

.driver-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.driver-id {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.driver-card h3 {
    font-size: 1.35rem;
    margin-top: 12px;
}

.driver-meta {
    margin: 8px 0 12px;
    color: var(--muted);
}

.driver-tags,
.summary-tags,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.driver-tags span,
.summary-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #eef4fb;
    color: var(--primary-dark);
}

.card-subline {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--muted);
}

.muted-white {
    color: var(--muted);
}

.driver-status,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.driver-status {
    background: #eef4fb;
    color: var(--primary-dark);
}

.driver-status.active,
.status-chip.active {
    background: rgba(44, 177, 92, 0.16);
    color: var(--green-dark);
}

.driver-status.inactive,
.status-chip.inactive {
    background: rgba(199, 61, 44, 0.16);
    color: var(--danger);
}

.action-panel {
    overflow: hidden;
    padding: 0;
    margin-bottom: 16px;
}

.panel-titlebar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.action-grid {
    grid-template-columns: 220px 1fr;
    padding: 18px;
}

.photo-panel {
    padding: 14px;
    border: 1px solid var(--line);
    background: #f7f9fc;
}

.small-photo-panel {
    max-width: 180px;
}

.smart-photo-panel {
    background: linear-gradient(180deg, #f8fbff, #eef3fa);
}

.photo-placeholder {
    display: grid;
    place-items: center;
    min-height: 188px;
    border: 1px solid rgba(21, 51, 93, 0.22);
    background: #fff;
    font-weight: 700;
    color: var(--muted);
}

.driver-photo {
    width: 100%;
    min-height: 188px;
    max-height: 220px;
    object-fit: cover;
    border: 1px solid rgba(21, 51, 93, 0.18);
    background: #fff;
}

.tall-photo {
    min-height: 200px;
}

.salary-flag {
    margin-top: 12px;
    padding: 9px 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    background: var(--danger);
}

.salary-flag.stored {
    background: var(--green);
}

.driver-summary {
    padding: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.compact-summary {
    padding: 0;
    border: none;
    background: transparent;
}

.smart-summary-box,
.salary-header-box,
.slip-summary-box {
    padding: 10px 6px 0 6px;
}

.summary-tags {
    margin: 14px 0 16px;
}

.summary-tags span {
    min-width: 135px;
    background: #edf3fb;
    color: var(--primary);
}

.panel-facts,
.detail-grid {
    margin: 0;
}

.panel-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.smart-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.single-column-facts,
.compact-info-list {
    grid-template-columns: 1fr;
}

.salary-master-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
}

.panel-facts dt,
.detail-grid dt {
    margin-bottom: 5px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.panel-facts dd,
.detail-grid dd {
    margin: 0;
    font-weight: 700;
}

.panel-note,
.info-box {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f2f6fb;
    color: var(--primary-dark);
    border: 1px solid rgba(21, 51, 93, 0.10);
}

.small-note {
    max-width: 420px;
}

.info-box {
    border-radius: 12px;
}

.success-box {
    background: var(--success-soft);
    color: #166c41;
}

.warning-box {
    background: var(--warning-soft);
    color: #5d651e;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    padding: 0 18px 18px;
}

.action-button {
    min-height: 42px;
    border-radius: 0;
}

.flat-action-buttons .action-button {
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.14);
}

.navy {
    background: #194c79;
}

.orange {
    background: #d47d1a;
}

.green,
.success-button {
    background: var(--green);
}

.slate {
    background: var(--slate);
}

.danger-button {
    background: var(--danger);
}

.inner-section {
    padding: 0 18px 18px;
}

.section-title {
    margin-bottom: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(21, 51, 93, 0.22);
    font-weight: 700;
}

.entry-form,
.two-column-form,
.detail-grid,
.driver-master-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.driver-master-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.party-master-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

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

.check-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(21, 51, 93, 0.10);
    box-shadow: 0 10px 18px rgba(19, 56, 104, 0.05);
}

.check-tile span {
    font-weight: 700;
    font-size: 0.9rem;
}

label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

label span {
    font-weight: 700;
    font-size: 0.92rem;
}

.full-span,
.form-actions {
    grid-column: 1 / -1;
}

.form-photo-preview {
    display: grid;
    gap: 10px;
}

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.workspace-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.workspace-launch-card {
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.985), rgba(243, 248, 255, 0.98));
    border: 1px solid rgba(21, 51, 93, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.workspace-launch-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.16rem;
}

.workspace-launch-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.workspace-launch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(19, 56, 104, 0.14);
}

.workspace-launch-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.workspace-launch-metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 51, 93, 0.08);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.workspace-drivers {
    background: linear-gradient(145deg, rgba(243, 249, 255, 0.99), rgba(234, 243, 255, 0.98));
}

.workspace-suppliers {
    background: linear-gradient(145deg, rgba(255, 250, 243, 0.99), rgba(255, 243, 223, 0.98));
}

.workspace-customers {
    background: linear-gradient(145deg, rgba(246, 255, 250, 0.99), rgba(231, 249, 240, 0.98));
}

.workspace-accounts {
    background: linear-gradient(145deg, rgba(248, 247, 255, 0.99), rgba(238, 239, 251, 0.98));
}

.desk-dashboard-shell {
    display: grid;
    gap: 18px;
    padding-top: 6px;
}

.desk-dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.16), transparent 22%),
        radial-gradient(circle at bottom left, rgba(28, 86, 139, 0.16), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 255, 0.98));
}

.desk-dashboard-hero h2 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.desk-dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.desk-dashboard-meta span {
    display: grid;
    gap: 3px;
    min-width: 100px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 51, 93, 0.08);
}

.desk-dashboard-meta strong {
    color: var(--primary-dark);
}

.desk-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.desk-chart-card {
    padding: 20px 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 255, 0.98));
}

.compact-chart-stack {
    gap: 12px;
}

.compact-chart-row {
    grid-template-columns: minmax(90px, 1fr) minmax(120px, 2fr) auto;
}

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

.desk-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    border-radius: 28px;
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 24px 48px rgba(19, 56, 104, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desk-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.08));
}

.desk-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: 18px;
    width: 170px;
    height: 170px;
    border-radius: 38px;
    transform: rotate(18deg);
    opacity: 0.28;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.06));
    pointer-events: none;
}

.desk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 54px rgba(19, 56, 104, 0.16);
}

.desk-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.04em;
}

.desk-card p {
    margin: 0;
    max-width: 340px;
    color: rgba(15, 36, 64, 0.74);
    font-weight: 600;
}

.desk-card-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.desk-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(21, 51, 93, 0.10);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.desk-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
}

.desk-metrics span {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.desk-metrics strong {
    font-size: 1rem;
    color: var(--primary-dark);
}

.desk-metrics small {
    color: var(--muted);
    font-weight: 700;
}

.desk-card-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #2c70b0);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(28, 86, 139, 0.18);
}

.desk-driver {
    background:
        radial-gradient(circle at top right, rgba(28, 86, 139, 0.20), transparent 24%),
        linear-gradient(145deg, #f4f9ff, #e7f0fb);
}

.desk-supplier {
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.22), transparent 24%),
        linear-gradient(145deg, #fffaf2, #fff0d9);
}

.desk-customer {
    background:
        radial-gradient(circle at top right, rgba(44, 177, 92, 0.18), transparent 24%),
        linear-gradient(145deg, #f5fff8, #e5f7ed);
}

.desk-accounts {
    background:
        radial-gradient(circle at top right, rgba(86, 84, 196, 0.16), transparent 24%),
        linear-gradient(145deg, #f8f7ff, #ecebfb);
}

.driver-desk-shell {
    display: grid;
    gap: 18px;
}

.driver-desk-toolbar {
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(28, 86, 139, 0.10), transparent 18%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.985), rgba(244, 248, 255, 0.98));
}

.driver-desk-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.driver-desk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.driver-desk-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.driver-desk-stats span {
    display: grid;
    gap: 4px;
    min-width: 108px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 10px 22px rgba(19, 56, 104, 0.05);
}

.driver-desk-stats strong {
    font-size: 1.02rem;
    color: var(--primary-dark);
}

.driver-desk-stats small {
    color: var(--muted);
    font-weight: 700;
}

.driver-desk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 16px;
}

.driver-desk-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(28, 86, 139, 0.14), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(241, 247, 255, 0.98));
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 18px 34px rgba(19, 56, 104, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.driver-desk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 42px rgba(19, 56, 104, 0.14);
}

.driver-desk-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.driver-desk-id {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(21, 51, 93, 0.07);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.driver-desk-body {
    display: grid;
    gap: 8px;
}

.driver-desk-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(28, 86, 139, 0.12), rgba(230, 135, 31, 0.16));
    color: var(--primary-dark);
    font-size: 1.5rem;
    box-shadow: 0 12px 22px rgba(19, 56, 104, 0.08);
}

.driver-desk-body h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.driver-desk-line {
    color: var(--muted);
    font-weight: 600;
}

.driver-desk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.driver-desk-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 51, 93, 0.08);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.driver-desk-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #2b6eae);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 20px rgba(28, 86, 139, 0.16);
}

.driver-desk-empty {
    padding: 26px;
    text-align: center;
}

.driver-desk-empty h2 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.quick-link-card {
    padding: 18px;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    border: 1px solid rgba(21, 51, 93, 0.08);
}

.quick-link-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.quick-link-card p {
    margin: 0;
    color: var(--muted);
}

.accent-card {
    background: linear-gradient(135deg, #f8fbff, #eef5fd);
}

.owner-card {
    background: linear-gradient(135deg, #fffaf1, #fff2dd);
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(19, 56, 104, 0.14);
}

.action-card-form {
    display: grid;
    gap: 10px;
    align-content: start;
}

.action-card-form .button {
    justify-self: flex-start;
}

.upload-card-form input[type="file"] {
    padding: 12px;
    border: 1px dashed rgba(21, 51, 93, 0.2);
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-utility-card {
    padding: 18px 18px 16px;
    margin-bottom: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.96));
    border: 1px solid rgba(21, 51, 93, 0.06);
    box-shadow: 0 12px 24px rgba(19, 56, 104, 0.06);
}

.dashboard-utility-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.compact-utility-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.compact-utility-form .button {
    justify-self: auto;
}

.compact-utility-form input[type="file"] {
    max-width: 240px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    border: 1px dashed rgba(21, 51, 93, 0.12);
    background: rgba(255, 255, 255, 0.82);
}

.owner-fund-layout,
.two-panel-layout {
    grid-template-columns: 1.05fr 1fr;
}

.premium-slip-form {
    align-items: start;
}

.split-preview-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

@media (max-width: 900px) {
    .owner-fund-layout,
    .two-panel-layout,
    .split-preview-row,
    .smart-facts,
    .salary-master-grid {
        grid-template-columns: 1fr;
    }
}

.form-preview-photo {
    max-width: 240px;
    min-height: auto;
    max-height: 220px;
    border-radius: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2px;
}

.split-actions {
    justify-content: space-between;
}

.triple-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.success-field {
    background: #d6f6d8;
    font-weight: 800;
}

.premium-field {
    font-size: 1rem;
    color: var(--green-dark);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 0.92rem;
}

thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.table-link,
.mini-action-link {
    color: var(--primary);
    font-weight: 700;
}

.table-actions {
    min-width: 190px;
}

.mini-action-button {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(21, 51, 93, 0.14);
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
}

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

.quick-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.result-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
}

.result-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
}

.result-list a {
    color: var(--primary);
    font-weight: 700;
}

.flash-stack {
    margin-bottom: 16px;
}

.flash {
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.flash-error {
    background: var(--danger-soft);
    color: #8a2e24;
    border-color: #f1beb4;
}

.flash-success {
    background: var(--success-soft);
    color: #145f3a;
    border-color: #bce7c8;
}

.topbar-meta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    align-items: center;
    gap: 10px;
}

.hero-nav {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 28px));
    margin: 14px auto 0;
    padding: 12px 14px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(243, 248, 255, 0.84));
    border: 1px solid rgba(21, 51, 93, 0.09);
    box-shadow:
        0 22px 40px rgba(19, 56, 104, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-dark);
    border: 1px solid rgba(21, 51, 93, 0.12);
    font-weight: 700;
}

.workspace-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(28, 86, 139, 0.12), rgba(230, 135, 31, 0.14));
    color: var(--primary-dark);
    border: 1px solid rgba(21, 51, 93, 0.10);
    font-weight: 800;
}

.workspace-lead {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.58;
    font-size: 0.98rem;
}

.workspace-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 14px auto 0;
    display: grid;
    gap: 12px;
}

.workspace-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(243, 248, 255, 0.84));
    border: 1px solid rgba(21, 51, 93, 0.09);
    box-shadow: 0 18px 34px rgba(19, 56, 104, 0.10);
}

.workspace-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 51, 93, 0.10);
    color: var(--primary-dark);
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.workspace-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(19, 56, 104, 0.08);
}

.workspace-pill.active {
    background: linear-gradient(135deg, var(--primary), #2a6ead);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(28, 86, 139, 0.20);
}

.workspace-nav {
    width: 100%;
    margin: 0;
}

.workspace-button-active {
    box-shadow:
        0 12px 24px rgba(19, 56, 104, 0.10),
        inset 0 0 0 1px rgba(230, 135, 31, 0.35);
}

.login-shell {
    display: grid;
    gap: 18px;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

.premium-login-shell {
    gap: 22px;
}

.login-hero-card,
.login-card {
    padding: 22px;
}

.login-hero-card {
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.14), transparent 26%),
        linear-gradient(135deg, #fff, #f8fbff);
}

.login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.unique-login-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(28, 86, 139, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff, #f3f8ff);
}

.unique-login-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(28, 86, 139, 0.08), rgba(230, 135, 31, 0.12));
    animation: pulseFloat 5s ease-in-out infinite;
}

.landing-stage {
    margin-bottom: 18px;
}

.landing-showcase-card,
.portal-section-card {
    padding: 28px;
    overflow: hidden;
}

.landing-showcase-card {
    position: relative;
    border: 1px solid rgba(240, 154, 42, 0.14);
    background:
        linear-gradient(115deg, rgba(14, 33, 58, 0.02), rgba(14, 33, 58, 0)),
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.18), transparent 22%),
        radial-gradient(circle at bottom left, rgba(28, 86, 139, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff, #f4f8ff);
    box-shadow: 0 24px 50px rgba(19, 56, 104, 0.14);
}

.luxury-hero-card {
    min-height: 560px;
    display: grid;
    align-items: end;
}

.landing-showcase-card::before,
.portal-section-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    animation: pulseFloat 7s ease-in-out infinite;
}

.landing-showcase-card::before {
    width: 240px;
    height: 240px;
    top: -100px;
    right: -80px;
    background: rgba(28, 86, 139, 0.08);
}

.landing-showcase-card::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(240, 154, 42, 0.10);
    border-radius: 24px;
    pointer-events: none;
}

.portal-section-card::after {
    width: 180px;
    height: 180px;
    bottom: -60px;
    right: -40px;
    background: rgba(230, 135, 31, 0.08);
}

.landing-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 24px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.landing-hero-media,
.services-page-hero-media {
    position: absolute;
    inset: 0;
    background: url("service-hero-v2.png") center/cover no-repeat;
}

.landing-hero-overlay,
.services-page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.08) 72%, rgba(20, 43, 75, 0.06) 100%),
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.14), transparent 24%);
}

.landing-hero-panel,
.services-page-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.landing-hero-panel {
    padding: 42px 32px;
}

.landing-copy h2,
.portal-section-top h2,
.services-story-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.04em;
}

.landing-copy h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    max-width: 760px;
}

.landing-hero-panel h2,
.services-page-hero-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.04em;
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    line-height: 1.08;
}

.landing-brand-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(21, 51, 93, 0.10);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.landing-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(145deg, #173f66, #f09a2a);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand-accent-text {
    background: linear-gradient(90deg, #173f66, #f09a2a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-pills,
.portal-top-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-pills {
    margin: 18px 0 0;
}

.landing-pills span,
.portal-top-pills span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(21, 51, 93, 0.09);
    font-weight: 700;
    color: var(--primary-dark);
}

.landing-actions {
    margin-top: 20px;
}

.landing-hero-actions {
    margin-top: 24px;
}

.portal-launch-button {
    animation: portalGlow 2.8s ease-in-out infinite;
}

.quote-button {
    background: linear-gradient(135deg, var(--orange), #f0ab49);
}

.landing-hero-service-line {
    margin: 18px 0 0;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.55;
}

.landing-signature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.landing-signature-chip {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 14px 26px rgba(19, 56, 104, 0.08);
}

.landing-signature-chip strong {
    font-size: 0.98rem;
}

.landing-signature-chip small {
    color: var(--muted);
    line-height: 1.45;
}

.driver-card-icon {
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.landing-service-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.landing-service-strip span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 51, 93, 0.09);
    font-weight: 700;
    color: var(--primary-dark);
}

.service-pill-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(145deg, #173f66, #f09a2a);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(145deg, #173f66, #f09a2a);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.landing-visual-zone {
    display: grid;
    gap: 18px;
}

.fleet-visual-card {
    position: relative;
    min-height: 380px;
    padding: 22px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(240, 154, 42, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, rgba(15, 37, 66, 0.1), rgba(15, 37, 66, 0.18)),
        linear-gradient(135deg, #fdfefe, #ebf4ff);
    border: 1px solid rgba(240, 154, 42, 0.14);
    box-shadow: 0 24px 44px rgba(19, 56, 104, 0.16);
}

.fleet-visual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        url("fleet-backdrop.svg") center/cover no-repeat;
    opacity: 0.98;
    transform: scale(1.02);
}

.fleet-visual-card::after {
    content: "";
    position: absolute;
    inset: auto auto 18px 18px;
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), transparent);
}

.fleet-visual-badge,
.fleet-visual-watermark,
.fleet-visual-summary {
    position: relative;
    z-index: 1;
}

.fleet-visual-badge {
    display: inline-flex;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 51, 93, 0.08);
    font-weight: 800;
    color: var(--primary-dark);
}

.fleet-visual-luxury-tag {
    position: absolute;
    right: 22px;
    top: 22px;
    z-index: 1;
    display: inline-flex;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 37, 66, 0.76);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.fleet-visual-skyline {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.74), transparent 22%),
        radial-gradient(circle at 20% 24%, rgba(230, 135, 31, 0.12), transparent 18%);
}

.fleet-visual-watermark {
    position: absolute;
    right: 22px;
    bottom: 68px;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
    font-weight: 900;
    letter-spacing: 0.14em;
    color: rgba(21, 51, 93, 0.12);
}

.fleet-visual-summary {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 37, 66, 0.72);
    color: #fff;
    backdrop-filter: blur(8px);
}

.fleet-visual-summary strong {
    font-size: 1rem;
}

.fleet-visual-summary span {
    font-size: 0.9rem;
    line-height: 1.45;
}

.services-page-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    padding: 0;
}

.services-page-hero-copy {
    padding: 38px 30px;
}

.leadership-mini-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mini-leader-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98));
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 18px 28px rgba(19, 56, 104, 0.10);
}

.manager-mini-card {
    background: linear-gradient(145deg, #fffdf8, #f7faff);
}

.mini-leader-frame {
    padding: 6px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(28, 86, 139, 0.12), rgba(230, 135, 31, 0.16));
}

.mini-leader-frame img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

.mini-leader-card strong {
    display: block;
    font-size: 1rem;
}

.mini-leader-card small {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 700;
}

.mini-leader-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.86rem;
}

.driver-card-minimal-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 10px 0 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, #173f66, #f09a2a);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 12px 22px rgba(19, 56, 104, 0.12);
}

.driver-card-minimal-copy h3 {
    margin: 0;
}

.driver-card-minimal-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.premium-company-grid {
    margin-bottom: 18px;
}

.services-story-card {
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(28, 86, 139, 0.12), transparent 18%),
        linear-gradient(145deg, #fffefb, #f5f9ff);
}

.service-tile {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 14px 28px rgba(19, 56, 104, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 36px rgba(19, 56, 104, 0.12);
}

.service-tile strong {
    display: block;
    margin-bottom: 2px;
    font-size: 1rem;
}

.service-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.quote-panel-card {
    padding: 24px;
}

.driver-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.action-buttons form {
    margin: 0;
}

.driver-card-note {
    color: var(--muted);
    font-size: 0.84rem;
}

.driver-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(23, 63, 102, 0.08);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.portal-section-card {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(230, 135, 31, 0.14), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
}

.portal-section-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.portal-top-pills {
    justify-content: flex-end;
}

.login-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.login-hero-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 2.9rem);
    letter-spacing: -0.04em;
}

.login-hero-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.login-hero-pills span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(21, 51, 93, 0.08);
    font-weight: 700;
    color: var(--primary-dark);
}

.login-stage-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    gap: 18px;
}

.login-role-card,
.login-stage-card {
    padding: 22px;
}

.login-role-head h3,
.login-stage-head h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
}

.login-role-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.role-tile {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 16px 18px;
    text-align: left;
    border: 1px solid rgba(21, 51, 93, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f4f8ff);
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.role-tile:hover,
.role-tile.active {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(19, 56, 104, 0.14);
    border-color: rgba(28, 86, 139, 0.3);
}

.role-tile.active {
    background: linear-gradient(135deg, #173f66, #2768a4);
    color: #fff;
}

.role-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(28, 86, 139, 0.12);
    color: var(--primary-dark);
    font-weight: 800;
}

.role-tile.active .role-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.role-tile small {
    color: var(--muted);
    font-size: 0.84rem;
}

.role-tile.active small {
    color: rgba(255, 255, 255, 0.78);
}

.owner-tile {
    background: linear-gradient(135deg, #fffaf1, #fff2dd);
}

.driver-tile {
    background: linear-gradient(135deg, #f4faff, #eef5ff);
}

.login-stage-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
}

.login-stage-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--orange), var(--primary));
}

.stage-form {
    margin-top: 16px;
}

.credential-group {
    display: none;
    animation: riseIn 0.24s ease;
}

.credential-group.active {
    display: block;
}

.login-stage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.login-tip {
    flex: 1 1 280px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f4f8fd;
    border: 1px solid rgba(21, 51, 93, 0.08);
    color: var(--muted);
}

.login-submit-button {
    min-width: 196px;
}

.login-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--orange));
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(19, 56, 104, 0.18);
}

.owner-login-card {
    background: linear-gradient(180deg, #fffaf1, #ffffff);
}

.driver-login-card {
    background: linear-gradient(180deg, #f4faff, #ffffff);
}

.login-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.portal-panel {
    margin-bottom: 18px;
}

.left-actions {
    justify-content: flex-start;
}

.mobile-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.premium-stats {
    gap: 18px;
}

.premium-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.premium-stat-card small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.premium-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -24px -34px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.blue-stat {
    background: linear-gradient(135deg, #ffffff, #eef5ff);
}

.green-stat {
    background: linear-gradient(135deg, #ffffff, #eefbf4);
}

.orange-stat {
    background: linear-gradient(135deg, #fffdf7, #fff1dd);
}

.navy-stat {
    background: linear-gradient(135deg, #ffffff, #edf3fb);
}

.slate-stat {
    background: linear-gradient(135deg, #ffffff, #f2f5f9);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

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

.dashboard-hero {
    margin-bottom: 18px;
}

.import-focus-board {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    padding: 22px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.16), transparent 20%),
        linear-gradient(135deg, #ffffff, #f4f8ff);
}

.import-focus-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.import-focus-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.import-spotlight-card {
    min-height: 100%;
    border: 1px solid rgba(28, 86, 139, 0.10);
    box-shadow: 0 20px 40px rgba(19, 56, 104, 0.10);
}

.import-spotlight-card strong {
    font-size: 1.22rem;
}

.dashboard-hero-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.18), transparent 20%),
        radial-gradient(circle at bottom left, rgba(28, 86, 139, 0.18), transparent 22%),
        linear-gradient(135deg, #ffffff, #f3f8ff);
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 22px 46px rgba(19, 56, 104, 0.12);
}

.dashboard-hero-card::after,
.public-landing-hero-card::after,
.portal-section-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    pointer-events: none;
}

.dashboard-hero-card h2,
.company-story-card h3,
.leadership-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.dashboard-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dashboard-hero-pills span {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(21, 51, 93, 0.08);
    font-weight: 700;
}

.dashboard-layout {
    grid-template-columns: 1.55fr 0.95fr;
}

.chart-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart-card {
    padding: 18px;
}

.chart-stack {
    display: grid;
    gap: 14px;
}

.chart-row {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) minmax(110px, 2fr) auto;
    gap: 10px;
    align-items: center;
}

.chart-label {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.88rem;
}

.chart-bar-shell {
    height: 12px;
    border-radius: 999px;
    background: rgba(21, 51, 93, 0.08);
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), #2e75b7);
}

.orange-bar {
    background: linear-gradient(135deg, var(--orange), #f3a54d);
}

.green-bar {
    background: linear-gradient(135deg, var(--green), #58c47f);
}

.chart-value {
    min-width: 26px;
    text-align: right;
    font-weight: 800;
    color: var(--primary-dark);
}

.quick-link-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(19, 56, 104, 0.14);
}

.subtle-quick-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
    border-color: rgba(21, 51, 93, 0.06);
    box-shadow: 0 12px 24px rgba(19, 56, 104, 0.06);
}

.subtle-quick-card strong {
    font-size: 1rem;
}

.subtle-quick-card p {
    display: none;
}

.directory-driver-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.directory-badge {
    min-width: 76px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef4fb;
    color: var(--primary);
    font-weight: 800;
    text-align: center;
    font-size: 0.78rem;
}

.directory-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.premium-directory-card {
    padding: 18px;
}

.company-showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
}

.company-story-card,
.leadership-card {
    padding: 24px;
}

.company-story-card {
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.14), transparent 20%),
        linear-gradient(140deg, #ffffff, #f3f8ff);
}

.company-story-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.company-story-points span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(28, 86, 139, 0.08);
    border: 1px solid rgba(21, 51, 93, 0.08);
    font-weight: 700;
    color: var(--primary-dark);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.leader-profile {
    display: grid;
    gap: 10px;
    text-align: center;
}

.leader-frame {
    padding: 10px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(28, 86, 139, 0.12), rgba(230, 135, 31, 0.16));
    box-shadow: 0 18px 30px rgba(19, 56, 104, 0.12);
}

.manager-frame {
    background: linear-gradient(145deg, rgba(21, 51, 93, 0.16), rgba(230, 135, 31, 0.12));
}

.leader-frame img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.leader-profile strong {
    font-size: 1.02rem;
}

.leader-profile small {
    color: var(--muted);
    line-height: 1.45;
}

.timesheet-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.timesheet-day-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(21, 51, 93, 0.08);
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.timesheet-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(19, 56, 104, 0.1);
}

.timesheet-day-card.entered {
    background: linear-gradient(135deg, #ffffff, #eefbf4);
}

.timesheet-day-card.missing {
    background: linear-gradient(135deg, #fff8f6, #fff0eb);
    border-color: rgba(199, 61, 44, 0.18);
    animation: missingPulse 1.8s ease-in-out infinite;
}

.timesheet-day-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(28, 86, 139, 0.1);
    font-weight: 800;
    color: var(--primary-dark);
}

.timesheet-day-card.missing .timesheet-day-number {
    background: rgba(199, 61, 44, 0.12);
    color: var(--danger);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulseFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes missingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(199, 61, 44, 0.08);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(199, 61, 44, 0.02);
    }
}

@keyframes portalGlow {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(28, 86, 139, 0.16);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 16px 34px rgba(230, 135, 31, 0.18);
        transform: translateY(-1px);
    }
}

@keyframes ambientSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes heroDrift {
    0%, 100% {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.06) translate3d(-10px, -6px, 0);
    }
}

.footer-wrap {
    padding: 0 0 24px;
}

.footer-strip {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
    padding: 0;
}

.footer-note-bar {
    width: min(1240px, calc(100% - 24px));
    margin: 8px auto 0;
    padding: 12px 18px;
    border-radius: 18px;
    background: linear-gradient(90deg, #143c70, #1d568c 42%, #ee9a30 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-weight: 700;
    box-shadow: 0 16px 36px rgba(19, 56, 104, 0.16);
}

.landing-page-body {
    background:
        radial-gradient(circle at top left, rgba(243, 150, 31, 0.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(20, 61, 112, 0.18), transparent 26%),
        linear-gradient(180deg, #f7f9fc 0%, #e9eff8 100%);
}

.public-landing-shell,
.login-page-shell {
    display: grid;
    gap: 18px;
}

.public-landing-logo-card,
.login-page-brand-card {
    padding: 0;
    overflow: hidden;
}

.public-page-topline {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.simple-landing-logo-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 253, 0.98));
    border: 1px solid rgba(17, 57, 104, 0.10);
}

.public-landing-logo-card,
.login-page-brand-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 24px 50px rgba(19, 56, 104, 0.12);
}

.public-landing-logo-card::after,
.login-page-brand-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    pointer-events: none;
}

.public-landing-logo,
.login-page-brand {
    width: 100%;
    display: block;
    margin: 0;
}

.public-landing-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    padding: 0;
}

.simple-landing-hero-card {
    border: 1px solid rgba(17, 57, 104, 0.12);
    box-shadow: 0 24px 52px rgba(16, 49, 91, 0.18);
}

.public-landing-image {
    position: absolute;
    inset: 0;
    background: url("service-hero-v2.png") center/cover no-repeat;
    transform: scale(1.02);
    animation: heroDrift 18s ease-in-out infinite;
}

.public-landing-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 31, 57, 0.82) 0%, rgba(10, 31, 57, 0.56) 34%, rgba(10, 31, 57, 0.10) 70%),
        linear-gradient(180deg, rgba(255, 164, 38, 0.05) 0%, rgba(12, 35, 67, 0.12) 100%);
}

.public-landing-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    min-height: 540px;
    max-width: 500px;
    padding: 34px;
}

.public-landing-content::before {
    content: "";
    position: absolute;
    inset: auto auto 14px 14px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 176, 71, 0.18), transparent 68%);
    filter: blur(6px);
    animation: pulseFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.public-landing-content h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    letter-spacing: -0.04em;
    line-height: 1.04;
    color: #ffffff;
}

.public-landing-content .lead {
    margin: 14px 0 0;
    max-width: 500px;
    color: #395271;
    font-size: 1rem;
}

.public-landing-content .eyebrow {
    color: #ffb24c;
}

.public-landing-actions {
    margin-top: 22px;
}

.public-landing-actions .button {
    min-width: 158px;
    border-radius: 14px;
}

.public-landing-actions .quote-button {
    background: linear-gradient(135deg, #f3951f, #f0ab46);
    box-shadow: 0 14px 28px rgba(243, 149, 31, 0.24);
}

.public-landing-actions .button-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: #123762;
    border: 1px solid rgba(18, 55, 98, 0.12);
}

.public-landing-actions .portal-launch-button {
    background: linear-gradient(135deg, #143c70, #245b97);
    box-shadow: 0 14px 28px rgba(20, 60, 112, 0.24);
}

.landing-contact-footer {
    width: 100%;
    margin: 0 0 28px;
    padding: 18px 20px;
    background: linear-gradient(90deg, #0f315c, #184a7d 42%, #f1a338 100%);
    box-shadow: 0 -10px 28px rgba(15, 49, 92, 0.12);
}

.landing-contact-wrap {
    width: min(1180px, calc(100% - 8px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
}

.landing-contact-wrap a {
    color: #ffffff;
}

.login-page-body {
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.12), transparent 18%),
        linear-gradient(180deg, #f5f8fc 0%, #e9eff8 100%);
}

.login-page-brand-card {
    display: grid;
    gap: 0;
    align-items: stretch;
    justify-items: stretch;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.16), transparent 22%),
        linear-gradient(135deg, #ffffff, #f4f8ff);
}

.login-page-copy {
    position: relative;
    padding: 24px 26px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 255, 0.92));
}

.login-page-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3.8vw, 2.7rem);
    letter-spacing: -0.04em;
}

.login-page-copy .lead {
    margin: 10px 0 0;
}

.portal-section-card {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(230, 135, 31, 0.10), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.98));
}

.login-page-brand-card,
.services-page-hero,
.public-landing-hero-card {
    position: relative;
    overflow: hidden;
}

.supplier-flow-list {
    display: grid;
    gap: 14px;
}

.supplier-flow-step {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(246, 249, 253, 0.98), rgba(232, 240, 249, 0.96));
    border: 1px solid rgba(18, 55, 98, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.supplier-flow-step strong {
    color: #143c70;
}

.supplier-flow-step span {
    color: #4e6278;
    font-size: 0.93rem;
}

.supplier-mini-stats {
    margin-bottom: 18px;
}

.supplier-hero-card {
    position: relative;
    overflow: hidden;
}

.supplier-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.supplier-meta-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 10px 18px rgba(19, 56, 104, 0.06);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.supplier-workspace-grid,
.supplier-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.supplier-surface-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.10), transparent 26%),
        radial-gradient(circle at bottom left, rgba(28, 86, 139, 0.08), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.985), rgba(244, 248, 255, 0.98));
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 20px 42px rgba(19, 56, 104, 0.10);
}

.supplier-surface-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--primary), var(--orange));
    opacity: 0.96;
}

.supplier-workspace-grid .action-panel {
    padding: 28px 22px 22px;
    overflow: visible;
    margin-bottom: 0;
}

.supplier-workspace-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px 18px;
}

.supplier-workspace-form label span {
    font-size: 0.86rem;
    color: var(--primary-dark);
    line-height: 1.25;
}

.supplier-workspace-form input,
.supplier-workspace-form select,
.supplier-workspace-form textarea {
    border-radius: 16px;
    min-height: 50px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.supplier-workspace-form textarea {
    min-height: 104px;
}

.supplier-workspace-form input::placeholder,
.supplier-workspace-form textarea::placeholder {
    font-size: 0.86rem;
}

.supplier-entry-form .check-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.supplier-entry-form .check-tile {
    min-height: 44px;
    padding: 10px 12px;
}

.supplier-workspace-grid .section-heading,
.supplier-table-grid .section-heading,
.supplier-ledger-card .section-heading,
.supplier-surface-card.search-panel .section-heading {
    padding-top: 2px;
}

.supplier-table-grid .table-card,
.supplier-ledger-card,
.supplier-surface-card.search-panel,
.supplier-surface-card.premium-directory-card {
    padding: 22px;
}

.supplier-ledger-card .table-wrap {
    margin-top: 10px;
}

.supplier-table-grid .table-wrap,
.supplier-ledger-card .table-wrap {
    border-radius: 18px;
    border: 1px solid rgba(21, 51, 93, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.supplier-workspace-grid .table-actions,
.supplier-table-grid .table-actions,
.supplier-ledger-card .table-actions {
    min-width: 0;
}

.supplier-workspace-grid .mini-action-link,
.supplier-table-grid .mini-action-link,
.supplier-ledger-card .mini-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(28, 86, 139, 0.08);
}

@media (max-width: 980px) {
    .action-grid,
    .detail-layout,
    .smart-facts,
    .login-stage-shell,
    .company-showcase-grid,
    .dashboard-layout,
    .chart-layout,
    .filter-grid,
    .landing-showcase-grid,
    .landing-signature-row,
    .leadership-mini-row,
    .services-grid,
    .import-focus-board,
    .import-focus-actions {
        grid-template-columns: 1fr;
    }

    .supplier-workspace-grid,
    .supplier-table-grid {
        grid-template-columns: 1fr;
    }

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

    .desk-chart-grid {
        grid-template-columns: 1fr;
    }

    .driver-desk-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .supplier-meta-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-section-top {
        align-items: start;
        flex-direction: column;
    }

    .hero-stage {
        align-items: start;
        flex-direction: column;
    }

    .workspace-switcher,
    .workspace-nav {
        width: 100%;
    }

    .dashboard-utility-actions,
    .compact-utility-form {
        flex-direction: column;
        align-items: stretch;
    }

    .public-landing-overlay {
        background:
            linear-gradient(180deg, rgba(10, 31, 57, 0.18) 0%, rgba(10, 31, 57, 0.36) 40%, rgba(10, 31, 57, 0.70) 100%);
    }

    .small-photo-panel {
        max-width: none;
    }

    .landing-hero-overlay,
    .services-page-hero-overlay {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 54%, rgba(255, 255, 255, 0.40) 100%);
    }
}

@media (max-width: 760px) {
    .actions-row,
    .search-row,
    .form-actions,
    .result-list li,
    .quick-result-row,
    .panel-titlebar,
    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-stage-footer {
        align-items: stretch;
    }

    .leadership-grid,
    .compact-filter-grid {
        grid-template-columns: 1fr;
    }

    .public-landing-content {
        padding: 24px 20px;
        min-height: 460px;
        align-content: end;
    }

    .public-landing-actions .button {
        width: 100%;
    }

    .landing-contact-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-note-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-nav {
        padding: 12px;
    }

    .workspace-switcher {
        padding: 12px;
    }

    .workspace-pill {
        flex: 1 1 140px;
    }

    .desk-card {
        min-height: 220px;
        padding: 22px;
    }

    .desk-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .desk-metrics,
    .driver-desk-filter-form {
        grid-template-columns: 1fr;
    }

    .driver-desk-actions,
    .driver-desk-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-banner-shell {
        padding: 10px 10px 12px;
        border-radius: 24px;
    }

    .entry-form,
    .two-column-form,
    .detail-grid,
    .mini-detail-grid,
    .panel-facts,
    .salary-master-grid,
    .driver-master-form {
        grid-template-columns: 1fr;
    }

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

    .summary-tags {
        flex-direction: column;
    }

    .mobile-shortcuts {
        position: sticky;
        top: 8px;
        z-index: 4;
        padding: 10px;
        background: rgba(244, 247, 251, 0.92);
        border-radius: 16px;
        backdrop-filter: blur(8px);
    }

    .mobile-shortcuts .button {
        flex: 1 1 120px;
    }
}

/* Minimal Desk UI Rebuild */
.workspace-universal .hero-stage,
.workspace-drivers .hero-stage,
.workspace-suppliers .hero-stage,
.workspace-customers .hero-stage,
.workspace-accounts .hero-stage {
    padding: 16px 20px;
    border-radius: 24px;
}

.workspace-universal .compact-copy h1,
.workspace-drivers .compact-copy h1,
.workspace-suppliers .compact-copy h1,
.workspace-customers .compact-copy h1,
.workspace-accounts .compact-copy h1 {
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
}

.workspace-lead {
    margin: 8px 0 0;
    max-width: 28ch;
    font-size: 0.96rem;
}

.simple-admin-nav {
    gap: 8px;
}

.simple-admin-nav .button {
    min-height: 38px;
    padding: 8px 14px;
}

.admin-desk-shell {
    display: grid;
    gap: 18px;
    padding-top: 12px;
}

.dashboard-desk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-desk-tile {
    position: relative;
    display: grid;
    align-content: space-between;
    min-height: 260px;
    padding: 24px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(21, 51, 93, 0.10);
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.10), transparent 24%),
        radial-gradient(circle at bottom left, rgba(28, 86, 139, 0.10), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 255, 0.98));
    box-shadow: 0 22px 44px rgba(19, 56, 104, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-desk-tile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--orange));
}

.admin-desk-tile::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -48px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 86, 139, 0.08), transparent 68%);
}

.admin-desk-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 52px rgba(19, 56, 104, 0.14);
    border-color: rgba(230, 135, 31, 0.22);
}

.admin-desk-visual {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-dark);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(233, 242, 255, 0.96));
    border: 1px solid rgba(21, 51, 93, 0.10);
    box-shadow: 0 16px 28px rgba(19, 56, 104, 0.10);
}

.admin-desk-visual-driver,
.vehicle-icon-chip {
    background: linear-gradient(145deg, rgba(20, 60, 112, 0.14), rgba(255, 255, 255, 0.98));
}

.admin-desk-visual-supplier {
    background: linear-gradient(145deg, rgba(230, 135, 31, 0.18), rgba(255, 255, 255, 0.98));
}

.admin-desk-visual-customer {
    background: linear-gradient(145deg, rgba(20, 60, 112, 0.10), rgba(230, 135, 31, 0.14));
}

.admin-desk-visual-accounts {
    background: linear-gradient(145deg, rgba(20, 60, 112, 0.18), rgba(230, 135, 31, 0.18));
}

.admin-desk-copy {
    display: grid;
    gap: 8px;
    max-width: 280px;
}

.admin-desk-copy h2,
.directory-card-body h2,
.desk-panel-head h2,
.accounts-link-card strong {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
}

.admin-desk-copy h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
}

.admin-desk-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--orange);
    background: rgba(230, 135, 31, 0.08);
}

.admin-desk-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.admin-desk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #2b6ba8);
    box-shadow: 0 14px 28px rgba(28, 86, 139, 0.18);
}

.admin-desk-toolbar,
.desk-panel-card,
.directory-card,
.accounts-link-card {
    border-radius: 24px;
    border: 1px solid rgba(21, 51, 93, 0.10);
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.05), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.98));
    box-shadow: 0 18px 38px rgba(19, 56, 104, 0.09);
}

.admin-desk-toolbar {
    padding: 18px 20px;
    display: grid;
    gap: 16px;
}

.admin-toolbar-row,
.directory-card-foot,
.directory-card-head,
.split-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-toolbar-actions,
.admin-filter-actions,
.mini-link-stack.inline-link-stack,
.split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.split-actions form {
    margin: 0;
}

.admin-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-mini-stats span,
.directory-stat-row span {
    display: inline-grid;
    gap: 2px;
    min-width: 108px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-mini-stats strong,
.directory-stat-row strong {
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.admin-mini-stats small,
.directory-stat-row small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.desk-single-filter {
    grid-template-columns: minmax(260px, 1fr) auto;
}

.admin-filter-grid label {
    gap: 6px;
}

.admin-filter-grid input,
.admin-filter-grid select,
.desk-form-grid input,
.desk-form-grid select,
.desk-form-grid textarea {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(21, 51, 93, 0.14);
    background: rgba(255, 255, 255, 0.98);
}

.admin-filter-actions {
    justify-content: flex-start;
}

.directory-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.driver-card-wall {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.directory-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.vehicle-icon-chip {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    font-size: 1.3rem;
    color: var(--primary-dark);
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 12px 22px rgba(19, 56, 104, 0.08);
}

.directory-card-body {
    display: grid;
    gap: 10px;
}

.directory-card-body h2 {
    font-size: 1.45rem;
    line-height: 1.05;
}

.directory-card-lines,
.mini-ledger-list,
.compact-step-list,
.mini-link-stack {
    display: grid;
    gap: 10px;
}

.directory-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(20, 60, 112, 0.05);
    color: var(--primary-dark);
}

.directory-line strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.directory-line small {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.directory-code {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.directory-open {
    min-width: 124px;
}

.directory-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.directory-empty {
    padding: 30px;
    text-align: center;
}

.directory-empty h2 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.supplier-directory-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100%;
    padding: 20px;
    gap: 16px;
    background:
        radial-gradient(circle at top right, rgba(240, 154, 42, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(28, 86, 139, 0.10), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.995), rgba(242, 247, 255, 0.985));
    border: 1px solid rgba(21, 51, 93, 0.10);
    box-shadow: 0 18px 40px rgba(19, 56, 104, 0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.supplier-directory-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(20, 60, 112, 0.98), rgba(240, 154, 42, 0.96));
}

.supplier-directory-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -88px;
    top: -92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 154, 42, 0.18), rgba(240, 154, 42, 0.01) 72%);
    animation: supplierCardAura 7s ease-in-out infinite;
    pointer-events: none;
}

.supplier-directory-card > * {
    position: relative;
    z-index: 1;
}

.supplier-directory-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 154, 42, 0.24);
    box-shadow: 0 28px 56px rgba(19, 56, 104, 0.16);
}

.supplier-directory-card.partnership-card {
    background:
        radial-gradient(circle at top right, rgba(20, 60, 112, 0.16), transparent 26%),
        radial-gradient(circle at bottom left, rgba(240, 154, 42, 0.14), transparent 28%),
        linear-gradient(145deg, rgba(255, 252, 246, 0.995), rgba(244, 248, 255, 0.985));
}

.supplier-directory-card.partnership-card::before {
    background: linear-gradient(90deg, rgba(240, 154, 42, 0.98), rgba(20, 60, 112, 0.96));
}

.supplier-directory-card .directory-card-head {
    align-items: flex-start;
}

.supplier-directory-card .vehicle-icon-chip {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #143c70;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 255, 0.98));
    border: 1px solid rgba(21, 51, 93, 0.08);
    box-shadow: 0 14px 24px rgba(19, 56, 104, 0.10);
}

.supplier-directory-card.partnership-card .vehicle-icon-chip {
    color: #b76712;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 225, 0.98));
}

.supplier-directory-card .directory-card-body {
    gap: 12px;
}

.supplier-directory-card .directory-card-body h2 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1;
    word-break: break-word;
    text-wrap: balance;
}

.supplier-directory-card .directory-card-lines {
    gap: 12px;
}

.supplier-directory-card .directory-line {
    padding: 11px 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(21, 51, 93, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.supplier-directory-card .directory-stat-row {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.supplier-directory-card .directory-stat-row span {
    min-width: 0;
    min-height: 74px;
    align-content: start;
    padding: 12px 13px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(21, 51, 93, 0.07);
}

.supplier-directory-card .directory-stat-row strong {
    font-size: 1.2rem;
}

.supplier-directory-card .directory-card-foot {
    margin-top: 2px;
}

.supplier-directory-card .directory-open {
    flex: 1 1 0;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.supplier-directory-card .directory-open:first-child {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #173f66, #2f70ae);
    box-shadow: 0 12px 22px rgba(19, 56, 104, 0.16);
}

.supplier-directory-card .directory-open:first-child:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(19, 56, 104, 0.22);
}

.supplier-directory-card .directory-open:last-child {
    background: rgba(255, 255, 255, 0.96);
}

@keyframes supplierCardAura {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.92;
    }
    50% {
        transform: translate3d(-10px, 8px, 0) scale(1.08);
        opacity: 1;
    }
}

.desk-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
}

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

.desk-side-stack {
    display: grid;
    gap: 18px;
}

.desk-panel-card {
    padding: 18px;
}

.supplier-detail-shell .desk-panel-card {
    padding: 20px;
}

.supplier-overview-card {
    display: grid;
    gap: 18px;
}

.supplier-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.supplier-statement-grid {
    margin-bottom: 14px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.supplier-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    font-size: 0.8rem;
}

.supplier-status-pill.status-approved,
.supplier-status-pill.status-pending,
.supplier-status-pill.status-rejected {
    border-width: 1px;
    border-style: solid;
}

.supplier-status-pill.status-approved {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    border-color: rgba(15, 118, 110, 0.18);
}

.supplier-status-pill.status-pending {
    background: rgba(230, 135, 31, 0.1);
    color: #b45309;
    border-color: rgba(230, 135, 31, 0.2);
}

.supplier-status-pill.status-rejected {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.18);
}

.company-clean-layout {
    grid-template-columns: 1fr;
}

.company-clean-layout .form-panel {
    max-width: none;
}

.partnership-summary-grid {
    margin: 4px 0 14px;
}

.supplier-month-filter {
    margin-bottom: 14px;
}

.desk-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.desk-panel-head h2 {
    font-size: 1.5rem;
}

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

.invoice-entry-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.invoice-form-card,
.invoice-table-card {
    overflow: hidden;
}

.invoice-form-grid {
    align-items: start;
}

.invoice-line-editor {
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.99), rgba(238, 245, 255, 0.96));
    border: 1px solid rgba(21, 51, 93, 0.10);
    overflow-x: auto;
}

.invoice-line-header,
.invoice-line-row {
    grid-template-columns: minmax(0, 2.8fr) minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    min-width: 720px;
}

.invoice-line-header {
    padding: 0 4px;
    color: var(--primary-dark);
}

.invoice-line-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.invoice-value-chip {
    display: inline-grid;
    gap: 2px;
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(21, 51, 93, 0.08);
}

.invoice-value-chip strong {
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.invoice-value-chip small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.invoice-open-list {
    max-height: 430px;
    overflow: auto;
}

.maintenance-filter-grid {
    grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.3fr) auto;
}

.maintenance-line-editor {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(230, 135, 31, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.99), rgba(238, 245, 255, 0.96));
    border: 1px solid rgba(21, 51, 93, 0.10);
    overflow-x: auto;
}

.maintenance-line-header,
.maintenance-line-row {
    display: grid;
    grid-template-columns: minmax(0, 2.8fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 620px;
}

.maintenance-line-header {
    padding: 0 4px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.maintenance-line-row input[readonly] {
    background: rgba(21, 51, 93, 0.05);
    color: var(--ink);
    font-weight: 700;
}

.maintenance-subhead {
    margin-top: 18px;
}

.compact-check-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.compact-side-card {
    align-self: start;
}

.compact-step-list span,
.mini-link-pill,
.accounts-link-card,
.mini-ledger-row {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 51, 93, 0.08);
}

.compact-step-list span,
.mini-ledger-row {
    color: var(--primary-dark);
    font-weight: 700;
}

.mini-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    color: var(--primary-dark);
    font-weight: 800;
}

.mini-ledger-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.mini-ledger-row strong {
    font-size: 0.92rem;
}

.mini-ledger-row span {
    color: var(--muted);
    font-weight: 700;
}

.stacked-row {
    align-items: flex-start;
    flex-direction: column;
}

.accounts-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.accounts-link-card {
    display: grid;
    gap: 4px;
    min-height: 118px;
    align-content: end;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.accounts-link-card strong {
    font-size: 1.2rem;
}

.accounts-link-card span {
    color: var(--muted);
    font-weight: 700;
}

.accounts-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(19, 56, 104, 0.12);
}

@media (max-width: 1040px) {
    .dashboard-desk-grid,
    .desk-content-grid,
    .compact-content-grid,
    .accounts-link-grid {
        grid-template-columns: 1fr;
    }

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

    .desk-single-filter {
        grid-template-columns: 1fr auto;
    }

    .invoice-entry-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dashboard-desk-grid,
    .admin-filter-grid,
    .desk-single-filter,
    .desk-form-grid,
    .directory-stat-row {
        grid-template-columns: 1fr;
    }

    .admin-desk-tile {
        min-height: 220px;
        padding: 20px;
    }

    .admin-toolbar-row,
    .admin-toolbar-actions,
    .admin-mini-stats,
    .admin-filter-actions,
    .directory-card-foot,
    .split-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .directory-line,
    .mini-ledger-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .directory-open,
    .mini-link-pill,
    .admin-filter-actions .button {
        width: 100%;
    }
}
.public-landing-access-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.public-landing-access-head p,
.public-landing-access-head h2 {
    margin: 0;
}

.public-landing-access-head {
    display: grid;
    gap: 0.4rem;
}

.portal-toggle-field {
    display: grid;
    gap: 0.6rem;
    align-content: start;
}

.inline-check-tile {
    max-width: 20rem;
}

.supplier-portal-shell .desk-panel-card {
    min-height: 100%;
}
