@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
    --app-bg: #f5f7fb;
    --app-bg-strong: #e9eef6;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-tint: #eef8f6;
    --ink: #172033;
    --ink-soft: #4a5568;
    --muted: #718096;
    --line: #dce3ee;
    --brand: #0f766e;
    --brand-strong: #115e59;
    --brand-soft: #d9f3ef;
    --coral: #e85d4f;
    --coral-soft: #fde8e6;
    --gold: #b7791f;
    --gold-soft: #fff3d6;
    --blue: #2563eb;
    --blue-soft: #e0ecff;
    --success: #15803d;
    --warning: #b7791f;
    --danger: #c24135;
    --shadow: 0 14px 38px rgba(23, 32, 51, 0.08);
    --shadow-soft: 0 8px 22px rgba(23, 32, 51, 0.06);
    --radius: 8px;
}

.active-order-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(0, 167, 125, 0.24);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(0, 167, 125, 0.12), rgba(58, 111, 248, 0.08)),
        #ffffff;
    box-shadow: var(--shadow-card, var(--shadow-soft));
}

.active-order-strip > div {
    display: grid;
    gap: 0.15rem;
}

.active-order-label {
    color: var(--brand-deep, var(--brand-strong));
    font-size: 0.78rem;
    font-weight: 900;
}

.existing-order-box {
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.existing-order-list {
    display: grid;
    gap: 0.45rem;
}

.existing-order-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.25rem;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
    font-size: 0.9rem;
}

.existing-order-line:last-child {
    border-bottom: 0;
}

.kitchen-status {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.55rem;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 900;
}

.kitchen-status-new {
    color: #7a201c;
    background: #ffe2df;
    border: 1px solid #ffc7c1;
}

.kitchen-status-preparing {
    color: #6e5500;
    background: var(--gold-soft);
    border: 1px solid #f2dc74;
}

.kitchen-status-ready {
    color: #0f5138;
    background: #dff8ea;
    border: 1px solid #b7ebcf;
}

.kitchen-status-served {
    color: #07515f;
    background: var(--cyan-soft, var(--blue-soft));
    border: 1px solid #bdebf2;
}

.kitchen-status-cancelled {
    color: #7f1d1d;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.order-cancelled-alert {
    border-color: #f8d36d;
    background: #fff7df;
    color: #4f3710;
}

.order-item-cancelled {
    background: #fff7f7;
}

.order-item-cancelled strong:first-child {
    color: #7f1d1d;
    text-decoration: line-through;
}

.kitchen-board {
    display: grid;
    gap: 1rem;
}

.kitchen-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(17, 24, 21, 0.98), rgba(24, 38, 34, 0.96)),
        #111715;
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(17, 24, 21, 0.16);
}

.kitchen-topbar .page-title {
    color: #ffffff;
}

.kitchen-clock {
    min-width: 128px;
    display: grid;
    justify-items: end;
    gap: 0.15rem;
}

.kitchen-clock strong {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 900;
}

.kitchen-clock small {
    color: rgba(255, 255, 255, 0.72);
}

.kitchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

.kitchen-order-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-card, var(--shadow-soft));
}

.kitchen-order-card.has-new {
    border-color: rgba(255, 90, 79, 0.42);
    box-shadow: 0 20px 46px rgba(255, 90, 79, 0.14);
}

.kitchen-card-head {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    color: #ffffff;
    background:
        linear-gradient(135deg, #172033, #1f3a35 62%, #4f3422),
        #172033;
}

.kitchen-card-head > div {
    display: grid;
    gap: 0.15rem;
}

.kitchen-card-head strong {
    font-size: 1.1rem;
}

.kitchen-card-head small {
    color: rgba(255, 255, 255, 0.72);
}

.kitchen-table {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.kitchen-new-count,
.kitchen-added {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--coral);
    font-weight: 900;
}

.kitchen-items {
    display: grid;
}

.kitchen-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.kitchen-item:last-child {
    border-bottom: 0;
}

.kitchen-item.is-new {
    background:
        linear-gradient(90deg, rgba(255, 90, 79, 0.12), transparent 48%),
        #ffffff;
}

.kitchen-item-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.kitchen-item-title strong {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 900;
}

.kitchen-qty {
    min-width: 48px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--brand);
    font-size: 1.05rem;
    font-weight: 900;
}

.kitchen-note {
    margin-top: 0.55rem;
    padding: 0.55rem;
    border-radius: var(--radius);
    color: #6e5500;
    background: var(--gold-soft);
    font-weight: 800;
}

.kitchen-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.kitchen-options span {
    padding: 0.25rem 0.45rem;
    border-radius: var(--radius);
    color: var(--ink-soft);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 800;
}

.kitchen-item-side {
    min-width: 132px;
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 0.45rem;
}

.kitchen-actions {
    display: flex;
    gap: 0.4rem;
}

.kitchen-toast {
    position: fixed;
    top: 86px;
    inset-inline-end: 24px;
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--coral), var(--gold));
    box-shadow: 0 20px 42px rgba(17, 24, 21, 0.22);
    font-weight: 900;
}

.kitchen-empty {
    min-height: 260px;
    display: grid;
    place-items: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 1px dashed var(--line-strong, var(--line));
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.74);
    text-align: center;
}

.kitchen-empty i {
    color: var(--success);
    font-size: 2.5rem;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(232, 93, 79, 0.05) 42%, rgba(37, 99, 235, 0.06)),
        var(--app-bg);
    color: var(--ink);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(23, 32, 51, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 32, 51, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-strong);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 70px;
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.05);
    backdrop-filter: blur(16px);
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
    color: var(--ink);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .show > .nav-link {
    color: var(--brand);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: #111827;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
}

.brand-subtitle {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.navbar-toggler {
    border-color: var(--line);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.18);
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: var(--ink);
    border-radius: 6px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--surface-tint);
    color: var(--brand-strong);
}

.sidebar {
    position: sticky;
    top: 70px;
    align-self: flex-start;
    min-height: calc(100vh - 70px);
    padding: 18px 12px;
    background: #172033;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 12px 0 26px rgba(23, 32, 51, 0.08);
}

.sidebar .nav {
    gap: 0.25rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 42px;
    padding: 0.7rem 0.8rem;
    color: rgba(255, 255, 255, 0.76);
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 700;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.sidebar .nav-link i {
    width: 1.15rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(15, 118, 110, 0.32);
    border-color: rgba(255, 255, 255, 0.12);
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: #ffffff;
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.14);
}

.sidebar .text-muted {
    color: rgba(255, 255, 255, 0.48) !important;
}

.main-content {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.main-content > .d-flex.justify-content-between,
.main-content > .d-flex.align-items-center,
.main-content > .row.mb-4:first-child {
    margin-bottom: 1rem !important;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
    color: var(--ink);
    font-weight: 900;
    letter-spacing: 0;
}

.main-content > .d-flex h2,
.main-content > .row.mb-4:first-child h2,
.main-content > .row.mb-4:first-child h4 {
    margin: 0;
    font-size: 1.45rem;
}

.page-shell {
    display: grid;
    gap: 1rem;
}

.page-head,
.dashboard-hero {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
}

.dashboard-hero {
    margin-bottom: 1rem;
    color: var(--ink);
    overflow: hidden;
}

.dashboard-hero::before,
.dashboard-hero::after {
    display: none;
}

.page-kicker,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0;
}

