:root {
    --bg: #090d14;
    --panel: rgba(18, 25, 38, .82);
    --panel-strong: rgba(24, 32, 48, .97);
    --line: rgba(255,255,255,.10);
    --muted: #8d9aae;
    --text: #ecf2ff;
    --accent-a: #ff4b2b;
    --accent-b: #ff8a00;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 92, 43, .18), transparent 34rem),
        radial-gradient(circle at 80% 5%, rgba(62, 153, 255, .12), transparent 30rem),
        linear-gradient(145deg, #070a10, #111827 55%, #070a10);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.form-control,
.form-select {
    color: var(--text);
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.form-control:focus,
.form-select:focus {
    color: var(--text);
    background: rgba(255,255,255,.09);
    border-color: rgba(255, 138, 0, .7);
    box-shadow: 0 0 0 .25rem rgba(255, 90, 30, .13);
}

.form-control::placeholder { color: rgba(236,242,255,.45); }

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(460px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(10, 15, 24, .78);
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    backdrop-filter: blur(18px);
}

.brand-mark,
.brand-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    color: #fff;
    font-weight: 900;
}

.login-card h1 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 850;
}

.login-card p { color: var(--muted); }

.btn {
    border-radius: 14px;
    font-weight: 700;
}

.btn-accent {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 14px 35px rgba(255, 82, 35, .22);
}

.btn-soft {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.08);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 10, 16, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.topbar-inner {
    min-height: 74px;
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 12px 18px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 240px;
}

.brand strong { display: block; }
.brand span { color: var(--muted); font-size: 13px; }

.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 7px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    max-width: 620px;
    margin: 0 auto;
}

.nav-btn {
    border: 0;
    color: var(--muted);
    background: transparent;
    padding: 10px 16px;
    border-radius: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255,75,43,.95), rgba(255,138,0,.95));
}

.nav-btn.muted { opacity: .75; }

.logout-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 86px;
    white-space: nowrap;
}

.page-wrap {
    padding: 22px 18px 80px;
    max-width: 1400px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-head h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -.04em;
    margin: 0;
}

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

.filter-card,
.glass-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    background: var(--panel);
    backdrop-filter: blur(18px);
}

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

.order-card {
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    transition: .18s ease;
}

.order-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,138,0,.45);
}

.order-visual {
    height: 140px;
    background:
        linear-gradient(135deg, rgba(255,75,43,.18), rgba(255,138,0,.08)),
        url('../img/car-placeholder.svg') center / 84px no-repeat;
    border-bottom: 1px solid var(--line);
}

.order-body { padding: 16px; }

.status-pill {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid var(--line);
    color: #fff;
}

.status-new { background: rgba(108,199,255,.18); }
.status-diagnostic { background: rgba(246,200,95,.18); }
.status-waiting_parts { background: rgba(255,138,0,.18); }
.status-in_work { background: rgba(40,209,124,.18); }
.status-quality_check { background: rgba(155,125,255,.18); }
.status-done { background: rgba(40,209,124,.30); }
.status-cancelled { background: rgba(255,89,100,.20); }

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

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

.metric-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: var(--panel);
}

.metric-card strong {
    display: block;
    font-size: 32px;
}

.metric-card span { color: var(--muted); }

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

.menu-card {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

.menu-card strong {
    font-size: 20px;
}

.menu-card span {
    color: var(--muted);
}

.menu-card.disabled {
    opacity: .55;
}

.app-modal {
    color: var(--text);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 16px;
}

.detail-section {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    background: rgba(255,255,255,.035);
}

.kv {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }

.timeline-item,
.comment-item,
.photo-item,
.worker-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    margin-bottom: 10px;
}

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

.photo-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
}

.toast-host {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: grid;
    gap: 10px;
}

.app-toast {
    padding: 12px 14px;
    border-radius: 16px;
    color: #fff;
    background: rgba(20,28,42,.96);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.mobile-dock {
    display: none;
}

@media (max-width: 1080px) {
    .orders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .topbar-inner {
        min-height: 64px;
        padding: 10px 12px;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 13px;
    }

    .brand span {
        max-width: 210px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .desktop-nav,
    .topbar .logout-btn {
        display: none;
    }

    .page-wrap {
        padding: 16px 12px 104px;
    }

    .mobile-dock {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(12, 17, 27, .92);
        backdrop-filter: blur(18px);
        box-shadow: 0 18px 50px rgba(0,0,0,.42);
    }

    .dock-btn {
        min-height: 58px;
        border: 0;
        border-radius: 18px;
        color: var(--muted);
        background: transparent;
        display: grid;
        place-items: center;
        gap: 2px;
        font-size: 12px;
        font-weight: 800;
    }

    .dock-btn span {
        font-size: 18px;
        line-height: 1;
    }

    .dock-btn strong {
        font-size: 11px;
        line-height: 1;
    }

    .dock-btn.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(255,75,43,.95), rgba(255,138,0,.95));
    }
}

