/* =========================
   The Colliefields Backoffice
   Premium Unified Stylesheet
   ========================= */

:root {
    --bg: #f4f6fb;
    --bg-soft: #fafbfd;
    --panel: #ffffff;
    --panel-2: #fcfcfe;
    --text: #111827;
    --muted: #6b7280;
    --muted-2: #94a3b8;
    --line: #e8edf5;
    --line-soft: #f1f4f9;

    --gold-1: #7a5814;
    --gold-2: #b8891f;
    --gold-3: #d4af37;
    --gold-4: #f2d78c;

    --green: #16a34a;
    --green-soft: #dcfce7;
    --blue: #0284c7;
    --blue-soft: #e0f2fe;
    --amber: #b45309;
    --amber-soft: #fef3c7;
    --red: #dc2626;
    --red-soft: #fee2e2;

    --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10);

    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    transition: all .2s ease;
}

.bo-page {
    padding: 24px;
}

.bo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.bo-header h1 {
    margin: 0 0 6px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #121826;
    letter-spacing: -0.5px;
}

.bo-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    max-width: 760px;
}

.bo-panel {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.bo-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-1), var(--gold-2), var(--gold-3), var(--gold-4));
    opacity: .95;
}

.bo-panel + .bo-panel {
    margin-top: 20px;
}

.bo-grid {
    display: grid;
    gap: 20px;
}

.bo-grid-2 {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .95fr);
}

.panel-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #a57a16;
}

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

.panel-title-row h2,
.panel-title-row h3 {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.panel-title-row h2 {
    font-size: 26px;
}

.panel-title-row h3 {
    font-size: 20px;
}

/* Buttons */
.btn-primary,
button.btn-primary,
a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 25%, var(--gold-3) 58%, #a97312 100%);
    color: #fffdf7 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 14px 28px rgba(176, 129, 24, 0.22);
    cursor: pointer;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(176, 129, 24, 0.28);
}

.full-width {
    width: 100%;
}

.text-button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #475467;
    font-weight: 700;
    cursor: pointer;
}

.text-button:hover {
    color: #111827;
}

.text-button.danger {
    color: #c2410c;
}

.text-button.danger:hover {
    color: #9a3412;
}

/* Table */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.bo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.bo-table thead th {
    text-align: left;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b95a7;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.bo-table thead th:first-child {
    border-top-left-radius: 16px;
}

.bo-table thead th:last-child {
    border-top-right-radius: 16px;
}

.bo-table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
    color: #1f2937;
    font-size: 14px;
    background: #fff;
}

.bo-table tbody tr:hover td {
    background: #fffdf8;
}

.bo-table tbody tr:last-child td {
    border-bottom: 0;
}

.bo-table .actions {
    white-space: nowrap;
}

.bo-table td.actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bo-table td.actions a {
    color: #8a6317;
    font-weight: 700;
    text-decoration: none;
}

.bo-table td.actions a:hover {
    color: #5f430e;
}

/* Inputs / forms */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select,
.form-select,
.cashier-payment-form .form-control,
.inline-search-form input {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid #d9e0ea;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    color: #1f2937;
    font-size: 14px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
    outline: none;
    transition: all .2s ease;
}

input:focus,
textarea:focus,
select:focus,
.form-select:focus,
.inline-search-form input:focus {
    border-color: #c89b2c;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.14);
    background: #fffefb;
}

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

.form-group {
    margin-bottom: 16px;
}

.control-label,
label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #473a23;
}

.help-block,
.invalid-feedback {
    margin-top: 6px;
    font-size: 12px;
    color: #c2410c;
}

/* Search */
.search-panel {
    padding: 18px 20px;
}

.inline-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.inline-search-form input {
    flex: 1;
}

/* Empty state */
.empty-panel {
    text-align: center;
    padding: 42px 24px;
}

.empty-panel.compact {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #d9e0ea;
}

.empty-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff6dd, #f5e2a8);
    color: #8a6317;
    font-size: 30px;
    box-shadow: var(--shadow-sm);
}