.page-title,
.dashboard-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: 1.65rem;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: 0;
}

.page-subtitle,
.dashboard-hero p {
    max-width: 760px;
    margin: 0.55rem 0 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.section-title {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}

.card-header,
.card-footer {
    background: transparent;
    border-color: var(--line);
}

.card-header {
    padding: 1rem 1.1rem;
}

.card-header.bg-light,
.card-header.bg-primary,
.card-header.bg-warning,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-danger,
.card-header.bg-secondary {
    color: var(--ink) !important;
    background: var(--surface-soft) !important;
    border-bottom: 1px solid var(--line);
}

.card-header.bg-primary.text-white,
.card-header.bg-success.text-white,
.card-header.bg-info.text-white,
.card-header.bg-danger.text-white,
.card-header.bg-secondary.text-white {
    color: var(--ink) !important;
}

.card-body {
    padding: 1.1rem;
}

.card-title,
.card h5 {
    color: var(--ink);
    font-weight: 850;
    letter-spacing: 0;
}

.summary-card,
.metric-card {
    min-height: 128px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.summary-card:hover,
.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.26);
    box-shadow: var(--shadow);
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--brand);
}

.metric-card.metric-coral::before {
    background: var(--coral);
}

.metric-card.metric-gold::before {
    background: var(--gold);
}

.metric-card.metric-blue::before {
    background: var(--blue);
}

.metric-label {
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
}

.metric-value,
.summary-card h2,
.summary-card h3,
.metric-card h2,
.metric-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-size: 1rem;
    box-shadow: none;
}

.metric-icon.coral {
    background: var(--coral-soft);
    color: var(--danger);
}

.metric-icon.gold {
    background: var(--gold-soft);
    color: var(--gold);
}

.metric-icon.blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.hero-panel,
.hero-stat,
.soft-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--ink);
}

.hero-panel {
    padding: 1rem;
    min-height: 100%;
}

.hero-stat,
.soft-panel {
    padding: 0.85rem;
}

.hero-stat p,
.soft-panel p {
    color: var(--muted);
    font-weight: 700;
}

.hero-stat h3,
.soft-panel h3 {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
    letter-spacing: 0;
}

.quick-actions .btn {
    min-width: 138px;
}

.btn {
    border-radius: var(--radius);
    font-weight: 800;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.btn-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.38rem 0.62rem;
}

.btn-primary,
.hero-actions .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-warning {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
}