@media (max-width: 720px) {
    .page-head { flex-direction: column; }
    .page-head .btn { width: 100%; }

    .orders-grid,
    .menu-grid { grid-template-columns: 1fr; }

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

    .kv {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Select dark dropdown fix */
.form-select option {
    color: #ecf2ff;
    background: #151d2b;
}

.form-select option:checked {
    background: #263247;
}

/* Employees page */
.employees-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.employee-form-grid {
    display: grid;
    gap: 12px;
}

.employee-photo-picker {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    cursor: pointer;
}

.employee-photo-picker input {
    display: none;
}

.employee-photo-preview,
.employee-avatar,
.shift-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,75,43,.9), rgba(255,138,0,.9));
    color: #fff;
    font-weight: 900;
}

.employee-photo-preview {
    width: 62px;
    height: 62px;
    font-size: 28px;
}

.employee-photo-preview img,
.employee-avatar img,
.shift-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.employee-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
}

.employee-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.employee-main {
    min-width: 0;
}

.employee-card h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.employee-compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.employee-chip {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.035);
    font-size: 12px;
}

/* Shift page */
.shift-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 16px;
}

.shift-section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.shift-actions-grid,
.admin-shift-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-shift-panel {
    display: grid;
    gap: 12px;
}

.shift-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.shift-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: .18s ease;
}

.shift-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,138,0,.42);
}

.shift-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.shift-card h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 850;
}

.shift-status {
    display: inline-flex;
    width: max-content;
    margin-top: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 800;
}

.shift-status.work { background: rgba(40,209,124,.18); }
.shift-status.break { background: rgba(255,138,0,.18); }
.shift-status.done { background: rgba(255,255,255,.08); }

.shift-modal-profile {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.shift-modal-avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
}

@media (max-width: 1120px) {
    .employees-grid,
    .shift-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .employees-list,
    .shift-cards-grid {
        grid-template-columns: 1fr;
    }

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

    .employees-grid {
        gap: 12px;
    }
}


/* Shift timers and action modal */
.shift-live-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.shift-live-chip {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.035);
    font-size: 12px;
}

.shift-live-chip strong {
    color: var(--text);
}

.shift-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

/* Employee edit modal */
.employee-card {
    cursor: pointer;
    transition: .18s ease;
}

.employee-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,138,0,.42);
}

.employee-edit-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.employee-edit-layout .employee-photo-picker {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.employee-edit-layout .employee-photo-preview {
    width: 112px;
    height: 112px;
    border-radius: 28px;
}

@media (max-width: 720px) {
    .employee-edit-layout {
        grid-template-columns: 1fr;
    }

    .shift-modal-actions {
        grid-template-columns: 1fr;
    }
}



/* Reports */
.reports-toolbar {
    display: grid;
    grid-template-columns: 280px auto;
    gap: 14px;
    align-items: end;
}

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

.report-summary-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

.report-summary-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
}

.report-summary-card span {
    color: var(--muted);
    font-size: 13px;
}

.reports-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.reports-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 0 12px 4px;
    white-space: nowrap;
}

.reports-table td {
    padding: 13px 12px;
    background: rgba(255,255,255,.045);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.reports-table td:first-child {
    border-left: 1px solid var(--line);
    border-radius: 16px 0 0 16px;
}

.reports-table td:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 16px 16px 0;
}

.report-employee-cell {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 220px;
}

.report-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.report-employee-cell strong {
    display: block;
}

.report-employee-cell span {
    color: var(--muted);
    font-size: 12px;
}

.report-warn {
    color: #ffb45f;
    font-weight: 800;
}

.report-ok {
    color: #74e0a3;
    font-weight: 800;
}

@media (max-width: 980px) {
    .reports-toolbar {
        grid-template-columns: 1fr;
    }

    .reports-toolbar .btn {
        width: 100%;
    }

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

    .reports-table-wrap {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .reports-table {
        min-width: 880px;
    }
}

@media (max-width: 560px) {
    .reports-summary-grid {
        grid-template-columns: 1fr;
    }
}


/* Shift compact redesign */
.shift-page-head {
    margin-bottom: 14px;
}

.shift-compact-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

.shift-fast-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.shift-fast-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.shift-fast-actions .btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
}

.shift-list-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.shift-compact-list {
    display: grid;
    gap: 8px;
}

.shift-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: .16s ease;
}

.shift-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255,138,0,.42);
    background: rgba(255,255,255,.06);
}

.shift-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.shift-card-main {
    min-width: 0;
}

.shift-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.shift-card-title h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shift-card-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shift-card-side {
    display: grid;
    justify-items: end;
    gap: 4px;
    min-width: 110px;
}

