/* Rawet El Tariq dashboard: core.css */ 
    :root {
        --ink: #192430;
        --muted: #62778f;
        --line: rgba(124, 141, 161, .22);
        --canvas: #f4f6f9;
        --nav: #1f3146;
        --mint: #f07a37;
        --teal: #3b5573;
        --teal-deep: #2a3c52;
        --teal-soft: #ebeef1;
        --danger: #b42318;
        /* Rawet El Tariq brand: primary navy, secondary orange (the teal/mint names are kept as aliases). */
        --brand-primary: #3b5573;
        --brand-secondary: #f07a37;
        --brand-gradient-start: #3b5573;
        --brand-gradient-end: #1f3146;
        /* Default page zoom; responsive-ui.css narrows it per screen size. */
        --page-zoom: .85;
    /* Fleet status, shared by the KPI bar and the fleet charts: light enough to read numbers on. */
    --fleet-rented: #60a5fa;
    --fleet-available: #22c55e;
    --fleet-oos: #f58c28;
        --card: rgba(255, 255, 255, .88);
        --shadow: 0 18px 45px rgba(25, 36, 48, .08);
    }

    * {
        box-sizing: border-box;
    }

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

    body {
        margin: 0;
        color: var(--ink);
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background: var(--canvas);
        zoom: var(--page-zoom);
    }

    html[lang^="ar"] body {
        font-family: Cairo, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    html:not([lang^="ar"]) body {
        font-family: "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    button,
    input {
        font: inherit;
    }

    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }

    button {
        cursor: pointer;
    }

    a {
        color: inherit;
    }

    .admin-layout {
        min-height: 100vh;
        min-height: calc(100vh / var(--page-zoom));
        min-height: calc(100dvh / var(--page-zoom));
        display: grid;
        grid-template-columns: 270px minmax(0, 1fr);
        background: radial-gradient(circle at 80% 0%, rgba(240, 122, 55, .18), transparent 28%), linear-gradient(rgba(59, 85, 115, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 85, 115, .035) 1px, transparent 1px), var(--canvas);
        background-size: auto, 32px 32px, 32px 32px, auto;
    }

    .sidebar {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: calc(100vh / var(--page-zoom));
        min-height: calc(100dvh / var(--page-zoom));
        padding: 22px 14px 18px;
        color: #dde3ea;
        background-color: #1f3146;
        background-image: linear-gradient(180deg, rgba(25, 36, 48, .58) 0%, rgba(25, 36, 48, .76) 55%, rgba(25, 36, 48, .96) 100%), url("/images/admin/hero-car.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-right: 1px solid rgba(59, 85, 115, .2);
        box-shadow: 14px 0 40px rgba(25, 36, 48, .13);
    }

    .brand {
        display: flex;
        align-items: center;
        min-height: 52px;
        margin-bottom: 14px;
        padding: 10px 12px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
    }

    .brand img {
        width: min(100%, 204px);
        height: auto;
        display: block;
    }

    .workspace {
        margin: 18px 8px 14px;
        padding: 11px 12px;
        border: 1px solid rgba(59, 85, 115, .26);
        border-radius: 11px;
        color: #78a59f;
        background: rgba(255, 255, 255, .035);
        font-size: .66rem;
        font-weight: 800;
        letter-spacing: .15em;
        text-transform: uppercase;
    }

    .workspace strong {
        display: block;
        margin-top: 5px;
        color: #e9f8f5;
        font-size: .83rem;
        letter-spacing: 0;
        text-transform: none;
    }

    .sidebar-system {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 0 8px 18px;
        padding: 11px 12px;
        border: 1px solid rgba(59, 85, 115, .2);
        border-radius: 11px;
        background: linear-gradient(120deg, rgba(59, 85, 115, .12), rgba(255, 255, 255, .025));
    }

    .sidebar-system i,
    .topbar-status i {
        width: 7px;
        height: 7px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: #48b88d;
        box-shadow: 0 0 0 4px rgba(72, 184, 141, .12);
    }

    .sidebar-system div {
        flex: 1;
        min-width: 0;
    }

    .sidebar-system strong,
    .sidebar-system span {
        display: block;
    }

    .sidebar-system strong {
        color: #e9f8f5;
        font-size: .76rem;
    }

    .sidebar-system span {
        margin-top: 2px;
        color: #78a59f;
        font-size: .68rem;
    }

    .sidebar-system b {
        color: #8ed6c0;
        font-size: .69rem;
        letter-spacing: .05em;
    }

    .nav-label {
        margin: 16px 11px 7px;
        color: #7ea9a4;
        font-size: .63rem;
        font-weight: 800;
        letter-spacing: .16em;
        text-transform: uppercase;
    }

    .sidebar-nav-group {
        margin-top: 16px;
    }

    .nav-group-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: calc(100% - 22px);
        margin: 0 11px 7px;
        padding: 9px 10px;
        color: #7ea9a4;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
        font: inherit;
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .12em;
        text-align: start;
        text-transform: uppercase;
        transition: color .18s ease, background .18s ease, border-color .18s ease;
    }

    .nav-group-toggle:hover,
    .nav-group-toggle[aria-expanded="true"] {
        color: #dde3ea;
        border-color: rgba(59, 85, 115, .16);
        background: rgba(59, 85, 115, .09);
    }

    .nav-group-toggle:focus-visible {
        outline: 2px solid var(--teal);
        outline-offset: 2px;
    }

    .nav-group-toggle svg {
        width: 15px;
        height: 15px;
        flex: 0 0 auto;
        margin-inline-start: auto;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
        transition: transform .18s ease;
    }

    .nav-group-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .nav-group-items {
        margin-inline-start: 7px;
        padding-inline-start: 5px;
        border-inline-start: 1px solid rgba(59, 85, 115, .18);
    }

    .nav-group-items[hidden] {
        display: none;
    }

    .nav {
        display: grid;
        gap: 3px;
    }

    .nav a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 11px;
        color: #c2cad4;
        border-radius: 8px;
        font-size: .84rem;
        font-weight: 600;
        text-decoration: none;
        transition: transform .18s ease, background .18s ease;
    }

    .nav a:hover {
        color: #fff;
        transform: translateX(3px);
        background: rgba(255, 255, 255, .08);
    }

    /* The sidebar is already navy, so the active item takes the orange accent. */
    .nav a.active {
        color: #fff;
        background: linear-gradient(135deg, var(--brand-secondary), #da6f32);
        box-shadow: 0 8px 20px rgba(240, 122, 55, .25);
    }

    .nav a.active::before {
        position: absolute;
        left: -14px;
        top: 9px;
        bottom: 9px;
        width: 3px;
        content: "";
        border-radius: 0 4px 4px 0;
        background: var(--brand-secondary);
        box-shadow: 0 0 13px rgba(240, 122, 55, .7);
    }

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

    .nav .count {
        margin-left: auto;
        padding: 1px 7px;
        color: #fff;
        background: #f04438;
        border-radius: 999px;
        font-size: .7rem;
    }

    .avatar {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
        color: #fff;
        background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
        border-radius: 50%;
        font-size: .72rem;
        font-weight: 800;
    }

    .sidebar-footer {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin: auto 8px 0;
        padding-top: 12px;
        color: #65918d;
        border-top: 1px solid rgba(59, 85, 115, .15);
        font-size: .66rem;
    }

    .sidebar-footer strong {
        color: #a7d8ca;
    }

    .admin-workspace {
        min-width: 0;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 5;
        display: flex;
        align-items: center;
        gap: 18px;
        height: 72px;
        padding: 0 34px;
        background: rgba(255, 255, 255, .76);
        border-bottom: 1px solid rgba(124, 141, 161, .17);
        backdrop-filter: blur(18px);
    }

    .breadcrumb {
        color: var(--muted);
        font-size: .82rem;
    }

    .breadcrumb strong {
        margin-left: 7px;
        color: var(--ink);
    }

    .topbar-status {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        color: #35736d;
        font-size: .74rem;
        font-weight: 750;
    }

    .topbar-status i {
        width: 6px;
        height: 6px;
    }

    .topbar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }

    html[dir="rtl"] .topbar-actions {
        margin-right: auto;
        margin-left: 0;
    }

    .topbar-locale {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .topbar-account {
        position: relative;
    }

    .topbar-account-trigger {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 3px 0;
        color: inherit;
        border: 0;
        background: transparent;
    }

    .topbar-account-trigger:focus-visible {
        outline: 2px solid var(--teal);
        outline-offset: 4px;
        border-radius: 8px;
    }

    .topbar-account-chevron {
        width: 15px;
        height: 15px;
        color: var(--muted);
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
        transition: transform .18s ease;
    }

    .topbar-account.is-open .topbar-account-chevron {
        transform: rotate(180deg);
    }

    .topbar-account-menu {
        position: absolute;
        z-index: 30;
        top: calc(100% + 10px);
        inset-inline-end: 0;
        width: 218px;
        padding: 8px;
        border: 1px solid rgba(124, 141, 161, .24);
        border-radius: 13px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 38px rgba(25, 36, 48, .16);
    }

    .topbar-account-menu[hidden] {
        display: none;
    }

    .topbar-account-meta {
        padding: 8px 10px 11px;
        border-bottom: 1px solid rgba(124, 141, 161, .16);
    }

    .topbar-account-meta strong,
    .topbar-account-meta span {
        display: block;
    }

    .topbar-account-meta strong {
        color: var(--ink);
        font-size: .8rem;
    }

    .topbar-account-meta span {
        margin-top: 3px;
        color: var(--muted);
        font-size: .7rem;
    }

    .topbar-account-menu form {
        margin: 0;
    }

    .topbar-account-logout {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: 5px;
        padding: 9px 10px;
        color: var(--danger);
        border: 0;
        border-radius: 8px;
        background: transparent;
        font-size: .75rem;
        font-weight: 750;
        text-align: start;
    }

    .topbar-account-logout:hover {
        background: #fff0ee;
    }

    .topbar-account-logout svg {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .locale-switch {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 3px;
        border: 1px solid rgba(124, 141, 161, .3);
        border-radius: 999px;
        background: rgba(255, 255, 255, .82);
    }

    .locale-switch form { display: contents; }

    .locale-switch button {
        min-width: 34px;
        min-height: 28px;
        padding: 5px 8px;
        color: var(--muted);
        border: 0;
        border-radius: 999px;
        background: transparent;
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .04em;
        cursor: pointer;
    }

    .locale-switch button:hover { color: var(--teal-deep); background: var(--teal-soft); }

    .locale-switch button.is-active { color: #fff; background: var(--teal-deep); }

    .locale-switch button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

    .mobile-menu {
        display: none;
        width: 40px;
        height: 40px;
        color: var(--teal-deep);
        border: 1px solid var(--line);
        border-radius: 9px;
        background: #fff;
    }

    .admin-content {
        max-width: 1540px;
        margin: 0 auto;
        padding: 34px;
    }

    .page-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 26px;
    }

    .eyebrow {
        color: var(--teal-deep);
        font-size: .66rem;
        font-weight: 850;
        letter-spacing: .16em;
    }

    .page-heading h1 {
        margin: 6px 0 0;
        font-size: 1.75rem;
        letter-spacing: -.04em;
    }

    .page-heading p {
        margin: 7px 0 0;
        color: var(--muted);
    }

    .form-page-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 28px;
        margin-bottom: 26px;
    }

    .form-page-head > div:first-child { min-width: 0; }

    .form-page-head h1 {
        margin: 14px 0 0;
        color: var(--ink);
        font-size: 1.75rem;
        letter-spacing: -.04em;
    }

    .form-page-head p {
        margin: 8px 0 0;
        color: var(--muted);
        font-size: .84rem;
    }

    .back-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: max-content;
        padding: 8px 12px;
        color: var(--teal-deep);
        border: 1px solid rgba(59, 85, 115, .26);
        border-radius: 9px;
        background: rgba(255, 255, 255, .76);
        font-size: .78rem;
        font-weight: 750;
        text-decoration: none;
        transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
    }

    .back-link:hover {
        color: #fff;
        border-color: var(--teal-deep);
        background: var(--teal-deep);
        transform: translateX(-2px);
    }

    .heading-meta {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 7px;
    }

    .system-status {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #35736d;
        font-size: .74rem;
        font-weight: 750;
    }

    .system-status i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #48b88d;
        box-shadow: 0 0 0 4px rgba(72, 184, 141, .12);
    }

    .live-time {
        color: var(--muted);
        font-size: .74rem;
    }

    .primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 17px;
        color: #fff;
        border: 1px solid var(--teal);
        border-radius: 999px;
        background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
        box-shadow: 0 7px 16px rgba(59, 85, 115, .22);
        font-weight: 750;
        text-decoration: none;
    }

    .primary:hover {
        background: linear-gradient(135deg, #364d69, #192430);
        box-shadow: 0 10px 20px rgba(59, 85, 115, .3);
    }

    .secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 17px;
        color: var(--muted);
        border: 1px solid rgba(124, 141, 161, .3);
        border-radius: 999px;
        background: #fff;
        font-size: .78rem;
        font-weight: 750;
        text-decoration: none;
        cursor: pointer;
        transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
    }

    .secondary:hover {
        color: var(--teal-deep);
        border-color: rgba(59, 85, 115, .5);
        background: var(--teal-soft);
        transform: translateY(-1px);
    }

    button[data-form-incomplete]:disabled,
    input[data-form-incomplete]:disabled {
        opacity: .55;
        cursor: not-allowed;
        box-shadow: none;
        filter: saturate(.35);
        transform: none;
    }

    .price-decimal {
        font-size: 0.74em;
        font-weight: 700;
        opacity: 0.82;
        margin-inline-start: 1px;
        vertical-align: baseline;
    }

/* Text wordmark in the brand box (until the logo file arrives). */
.brand-wordmark { display: inline-flex; align-items: baseline; gap: .3em; font-size: 1.28rem; font-weight: 900; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.brand-wordmark > span { color: var(--brand-primary); }
.brand-wordmark > b { color: var(--brand-secondary); font-weight: 900; }
.sidebar .brand { min-height: 48px; }
.admin-auth .auth-wordmark { margin-bottom: 6px; font-size: 1.7rem; }