.empty-panel h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #111827;
}

.empty-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

/* Flash */
.alert,
.bo-flash,
.flash-success,
.flash-error,
.flash-warning,
.flash-info {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
}

.alert-success,
.flash-success {
    background: #effdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-danger,
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning,
.flash-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.alert-info,
.flash-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Status pills */
.status-group,
.kitchen-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.status-pill,
.meta-pill,
.mode-chip,
.item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
}

.status-pill {
    background: #f3f4f6;
    color: #374151;
}

.status-pill.paid {
    background: var(--green-soft);
    color: #166534;
}

.status-pill.pending {
    background: var(--amber-soft);
    color: #92400e;
}

.status-pill.kitchen {
    background: var(--blue-soft);
    color: #075985;
}

.kitchen-status-pill.kitchen-new {
    background: #e0f2fe;
    color: #075985;
}

.kitchen-status-pill.kitchen-in_preparation {
    background: #fef3c7;
    color: #92400e;
}

.kitchen-status-pill.kitchen-ready {
    background: #dcfce7;
    color: #166534;
}

.kitchen-status-pill.kitchen-completed {
    background: #ede9fe;
    color: #5b21b6;
}

.meta-pill {
    background: #f8fafc;
    color: #475467;
    border: 1px solid #e5e7eb;
}

.item-count {
    background: #fff7dd;
    color: #8a6317;
    border: 1px solid #f3df9c;
}

/* Summary cards */
.cashier-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.summary-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.summary-card span {
    display: block;
    font-size: 12px;
    color: #8b95a7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 800;
}

.summary-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.35;
    color: #111827;
}

/* Detail list */
.detail-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.detail-list > div {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--line-soft);
}

.detail-list span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #8b95a7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.detail-list strong {
    color: #111827;
    font-size: 14px;
}

.note-block,
.payment-note,
.item-note-box,
.kitchen-note,
.kitchen-item-note {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffaf0 0%, #fff6e6 100%);
    border: 1px solid #f3dfb0;
    margin-bottom: 18px;
}

.note-block strong,
.payment-note strong,
.item-note-box strong,
.kitchen-note strong,
.kitchen-item-note strong {
    display: block;
    margin-bottom: 8px;
    color: #7c5b12;
    font-size: 13px;
}

.note-block p,
.payment-note p,
.item-note-box p,
.kitchen-note p,
.kitchen-item-note p {
    margin: 0;
    color: #5b6475;
    line-height: 1.8;
    font-size: 14px;
}

.section-divider {
    height: 1px;
    margin: 18px 0 20px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* Order items */
.item-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.item-section-head h3 {
    margin: 0;
    font-size: 22px;
    color: #111827;
}

.order-line-list,
.kitchen-items {
    display: grid;
    gap: 16px;
}

.order-line,
.premium-kitchen-item {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.order-line-top,
.kitchen-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.order-line strong,
.kitchen-item strong {
    font-size: 16px;
    color: #111827;
}

.order-line-meta,
.order-line-sub,
.kitchen-item-qty,
.kitchen-item-sub,
.activity-sub {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.line-total {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 13px;
}

.modifier-list,
.kitchen-modifier-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.modifier-pill,
.kitchen-modifier-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e7edf5;
    color: #475467;
    font-size: 13px;
    line-height: 1.4;
}

.modifier-price,
.modifier-delta {
    font-weight: 800;
    color: #0f766e;
}

.empty-modifier {
    margin-top: 10px;
    font-style: italic;
    color: #94a3b8;
}

/* Cashier side */
.cashier-layout {
    align-items: start;
}

.assignment-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.mode-chip {
    background: #ede9fe;
    color: #5b21b6;
}

.mode-chip.takeaway {
    background: #e0f2fe;
    color: #075985;
}

.mode-chip.active {
    background: #fff7dd;
    color: #8a6317;
}

.mode-hint {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
}

.paid-state-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #effdf5 0%, #ecfdf3 100%);
    border: 1px solid #bbf7d0;
}

.paid-check {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: white;
    font-size: 24px;
    font-weight: 800;
}

.paid-state-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #166534;
}