.shift-status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 11px;
    font-weight: 850;
}

.shift-status.work { background: rgba(40,209,124,.18); }
.shift-status.break { background: rgba(255,138,0,.18); }
.shift-status.done { background: rgba(255,255,255,.08); }
.shift-status.not-started { background: rgba(255,255,255,.055); color: var(--muted); }

.shift-timer-line {
    color: var(--muted);
    font-size: 12px;
}

.shift-timer-line strong {
    color: var(--text);
}

.shift-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.shift-modal-profile {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.shift-modal-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

@media (max-width: 1040px) {
    .shift-compact-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .shift-fast-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shift-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .shift-card-side {
        grid-column: 1 / -1;
        justify-items: stretch;
        grid-template-columns: auto 1fr;
        align-items: center;
        min-width: 0;
    }

    .shift-status {
        justify-self: start;
    }

    .shift-timer-line {
        justify-self: end;
    }

    .shift-modal-actions {
        grid-template-columns: 1fr;
    }
}



/* Customers */
.customer-picker {
    display: grid;
    gap: 12px;
}

.customer-picker-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
}

.customer-picker-tab {
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    color: var(--muted);
    background: transparent;
    font-weight: 800;
}

.customer-picker-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255,75,43,.95), rgba(255,138,0,.95));
}

.customer-search-results {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.customer-search-item,
.selected-customer-box,
.customer-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
}

.customer-search-item {
    width: 100%;
    padding: 12px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.customer-search-item:hover {
    border-color: rgba(255,138,0,.45);
    background: rgba(255,255,255,.065);
}

.selected-customer-box {
    padding: 12px;
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.selected-customer-box.d-none {
    display: none !important;
}

.customer-search-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.customer-search-title strong {
    display: block;
}

.customer-search-title span,
.customer-search-meta {
    color: var(--muted);
    font-size: 13px;
}

.customers-filter {
    max-width: 760px;
}

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

.customer-card {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.customer-card h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
}

.customer-card-main {
    display: grid;
    gap: 4px;
}

.customer-card-meta {
    display: grid;
    gap: 6px;
}

.customer-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.customer-chip {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.035);
    font-size: 12px;
}

.customer-stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.customer-stat strong {
    color: var(--text);
}

@media (max-width: 1080px) {
    .customers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .customer-picker-tabs,
    .customers-grid {
        grid-template-columns: 1fr;
    }
}


/* Beautiful menu page */
.menu-hero {
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 75, 43, .35), transparent 24rem),
        radial-gradient(circle at 86% 24%, rgba(255, 138, 0, .18), transparent 22rem),
        rgba(255,255,255,.045);
    overflow: hidden;
    position: relative;
}

.menu-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 270px;
    height: 270px;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    filter: blur(2px);
}

.menu-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.06);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.menu-hero h2 {
    margin: 0;
    font-size: clamp(34px, 6vw, 62px);
    font-weight: 950;
    letter-spacing: -.06em;
}

.menu-hero p {
    max-width: 620px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.menu-section {
    margin-top: 18px;
}

.menu-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.menu-section-head h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.menu-section-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

.smart-menu-card {
    min-height: 170px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.045);
    transition: .18s ease;
    position: relative;
    overflow: hidden;
}

.smart-menu-card::after {
    content: "";
    position: absolute;
    inset: auto -50px -70px auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255,255,255,.035);
}

.smart-menu-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,138,0,.48);
    background: rgba(255,255,255,.065);
}

.smart-menu-card.primary {
    background:
        linear-gradient(135deg, rgba(255,75,43,.22), rgba(255,138,0,.10)),
        rgba(255,255,255,.05);
}

.smart-menu-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--line);
    font-size: 22px;
}

.smart-menu-card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 20px;
    font-weight: 900;
}

.smart-menu-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.smart-menu-card em {
    width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

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

.future-menu-card {
    min-height: 120px;
    padding: 16px;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 22px;
    background: rgba(255,255,255,.028);
    opacity: .78;
}

.future-menu-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 900;
}

.future-menu-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 1120px) {
    .smart-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 680px) {
    .menu-hero {
        min-height: 155px;
        padding: 20px;
        border-radius: 24px;
    }

    .smart-menu-grid,
    .future-menu-grid {
        grid-template-columns: 1fr;
    }

    .smart-menu-card {
        min-height: 150px;
    }
}


.menu-logout-section {
    margin-top: 24px;
    padding-bottom: 96px;
}

.menu-logout-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.menu-logout-card h5 {
    margin: 0 0 4px;
}

.menu-logout-card p {
    margin: 0;
    color: var(--text-muted, #8b95a7);
    font-size: 14px;
}

@media (max-width: 576px) {
    .menu-logout-card {
        align-items: stretch;
        flex-direction: column;
    }

    .menu-logout-card .logout-btn {
        width: 100%;
    }
}
