:root {
    --navy: #10243d;
    --orange: #f36a16;
    --green: #16b86a;
    --blue: #0878d1;
    --ink: #17202a;
    --muted: #64748b;
    --line: #e7eef5;
    --mist: #f5f9fd;
    --danger: #b42318;
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --shadow: 0 6px 18px rgba(16, 36, 61, 0.04);
    --shadow-hover: 0 10px 20px rgba(16, 36, 61, 0.06);
}

* { box-sizing: border-box; }

/* Global SVG Icon normalization */
.adm-ico,
svg.adm-ico {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    max-width: 100%;
    flex-shrink: 0;
}


/* Premium Global Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html.adm-html,
html.adm-html body.adm {
    height: 100%;
    margin: 0;
    overflow: hidden;
}
body.adm { margin: 0; font-family: var(--font); color: var(--ink); background: var(--mist); }
body.adm--fleet { background: #f4f8fc; }
.adm-shade {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    padding: 0;
    background: rgba(8, 18, 32, 0.45);
    cursor: pointer;
}
.adm-shell {
    display: flex;
    height: 100%;
    overflow: hidden;
}
.adm-side,
.adm-side--dock {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0b192c;
    color: #ffffff;
    padding: 12px 0 12px 0;
    overflow: visible;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 2px 0 16px rgba(11, 25, 44, 0.15);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-side__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin-bottom: 12px;
    width: 100%;
    gap: 10px;
    padding: 0 10px;
    box-sizing: border-box;
}

.adm-side__brand-meta {
    display: none;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.adm-side__brand-meta strong {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.adm-side__brand-meta span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(213, 225, 240, 0.55);
    line-height: 1.2;
}

.adm-side__close {
    display: none;
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.adm-side__close:hover,
.adm-side__close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.adm-rail-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 22px;
    height: 22px;
}

.adm-rail-label {
    display: none;
    min-width: 0;
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-brand-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.adm-brand-circle:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.adm-brand-circle__text {
    color: #ffffff;
    line-height: 1;
}

.adm-side__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    scrollbar-width: none;
}

.adm-side__rail::-webkit-scrollbar {
    display: none;
    width: 0;
}

.adm-rail-btn {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(213, 225, 240, 0.72);
    text-decoration: none;
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    flex: none;
}

.adm-rail-btn .adm-ico {
    width: 22px;
    height: 22px;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, filter 0.2s ease;
    shape-rendering: geometricPrecision;
}

.adm-rail-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.adm-rail-btn:hover .adm-ico {
    transform: scale(1.08);
}

.adm-rail-btn.is-active {
    background: linear-gradient(135deg, #ff8a3d 0%, #f36a16 55%, #e05305 100%);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(243, 106, 22, 0.48), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
    transform: none;
}

.adm-rail-btn.is-active .adm-ico {
    color: #ffffff;
    transform: none;
}

/* Super Admin Special Button Styling (Flaticon Administrator Model) */
.adm-rail-btn--super {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.adm-rail-btn--super:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.26) 0%, rgba(99, 102, 241, 0.26) 100%);
    border-color: rgba(192, 132, 252, 0.5);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.adm-rail-btn--super:hover .adm-ico {
    transform: scale(1.08);
}

.adm-rail-btn--super.is-active {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6366f1 100%) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.45) !important;
}

/* Tooltip on hover */
.adm-rail-btn[data-tooltip] {
    position: relative;
}

.adm-rail-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    background: #091a2e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
    z-index: 1000;
}

.adm-rail-btn[data-tooltip]::before {
    content: "";
    position: absolute;
    left: calc(100% + 5px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #091a2e;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 1000;
}

.adm-rail-btn[data-tooltip]:hover::after,
.adm-rail-btn[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.adm-rail-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #091a2e, 0 2px 6px rgba(239, 68, 68, 0.4);
}

.adm-side__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: none;
}

.adm-rail-btn--logout {
    color: rgba(239, 68, 68, 0.75);
}

.adm-rail-btn--logout:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.adm-rail-btn--logout:hover .adm-ico {
    transform: translateX(1px) scale(1.06);
}

/* ==========================================================================
   MAIN VIEWPORT & TOPBAR
   ========================================================================== */
.adm-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    margin-left: 64px;
    width: calc(100% - 64px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f4f8fc;
}

.adm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: none;
    min-height: 64px;
    padding: 8px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 20;
}

.adm-top__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.adm-top__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.adm-top__logo img {
    height: 34px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.adm-menu {
    display: none;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: #f1f5f9;
    padding: 9px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.adm-menu span {
    display: block;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
}

.adm-search {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 auto 0 16px;
}

.adm-search .adm-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.adm-search input {
    width: 100%;
    min-height: 38px;
    padding: 0 16px 0 40px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font: inherit;
    font-size: 13px;
    color: #0f172a;
    transition: all 0.16s ease;
}

.adm-search input:focus {
    background: #ffffff;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    outline: none;
}

.adm-top__meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.adm-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.adm-date-pill .adm-ico {
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.adm-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 12px 4px 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.adm-user-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.adm-user-pill .adm-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    display: grid;
    place-items: center;
    flex: none;
}

.adm-user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.adm-user-meta strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.adm-user-meta small {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
}

.adm-user-pill .adm-ico {
    width: 13px;
    height: 13px;
    color: #94a3b8;
    margin-left: 2px;
}

/* ==========================================================================
   HERO / HEADER SECTION & BREADCRUMBS
   ========================================================================== */
.cf-hero {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.cf-hero__crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.cf-hero__crumb .sep {
    color: #cbd5e1;
    font-size: 14px;
}

.cf-hero__crumb strong {
    color: #0f172a;
    font-weight: 700;
}

.cf-hero__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cf-hero__copy h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.cf-hero__copy p {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #64748b;
}

.cf-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cf-add,
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    border: 0;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.28);
    transition: all 0.16s ease;
    cursor: pointer;
}

.cf-add .adm-ico,
.btn-solid .adm-ico {
    width: 15px;
    height: 15px;
    color: #ffffff;
}

.cf-add:hover,
.btn-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(234, 88, 12, 0.38);
    color: #ffffff !important;
}

.cf-btn-secondary,
.cf-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    cursor: pointer;
}

.cf-btn-secondary .adm-ico,
.cf-btn-export .adm-ico {
    width: 15px;
    height: 15px;
    color: #64748b;
}

.cf-btn-secondary:hover,
.cf-btn-export:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.cf-btn-secondary:hover .adm-ico,
.cf-btn-export:hover .adm-ico {
    color: #0f172a;
}

.cf-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #cbd5e1;
}

.cf-empty-icon .adm-ico {
    width: 44px;
    height: 44px;
    stroke-width: 1.5;
    color: #cbd5e1;
}


/* ==========================================================================
   HORIZONTAL SUB-NAVIGATION PILLS
   ========================================================================== */
.adm-subnav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    scrollbar-width: none;
}

.adm-subnav::-webkit-scrollbar {
    display: none;
    width: 0;
}

.adm-subnav__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.adm-subnav__item .adm-ico {
    width: 15px;
    height: 15px;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.adm-subnav__item:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.adm-subnav__item:hover .adm-ico {
    color: #0f172a;
}

.adm-subnav__item.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.adm-subnav__item.is-active .adm-ico {
    color: #f97316;
}

/* ==========================================================================
   SPARKLINE KPI METRIC CARDS
   ========================================================================== */
.cf-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.cf-kpis--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cf-kpis--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cf-kpis--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.cf-kpis--6 .cf-kpi {
    padding: 12px 12px 8px;
    border-radius: 14px;
    min-width: 0;
}

.cf-kpis--6 .cf-kpi__label {
    font-size: 11px;
    line-height: 1.25;
}

.cf-kpis--6 .cf-kpi__val {
    font-size: 22px;
}

.cf-kpis--6 .cf-kpi__note {
    font-size: 11px;
}

.cf-kpis--6 .cf-kpi__icon {
    width: 34px;
    height: 34px;
}

.cf-kpis--6 .cf-kpi__mark {
    opacity: 0.08;
}

.cf-kpi {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 118px;
}

.cf-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.cf-kpi__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.cf-kpi__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
}

.cf-kpi__icon .adm-ico {
    width: 20px;
    height: 20px;
}