.paid-state-card p {
    margin: 0;
    color: #166534;
    opacity: .85;
}

.btn-confirm-paid,
.kitchen-update-btn {
    margin-top: 10px;
}

/* Kitchen */
.kitchen-grid,
.premium-kitchen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.kitchen-card,
.premium-kitchen-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.kitchen-card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.kitchen-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #a57a16;
}

.kitchen-card h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.kitchen-action-box {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.kitchen-action-head h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #111827;
}

/* Utility */
.premium-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #9ca3af 50%),
        linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

/* Responsive */
@media (max-width: 1200px) {
    .kitchen-grid,
    .premium-kitchen-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 991px) {
    .bo-page {
        padding: 18px;
    }

    .bo-grid-2 {
        grid-template-columns: 1fr;
    }

    .bo-header {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .kitchen-grid,
    .premium-kitchen-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bo-page {
        padding: 14px;
    }

    .bo-header h1 {
        font-size: 26px;
    }

    .bo-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .cashier-summary-grid,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .panel-title-row,
    .item-section-head,
    .order-line-top,
    .kitchen-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .bo-table {
        min-width: 680px;
    }
}
.pending-orders-panel {
    position: sticky;
    top: 20px;
}

.pending-order-list {
    max-height: calc(100vh - 240px);
    overflow: auto;
    padding-right: 4px;
}

.pending-order-card {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 14px;
    background: #1f2430;
    transition: all .2s ease;
}

.pending-order-card:hover {
    border-color: rgba(212, 175, 55, .45);
    transform: translateY(-1px);
}

.pending-order-card.active {
    border-color: rgba(212, 175, 55, .65);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, .18) inset;
    background: linear-gradient(180deg, #242a37 0%, #1b202a 100%);
}

@media (max-width: 1199px) {
    .cashier-master-layout {
        grid-template-columns: 1fr !important;
    }

    .pending-orders-panel {
        position: static;
    }

    .pending-order-list {
        max-height: none;
    }
}

/* =========================
   Fixed screen layout for premium index/table pages
   ========================= */

.bo-page.fixed-screen {
    height: calc(100vh - 88px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bo-page.fixed-screen > .bo-header {
    flex: 0 0 auto;
}

.bo-page.fixed-screen > .bo-panel,
.bo-page.fixed-screen > .bo-grid,
.bo-page.fixed-screen > .bo-grid-2 {
    flex: 1 1 auto;
    min-height: 0;
}

.bo-page.fixed-screen .bo-panel.fixed-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bo-page.fixed-screen .panel-title-row,
.bo-page.fixed-screen .search-panel,
.bo-page.fixed-screen .status-group,
.bo-page.fixed-screen .cashier-summary-grid,
.bo-page.fixed-screen .detail-list,
.bo-page.fixed-screen .item-section-head {
    flex: 0 0 auto;
}

.bo-page.fixed-screen .table-wrap.scroll-table {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.bo-page.fixed-screen .table-wrap.scroll-table .bo-table {
    margin-bottom: 0;
}

.bo-page.fixed-screen .table-wrap.scroll-table .bo-table thead th {
    position: sticky;
    top: 0;
    z-index: 8;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 var(--line);
}

.bo-page.fixed-screen .table-wrap.scroll-table .bo-table tbody tr:last-child td {
    border-bottom: 0;
}

/* two-column fixed layouts, useful for cashier/detail pages */
.bo-page.fixed-screen .bo-grid-2.fixed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .95fr);
    gap: 20px;
    min-height: 0;
}

.bo-page.fixed-screen .fixed-column {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.bo-page.fixed-screen .fixed-column > .bo-panel {
    flex: 1 1 auto;
    min-height: 0;
}

.bo-page.fixed-screen .fixed-column > .bo-panel.fixed-panel {
    height: 100%;
}

/* inner scroll area for cards/lists */
.scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* nicer scrollbar */
.table-wrap.scroll-table::-webkit-scrollbar,
.scroll-area::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrap.scroll-table::-webkit-scrollbar-thumb,
.scroll-area::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.table-wrap.scroll-table::-webkit-scrollbar-thumb:hover,
.scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

/* responsive fallback */
@media (max-width: 991px) {
    .bo-page.fixed-screen {
        height: auto;
        overflow: visible;
    }

    .bo-page.fixed-screen > .bo-panel,
    .bo-page.fixed-screen > .bo-grid,
    .bo-page.fixed-screen > .bo-grid-2,
    .bo-page.fixed-screen .bo-panel.fixed-panel,
    .bo-page.fixed-screen .scroll-area {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .bo-page.fixed-screen .table-wrap.scroll-table {
        overflow: auto;
        max-height: none;
    }

    .bo-page.fixed-screen .bo-grid-2.fixed-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Cashier premium refinements
   ========================= */

.cashier-master-layout {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 20px;
}

.pending-orders-panel {
    position: static;
}

.pending-order-list {
    padding-right: 4px;
}

.pending-order-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
}

.pending-order-card:hover {
    border-color: #e5c86b;
    background: linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.pending-order-card.active {
    border-color: rgba(212, 175, 55, .55);
    background: linear-gradient(180deg, #fffaf0 0%, #fff6e6 100%);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, .12) inset,
        0 18px 34px rgba(176, 129, 24, .12);
}

.pending-order-card .summary-card {
    padding: 12px;
    border-radius: 14px;
}

.pending-order-card .summary-card strong {
    font-size: 14px;
}

.cashier-detail-wrap,
.order-panel,
.payment-panel {
    min-height: 0;
}

.payment-panel .btn-confirm-paid {
    margin-top: 8px;
}

.payment-panel .form-group:last-of-type {
    margin-bottom: 10px;
}

.btn-secondary,
a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #475467 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
a.btn-secondary:hover {
    color: #111827 !important;
    border-color: #d8dee8;
    background: #fbfcff;
}

@media (max-width: 1199px) {
    .cashier-master-layout {
        grid-template-columns: 1fr;
    }

    .bo-page.fixed-screen .cashier-master-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .cashier-master-layout {
        grid-template-columns: 1fr;
    }

    .bo-page.fixed-screen .cashier-master-layout .bo-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================
   Cashier layout rebalance
   ========================= */

.cashier-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
}

.cashier-main {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cashier-detail-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 360px;
    gap: 20px;
}

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

.cashier-card-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.cashier-search-panel .inline-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

.pending-orders-panel,
.order-panel,
.payment-panel {
    min-height: 0;
}

.pending-order-list {
    min-height: 0;
    padding-right: 4px;
}

.pending-order-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
}

.pending-order-card:hover {
    border-color: #e5c86b;
    background: linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.pending-order-card.active {
    border-color: rgba(212, 175, 55, .55);
    background: linear-gradient(180deg, #fffaf0 0%, #fff6e6 100%);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, .12) inset,
        0 18px 34px rgba(176, 129, 24, .12);
}

.pending-order-card .summary-card {
    padding: 12px;
    border-radius: 14px;
}

.pending-order-card .summary-card strong {
    font-size: 14px;
}

.order-panel .summary-card strong {
    font-size: 16px;
    line-height: 1.45;
    word-break: break-word;
}

.payment-panel .btn-confirm-paid {
    margin-top: 8px;
}

.payment-panel .form-group:last-of-type {
    margin-bottom: 10px;
}

.btn-secondary,
a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #475467 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
a.btn-secondary:hover {
    color: #111827 !important;
    border-color: #d8dee8;
    background: #fbfcff;
}

@media (max-width: 1400px) {
    .cashier-detail-grid {
        grid-template-columns: minmax(0, 1.45fr) 330px;
    }
}

@media (max-width: 1199px) {
    .cashier-shell {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .cashier-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .cashier-shell {
        grid-template-columns: 1fr;
    }

    .cashier-search-panel .inline-search-form {
        grid-template-columns: 1fr;
    }

    .cashier-order-overview-grid,
    .cashier-card-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Kitchen fullscreen premium board
   ========================= */

.kitchen-screen {
    min-height: calc(100vh - 76px);
}

.kitchen-hero-panel {
    margin-bottom: 20px;
}

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

.kitchen-board-card {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 210px);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.kitchen-board-card .kitchen-card-top h2 {
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
}

.kitchen-board-card .status-pill {
    font-size: 13px;
    padding: 8px 14px;
}

.kitchen-board-card .meta-pill {
    font-size: 13px;
    min-height: 36px;
    padding: 8px 14px;
}

.kitchen-items-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    margin-top: 14px;
}

.kitchen-board-card .premium-kitchen-item {
    border-radius: 18px;
    padding: 16px;
}

.kitchen-board-card .premium-kitchen-item strong {
    font-size: 20px;
    line-height: 1.25;
}

.kitchen-board-card .kitchen-item-qty,
.kitchen-board-card .kitchen-item-sub,
.kitchen-board-card .kitchen-note p,
.kitchen-board-card .kitchen-item-note p,
.kitchen-board-card .modifier-pill {
    font-size: 14px;
}

.kitchen-board-card .kitchen-action-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.kitchen-board-card .kitchen-action-head h3 {
    font-size: 20px;
}

.kitchen-board-card .form-select,
.kitchen-board-card select {
    min-height: 54px;
    font-size: 15px;
}

.kitchen-board-card .kitchen-update-btn {
    min-height: 52px;
    font-size: 15px;
}

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

@media (max-width: 991px) {
    .kitchen-screen {
        min-height: auto;
    }

    .kitchen-board-grid {
        grid-template-columns: 1fr;
    }

    .kitchen-board-card {
        min-height: auto;
    }

    .kitchen-items-scroll {
        overflow: visible;
    }
}

/* =========================
   Kitchen super operational board
   ========================= */

.layout-shell.layout-kitchen,
.layout-shell.layout-kitchen .kitchen-content-wrap {
    min-height: 100vh;
}

.kds-screen {
    min-height: calc(100vh - 70px);
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,0.06), transparent 18%),
        linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
}

.kds-topbar {
    flex: 0 0 auto;
}

.kds-topbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.kds-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #a57a16;
    margin-bottom: 6px;
}

.kds-topbar-main h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    color: #111827;
}

.kds-topbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kds-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff7dd;
    border: 1px solid #f3df9c;
    color: #8a6317;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.kds-chip strong {
    color: #5f430e;
}

.kds-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

.kds-board {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.kds-lane {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.kds-lane-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,251,253,0.98) 100%);
}

.kds-lane-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
}

.kds-lane-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

.kds-lane-badges {
    font-size: 12px;
    font-weight: 800;
    color: #8a6317;
}

.kds-lane-viewport {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
}

.kds-order-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e9edf5;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.kds-order-card:last-child {
    margin-bottom: 0;
}

.kds-order-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.kds-order-no {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.kds-order-meta-line {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.kds-order-time {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.kds-order-note {
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf0 0%, #fff6e6 100%);
    border: 1px solid #f3dfb0;
}

.kds-order-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #7c5b12;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kds-order-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5b6475;
}

.kds-items {
    display: grid;
    gap: 8px;
}

.kds-item-row {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.kds-item-main {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
}

.kds-item-qty {
    color: #8a6317;
    min-width: 28px;
}

.kds-item-name {
    flex: 1;
}

.kds-modifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.kds-modifier-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.kds-item-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: #b45309;
    font-style: italic;
}

.kds-action-row {
    margin-top: auto;
    padding-top: 4px;
}

.kds-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 10px;
    align-items: center;
}

.kds-select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #d9e0ea;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    outline: none;
}

.kds-select:focus {
    border-color: #c89b2c;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.14);
}

.kds-action-btn {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 25%, var(--gold-3) 58%, #a97312 100%);
    color: #fffdf7;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(176, 129, 24, 0.18);
}

.kds-empty-card {
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #d9e0ea;
    color: #6b7280;
}

.kds-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #ecfdf3;
    color: #16a34a;
    font-size: 28px;
    font-weight: 900;
}

