/* Takamul Admin Portal: access.css */ 

    .legend-dot.green { background: #16805a; }
    .legend-dot.amber { background: #d97706; }
    .legend-dot.gray { background: #98a2b3; }

    .crud-page { display: grid; gap: 20px; }

    .crud-panel { overflow: hidden; }

    .crud-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid rgba(120, 157, 151, .16); }

    .crud-toolbar input,
    .crud-toolbar select,
    .access-form-grid input,
    .access-form-grid select { height: 40px; width: 100%; padding: 0 12px; color: var(--ink); border: 1px solid rgba(120, 157, 151, .3); border-radius: 8px; background: #fff; }

    .crud-toolbar select:not([multiple]),
    .access-form-grid select:not([multiple]),
    .status-select {
        appearance: none;
        padding-right: 38px;
        background-image: linear-gradient(45deg, transparent 50%, var(--teal-deep) 50%), linear-gradient(135deg, var(--teal-deep) 50%, transparent 50%);
        background-repeat: no-repeat;
        background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
        background-size: 5px 5px, 5px 5px;
        cursor: pointer;
    }

    .status-select-wrap {
        position: relative;
        display: inline-block;
    }

    .status-select-wrap::after {
        position: absolute;
        top: 50%;
        right: 12px;
        width: 7px;
        height: 7px;
        border-right: 2px solid var(--teal-deep);
        border-bottom: 2px solid var(--teal-deep);
        content: '';
        pointer-events: none;
        transform: translateY(-65%) rotate(45deg);
    }

    .crud-toolbar input { flex: 1; min-width: 220px; }

    .crud-toolbar select { width: auto; min-width: 150px; }

    .crud-toolbar .clear-filters {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 0 0 auto;
        margin-inline-start: auto;
        min-height: 44px;
        padding: 10px 18px;
        color: var(--ink);
        border: 1px solid rgba(62, 143, 136, .24);
        border-radius: 999px;
        background: var(--teal-soft);
        box-shadow: 0 3px 8px rgba(16, 42, 43, .04);
        font: inherit;
        font-size: .85rem;
        font-weight: 750;
        line-height: 1.2;
        white-space: nowrap;
        transition: color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .crud-toolbar .clear-filters svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--teal-deep); }

    .crud-toolbar .clear-filters:hover { color: var(--ink); border-color: var(--teal); box-shadow: 0 5px 12px rgba(62, 143, 136, .12); transform: translateY(-1px); }

    .crud-toolbar .clear-filters:active { box-shadow: 0 1px 4px rgba(62, 143, 136, .1); transform: translateY(0); }

    .crud-toolbar .clear-filters:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; }

    @media (prefers-reduced-motion: reduce) {
        .crud-toolbar .clear-filters { transition: none; }
        .crud-toolbar .clear-filters:hover { transform: none; }
    }

    .access-table { min-width: 760px; }

    .access-identity strong,
    .access-identity a,
    .access-identity span { display: block; }

    .access-identity strong,
    .access-identity a { font-size: .86rem; }
    .access-identity a { font-weight: 700; color: var(--teal-deep); text-decoration: none; }

    .access-identity span,
    .role-key { margin-top: 3px; color: var(--muted); font-size: .74rem; }

    .role-badge { display: inline-flex; padding: 4px 8px; color: var(--teal-deep); border-radius: 999px; background: var(--teal-soft); font-size: .7rem; font-weight: 750; }

    .status-select { height: 32px; padding: 0 8px; color: var(--ink); border: 1px solid rgba(120, 157, 151, .3); border-radius: 7px; background: #fff; font-size: .75rem; }

    .status-select.status-active { color: #16734b; border-color: rgba(22, 115, 75, .28); background: #f0faf5; }

    .status-select.status-suspended { color: #a15c08; border-color: rgba(161, 92, 8, .3); background: #fff8eb; }

    .status-select.status-deactivated { color: #64748b; border-color: rgba(100, 116, 139, .28); background: #f4f6f8; }

    .status-select {
        appearance: none;
        padding-right: 38px;
        background-image: linear-gradient(45deg, transparent 50%, var(--teal-deep) 50%), linear-gradient(135deg, var(--teal-deep) 50%, transparent 50%);
        background-repeat: no-repeat;
        background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
        background-size: 5px 5px, 5px 5px;
        cursor: pointer;
    }

    .status-badge {
        display: inline-flex;
        align-items: center;
        justify-self: start;
        min-height: 27px;
        padding: 5px 9px;
        border: 1px solid transparent;
        border-radius: 999px;
        font-size: .72rem;
        font-weight: 800;
        line-height: 1;
    }

    .status-badge.status-active { color: #16734b; border-color: rgba(22, 115, 75, .18); background: #f0faf5; }

    .status-badge.status-suspended { color: #a15c08; border-color: rgba(161, 92, 8, .2); background: #fff8eb; }

    .status-badge.status-deactivated { color: #b42318; border-color: rgba(180, 35, 24, .2); background: #fff0ee; }

    .row-actions { display: flex; align-items: center; gap: 9px; white-space: nowrap; }

    .form-page-head > .row-actions { justify-content: flex-end; gap: 10px; }

    .form-page-head .secondary.action-edit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 9px 15px;
        color: #2563eb;
        border: 1px solid rgba(37, 99, 235, .2);
        border-radius: 9px;
        background: #eff6ff;
        font-size: .76rem;
        font-weight: 800;
        text-decoration: none;
        transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
    }

    .form-page-head .secondary.action-edit:hover {
        color: #fff;
        border-color: #2563eb;
        background: #2563eb;
        transform: translateY(-1px);
    }

    .signal-badge {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 6px 10px;
        color: #16734b;
        border: 1px solid rgba(22, 115, 75, .18);
        border-radius: 999px;
        background: #f0faf5;
        font-size: .66rem;
        font-weight: 800;
        letter-spacing: .05em;
        white-space: nowrap;
    }

    .signal-badge-danger {
        color: #b42318;
        border-color: rgba(180, 35, 24, .2);
        background: #fff0ee;
    }

    .row-actions a,
    .danger-link { padding: 0; color: var(--teal-deep); border: 0; background: transparent; font-size: .76rem; font-weight: 750; text-decoration: none; cursor: pointer; }

    .row-actions a:hover { text-decoration: underline; }

    .danger-link { color: var(--danger); }

    .access-table .row-actions { width: max-content; gap: 3px; padding: 3px; border: 1px solid rgba(120, 157, 151, .2); border-radius: 9px; background: #f7fbfa; }

    .access-table .row-actions a,
    .access-table .row-actions button,
    .access-table .row-actions .danger-link { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 9px; border-radius: 6px; font-size: .72rem; font-weight: 800; line-height: 1; text-decoration: none; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }

    .access-table .row-actions button { color: var(--teal-deep); border: 0; background: transparent; cursor: pointer; }

    .access-table .row-actions button:hover { color: var(--teal-deep); background: #e8f5f1; box-shadow: 0 1px 2px rgba(16, 42, 43, .08); }

    .access-table .row-actions a:hover { color: var(--teal-deep); background: #e8f5f1; box-shadow: 0 1px 2px rgba(16, 42, 43, .08); }

    .access-table .row-actions a.action-edit,
    .row-actions a.action-edit { color: #2563eb; }

    .access-table .row-actions a.action-edit:hover,
    .row-actions a.action-edit:hover { color: #1d4ed8; background: #eff6ff; box-shadow: 0 1px 2px rgba(37, 99, 235, .12); }

    .access-table .row-actions button.action-resend,
    .row-actions button.action-resend { color: #2563eb; border: 0; background: transparent; cursor: pointer; }

    .access-table .row-actions button.action-resend:hover { color: #1d4ed8; background: #eff6ff; box-shadow: 0 1px 2px rgba(37, 99, 235, .12); }

    .access-table .row-actions .danger-link { color: var(--danger); }

    .access-table .row-actions .danger-link:hover { background: #fff0ee; box-shadow: 0 1px 2px rgba(180, 35, 24, .1); }

    .access-table .row-actions form { display: contents; }

    .pagination-wrap { padding: 16px 20px; border-top: 1px solid rgba(120, 157, 151, .14); }

    .pagination-wrap nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }

    .pagination-wrap nav > div:first-child:not(:only-child),
    .pagination-wrap nav > div[class*="sm:hidden"],
    .pagination-wrap nav > div.flex.gap-2 { display: none !important; }

    .pagination-wrap nav > div.hidden { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 18px; }

    .pagination-wrap nav p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }

    .pagination-wrap nav > div.hidden > div:last-child > span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px;
    }

    .pagination-wrap nav > div.hidden > div:last-child > span > * {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .pagination-wrap nav > div.hidden a,
    .pagination-wrap nav > div.hidden [aria-current] > span,
    .pagination-wrap nav > div.hidden [aria-disabled] > span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 10px !important;
        color: var(--muted) !important;
        border: 1px solid rgba(120, 157, 151, .28) !important;
        border-radius: 6px !important;
        background: #fff !important;
        font-size: .75rem !important;
        line-height: 1 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
    }

    .pagination-wrap nav > div.hidden a:hover { color: var(--teal-deep) !important; background: var(--teal-soft) !important; }

    .pagination-wrap nav > div.hidden [aria-current] > span { color: #fff !important; border-color: var(--teal-deep) !important; background: var(--teal-deep) !important; font-weight: 800 !important; }

    .pagination-wrap nav > div.hidden [aria-disabled] > span { color: #b7c3c1 !important; background: #f7faf9 !important; cursor: not-allowed !important; }

    .pagination-wrap nav > div.hidden svg { display: block !important; width: 14px !important; height: 14px !important; margin: 0 auto !important; }

    .admin-toast-region {
        position: fixed;
        top: 24px;
        right: 24px;
        z-index: 1000;
        display: grid;
        gap: 12px;
        width: min(400px, calc(100vw - 32px));
        max-height: calc(100dvh - 48px);
        padding: 4px;
        overflow-y: auto;
        pointer-events: none;
    }

    .admin-toast {
        --toast-color: #2563eb;
        --toast-tint: #eff6ff;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        color: var(--ink);
        border: 1px solid var(--line);
        border-left: 4px solid var(--toast-color);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(16, 42, 43, .12);
        pointer-events: auto;
        animation: admin-toast-enter .2s ease-out;
    }

    .admin-toast[data-tone="success"] { --toast-color: #16734b; --toast-tint: #edf8f1; }
    .admin-toast[data-tone="error"] { --toast-color: #b42318; --toast-tint: #fff0ee; }
    .admin-toast[data-tone="warning"] { --toast-color: #a15c08; --toast-tint: #fff8eb; }

    .admin-toast-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; color: var(--toast-color); border-radius: 9px; background: var(--toast-tint); }
    .admin-toast-icon svg { display: none; }
    .admin-toast[data-tone="success"] .toast-icon-success,
    .admin-toast[data-tone="error"] .toast-icon-error,
    .admin-toast[data-tone="warning"] .toast-icon-warning,
    .admin-toast[data-tone="info"] .toast-icon-info { display: block; }

    .admin-toast-copy { flex: 1; min-width: 0; }
    .admin-toast-copy > strong { display: block; margin-bottom: 4px; font-size: .83rem; }
    .admin-toast-content { color: #536b68; font-size: .79rem; line-height: 1.55; overflow-wrap: anywhere; }
    .admin-toast-content p { margin: 0; }
    .admin-toast-content ul { margin: 0; padding-left: 16px; }
    .admin-toast-content li + li { margin-top: 5px; }
    .admin-toast-content ul:has(> li:only-child) { padding-left: 0; list-style: none; }

    .admin-toast-close { display: grid; place-items: center; flex: 0 0 26px; height: 26px; padding: 0; color: var(--muted); border: 0; border-radius: 6px; background: transparent; }
    .admin-toast-close:hover { color: var(--ink); background: var(--canvas); }
    .admin-toast-close:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
    .field input[aria-invalid="true"] { border-color: var(--danger); }

    @keyframes admin-toast-enter {
        from { opacity: 0; transform: translateX(16px); }
        to { opacity: 1; transform: translateX(0); }
    }

    @media (prefers-reduced-motion: reduce) {
        .admin-toast { animation: none; }
    }

    @media (max-width: 600px) {
        .admin-toast-region { top: 12px; right: 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
    }

    .access-editor { overflow: hidden; }

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

    .access-form-grid .field.full { grid-column: 1 / -1; }

    .theme-color-swatches { display: inline-flex; align-items: center; gap: 5px; }

    .theme-color-swatch { display: inline-block; width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid rgba(16, 42, 43, .2); border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }

    .theme-color-detail { display: flex; align-items: center; gap: 10px; min-height: 34px; }

    .brand-thumb { display: grid; place-items: center; width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

    .brand-thumb-empty { color: var(--muted); background: #f7fbfa; }

    .vehicle-thumb { display: block; width: 58px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

    .vehicles-table { min-width: 1240px; }

    .vehicle-thumb-empty { display: grid; place-items: center; color: var(--muted); background: #f7fbfa; }

    .vehicle-form-image { display: block; max-width: 280px; max-height: 190px; margin: 8px 0 12px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

    .vehicle-model-feedback { display: block; min-height: 1.2em; margin-top: 6px; color: var(--muted); background: #fff; font-size: .75rem; line-height: 1.2; }
    .vehicle-model-feedback small { display: block; color: inherit; font-size: inherit; }
    .vehicle-model-feedback .field-error { display: block; color: var(--danger); }
    .vehicle-model-feedback [hidden] { display: none !important; }

    .vehicle-media-field small { display: block; margin-top: 8px; color: var(--muted); }

    .vehicle-detail-image { padding: 24px; }

    .vehicle-detail-image h2 { margin: 0 0 16px; font-size: 1rem; }

    .vehicle-detail-image img { display: block; max-width: min(100%, 520px); max-height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

    .brand-form-grid { gap: 24px; padding: 28px; }

    .brand-form-grid .field > label:first-child { font-size: .8rem; font-weight: 800; }

    .brand-form-grid .field > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
    .brand-form-grid .field > select { min-height: 48px; }

    .brand-media-field { position: relative; }

    .brand-form-grid .brand-file-input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }

    .brand-upload-card { display: flex; align-items: center; gap: 20px; min-height: 146px; padding: 18px; border: 1px dashed rgba(62, 143, 136, .42); border-radius: 13px; background: linear-gradient(120deg, #f7fcfa, #fff); }

    .brand-file-input:focus-visible + .brand-upload-card { outline: 3px solid rgba(100, 178, 170, .25); outline-offset: 3px; }

    .brand-logo-frame { display: grid; place-items: center; width: 108px; height: 108px; flex: 0 0 108px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

    .brand-logo-frame [hidden] { display: none !important; }

    .brand-logo-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; }

    .brand-logo-frame svg { width: 44px; height: 44px; color: #8cbab3; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

    html[dir="rtl"] .admin-content .brand-logo-frame img { margin: 0; }

    .brand-upload-copy { display: grid; gap: 6px; min-width: 0; flex: 1; }

    .brand-upload-copy strong { font-size: .86rem; }

    .brand-upload-copy span { color: var(--muted); font-size: .74rem; }

    .brand-upload-copy .brand-file-name { overflow: hidden; color: var(--teal-deep); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

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

    .brand-edit-image-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 14px; color: var(--teal-deep); border: 1px solid rgba(62, 143, 136, .3); border-radius: 9px; background: var(--teal-soft); font-size: .76rem; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease; }

    .brand-edit-image-button:hover { background: #def1ee; border-color: var(--teal); }

    .brand-edit-image-button svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; }

    .brand-edit-image-button[hidden] { display: none !important; }

    .brand-upload-card .brand-upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; color: var(--teal-deep); border: 1px solid rgba(62, 143, 136, .3); border-radius: 9px; background: #fff; font-size: .76rem; font-weight: 800; white-space: nowrap; cursor: pointer; }

    .brand-upload-card .brand-upload-button:hover { background: var(--teal-soft); }

    .brand-status-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; }

    .brand-status-copy { display: grid; gap: 4px; }

    .brand-status-copy strong { font-size: .8rem; }

    .brand-status-copy span { color: var(--muted); font-size: .74rem; }

    .brand-status-switch { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; cursor: pointer; }

    .brand-status-switch input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }

    .brand-status-track { position: relative; display: inline-block; width: 42px; height: 24px; border-radius: 999px; background: #b9c8c6; transition: background .2s ease; }

    .brand-status-track::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ''; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .16); transition: transform .2s ease; }

    .brand-status-switch input:checked + .brand-status-track { background: var(--teal-deep); }

    .brand-status-switch input:checked + .brand-status-track::after { transform: translateX(18px); }

    .brand-status-switch input:focus-visible + .brand-status-track { outline: 3px solid rgba(100, 178, 170, .25); outline-offset: 2px; }

    .brand-status-on,
    .brand-status-off { min-width: 50px; color: var(--ink); font-size: .76rem; font-weight: 800; }

    .brand-status-on,
    .brand-status-switch input:checked ~ .brand-status-off { display: none; }

    .brand-status-switch input:checked ~ .brand-status-on { display: inline; }

    html[dir="rtl"] .brand-status-track::after { left: auto; right: 3px; }

    html[dir="rtl"] .brand-status-switch input:checked + .brand-status-track::after { transform: translateX(-18px); }

    .brand-form-grid + .access-form-actions { padding: 0 28px 28px; border-top: 0; }

    @media (max-width: 640px) {
        .brand-upload-card { align-items: flex-start; flex-wrap: wrap; }
        .brand-logo-frame { width: 80px; height: 80px; flex-basis: 80px; }
        .brand-upload-card .brand-upload-button { width: 100%; }
        .brand-status-card { align-items: flex-start; flex-direction: column; }
    }

    .brand-detail-image { padding: 24px; }

    .brand-detail-image h2 { margin: 0 0 16px; font-size: 1rem; }

    .brand-detail-image img { display: block; max-width: 240px; max-height: 180px; object-fit: contain; }

    .access-form-grid select[multiple] { height: auto; min-height: 170px; padding: 9px 11px; line-height: 1.7; appearance: auto; background-image: none; cursor: default; }

    .field-help { color: var(--muted); font-size: .72rem; }

    .access-form-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        padding: 0 24px 24px;
    }

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

    .access-form-actions .secondary:hover {
        color: var(--teal-deep);
        border-color: rgba(100, 178, 170, .5);
        background: var(--teal-soft);
        transform: translateY(-1px);
    }

    .remove-dialog {
        width: min(440px, calc(100% - 32px));
        max-height: calc(100dvh - 32px);
        padding: 0;
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 24px 80px rgba(6, 21, 26, .24);
    }

    .remove-dialog::backdrop { background: rgba(6, 21, 26, .45); backdrop-filter: blur(3px); }

    .remove-dialog-body { position: relative; padding: 28px 28px 24px; }

    .remove-dialog-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--muted); border: 0; border-radius: 8px; background: transparent; }

    .remove-dialog-close:hover { color: var(--ink); background: var(--canvas); }

    .remove-dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; color: var(--danger); border: 1px solid #fee4e2; border-radius: 14px; background: #fff0ee; }

    .remove-dialog h2 { margin: 0 0 10px; font-size: 1.15rem; letter-spacing: -.02em; }

    .remove-dialog p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; overflow-wrap: anywhere; }

    .remove-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--line); background: #f9fcfb; }

    .remove-dialog-actions button { display: inline-flex; align-items: center; justify-content: center; min-width: 94px; min-height: 42px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-size: .8rem; font-weight: 750; transition: background .15s ease, border-color .15s ease; }

    .remove-dialog-actions .remove-dialog-cancel { color: var(--ink); border-color: var(--line); background: #fff; }

    .remove-dialog-actions .remove-dialog-cancel:hover { border-color: var(--teal); background: var(--teal-soft); }

    .remove-dialog-confirm { color: #fff; background: var(--danger); }

    .remove-dialog-confirm:hover { background: #912018; }

    .remove-dialog button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

    .remove-dialog button:disabled { opacity: .6; cursor: wait; }

    .image-editor-dialog {
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 24px 60px rgba(6, 21, 26, .22);
        width: min(880px, calc(100vw - 32px));
        max-width: 880px;
        overflow: hidden;
    }

    .image-editor-dialog::backdrop {
        background: rgba(6, 21, 26, .65);
        backdrop-filter: blur(4px);
    }

    .image-editor-shell {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 40px);
        background: #fff;
    }

    .image-editor-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 24px;
        border-bottom: 1px solid var(--line);
        background: #fff;
    }

    .image-editor-title-wrap {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    .image-editor-icon {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        color: var(--teal-deep);
        border: 1px solid rgba(62, 143, 136, .25);
        border-radius: 12px;
        background: var(--teal-soft);
    }

    .image-editor-header h2 {
        margin: 0;
        font-size: 1.08rem;
        letter-spacing: -.01em;
        color: var(--ink);
    }

    .image-editor-subtitle {
        margin: 2px 0 0;
        color: var(--muted);
        font-size: .78rem;
        line-height: 1.4;
    }

    .image-editor-close {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        padding: 0;
        color: var(--muted);
        border: 0;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
        transition: color .15s ease, background .15s ease;
    }

    .image-editor-close:hover {
        color: var(--ink);
        background: var(--canvas);
    }

    .image-editor-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .image-editor-stage {
        position: relative;
        width: 100%;
        height: clamp(280px, 48vh, 440px);
        min-height: 260px;
        overflow: hidden;
        user-select: none;
        touch-action: none;
        background-color: #0b1a1d;
        background-image:
            linear-gradient(45deg, #13272b 25%, transparent 25%),
            linear-gradient(-45deg, #13272b 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, #13272b 75%),
            linear-gradient(-45deg, transparent 75%, #13272b 75%);
        background-size: 20px 20px;
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .image-editor-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    .image-editor-loading {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        color: #fff;
        background: rgba(6, 21, 26, .8);
        font-size: .84rem;
        z-index: 5;
    }

    .image-editor-loading[hidden] {
        display: none !important;
    }

    .image-editor-spinner {
        width: 28px;
        height: 28px;
        border: 3px solid rgba(255, 255, 255, .2);
        border-top-color: var(--teal);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

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

    .image-editor-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 24px;
        border-top: 1px solid var(--line);
        background: #fbfdfc;
    }

    .image-editor-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .image-editor-group-label {
        font-size: .74rem;
        font-weight: 750;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .image-editor-pills {
        display: inline-flex;
        padding: 3px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: #fff;
    }

    .image-editor-pill {
        min-width: 44px;
        padding: 5px 10px;
        font-size: .74rem;
        font-weight: 750;
        color: var(--ink);
        background: transparent;
        border: 0;
        border-radius: 6px;
        cursor: pointer;
        transition: background .12s ease, color .12s ease;
    }

    .image-editor-pill:hover {
        background: var(--teal-soft);
        color: var(--teal-deep);
    }

    .image-editor-pill.is-active {
        background: var(--teal-deep);
        color: #fff;
    }

    .image-editor-tools {
        display: inline-flex;
        gap: 6px;
    }

    .image-editor-tool-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        transition: background .15s ease, border-color .15s ease, color .15s ease;
    }

    .image-editor-tool-btn.small {
        width: 28px;
        height: 28px;
    }

    .image-editor-tool-btn:hover {
        background: var(--teal-soft);
        border-color: var(--teal);
        color: var(--teal-deep);
    }

    .image-editor-zoom-wrap {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .image-editor-slider {
        width: 100px;
        height: 5px;
        accent-color: var(--teal-deep);
        cursor: pointer;
    }

    .image-editor-zoom-label {
        font-size: .74rem;
        font-weight: 750;
        color: var(--ink);
        min-width: 38px;
        text-align: center;
    }

    .image-editor-reset-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 32px;
        padding: 0 10px;
        color: var(--muted);
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        font-size: .74rem;
        font-weight: 750;
        cursor: pointer;
        transition: color .15s ease, background .15s ease, border-color .15s ease;
    }

    .image-editor-reset-btn:hover {
        color: var(--ink);
        border-color: var(--teal);
        background: var(--teal-soft);
    }

    .image-editor-footer {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        padding: 14px 24px;
        border-top: 1px solid var(--line);
        background: #fff;
    }

    .image-editor-footer button {
        min-width: 100px;
        min-height: 42px;
        cursor: pointer;
    }

    .image-editor-footer .secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 20px;
        color: var(--muted);
        border: 1px solid rgba(120, 157, 151, .3);
        border-radius: 999px;
        background: #fff;
        font-size: .78rem;
        font-weight: 750;
        cursor: pointer;
        transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
    }

    .image-editor-footer .secondary:hover {
        color: var(--teal-deep);
        border-color: rgba(100, 178, 170, .5);
        background: var(--teal-soft);
        transform: translateY(-1px);
    }

    .image-editor-footer .primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 22px;
        color: #fff;
        border: 1px solid var(--teal);
        border-radius: 999px;
        background: linear-gradient(135deg, var(--mint), var(--teal));
        box-shadow: 0 7px 16px rgba(100, 178, 170, .22);
        font-size: .78rem;
        font-weight: 750;
        cursor: pointer;
        transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .image-editor-footer .primary:hover {
        background: linear-gradient(135deg, #9fc394, #55a79f);
        box-shadow: 0 10px 20px rgba(100, 178, 170, .3);
        transform: translateY(-1px);
    }

    .permission-grid { margin: 0 24px 22px; overflow: hidden; border: 1px solid rgba(120, 157, 151, .22); border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(8, 48, 49, .06); }

    .permission-grid-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #dce8e6; background: linear-gradient(135deg, rgba(242, 248, 247, .96), rgba(255, 255, 255, .96)); }

    .permission-grid-head h2 { margin: 4px 0 4px; color: var(--ink); font-size: 1rem; }

    .permission-grid-head p { margin: 0; color: var(--muted); font-size: .77rem; }

    .permission-count { flex: 0 0 auto; padding: 7px 10px; color: var(--teal-deep); border: 1px solid rgba(72, 159, 149, .22); border-radius: 999px; background: var(--teal-soft); font-size: .7rem; font-weight: 750; }

    .permission-section { border-top: 1px solid #e4eeec; }

    .permission-section-title { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 22px; color: var(--ink); cursor: pointer; list-style: none; font-size: .82rem; font-weight: 800; user-select: none; }

    .permission-section-title::-webkit-details-marker { display: none; }

    .permission-section-title::before { width: 7px; height: 7px; border-right: 1.5px solid var(--teal-deep); border-bottom: 1.5px solid var(--teal-deep); content: ''; transform: rotate(-45deg); }

    .permission-section[open] .permission-section-title::before { transform: rotate(45deg); }

    .permission-section-meta { color: var(--muted); font-size: .69rem; font-weight: 650; }

    .permission-matrix-wrap { overflow-x: auto; }

    .permission-matrix { width: 100%; min-width: 640px; border-collapse: collapse; }

    .permission-matrix th,
    .permission-matrix td { padding: 11px 14px; border-bottom: 1px solid #e4eeec; text-align: center; font-size: .76rem; }

    .permission-matrix thead th { color: #516b70; border-bottom: 1px solid #cadedd; background: #edf4ff; font-size: .7rem; font-weight: 800; white-space: nowrap; }

    .permission-matrix thead th:first-child,
    .permission-matrix tbody th { min-width: 210px; color: var(--ink); text-align: left; }

    .permission-matrix tbody tr:nth-child(even) { background: #f7fbff; }

    .permission-matrix tbody tr:last-child th,
    .permission-matrix tbody tr:last-child td { border-bottom: 0; }

    .permission-matrix tbody th { font-weight: 700; }

    .permission-resource { display: inline-flex; align-items: center; gap: 8px; }

    .permission-check { display: inline-grid; place-items: center; cursor: pointer; }

    .permission-check input { width: 16px; height: 16px; margin: 0; accent-color: #2563d9; cursor: pointer; }

    .permission-check input:disabled { cursor: default; opacity: .8; }

    .permission-empty { color: #c4cfcc; font-size: .72rem; }

    .user-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

    .user-summary-card { display: grid; gap: 7px; padding: 20px; }

    .user-summary-card strong { color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }

    .user-summary-card strong + .summary-label { margin-top: 20px; }

    .summary-label { margin-top: 4px; color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }

    .right-stack {
        display: grid;
        gap: 20px;
    }

    .panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(120, 157, 151, .16);
    }

    .panel h2 {
        margin: 0;
        font-size: 1rem;
    }

    .panel-head a {
        color: var(--teal-deep);
        font-size: .82rem;
        font-weight: 750;
        text-decoration: none;
    }

    .panel-head a:hover {
        text-decoration: underline;
    }

    .panel-caption {
        color: var(--muted);
        font-size: .76rem;
        font-weight: 650;
    }

    .table-wrap {
        overflow: auto;
    }

    .table {
        width: 100%;
        min-width: 640px;
        border-collapse: collapse;
    }

    .table th {
        padding: 12px 20px;
        color: var(--muted);
        background: #fbfdfc;
        text-align: left;
        font-size: .68rem;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .table-sort { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }

    .table-sort:hover { color: var(--teal-deep); }

    .table-sort span { color: var(--teal-deep); font-size: .8rem; }

    .table td {
        padding: 15px 20px;
        border-top: 1px solid rgba(120, 157, 151, .14);
        vertical-align: middle;
    }

    .status-pill {
        display: inline-flex;
        padding: 5px 9px;
        color: var(--teal-deep);
        border-radius: 999px;
        background: var(--teal-soft);
        font-size: .72rem;
        font-weight: 750;
    }

    .empty-state {
        color: var(--muted);
        text-align: center;
    }

    .vendor-cell strong,
    .vendor-cell span {
        display: block;
    }

    .vendor-cell strong {
        font-size: .86rem;
    }

    .vendor-cell span {
        margin-top: 3px;
        color: var(--muted);
        font-size: .75rem;
    }

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

    /* Keep tabular and media content aligned with the Arabic reading direction. */
    html[dir="rtl"] .admin-content {
        direction: rtl;
    }

    html[dir="rtl"] .admin-content .table,
    html[dir="rtl"] .admin-content .permission-matrix {
        direction: rtl;
    }

    html[dir="rtl"] .admin-content .table th,
    html[dir="rtl"] .admin-content .table td,
    html[dir="rtl"] .admin-content .access-identity,
    html[dir="rtl"] .admin-content .vendor-cell {
        text-align: right;
    }

    html[dir="rtl"] .admin-content .permission-matrix thead th:first-child,
    html[dir="rtl"] .admin-content .permission-matrix tbody th {
        text-align: right;
    }

    html[dir="rtl"] .admin-content .table-sort {
        justify-content: flex-start;
    }

    html[dir="rtl"] .admin-content .table td.empty-state {
        text-align: center;
    }

    html[dir="rtl"] .admin-content .photo,
    html[dir="rtl"] .admin-content .photo-grid,
    html[dir="rtl"] .admin-content .media-grid,
    html[dir="rtl"] .admin-content .attachment,
    html[dir="rtl"] .admin-content .attachment-list,
    html[dir="rtl"] .admin-content .image-preview,
    html[dir="rtl"] .admin-content .document-preview,
    html[dir="rtl"] .admin-content .upload-preview {
        justify-content: flex-start;
        text-align: right;
    }

    html[dir="rtl"] .admin-content .photo img,
    html[dir="rtl"] .admin-content .media-grid img,
    html[dir="rtl"] .admin-content .attachment img,
    html[dir="rtl"] .admin-content .image-preview img,
    html[dir="rtl"] .admin-content .document-preview img,
    html[dir="rtl"] .admin-content .upload-preview img {
        margin-inline-start: 0;
        margin-inline-end: auto;
    }

    html[dir="rtl"] .admin-content img:not(.auth-logo) {
        display: block;
        margin-right: 0;
        margin-left: auto;
    }

    .alert {
        margin-bottom: 18px;
        padding: 12px 14px;
        color: #8a2c24;
        border: 1px solid #f3c1bc;
        border-radius: 10px;
        background: #fff5f4;
        font-size: .82rem;
    }

    .searchable-select {
        position: relative;
        display: inline-flex;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        vertical-align: middle;
    }

    .crud-toolbar > .searchable-select {
        width: auto;
        min-width: 150px;
        flex: 0 1 auto;
    }

    .searchable-select-native {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .searchable-select-trigger {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0 36px 0 12px;
        color: var(--ink);
        border: 1px solid rgba(120, 157, 151, .3);
        border-radius: 8px;
        background: #fff;
        font: inherit;
        text-align: start;
        cursor: pointer;
    }

    .searchable-select-trigger:hover { border-color: var(--teal-deep); }
    .searchable-select-trigger:focus-visible { outline: 3px solid rgba(100, 178, 170, .2); border-color: var(--teal); }
    .searchable-select-trigger[aria-invalid="true"] { border-color: var(--danger); }
    .searchable-select-trigger:disabled { color: #98a2b3; background: #f4f6f8; cursor: not-allowed; }
    .searchable-select-trigger.status-select { min-height: 32px; padding-right: 30px; background-image: none; font-size: .75rem; }
    .status-select-wrap.searchable-select::after { display: none; }

    html[dir="rtl"] .searchable-select-trigger { padding-right: 12px; padding-left: 36px; }
    html[dir="rtl"] .searchable-select-trigger.status-select { padding-left: 30px; }

    .searchable-select-value {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .searchable-select-value.has-icon { display: flex; align-items: center; gap: 10px; }
    .searchable-select-icon { flex: 0 0 22px; width: 22px; height: 22px; }
    .searchable-select-icon-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .searchable-select-chevron {
        position: absolute;
        top: 50%;
        right: 13px;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid var(--teal-deep);
        border-bottom: 1.5px solid var(--teal-deep);
        transform: translateY(-70%) rotate(45deg);
        transition: transform .15s ease;
    }

    html[dir="rtl"] .searchable-select-chevron { right: auto; left: 13px; }
    .searchable-select.is-open .searchable-select-chevron { transform: translateY(-30%) rotate(225deg); }
    .searchable-select-trigger.status-select.status-active { color: #16734b; }
    .searchable-select-trigger.status-select.status-suspended { color: #a15c08; }
    .searchable-select-trigger.status-select.status-deactivated { color: #64748b; }

    .searchable-select-menu {
        position: fixed;
        z-index: 1200;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 8px;
        max-height: min(340px, calc(100dvh - 24px));
        padding: 9px;
        overflow: hidden;
        border: 1px solid rgba(120, 157, 151, .32);
        border-radius: 11px;
        background: #fff;
        box-shadow: 0 14px 36px rgba(16, 42, 43, .18);
    }

    .searchable-select-menu[hidden] { display: none; }

    .searchable-select-search {
        width: 100%;
        min-height: 38px;
        padding: 0 11px;
        color: var(--ink);
        border: 1px solid rgba(120, 157, 151, .32);
        border-radius: 7px;
        background: #fff;
        font: inherit;
        font-size: .82rem;
    }

    .searchable-select-search:focus { outline: 3px solid rgba(100, 178, 170, .2); border-color: var(--teal); }

    .searchable-select-options {
        display: grid;
        align-content: start;
        gap: 3px;
        min-height: 0;
        overflow-y: auto;
    }

    .searchable-select-option {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        min-height: 36px;
        padding: 7px 9px;
        color: var(--ink);
        border: 0;
        border-radius: 7px;
        background: transparent;
        font: inherit;
        font-size: .82rem;
        text-align: start;
        cursor: pointer;
    }

    .searchable-select-option:hover,
    .searchable-select-option:focus-visible { outline: none; background: var(--canvas); }
    .searchable-select-option.is-selected { color: var(--teal-deep); background: var(--teal-soft); font-weight: 750; }
    .searchable-select-option:disabled { color: #98a2b3; cursor: not-allowed; }

    .searchable-select-option-check {
        display: grid;
        place-items: center;
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
        color: #fff;
        border: 1px solid rgba(120, 157, 151, .4);
        border-radius: 4px;
        background: #fff;
        font-size: .7rem;
    }

    .searchable-select-option.is-selected .searchable-select-option-check { border-color: var(--teal-deep); background: var(--teal-deep); }
    .searchable-select-group { padding: 8px 9px 4px; color: var(--muted); font-size: .7rem; font-weight: 800; }
    .searchable-select-empty { margin: 0; padding: 9px; color: var(--muted); font-size: .8rem; }
    .searchable-select-error { display: block; margin-top: 5px; color: var(--danger); font-size: .75rem; }
    .searchable-select-error[hidden] { display: none; }

    .permission-search { margin: 16px 22px; }
    .permission-search input {
        width: min(100%, 420px);
        height: 40px;
        padding: 0 12px;
        color: var(--ink);
        border: 1px solid rgba(120, 157, 151, .3);
        border-radius: 8px;
        background: #fff;
        font: inherit;
        font-size: .82rem;
    }

    .permission-search input:focus { outline: 3px solid rgba(100, 178, 170, .2); border-color: var(--teal); }
    .permission-search-empty { margin: 0 22px 16px; color: var(--muted); font-size: .82rem; }

    @media (max-width: 600px) {
        .crud-toolbar > .searchable-select { flex: 1 1 100%; width: 100%; }
        .crud-toolbar > .searchable-select .searchable-select-trigger { width: 100% !important; }
        .permission-search { margin: 14px 16px; }
    }

    @media (prefers-reduced-motion: reduce) {
        .searchable-select-chevron { transition: none; }
    }

/* Vehicle create, edit, and detail pages share the same information groups. */
.vehicle-editor { display: grid; gap: 20px; min-width: 0; }
.vehicle-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.vehicle-section-wide { grid-column: 1 / -1; }
.vehicle-section-card { min-width: 0; }
.vehicle-section-heading { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.vehicle-section-heading > div { min-width: 0; }
.vehicle-section-heading h2 { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 800; line-height: 1.4; }
.vehicle-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.vehicle-section-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(--teal-deep); border: 1px solid var(--line); border-radius: 12px; background: var(--teal-soft); }
.vehicle-section-icon svg { width: 24px; height: 24px; }
.vehicle-section-fields { gap: 20px; }
.vehicle-section-fields .field { align-content: start; }
.vehicle-section-fields .field > label:first-child { font-weight: 750; }
.vehicle-section-fields .field input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.vehicle-section-fields .searchable-select-trigger { min-height: 44px; }

.admin-icon { flex-shrink: 0; display: block; }
.admin-icon-preview { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-icon-preview-symbol { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; color: var(--teal-deep); background: var(--teal-soft); }
.admin-icon-preview-symbol[hidden] { display: none; }
.admin-icon-preview-symbol .admin-icon { width: 28px; height: 28px; }
.admin-icon-preview-label { color: var(--ink); font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.admin-icon-picker-control { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-icon-picker-control > select,
.admin-icon-picker-control > .searchable-select { flex: 1 1 0; width: auto; min-width: 0; }
.admin-icon-picker-control > .admin-icon-preview { flex: 0 0 auto; }
.vehicle-section-fields .brand-file-input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.vehicle-section-fields .brand-logo-frame { width: 160px; height: 112px; flex-basis: 160px; }
.vehicle-editor .vehicle-form-actions { position: sticky; inset-block-end: 12px; z-index: 5; margin: 0; padding: 16px 24px; background: #fff; box-shadow: var(--shadow); }
.vehicle-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 4px 24px 16px; }
.vehicle-detail-field { min-width: 0; padding-block: 16px; border-bottom: 1px solid var(--line); }
.vehicle-detail-field:last-child:nth-child(odd) { grid-column: 1 / -1; }
.vehicle-detail-fields .vehicle-detail-field:nth-last-child(-n + 2) { border-bottom: 0; }
.vehicle-detail-field dt { margin: 0 0 6px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.vehicle-detail-field dd { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; text-align: match-parent; }
html[dir="rtl"] .vehicle-detail-field dd { text-align: right; }
.vehicle-detail-media { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); align-items: center; gap: 24px; padding: 24px; }
.vehicle-detail-preview { display: grid; place-items: center; min-width: 0; min-height: 220px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.vehicle-detail-preview img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; }
.vehicle-visibility-summary { display: grid; justify-items: start; align-content: start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--teal-soft); }
.vehicle-visibility-summary p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }

/* Vendor Show Tab Navigation */
.vendor-tabs-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-bottom: 2px solid var(--line, rgba(120, 157, 151, .22)) !important;
    margin: 24px 0 !important;
    padding: 0 0 2px 0 !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain !important;
    scrollbar-width: thin !important;
    width: 100% !important;
    background: transparent !important;
}

.vendor-tab-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 18px !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
    background: transparent !important;
    color: var(--muted, #66807d) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    transition: all 0.16s ease !important;
    white-space: nowrap !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.vendor-tab-btn svg {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    color: currentColor !important;
    flex-shrink: 0 !important;
    transition: color 0.16s ease !important;
    vertical-align: middle !important;
}

.vendor-tab-btn:hover {
    color: var(--ink, #102a2b) !important;
    background: rgba(100, 178, 170, .08) !important;
}

.vendor-tab-btn.active {
    color: var(--teal-deep, #3e8f88) !important;
    border-bottom-color: var(--teal-deep, #3e8f88) !important;
    background: rgba(62, 143, 136, .08) !important;
}

.vendor-tab-btn.active svg {
    color: var(--teal-deep, #3e8f88) !important;
}

.vendor-tab-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 20px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    background: var(--teal-soft, #edf8f6) !important;
    color: var(--teal-deep, #3e8f88) !important;
    transition: all 0.16s ease !important;
}

.vendor-tab-btn.active .vendor-tab-count {
    background: var(--teal-deep, #3e8f88) !important;
    color: #fff !important;
}

.vendor-tab-pane {
    display: none;
}

.vendor-tab-pane.active {
    display: block !important;
    animation: vendorFadeIn 0.2s ease;
}