.cf-kpi--blue .cf-kpi__icon {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.cf-kpi--green .cf-kpi__icon {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.cf-kpi--orange .cf-kpi__icon {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.cf-kpi--purple .cf-kpi__icon {
    background: #faf5ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

.cf-kpi--red .cf-kpi__icon {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cf-kpi__meta {
    flex: 1;
    min-width: 0;
}

.cf-kpi__label {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.cf-kpi__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 2px;
}

.cf-kpi__val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cf-kpi__trend {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

.cf-kpi__trend--up {
    background: #dcfce7;
    color: #15803d;
}

.cf-kpi__trend--warn {
    background: #fef3c7;
    color: #b45309;
}

.cf-kpi__note {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    display: block;
}

.cf-kpi__spark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 38px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

/* ==========================================================================
   PANEL, TOOLBAR FILTERS & DATA TABLES
   ========================================================================== */
.cf-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.cf-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.cf-panel__head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.cf-panel__head p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #64748b;
}

.cf-views {
    display: inline-flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.cf-views a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #64748b;
}

.cf-views a.is-on {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cf-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.cf-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.cf-search .adm-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #94a3b8;
    pointer-events: none;
}

.cf-search input {
    width: 100%;
    min-height: 38px;
    padding: 0 14px 0 36px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    color: #0f172a;
    transition: all 0.15s ease;
}

.cf-search input:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.cf-filters select {
    min-height: 38px;
    padding: 0 30px 0 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 8px center / 16px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    appearance: none;
    cursor: pointer;
}

.cf-filters select:focus {
    border-color: #f97316;
    outline: none;
}

.cf-filter {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    border: 0;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cf-filter:hover {
    background: #1e293b;
}

.cf-reset {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cf-reset:hover {
    color: #ef4444;
}

/* Data Table */
.cf-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.cf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.cf-table th {
    padding: 12px 14px;
    background: #f8fafc;
    font-size: 11.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.cf-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.cf-table tr:last-child td {
    border-bottom: 0;
}

.cf-table tr:hover td {
    background: #f8fafc;
}

.cf-code a {
    font-family: monospace;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    font-size: 13.5px;
}

.cf-code a:hover {
    text-decoration: underline;
}

.cf-rate {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.cf-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cf-view {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.cf-view:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.bk-act {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background: #f8fafc;
    color: #334155;
    transition: all 0.15s ease;
}

.bk-act--next {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.bk-act--next:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.bk-act--wa {
    background: #25d366;
    color: #ffffff !important;
    border-color: #25d366;
}

.bk-act--wa:hover {
    background: #1eb954;
    border-color: #1eb954;
}

/* Dropdown menu */
.cf-more {
    position: relative;
    display: inline-block;
}

.cf-more summary {
    list-style: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    gap: 2px;
}

.cf-more summary::-webkit-details-marker {
    display: none;
}

.cf-more summary i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #64748b;
    display: block;
}

.cf-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 4px;
    min-width: 140px;
    z-index: 100;
}

.cf-menu a,
.cf-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border: 0;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
}

.cf-menu a:hover,
.cf-menu button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.cf-menu .cf-menu-divider,
.cf-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

.cf-menu button.cf-menu-btn--danger,
.cf-menu a.cf-menu-btn--danger {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

.cf-menu button.cf-menu-btn--danger:hover,
.cf-menu a.cf-menu-btn--danger:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.cf-btn-permanent-delete {
    color: #dc2626 !important;
    background: #fff1f2 !important;
    border: 1.5px solid #fecaca !important;
    font-weight: 700 !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    transition: all 0.18s ease !important;
}

.cf-btn-permanent-delete:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #b91c1c !important;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.16) !important;
}

/* Vehicle Actions Modal Trigger */
.cf-action-trigger {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: all 0.18s ease;
}

.cf-action-trigger:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.cf-action-trigger i {
    display: block;
    width: 3.5px;
    height: 3.5px;
    margin: 1.2px 0;
    border-radius: 50%;
    background: #1e293b;
    transition: background 0.18s ease;
}

.cf-action-trigger:hover i {
    background: #0284c7;
}

/* Upward flip for legacy dropdown on lower table rows */
.cf-table tr:last-child .cf-menu,
.cf-table tr:nth-last-child(2) .cf-menu {
    top: auto;
    bottom: calc(100% + 4px);
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Keep open action menus above clipped table scroll areas */
.cf-table-wrap:has(.cf-more[open]),
.cust-table-wrap:has(.cf-more[open]) {
    overflow: visible;
}
.cf-table tr:has(.cf-more[open]),
.cf-card:has(.cf-more[open]) {
    position: relative;
    z-index: 40;
}
.cf-more[open] {
    z-index: 50;
}
.cf-more[open] .cf-menu {
    z-index: 60;
}
.cf-more summary:hover,
.cf-more[open] summary {
    background: #eef2f7;
    border-color: #cbd5e1;
}
.cf-menu__item {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px !important;
    border-radius: 10px !important;
    text-decoration: none;
    color: #0f172a;
}
.cf-menu__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
}
.cf-menu__ico .adm-ico {
    width: 15px;
    height: 15px;
}
.cf-menu__txt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    text-align: left;
}
.cf-menu__txt strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}
.cf-menu__txt small {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
}
.cf-menu__item:hover .cf-menu__ico {
    background: #e2e8f0;
}
.cf-menu__item--wa .cf-menu__ico {
    background: #ecfdf5;
    color: #059669;
}
.cf-menu__item--wa:hover {
    background: #ecfdf5 !important;
}
.cf-menu__item--danger .cf-menu__txt strong {
    color: #dc2626;
}
.cf-menu__item--danger .cf-menu__ico {
    background: #fef2f2;
    color: #dc2626;
}
.cf-menu__item--danger:hover {
    background: #fef2f2 !important;
}
.cf-menu form {
    display: block;
    width: 100%;
    margin: 0;
}
.cust-menu {
    min-width: 220px;
    padding: 6px !important;
    right: 0;
    left: auto;
}

/* Fixed floating action menus (escape table overflow clipping) */
.cf-menu.is-fixed-pop {
    position: fixed !important;
    z-index: 10050 !important;
    margin: 0 !important;
    right: auto !important;
    bottom: auto !important;
    min-width: 240px !important;
    max-width: min(320px, calc(100vw - 16px)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px;
    padding: 6px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18) !important;
    white-space: normal !important;
}

/* Action Modal Tiles */
.adm-action-tile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.adm-action-tile:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.adm-action-tile__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.adm-action-tile__icon.tone-blue { background: #eff6ff; color: #2563eb; }
.adm-action-tile__icon.tone-purple { background: #faf5ff; color: #7c3aed; }
.adm-action-tile__icon.tone-orange { background: #fff7ed; color: #ea580c; }
.adm-action-tile__icon.tone-amber { background: #fffbeb; color: #d97706; }
.adm-action-tile__icon.tone-danger { background: #fee2e2; color: #dc2626; }

.adm-action-tile__text {
    flex: 1;
    min-width: 0;
}

.adm-action-tile__text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.adm-action-tile__text span {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
}

.adm-action-tile__arrow {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 700;
    transition: transform 0.18s ease, color 0.18s ease;
}

.adm-action-tile:hover .adm-action-tile__arrow {
    transform: translateX(3px);
    color: #0284c7;
}

.adm-action-tile--danger {
    background: #fff5f5 !important;
    border-color: #fecaca !important;
}

.adm-action-tile--danger:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.14) !important;
}

.adm-action-tile__badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Badges & Status Pills */
.cf-badge,
.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cf-badge--issued,
.cf-badge--active,
.cf-badge--confirmed,
.cf-badge--completed,
.cf-badge--available,
.adm-badge--green {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.cf-badge--pending,
.cf-badge--draft,
.cf-badge--payment_pending,
.cf-badge--ready_for_pickup,
.adm-badge--orange {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.cf-badge--cancelled,
.cf-badge--rejected,
.cf-badge--maintenance,
.adm-badge--red {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cf-badge--on_rent,
.adm-badge--blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.cf-badge--inactive,
.adm-badge--purple {
    background: #faf5ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

.adm-badge--gray {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}


/* Mobile Responsiveness */
@media (max-width: 900px) {
    .adm-html,
    .adm,
    .adm-shell,
    .adm-main {
        overflow-x: hidden;
        max-width: 100vw;
    }
    body.adm-nav-open {
        overflow: hidden;
        touch-action: none;
    }
    body.adm-nav-open .adm-main,
    body.adm-nav-open .adm-content {
        overflow: hidden !important;
        overscroll-behavior: none;
        touch-action: none;
    }
    .adm-side,
    .adm-side--dock {
        width: min(300px, 88vw);
        max-width: 300px;
        align-items: stretch;
        padding: 10px 0 max(14px, env(safe-area-inset-bottom, 0px));
        padding-left: env(safe-area-inset-left, 0px);
        transform: translateX(-105%);
        box-shadow: 8px 0 32px rgba(8, 18, 32, 0.45);
        /* Above sticky bars / FABs (≤95); below AdminModal (~100000) */
        z-index: 1200;
    }
    .adm-nav-open .adm-side,
    .adm-nav-open .adm-side--dock {
        transform: translateX(0);
    }
    .adm-nav-open .adm-shade {
        display: block;
        z-index: 1190;
    }
    .adm-side__brand {
        justify-content: flex-start;
        margin-bottom: 8px;
        padding: 4px 12px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .adm-side__brand-meta {
        display: flex;
    }
    .adm-side__close {
        display: inline-flex;
    }
    .adm-side__rail {
        align-items: stretch;
        gap: 4px;
        padding: 6px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .adm-side__bottom {
        align-items: stretch;
        padding: 10px 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
    .adm-rail-btn {
        width: 100%;
        height: auto;
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 12px;
        justify-content: flex-start;
        gap: 12px;
        box-sizing: border-box;
    }
    .adm-rail-btn:hover {
        transform: none;
    }
    .adm-rail-btn--super:hover {
        transform: none;
    }
    .adm-rail-label {
        display: block;
    }
    .adm-rail-badge {
        position: static;
        margin-left: auto;
        flex: none;
        min-width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 11px;
        box-shadow: 0 0 0 2px transparent, 0 2px 6px rgba(239, 68, 68, 0.35);
    }
    .adm-rail-btn.is-active .adm-rail-badge {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(239, 68, 68, 0.35);
    }
    .adm-rail-btn[data-tooltip]::after,
    .adm-rail-btn[data-tooltip]::before {
        display: none !important;
    }
    .adm-main {
        margin-left: 0;
        width: 100%;
    }
    .adm-menu {
        display: flex;
    }
    .adm-search {
        display: none;
    }
    .cf-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .adm-top {
        gap: 8px;
        padding: 8px 12px;
        min-height: 56px;
    }
    .adm-top__logo img {
        height: 28px;
        max-width: min(120px, 28vw);
    }
    .adm-top__meta {
        gap: 6px;
        min-width: 0;
    }
    .adm-user-meta {
        display: none;
    }
    .adm-content {
        padding: 12px;
        overflow-x: hidden;
        max-width: 100%;
    }
    .cf,
    .cf--list,
    .cf-hero {
        max-width: 100%;
        min-width: 0;
    }
    .cf-hero {
        padding: 12px;
        border-radius: 14px;
        overflow: hidden;
    }
    .cf-hero__main {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cf-hero__copy {
        min-width: 0;
        max-width: 100%;
    }
    .cf-hero__crumb {
        flex-wrap: nowrap;
        overflow: hidden;
        max-width: 100%;
    }
    .cf-hero__crumb span,
    .cf-hero__crumb strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
    .cf-hero__crumb span:first-child {
        flex: 0 1 auto;
        max-width: 42%;
    }
    .cf-hero__crumb strong {
        flex: 1 1 auto;
    }
    .cf-hero h1 {
        font-size: 18px;
        overflow-wrap: anywhere;
    }
    .cf-hero p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cf-hero__actions {
        width: 100%;
    }
    .cf-hero__actions .cf-btn-secondary,
    .cf-hero__actions .cf-add,
    .cf-hero__actions a {
        width: 100%;
        justify-content: center;
        min-height: 42px;
    }
    .adm-subnav {
        margin: 0 -4px;
        padding: 10px 4px 2px;
        max-width: calc(100% + 8px);
    }
}

@media (max-width: 600px) {
    .cf-kpis {
        grid-template-columns: 1fr;
    }
    .adm-top {
        padding: 8px 10px;
    }
    .adm-date-pill {
        display: none;
    }
    .adm-help-bell,
    .adm-bell {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}

.adm-bell {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    padding: 0;
}
.adm-bell .adm-ico {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.adm-bell:hover {
    background: #f8fafc;
    color: #f36a16;
    border-color: #fdba74;
    box-shadow: 0 4px 12px rgba(243, 106, 22, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}
.adm-bell:hover .adm-ico {
    animation: bellSwing 0.6s ease-in-out;
}
.adm-reload:hover .adm-ico {
    animation: none;
    transform: rotate(-45deg);
}
.adm-reload.is-spinning .adm-ico {
    animation: admReloadSpin 0.7s linear infinite;
}
@keyframes admReloadSpin {
    to { transform: rotate(360deg); }
}
.adm-bell[aria-expanded="true"] {
    background: #fff7ed;
    color: #ea580c;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2), 0 4px 12px rgba(249, 115, 22, 0.15);
}
.adm-bell:active {
    transform: scale(0.95);
}
.adm-bell b {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #ffffff, 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
@keyframes bellSwing {
    0% { transform: rotate(0); }
    20% { transform: rotate(-14deg); }
    40% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(4deg); }
    100% { transform: rotate(0); }
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px #ffffff, 0 2px 6px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 2px #ffffff, 0 0 10px rgba(239, 68, 68, 0.7); }
}
.adm-notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.adm-notif-pop {
    position: absolute;
    top: calc(100% + 12px);
    right: -100px;
    width: 390px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.22), 0 8px 20px -4px rgba(15, 23, 42, 0.08);
    z-index: 1200;
    overflow: visible;
    transform-origin: calc(100% - 120px) top;
    animation: admNotifPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.adm-notif-pop::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 114px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
    z-index: 10;
}
.adm-notif-pop[hidden] {
    display: none !important;
}
@keyframes admNotifPopIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.adm-notif-pop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 2;
}
.adm-notif-pop__head strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    display: block;
    line-height: 1.2;
}
.adm-notif-pop__head small {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}
.adm-notif-pop__action {
    font-size: 11.5px;
    font-weight: 700;
    color: #ea580c;
    text-decoration: none;
    padding: 5px 12px;
    background: #fff7ed;
    border-radius: 8px;
    border: 1px solid #fed7aa;
    transition: all 0.18s ease;
}
.adm-notif-pop__action:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}
.adm-notif-pop__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 380px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}
.adm-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.adm-notif-item:hover {
    background: #f8fafc;
}
.adm-notif-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.adm-notif-item__icon svg {
    width: 18px;
    height: 18px;
}
.adm-notif-item__icon--blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.adm-notif-item__icon--green {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.adm-notif-item__icon--orange {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}
.adm-notif-item__icon--red {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecdd3;
}
.adm-notif-item__body {
    flex: 1;
    min-width: 0;
}
.adm-notif-item__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 3px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.adm-notif-item__title span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adm-notif-item__meta {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adm-notif-item__time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.adm-notif-empty {
    padding: 32px 18px;
    text-align: center;
    color: #64748b;
}
.adm-notif-empty p svg {
    width: 36px;
    height: 36px;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.adm-notif-empty h3 {
    margin: 0 0 4px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
}
.adm-notif-pop__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}
.adm-notif-pop__foot a {
    color: #ea580c;
    text-decoration: none;
    transition: color 0.15s ease;
}
.adm-notif-pop__foot a:hover {
    color: #c2410c;
    text-decoration: underline;
}
.adm-user { display: flex; align-items: center; gap: 10px; }
.adm-user strong, .adm-user small { display: block; }
.adm-user strong { font-size: 14px; color: var(--navy); }
.adm-user small { color: var(--muted); font-size: 12px; }
.adm-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #16365c;
    color: #fff;
    font-weight: 800;
}
.adm-content { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px 32px; }
.adm-foot {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 0;
    padding: 6px 18px;
    background: #081729;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 11.5px;
    line-height: 1.2;
    z-index: 15;
}
.adm-foot p { margin: 0; font-weight: 600; }
.adm-foot__partner {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    color: inherit;
    text-decoration: none;
}
.adm-foot__credit { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 14px; }
.adm-foot__partner:hover { color: inherit; opacity: 0.92; }
.adm-foot__line { font-weight: 600; white-space: nowrap; color: #94a3b8; }
.adm-foot__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
}
.adm-foot__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}
.adm-foot__pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}
.adm-foot__pill--ver {
    font-family: 'JetBrains Mono', monospace;
    color: #cbd5e1;
}
.adm-foot__pill--cloud {
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}
.adm-foot__pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: footPulse 2s infinite;
}
@keyframes footPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.adm-foot__pill--sec {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
}
.adm-foot__pill--sec .adm-ico {
    width: 12px;
    height: 12px;
    stroke-width: 2.2;
}
.adm-foot__pill--php {
    font-family: 'JetBrains Mono', monospace;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.25);
}
.adm-foot__mark {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}
.adm-foot__partner:hover .adm-foot__mark {
    transform: translateY(-1px) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}
.adm-foot__brand {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: center;
    background: linear-gradient(
        90deg,
        #38bdf8 0%,
        #818cf8 18%,
        #c084fc 36%,
        #f472b6 54%,
        #fb923c 72%,
        #34d399 90%,
        #38bdf8 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: jnvMultiColorFlow 3.5s linear infinite;
    display: block;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}
.adm-foot__tag {
    display: block;
    position: relative;
    padding-top: 2px;
    font-size: 5.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        #38bdf8 0%,
        #818cf8 18%,
        #c084fc 36%,
        #f472b6 54%,
        #fb923c 72%,
        #34d399 90%,
        #38bdf8 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: jnvMultiColorFlow 3.5s linear infinite;
}
.adm-foot__tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        #38bdf8 0%,
        #818cf8 18%,
        #c084fc 36%,
        #f472b6 54%,
        #fb923c 72%,
        #34d399 90%,
        #38bdf8 100%
    );
    background-size: 200% auto;
    animation: jnvMultiColorFlow 3.5s linear infinite;
    opacity: 0.85;
}
@keyframes jnvMultiColorFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}
.adm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.muted { color: var(--muted); }
.dash-empty {
    margin: 0;
    padding: 22px 12px;
    text-align: center;
    color: var(--muted);
}
.dash-empty--icon { display: grid; justify-items: center; gap: 8px; padding: 28px 12px; }
.dash-empty--icon .adm-ico { width: 28px; height: 28px; color: #94a3b8; }
.dash-empty--chart { display: grid; justify-items: center; gap: 6px; padding: 36px 12px; }
.dash-empty--chart p { margin: 0; }
.dash-empty__bars { display: flex; align-items: flex-end; gap: 5px; height: 28px; margin-bottom: 8px; }
.dash-empty__bars i { width: 7px; border-radius: 3px 3px 0 0; background: #dbe7f3; }
.dash-empty__bars i:nth-child(1) { height: 12px; }
.dash-empty__bars i:nth-child(2) { height: 22px; }
.dash-empty__bars i:nth-child(3) { height: 16px; }
.dash-empty__cta { margin: 0 0 8px; text-align: center; }

.dash {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.72fr) minmax(220px, 0.68fr);
    grid-template-areas:
        "upper upper upper"
        "fin   fin   fin"
        "chart fleet schedule"
        "recent recent activity";
    gap: 14px;
    align-items: stretch;
}
.dash-upper {
    grid-area: upper;
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(300px, 1fr);
    grid-template-areas:
        "hello qa"
        "kpis  kpis";
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}
.dash > *,
.dash-upper > *,
.kpi-row,
.ops-strip,
.fin-overview,
.kpi,
.fin-metric { min-width: 0; }

.dash-hello { grid-area: hello; }
.qa { grid-area: qa; align-self: stretch; }
.kpi-row--4, .dash-kpi-error { grid-area: kpis; align-self: start; }
.ops-strip,
.ops-strip--10 { grid-area: kpis; }
.fin-overview { grid-area: fin; }
.dash-chart { grid-area: chart; }
.fleet { grid-area: fleet; }
.dash-recent { grid-area: recent; }
.dash-schedule { grid-area: schedule; }
.dash-activity { grid-area: activity; }
.dash-alerts { grid-area: alerts; }

.dash-hello {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 196px;
    padding: 16px 22px;
    border-radius: 16px;
    background: #10243d;
    box-shadow: 0 8px 18px rgba(16, 36, 61, 0.12);
}
.dash-hello__copy { position: relative; z-index: 1; max-width: 580px; }
.dash-hello__kicker {
    margin: 0 0 3px;
    color: #ffb07a;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.dash-hello h1 { margin: 0; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.dash-hello__wave { font-size: 0.82em; }
.dash-hello__lead { margin: 3px 0 0; color: #d5deea; font-size: 12.5px; }
.dash-hello__meta { margin: 2px 0 0; color: #b7c3d4; font-size: 11.5px; }
.dash-stats { display: flex; gap: 16px; margin-top: 12px; }
.dash-stats span { display: grid; grid-template-columns: 16px auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; }
.dash-stats i { grid-row: 1 / span 2; display: grid; color: #ffb07a; }
.dash-stats i .adm-ico { width: 14px; height: 14px; }
.dash-stats strong { color: #fff; font-size: 14px; font-weight: 800; line-height: 1; }
.dash-stats small { color: #b7c3d4; font-size: 10px; font-weight: 600; }
.dash-ring {
    --pct: 0;
    --dash-offset: 257.6px;
    position: absolute;
    z-index: 4;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 96px;
    height: 96px;
    flex: none;
    border-radius: 50%;
    background: #10243d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    box-shadow: 0 0 0 6px rgba(16, 36, 61, 0.75), 0 10px 24px rgba(0, 0, 0, 0.45);
}
.dash-ring:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 0 0 7px rgba(243, 106, 22, 0.35), 0 0 24px rgba(243, 106, 22, 0.45), 0 12px 28px rgba(0, 0, 0, 0.5);
}
.dash-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(243, 106, 22, 0.7);
    pointer-events: none;
    z-index: -1;
    animation: dashRingPulse 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.dash-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(243, 106, 22, 0.45) 90deg, transparent 180deg, rgba(255, 176, 122, 0.3) 270deg, transparent 360deg);
    filter: blur(6px);
    opacity: 0.85;
    pointer-events: none;
    z-index: -1;
    animation: dashRingHalo 6s linear infinite;
}
.dash-ring__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    z-index: 2;
    pointer-events: none;
}
.dash-ring__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 7;
}
.dash-ring__fill {
    fill: none;
    stroke: url(#dashRingGrad);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 257.6;
    stroke-dashoffset: var(--dash-offset, 257.6);
    filter: drop-shadow(0 0 4px rgba(243, 106, 22, 0.75));
    animation: dashRingDraw 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.dash-ring > span {
    position: relative;
    z-index: 3;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #1c3961 0%, #0e1e33 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), inset 0 -2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-ring strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.dash-ring small {
    margin-top: 3px;
    color: #ffb07a;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
@keyframes dashRingPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
        border-color: rgba(243, 106, 22, 0.75);
    }
    55% {
        transform: scale(1.24);
        opacity: 0;
        border-color: rgba(243, 106, 22, 0);
    }
    100% {
        transform: scale(1.24);
        opacity: 0;
        border-color: rgba(243, 106, 22, 0);
    }
}
@keyframes dashRingHalo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes dashRingDraw {
    from {
        stroke-dashoffset: 257.6;
    }
    to {
        stroke-dashoffset: var(--dash-offset, 206px);
    }
}
.dash-hero {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 58%;
    object-fit: cover;
    object-position: 72% 50%;
    opacity: 0.92;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
    pointer-events: none;
}
.dash-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-solid, .btn-line, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.btn-solid { background: var(--orange); color: #fff; }
button.btn-solid, button.btn-line, button.btn-ghost { border: 0; cursor: pointer; font: inherit; }
.btn-line { background: #fff; color: var(--orange); border: 1.5px solid var(--orange); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost .adm-ico { width: 15px; height: 15px; }

.kpi-row { display: grid; gap: 12px; }
.kpi-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.kpi {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 112px;
    min-height: 0;
    padding: 12px 12px 12px 14px;
    overflow: hidden;
    border: 1px solid #e7eef5;
    border-top: 3px solid #e7eef5;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(16, 36, 61, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kpi::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(currentColor .65px, transparent .85px);
    background-size: 11px 11px;
    opacity: .2;
    -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 42%, transparent 80%);
    mask-image: linear-gradient(100deg, #000 0%, #000 42%, transparent 80%);
}
.kpi:hover {
    transform: translateY(-2px);
    border-left-color: #d5e0ea;
    border-right-color: #d5e0ea;
    border-bottom-color: #d5e0ea;
    box-shadow: 0 8px 16px rgba(16, 36, 61, 0.08);
}
.kpi > div { position: relative; z-index: 1; min-width: 0; flex: 1; }
.kpi .kpi-label { display: block; color: #64748b; font-size: 13px; font-weight: 600; }
.kpi strong { display: block; margin: 1px 0; color: #10243d; font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi em { display: block; color: #64748b; font-size: 12.5px; font-style: normal; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em.is-up { color: #16a34a; font-weight: 700; }
.kpi .kpi-ico { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi .kpi-ico .adm-ico { width: 20px; height: 20px; }
.kpi-mark {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin-left: 4px;
    display: grid;
    place-items: center;
    flex: none;
    opacity: .28;
    pointer-events: none;
}
.kpi-mark .adm-ico { width: 64px; height: 64px; stroke-width: 1.25; }
.kpi-go {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: none;
    color: #94a3b8;
    pointer-events: none;
}
.kpi-go .adm-ico { width: 16px; height: 16px; }
.kpi--cars {
    border-top-color: #3b82f6;
    color: #3b82f6;
    background-image:
        radial-gradient(circle at 78% 50%, rgba(59, 130, 246, .14), transparent 46%),
        linear-gradient(105deg, #e8f2ff 0%, #f7fbff 46%, #fff 78%);
}
.kpi--cars .kpi-ico { background: #dbeafe; color: #2563eb; }
.kpi--cars .kpi-mark { color: #3b82f6; }
.kpi--ok {
    border-top-color: #22c55e;
    color: #10b981;
    background-image:
        radial-gradient(circle at 78% 50%, rgba(16, 185, 129, .14), transparent 46%),
        linear-gradient(105deg, #e9fbf2 0%, #f6fdf9 46%, #fff 78%);
}
.kpi--ok .kpi-ico { background: #d1fae5; color: #059669; }
.kpi--ok .kpi-mark { color: #10b981; }
.kpi--rent {
    border-top-color: #f59e0b;
    color: #f59e0b;
    background-image:
        radial-gradient(circle at 78% 50%, rgba(245, 158, 11, .16), transparent 46%),
        linear-gradient(105deg, #fff4e8 0%, #fffaf4 46%, #fff 78%);
}
.kpi--rent .kpi-ico { background: #ffedd5; color: #ea580c; }
.kpi--rent .kpi-mark { color: #f59e0b; }
.kpi--wrench {
    border-top-color: #ef4444;
    color: #f43f5e;
    background-image:
        radial-gradient(circle at 78% 50%, rgba(244, 63, 94, .14), transparent 46%),
        linear-gradient(105deg, #fff0f2 0%, #fff8f8 46%, #fff 78%);
}
.kpi--wrench .kpi-ico { background: #ffe4e6; color: #e11d48; }
.kpi--wrench .kpi-mark { color: #f43f5e; }
.kpi--wrench .kpi-mark::after {
    content: "";
    position: absolute;
    width: 54px;
    height: 54px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    opacity: .85;
}

/* ==========================================================================
   PREMIUM OPERATIONAL METRICS STRIP
   ========================================================================== */
.ops-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
    height: 100%;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.ops-strip--10 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(72px, auto));
    height: auto;
    align-self: stretch;
}
.ops-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: 0;
    min-width: 0;
    padding: 6px 8px 7px;
    overflow: hidden;
    border: 1px solid #e7eef5;
    border-top: 2px solid #e7eef5;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(16, 36, 61, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ops-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(currentColor .6px, transparent .8px);
    background-size: 9px 9px;
    opacity: .18;
    -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 38%, transparent 78%);
    mask-image: linear-gradient(100deg, #000 0%, #000 38%, transparent 78%);
}
a.ops-card:hover {
    transform: translateY(-2px);
    border-left-color: #d5e0ea;
    border-right-color: #d5e0ea;
    border-bottom-color: #d5e0ea;
    box-shadow: 0 8px 16px rgba(16, 36, 61, 0.08);
}
a.ops-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ops-mark {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    opacity: .2;
    pointer-events: none;
}
.ops-mark .adm-ico { width: 36px; height: 36px; stroke-width: 1.3; }
.ops-card__head,
.ops-card__val,
.ops-card__note { position: relative; z-index: 1; }
.ops-card__head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.ops-card__go { margin-left: auto; display: grid; color: #94a3b8; flex: none; }
.ops-card__go .adm-ico { width: 14px; height: 14px; }
.ops-card__ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: none;
}
.ops-card__ico .adm-ico { width: 14px; height: 14px; }
.ops-card__label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.ops-card__val {
    display: block;
    margin: 1px 0 0;
    color: #10243d;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ops-card__val.is-revenue { color: #059669; }
.ops-card__note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #64748b;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
}
.ops-card--pending {
    color: #f59e0b;
    border-top-color: #f59e0b;
    background-image: radial-gradient(circle at 82% 50%, rgba(245, 158, 11, .16), transparent 48%), linear-gradient(105deg, #fff4e8 0%, #fffaf4 50%, #fff 80%);
}
.ops-card--pending .ops-card__ico { background: #ffedd5; color: #ea580c; }
.ops-card--pending .ops-mark { color: #f59e0b; }
.ops-card--confirmed {
    color: #10b981;
    border-top-color: #22c55e;
    background-image: radial-gradient(circle at 82% 50%, rgba(16, 185, 129, .14), transparent 48%), linear-gradient(105deg, #e9fbf2 0%, #f6fdf9 50%, #fff 80%);
}
.ops-card--confirmed .ops-card__ico { background: #d1fae5; color: #059669; }
.ops-card--confirmed .ops-mark { color: #10b981; }
.ops-card--pickups {
    color: #3b82f6;
    border-top-color: #3b82f6;
    background-image: radial-gradient(circle at 82% 50%, rgba(59, 130, 246, .14), transparent 48%), linear-gradient(105deg, #e8f2ff 0%, #f7fbff 50%, #fff 80%);
}
.ops-card--pickups .ops-card__ico { background: #dbeafe; color: #2563eb; }
.ops-card--pickups .ops-mark { color: #3b82f6; }
.ops-card--returns {
    color: #f43f5e;
    border-top-color: #fb7185;
    background-image: radial-gradient(circle at 82% 50%, rgba(244, 63, 94, .14), transparent 48%), linear-gradient(105deg, #fff0f2 0%, #fff8f8 50%, #fff 80%);
}
.ops-card--returns .ops-card__ico { background: #ffe4e6; color: #e11d48; }
.ops-card--returns .ops-mark { color: #f43f5e; }
.ops-card--revenue {
    color: #10b981;
    border-top-color: #10b981;
    background-image: radial-gradient(circle at 82% 50%, rgba(16, 185, 129, .14), transparent 48%), linear-gradient(105deg, #e9fbf2 0%, #f6fdf9 50%, #fff 80%);
}
.ops-card--revenue .ops-card__ico { background: #d1fae5; color: #059669; }
.ops-card--revenue .ops-mark { color: #10b981; }
.ops-card--due {
    color: #db2777;
    border-top-color: #ec4899;
    background-image: radial-gradient(circle at 82% 50%, rgba(219, 39, 119, .14), transparent 48%), linear-gradient(105deg, #fdf2f8 0%, #fff7fb 50%, #fff 80%);
}
.ops-card--due .ops-card__ico { background: #fce7f3; color: #db2777; }
.ops-card--due .ops-mark { color: #db2777; }
.ops-card--cars {
    color: #3b82f6;
    border-top-color: #3b82f6;
    background-image: radial-gradient(circle at 82% 50%, rgba(59, 130, 246, .14), transparent 48%), linear-gradient(105deg, #e8f2ff 0%, #f7fbff 50%, #fff 80%);
}
.ops-card--cars .ops-card__ico { background: #dbeafe; color: #2563eb; }
.ops-card--cars .ops-mark { color: #3b82f6; }
.ops-card--ok {
    color: #10b981;
    border-top-color: #22c55e;
    background-image: radial-gradient(circle at 82% 50%, rgba(16, 185, 129, .14), transparent 48%), linear-gradient(105deg, #e9fbf2 0%, #f6fdf9 50%, #fff 80%);
}
.ops-card--ok .ops-card__ico { background: #d1fae5; color: #059669; }
.ops-card--ok .ops-mark { color: #10b981; }
.ops-card--rent {
    color: #f59e0b;
    border-top-color: #f59e0b;
    background-image: radial-gradient(circle at 82% 50%, rgba(245, 158, 11, .16), transparent 48%), linear-gradient(105deg, #fff4e8 0%, #fffaf4 50%, #fff 80%);
}
.ops-card--rent .ops-card__ico { background: #ffedd5; color: #ea580c; }
.ops-card--rent .ops-mark { color: #f59e0b; }
.ops-card--wrench {
    color: #f43f5e;
    border-top-color: #fb7185;
    background-image: radial-gradient(circle at 82% 50%, rgba(244, 63, 94, .14), transparent 48%), linear-gradient(105deg, #fff0f2 0%, #fff8f8 50%, #fff 80%);
}
.ops-card--wrench .ops-card__ico { background: #ffe4e6; color: #e11d48; }
.ops-card--wrench .ops-mark { color: #f43f5e; }

/* Consolidated Finance Overview */
.fin-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e7eef5;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 36, 61, 0.04);
    align-items: start;
}
.dash .fin-overview {
    background: #fff;
    border-color: #e7eef5;
}
.fin-overview__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}
.fin-overview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}
.fin-overview__title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fin-overview__ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eaf3fc, #dbeafe);
    color: #2563eb;
    display: grid;
    place-items: center;
    flex: none;
}
.fin-overview__ico .adm-ico { width: 14px; height: 14px; }
.fin-overview__title h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.fin-overview__sub {
    margin: 1px 0 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}
.fin-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    cursor: default;
}
.fin-pill__arr { font-size: 10px; color: #94a3b8; }
.fin-overview__groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.fin-group__label {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.fin-overview__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.fin-overview__metrics--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.fin-metric {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 6px 8px 6px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e7eef5;
    border-top: 2px solid #e7eef5;
    box-shadow: 0 1px 2px rgba(16, 36, 61, 0.03);
    overflow: hidden;
}
.fin-metric--in { border-top-color: #2563eb; }
.fin-metric--margin { border-top-color: #7c3aed; }
.fin-metric--comm { border-top-color: #0d9488; }
.fin-metric--profit { border-top-color: #ea580c; }
.fin-metric--pending { border-top-color: #d97706; }
.fin-metric--dep { border-top-color: #db2777; }
.fin-metric--trip { border-top-color: #7c3aed; }
.fin-metric--net { border-top-color: #16a34a; }
.fin-metric--held { border-top-color: #ca8a04; }
.fin-metric__top { display: flex; align-items: center; gap: 5px; min-width: 0; margin-bottom: 2px; }
.fin-metric__ico {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    flex: none;
}
.fin-metric__ico .adm-ico { width: 11px; height: 11px; }
.fin-metric--in .fin-metric__ico { background: #e7f1fc; color: #2563eb; }
.fin-metric--margin .fin-metric__ico { background: #f3e8ff; color: #7c3aed; }
.fin-metric--comm .fin-metric__ico { background: #ccfbf1; color: #0d9488; }
.fin-metric--profit .fin-metric__ico { background: #ffedd5; color: #ea580c; }
.fin-metric--pending .fin-metric__ico { background: #fef3c7; color: #d97706; }
.fin-metric--dep .fin-metric__ico { background: #fde8f3; color: #db2777; }
.fin-metric--trip .fin-metric__ico { background: #f3e8ff; color: #7c3aed; }
.fin-metric--net .fin-metric__ico { background: #e8f8ef; color: #16a34a; }
.fin-metric--held .fin-metric__ico { background: #fef9c3; color: #ca8a04; }
.fin-metric p {
    margin: 0;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fin-metric strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.fin-metric strong.is-net { color: #16a34a; }
.fin-metric em {
    display: block;
    margin-top: 1px;
    color: #94a3b8;
    font-size: 9.5px;
    font-style: normal;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fin-held {
    background: #fff9eb;
    border: 1px solid #fef3c7;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}
.fin-held__head {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fin-held__ico {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #ffedd5;
    color: #d97706;
    display: grid;
    place-items: center;
    flex: none;
}
.fin-held__ico .adm-ico { width: 13px; height: 13px; }
.fin-held__label {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
}
.fin-held strong {
    display: block;
    margin: 2px 0 1px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.fin-held__due {
    margin: 0;
    color: #78350f;
    font-size: 11px;
    font-weight: 600;
}
.fin-held__fine {
    margin: 2px 0 0;
    color: #92400e;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.85;
}
.fin-overview > .fin-held--profit {
    align-self: start;
    height: auto;
    min-height: 0;
}
.fin-held--profit {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: linear-gradient(165deg, #0b1220 0%, #152438 55%, #1a2c48 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #fff;
}
.fin-held--profit .fin-held__shine {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, #fb923c 0%, #f97316 50%, #fdba74 100%);
}
.fin-held--profit .fin-held__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 0;
}
.fin-held--profit .fin-held__head {
    margin: 0;
    align-items: center;
}
.fin-held--profit .fin-held__titles {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}
.fin-held--profit .fin-held__ico {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3);
}
.fin-held--profit .fin-held__ico .adm-ico { width: 11px; height: 11px; }
.fin-held--profit .fin-held__label {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}
.fin-held--profit .fin-held__period {
    flex: none;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fdba74;
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
}
.fin-held--profit .fin-held__eyebrow {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fin-held--profit .fin-held__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.fin-held--profit strong {
    position: relative;
    z-index: 1;
    margin: 0;
    flex: none;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}
.fin-held--profit .fin-held__split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    align-content: center;
}
.fin-held--profit .fin-held__split--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fin-held--profit .fin-held__split div {
    padding: 4px 5px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    min-width: 0;
}
.fin-held--profit .fin-held__split small {
    display: block;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fin-held--profit .fin-held__split b {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fin-held--profit .fin-held__row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.fin-held--profit .fin-held__row span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.fin-held--profit .fin-held__row i {
    font-style: normal;
    color: #94a3b8;
    font-size: 9.5px;
    font-weight: 700;
}
.fin-held--profit .fin-held__row b {
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
}
.fin-held--profit .fin-held__foot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fin-held--profit .fin-held__trend {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fin-held--profit .fin-held__trend--up { color: #4ade80; }
.fin-held--profit .fin-held__trend--down { color: #f87171; }
.fin-held--profit .fin-held__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #fdba74;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
}
.fin-held--profit .fin-held__cta:hover { color: #fff; filter: none; }

/* PR Trip Profit Intelligence page */
.prp-admin-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
    position: relative;
    top: -2px;
}
.prp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.prp-toolbar__select,
.prp-toolbar input[type="date"],
.prp-ledger-filters select,
.prp-search input {
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 650;
    padding: 0 12px;
}
.prp-toolbar__custom {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.prp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.prp-btn--primary {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.prp-btn--primary:hover { filter: brightness(1.08); color: #fff; }
.prp-btn--ghost {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
}
.prp-btn--ghost:hover { background: #f8fafc; color: #0f172a; }
.prp-btn--sm { height: 34px; padding: 0 12px; font-size: 12px; }
.prp-btn .adm-ico { width: 14px; height: 14px; }

.prp-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.prp-kpi {
    position: relative;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 14px 14px 10px;
    min-height: 118px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.prp-kpi__top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.prp-kpi__ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
}
.prp-kpi__ico .adm-ico { width: 16px; height: 16px; }
.prp-kpi--orange .prp-kpi__ico { background: #fff7ed; color: #ea580c; }
.prp-kpi--blue .prp-kpi__ico { background: #eff6ff; color: #2563eb; }
.prp-kpi--purple .prp-kpi__ico { background: #f5f3ff; color: #7c3aed; }
.prp-kpi--green .prp-kpi__ico { background: #ecfdf5; color: #059669; }
.prp-kpi--red .prp-kpi__ico { background: #fef2f2; color: #dc2626; }
.prp-kpi__label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 750;
    color: #64748b;
    line-height: 1.25;
    padding-top: 2px;
}
.prp-tip {
    display: inline-grid;
    place-items: center;
    color: #94a3b8;
    cursor: help;
}
.prp-tip .adm-ico { width: 12px; height: 12px; }
.prp-kpi__val {
    display: block;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 6px;
}
.prp-kpi__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
}
.prp-kpi__mom {
    font-size: 11px;
    font-weight: 750;
    color: #64748b;
}
.prp-kpi__mom.is-up { color: #16a34a; }
.prp-kpi__mom.is-down { color: #dc2626; }
.prp-spark {
    width: 72px;
    height: 28px;
    flex: none;
    opacity: 0.9;
}

.prp-viz {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr) minmax(260px, 0.85fr);
    gap: 14px;
    margin-bottom: 16px;
}
.prp-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    min-width: 0;
}
.prp-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.prp-card__head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.prp-card__head p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}
.prp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
}
.prp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.prp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.prp-dot--blue { background: #2563eb; }
.prp-dot--orange { background: #ea580c; }
.prp-chart-wrap { height: 220px; position: relative; }
.prp-donut {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 8px auto 12px;
}
.prp-donut__center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    pointer-events: none;
}
.prp-donut__center small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.prp-donut__center strong {
    font-size: 16px;
    font-weight: 850;
    color: #0f172a;
}
.prp-donut__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.prp-donut__legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 650;
    color: #475569;
}
.prp-donut__legend b { margin-left: auto; color: #0f172a; font-weight: 800; }
.prp-calc-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
}
.prp-calc-ico .adm-ico { width: 14px; height: 14px; }
.prp-calc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}
.prp-calc li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13px;
    font-weight: 650;
    color: #475569;
}
.prp-calc li:last-child { border-bottom: 0; }
.prp-calc strong { color: #0f172a; font-weight: 800; font-variant-numeric: tabular-nums; }
.prp-calc .is-blue { color: #2563eb; }
.prp-calc .is-orange { color: #ea580c; }
.prp-calc .is-red { color: #dc2626; }
.prp-calc .is-eq,
.prp-calc .is-total {
    background: #f8fafc;
    margin: 0 -10px;
    padding: 10px;
    border-radius: 10px;
    border-bottom: 0;
}
.prp-calc .is-total {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 6px;
}
.prp-calc .is-total strong { color: #fff; }
.prp-calc .is-net { background: #ea580c; }
.prp-calc .is-sub span,
.prp-calc .is-add span { color: #64748b; }

.prp-ledger-panel { padding-top: 14px; }
.prp-ledger-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.prp-seg {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 4px;
    border-radius: 12px;
    background: #f1f5f9;
    gap: 2px;
}
.prp-seg a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 750;
    color: #64748b;
    text-decoration: none;
}
.prp-seg a.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.prp-ledger-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.prp-search {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.prp-search__ico {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.prp-search__ico .adm-ico { width: 14px; height: 14px; }
.prp-search input {
    width: min(240px, 52vw);
    padding-left: 32px;
}
.prp-table { font-size: 12.5px; }
.prp-table th {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}
.prp-muted { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.prp-nowrap { white-space: nowrap; font-size: 12px; }
.prp-booking-link {
    font-weight: 800;
    color: #0284c7;
    text-decoration: none;
}
.prp-booking-link:hover { text-decoration: underline; }
.prp-num--margin { color: #7c3aed; font-weight: 800; }
.prp-num--comm { color: #0d9488; font-weight: 750; }
.prp-num--net { color: #ea580c; font-weight: 850; }
.prp-num--pending { color: #d97706; font-weight: 750; }
.prp-view {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    background: #fff;
}
.prp-view:hover { background: #f8fafc; color: #0f172a; }
.prp-pager { margin-top: 12px; }
.prp-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    background: #f1f5f9;
    color: #334155;
    white-space: nowrap;
}
.prp-chip--settled { background: #dcfce7; color: #166534; }
.prp-chip--pending-settlement { background: #ffedd5; color: #9a3412; }
.prp-chip--adjusted { background: #fee2e2; color: #991b1b; }
.prp-chip--earned { background: #e0f2fe; color: #075985; }

@media (max-width: 1280px) {
    .prp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prp-viz { grid-template-columns: 1fr 1fr; }
    .prp-card--calc { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .prp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prp-viz { grid-template-columns: 1fr; }
    .prp-card--calc { grid-column: auto; }
    .cf-hero__actions { width: 100%; }
    .prp-toolbar { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .prp-kpis { grid-template-columns: 1fr; }
    .fin-held--profit .fin-held__split { grid-template-columns: 1fr 1fr 1fr; }
}

.panel {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
}
.panel h2 { margin: 0; color: var(--navy); font-size: 16px; font-weight: 800; }
.dash .panel {
    border-color: #e7eef5;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(16, 36, 61, 0.04);
}
.dash .fin-overview {
    padding: 14px 16px;
    border-color: #e7eef5;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 36, 61, 0.04);
}
.dash-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 12px;
    font-weight: 800;
    vertical-align: 2px;
}
.panel-head, .chart-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head { justify-content: space-between; margin-bottom: 12px; }
.panel-head a, .util__row a { color: var(--orange); font-size: 13px; font-weight: 700; text-decoration: none; }
.qa { container-type: inline-size; align-self: stretch; display: flex; flex-direction: column; }
.qa p { margin: 0; color: var(--muted); font-size: 13px; }
.qa.panel {
    padding: 12px 14px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 120px;
}
.qa-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex: none;
}
.qa-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.qa-more {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all .15s ease;
    padding: 0;
}
a.qa-more { text-decoration: none; }
.qa-more:hover { color: var(--navy); background: #f1f5f9; }
.qa-more .adm-ico { width: 16px; height: 16px; }
.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    flex: 1;
    min-height: 0;
}
.qa-grid:has(.qa-btn:nth-child(5)) {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}
.qa-btn {
    --qa-c: var(--navy);
    --qa-bg: #f4f7fb;
    --qa-b: #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 6px 4px;
    border-radius: 12px;
    border: 1px solid var(--qa-b);
    background: var(--qa-bg);
    color: var(--qa-c);
    text-decoration: none;
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    position: relative;
}
.qa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 36, 61, 0.08);
}
.qa-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.qa-btn__ico {
    display: grid;
    place-items: center;
    color: var(--qa-c);
    flex: none;
}
.qa-btn__ico .adm-ico { width: 18px; height: 18px; }
.qa-btn__label {
    max-width: 100%;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.qa-btn--primary {
    --qa-c: #ea580c;
    --qa-bg: #fff0e6;
    --qa-b: #fed7aa;
}
.qa-btn--primary:hover {
    --qa-bg: #ffedd5;
    --qa-b: #fdba74;
}

.qa-btn--blue {
    --qa-c: #2563eb;
    --qa-bg: #eaf3fc;
    --qa-b: #dbeafe;
}
.qa-btn--blue:hover { --qa-bg: #dbeafe; --qa-b: #bfdbfe; }

.qa-btn--red {
    --qa-c: #e11d48;
    --qa-bg: #ffecee;
    --qa-b: #fee2e2;
}
.qa-btn--red:hover { --qa-bg: #fee2e2; --qa-b: #fecaca; }

.qa-btn--amber {
    --qa-c: #d97706;
    --qa-bg: #fff4ec;
    --qa-b: #fef3c7;
}
.qa-btn--amber:hover { --qa-bg: #fef3c7; --qa-b: #fde68a; }

.qa-btn--indigo {
    --qa-c: #4f46e5;
    --qa-bg: #eef2ff;
    --qa-b: #e0e7ff;
}
.qa-btn--indigo:hover { --qa-bg: #e0e7ff; --qa-b: #c7d2fe; }

.qa-btn--green {
    --qa-c: #16a34a;
    --qa-bg: #e8f8ef;
    --qa-b: #dcfce7;
}
.qa-btn--green:hover { --qa-bg: #dcfce7; --qa-b: #bbf7d0; }

.qa-btn--cyan {
    --qa-c: #0284c7;
    --qa-bg: #e0f2fe;
    --qa-b: #bae6fd;
}
.qa-btn--cyan:hover { --qa-bg: #bae6fd; --qa-b: #7dd3fc; }

.qa-btn--navy {
    --qa-c: #475569;
    --qa-bg: #f1f5f9;
    --qa-b: #e2e8f0;
}
.qa-btn--navy:hover { --qa-bg: #e2e8f0; --qa-b: #cbd5e1; }

@container (max-width: 280px) {
    .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 6px; }
    .qa-btn { flex-direction: row; justify-content: flex-start; height: auto; min-height: 36px; padding: 6px 8px; gap: 6px; }
    .qa-btn__label { font-size: 11px; text-align: left; -webkit-line-clamp: 1; }
    .qa-btn__ico .adm-ico { width: 16px; height: 16px; }
}

.dash-mid { display: contents; }
.dash-chart, .fleet, .dash-schedule, .dash-recent, .dash-activity { align-self: stretch; }
.chart-head { margin-bottom: 4px; }
.chart-head h2 { margin-right: auto; }
.adm-tabs {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: #f4f7fb;
}
.adm-tabs a {
    padding: 6px 12px;
    border-radius: 999px;
    color: #52657a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.adm-tabs a:hover { color: var(--navy); }
.adm-tabs a.is-active { background: var(--navy); color: #fff; }
.chart-legend { display: flex; justify-content: flex-end; gap: 16px; margin: 4px 0 2px; color: #52657a; font-size: 12px; font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; }
.chart-legend .is-book { border-radius: 2px; }
.chart-legend i, .cal-key i, .adm-legend li::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #94a3b8;
}
.chart-legend .is-book { background: #3d8fe6; }
.chart-legend .is-rev { background: var(--orange); }
.cash { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.cash__item {
    padding: 10px 12px;
    border: 1px solid #eef3f8;
    border-left: 3px solid #cbd5e1;
    border-radius: 12px;
    background: #fbfdff;
}
.cash__item p { margin: 0 0 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.cash__item strong { display: block; color: var(--navy); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cash__item em { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-style: normal; }
.cash__item--in { border-left-color: var(--blue); }
.cash__item--out { border-left-color: #db2777; }
.cash__item--net { border-left-color: var(--green); }
.cash__item--hold { border-left-color: var(--orange); }
.cash__item--net strong { color: #0f9f5a; }
.cash__fine { display: block; margin-top: 4px; color: #94a3b8; font-size: 11px; font-style: normal; line-height: 1.35; }
.cash-band {
    grid-area: cash;
    margin: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.cash-band .cash__item {
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(16, 36, 61, 0.04);
}
.cash__note { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 800px) {
    .cash { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .cash { grid-template-columns: 1fr; }
}
.adm-chart { width: 100%; height: 200px; display: block; }
.chart-wrap { position: relative; }
.chart-note {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(16, 36, 61, 0.08);
    color: #52657a;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.fleet { display: flex; flex-direction: column; padding-right: 16px; padding-left: 16px; }
.fleet-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; margin: 16px 0 auto; }
.adm-donut {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--donut, #e8eef5);
    display: grid;
    place-items: center;
}
.adm-donut span {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(16, 36, 61, 0.08);
}
.adm-donut strong { color: var(--navy); font-size: 26px; font-weight: 800; line-height: 1; }
.adm-donut small { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.adm-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adm-legend li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #334155; }
.adm-legend li span { flex: 1; }
.adm-legend li strong { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.adm-legend li em { min-width: 36px; color: var(--muted); font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; text-align: right; }
.adm-legend li::before { content: ""; margin: 0 4px 0 0; }
.adm-legend .is-available::before { background: var(--green); }
.adm-legend .is-on-rent::before { background: #f5b942; }
.adm-legend .is-maintenance::before { background: var(--orange); }
.adm-legend .is-inactive::before { background: #94a3b8; }
.adm-legend .is-other::before { background: var(--navy); }
.util { margin-top: 18px; }
.util__row { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 600; color: var(--navy); }
.util__row strong { color: var(--navy); font-weight: 800; }
.util__track { height: 6px; margin-top: 8px; border-radius: 999px; background: #e8eef5; overflow: hidden; }
.util__track span { display: block; height: 100%; background: var(--navy); border-radius: inherit; }

.table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.dash-table th { color: #94a3b8; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.dash-table td { font-size: 13px; color: #1e293b; }
.dash-table tbody tr:hover td { background: #f8fafc; }
.dash-table th:nth-child(7),
.dash-table td.is-amt { text-align: right; }
.book-no { color: var(--navy); font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.dash-view {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid #e4ebf2;
    border-radius: 999px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
}
.dash-view:hover { border-color: #ffd0b0; color: var(--orange); }

.sch { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sch::before {
    content: "";
    position: absolute;
    left: 78px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: #e2e8f0;
}
.sch-item {
    --sch: #94a3b8;
    position: relative;
    display: grid;
    grid-template-columns: 62px 16px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease;
}
a.sch-item:hover { background: #f8fafc; }
a.sch-item:hover .sch-ico { background: #f8fafc; }
.sch .is-pickup .sch-item { --sch: var(--green); }
.sch .is-return .sch-item { --sch: #e11d48; }
.sch .is-maintenance .sch-item { --sch: var(--orange); }
.sch time { color: var(--navy); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.5; }
.sch-ico { position: relative; z-index: 1; color: var(--sch); line-height: 0; padding-top: 2px; background: #fff; }
.sch-ico .adm-ico { width: 16px; height: 16px; stroke-width: 2.2; }
.sch-body { min-width: 0; }
.sch strong, .sch em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-kind {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-transform: uppercase;
}
.sch .is-pickup .sch-kind { background: #e8f7ee; color: #15803d; }
.sch .is-return .sch-kind { background: #fdecec; color: #e11d48; }
.sch .is-maintenance .sch-kind { background: #fff1e8; color: var(--orange); }
.sch .is-blocked .sch-kind { background: #eef3f8; color: #526174; }
.sch--compact { margin-top: 8px; }
.sch--compact::before { display: none; }
.sch--compact .sch-item { grid-template-columns: 62px minmax(0, 1fr); padding: 6px 4px; }
.sch-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sch-head h2 { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 14px; white-space: nowrap; }
.sch-head__ico { display: grid; place-items: center; color: #2563eb; flex: none; }
.sch-head__ico .adm-ico { width: 16px; height: 16px; }
.sch-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border: 1px solid #e7eef5;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}
.sch-date .adm-ico { width: 12px; height: 12px; }
.sch-all {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #fff;
    color: #2563eb;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.sch-all:hover { background: #eff6ff; }
.sch-cards { display: grid; gap: 8px; }
.sch-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}
a.sch-card:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(16, 36, 61, 0.06); }
.sch-card--pick { background: #f0fdf6; border-color: #d1fae5; }
.sch-card--ret { background: #fff7ed; border-color: #ffedd5; }
.sch-card--assist { background: #eff6ff; border-color: #bfdbfe; }
.sch-card--maint { background: #f5f3ff; border-color: #ede9fe; }
.sch-card__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.sch-card__ico .adm-ico { width: 18px; height: 18px; }
.sch-card--pick .sch-card__ico { background: #d1fae5; color: #059669; }
.sch-card--ret .sch-card__ico { background: #ffedd5; color: #ea580c; }
.sch-card--assist .sch-card__ico { background: #dbeafe; color: #1d4ed8; }
.sch-card--maint .sch-card__ico { background: #ede9fe; color: #7c3aed; }
.sch-card__body { min-width: 0; flex: 1; }
.sch-card__body strong { display: flex; align-items: center; gap: 6px; color: #10243d; font-size: 14px; font-weight: 800; }
.sch-card__body em {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
}
.sch-card--pick .sch-card__body em { color: #059669; }
.sch-card--ret .sch-card__body em { color: #ea580c; }
.sch-card--assist .sch-card__body em { color: #1d4ed8; }
.sch-card--maint .sch-card__body em { color: #7c3aed; }
.sch-card__body small { display: block; margin-top: 2px; color: #64748b; font-size: 12px; font-weight: 500; }
.sch-card__go { color: #94a3b8; display: grid; place-items: center; flex: none; }
.sch-card__go .adm-ico { width: 16px; height: 16px; }
.sch-sum a, .sch-sum div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 2px;
    border-bottom: 1px solid #f4f7fb;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.sch-sum strong { font-variant-numeric: tabular-nums; }
.sch-sum i { width: 8px; height: 8px; border-radius: 50%; }
.sch-sum .is-pick { background: #3d8fe6; }
.sch-sum .is-ret { background: #f36a16; }
.sch-sum .is-maint { background: #16b86a; }
.act { list-style: none; margin: 0; padding: 0; }
.act li > a, .act li > div, .act .is-clear {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
}
.act li:first-child > a, .act li:first-child > div, .act li:first-child.is-clear { border-top: 0; padding-top: 2px; }
.act strong, .act em { display: block; }
.act strong { color: var(--navy); font-size: 13px; }
.act em { color: var(--muted); font-size: 12px; font-style: normal; }
.act time { margin-left: auto; color: #94a3b8; font-size: 11px; white-space: nowrap; }
.act-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #3d8fe6; flex: none; }
.act-dot.is-ok { background: #16b86a; }
.act-dot.is-due { background: #e11d48; }
.sch strong { color: #334155; font-size: 12px; font-weight: 500; }
.sch em { color: var(--muted); font-size: 11.5px; font-style: normal; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; }
.cal-dow, .cal-day { text-align: center; font-size: 12px; }
.cal-dow { color: #94a3b8; font-weight: 700; padding-bottom: 6px; }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 42px; padding: 2px 0; color: var(--navy); text-decoration: none; border-radius: 10px; }
.cal-day:hover { background: #f4f7fb; }
.cal-day b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.cal-day.is-today b { background: var(--orange); color: #fff; }
.cal-day.is-current:not(.is-today) b { box-shadow: inset 0 0 0 1.5px var(--orange); }
.cal-day i, .cal-key { display: flex; gap: 2px; min-height: 6px; }
.cal-day em, .cal-key i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.cal-day em.is-pickup, .cal-key .is-pickup { background: var(--green); }
.cal-day em.is-return, .cal-key .is-return { background: var(--blue); }
.cal-day em.is-maintenance, .cal-key .is-maintenance { background: var(--orange); }
.cal-day em.is-block, .cal-key .is-block { background: #94a3b8; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--navy); text-decoration: none; background: #f4f7fb; font-size: 18px; }
.cal-key { list-style: none; margin: 12px 0 0; padding: 0; justify-content: space-between; color: var(--muted); font-size: 11px; }

.alerts { list-style: none; margin: 0; padding: 0; }
.alerts a, .alerts .is-clear { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #f1f5f9; color: inherit; text-decoration: none; }
.alerts li:first-child a, .alerts li:first-child.is-clear { border-top: 0; padding-top: 4px; }
.alerts .is-clear { padding-bottom: 8px; }
.alerts a:hover strong { color: var(--orange); }
.alerts strong, .alerts em { display: block; }
.alerts strong { color: var(--navy); font-size: 13px; }
.alerts em { color: var(--muted); font-size: 12px; font-style: normal; }
.alert-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.alert-ico.is-warn { background: #fff4e5; color: #d97706; }
.alert-ico.is-maint { background: #fff1e8; color: var(--orange); }
.alert-ico.is-due { background: #fde8f3; color: #db2777; }
.alert-ico.is-block { background: #eef3f8; color: #526174; }
.alert-ico.is-ok { background: #e8f8ef; color: var(--green); }
.dash-search { margin-bottom: 16px; }
.find { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.find a { display: block; padding: 10px 12px; border-radius: 12px; background: #f8fbfe; color: inherit; text-decoration: none; }
.find a:hover { background: #eef5fb; }
.find strong, .find em { display: block; }
.find em { color: var(--muted); font-size: 12px; font-style: normal; margin-top: 2px; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf3ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    flex: none;
}
.dash-table .is-amt { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }

.adm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-stat, .adm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.adm-stat span, .adm-stat em { display: block; color: var(--muted); font-size: 13px; font-style: normal; }
.adm-stat strong { font-size: 28px; }
.adm-card { margin-top: 16px; }
.adm-card h1, .adm-card h2 { margin: 0 0 12px; font-size: 20px; color: var(--navy); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
a.adm-btn, button.adm-btn, .adm-btn { display: inline-flex; align-items: center; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; cursor: pointer; }
.adm-btn.alt { background: var(--navy); }
.adm-btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.adm-form { display: grid; gap: 12px; max-width: 760px; }
.adm-form label { display: grid; gap: 6px; font-weight: 600; }
.adm-form input, .adm-form select, .adm-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 10px; font: inherit; }
.adm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-filters input, .adm-filters select { padding: 8px 10px; border: 1px solid #cfd8e3; border-radius: 10px; }
.adm-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; background: #eef3f8; font-size: 12px; font-weight: 700; }
.adm-badge-available, .adm-badge-confirmed, .adm-badge-completed, .adm-badge-paid, .adm-badge-active { background: #e8f7ee; color: #15803d; }
.adm-badge-pending, .adm-badge-maintenance { background: #fff4e8; color: #b45309; }
.adm-badge-payment_pending { background: #f3e8ff; color: #7c3aed; }
.adm-badge-ready_for_pickup, .adm-badge-on_rent, .adm-badge-booked { background: #e7f3fc; color: var(--blue); }
.adm-badge-cancelled, .adm-badge-rejected, .adm-badge-blocked, .adm-badge-inactive, .adm-badge-failed { background: #fdecec; color: var(--danger); }
.adm a:focus-visible, .adm button:focus-visible, .adm input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.adm-flash { padding: 10px 12px; border-radius: 10px; background: #e8f7ee; }
.adm-flash-error { background: #fdecec; }
.adm-login-page {
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(8, 120, 209, 0.14), transparent 55%),
        radial-gradient(720px 360px at 100% 0%, rgba(243, 106, 22, 0.12), transparent 48%),
        var(--mist);
}
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.adm-login form {
    width: min(420px, 100%);
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(16, 36, 61, 0.1);
    display: grid;
    gap: 12px;
    border: 1px solid #eef3f8;
}
.adm-login h1 { margin: 4px 0 0; color: var(--navy); font-size: 28px; letter-spacing: -0.03em; }
.adm-login__brand { margin: 0; }
.adm-login__brand img { display: block; width: min(280px, 100%); height: auto; }
.adm-login__kicker { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.adm-login__lead { margin: 0 0 8px; color: var(--muted); }
.adm-login label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); }
.adm-login input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d5e0ea;
    border-radius: 12px;
    font: inherit;
    background: #f8fbfe;
}
.adm-login input:focus { background: #fff; outline: 2px solid rgba(243, 106, 22, 0.25); border-color: var(--orange); }
.adm-login__go { width: 100%; margin-top: 6px; min-height: 46px; }
.adm-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-thumbs figure { margin: 0; width: 140px; }
.adm-thumbs img { width: 140px; height: 90px; object-fit: cover; border-radius: 8px; }
.adm-check { display: flex; gap: 8px; align-items: center; font-weight: 600; }

@media (max-width: 1366px) {
    .dash { grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.7fr) minmax(200px, 0.62fr); }
    .dash-upper { grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.92fr); }
}
@media (max-width: 1100px) {
    .dash {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "upper upper"
            "fin   fin"
            "chart chart"
            "fleet schedule"
            "recent activity";
    }
    .dash-upper { grid-template-columns: minmax(0, 1fr) 250px; }
    .kpi-row--4, .adm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-strip { grid-template-columns: 1fr 1fr; }
    .ops-strip--10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .fin-overview { grid-template-columns: 1fr; }
    .fin-overview__metrics,
    .fin-overview__metrics--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-search { max-width: 360px; }
    .dash-hero { width: min(280px, 38%); }
}
@media (max-width: 800px) {
    .adm-brand--top { display: flex; }
    .adm-top__meta .btn-line, .adm-date { display: none; }
    .adm-search { max-width: none; }
    .adm-content { padding: 14px; }
    /* Hide shell footer on phone/tablet — reclaim space above bottom nav */
    .adm-foot { display: none !important; }
    .chart-head { align-items: flex-start; }
    .dash-hello { min-height: 0; padding: 14px 16px; }
    .dash-hello h1 { font-size: 22px; }
    .dash-hello p { max-width: 100%; }
    .dash-ring { width: 74px; height: 74px; right: 14px; box-shadow: 0 0 0 5px rgba(16, 36, 61, 0.6); }
    .dash-ring__inner,
    .dash-ring span { width: 54px; height: 54px; }
    .dash-ring strong { font-size: 13px; }
    .dash-ring small { font-size: 7.5px; }
    .dash-hero { display: none; }
    .dash-upper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "hello"
            "qa"
            "kpis";
    }
    .kpi-row--4, .adm-split, .adm-grid { grid-template-columns: 1fr 1fr; }
    .ops-strip { grid-template-columns: 1fr 1fr; }
    .ops-strip--10 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .fleet-body { grid-template-columns: 1fr; justify-items: center; }
    .dash .table-wrap { overflow-x: auto; }
    .dash-table { display: table; min-width: 720px; }
    .dash-table thead { display: table-header-group; }
    .dash-table tbody { display: table-row-group; }
    .dash-table tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; }
    .dash-table th, .dash-table td { display: table-cell; width: auto; }
    .dash-table td::before { content: none; }
    table:not(.dash-table) { display: block; overflow-x: auto; }
}
@media (max-width: 767px) {
    .dash {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "upper"
            "fin"
            "chart"
            "fleet"
            "schedule"
            "recent"
            "activity";
    }
}
.adm--board .adm-top { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.adm--board .adm-content { padding: 14px 16px 20px; }
@media (max-width: 420px) {
    .kpi-row--4, .ops-strip, .ops-strip--10, .fin-overview__metrics, .fin-overview__metrics--5 { grid-template-columns: 1fr; }
    .adm-user small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .kpi, .ops, .ops-card, .qa-btn, .qa-item, .cv__panel, .ask__panel, .btn-solid, .btn-line, .btn-ghost, .adm-side nav a,
    .adm-side, .adm-side--dock, .adm-rail-btn { transition: none !important; animation: none !important; }
    .kpi:hover, .cf-kpi:hover, .ops:hover, .ops-card:hover, .qa-btn:hover, .qa-item:hover, .btn-solid:hover, .btn-line:hover, .btn-ghost:hover { transform: none; }
}

.adm--fleet .adm-top__title { display: none; }
.cf { display: grid; gap: 14px; }
.cf-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.cf-hero__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.cf-hero__copy {
    flex: 1;
    min-width: 220px;
}
.cf-hero__crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.cf-hero__crumb .sep {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 400;
}
.cf-hero__crumb strong {
    color: #0f172a;
}
.cf-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.cf-hero p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.35;
}
.cf-hero__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cf-hero__photo {
    display: none !important;
}

/* Horizontal Top Module Sub-Navigation Bar */
.adm-subnav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 9px;
    border-top: 1px solid #f1f5f9;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.adm-subnav::-webkit-scrollbar {
    display: none;
}
.adm-subnav__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5.5px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.adm-subnav__item:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}
.adm-subnav__item.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.adm-subnav__item .adm-ico {
    width: 14px;
    height: 14px;
    flex: none;
}
.adm-subnav__item.is-active .adm-ico {
    color: #f97316;
}
.adm-subnav__item .adm-nav-badge {
    height: 15px;
    line-height: 15px;
    font-size: 9px;
    padding: 0 4px;
    min-width: 15px;
    box-shadow: none;
}

.cf-add {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    background: #f97316;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.25);
    white-space: nowrap;
    transition: all 0.16s ease;
}
.cf-add:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
}
.cf-add .adm-ico { width: 15px; height: 15px; }
button.cf-add { border: 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cf-hero form { position: relative; z-index: 1; flex: none; }
.cf-hero form .cf-add { margin-left: 0; }
.cf-panel .cv__specs { margin: 0 18px 12px; }
.cf-panel > .cv__copy, .cf-panel > .cv__note { margin-left: 18px; margin-right: 18px; }
.cf-panel > .cv__note { margin-bottom: 18px; }
.cf-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cf-kpi {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 112px;
    padding: 12px 12px 12px 14px;
    overflow: hidden;
    border: 1px solid #e7eef5;
    border-top: 3px solid #e7eef5;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(16, 36, 61, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cf-kpi::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(currentColor .65px, transparent .85px);
    background-size: 11px 11px;
    opacity: .18;
    -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 42%, transparent 80%);
    mask-image: linear-gradient(100deg, #000 0%, #000 42%, transparent 80%);
}
.cf-kpi:hover {
    transform: translateY(-2px);
    border-left-color: #d5e0ea;
    border-right-color: #d5e0ea;
    border-bottom-color: #d5e0ea;
    box-shadow: 0 8px 16px rgba(16, 36, 61, 0.08);
}
.cf-kpi__icon,
.cf-kpi__meta,
.cf-kpi__mark,
.cf-kpi__go { position: relative; z-index: 1; }
.cf-kpi p, .cf-kpi strong, .cf-kpi small { display: block; margin: 0; }
.cf-kpi__meta { min-width: 0; flex: 1; }
.cf-kpi__label,
.cf-kpi p {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cf-kpi__val,
.cf-kpi strong {
    margin: 1px 0;
    color: #10243d;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.cf-kpi__note,
.cf-kpi small {
    margin-top: 1px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cf-kpi__note.is-up { color: #16a34a; font-weight: 700; }
.cf-kpi__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
}
.cf-kpi__icon .adm-ico { width: 18px; height: 18px; }
.cf-kpi__mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: none;
    opacity: .22;
    pointer-events: none;
}
.cf-kpi__mark .adm-ico { width: 46px; height: 46px; stroke-width: 1.25; }
.cf-kpi__go { display: grid; place-items: center; flex: none; color: #94a3b8; }
.cf-kpi__go .adm-ico { width: 16px; height: 16px; }
.cf-kpi--blue {
    color: #3b82f6;
    border-top-color: #3b82f6;
    background-image: radial-gradient(circle at 78% 50%, rgba(59, 130, 246, .14), transparent 46%), linear-gradient(105deg, #e8f2ff 0%, #f7fbff 46%, #fff 78%);
}
.cf-kpi--blue .cf-kpi__icon { background: #dbeafe; color: #2563eb; }
.cf-kpi--blue .cf-kpi__mark { color: #3b82f6; }
.cf-kpi--green {
    color: #10b981;
    border-top-color: #22c55e;
    background-image: radial-gradient(circle at 78% 50%, rgba(16, 185, 129, .14), transparent 46%), linear-gradient(105deg, #e9fbf2 0%, #f6fdf9 46%, #fff 78%);
}
.cf-kpi--green .cf-kpi__icon { background: #d1fae5; color: #059669; }
.cf-kpi--green .cf-kpi__mark { color: #10b981; }
.cf-kpi--orange {
    color: #f59e0b;
    border-top-color: #f59e0b;
    background-image: radial-gradient(circle at 78% 50%, rgba(245, 158, 11, .16), transparent 46%), linear-gradient(105deg, #fff4e8 0%, #fffaf4 46%, #fff 78%);
}
.cf-kpi--orange .cf-kpi__icon { background: #ffedd5; color: #ea580c; }
.cf-kpi--orange .cf-kpi__mark { color: #f59e0b; }
.cf-kpi--purple {
    color: #8b5cf6;
    border-top-color: #8b5cf6;
    background-image: radial-gradient(circle at 78% 50%, rgba(139, 92, 246, .14), transparent 46%), linear-gradient(105deg, #f5f3ff 0%, #faf8ff 46%, #fff 78%);
}
.cf-kpi--purple .cf-kpi__icon { background: #ede9fe; color: #7c3aed; }
.cf-kpi--purple .cf-kpi__mark { color: #8b5cf6; }
.cf-kpi--red {
    color: #f43f5e;
    border-top-color: #ef4444;
    background-image: radial-gradient(circle at 78% 50%, rgba(244, 63, 94, .14), transparent 46%), linear-gradient(105deg, #fff0f2 0%, #fff8f8 46%, #fff 78%);
}
.cf-kpi--red .cf-kpi__icon { background: #ffe4e6; color: #e11d48; }
.cf-kpi--red .cf-kpi__mark { color: #f43f5e; }
.cf-panel {
    border: 1px solid #e3eaf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 36, 61, 0.04);
}
.cf-panel__head, .cf-filters, .cf-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-panel__head { padding: 18px 18px 0; }
.cf-panel__head h2 { margin: 0; color: #10243d; font-size: 18px; }
.cf-panel__head p { margin: 3px 0 0; color: #64748b; font-size: 13px; }
.cf-views { display: flex; padding: 3px; border: 1px solid #e3eaf2; border-radius: 12px; background: #f7fafc; }
.cf-views a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.cf-views a.is-on { background: #fff; color: #10243d; box-shadow: 0 1px 2px rgba(16, 36, 61, 0.08); }
.cf-views .adm-ico { width: 15px; height: 15px; }
.cf-filters { flex-wrap: wrap; justify-content: flex-end; padding: 14px 18px; }
.cf-search { position: relative; flex: 1; min-width: min(100%, 280px); }
.cf-search .adm-ico { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; color: #94a3b8; transform: translateY(-50%); }
.cf-filters input, .cf-filters select, .cf-pager select {
    min-height: 42px;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    background: #fff;
    color: #10243d;
    font: inherit;
    font-size: 14px;
}
.cf-search input { width: 100%; padding: 0 12px 0 36px; }
.cf-filters select, .cf-pager select { padding: 0 12px; }
.cf-filter, .cf-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    background: #fff;
    color: #10243d;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.cf-filter { background: #10243d; color: #fff; border-color: #10243d; }
.cf-table-wrap { overflow-x: auto; }
.cf-table { width: 100%; border-collapse: collapse; }
.cf-table th {
    padding: 10px 14px;
    border-top: 1px solid #eef3f8;
    border-bottom: 1px solid #eef3f8;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
.cf-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #10243d; font-size: 14px; vertical-align: middle; }
.cf-table tr:hover td { background: #f8fbfe; }
.cf-code { color: #64748b; font-weight: 700; white-space: nowrap; }
.cf-vehicle { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cf-vehicle img, .cf-ph, .cf-card > img, .cf-card > .cf-ph {
    width: 84px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f4f8fc;
}
.cf-ph { display: grid; place-items: center; color: #94a3b8; }
.cf-ph .adm-ico { width: 22px; height: 22px; }
.cf-vehicle strong, .cf-card__title strong { display: block; max-width: 180px; overflow: hidden; color: #10243d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cf-vehicle small, .cf-card__title small { display: block; max-width: 180px; overflow: hidden; color: #64748b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cf-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cf-chip--type { background: #eef4fb; color: #24527a; }
.cf-chip--fuel { background: #f4f0ff; color: #6d28d9; }
.cf-chip--gear { background: #f3f6f9; color: #475569; }
.cf-miss { color: #94a3b8; }
.cf-rate { font-weight: 800; white-space: nowrap; }
.cf-owner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 140px;
    max-width: 200px;
}
.cf-owner__name {
    color: #1d4ed8;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cf-owner__name:hover { text-decoration: underline; color: #1e40af; }
.cf-owner__code {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 1px 6px;
}
.cf-owner small {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}
.cf-owner small a { color: #475569; text-decoration: none; font-weight: 600; }
.cf-owner small a:hover { color: #0f172a; text-decoration: underline; }
.cf-owner__link {
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
}
.cf-owner__link:hover { text-decoration: underline; }
.cf-owner--company strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}
.cf-owner--company small { color: #94a3b8; font-weight: 600; }
.cf-card__owner {
    margin: 6px 0 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.cf-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: #eef4fb; color: #24527a; font-size: 12px; font-weight: 800; white-space: nowrap; }
.cf-badge--available { background: #e8f8ef; color: #15803d; }
.cf-badge--booked, .cf-badge--on_rent, .cf-badge--published { background: #e7f3fc; color: #1479d1; }
.cf-badge--maintenance { background: #fff1e8; color: #c2410c; }
.cf-badge--inactive, .cf-badge--archived { background: #f3e8ff; color: #7c3aed; }
.cf-badge--draft, .cf-badge--refunded { background: #f1f5f9; color: #64748b; }
.cf-badge--pending, .cf-badge--payment_pending, .cf-badge--failed, .cf-badge--new, .cf-badge--contacted { background: #fff1e8; color: #c2410c; }
.cf-badge--confirmed, .cf-badge--ready_for_pickup, .cf-badge--sent { background: #e7f3fc; color: #1479d1; }
.cf-badge--active, .cf-badge--completed, .cf-badge--paid, .cf-badge--issued { background: #e8f8ef; color: #15803d; }
.cf-badge--cancelled, .cf-badge--rejected, .cf-badge--blocked { background: #f3e8ff; color: #7c3aed; }
.cf-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cf-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cf-card--plain { grid-template-columns: 1fr; }
.cf-panel .adm-form { max-width: none; padding: 0 18px 18px; }
.cf-panel .adm-card { margin: 0; border: 0; box-shadow: none; }
.cf-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.cf-actions form, .bk-row form, .cf-menu form, .cv-decide form { margin: 0; }
.bk-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.bk-act {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.bk-act--ok { border: 0; background: #15803d; color: #fff; }
.bk-act--wa { border: 0; background: #25d366; color: #fff; text-decoration: none; }
.bk-act--no { border: 1px solid #fecaca; background: #fff; color: #b91c1c; }
.bk-act--next { border: 1px solid #d7e6f5; background: #f4f8fc; color: #10243d; }
.cf-flash { margin: 0 0 14px; }
.cv-decide {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #ffe0c2;
    border-radius: 14px;
    background: #fff7ed;
}
.cv-decide__copy { flex: 1 1 220px; min-width: 0; }
.cv-decide__copy strong { display: block; color: #9a3412; font-size: 14px; }
.cv-decide__copy p { margin: 2px 0 0; color: #b45309; font-size: 13px; font-weight: 600; }
.cv-decide__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-decide__acts .bk-act { min-height: 38px; padding: 0 16px; }
.cv-decide.is-done { border-color: #e3eaf2; background: #f8fbfe; }
.cv-decide.is-done .cv-decide__copy strong { color: #10243d; }
.cv-decide.is-done .cv-decide__copy p { color: #64748b; }
.pay-top { padding: 14px 16px; border: 1px solid #e3eaf2; border-radius: 14px; background: #f8fbfe; }
.pay-top__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pay-top__head em { color: #10243d; font-size: 14px; font-style: normal; font-weight: 800; }
.pay-bar { height: 8px; margin: 10px 0; border-radius: 999px; background: #e3eaf2; overflow: hidden; }
.pay-bar span { display: block; height: 100%; border-radius: 999px; background: #15803d; }
.pay-top__row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pay-top__row p { margin: 0; color: #64748b; font-size: 12px; font-weight: 700; }
.pay-top__row strong { margin-left: 6px; color: #10243d; font-size: 14px; }
.cv .pay-form { padding: 0; }
.pay-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-chips span { color: #64748b; font-size: 12px; font-weight: 800; }
.pay-chips button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #d7e6f5;
    border-radius: 999px;
    background: #fff;
    color: #10243d;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.pay-chips button:hover { border-color: #1479d1; color: #1479d1; }
.pay-dep {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    background: #f8fbfe;
}
.pay-dep__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pay-dep__head em { color: #64748b; font-size: 12px; font-style: normal; font-weight: 700; }
.pay-dep__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-dep__grid article {
    padding: 10px;
    border: 1px solid #e8eef6;
    border-radius: 12px;
    background: #fff;
}
.pay-dep__grid p { margin: 0 0 2px; color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pay-dep__grid strong { color: #10243d; font-size: 15px; }
.pay-dep__log { display: grid; gap: 2px; margin: 0; color: #64748b; font-size: 12px; font-weight: 700; }
.pay-dep__log span { color: #10243d; font-weight: 600; }
.pay-dep__reset { display: flex; justify-content: center; margin: 10px 0 4px; }
.pay-dep__reset .cf-filter { width: auto; }
@media (min-width: 720px) {
    .pay-dep__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ask {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
}
.ask__shade { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(8, 20, 38, 0.48); backdrop-filter: blur(3px); cursor: pointer; }
.ask__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    width: min(420px, 100%);
    padding: 18px;
    border: 1px solid #e7eef5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 26, 45, 0.28);
    animation: cvIn .18s ease;
}
.ask__panel h2 { margin: 0; color: #10243d; font-size: 18px; letter-spacing: -0.02em; }
.ask__note { margin: 0; color: #64748b; font-size: 13px; }
.ask__reason { display: grid; gap: 4px; color: #10243d; font-size: 12px; font-weight: 800; }
.ask__reason input {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
    color: #10243d;
    font: inherit;
    font-weight: 600;
}
.ask__row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ask__no, .ask__yes {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.ask__no { border: 1px solid #e3eaf2; background: #fff; color: #10243d; }
.ask__yes { border: 0; background: #10243d; color: #fff; }
.ask__yes--ok { background: #15803d; }
.ask__yes--no { background: #b91c1c; }
.ask__yes--next { background: #1479d1; }
.cf-view {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
    color: #10243d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.cf-more { position: relative; }
.cf-more summary {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
    list-style: none;
    cursor: pointer;
}
.cf-more summary::-webkit-details-marker { display: none; }
.cf-more summary i { display: block; width: 3px; height: 3px; margin: 1px 0; border-radius: 50%; background: #10243d; }
.cf-menu {
    position: absolute;
    right: 0;
    z-index: 5;
    display: grid;
    min-width: 160px;
    margin-top: 6px;
    padding: 6px;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 36, 61, 0.12);
}
.cf-menu a, .cf-menu button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #10243d;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.cf-menu a:hover, .cf-menu button:hover { background: #f4f8fc; }
.cf-cards { display: none; gap: 12px; padding: 0 18px 18px; }
.cf--grid .cf-table-wrap { display: none; }
.cf--grid .cf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid #e3eaf2; border-radius: 16px; background: #fff; }
.cf-card__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cf-card__body p { margin: 2px 0; color: #64748b; font-size: 12px; font-weight: 700; }
.cf-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cf-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.cf-card__foot b { color: #10243d; }
.cf-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 16px; text-align: center; }
.cf-empty span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e7f3fc; color: #1479d1; }
.cf-empty h3 { margin: 6px 0 0; color: #10243d; }
.cf-empty p { margin: 0 0 8px; color: #64748b; }
.cf-alert { padding: 22px; border: 1px solid #fecaca; border-radius: 18px; background: #fff; }
.cf-alert h2 { margin: 0 0 6px; color: #10243d; font-size: 18px; }
.cf-alert p { margin: 0 0 12px; color: #64748b; }
.cf-pager { padding: 12px 18px 16px; color: #64748b; font-size: 13px; font-weight: 700; }
.cf-pager p { margin: 0; }
.cf-pager div { display: flex; align-items: center; gap: 6px; }
.cf-pager a, .cf-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
    color: #10243d;
    text-decoration: none;
}
.cf-pager span.is-on { background: #f36a16; border-color: #f36a16; color: #fff; }
.cf-pager span.is-off { color: #94a3b8; }
.cf-pager form { margin: 0; }
@media (max-width: 1200px) {
    .cf-kpis:not(.cf-kpis--6), .cf-kpis--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cf-kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
    .cf--grid .cf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .cf-kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .cf-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding-bottom: 18px; }
    .cf-hero__copy { order: 1; }
    .cf-add, .cf-hero form { order: 2; margin-left: 0; }
    .cf-hero__photo { order: 3; position: relative; flex: none; max-width: none; margin-left: 0; width: 100%; height: 88px; border-radius: 12px; -webkit-mask-image: none; mask-image: none; }
    .cf-kpis, .cf-kpis--3, .cf-kpis--4, .cf-kpis--6, .cf--grid .cf-cards { grid-template-columns: 1fr 1fr; }
    .cf-table-wrap { display: none; }
    .cf-cards { display: grid; grid-template-columns: 1fr; }
    .cf-panel__head, .cf-pager { align-items: flex-start; flex-direction: column; }
    .cf-filters { justify-content: stretch; }
    .cf-filters select, .cf-filter, .cf-reset, .cf-search { width: 100%; }
}
@media (max-width: 520px) {
    .cf-hero h1 { font-size: 28px; }
}

.cv { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.cv__shade { position: absolute; inset: 0; border: 0; background: rgba(8, 20, 38, 0.48); backdrop-filter: blur(3px); cursor: pointer; }
.cv__x {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f4f8fc;
    color: #10243d;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    flex: none;
    transition: background .16s ease, color .16s ease;
}
.cv__x:hover { background: #e7eef6; color: #0b2038; }
.cv__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid #e7eef5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 26, 45, 0.28);
    z-index: 1;
    animation: cvIn .18s ease;
}
.cv--notice .cv__panel { width: min(440px, 100%); }
.cv-note__ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
    background: #fff1e8;
    color: #ea580c;
}
.cv-note__ico .adm-ico { width: 20px; height: 20px; }
.cv__panel > h2 { margin: 0; padding: 18px 18px 0; color: #10243d; font-size: 18px; }
.cv__panel > p { margin: 6px 18px 0; color: #64748b; font-size: 13px; }
.cv__panel > .cf-add { align-self: flex-end; margin: 16px 18px; }
.cv--notice .cv__foot { justify-content: flex-end; }
@keyframes cvIn {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: none; }
}
body.has-popup { overflow: hidden; }
.cv__head, .cv__foot { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.cv__head { border-bottom: 1px solid #e3eaf2; }
.cv__foot { border-top: 1px solid #e3eaf2; background: #f8fbfe; }
.cv__foot .cf-add, .cv__add .cf-add { margin-left: 0; }
.cv__lead { width: 72px; height: 48px; border-radius: 10px; object-fit: cover; background: #f4f8fc; }
.cv__lead--empty { display: grid; place-items: center; color: #94a3b8; }
.cv__code { margin: 0; color: #64748b; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.cv__head h2 { margin: 0; color: #10243d; font-size: 22px; letter-spacing: -0.03em; }
.cv__reg { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.cv-flag { padding: 4px 8px; border-radius: 999px; background: #fff1e8; color: #c2410c; font-size: 12px; font-weight: 800; }
.cv .adm-flash { margin: 12px 18px 0; }
.cv__tabs { display: flex; gap: 6px; padding: 12px 18px 0; }
.cv__tabs button {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.cv__tabs button.is-on { background: #10243d; color: #fff; }
.cv__body { overflow: auto; padding: 16px 18px 20px; }
.cv__pane { display: none; }
.cv__pane.is-on { display: block; }
.cv__hero { width: 100%; height: 240px; object-fit: cover; border-radius: 16px; background: #f4f8fc; }
.cv__shots { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.cv__shots button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.cv__shots button.is-on { border-color: #f36a16; }
.cv__shots img { display: block; width: 84px; height: 52px; object-fit: cover; border-radius: 8px; }
.cv__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.cv__specs div { padding: 10px 12px; border: 1px solid #e3eaf2; border-radius: 12px; background: #f8fbfe; }
.cv__specs dt { color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.cv__specs dd { margin: 3px 0 0; color: #10243d; font-size: 14px; font-weight: 700; }
.cv__body h3 { margin: 16px 0 6px; color: #10243d; font-size: 15px; }
.cv__copy, .cv__note, .cv-miss { color: #64748b; }
.cv__prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cv__prices article { padding: 14px; border: 1px solid #e3eaf2; border-radius: 14px; }
.cv__prices p { margin: 0; color: #64748b; font-size: 12px; font-weight: 700; }
.cv__prices strong { display: block; margin-top: 4px; color: #10243d; font-size: 20px; }
.cv__features { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.cv__features li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e3eaf2; border-radius: 12px; }
.cv__features strong, .cv__features small { display: block; }
.cv__features small { color: #64748b; }
.cv__features button, .cv__add input {
    min-height: 36px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}
.cv__features button { padding: 0 10px; color: #b42318; font-weight: 700; cursor: pointer; }
.cv__features a { color: #1479d1; font-weight: 800; text-decoration: none; }
.cv__add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.cv__add label { display: grid; gap: 4px; color: #10243d; font-size: 12px; font-weight: 800; }
.cv__add input { padding: 0 10px; color: #10243d; }
.cv .cf-table-wrap { display: block; }
.cv-back { margin: 0; }
.cv-back a { color: #1479d1; font-weight: 700; }
.cv .adm-form { max-width: none; }
.cv .adm-form .adm-btn { justify-self: start; }
@media (max-width: 800px) {
    .cv { padding: 0; }
    .cv__panel { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
    .cv--notice { padding: 16px; }
    .cv--notice .cv__panel { width: min(440px, 100%); height: auto; max-height: none; border-radius: 18px; }
    .cv__specs, .cv__prices, .cv__add { grid-template-columns: 1fr 1fr; }
    .cv__head { flex-wrap: wrap; }
    .cv__foot { flex-wrap: wrap; }
}
.cv-upload {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    background: #f8fbfe;
}
.cv-upload label { display: grid; gap: 4px; color: #10243d; font-size: 12px; font-weight: 800; }
.cv-upload input { min-height: 40px; padding: 8px 10px; border: 1px solid #e3eaf2; border-radius: 10px; background: #fff; font: inherit; }
.cv-upload p { grid-column: 1 / -1; margin: 0; color: #64748b; font-size: 12px; }
.cv-upload .cf-add { margin-left: 0; }
.cv-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.cv-shot { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid #e3eaf2; border-radius: 14px; }
.cv-shot > button { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; }
.cv-shot > button.is-on { border-color: #f36a16; }
.cv-shot img { display: block; width: 100%; height: 78px; object-fit: cover; border-radius: 10px; }
.cv-shot__empty { display: block; height: 78px; border-radius: 10px; background: #eef4fa; }
.cv-shot strong, .cv-shot small { display: block; }
.cv-shot strong { color: #10243d; font-size: 14px; }
.cv-shot small { color: #64748b; font-size: 12px; }
.cv-shot__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cv-shot__actions button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
    color: #10243d;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.cv-shot__actions form:last-child button { color: #b42318; }
@media (max-width: 700px) {
    .cv-upload { grid-template-columns: 1fr; }
}

/* Inspection Subsystem Modal Styles */
.insp-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 16px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 13px;
    color: #166534;
}
.insp-quick span { display: inline-flex; align-items: center; gap: 6px; }
.insp-quick .adm-ico { width: 16px; height: 16px; color: #16a34a; }

.insp-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.insp-banner strong { display: block; font-size: 16px; color: #0f172a; }
.insp-banner small { color: #64748b; font-size: 11px; text-transform: uppercase; font-weight: 700; }

.insp-card {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 16px;
}
.insp-card--pickup { border-left: 4px solid #16a34a; }
.insp-card--return { border-left: 4px solid #f97316; }
.insp-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.insp-card__head strong { font-size: 15px; color: #0f172a; }
.insp-card__head span { font-size: 12px; color: #64748b; }

.insp-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}
.insp-check-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.insp-check-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: #15803d; }

.insp-inventory { margin-top: 14px; }
.insp-inventory__hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}
.insp-checks-grid--inventory {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent;
}
.insp-check-item--toggle {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    user-select: none;
}
.insp-check-item--toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.insp-check-item__box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
}
.insp-check-item__box::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 3px;
    background: transparent;
}
.insp-check-item__label {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}
.insp-check-item__state {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 2px 8px;
}
.insp-check-item--toggle:has(input:checked) {
    border-color: #86efac;
    background: #f0fdf4;
}
.insp-check-item--toggle:has(input:checked) .insp-check-item__box {
    border-color: #16a34a;
    background: #16a34a;
}
.insp-check-item--toggle:has(input:checked) .insp-check-item__box::after {
    content: "✓";
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: transparent;
}
.insp-check-item--toggle:has(input:checked) .insp-check-item__state {
    color: #15803d;
    background: #dcfce7;
    border-color: #86efac;
}
.insp-inventory-summary {
    margin: 14px 0 4px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.insp-inventory-summary > strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.insp-inventory-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}
.insp-inventory-summary li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}
.insp-inventory-summary li em {
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}
.insp-inventory-summary li.is-ok {
    border-color: #86efac;
    background: #f0fdf4;
}
.insp-inventory-summary li.is-ok em { color: #15803d; }
.insp-inventory-summary li.is-miss {
    border-color: #fecaca;
    background: #fef2f2;
}
.insp-inventory-summary li.is-miss em { color: #b91c1c; }

.insp-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.insp-photo-item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}
.insp-photo-item img { width: 100%; height: 70px; object-fit: cover; display: block; }
.insp-photo-item span {
    display: block;
    padding: 3px 4px;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insp-overage-box {
    margin: 16px 0;
    padding: 14px;
    background: #fff7ed;
    border: 1.5px solid #ffedd5;
    border-radius: 12px;
}
.insp-overage-box h4 { margin: 0 0 8px; color: #9a3412; font-size: 14px; font-weight: 800; }
.insp-overage-box p { margin: 0 0 6px; font-size: 13px; color: #7c2d12; }

/* Inspection flow — step-based handover UI */
.insp-flow--premium {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #dbe3f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    background:
        radial-gradient(1200px 280px at 10% -20%, rgba(14, 165, 233, 0.10), transparent 55%),
        radial-gradient(900px 240px at 100% 0%, rgba(249, 115, 22, 0.08), transparent 50%),
        #fff;
}
.insp-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0c4a6e 100%);
    color: #fff;
}
.insp-hero__glow {
    position: absolute;
    inset: auto -40px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
    pointer-events: none;
}
.insp-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #bae6fd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.insp-hero__copy { position: relative; z-index: 1; max-width: 560px; }
.insp-hero h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}
.insp-hero p {
    margin: 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: 13.5px;
    line-height: 1.5;
}
.insp-hero .insp-phase-pill {
    position: relative;
    z-index: 1;
    align-self: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.insp-flow__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.insp-flow__intro h2 { margin: 0 0 4px; }
.insp-flow__sub {
    margin: 0;
    max-width: 520px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}
.insp-phase-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}
.insp-phase-pill--handover { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
.insp-phase-pill--trip { background: #ffedd5; color: #c2410c; border-color: #fdba74; }
.insp-phase-pill--done { background: #dcfce7; color: #166534; border-color: #86efac; }

.insp-stepper {
    list-style: none;
    margin: 0 0 20px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.insp-flow--premium .insp-stepper--premium {
    margin: 16px 18px 8px;
    padding: 12px;
    gap: 8px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.insp-flow--premium .insp-stage-grid {
    padding: 10px 18px 20px;
    gap: 18px;
}
.insp-flow--premium .insp-banner--premium {
    margin: 8px 18px 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border: 1px solid #e2e8f0;
}
.insp-flow--premium .insp-banner--premium > div {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
.insp-field-card {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%);
}
.insp-field-card__title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

/* Shared trip readings (desktop + mobile) — chips/odo used by both */
.insp-readings .insp-odo {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
}
.insp-odo__label {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.insp-odo__row {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.insp-odo__row:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.insp-odo__input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 48px !important;
    padding: 10px 14px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    background: transparent !important;
}
.insp-odo__unit {
    display: grid;
    place-items: center;
    padding: 0 14px;
    background: #f1f5f9;
    color: #475569;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    border-left: 1px solid #e2e8f0;
}
.insp-odo__hint {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}
.insp-chips-block { margin: 0 0 14px; }
.insp-chips-block__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.insp-chips-block__label em {
    font-style: normal;
    font-weight: 700;
    color: #0284c7;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}
.insp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.insp-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.insp-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.insp-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.insp-chip:hover span {
    border-color: #94a3b8;
    background: #f8fafc;
}
.insp-chip--wide span {
    border-radius: 12px;
    text-align: center;
}
.insp-chips--wrap .insp-chip {
    flex: 1 1 calc(50% - 8px);
}
.insp-chip input:checked + span {
    border-color: #0284c7;
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: inset 0 0 0 1px #0284c7;
}
.insp-chip input:focus-visible + span {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}
.insp-notes {
    display: grid;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.insp-notes textarea {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    min-height: 72px;
    border-radius: 12px !important;
    font-size: 14px !important;
}

/* Cleanliness — compact icon row (saves space on desktop + mobile) */
.insp-clean-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.insp-clean-ico {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.insp-clean-ico input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.insp-clean-ico__box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 64px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    display: grid;
    place-items: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.insp-clean-ico__mark {
    font-size: 22px;
    line-height: 1;
}
.insp-clean-ico__tick {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.insp-clean-ico__txt {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-align: center;
    line-height: 1.15;
}
.insp-clean-ico:hover .insp-clean-ico__box {
    border-color: #94a3b8;
    background: #f8fafc;
}
.insp-clean-ico:has(input:checked) .insp-clean-ico__box {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}
.insp-clean-ico:has(input:checked) .insp-clean-ico__tick {
    display: inline-flex;
}
.insp-clean-ico:has(input:checked) .insp-clean-ico__txt {
    color: #166534;
}
.insp-clean-ico:has(input:focus-visible) .insp-clean-ico__box {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

/* Desktop-only inspection polish — does not change yard mobile */
@media (min-width: 901px) {
    .insp-flow--premium .insp-stage-grid {
        gap: 20px;
        padding: 8px 22px 24px;
    }
    .insp-flow--premium .insp-stage {
        min-height: 420px;
    }
    .insp-flow--premium .insp-stage__head {
        padding: 18px 20px 14px;
    }
    .insp-flow--premium .insp-stage__body {
        padding: 16px 20px 20px;
    }
    .insp-flow--premium .insp-readings {
        padding: 16px 18px;
        border-radius: 16px;
        border-color: #dbe3f0;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    .insp-flow--premium .insp-odo__input {
        min-height: 52px !important;
        font-size: 24px !important;
    }
    .insp-flow--premium .insp-chips {
        gap: 10px;
    }
    .insp-flow--premium .insp-chip span {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 13px;
    }
    .insp-flow--premium .insp-chips--wrap .insp-chip {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 5px);
    }
    .insp-flow--premium .insp-clean-icons {
        max-width: 360px;
        gap: 10px;
    }
    .insp-flow--premium .insp-clean-ico__box {
        max-height: 56px;
    }
    .insp-flow--premium .insp-checklist--premium {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .insp-flow--premium .insp-submit {
        width: 100%;
        margin-top: 4px;
    }
    .insp-flow--premium .insp-lock-panel {
        margin: 8px 4px;
        padding: 28px 24px;
        border-radius: 16px;
        text-align: center;
    }
}
.insp-form--premium label {
    font-weight: 700;
    color: #334155;
}
.insp-form--premium input,
.insp-form--premium select,
.insp-form--premium textarea {
    border-radius: 10px !important;
    border-color: #cbd5e1 !important;
    min-height: 42px;
    background: #fff;
}
.insp-form--premium textarea { min-height: 72px; }
.insp-checklist--premium {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
    display: grid;
    gap: 8px;
}
.insp-checklist--premium li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 650;
    color: #334155;
    line-height: 1.4;
}
.insp-check-ico {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.insp-metrics--premium {
    gap: 10px !important;
}
.insp-metrics--premium div {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    padding: 12px 14px !important;
}
.insp-metrics--premium dd em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-left: 2px;
}
.insp-baseline--premium {
    border-radius: 14px !important;
    padding: 12px 14px !important;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4) !important;
}
.insp-flow--premium .insp-stage {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    background: #fff;
}
.insp-flow--premium .insp-stage--pickup.is-active {
    border-color: #38bdf8;
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.16);
}
.insp-flow--premium .insp-stage--return.is-active {
    border-color: #fb923c;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.14);
}
.insp-flow--premium .insp-stage__head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #eef2f7;
}
.insp-flow--premium .insp-stage__title h3 {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.insp-flow--premium .insp-stage__badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10.5px;
    letter-spacing: 0.04em;
}
.insp-flow--premium .insp-submit {
    border-radius: 12px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.25);
}

/* Premium advance toggle + CTA (pickup / return) */
.insp-advance--premium {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 14px 0 12px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}
.insp-advance--premium input[type="checkbox"] {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #0284c7;
    cursor: pointer;
}
.insp-advance__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.insp-advance__copy strong {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.insp-advance__copy small {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
}
.insp-submit--premium {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    margin-top: 4px;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 48%, #0369a1 100%) !important;
    color: #fff !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 14px 28px rgba(2, 132, 199, 0.32),
        0 4px 10px rgba(15, 23, 42, 0.08) !important;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.insp-submit--premium:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 18px 34px rgba(2, 132, 199, 0.38),
        0 6px 12px rgba(15, 23, 42, 0.1) !important;
}
.insp-submit--premium:active {
    transform: translateY(1px) scale(0.992);
}
.insp-submit--return {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 48%, #c2410c 100%) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 14px 28px rgba(234, 88, 12, 0.3),
        0 4px 10px rgba(15, 23, 42, 0.08) !important;
}
.insp-submit--return:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 18px 34px rgba(234, 88, 12, 0.36),
        0 6px 12px rgba(15, 23, 42, 0.1) !important;
}
.insp-submit__ico {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}
.insp-submit__copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.insp-submit__copy strong {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.insp-submit__copy small {
    font-size: 11.5px;
    font-weight: 650;
    opacity: 0.88;
    line-height: 1.3;
}
@media (max-width: 900px) {
    .insp-advance--premium {
        padding: 14px !important;
        border-radius: 18px !important;
        gap: 14px;
    }
    .insp-advance--premium input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
    .insp-submit--premium {
        min-height: 64px;
        padding: 16px 18px !important;
        border-radius: 18px !important;
        gap: 14px;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.28) inset,
            0 16px 36px rgba(2, 132, 199, 0.4),
            0 6px 14px rgba(15, 23, 42, 0.12) !important;
    }
    .insp-submit--return {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.24) inset,
            0 16px 36px rgba(234, 88, 12, 0.38),
            0 6px 14px rgba(15, 23, 42, 0.12) !important;
    }
    .insp-submit__ico {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .insp-submit__copy strong {
        font-size: 16px;
    }
    .insp-submit__copy small {
        font-size: 12px;
    }
}
.insp-flow--premium .insp-photos-block__head strong {
    font-size: 14px;
}
.insp-flow--premium .insp-slot--capture,
.insp-flow--premium .insp-slot-grid--manage .insp-slot {
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.insp-flow--premium .insp-slot--capture:hover,
.insp-flow--premium .insp-slot-grid--manage .insp-slot:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.insp-flow--premium .insp-step {
    border-radius: 14px;
    padding: 12px 12px;
    border: 1px solid transparent;
    background: #fff;
}
.insp-flow--premium .insp-step.is-active {
    border-color: #7dd3fc;
    background: linear-gradient(180deg, #f0f9ff, #fff);
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.12);
}
.insp-flow--premium .insp-step.is-done {
    border-color: #86efac;
    background: linear-gradient(180deg, #f0fdf4, #fff);
}
.insp-flow--premium .insp-step.is-locked {
    opacity: 0.72;
    background: #f8fafc;
}
.insp-flow--premium .insp-stage__body {
    padding: 16px 18px 18px;
}
.insp-flow--premium .insp-overage-box {
    margin: 8px 18px 4px;
    border-radius: 16px;
}
.insp-flow--premium .insp-advance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
}
@media (max-width: 900px) {
    .insp-hero { padding: 18px 16px 16px; }
    .insp-hero h2 { font-size: 19px; }
    .insp-flow--premium .insp-stepper--premium,
    .insp-flow--premium .insp-stage-grid,
    .insp-flow--premium .insp-banner--premium,
    .insp-flow--premium .insp-overage-box {
        margin-left: 12px;
        margin-right: 12px;
    }
    .insp-flow--premium .insp-banner--premium {
        grid-template-columns: 1fr;
        padding-left: 12px;
        padding-right: 12px;
    }
}
.insp-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    background: #fff;
    opacity: 0.72;
}
.insp-step.is-active {
    opacity: 1;
    border-style: solid;
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}
.insp-step.is-done {
    opacity: 1;
    border-style: solid;
    border-color: #86efac;
    background: #f0fdf4;
}
.insp-step.is-locked { background: #f8fafc; }
.insp-step__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: #e2e8f0;
    color: #475569;
}
.insp-step.is-active .insp-step__num { background: #2563eb; color: #fff; }
.insp-step.is-done .insp-step__num { background: #16a34a; color: #fff; }
.insp-step__copy { display: grid; gap: 2px; min-width: 0; }
.insp-step__copy strong { font-size: 13px; color: #0f172a; }
.insp-step__copy small { font-size: 11.5px; color: #64748b; line-height: 1.35; }

.insp-stage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.insp-stage {
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    min-height: 280px;
}
.insp-stage--pickup.is-active {
    border-color: #2563eb;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
}
.insp-stage--pickup.is-complete { border-color: #86efac; }
.insp-stage--return.is-active {
    border-color: #ea580c;
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.12);
}
.insp-stage--return.is-complete { border-color: #86efac; }
.insp-stage--return.is-locked {
    border-color: #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.insp-stage__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}
.insp-stage.is-active .insp-stage__head { background: #f8fbff; }
.insp-stage--return.is-active .insp-stage__head { background: #fffaf5; }
.insp-stage.is-complete .insp-stage__head { background: #f7fdf9; }
.insp-stage__title { min-width: 0; }
.insp-stage__badge {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #e2e8f0;
    color: #475569;
}
.insp-stage.is-active .insp-stage__badge { background: #dbeafe; color: #1d4ed8; }
.insp-stage--return.is-active .insp-stage__badge { background: #ffedd5; color: #c2410c; }
.insp-stage.is-complete .insp-stage__badge { background: #dcfce7; color: #166534; }
.insp-stage.is-locked .insp-stage__badge { background: #e2e8f0; color: #64748b; }
.insp-stage__title h3 { margin: 0 0 4px; font-size: 15px; color: #0f172a; }
.insp-stage__title p { margin: 0; font-size: 12.5px; color: #64748b; line-height: 1.4; }
.insp-stage__status { flex-shrink: 0; text-align: right; }
.insp-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}
.insp-status small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; opacity: 0.85; }
.insp-status--active { background: #dbeafe; color: #1d4ed8; }
.insp-stage--return .insp-status--active { background: #ffedd5; color: #c2410c; }
.insp-status--ok { background: #dcfce7; color: #166534; }
.insp-status--locked { background: #e2e8f0; color: #64748b; }

.insp-stage__body { padding: 16px; }
.insp-checklist {
    margin: 0 0 14px;
    padding: 10px 12px 10px 28px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    line-height: 1.45;
}
.insp-checklist li { margin: 4px 0; }
.insp-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}
.insp-metrics div {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.insp-metrics dt {
    margin: 0 0 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}
.insp-metrics dd {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.insp-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 12.5px;
    line-height: 1.45;
}
.insp-baseline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 12.5px;
}
.insp-baseline strong { margin-right: 4px; }
.insp-baseline span {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #bbf7d0;
    font-weight: 700;
}
.insp-advance {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #334155;
}
.insp-advance input { margin-top: 2px; accent-color: #2563eb; }
.insp-submit {
    width: 100%;
    margin-top: 12px;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
}

.insp-lock-panel {
    margin: 16px;
    padding: 28px 20px;
    border-radius: 14px;
    border: 1.5px dashed #cbd5e1;
    background: rgba(248, 250, 252, 0.92);
    text-align: center;
    color: #475569;
}
.insp-lock-panel__icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
}
.insp-lock-panel strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #0f172a;
}
.insp-lock-panel p {
    margin: 0 auto 12px;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.45;
}
.insp-lock-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 12.5px;
    color: #64748b;
}
.insp-lock-panel li::before {
    content: "• ";
    color: #94a3b8;
}

@media (max-width: 980px) {
    .insp-stepper { grid-template-columns: 1fr; }
    .insp-stage-grid { grid-template-columns: 1fr; }
}

/* Required inspection photo slots (Yard Staff / mobile) */
.insp-photos-block { margin-top: 12px; }
.insp-photos-block__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12.5px;
}
.insp-photos-block__head strong { color: #0f172a; font-size: 13px; }
.insp-photos-block__head span { color: #64748b; font-weight: 600; font-size: 11.5px; }
.insp-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.insp-slot-grid--optional { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.insp-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 118px;
    padding: 10px;
    border-radius: 12px;
    border: 1.5px dashed #cbd5e1;
    background: #f8fafc;
    overflow: visible;
}
.insp-slot--input { cursor: pointer; overflow: hidden; }
.insp-slot--input:hover { border-color: #0284c7; background: #f0f9ff; }
.insp-slot--capture { overflow: visible; }
.insp-slot--capture.has-file {
    border-style: solid;
    border-color: #38bdf8;
    background: #f0f9ff;
}
.insp-slot__pick-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
}
.insp-slot__tap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 72px;
    margin-top: 6px;
    border: 1.5px dashed #94a3b8;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}
.insp-slot__tap--half {
    min-height: 64px;
    margin-top: 0;
    font-size: 11.5px;
    padding: 8px 6px;
}
.insp-slot--capture.has-file .insp-slot__tap,
.insp-slot--capture.has-file .insp-slot__pick-row { display: none; }
.insp-slot-act--camera {
    border-color: #38bdf8;
    background: #e0f2fe;
    color: #0369a1;
}
.insp-slot--capture .insp-slot__thumb {
    display: none;
    margin-top: 6px;
    height: 96px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid #e2e8f0;
}
.insp-slot--capture.has-file .insp-slot__thumb {
    display: block !important;
}
.insp-slot--capture.has-file .insp-slot__hint { display: none; }
.insp-slot--capture .insp-slot__file {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    inset: auto !important;
    pointer-events: none;
}
.insp-slot--capture .insp-slot__actions[hidden],
.insp-slot--capture .insp-slot__thumb[hidden] { display: none !important; }
.insp-slot--capture.has-file .insp-slot__actions {
    display: flex !important;
}
.insp-slot.is-filled { border-style: solid; border-color: #86efac; background: #f0fdf4; }
.insp-slot.is-missing { border-color: #fecaca; background: #fef2f2; }
.insp-slot.has-file { border-style: solid; border-color: #38bdf8; background: #f0f9ff; }
.insp-slot.is-compressing { opacity: 0.72; }
.insp-slot__badge {
    align-self: flex-start;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
}
.insp-slot__badge--opt { background: #e2e8f0; color: #475569; }
.insp-slot__badge--done {
    background: #dcfce7;
    color: #166534;
}
.insp-slot__badge--ready {
    background: #dbeafe;
    color: #1d4ed8;
}
.insp-slot__label { font-size: 13px; font-weight: 800; color: #0f172a; }
.insp-slot__hint { font-size: 11px; color: #64748b; line-height: 1.35; }
.insp-slot__thumb {
    display: none;
    margin-top: 4px;
    height: 72px;
    width: 100%;
    padding: 0;
    border-radius: 8px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}
.insp-slot.has-file .insp-slot__thumb { display: block; }
.insp-upload-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.insp-upload-overlay.is-open { display: flex; }
.insp-upload-overlay__card {
    width: min(360px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    text-align: center;
}
.insp-upload-overlay__spin {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    animation: insp-spin 0.8s linear infinite;
}
@keyframes insp-spin {
    to { transform: rotate(360deg); }
}
.insp-upload-overlay__title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.insp-upload-overlay__note {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}
.insp-upload-overlay__bar {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.insp-upload-overlay__fill {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    animation: insp-upload-slide 1.2s ease-in-out infinite;
}
@keyframes insp-upload-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}
/* Full-slot camera overlay ONLY on create/capture cards — never on manage slots */
.insp-slot--input > input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-size: 0;
    z-index: 2;
}
.insp-slot__preview {
    display: block;
    margin-top: 4px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 88px;
}
.insp-slot__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insp-slot__empty {
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #b91c1c;
}
.insp-slot__actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    position: relative;
    z-index: 5;
}
.insp-slot-act {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    position: relative;
    z-index: 6;
}
.insp-slot-act--view { border-color: #38bdf8; background: #e0f2fe; color: #0369a1; }
.insp-slot-act--retake { border-color: #fb923c; background: #ffedd5; color: #c2410c; }
.insp-slot-act--del { border-color: #f87171; background: #fee2e2; color: #b91c1c; }
.insp-slot-retake, .insp-slot-delete { margin: 0; display: inline-flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 6; }
.insp-slot-retake input[type="file"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    inset: auto !important;
    z-index: 0 !important;
}
.insp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.82);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.insp-lightbox.is-open { display: flex; }
.insp-lightbox__panel {
    position: relative;
    max-width: min(920px, 100%);
    max-height: 90vh;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.insp-lightbox__panel img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #000;
}
.insp-lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}
.insp-lightbox__close {
    border: 0;
    background: #f1f5f9;
    color: #0f172a;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

/* Yard full-screen / Add-to-Home helpers */
.yard-fs-btn {
    display: none;
}
.yard-fs-tip {
    display: none;
}
@media (max-width: 900px) {
    .adm--yard .yard-fs-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        position: fixed;
        right: 12px;
        bottom: calc(var(--adm-bottom-h, 64px) + 12px);
        z-index: 1090;
        min-height: 42px;
        padding: 8px 14px;
        border: 0;
        border-radius: 999px;
        background: #0f172a;
        color: #fff;
        font: inherit;
        font-size: 12.5px;
        font-weight: 800;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .adm--yard .yard-fs-btn.is-on {
        background: #15803d;
    }
    .adm--yard .yard-fs-btn__ico {
        font-size: 14px;
        line-height: 1;
    }
    .adm--yard .yard-fs-tip {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(var(--adm-bottom-h, 64px) + 62px);
        z-index: 1085;
        padding: 12px 36px 12px 14px;
        border-radius: 14px;
        background: #fff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
        color: #334155;
        font-size: 12.5px;
        line-height: 1.4;
    }
    .adm--yard .yard-fs-tip[hidden] { display: none !important; }
    .adm--yard .yard-fs-tip strong {
        display: block;
        margin-bottom: 2px;
        color: #0f172a;
        font-size: 13px;
    }
    .adm--yard .yard-fs-tip em { font-style: normal; font-weight: 800; color: #0284c7; }
    .adm--yard .yard-fs-tip__x {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 8px;
        background: #f1f5f9;
        color: #64748b;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
    }
}

/* Yard Staff mobile shell */
.adm--yard .adm-sidebar { /* kept for desktop */ }
.bk-yard-briefing { display: none; }

@media (max-width: 900px) {
    .adm--yard .adm-sidebar { display: none !important; }
    .adm--yard .adm-shell { padding-left: 0 !important; }
    .adm--yard .adm-main { display: flex; flex-direction: column; min-height: 100dvh; }
    .adm--yard .adm-top {
        position: sticky;
        top: 0;
        z-index: 40;
        flex: none;
        min-height: 52px;
        padding: 6px 10px;
        background: #fff;
        box-shadow: 0 1px 0 #e2e8f0;
    }
    .adm--yard .adm-content {
        flex: 1;
        min-height: 0;
        padding: 0 0 100px !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .adm--yard .bk-view-wrap--yard {
        padding: 0;
    }
    .adm--yard .bk-yard-card {
        display: block;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(15,23,42,.04);
        text-decoration: none;
        color: inherit;
    }
    .adm--yard .bk-yard-card__top {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        align-items: flex-start;
        margin-bottom: 8px;
    }
    .adm--yard .bk-yard-card__ref { font-size: 14px; font-weight: 800; color: #0f172a; }
    .adm--yard .bk-yard-card__meta { font-size: 12.5px; color: #475569; line-height: 1.45; }
    .adm--yard .bk-yard-card__cta {
        display: block;
        margin-top: 12px;
        text-align: center;
        padding: 12px;
        border-radius: 10px;
        background: #0284c7;
        color: #fff;
        font-weight: 800;
        font-size: 14px;
    }
    .adm--yard .cf-table-wrap.bk-desktop-table { display: none; }
    .adm--yard .bk-yard-mobile-list { display: block; }
    .insp-slot-grid { grid-template-columns: 1fr 1fr; }

    /* Booking view: briefing first, hide office chrome */
    .adm--yard .bk-yard-briefing {
        display: grid;
        gap: 10px;
        margin: 0;
        padding: 10px 12px 12px;
    }
    .adm--yard .bk-top-actions,
    .adm--yard .bk-stepper,
    .adm--yard .bk-metrics-grid--office,
    .adm--yard .bk-action-banner,
    .adm--yard .bk-turnaround-banner,
    .adm--yard .bk-office-extra {
        display: none !important;
    }
    .adm--yard .bk-top-bar {
        padding: 8px 12px 6px;
        margin: 0;
    }
    .adm--yard .bk-top-title h1 {
        font-size: 16px;
        gap: 6px;
    }
    .adm--yard .bk-top-title h1 > span:nth-of-type(1),
    .adm--yard .bk-top-title p {
        display: none;
    }
    /* Tabs flush under sticky top bar — no gap */
    .adm--yard .bk-tabs-nav {
        position: sticky;
        top: 0;
        z-index: 35;
        margin: 0 !important;
        padding: 8px 10px !important;
        gap: 6px;
        background: #fff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-top: 0 !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
        scroll-margin-top: 0;
    }
    .adm--yard .bk-tab-btn {
        flex: 1 1 0;
        justify-content: center;
        min-height: 40px;
        border-radius: 10px;
        font-size: 12px;
        padding: 7px 8px;
        white-space: nowrap;
    }

    /* Full-page inspection workspace */
    .adm--yard .bk-view-wrap--yard-insp .bk-top-bar,
    .adm--yard .bk-view-wrap--yard-insp .bk-yard-briefing {
        display: none !important;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-flow--premium {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        margin: 0;
        padding: 0 !important;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-hero,
    .adm--yard .bk-view-wrap--yard-insp .insp-stepper,
    .adm--yard .bk-view-wrap--yard-insp .insp-banner--premium {
        display: none !important;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-stage-grid {
        display: block;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-stage {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 0 10px;
        background: #fff;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-stage.is-locked {
        display: none !important;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-stage.is-complete:not(.is-active) {
        /* keep completed stage collapsed summary but full width */
        border-bottom: 8px solid #f1f5f9 !important;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-stage__head {
        padding: 14px 14px 12px;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-stage__body {
        padding: 0 12px 18px;
    }
    .adm--yard .bk-view-wrap--yard-insp .insp-field-card,
    .adm--yard .bk-view-wrap--yard-insp .insp-readings {
        border-radius: 16px;
        padding: 14px;
        margin-bottom: 12px;
    }

    /* Mobile touch overrides only (yard + phone) — desktop uses shared styles above */
    .insp-odo__row {
        border-width: 2px;
        border-radius: 14px;
    }
    .insp-odo__input {
        min-height: 56px !important;
        font-size: 28px !important;
        font-weight: 900 !important;
    }
    .insp-chip span {
        min-height: 40px;
    }

    .bk-yard-briefing__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .bk-yard-briefing__eyebrow {
        display: block;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #0284c7;
        margin-bottom: 2px;
    }
    .bk-yard-briefing__ref {
        font-size: 16px;
        font-weight: 900;
        color: #0f172a;
    }
    .bk-yard-panel {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 14px 14px 12px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }
    .bk-yard-panel__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
    }
    .bk-yard-panel__label {
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #64748b;
    }
    .bk-yard-panel__chip {
        font-size: 11px;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 999px;
        background: #f1f5f9;
        color: #334155;
    }
    .bk-yard-panel__title {
        margin: 0 0 8px;
        font-size: 17px;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: -0.02em;
        line-height: 1.25;
    }
    .bk-yard-panel__rows {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 6px;
    }
    .bk-yard-panel__rows li {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: baseline;
        font-size: 13px;
        color: #64748b;
    }
    .bk-yard-panel__rows strong {
        color: #0f172a;
        font-weight: 800;
        text-align: right;
    }
    .bk-yard-panel__rows .ok { color: #16a34a; font-style: normal; }
    .bk-yard-panel__rows .bad { color: #dc2626; }
    .bk-yard-panel__rows--times .dot {
        font-weight: 800;
        color: #0f172a;
    }
    .bk-yard-panel__rows--times .dot--out::before,
    .bk-yard-panel__rows--times .dot--in::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 6px;
        vertical-align: middle;
    }
    .bk-yard-panel__rows--times .dot--out::before { background: #16a34a; }
    .bk-yard-panel__rows--times .dot--in::before { background: #dc2626; }
    .bk-yard-panel__actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px dashed #e2e8f0;
    }
    .bk-yard-panel__actions .bk-btn {
        flex: 1;
        justify-content: center;
        min-height: 42px;
        font-size: 13px;
    }
    .bk-yard-countdown {
        margin: 10px 0 0;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 800;
    }
    .bk-yard-countdown--blue { background: #e0f2fe; color: #0369a1; }
    .bk-yard-countdown--green { background: #dcfce7; color: #166534; }
    .bk-yard-countdown--red { background: #fee2e2; color: #991b1b; }
    .bk-yard-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 54px;
        padding: 14px 16px;
        border-radius: 14px;
        text-decoration: none;
        text-align: center;
        box-shadow: 0 12px 24px rgba(2, 132, 199, 0.22);
    }
    .bk-yard-cta__label {
        font-size: 15px;
        font-weight: 900;
        color: #fff;
    }
    .bk-yard-cta small {
        font-size: 11.5px;
        font-weight: 600;
        color: rgba(255,255,255,0.88);
    }
    .bk-yard-cta--go { background: linear-gradient(135deg, #0284c7, #0369a1); }
    .bk-yard-cta--warn { background: linear-gradient(135deg, #ea580c, #c2410c); box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22); }
    .bk-yard-cta--done { background: linear-gradient(135deg, #15803d, #166534); box-shadow: 0 12px 24px rgba(22, 163, 74, 0.2); }
    .bk-yard-overview-note h2 { margin: 0 0 10px; font-size: 16px; }
    .bk-yard-check {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 8px;
    }
    .bk-yard-check li {
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        font-size: 13px;
        font-weight: 700;
        color: #334155;
    }
    .bk-yard-check li.is-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
    .bk-yard-check li.is-todo { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
    .bk-yard-check li.is-wait { opacity: 0.7; }
}
@media (min-width: 901px) {
    .adm--yard .bk-yard-mobile-list { display: none; }
    .adm--yard .bk-yard-briefing { display: none !important; }
}

/* Agreement & Digital Signature Pad */
.agr-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.agr-card--signed { border-left: 4px solid #1e3a8a; }
.agr-sigpad-wrap {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    position: relative;
    margin: 10px 0;
    touch-action: none;
}
.agr-sigpad-canvas {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
}
.agr-sigpad-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f1f5f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.agr-sigpad-clear {
    background: #e2e8f0;
    border: 0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
}
.agr-sigpad-clear:hover { background: #cbd5e1; color: #0f172a; }

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #25d366;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
}
.wa-btn:hover { background: #1eb954; color: #fff !important; }

.doc-acts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

/* FASTag Tolls & Challan Deduction Engine */
.toll-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
@media (min-width: 680px) {
    .toll-banner { grid-template-columns: repeat(4, 1fr); }
}
.toll-banner-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.toll-banner-item small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.toll-banner-item strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}
.toll-banner-item--highlight {
    background: #fff7ed;
    border-color: #fed7aa;
}
.toll-banner-item--highlight strong { color: #c2410c; }
.toll-banner-item--blue {
    background: #f0f9ff;
    border-color: #bae6fd;
}
.toll-banner-item--blue strong { color: #0369a1; }

.toll-calc-box {
    margin: 14px 0 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.toll-calc-math {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}
.toll-calc-math span { font-weight: 700; color: #0f172a; }
.toll-calc-math em { font-style: normal; color: #94a3b8; font-weight: 800; font-size: 14px; }
.toll-calc-res {
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #15803d;
    font-weight: 800;
}

.toll-badge-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.toll-badge-type--toll { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.toll-badge-type--challan { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.toll-badge-type--parking { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.toll-badge-type--other { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }

.toll-settle-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
}
.toll-settle-badge--deposit { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.toll-settle-badge--bill { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.toll-settle-badge--direct { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.toll-settle-badge--waived { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

.toll-proof-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}
.toll-proof-link:hover { background: #f0f9ff; border-color: #bae6fd; }

.toll-log-panel {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}
.toll-log-form {
    width: 100%;
    max-width: none !important;
}
.toll-log-form .adm-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.toll-log-submit {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    min-height: 42px;
}
@media (max-width: 700px) {
    .toll-log-form .adm-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Compact All Bookings Table & Layout (Single-Line Layout)
   ========================================================================== */

/* Reduce page padding for bookings page */
.adm--bookings-compact .adm-content {
    padding: 16px 20px;
}

/* Page Header */
.bk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.bk-header__main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bk-header__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22);
}

.bk-header__icon .adm-ico {
    width: 20px;
    height: 20px;
}

.bk-header__title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.bk-header__sub {
    font-size: 12.5px;
    color: #64748b;
    margin: 2px 0 0;
    line-height: 1.3;
}

/* Status Filter Tabs / Pills */
.bk-status-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    margin-bottom: 10px;
    scrollbar-width: thin;
}

.bk-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.bk-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.bk-tab.is-active {
    background: #0a2540;
    color: #ffffff;
    border-color: #0a2540;
    box-shadow: 0 2px 6px rgba(10, 37, 64, 0.25);
}

.bk-tab__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}

.bk-tab__ico .adm-ico {
    width: 14px;
    height: 14px;
}

.bk-tab--navy .bk-tab__ico { color: #38bdf8; }
.bk-tab--orange .bk-tab__ico { color: #ea580c; }
.bk-tab--green .bk-tab__ico { color: #16a34a; }
.bk-tab--blue .bk-tab__ico { color: #0284c7; }
.bk-tab--purple .bk-tab__ico { color: #9333ea; }
.bk-tab--red .bk-tab__ico { color: #dc2626; }

.bk-tab.is-active .bk-tab__ico {
    color: #38bdf8;
}

/* Search & Filter Toolbar */
.bk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    background: #ffffff;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.bk-search-box {
    position: relative;
    flex: 1 1 300px;
    min-width: 200px;
}

.bk-search-box .adm-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.bk-search-box input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all 0.15s ease;
}

.bk-search-box input:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.bk-select-box {
    position: relative;
    width: 180px;
    flex-shrink: 0;
}

.bk-select-box select {
    width: 100%;
    height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.bk-select-box select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.bk-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 11px;
}

.bk-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    background: #0a2540;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.bk-filter-btn:hover {
    background: #0f172a;
}

.bk-filter-btn .adm-ico {
    width: 14px;
    height: 14px;
}

.bk-reset-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    color: #ef4444;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
}

.bk-reset-btn:hover {
    background: #fef2f2;
}

/* Compact Single-Line Booking Table Card */
.bk-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 18px;
}

.bk-table-wrap {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.bk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.bk-table th {
    padding: 10px 10px;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    user-select: none;
}

.bk-table th .bk-sort {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 2px;
}

.bk-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    white-space: nowrap;
    height: 62px;
}

.bk-table tr:hover td {
    background: #f8fbfe;
}

.bk-table tr:last-child td {
    border-bottom: none;
}

/* Checkbox Column */
.bk-th-check, .bk-td-check {
    width: 36px;
    min-width: 36px;
    text-align: center;
    padding-left: 12px !important;
    padding-right: 6px !important;
}

.bk-table input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0284c7;
    cursor: pointer;
    border-radius: 3px;
}

/* Column Width Proportions */
.bk-th-booking, .bk-td-booking { width: 14%; min-width: 145px; }
.bk-th-cust, .bk-td-cust { width: 14%; min-width: 155px; }
.bk-th-car, .bk-td-car { width: 15%; min-width: 160px; }
.bk-th-sch, .bk-td-sch { width: 22%; min-width: 235px; }
.bk-th-amt, .bk-td-amt { width: 11%; min-width: 115px; }
.bk-th-status, .bk-td-status { width: 10%; min-width: 125px; }
.bk-th-actions, .bk-td-actions { width: 14%; min-width: 160px; }

/* Booking Cell */
.bk-cell-booking {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bk-booking-link {
    font-family: inherit;
    font-weight: 700;
    font-size: 12.5px;
    color: #2563eb;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.bk-booking-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.bk-cell-date {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Customer Cell */
.bk-cell-cust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bk-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bk-cust-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.bk-cust-name {
    font-weight: 700;
    font-size: 12px;
    color: #0f172a;
    text-transform: uppercase;
}

.bk-cust-phone {
    font-size: 11px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bk-cust-phone a {
    color: inherit;
    text-decoration: none;
}

.bk-cust-phone a:hover {
    color: #0284c7;
}

/* Car & Plate Cell */
.bk-cell-car {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bk-car-img {
    width: 44px;
    height: 30px;
    border-radius: 6px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.bk-car-img--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
}

.bk-car-img--ph .adm-ico {
    width: 18px;
    height: 18px;
}

.bk-car-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bk-car-name {
    font-weight: 700;
    font-size: 12.5px;
    color: #0f172a;
}

.bk-plate-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    padding: 0 4px;
    line-height: 14px;
    letter-spacing: 0.02em;
    width: fit-content;
}

/* Schedule Cell */
.bk-cell-sch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bk-sch-ico {
    font-size: 14px;
    color: #0284c7;
    flex-shrink: 0;
    line-height: 1;
}

.bk-sch-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bk-sch-dates {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bk-sch-arrow {
    color: #64748b;
    font-weight: 700;
    margin: 0 2px;
}

.bk-sch-days {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Amount & Paid Cell */
.bk-cell-amt {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bk-amt-val {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.bk-pay-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.2;
    width: fit-content;
}

.bk-pay-pill--paid {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.bk-pay-pill--partial {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.bk-pay-pill--unpaid {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Status Pill Cell */
.bk-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.bk-status-pill--payment_pending, .bk-status-pill--pending {
    background: #fff7ed;
    color: #c2410c;
    border-color: #ffedd5;
}

.bk-status-pill--confirmed {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

.bk-status-pill--ready_for_pickup {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #e0f2fe;
}

.bk-status-pill--active {
    background: #faf5ff;
    color: #7e22ce;
    border-color: #f3e8ff;
}

.bk-status-pill--completed {
    background: #f0fdf4;
    color: #15803d;
    border-color: #dcfce7;
}

.bk-status-pill--cancelled, .bk-status-pill--rejected {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

/* Action Buttons */
.bk-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.bk-btn-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
}

.bk-btn-open:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.bk-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: #22c55e;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #16a34a;
    transition: all 0.15s ease;
}

.bk-btn-wa:hover {
    background: #16a34a;
}

.bk-btn-wa .adm-ico {
    width: 13px;
    height: 13px;
}

.bk-status-form {
    margin: 0;
    display: inline-block;
}

.bk-act--compact {
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bk-act--compact:hover {
    background: #f1f5f9;
}

.bk-more summary {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
}

.bk-more summary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Pagination Bar */
.bk-pager-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 10px;
}

.bk-pager-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bk-per-page-select {
    height: 28px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
}

.bk-pager-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bk-pager-nav a, .bk-pager-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bk-pager-nav a:hover {
    background: #f1f5f9;
}

.bk-pager-nav .is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.bk-pager-nav .is-disabled {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .bk-toolbar {
        flex-wrap: wrap;
    }
    .bk-select-box {
        flex: 1 1 140px;
    }
}

/* ==========================================================================
   PR Solutions Standardized Admin Modal System (AdminModal) - v68
   ========================================================================== */

.has-popup, .has-modal {
    overflow: hidden !important;
}

.adm-modal-shade, .ask__shade {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    /* Above page modals (collateral intake uses ~100004) so confirms always appear on top */
    z-index: 200000 !important;
    border: none !important;
    cursor: pointer !important;
    animation: admFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.adm-modal-wrap, .ask {
    position: fixed !important;
    inset: 0 !important;
    z-index: 200001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    pointer-events: auto !important;
}

.adm-modal-card, .ask__panel {
    position: relative !important;
    z-index: 200002 !important;
    width: 100% !important;
    max-width: 520px !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    padding: 28px !important;
    animation: admPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

@keyframes admFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes admPopIn {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes admAuraPulse {
    0% { transform: rotate(0deg) scale(0.98); opacity: 0.5; }
    100% { transform: rotate(18deg) scale(1.05); opacity: 0.85; }
}

/* Modal Hero Header with Radiant Aura */
.adm-modal-hero, .adm-modal-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 2px !important;
}

.adm-modal-aura-wrap {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.adm-modal-aura-ring {
    position: absolute !important;
    inset: -6px !important;
    width: 68px !important;
    height: 68px !important;
    pointer-events: none !important;
    animation: admAuraPulse 4s ease-in-out infinite alternate !important;
}

.adm-modal-shield, .adm-modal-badge {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

.adm-modal-shield svg, .adm-modal-badge svg {
    width: 22px !important;
    height: 22px !important;
}

/* Success Aura & Shield */
.adm-modal-hero--success .adm-modal-aura-wrap, .adm-modal-badge--success {
    background: #ecfdf5 !important;
    color: #10b981 !important;
}
.adm-modal-shield--success {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

/* Danger Aura & Shield */
.adm-modal-hero--danger .adm-modal-aura-wrap, .adm-modal-badge--danger {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}
.adm-modal-shield--danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4) !important;
}

/* Warning Aura & Shield */
.adm-modal-hero--warning .adm-modal-aura-wrap, .adm-modal-badge--warning {
    background: #fffbeb !important;
    color: #f59e0b !important;
}
.adm-modal-shield--warning {
    background: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important;
}

/* Primary Aura & Shield */
.adm-modal-hero--primary .adm-modal-aura-wrap, .adm-modal-badge--primary {
    background: #f0f9ff !important;
    color: #0284c7 !important;
}
.adm-modal-shield--primary {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
}

/* Circular Close Button */
.adm-modal-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin-left: auto !important;
    padding: 0 !important;
}

.adm-modal-close:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    transform: rotate(90deg) !important;
}

/* Modal Typography */
.adm-modal-title, .ask__panel h2 {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin: 14px 0 6px 0 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
}

.adm-modal-subtitle {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    line-height: 1.4 !important;
    margin: 0 0 6px 0 !important;
    text-align: left !important;
}

.adm-modal-desc, .adm-modal-body, .ask__note {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 0 18px 0 !important;
    text-align: left !important;
    font-weight: 450 !important;
}

/* Details Summary Box */
.adm-modal-details {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.adm-modal-detail-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.adm-modal-detail-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.adm-modal-detail-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.adm-modal-detail-icon--blue { background: #eff6ff !important; color: #2563eb !important; }
.adm-modal-detail-icon--orange { background: #fff7ed !important; color: #ea580c !important; }
.adm-modal-detail-icon--purple { background: #faf5ff !important; color: #9333ea !important; }
.adm-modal-detail-icon--green { background: #f0fdf4 !important; color: #16a34a !important; }
.adm-modal-detail-icon--gray { background: #f1f5f9 !important; color: #475569 !important; }

.adm-modal-detail-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
}

.adm-modal-detail-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: capitalize !important;
    line-height: 1.2 !important;
}

.adm-modal-detail-val {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.adm-modal-detail-sub {
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.2 !important;
}

.adm-modal-note {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #0284c7 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    color: #334155 !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.adm-modal-reason, .ask__reason {
    display: block !important;
    margin-bottom: 18px !important;
    text-align: left !important;
}

.adm-modal-reason span, .ask__reason span {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
}

.adm-modal-reason input, .ask__reason input {
    width: 100% !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

.adm-modal-reason input:focus, .ask__reason input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
}

/* Modal Foot and Action Buttons */
.adm-modal-foot, .ask__row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.adm-modal-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    height: 42px !important;
    padding: 0 22px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    border: none !important;
    white-space: nowrap !important;
}

.adm-modal-btn svg {
    flex-shrink: 0 !important;
}

.adm-modal-btn--cancel, .ask__no {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}

.adm-modal-btn--cancel:hover, .ask__no:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.adm-modal-btn--primary {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

.adm-modal-btn--primary:hover {
    background: #0369a1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4) !important;
}

.adm-modal-btn--success, .ask__yes--ok {
    background: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3) !important;
}

.adm-modal-btn--success:hover, .ask__yes--ok:hover {
    background: #15803d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4) !important;
}

.adm-modal-btn--warning {
    background: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
}

.adm-modal-btn--warning:hover {
    background: #c2410c !important;
    transform: translateY(-1px) !important;
}

.adm-modal-btn--danger, .ask__yes--no {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3) !important;
}

.adm-modal-btn--danger:hover, .ask__yes--no:hover {
    background: #b91c1c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4) !important;
}

/* ==========================================================================
   VEHICLE ATTACHMENTS PIPELINE STEPPER & VIEW STYLES
   ========================================================================== */

.att-stepper-track {
    width: 100%;
    overflow-x: auto;
    padding: 10px 4px 6px;
    -webkit-overflow-scrolling: touch;
}

.att-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 740px;
    position: relative;
}

.att-step {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-width: 60px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.att-step:hover {
    transform: translateY(-2px);
}

.att-step__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #94a3b8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.att-step__dot svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 3;
}

.att-step.is-complete .att-step__dot {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.att-step.is-current .att-step__dot {
    background: #0f172a;
    border-color: #f97316;
    color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2), 0 4px 10px rgba(15, 23, 42, 0.25);
    transform: scale(1.12);
}

.att-step.is-upcoming .att-step__dot {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.att-step__label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    letter-spacing: -0.2px;
    transition: color 0.15s ease;
}

.att-step.is-complete .att-step__label {
    color: #166534;
    font-weight: 800;
}

.att-step.is-current .att-step__label {
    color: #0f172a;
    font-weight: 900;
}

.att-step__line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 6px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    border-radius: 3px;
    min-width: 16px;
    transition: background 0.25s ease;
}

.att-step__line.is-complete {
    background: #16a34a;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25);
}

/* Modern Tab Bar */
.att-tab-bar {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
}

.att-tab-item {
    padding: 10px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease;
    margin-bottom: -2px;
}

.att-tab-item .adm-ico {
    width: 15px;
    height: 15px;
    opacity: 0.8;
}

.att-tab-item:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.att-tab-item.is-active {
    background: #0f172a;
    color: #ffffff;
    border-bottom: 3px solid #f97316;
}

.att-tab-item.is-active .adm-ico {
    opacity: 1;
    color: #f97316;
}

/* ==========================================================================
   PR Solutions Standardized Admin Modal System (Image 2 Design Standard)
   ========================================================================== */
.adm-modal-wrap,
.adm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    animation: admFadeIn .18s ease-out;
}

.adm-modal-shade {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    z-index: 0;
}

.adm-modal-backdrop {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.adm-modal-card {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
    padding: 28px 26px 24px;
    box-sizing: border-box;
    text-align: left;
    animation: admPopIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Multi-Section Scrollable Modal Card System (Fixed Head/Foot + Scrollable Body) */
.collat-modal-card {
    width: min(720px, 96vw) !important;
    max-height: min(92vh, 880px) !important;
    max-height: min(92dvh, 880px) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    overflow: hidden !important;
    margin: auto !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
}

.collat-modal-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 20px 26px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    flex-shrink: 0 !important;
}

.collat-form-shell {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.collat-modal-scroll {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 22px 26px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

.collat-modal-scroll::-webkit-scrollbar {
    width: 6px !important;
}
.collat-modal-scroll::-webkit-scrollbar-track {
    background: #f8fafc !important;
}
.collat-modal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 6px !important;
}
.collat-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.collat-modal-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 26px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 0 24px 24px !important;
    flex-shrink: 0 !important;
}

@keyframes admFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes admPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hero Badge with Radiant Aura */
.adm-modal-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.adm-modal-aura-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm-modal-aura-ring {
    position: absolute;
    width: 68px;
    height: 68px;
    pointer-events: none;
    animation: admAuraPulse 3s ease-in-out infinite;
}

@keyframes admAuraPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: rotate(180deg) scale(1.08);
        opacity: 0.9;
    }
}

.adm-modal-shield {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.adm-modal-shield svg {
    width: 22px;
    height: 22px;
}

/* Tone variants */
.adm-modal-hero--success .adm-modal-aura-ring,
.adm-modal-aura-wrap.tone-success .adm-modal-aura-ring { color: #10b981; }
.adm-modal-shield--success,
.adm-modal-aura-wrap.tone-success .adm-modal-shield { background: #10b981; color: #ffffff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }

.adm-modal-hero--danger .adm-modal-aura-ring,
.adm-modal-aura-wrap.tone-danger .adm-modal-aura-ring { color: #ef4444; }
.adm-modal-shield--danger,
.adm-modal-aura-wrap.tone-danger .adm-modal-shield { background: #ef4444; color: #ffffff; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }

.adm-modal-hero--warning .adm-modal-aura-ring,
.adm-modal-aura-wrap.tone-warning .adm-modal-aura-ring { color: #f59e0b; }
.adm-modal-shield--warning,
.adm-modal-aura-wrap.tone-warning .adm-modal-shield { background: #f59e0b; color: #ffffff; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35); }

.adm-modal-hero--primary .adm-modal-aura-ring,
.adm-modal-aura-wrap.tone-primary .adm-modal-aura-ring { color: #3b82f6; }
.adm-modal-shield--primary,
.adm-modal-aura-wrap.tone-primary .adm-modal-shield { background: #3b82f6; color: #ffffff; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35); }

/* Circular Close Button */
.adm-modal-close {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
    z-index: 2;
}

.adm-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Typography */
.adm-modal-title {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.adm-modal-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.4;
}

.adm-modal-desc {
    font-size: 13.5px;
    font-weight: 450;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Contextual Details Box (Image 2) */
.adm-modal-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 6px 14px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
}

.adm-modal-detail-item,
.adm-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.adm-modal-detail-item:last-child,
.adm-detail-row:last-child {
    border-bottom: none;
}

.adm-modal-detail-icon,
.adm-detail-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.adm-modal-detail-icon svg,
.adm-detail-ico svg {
    width: 17px;
    height: 17px;
}

.adm-modal-detail-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.adm-modal-detail-icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.adm-modal-detail-icon--purple {
    background: #faf5ff;
    color: #7c3aed;
}

.adm-modal-detail-icon--green {
    background: #ecfdf5;
    color: #059669;
}

.adm-modal-detail-text,
.adm-detail-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.adm-modal-detail-label,
.adm-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.adm-modal-detail-val,
.adm-detail-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.adm-modal-detail-sub {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 1px;
}

/* Optional Note & Reason Input */
.adm-modal-note {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #92400e;
    margin-bottom: 14px;
}

.adm-modal-reason {
    display: block;
    margin-bottom: 16px;
}

.adm-modal-reason span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.adm-modal-reason input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: border-color .15s;
}

.adm-modal-reason input:focus {
    border-color: #0284c7;
}

/* Footer Action Buttons */
.adm-modal-foot,
.adm-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.adm-modal-btn {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.18s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
}

.adm-modal-btn--cancel {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
}

.adm-modal-btn--cancel:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.adm-modal-btn--success {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
}

.adm-modal-btn--success:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

.adm-modal-btn--danger {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32);
}

.adm-modal-btn--danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.adm-modal-btn--warning {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
}

.adm-modal-btn--warning:hover {
    background: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

.adm-modal-btn--primary {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.32);
}

.adm-modal-btn--primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

body.has-modal {
    overflow: hidden;
}

/* ==========================================================================
   Admin Modal Form Controls & Collateral Intake Card Design System
   ========================================================================== */
.cf-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.cf-section:hover {
    border-color: #cbd5e1;
}

.cf-section-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cf-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.cf-label span.req,
.cf-label .req {
    color: #ef4444;
    margin-left: 2px;
}

.cf-control {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 13.5px;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cf-control:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
    background: #ffffff;
}

.cf-control::placeholder {
    color: #94a3b8;
    font-weight: 450;
}

select.cf-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

textarea.cf-control {
    height: auto;
    padding: 10px 14px;
    line-height: 1.5;
    min-height: 68px;
    resize: vertical;
}

/* Radio Cards (for Deposit Mode selector) */
.cf-radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.cf-radio-card {
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    user-select: none;
}

.cf-radio-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.cf-radio-card.active,
.cf-radio-card:has(input[type="radio"]:checked) {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.cf-radio-card input[type="radio"] {
    margin-top: 3px;
    accent-color: #0284c7;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cf-radio-card-content {
    display: flex;
    flex-direction: column;
}

.cf-radio-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.cf-radio-card.active .cf-radio-card-title,
.cf-radio-card:has(input[type="radio"]:checked) .cf-radio-card-title {
    color: #0369a1;
}

.cf-radio-card-sub {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

/* Number Plate Badge Input */
.cf-plate-input {
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1e3a8a !important;
    background: #f8fafc !important;
}

/* File Upload Grid & Tiles */
.cf-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cf-upload-tile {
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px 12px;
    background: #ffffff;
    text-align: center;
    transition: all 0.18s ease;
    cursor: pointer;
    position: relative;
}

.cf-upload-tile:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

.cf-upload-icon {
    font-size: 22px;
    margin-bottom: 4px;
    display: block;
}

.cf-upload-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 2px;
}

.cf-upload-sub {
    font-size: 10.5px;
    color: #64748b;
    display: block;
    margin-bottom: 6px;
}

.cf-upload-tile input[type="file"] {
    font-size: 11px;
    width: 100%;
    color: #475569;
    cursor: pointer;
}

/* Sticky Action Bar for scrollable modals */
.adm-modal-sticky-foot {
    position: sticky;
    bottom: -24px;
    margin: 20px -26px -24px;
    padding: 16px 26px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    z-index: 20;
}

/* ==========================================================================
   Role Permissions Control Center & Feature Matrix
   ========================================================================== */

.adm-role-tabs-wrap {
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.adm-role-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
}

.adm-role-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.adm-role-tab:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.adm-role-tab.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.adm-role-tab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm-role-tab.is-active .adm-role-tab__icon {
    color: #38bdf8;
}

.adm-role-tab--super-locked {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6b21a8;
    cursor: default;
    opacity: 0.9;
}

.adm-role-tab--super-locked:hover {
    transform: none;
    border-color: #ddd6fe;
    background: #f5f3ff;
}

.adm-role-tab__lock {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    background: #ede9fe;
    color: #7c3aed;
    font-weight: 800;
    text-transform: uppercase;
}

/* Active Role Header Card */
.adm-role-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.adm-role-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #64748b;
}

.adm-role-card--purple::before { background: linear-gradient(180deg, #8b5cf6, #6d28d9); }
.adm-role-card--blue::before { background: linear-gradient(180deg, #0284c7, #0369a1); }
.adm-role-card--green::before { background: linear-gradient(180deg, #10b981, #047857); }
.adm-role-card--orange::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.adm-role-card--gray::before { background: linear-gradient(180deg, #94a3b8, #64748b); }

.adm-role-card__main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    min-width: 280px;
}

.adm-role-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 24px;
    flex-shrink: 0;
}

.adm-role-card--purple .adm-role-card__icon-wrap { background: #ede9fe; color: #7c3aed; }
.adm-role-card--blue .adm-role-card__icon-wrap { background: #e0f2fe; color: #0284c7; }
.adm-role-card--green .adm-role-card__icon-wrap { background: #dcfce7; color: #16a34a; }
.adm-role-card--orange .adm-role-card__icon-wrap { background: #fef3c7; color: #d97706; }

.adm-role-card__content {
    flex: 1;
}

.adm-role-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.adm-role-card__head h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.adm-role-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.adm-role-badge {
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
}

.adm-role-badge--purple { background: #ede9fe; color: #6d28d9; }
.adm-role-badge--blue { background: #e0f2fe; color: #0369a1; }
.adm-role-badge--green { background: #dcfce7; color: #15803d; }
.adm-role-badge--orange { background: #fef3c7; color: #92400e; }
.adm-role-badge--gray { background: #f1f5f9; color: #475569; }

.adm-role-badge--count { background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; }
.adm-role-badge--custom { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.adm-role-badge--default { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.adm-role-card__desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
    max-width: 680px;
}

.adm-role-card__kpis {
    display: flex;
    gap: 16px;
    align-items: center;
}

.adm-role-kpi {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    min-width: 100px;
}

.adm-role-kpi strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.adm-role-kpi small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

/* Toolbar */
.adm-perm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.adm-perm-search {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 520px;
}

.adm-perm-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.adm-perm-search input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13.5px;
    color: #0f172a;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.adm-perm-search input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.adm-perm-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Modules Grid */
.adm-perm-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 24px;
    margin-bottom: 90px;
}

@media (max-width: 640px) {
    .adm-perm-modules-grid {
        grid-template-columns: 1fr;
    }
}

.adm-perm-module {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.2s ease;
}

.adm-perm-module:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.adm-perm-module__header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.adm-perm-module__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adm-perm-module__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    flex-shrink: 0;
}

.adm-perm-module__title h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.adm-perm-module__title p {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0;
}

.adm-perm-module__quick-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.adm-perm-mod-toggle {
    background: none;
    border: none;
    color: #0284c7;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.adm-perm-mod-toggle:hover {
    background: #e0f2fe;
    text-decoration: underline;
}

/* Permission List Item */
.adm-perm-module__items {
    padding: 8px 0;
}

.adm-perm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s ease;
}

.adm-perm-item:last-child {
    border-bottom: none;
}

.adm-perm-item:hover {
    background: #f8fafc;
}

.adm-perm-item.is-enabled {
    background: rgba(240, 253, 244, 0.4);
}

.adm-perm-item.is-enabled:hover {
    background: rgba(240, 253, 244, 0.7);
}

.adm-perm-item__meta {
    flex: 1;
    min-width: 0;
}

.adm-perm-item__label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    cursor: pointer;
    margin: 0 0 3px;
}

.adm-perm-item__name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.adm-perm-item__code code {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.adm-perm-item.is-enabled .adm-perm-item__code code {
    color: #166534;
    background: #dcfce7;
}

.adm-perm-item__desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* iOS-style Smooth Toggle Switch */
.adm-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 25px;
    flex-shrink: 0;
    cursor: pointer;
}

.adm-switch__input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.adm-switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.adm-switch__slider::before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.adm-switch__input:checked + .adm-switch__slider {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.adm-switch__input:checked + .adm-switch__slider::before {
    transform: translateX(21px);
}

.adm-switch__input:focus + .adm-switch__slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* Sticky Save Action Bar at bottom */
.adm-perm-save-bar {
    position: fixed;
    bottom: 0;
    left: 64px; /* offset slim dock rail */
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    padding: 14px 32px;
    z-index: 95;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .adm-perm-save-bar {
        left: 0;
    }
}

.adm-perm-save-bar__inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.adm-perm-save-bar__summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.adm-perm-save-bar__role {
    font-size: 14px;
    color: #475569;
}

.adm-perm-save-bar__role strong {
    color: #0f172a;
}

.adm-perm-save-bar__count {
    font-size: 12.5px;
    font-weight: 800;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
    color: #334155;
}

.adm-perm-save-bar__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.adm-perm-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 22px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
}

.adm-perm-save-btn:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

/* ==========================================================================
   PR Solutions Staff SOP & Feature Help Dropdown (Exact Alert Icon Model)
   ========================================================================== */
.adm-help-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adm-help-bell {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-help-bell:hover,
.adm-help-bell[aria-expanded="true"] {
    color: #7c3aed;
    border-color: #c084fc;
    background: #faf5ff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
    transform: translateY(-1px);
}

.adm-help-pop {
    position: absolute;
    top: calc(100% + 12px);
    right: -24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.22), 0 8px 20px -4px rgba(15, 23, 42, 0.08);
    z-index: 1200;
    overflow: hidden;
    transform-origin: calc(100% - 42px) top;
    animation: admNotifPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-help-pop::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 36px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
    z-index: 10;
}

.adm-help-pop[hidden] {
    display: none !important;
}

.adm-help-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.adm-help-dropdown-item:hover {
    background: #f8fafc;
}





/* ===== Attachment Pipeline Stages (dashboard) ===== */
.att-pipe { overflow: hidden; }
.att-pipe__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #eef2f7;
}
.att-pipe__titles { min-width: 0; flex: 1; }
.att-pipe__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.att-pipe__brand {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
    flex: none;
}
.att-pipe__brand .adm-ico { width: 16px; height: 16px; }
.att-pipe__titles h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.att-pipe__titles > p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 500;
    max-width: 52ch;
    line-height: 1.4;
}
.att-pipe__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #e8eef5;
    background: #f8fafc;
    max-width: 340px;
}
.att-pipe__ring {
    --att-pipe-pct: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background:
        radial-gradient(closest-side, #f8fafc 72%, transparent 73% 100%),
        conic-gradient(#16a34a calc(var(--att-pipe-pct) * 1%), #e2e8f0 0);
}
.att-pipe__ring strong {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.att-pipe__summary-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.att-pipe__summary-copy strong {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.att-pipe__summary-copy > span {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}
.att-pipe__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 6px;
}
.att-pipe__legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
}
.att-pipe__legend span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    box-sizing: border-box;
}
.att-pipe__legend .is-done::before { background: #16a34a; }
.att-pipe__legend .is-progress::before { background: #f97316; }
.att-pipe__legend .is-pending::before { background: #fff; border: 1.5px solid #cbd5e1; }
.att-pipe__legend .is-blocked::before {
    background: #fff;
    border: 1.5px solid #dc2626;
    background-image: linear-gradient(45deg, transparent 42%, #dc2626 42%, #dc2626 58%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, #dc2626 42%, #dc2626 58%, transparent 58%);
}

.att-pipe__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.att-pipe__all {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.att-pipe__all:hover { border-color: #fdba74; color: #c2410c; }
.att-pipe__all.is-on {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}
.att-pipe__chip {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.att-pipe__chip b { color: #0f172a; font-weight: 800; }

.att-pipe__scroll {
    overflow-x: auto;
    padding: 12px 14px 14px;
    -webkit-overflow-scrolling: touch;
}
.att-pipe__track {
    --att-pipe-n: 10;
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
    display: grid;
    grid-template-columns: repeat(var(--att-pipe-n), minmax(104px, 1fr));
    gap: 0;
    min-width: 1040px;
    align-items: stretch;
}
.att-pipe__item {
    position: relative;
    min-width: 0;
    padding: 0 3px;
}
.att-pipe__line {
    position: absolute;
    top: 17px;
    right: calc(50% + 15px);
    left: calc(-50% + 15px);
    height: 3px;
    border-radius: 999px;
    background: #e2e8f0;
    z-index: 0;
}
.att-pipe__line.is-done { background: linear-gradient(90deg, #22c55e, #16a34a); }
.att-pipe__line.is-progress { background: linear-gradient(90deg, #fb923c, #f97316); }
.att-pipe__line.is-blocked { background: linear-gradient(90deg, #f87171, #dc2626); }
.att-pipe__line.is-pending {
    background: transparent;
    background-image: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 10px);
}

.att-pipe__card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 100%;
    padding: 6px 6px 8px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.att-pipe__card:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-1px);
}
.att-pipe__item.is-selected .att-pipe__card {
    background: #fff7ed;
    border-color: #fb923c;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.14);
}

.att-pipe__node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #94a3b8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.att-pipe__item.is-done .att-pipe__node {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}
.att-pipe__item.is-progress .att-pipe__node {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.28);
}
.att-pipe__item.is-blocked .att-pipe__node {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.att-pipe__item.is-pending .att-pipe__node {
    background: #fff;
    border-color: #dbe3ee;
    color: #94a3b8;
}
.att-pipe__item.is-selected .att-pipe__node {
    transform: scale(1.06);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16), 0 4px 10px rgba(15, 23, 42, 0.1);
}

.att-pipe__icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #64748b;
}
.att-pipe__icon .adm-ico { width: 14px; height: 14px; }
.att-pipe__item.is-done .att-pipe__icon { background: #dcfce7; color: #15803d; }
.att-pipe__item.is-progress .att-pipe__icon,
.att-pipe__item.is-selected .att-pipe__icon { background: #ffedd5; color: #c2410c; }
.att-pipe__item.is-blocked .att-pipe__icon { background: #fee2e2; color: #b91c1c; }

.att-pipe__name {
    font-size: 11.5px;
    font-weight: 800;
    color: #334155;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.att-pipe__item.is-done .att-pipe__name { color: #15803d; }
.att-pipe__item.is-progress .att-pipe__name,
.att-pipe__item.is-selected .att-pipe__name { color: #c2410c; }
.att-pipe__item.is-blocked .att-pipe__name { color: #b91c1c; }

.att-pipe__foot {
    display: block;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.3;
}
.att-pipe__foot b {
    display: block;
    color: #0f172a;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.att-pipe__item.is-done .att-pipe__foot { color: #16a34a; }
.att-pipe__item.is-done .att-pipe__foot b { color: #15803d; }
.att-pipe__item.is-progress .att-pipe__foot { color: #ea580c; }
.att-pipe__item.is-progress .att-pipe__foot b { color: #c2410c; }
.att-pipe__item.is-blocked .att-pipe__foot { color: #dc2626; }
.att-pipe__item.is-blocked .att-pipe__foot b { color: #b91c1c; }

.att-pipe__detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 16px 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #ffedd5;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.att-pipe__detail-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.att-pipe__detail-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.att-pipe__detail-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #ffedd5;
    color: #ea580c;
    flex: none;
}
.att-pipe__detail-title strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}
.att-pipe__detail-title p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
.att-pipe__detail-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.att-pipe__detail-stats div {
    padding: 6px 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef2f7;
    min-width: 0;
}
.att-pipe__detail-stats span {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.att-pipe__detail-stats b {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.att-pipe__detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: none;
}
.att-pipe__detail-actions .cf-filter,
.att-pipe__detail-actions .cf-reset {
    text-align: center;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .att-pipe__head { flex-direction: column; }
    .att-pipe__summary { max-width: none; width: 100%; }
    .att-pipe__detail { flex-direction: column; align-items: stretch; }
    .att-pipe__detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .att-pipe__detail-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
    .att-pipe__detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .att-pipe__titles > p { max-width: none; }
}

/* ===== Super Admin Ghost Login banner ===== */
.adm-ghost-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 60;
}
.adm-ghost-bar__copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.adm-ghost-bar__copy strong {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e9d5ff;
}
.adm-ghost-bar__copy span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adm-ghost-bar__copy b { font-weight: 800; }
.adm-ghost-bar__form { margin: 0; flex: none; }
.adm-ghost-bar__exit {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #fff;
    color: #5b21b6;
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}
.adm-ghost-bar__exit:hover { filter: brightness(0.97); }
@media (max-width: 720px) {
    .adm-ghost-bar { flex-wrap: wrap; align-items: stretch; }
    .adm-ghost-bar__copy span { white-space: normal; }
    .adm-ghost-bar__exit { width: 100%; }
}