.kds-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.kds-empty-subtitle {
    margin-top: 4px;
    font-size: 13px;
}

.kds-completed-strip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.kds-completed-title {
    font-size: 13px;
    font-weight: 800;
    color: #5b21b6;
    white-space: nowrap;
}

.kds-completed-list {
    display: flex;
    gap: 8px;
    overflow: hidden;
    flex-wrap: nowrap;
}

.kds-completed-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.kds-lane.lane-new .kds-lane-head {
    border-top: 4px solid #38bdf8;
}

.kds-lane.lane-in_preparation .kds-lane-head {
    border-top: 4px solid #f59e0b;
}

.kds-lane.lane-ready .kds-lane-head {
    border-top: 4px solid #22c55e;
}

@media (max-width: 1400px) {
    .kds-board {
        gap: 12px;
    }

    .kds-order-no {
        font-size: 20px;
    }
}

@media (max-width: 1199px) {
    .kds-board {
        grid-template-columns: 1fr;
    }

    .kds-lane-viewport {
        overflow: auto;
    }
}

@media (max-width: 768px) {
    .kds-screen {
        padding: 12px;
    }

    .kds-topbar-main {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* =========================
   Kitchen fixed-screen lanes
   ========================= */

html,
body {
    height: 100%;
}

.layout-shell.layout-kitchen {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.layout-shell.layout-kitchen .kitchen-shell-full {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.layout-shell.layout-kitchen .kitchen-content-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* main kitchen screen must fit one monitor */
.kds-screen {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,0.06), transparent 18%),
        linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
}

.kds-topbar {
    flex: 0 0 auto;
}

.kds-board {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    overflow: hidden;
}

.kds-lane {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.kds-lane-head {
    flex: 0 0 auto;
}

.kds-lane-viewport {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* cards remain vertical inside each lane */
.kds-order-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e9edf5;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.kds-order-card:last-child {
    margin-bottom: 0;
}

/* keep completed strip compact */
.kds-completed-strip {
    flex: 0 0 auto;
}

/* better internal scrollbar */
.kds-lane-viewport::-webkit-scrollbar {
    width: 8px;
}

.kds-lane-viewport::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.kds-lane-viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

/* if you still want auto-rotation, keep viewport scroll hidden from page */
@media (max-width: 1199px) {
    .kds-board {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .kds-lane {
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .layout-shell.layout-kitchen,
    .layout-shell.layout-kitchen .kitchen-shell-full,
    .layout-shell.layout-kitchen .kitchen-content-wrap,
    .kds-screen {
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .kds-board {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .kds-lane {
        height: auto;
    }

    .kds-lane-viewport {
        overflow: visible;
        max-height: none;
    }
}

/* Kitchen quick action buttons */
.quick-action-form {
    display: block;
}

.quick-action-form .kds-action-btn {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
    letter-spacing: .2px;
}

.kds-action-btn.is-start {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.20);
}

.kds-action-btn.is-ready {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.20);
}

.kds-action-btn.is-complete {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.20);
}

.kds-action-btn:hover {
    transform: translateY(-1px);
}
/* Kitchen card color by status */
.kds-order-card.status-new {
    background: linear-gradient(180deg, #f8fcff 0%, #eef8ff 100%);
    border-color: #cfe7fb;
}

.kds-order-card.status-new .kds-order-no {
    color: #0f4c81;
}

.kds-order-card.status-in_preparation {
    background: linear-gradient(180deg, #fffaf2 0%, #fff4df 100%);
    border-color: #f3ddb0;
}

.kds-order-card.status-in_preparation .kds-order-no {
    color: #9a5a00;
}

.kds-order-card.status-ready {
    background: linear-gradient(180deg, #f4fff7 0%, #e9fbee 100%);
    border-color: #c8efd2;
}

.kds-order-card.status-ready .kds-order-no {
    color: #166534;
}

/* quick button without confirm */
.quick-action-form {
    display: block;
}

.quick-action-form .kds-action-btn {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
    letter-spacing: .2px;
}

.kds-action-btn.is-start {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.20);
}

.kds-action-btn.is-ready {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.20);
}

.kds-action-btn.is-complete {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.20);
}

.kds-action-btn:hover {
    transform: translateY(-1px);
}

/* =========================
   KITCHEN MOBILE
========================= */

.kds-mobile-screen {
    min-height: 100vh;
    background: #0f172a;
    color: #e5e7eb;
    padding: 14px;
}

.kds-mobile-topbar {
    background: linear-gradient(135deg, #111827, #1f2937);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    margin-bottom: 14px;
}

.kds-mobile-kicker {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.kds-mobile-topbar h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #fff;
}

.kds-mobile-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.kds-mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    font-size: 12px;
}

.kds-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0f172a;
    padding-bottom: 8px;
}

.kds-mobile-tab {
    border: 1px solid rgba(255,255,255,0.08);
    background: #111827;
    color: #cbd5e1;
    border-radius: 16px;
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kds-mobile-tab.is-active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}

.kds-mobile-tab-label {
    font-size: 12px;
    line-height: 1.2;
}

.kds-mobile-tab-count {
    font-size: 16px;
    line-height: 1;
}

.kds-mobile-panel {
    display: none;
}

.kds-mobile-panel.is-active {
    display: block;
}

.kds-mobile-empty {
    border-radius: 20px;
    background: #111827;
    border: 1px dashed rgba(255,255,255,0.12);
    padding: 30px 18px;
    text-align: center;
    color: #94a3b8;
}

.kds-mobile-empty-icon {
    font-size: 26px;
    margin-bottom: 8px;
    color: #22c55e;
}

.kds-mobile-empty-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

.kds-mobile-empty-subtitle {
    font-size: 13px;
}

.kds-mobile-card {
    background: linear-gradient(180deg, #111827, #0b1220);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.22);
    margin-bottom: 12px;
}

.kds-mobile-card.status-new {
    border-left: 4px solid #f59e0b;
}

.kds-mobile-card.status-in_preparation {
    border-left: 4px solid #3b82f6;
}

.kds-mobile-card.status-ready {
    border-left: 4px solid #10b981;
}

.kds-mobile-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.kds-mobile-order-no {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.kds-mobile-order-meta {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 4px;
}

.kds-mobile-order-time {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
}

.kds-mobile-note-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.kds-mobile-note-box strong {
    display: block;
    color: #fcd34d;
    margin-bottom: 4px;
    font-size: 12px;
}

.kds-mobile-note-box p {
    margin: 0;
    color: #fef3c7;
    font-size: 13px;
}

.kds-mobile-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kds-mobile-item {
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 10px 12px;
}

.kds-mobile-item-main {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #fff;
    font-weight: 700;
}

.kds-mobile-item-qty {
    min-width: 32px;
    color: #fbbf24;
}

.kds-mobile-item-name {
    flex: 1;
}

.kds-mobile-modifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.kds-mobile-modifier-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
    padding: 5px 9px;
    font-size: 11px;
    line-height: 1.2;
}

.kds-mobile-item-note {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 12px;
    border-left: 2px solid rgba(255,255,255,0.16);
    padding-left: 8px;
}

.kds-mobile-action-row {
    margin-top: 14px;
}

.kds-mobile-form {
    margin: 0;
}

.kds-mobile-action-btn {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.kds-mobile-action-btn.is-start {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.kds-mobile-action-btn.is-ready {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.kds-mobile-action-btn.is-complete {
    background: linear-gradient(135deg, #10b981, #059669);
}

.kds-mobile-flash {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
}

.kds-mobile-flash.is-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

.kds-mobile-flash.is-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
}