.btn-info {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-secondary {
    color: var(--ink);
    background: #e8edf5;
    border-color: #d5deeb;
}

.btn-secondary:hover {
    color: var(--ink);
    background: #dce5f2;
    border-color: #cbd7e8;
}

.btn-outline-light,
.btn-outline-primary {
    color: var(--brand);
    border-color: rgba(15, 118, 110, 0.34);
    background: rgba(255, 255, 255, 0.72);
}

.btn-outline-light:hover,
.btn-outline-primary:hover {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.badge {
    border-radius: var(--radius);
    padding: 0.42rem 0.62rem;
    font-weight: 800;
    letter-spacing: 0;
}

.summary-badge {
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
}

.badge-soft,
.status-pill {
    background: var(--brand-soft);
    color: var(--brand-strong);
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.bg-primary {
    background-color: var(--brand) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--gold) !important;
}

.bg-info {
    background-color: var(--blue) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.text-muted {
    color: var(--muted) !important;
}

.table {
    margin-bottom: 0;
    color: var(--ink);
    vertical-align: middle;
    --bs-table-hover-bg: rgba(15, 118, 110, 0.045);
}

.table > :not(caption) > * > * {
    padding: 0.82rem 1rem;
    color: var(--ink);
    background: transparent;
    border-bottom-color: var(--line);
}

.table thead th {
    color: var(--ink-soft);
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 850;
}

.table tbody tr:hover {
    background: rgba(15, 118, 110, 0.045);
}

.table-responsive {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.card-body > .table,
.card-body > .table-responsive {
    margin: -1px;
    width: calc(100% + 2px);
}

td .btn,
.text-end .btn,
.table .btn {
    min-width: 34px;
}

.list-group-item {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background: var(--surface-tint);
    color: var(--ink);
}

.order-card {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

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

.order-card:hover {
    background: var(--surface-tint);
}

.alert {
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.alert-success {
    color: #14532d;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.alert-danger {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: #fecaca;
}

.alert-warning {
    color: #78350f;
    background: var(--gold-soft);
    border-color: #fde68a;
}

.alert-info {
    color: #1e3a8a;
    background: var(--blue-soft);
    border-color: #bfdbfe;
}

.form-label {
    color: var(--ink-soft);
    font-weight: 800;
}

form .row {
    row-gap: 0.8rem;
}

.form-control,
.form-select {
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
}

.form-check-input {
    border-color: #b9c5d6;
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.form-switch .form-check-input {
    width: 2.5rem;
}

.progress {
    height: 10px;
    background: #e8edf5;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.8rem;
}

.table-tile {
    display: grid;
    gap: 0.45rem;
    min-height: 118px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.table-tile:hover {
    transform: translateY(-2px);
    color: var(--ink);
    border-color: rgba(15, 118, 110, 0.34);
    box-shadow: var(--shadow);
}

.table-tile .tile-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.table-tile.is-empty .tile-icon {
    color: var(--success);
    background: #dcfce7;
}

.table-tile.is-occupied .tile-icon {
    color: var(--gold);
    background: var(--gold-soft);
}

.table-tile strong {
    font-size: 1.05rem;
}

.table-tile small {
    color: var(--muted);
    font-weight: 800;
}

.category-btn {
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-weight: 850;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.category-btn:hover,
.category-btn.active {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.category-btn .badge {
    background: rgba(255, 255, 255, 0.22) !important;
    color: inherit !important;
}

.order-category-section {
    display: none;
}

.order-category-section.active {
    display: block;
}

.menu-item-card {
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.menu-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.34);
    box-shadow: var(--shadow);
}

.menu-item-card.selected {
    border-color: var(--brand);
    background: var(--surface-tint);
}

.menu-item-card img,
.item-image-placeholder {
    width: 100%;
    height: 136px;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.item-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    background: linear-gradient(135deg, var(--surface-tint), var(--blue-soft));
    font-size: 1.9rem;
}

.qty-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--coral);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(232, 93, 79, 0.25);
}

.quick-add-button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.2);
    transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.quick-add-button:hover,
.quick-add-button:focus {
    background: var(--brand-strong);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.24);
}

.order-sidebar {
    position: sticky;
    top: 88px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.order-item-row:last-child {
    border-bottom: 0;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 900;
    cursor: pointer;
}

.qty-btn-minus {
    color: var(--danger);
    background: var(--coral-soft);
}

.qty-btn-plus {
    color: var(--success);
    background: #dcfce7;
}

.status-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 0.4rem;
}

.status-step {
    min-width: 90px;
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.status-circle {
    width: 46px;
    height: 46px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface);
}

.status-circle.done {
    color: #ffffff;
    border-color: var(--success);
    background: var(--success);
}

.status-circle.current {
    color: #ffffff;
    border-color: var(--brand);
    background: var(--brand);
    animation: pulse 1.5s infinite;
}

.status-line {
    flex: 1;
    height: 3px;
    margin-top: -22px;
    background: var(--line);
}

.status-line.done {
    background: var(--success);
}

.status-label {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.status-label.current {
    color: var(--brand-strong);
    font-weight: 900;
}

.order-ready-banner {
    padding: 1.25rem;
    border: 1px solid rgba(21, 128, 61, 0.22);
    border-radius: var(--radius);
    background: #dcfce7;
    color: #14532d;
    text-align: center;
    box-shadow: var(--shadow-soft);
    animation: slideIn 0.3s ease;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.72;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.sv-card-header-with-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.sv-data-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-inline-start: auto;
}

.card-body > .sv-data-tools {
    margin-bottom: 0.85rem;
}

.sv-search {
    position: relative;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 220px;
}

.sv-search i {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    z-index: 2;
}

.sv-search .form-control {
    min-height: 38px;
    padding-inline-start: 2.2rem;
    background: #ffffff;
}

.sv-filter {
    min-width: 150px;
    max-width: 210px;
}

.sv-reset {
    width: 38px;
    height: 38px;
    padding: 0;
}

.sv-count {
    min-width: 54px;
    padding: 0.42rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-align: center;
}

.sv-empty,
.sv-empty-row td {
    padding: 1rem !important;
    color: var(--muted) !important;
    text-align: center;
    background: var(--surface-soft) !important;
}

[hidden] {
    display: none !important;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-shell {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-brand {
    display: grid;
    align-content: space-between;
    min-height: 560px;
    padding: 2rem;
    color: #ffffff;
    background:
        linear-gradient(160deg, rgba(15, 118, 110, 0.96), rgba(23, 32, 51, 0.96)),
        #172033;
}

.auth-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 50%;
    background: #111827;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.auth-brand-clean {
    align-content: center;
}

.auth-brand h1 {
    margin: 1rem 0 0.4rem;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.auth-brand .soft-panel {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.auth-brand .soft-panel p {
    color: rgba(255, 255, 255, 0.72);
}

.auth-panel {
    padding: 2rem;
}

.auth-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-panel .form-group {
    margin-bottom: 1rem;
}

.btn-login {
    width: 100%;
    min-height: 48px;
    margin-top: 0.8rem;
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #ffffff;
}

.btn-login:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    color: #ffffff;
}

.auth-security-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.qr-page {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(232, 93, 79, 0.06)),
        var(--app-bg);
}

.qr-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 18px;
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.qr-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qr-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: #111827;
}

.qr-brand h1 {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 900;
}

.qr-brand p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.qr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.qr-meta .badge {
    background: var(--surface-tint);
    color: var(--brand-strong);
    border: 1px solid rgba(15, 118, 110, 0.16);
}

.menu-container {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.qr-menu-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.qr-search {
    max-width: 420px;
}

.qr-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.category-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.category-title {
    margin: 0 0 1rem;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 900;
}

.menu-card {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.menu-card:hover {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: var(--shadow);
}

.item-visual {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, var(--surface-tint), var(--blue-soft));
}

.item-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 2rem;
}

.menu-card-body {
    padding: 0 1rem;
}

.item-name {
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-weight: 900;
}

.item-description {
    min-height: 42px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.item-price {
    color: var(--coral);
    font-size: 1.1rem;
    font-weight: 900;
}

.cart-button {
    margin: 0 1rem 1rem;
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--brand);
    font-weight: 900;
}

.cart-button:hover {
    background: var(--brand-strong);
}

@media (max-width: 991.98px) {
    .main-content {
        padding: 18px;
    }

    .sidebar {
        position: relative;
        top: 0;
        min-height: auto;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: auto;
        gap: 2rem;
    }

    .qr-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .qr-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .main-content,
    .auth-page,
    .qr-shell {
        padding: 14px;
    }

    .page-title,
    .dashboard-hero h1 {
        font-size: 1.35rem;
    }

    .auth-panel,
    .auth-brand {
        padding: 1.25rem;
    }

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

    .active-order-strip,
    .kitchen-topbar,
    .kitchen-card-head,
    .kitchen-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .active-order-strip,
    .kitchen-topbar {
        display: grid;
    }

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

    .kitchen-item-side {
        min-width: 0;
        justify-items: stretch;
    }

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

    .kitchen-toast {
        inset-inline: 14px;
        top: 78px;
    }
}

/* Gradient polish pass */
:root {
    --app-bg: #f4f8f7;
    --app-bg-strong: #e7efed;
    --surface-soft: #f8fbfa;
    --ink: #101613;
    --ink-soft: #34423d;
    --muted: #6f7f79;
    --line: #dce7e3;
    --line-strong: #c9d8d3;
    --brand: #13b889;
    --brand-strong: #07816a;
    --brand-deep: #063f36;
    --cyan: #16a7c7;
    --coral: #f25c54;
    --gold: #c69411;
    --success: #12a46f;
    --warning: #c28a09;
    --danger: #d94343;
    --grad-primary: linear-gradient(135deg, #0cc985 0%, #13b889 48%, #16a7c7 100%);
    --grad-primary-hover: linear-gradient(135deg, #07986f 0%, #10ad86 46%, #0b8fad 100%);
    --grad-info: linear-gradient(135deg, #19b8dc 0%, #22c3b8 56%, #13b889 100%);
    --grad-warning: linear-gradient(135deg, #f7b733 0%, #ee8f16 55%, #f06a4d 100%);
    --grad-danger: linear-gradient(135deg, #ff5f7e 0%, #f04452 52%, #d93636 100%);
    --grad-success: linear-gradient(135deg, #17c785 0%, #12a46f 56%, #0c8d70 100%);
    --grad-neutral: linear-gradient(135deg, #32413c 0%, #1b2421 58%, #101613 100%);
    --grad-soft-panel: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 253, 251, 0.98) 55%, rgba(237, 251, 247, 0.98) 100%);
    --grad-border: linear-gradient(135deg, rgba(19, 184, 137, 0.46), rgba(22, 167, 199, 0.28), rgba(242, 92, 84, 0.2));
    --shadow-action: 0 12px 24px rgba(16, 22, 19, 0.13);
    --shadow-action-strong: 0 16px 30px rgba(16, 22, 19, 0.18);
}

body {
    background:
        linear-gradient(145deg, rgba(19, 184, 137, 0.15) 0%, rgba(19, 184, 137, 0) 36%),
        linear-gradient(230deg, rgba(247, 183, 51, 0.12) 0%, rgba(247, 183, 51, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 320px),
        repeating-linear-gradient(135deg, rgba(16, 22, 19, 0.032) 0 1px, transparent 1px 20px),
        var(--app-bg) !important;
}

body::before {
    background:
        linear-gradient(90deg, rgba(19, 184, 137, 0.09), transparent 18rem),
        linear-gradient(rgba(16, 22, 19, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 22, 19, 0.03) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
}

body::after {
    background: linear-gradient(180deg, #13b889, #16a7c7 46%, #f06a4d);
}

.navbar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 251, 0.9)) !important;
    border-bottom-color: rgba(201, 216, 211, 0.78);
}

.brand-logo,
.auth-logo,
.qr-brand img {
    padding: 3px;
    background:
        linear-gradient(#111715, #111715) padding-box,
        var(--grad-primary) border-box;
    border: 2px solid transparent;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(19, 184, 137, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(22, 167, 199, 0.08), transparent 42%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
        #111715;
}

.sidebar .nav-link {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
}

.sidebar .nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(19, 184, 137, 0.95), rgba(22, 167, 199, 0.72));
    transition: opacity 0.18s ease;
    z-index: -1;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.sidebar .nav-link:hover::before,
.sidebar .nav-link.active::before {
    opacity: 1;
}

.sidebar .nav-link i,
.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: rgba(255, 255, 255, 0.92);
}

.main-content > .d-flex.justify-content-between,
.main-content > .d-flex.align-items-center,
.main-content > .row.mb-4:first-child,
.page-head,
.dashboard-hero,
.card,
.qr-header,
.qr-menu-tools,
.category-section,
.auth-shell {
    border: 1px solid transparent;
    background:
        var(--grad-soft-panel) padding-box,
        var(--grad-border) border-box;
    box-shadow: 0 14px 34px rgba(16, 22, 19, 0.08);
}

.main-content > .d-flex.justify-content-between,
.main-content > .d-flex.align-items-center,
.main-content > .row.mb-4:first-child {
    min-height: 96px;
}

.dashboard-hero::before {
    background: linear-gradient(180deg, #13b889, #16a7c7 54%, #f06a4d);
}

.card-header,
.card-header.bg-light,
.card-header.bg-primary,
.card-header.bg-warning,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-danger,
.card-header.bg-secondary {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 252, 248, 0.96)) !important;
}

.btn {
    position: relative;
    isolation: isolate;
    border: 0;
    color: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), var(--shadow-action);
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    transition: opacity 0.16s ease;
    z-index: -1;
}

.btn:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), var(--shadow-action-strong);
}

.btn:hover::after {
    opacity: 1;
}

.btn:focus-visible {
    box-shadow:
        0 0 0 0.22rem rgba(19, 184, 137, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        var(--shadow-action-strong);
}

.btn:disabled,
.btn.disabled {
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(135deg, #a8b6b1, #7f908a) !important;
    box-shadow: none;
    opacity: 0.78;
    transform: none;
}

.btn-primary,
.hero-actions .btn-primary,
.btn-login,
.category-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-login:hover,
.btn-login:focus {
    background: var(--grad-primary-hover);
}

.btn-success {
    background: var(--grad-success);
    color: #ffffff !important;
}

.btn-info {
    background: var(--grad-info);
    color: #ffffff !important;
}

.btn-warning {
    background: var(--grad-warning);
    color: #ffffff !important;
}

.btn-danger {
    background: var(--grad-danger);
    color: #ffffff !important;
}

.btn-secondary {
    background: var(--grad-neutral);
    color: #ffffff !important;
}

.btn-outline-primary,
.btn-outline-light,
.btn-outline-secondary {
    border: 1px solid transparent;
    color: var(--brand-deep) !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        var(--grad-primary) border-box;
    box-shadow: none;
}

.btn-outline-primary:hover,
.btn-outline-light:hover,
.btn-outline-secondary:hover {
    color: #ffffff !important;
    background:
        var(--grad-primary) padding-box,
        var(--grad-primary) border-box;
}

.table .btn-sm,
td .btn-sm {
    min-height: 36px;
    padding-inline: 0.7rem;
}

.table form .btn-danger.btn-sm {
    width: 40px;
    padding-inline: 0;
}

.bg-primary,
.badge.bg-primary,
.progress-bar.bg-primary {
    background: var(--grad-primary) !important;
}

.bg-success,
.badge.bg-success {
    background: var(--grad-success) !important;
}

.bg-warning,
.badge.bg-warning {
    background: var(--grad-warning) !important;
    color: #ffffff !important;
}

.bg-info,
.badge.bg-info,
.progress-bar.bg-info {
    background: var(--grad-info) !important;
}

.bg-danger,
.badge.bg-danger {
    background: var(--grad-danger) !important;
}

.bg-secondary,
.badge.bg-secondary,
.bg-dark,
.badge.bg-dark {
    background: var(--grad-neutral) !important;
}

.badge {
    border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.table thead th {
    background:
        linear-gradient(180deg, #f9fcfb, #edf5f2);
    border-bottom-color: #cbdad5;
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.68);
}

.table tbody tr:hover {
    background:
        linear-gradient(90deg, rgba(19, 184, 137, 0.08), rgba(22, 167, 199, 0.035));
}

.form-control,
.form-select {
    border: 1px solid transparent;
    background:
        linear-gradient(#fbfdfc, #fbfdfc) padding-box,
        linear-gradient(135deg, rgba(52, 66, 61, 0.22), rgba(19, 184, 137, 0.18)) border-box;
}

.form-control:focus,
.form-select:focus {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        var(--grad-primary) border-box;
}

.sv-search .form-control {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(19, 184, 137, 0.36), rgba(22, 167, 199, 0.3)) border-box;
    box-shadow: 0 8px 18px rgba(16, 22, 19, 0.05);
}

.sv-search i {
    color: var(--brand-strong);
}

.order-ready-banner .order-ready-action {
    min-width: min(100%, 420px);
    color: #ffffff !important;
    background: linear-gradient(135deg, #0f172a 0%, #0f8f6d 52%, #18c58f 100%) !important;
    border: 1px solid rgba(15, 143, 109, 0.45) !important;
    box-shadow: 0 18px 42px rgba(15, 143, 109, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.order-ready-banner .order-ready-action i,
.order-ready-banner .order-ready-action span {
    color: inherit !important;
}

.order-ready-banner .order-ready-action:hover,
.order-ready-banner .order-ready-action:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #111827 0%, #0b7d65 48%, #12a46f 100%) !important;
    transform: translateY(-1px);
}

.sv-count {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(19, 184, 137, 0.36), rgba(22, 167, 199, 0.22)) border-box;
}

.category-btn {
    border: 1px solid transparent;
    color: var(--brand-deep);
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(19, 184, 137, 0.28), rgba(22, 167, 199, 0.18)) border-box;
    box-shadow: none;
}

.category-btn:hover {
    color: #ffffff;
    background:
        var(--grad-primary) padding-box,
        var(--grad-primary) border-box;
}

.metric-card::before {
    background: var(--grad-primary);
}

.metric-card.metric-blue::before {
    background: var(--grad-info);
}

.metric-card.metric-gold::before {
    background: var(--grad-warning);
}

.metric-card.metric-coral::before {
    background: var(--grad-danger);
}

.metric-icon {
    background:
        linear-gradient(#f7fffc, #e8fff6) padding-box,
        var(--grad-primary) border-box;
    border: 1px solid transparent;
}

.metric-icon.blue {
    background:
        linear-gradient(#f6fdff, #e7fbff) padding-box,
        var(--grad-info) border-box;
}

.metric-icon.gold {
    background:
        linear-gradient(#fffdf5, #fff3d4) padding-box,
        var(--grad-warning) border-box;
}

.metric-icon.coral {
    background:
        linear-gradient(#fff8f8, #ffe9e7) padding-box,
        var(--grad-danger) border-box;
}

.auth-brand {
    background:
        linear-gradient(145deg, rgba(19, 184, 137, 0.24), transparent 44%),
        linear-gradient(215deg, rgba(22, 167, 199, 0.18), transparent 38%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 18px),
        #111715;
}

.cart-button {
    background: var(--grad-primary);
    box-shadow: var(--shadow-action);
}

.cart-button:hover {
    background: var(--grad-primary-hover);
    box-shadow: var(--shadow-action-strong);
}

/* Table action buttons */
:root {
    --action-edit: linear-gradient(135deg, #7c5cff 0%, #9a66ff 48%, #2f8df5 100%);
    --action-edit-hover: linear-gradient(135deg, #6848ee 0%, #8352ef 48%, #2477d8 100%);
    --action-qr: linear-gradient(135deg, #00b8ff 0%, #00d5c8 52%, #18c790 100%);
    --action-qr-hover: linear-gradient(135deg, #009ee0 0%, #00bfb4 52%, #11a976 100%);
    --action-move: linear-gradient(135deg, #4b6170 0%, #2f4f59 52%, #193b35 100%);
    --action-move-hover: linear-gradient(135deg, #3f5360 0%, #284650 52%, #122f2a 100%);
    --action-delete: linear-gradient(135deg, #ff4f86 0%, #f04452 48%, #e5482f 100%);
    --action-delete-hover: linear-gradient(135deg, #ed3d76 0%, #d93643 48%, #c93b27 100%);
}

.table td .btn-warning,
.table td a.btn-warning,
.table td button.btn-warning {
    background: var(--action-edit) !important;
    color: #ffffff !important;
}

.table td .btn-warning:hover,
.table td a.btn-warning:hover,
.table td button.btn-warning:hover {
    background: var(--action-edit-hover) !important;
}

.table td .btn-info,
.table td a.btn-info,
.table td button.btn-info {
    background: var(--action-qr) !important;
    color: #ffffff !important;
}

.table td .btn-info:hover,
.table td a.btn-info:hover,
.table td button.btn-info:hover {
    background: var(--action-qr-hover) !important;
}

.table td .btn-secondary,
.table td a.btn-secondary,
.table td button.btn-secondary {
    background: var(--action-move) !important;
    color: #ffffff !important;
}

.table td .btn-secondary:hover,
.table td a.btn-secondary:hover,
.table td button.btn-secondary:hover {
    background: var(--action-move-hover) !important;
}

.table td .btn-danger,
.table td a.btn-danger,
.table td button.btn-danger {
    background: var(--action-delete) !important;
    color: #ffffff !important;
}

.table td .btn-danger:hover,
.table td a.btn-danger:hover,
.table td button.btn-danger:hover {
    background: var(--action-delete-hover) !important;
}

.table td .btn-sm {
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 9px 18px rgba(16, 22, 19, 0.12);
}

.table td .btn-sm:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        0 13px 24px rgba(16, 22, 19, 0.17);
}

/* Public customer menu */
.public-menu-page {
    padding-bottom: 96px;
    background:
        linear-gradient(135deg, rgba(19, 184, 137, 0.18), transparent 34%),
        linear-gradient(225deg, rgba(247, 183, 51, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(135deg, rgba(16, 22, 19, 0.026) 0 1px, transparent 1px 18px),
        #f6faf8 !important;
}

.menu-shell {
    width: min(100%, 1180px);
    padding: 20px;
}

.menu-hero {
    min-height: 116px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 255, 248, 0.96)) padding-box,
        linear-gradient(135deg, rgba(19, 184, 137, 0.58), rgba(22, 167, 199, 0.34), rgba(247, 183, 51, 0.28)) border-box;
}

.menu-hero .qr-brand h1 {
    font-size: 1.72rem;
}

.menu-hero .qr-brand p {
    color: var(--ink-soft);
    font-weight: 800;
}

.menu-hero .qr-meta .badge {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        var(--grad-primary) border-box;
    border: 1px solid transparent;
    color: var(--brand-deep);
}

.menu-tools {
    top: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 254, 250, 0.9)) padding-box,
        linear-gradient(135deg, rgba(19, 184, 137, 0.42), rgba(22, 167, 199, 0.24)) border-box;
}

.menu-category {
    overflow: hidden;
}

.category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-heading .category-title {
    margin: 0;
    font-size: 1.24rem;
}

.category-count {
    min-width: 38px;
    background: var(--grad-primary) !important;
    color: #ffffff !important;
}

.browse-card {
    position: relative;
    height: 100%;
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(19, 184, 137, 0.2), rgba(22, 167, 199, 0.14)) border-box;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.browse-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(16, 22, 19, 0.12);
}

.item-visual {
    aspect-ratio: 4 / 3;
    height: auto;
}

.item-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
}

.item-name {
    margin: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.item-price {
    padding: 0.35rem 0.55rem;
    border-radius: var(--radius);
    background:
        linear-gradient(#fff7f6, #fff7f6) padding-box,
        linear-gradient(135deg, rgba(242, 92, 84, 0.44), rgba(247, 183, 51, 0.28)) border-box;
    border: 1px solid transparent;
    color: #c13e38;
    font-weight: 900;
}

.item-description {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.item-options {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.item-option-group {
    padding: 0.65rem;
    border: 1px solid rgba(201, 216, 211, 0.72);
    border-radius: var(--radius);
    background: #f8fbfa;
}

.item-option-group > span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 900;
}

.item-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.item-option-values small {
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink-soft);
    font-weight: 800;
}

.menu-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(19, 184, 137, 0.26), rgba(22, 167, 199, 0.18)) border-box;
    text-align: center;
}

.menu-empty i {
    margin-bottom: 0.7rem;
    color: var(--brand-strong);
    font-size: 2rem;
}

.menu-empty h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 900;
}

@media (max-width: 575.98px) {
    .menu-shell {
        padding: 12px;
    }

    .menu-hero {
        min-height: auto;
    }

    .menu-hero .qr-brand h1 {
        font-size: 1.35rem;
    }

    .item-line {
        grid-template-columns: 1fr;
    }

    .item-price {
        justify-self: start;
    }

}

/* Modern Sky View theme refresh */
:root {
    --font-ui: "IBM Plex Sans Arabic", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
    --app-bg: #eef4f2;
    --app-bg-strong: #dfe9e5;
    --surface: #ffffff;
    --surface-soft: #f7faf9;
    --surface-tint: #e8f8f2;
    --surface-ink: #101513;
    --ink: #111815;
    --ink-soft: #3f4b47;
    --muted: #71807b;
    --line: #d8e3df;
    --line-strong: #c4d3ce;
    --brand: #00a77d;
    --brand-strong: #007a62;
    --brand-deep: #063f36;
    --brand-soft: #d9f8ee;
    --mint: #8af0c4;
    --cyan: #00a7c8;
    --cyan-soft: #dff8fb;
    --coral: #ff5a4f;
    --coral-soft: #ffe8e5;
    --gold: #b98f00;
    --gold-soft: #fff4cc;
    --blue: #3a6ff8;
    --blue-soft: #e7eeff;
    --violet: #775cf5;
    --success: #13935f;
    --warning: #b98f00;
    --danger: #d93d36;
    --shadow: 0 18px 48px rgba(17, 24, 21, 0.12);
    --shadow-soft: 0 10px 26px rgba(17, 24, 21, 0.07);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 14px 34px rgba(17, 24, 21, 0.08);
    --radius: 8px;
}

html {
    background: var(--app-bg);
}

body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 280px),
        linear-gradient(90deg, rgba(0, 167, 125, 0.08), transparent 34%, rgba(255, 90, 79, 0.05) 78%, transparent),
        repeating-linear-gradient(135deg, rgba(16, 21, 19, 0.035) 0 1px, transparent 1px 18px),
        var(--app-bg) !important;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 15px;
    letter-spacing: 0;
}

body::before {
    background:
        linear-gradient(90deg, rgba(0, 167, 125, 0.13), transparent 16rem),
        linear-gradient(rgba(16, 21, 19, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 21, 19, 0.035) 1px, transparent 1px);
    background-size: auto, 40px 40px, 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 62%);
}

body::after {
    content: "";
    position: fixed;
    inset-inline-start: 0;
    inset-block: 0;
    width: 5px;
    pointer-events: none;
    background: linear-gradient(180deg, var(--brand), var(--coral) 52%, var(--cyan));
    z-index: 1035;
}

a {
    color: var(--brand-strong);
    font-weight: 700;
}

a:hover {
    color: var(--brand);
}

.navbar {
    min-height: 72px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(196, 211, 206, 0.78);
    box-shadow: 0 10px 30px rgba(17, 24, 21, 0.06);
}

@supports (backdrop-filter: blur(16px)) {
    .navbar {
        background: rgba(255, 255, 255, 0.78) !important;
        backdrop-filter: blur(18px) saturate(1.3);
    }
}

.navbar .container-fluid {
    gap: 1rem;
    padding-inline: 20px;
}

.navbar-brand {
    gap: 0.75rem;
    min-width: 0;
    color: var(--ink) !important;
    font-size: 1.05rem;
    font-weight: 900;
}

.brand-logo,
.auth-logo,
.qr-brand img {
    background:
        linear-gradient(145deg, #0f1714, #121f1a),
        var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(16, 21, 19, 0.22);
}

.brand-logo {
    width: 46px;
    height: 46px;
}

.brand-subtitle {
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .show > .nav-link {
    color: var(--ink) !important;
}

.navbar .nav-link {
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--brand-strong) !important;
    background: var(--surface-tint);
    border-color: rgba(0, 167, 125, 0.16);
}

.navbar-toggler {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
}

.dropdown-menu {
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.dropdown-item {
    min-height: 38px;
    border-radius: 6px;
    font-weight: 700;
}

.dropdown-divider {
    border-color: var(--line);
}

body > .container-fluid {
    padding-inline: 0;
}

body > .container-fluid > .row {
    margin-inline: 0;
    align-items: stretch;
}

.sidebar {
    top: 72px;
    min-height: calc(100vh - 72px);
    padding: 16px 12px;
    background:
        linear-gradient(180deg, rgba(0, 167, 125, 0.13), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
        #111715;
    border: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 14px 0 34px rgba(17, 24, 21, 0.1);
}

.sidebar .nav {
    gap: 0.32rem;
}

.sidebar .nav-link {
    position: relative;
    min-height: 44px;
    padding: 0.72rem 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
}

.sidebar .nav-link i {
    width: 1.25rem;
    color: rgba(138, 240, 196, 0.78);
    font-size: 0.98rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: inset 3px 0 0 var(--brand);
}

[dir="rtl"] .sidebar .nav-link:hover,
[dir="rtl"] .sidebar .nav-link.active {
    box-shadow: inset -3px 0 0 var(--brand);
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: var(--mint);
}

.sidebar hr {
    margin: 0.85rem 0;
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.sidebar .text-muted {
    color: rgba(255, 255, 255, 0.46) !important;
    font-weight: 800;
}

.main-content {
    padding: 26px;
}

.main-content > .d-flex.justify-content-between,
.main-content > .d-flex.align-items-center,
.main-content > .row.mb-4:first-child,
.page-head,
.dashboard-hero {
    border: 1px solid rgba(196, 211, 206, 0.82);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 249, 0.94)),
        var(--surface);
    box-shadow: var(--shadow-soft);
}

.main-content > .d-flex.justify-content-between,
.main-content > .d-flex.align-items-center,
.main-content > .row.mb-4:first-child {
    padding: 1rem 1.1rem;
}

.page-shell {
    gap: 1.05rem;
}

.page-head,
.dashboard-hero {
    padding: 1.25rem;
}

.dashboard-hero {
    position: relative;
}

.dashboard-hero::before {
    content: "";
    display: block;
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand), var(--coral));
}

[dir="rtl"] .dashboard-hero::before {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.page-title,
.dashboard-hero h1 {
    color: var(--ink);
    font-weight: 900;
}

.page-title,
.dashboard-hero h1 {
    font-size: 1.72rem;
    line-height: 1.25;
}

.page-subtitle,
.dashboard-hero p {
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.75;
}

.page-kicker,
.hero-badge {
    min-height: 30px;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(0, 167, 125, 0.2);
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 0.8rem;
    font-weight: 900;
}

.card,
.summary-card,
.metric-card,
.hero-panel,
.hero-stat,
.soft-panel,
.table-tile,
.menu-item-card,
.menu-card,
.category-section,
.qr-header,
.qr-menu-tools,
.auth-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.card {
    overflow: hidden;
}

.card-header,
.card-footer {
    border-color: var(--line);
}

.card-header {
    min-height: 56px;
    padding: 0.9rem 1rem;
    background:
        linear-gradient(180deg, var(--surface), var(--surface-soft)) !important;
    color: var(--ink) !important;
}

.card-header.bg-light,
.card-header.bg-primary,
.card-header.bg-warning,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-danger,
.card-header.bg-secondary {
    background:
        linear-gradient(180deg, var(--surface), var(--surface-soft)) !important;
    color: var(--ink) !important;
}

.card-body {
    padding: 1.05rem;
}

.card-title,
.card h5,
.section-title {
    color: var(--ink);
    font-weight: 900;
}

.summary-card,
.metric-card {
    min-height: 132px;
}

.metric-card {
    padding: 1rem;
    background:
        linear-gradient(180deg, #ffffff, #f8fbfa),
        var(--surface);
}

.metric-card:hover,
.summary-card:hover,
.table-tile:hover,
.menu-item-card:hover,
.menu-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 167, 125, 0.34);
    box-shadow: 0 20px 48px rgba(17, 24, 21, 0.12);
}

.metric-card::before {
    width: 5px;
    background: linear-gradient(180deg, var(--brand), var(--cyan));
}

.metric-card.metric-coral::before {
    background: linear-gradient(180deg, var(--coral), #ff8a66);
}

.metric-card.metric-gold::before {
    background: linear-gradient(180deg, var(--gold), #d8c523);
}

.metric-card.metric-blue::before {
    background: linear-gradient(180deg, var(--blue), var(--violet));
}

.metric-label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.metric-value,
.summary-card h2,
.summary-card h3,
.metric-card h2,
.metric-card h3 {
    color: var(--ink);
    font-size: 1.72rem;
    font-weight: 900;
}

.metric-icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 167, 125, 0.16);
    border-radius: var(--radius);
    color: var(--brand-deep);
    background:
        linear-gradient(180deg, #f6fffb, var(--brand-soft));
}

.metric-icon.coral {
    color: var(--danger);
    background: linear-gradient(180deg, #fff8f7, var(--coral-soft));
    border-color: rgba(255, 90, 79, 0.18);
}

.metric-icon.gold {
    color: #7e6200;
    background: linear-gradient(180deg, #fffdf2, var(--gold-soft));
    border-color: rgba(185, 143, 0, 0.18);
}

.metric-icon.blue {
    color: var(--blue);
    background: linear-gradient(180deg, #f8faff, var(--blue-soft));
    border-color: rgba(58, 111, 248, 0.18);
}

.hero-panel,
.hero-stat,
.soft-panel {
    background: var(--surface-soft);
}

.btn {
    min-height: 40px;
    border-radius: var(--radius);
    border-width: 1px;
    font-weight: 900;
    box-shadow: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 21, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    min-height: 34px;
}

.btn-lg {
    min-height: 50px;
}

.btn-primary,
.hero-actions .btn-primary,
.btn-login {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-login:hover,
.btn-login:focus {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    color: #ffffff;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.btn-warning {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
}

.btn-info {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #ffffff !important;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

.btn-secondary,
.btn-outline-secondary {
    color: var(--ink);
    background: #edf3f1;
    border-color: var(--line-strong);
}

.btn-outline-primary,
.btn-outline-light {
    color: var(--brand-strong);
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(0, 167, 125, 0.34);
}

.btn-outline-primary:hover,
.btn-outline-light:hover {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.badge {
    border-radius: var(--radius);
    font-weight: 900;
}

.bg-primary,
.badge.bg-primary,
.progress-bar.bg-primary {
    background-color: var(--brand) !important;
    color: #ffffff !important;
}

.bg-success,
.badge.bg-success {
    background-color: var(--success) !important;
    color: #ffffff !important;
}

.bg-warning,
.badge.bg-warning {
    background-color: var(--gold) !important;
    color: #ffffff !important;
}

.bg-info,
.badge.bg-info,
.progress-bar.bg-info {
    background-color: var(--cyan) !important;
    color: #ffffff !important;
}

.bg-danger,
.badge.bg-danger {
    background-color: var(--danger) !important;
    color: #ffffff !important;
}

.bg-secondary,
.badge.bg-secondary,
.bg-dark,
.badge.bg-dark {
    background-color: #28332f !important;
    color: #ffffff !important;
}

.bg-white.text-primary,
.badge.bg-white.text-primary {
    color: var(--brand-deep) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 167, 125, 0.2);
}

.badge-soft,
.status-pill {
    color: var(--brand-deep);
    background: var(--brand-soft);
    border-color: rgba(0, 167, 125, 0.16);
}

.table-responsive {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: auto;
    box-shadow: none;
}

.table {
    --bs-table-hover-bg: rgba(0, 167, 125, 0.06);
    color: var(--ink);
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.95rem;
    border-bottom-color: var(--line);
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--ink-soft);
    background: #f4f8f6;
    border-bottom: 1px solid var(--line-strong);
    font-size: 0.82rem;
    font-weight: 900;
}

.table tbody tr {
    transition: background 0.12s ease;
}

.table tbody tr:hover {
    background: rgba(0, 167, 125, 0.06);
}

.list-group-item {
    border-color: var(--line);
}

.list-group-item-action:hover,
.list-group-item-action:focus,
.order-card:hover {
    background: var(--surface-tint);
}

.alert {
    border-radius: var(--radius);
    font-weight: 700;
}

.alert-success {
    color: #0f5138;
    background: #dff8ea;
    border-color: #b7ebcf;
}

.alert-danger {
    color: #7a201c;
    background: #ffe2df;
    border-color: #ffc7c1;
}

.alert-warning {
    color: #6e5500;
    background: var(--gold-soft);
    border-color: #f2dc74;
}

.alert-info {
    color: #07515f;
    background: var(--cyan-soft);
    border-color: #bdebf2;
}

.form-label {
    margin-bottom: 0.4rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 900;
}

.form-control,
.form-select {
    min-height: 46px;
    color: var(--ink);
    background: #fbfdfc;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-weight: 650;
}

.form-control::placeholder {
    color: #98a6a1;
}

.form-control:focus,
.form-select:focus {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--brand);
    box-shadow: 0 0 0 0.22rem rgba(0, 167, 125, 0.16);
}

.form-check-input {
    border-color: var(--line-strong);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.progress {
    height: 11px;
    background: #e2ebe7;
    border-radius: 999px;
}

.progress-bar {
    border-radius: 999px;
}

.table-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.85rem;
}

.table-tile {
    min-height: 128px;
    padding: 1rem;
    background:
        linear-gradient(180deg, #ffffff, #f8fbfa);
}

.table-tile .tile-icon {
    border: 1px solid transparent;
}

.table-tile.is-empty .tile-icon,
.qty-btn-plus {
    color: var(--success);
    background: #def8ea;
    border-color: #b7ebcf;
}

.table-tile.is-occupied .tile-icon,
.qty-btn-minus {
    color: var(--gold);
    background: var(--gold-soft);
    border-color: #f2dc74;
}

.category-btn {
    min-height: 42px;
    background: #fbfdfc;
    border-color: var(--line-strong);
    color: var(--ink);
    font-weight: 900;
}

.category-btn:hover,
.category-btn.active {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 10px 22px rgba(0, 167, 125, 0.18);
}

.menu-item-card {
    background: #ffffff;
}

.menu-item-card.selected {
    border-color: var(--brand);
    background: #f0fcf7;
    box-shadow: 0 0 0 3px rgba(0, 167, 125, 0.12), var(--shadow-card);
}

.menu-item-card img,
.item-image-placeholder {
    height: 148px;
}

.item-image-placeholder,
.item-placeholder {
    color: var(--brand-deep);
    background:
        linear-gradient(135deg, rgba(0, 167, 125, 0.16), rgba(0, 167, 200, 0.14)),
        #f4fbf8;
}

.qty-badge {
    border-radius: var(--radius);
    background: var(--coral);
    box-shadow: 0 12px 24px rgba(255, 90, 79, 0.24);
}

.order-sidebar {
    top: 92px;
}

.order-item-row {
    border-bottom-color: var(--line);
}

.qty-btn {
    border-color: var(--line-strong);
    border-radius: var(--radius);
}

.status-circle {
    border-color: var(--line-strong);
}

.status-circle.done {
    border-color: var(--success);
    background: var(--success);
}

.status-circle.current {
    border-color: var(--brand);
    background: var(--brand);
}

.status-line {
    background: var(--line);
}

.status-line.done {
    background: var(--success);
}

.status-label.current {
    color: var(--brand-deep);
}

.order-ready-banner {
    background: #dff8ea;
    border-color: #b7ebcf;
    color: #0f5138;
}

.sv-card-header-with-tools {
    align-items: center;
}

.sv-data-tools {
    gap: 0.55rem;
}

.sv-search {
    min-width: 240px;
}

.sv-search .form-control {
    min-height: 40px;
    padding-inline-start: 2.35rem;
    background: #fbfdfc;
}

.sv-search i {
    color: var(--brand-strong);
}

.sv-filter {
    min-height: 40px;
}

.sv-reset {
    width: 40px;
    height: 40px;
}

.sv-count {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--line-strong);
    background: #f4f8f6;
    color: var(--ink-soft);
}

.sv-empty,
.sv-empty-row td {
    background: #f4f8f6 !important;
}

.auth-page {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(135deg, rgba(16, 21, 19, 0.04) 0 1px, transparent 1px 18px),
        var(--app-bg) !important;
}

.auth-shell {
    width: min(100%, 1040px);
    grid-template-columns: minmax(300px, 0.86fr) minmax(340px, 1fr);
    border-color: rgba(196, 211, 206, 0.9);
}

.auth-brand {
    min-height: 590px;
    padding: 2.2rem;
    background:
        linear-gradient(180deg, rgba(0, 167, 125, 0.18), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 18px),
        #111715;
}

.auth-logo {
    width: 116px;
    height: 116px;
}

.auth-brand-clean {
    align-content: center;
}

.auth-brand h1 {
    font-size: 2.2rem;
    font-weight: 900;
}

.auth-brand p {
    color: rgba(255, 255, 255, 0.76);
}

.auth-brand .soft-panel {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: none;
}

.auth-panel {
    padding: 2.25rem;
}

.auth-panel h2 {
    font-size: 1.58rem;
    font-weight: 900;
}

.btn-login {
    min-height: 50px;
    margin-top: 0.9rem;
}

.auth-security-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
}

.qr-page {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(135deg, rgba(16, 21, 19, 0.04) 0 1px, transparent 1px 18px),
        var(--app-bg) !important;
}

.qr-shell {
    width: min(100%, 1160px);
    padding: 20px;
}

.qr-header {
    padding: 1rem;
    align-items: center;
    background:
        linear-gradient(180deg, #ffffff, #f8fbfa);
}

.qr-brand img {
    width: 62px;
    height: 62px;
}

.qr-brand h1 {
    font-size: 1.42rem;
}

.qr-meta .badge {
    color: var(--brand-deep);
    background: var(--brand-soft);
    border-color: rgba(0, 167, 125, 0.18);
}

.qr-menu-tools {
    position: sticky;
    top: 12px;
    z-index: 4;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.88);
}

@supports (backdrop-filter: blur(14px)) {
    .qr-menu-tools {
        backdrop-filter: blur(14px) saturate(1.25);
    }
}

.qr-search {
    max-width: 460px;
}

.category-section {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
}

.category-title {
    font-size: 1.18rem;
}

.menu-card {
    gap: 0.85rem;
    background: #ffffff;
}

.item-visual {
    background:
        linear-gradient(135deg, rgba(0, 167, 125, 0.16), rgba(0, 167, 200, 0.14)),
        #f4fbf8;
}

.menu-card-body {
    padding-inline: 1rem;
}

.item-name {
    color: var(--ink);
    font-size: 1.05rem;
}

.item-description {
    color: var(--muted);
}

.item-price {
    color: var(--coral);
    white-space: nowrap;
}

.cart-button {
    border-radius: var(--radius);
    background: var(--ink);
    transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.cart-button:hover {
    background: var(--brand-strong);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 167, 125, 0.18);
}

@media (max-width: 991.98px) {
    body::after {
        width: 4px;
    }

    .navbar {
        min-height: 68px;
    }

    .navbar .container-fluid {
        padding-inline: 14px;
    }

    .sidebar {
        top: 0;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .sidebar .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-content {
        padding: 18px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: auto;
        gap: 2rem;
    }

    .qr-menu-tools {
        top: 8px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-subtitle {
        display: none;
    }

    .main-content,
    .auth-page,
    .qr-shell {
        padding: 14px;
    }

    .main-content > .d-flex.justify-content-between,
    .main-content > .d-flex.align-items-center,
    .main-content > .row.mb-4:first-child,
    .page-head,
    .dashboard-hero {
        padding: 0.9rem;
    }

    .page-title,
    .dashboard-hero h1 {
        font-size: 1.32rem;
    }

    .metric-value,
    .summary-card h2,
    .summary-card h3,
    .metric-card h2,
    .metric-card h3 {
        font-size: 1.42rem;
    }

    .sv-card-header-with-tools {
        align-items: stretch;
    }

    .sv-data-tools,
    .qr-menu-tools {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .sv-search,
    .qr-search,
    .sv-filter {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }

    .sv-reset,
    .sv-count {
        width: 100%;
    }

    .sidebar .nav {
        grid-template-columns: 1fr;
    }

    .auth-panel,
    .auth-brand {
        padding: 1.15rem;
    }

    .auth-logo {
        width: 86px;
        height: 86px;
    }

    .auth-brand h1 {
        font-size: 1.62rem;
    }

    .qr-header {
        align-items: flex-start;
    }

    .qr-brand {
        align-items: flex-start;
    }

    .qr-brand img {
        width: 52px;
        height: 52px;
    }

    .qr-category-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .category-btn {
        flex: 0 0 auto;
    }

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

.ingredient-builder {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 252, 249, 0.98));
}

.ingredient-builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ingredient-builder-head p {
    color: var(--muted);
    font-weight: 700;
}

.ingredient-builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ingredient-empty-state {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(41, 91, 73, 0.28);
    border-radius: var(--radius);
    background: rgba(232, 247, 241, 0.7);
    color: var(--ink-soft);
}

.ingredient-empty-state[hidden] {
    display: none !important;
}

.ingredient-empty-state i {
    color: var(--brand);
    font-size: 1.35rem;
}

.ingredient-empty-state span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.ingredient-rows {
    display: grid;
    gap: 0.55rem;
}

.ingredient-row {
    align-items: center;
}

.ingredient-remove-btn,
.ingredient-remove-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto !important;
    min-width: 104px;
    min-height: 46px;
    padding-inline: 1.1rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ef6a73 0%, #d84a55 55%, #b9323f 100%) !important;
    border: 1px solid rgba(184, 46, 58, 0.72) !important;
    box-shadow: 0 10px 22px rgba(184, 46, 58, 0.18);
    font-weight: 900;
}

.ingredient-remove-btn i,
.ingredient-remove-btn span {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ingredient-remove-btn:hover,
.ingredient-remove-btn:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f05f69 0%, #ca3f4c 55%, #a92a36 100%) !important;
    border-color: rgba(169, 42, 54, 0.85) !important;
    transform: translateY(-1px);
}

.quick-ingredient-modal .modal-content {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 575.98px) {
    .ingredient-builder-head {
        display: grid;
    }

    .ingredient-builder-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ingredient-remove-btn {
        width: 100% !important;
    }
}
