:root {
    --qres-ink: #181510;
    --qres-muted: #6f675b;
    --qres-soft: #958a7b;
    --qres-line: rgba(24, 21, 16, 0.11);
    --qres-paper: rgba(255, 253, 248, 0.88);
    --qres-panel: #fffbf2;
    --qres-bg: #f4efe6;
    --qres-gold: #b8872d;
    --qres-rust: #8d3e20;
    --qres-green: #117453;
    --qres-blue: #276b83;
    --qres-shadow: 0 20px 60px rgba(24, 21, 16, 0.1);
}

/* Category Tabs - Premium Pill Bar Design */
.category-tabs-container {
    background: rgba(255, 255, 255, 0.55);
    padding: 6px;
    border-radius: 100px;
    backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid rgba(184, 135, 45, 0.15);
    box-shadow: 
        0 20px 40px rgba(24, 21, 16, 0.04),
        0 1px 1px rgba(255, 255, 255, 0.9) inset,
        0 0 0 4px rgba(255, 255, 255, 0.15);
    margin-bottom: 32px;
    position: sticky;
    top: 16px;
    z-index: 100;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.category-tabs .mud-tabs-toolbar {
    background: transparent !important;
    min-height: 48px !important;
}

.category-tabs .mud-tab {
    min-height: 40px;
    text-transform: none !important;
    font-weight: 900 !important;
    font-size: 0.8rem !important;
    border-radius: 100px;
    margin: 0 4px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    color: var(--qres-muted);
    padding: 0 24px !important;
    letter-spacing: 0.02em;
    opacity: 0.7;
}

.category-tabs .mud-tab:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--qres-ink);
    opacity: 1;
}

.category-tabs .mud-tab.mud-tab-active {
    background: #ffffff !important;
    color: var(--qres-gold) !important;
    opacity: 1;
    box-shadow: 
        0 10px 25px rgba(184, 135, 45, 0.12),
        0 4px 10px rgba(184, 135, 45, 0.05);
    transform: scale(1.02) translateY(-1px);
}

.category-tabs .mud-tab.mud-tab-active .mud-tab-icon {
    color: var(--qres-gold) !important;
    transform: scale(1.15) rotate(-5deg);
}

.category-tabs .mud-tab-icon {
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
    margin-right: 10px !important;
    transition: all 0.4s ease;
    color: var(--qres-soft);
}

/* Force hide any sliders or borders */
.category-tabs .mud-tabs-slider,
.category-tabs .mud-tab-slider,
.category-tabs .mud-tabs-toolbar-inner::after,
.category-tabs .mud-tabs-toolbar::after {
    display: none !important;
    height: 0 !important;
    background: transparent !important;
}

/* Kitchen chip override: make chips with class .kitchen-chip show white text/icons globally */
.kitchen-chip,
.kitchen-chip.mud-chip,
.kitchen-chip.mud-chip-filled {
    color: #ffffff !important;
}
.kitchen-chip .mud-chip-label,
.kitchen-chip .mud-chip-text,
.kitchen-chip .mud-chip-content {
    color: #ffffff !important;
}
.kitchen-chip .mud-icon-root,
.kitchen-chip .mud-icon,
.kitchen-chip svg {
    color: #ffffff !important;
    fill: currentColor !important;
}

html,
body {
    min-height: 100%;
    background: var(--qres-bg);
    color: var(--qres-ink);
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a {
    color: var(--qres-rust);
}

.qres-main {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 239, 220, 0.62)),
        linear-gradient(90deg, rgba(17, 116, 83, 0.07), transparent 34%, rgba(141, 62, 32, 0.08)),
        var(--qres-bg);
}

.qres-shell {
    padding: 24px;
}

.qres-page {
    display: grid;
    gap: 16px;
}

.qres-page-header,
.qres-content-card,
.qres-filter-panel,
.qres-loading-panel,
.qres-empty-state,
.qres-stat-card,
.qres-kanban-column,
.qres-order-card,
.qres-kitchen-card,
.qres-dashboard-tile {
    border: 1px solid var(--qres-line);
    background: var(--qres-paper);
    box-shadow: var(--qres-shadow);
    backdrop-filter: blur(16px);
}

.qres-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    padding: 24px;
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(184, 135, 45, 0.12), transparent 42%),
        repeating-linear-gradient(90deg, rgba(24, 21, 16, 0.035) 0 1px, transparent 1px 44px),
        var(--qres-paper);
}

.qres-page-header-main,
.qres-appbar-user,
.qres-action-row,
.qres-card-header,
.qres-card-actions,
.qres-filter-actions,
.qres-dialog-title,
.qres-inline-stat,
.qres-row-actions {
    display: flex;
    align-items: center;
}

.qres-page-header-main {
    min-width: 0;
    gap: 16px;
}

.qres-page-header-icon,
.qres-metric-icon,
.qres-dashboard-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #fffaf0;
    background: var(--qres-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.qres-page-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.qres-page-header-copy {
    min-width: 0;
}

.qres-page-header-copy span,
.qres-card-header span,
.qres-filter-copy span,
.qres-dialog-title span,
.qres-kicker {
    display: block;
    color: #7f571a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qres-page-header-copy h1 {
    margin: 5px 0 6px;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    font-weight: 900;
    line-height: 0.95;
}

.qres-page-header-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--qres-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.qres-page-header-actions,
.qres-action-row,
.qres-card-actions,
.qres-filter-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.qres-content-card {
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
}

.qres-card-header {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.qres-card-header h2 {
    margin: 2px 0 0;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 900;
}

.qres-filter-panel {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
}

.qres-filter-copy {
    display: grid;
    gap: 2px;
}

.qres-filter-copy strong {
    color: var(--qres-ink);
    font-size: 1rem;
    font-weight: 950;
}

.kitchen-chip.mud-chip-filled {
    color: #ffffff !important;
}
.kitchen-chip .mud-chip-label,
.kitchen-chip .mud-chip-text,
.kitchen-chip .mud-chip-content {
    color: #ffffff !important;
}
.kitchen-chip .mud-icon-root,
.kitchen-chip .mud-icon,
.kitchen-chip svg {
    color: #ffffff !important;
    fill: currentColor !important;
}

html,
body {
    min-height: 100%;
    background: var(--qres-bg);
    color: var(--qres-ink);
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a {
    color: var(--qres-rust);
}

.qres-main {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 239, 220, 0.62)),
        linear-gradient(90deg, rgba(17, 116, 83, 0.07), transparent 34%, rgba(141, 62, 32, 0.08)),
        var(--qres-bg);
}

.qres-shell {
    padding: 24px;
}

.qres-page {
    display: grid;
    gap: 16px;
}

.qres-page-header,
.qres-content-card,
.qres-filter-panel,
.qres-loading-panel,
.qres-empty-state,
.qres-stat-card,
.qres-kanban-column,
.qres-order-card,
.qres-kitchen-card,
.qres-dashboard-tile {
    border: 1px solid var(--qres-line);
    background: var(--qres-paper);
    box-shadow: var(--qres-shadow);
    backdrop-filter: blur(16px);
}

.qres-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    padding: 24px;
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(184, 135, 45, 0.12), transparent 42%),
        repeating-linear-gradient(90deg, rgba(24, 21, 16, 0.035) 0 1px, transparent 1px 44px),
        var(--qres-paper);
}

.qres-page-header-main,
.qres-appbar-user,
.qres-action-row,
.qres-card-header,
.qres-card-actions,
.qres-filter-actions,
.qres-dialog-title,
.qres-inline-stat,
.qres-row-actions {
    display: flex;
    align-items: center;
}

.qres-page-header-main {
    min-width: 0;
    gap: 16px;
}

.qres-page-header-icon,
.qres-metric-icon,
.qres-dashboard-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #fffaf0;
    background: var(--qres-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.qres-page-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.qres-page-header-copy {
    min-width: 0;
}

.qres-page-header-copy span,
.qres-card-header span,
.qres-filter-copy span,
.qres-dialog-title span,
.qres-kicker {
    display: block;
    color: #7f571a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qres-page-header-copy h1 {
    margin: 5px 0 6px;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    font-weight: 900;
    line-height: 0.95;
}

.qres-page-header-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--qres-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.qres-page-header-actions,
.qres-action-row,
.qres-card-actions,
.qres-filter-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.qres-content-card {
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
}

.qres-card-header {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.qres-card-header h2 {
    margin: 2px 0 0;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 900;
}

.qres-filter-panel {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
}

.qres-filter-copy {
    display: grid;
    gap: 2px;
}

.qres-filter-copy strong {
    color: var(--qres-ink);
    font-size: 1rem;
    font-weight: 950;
}

.qres-filter-content {
    min-width: 0;
}

.qres-table {
    overflow: hidden;
    border: 1px solid var(--qres-line);
    border-radius: 18px;
    background: var(--qres-paper);
    box-shadow: var(--qres-shadow);
}

.qres-table .mud-table-head {
    background: rgba(255, 250, 238, 0.85);
}

.qres-table .mud-table-cell {
    border-color: rgba(24, 21, 16, 0.08);
}

.qres-loading-panel,
.qres-empty-state {
    display: grid;
    min-height: 260px;
    place-items: center;
    gap: 10px;
    padding: 28px;
    border-radius: 18px;
    color: var(--qres-muted);
    text-align: center;
}

.qres-empty-state .mud-icon-root {
    color: var(--qres-gold);
    font-size: 3rem;
}

.qres-empty-state strong {
    color: var(--qres-ink);
    font-size: 1.1rem;
    font-weight: 950;
}

.qres-empty-state span {
    max-width: 440px;
    line-height: 1.55;
}

.qres-empty-actions {
    margin-top: 8px;
}

.qres-dialog-title {
    gap: 12px;
}

.qres-dialog-title h2 {
    margin: 0;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 900;
}

.qres-dialog-body {
    display: grid;
    gap: 14px;
    padding-top: 4px;
}

.qres-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
    padding: 12px 0 4px;
}

.qres-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.qres-form-full {
    grid-column: 1 / -1;
}

.qres-appbar {
    border-bottom: 1px solid rgba(255, 250, 240, 0.1);
    background:
        linear-gradient(90deg, rgba(24, 21, 16, 0.98), rgba(62, 43, 29, 0.96)) !important;
}

.qres-brand {
    display: grid;
    gap: 0;
    margin-left: 6px;
    line-height: 1.05;
}

.qres-brand strong {
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.qres-brand span,
.qres-user-chip span {
    color: rgba(255, 250, 240, 0.64);
    font-size: 0.72rem;
    font-weight: 800;
}

.qres-appbar-user {
    gap: 8px;
}

.qres-user-chip {
    display: grid;
    min-height: 40px;
    align-content: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 250, 240, 0.14);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.08);
}

.qres-user-chip strong {
    color: #fffaf0;
    font-size: 0.86rem;
}

.qres-drawer {
    border-right: 1px solid rgba(255, 250, 240, 0.08);
    background:
        linear-gradient(180deg, #181510, #2a1d16 58%, #181510) !important;
}

.qres-drawer-header {
    display: grid;
    gap: 4px;
    padding: 18px 18px 12px;
}

.qres-drawer-header strong {
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

.qres-drawer-header span {
    color: rgba(255, 250, 240, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
}

.qres-nav {
    padding: 6px 10px 18px;
}

.qres-nav .mud-nav-group > .mud-nav-link,
.qres-nav .mud-nav-link {
    min-height: 42px;
    border-radius: 12px;
    color: rgba(255, 250, 240, 0.76);
    font-weight: 800;
}

.qres-nav .mud-nav-link.active,
.qres-nav .mud-nav-link:hover {
    background: rgba(255, 250, 240, 0.1);
    color: #fffaf0;
}

.qres-nav .mud-nav-link.active {
    border: 1px solid rgba(184, 135, 45, 0.32);
}

.qres-nav .mud-nav-link.active,
.qres-nav .mud-nav-link.active .mud-nav-link-text,
.qres-nav .mud-nav-link.active .mud-nav-link-icon,
.qres-nav .mud-nav-link.active .mud-icon-root {
    color: #fffaf0 !important;
}

.qres-kanban-grid,
.qres-kitchen-grid {
    display: grid;
    gap: 14px;
}

.qres-kanban-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.qres-kitchen-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.qres-kanban-column {
    display: grid;
    gap: 12px;
    min-height: 66vh;
    padding: 14px;
    border-radius: 18px;
}

.qres-kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qres-kanban-column-header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.qres-order-card,
.qres-kitchen-card,
.qres-dashboard-tile {
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 239, 0.82)),
        var(--qres-panel);
}

.qres-order-card.updated {
    border-color: rgba(217, 119, 6, 0.48);
    background: #fff7df;
}

.qres-order-item {
    border: 1px solid transparent;
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.qres-order-item.status-updated {
    border-color: rgba(39, 107, 131, 0.34);
    background: rgba(218, 244, 255, 0.92);
    box-shadow: 0 0 0 3px rgba(39, 107, 131, 0.12);
    animation: qres-item-status-pulse 1.8s ease-out;
}

@keyframes qres-item-status-pulse {
    0% {
        border-color: rgba(39, 107, 131, 0.6);
        background: rgba(196, 238, 255, 0.98);
        box-shadow: 0 0 0 0 rgba(39, 107, 131, 0.28);
    }

    55% {
        box-shadow: 0 0 0 7px rgba(39, 107, 131, 0.06);
    }

    100% {
        border-color: rgba(39, 107, 131, 0.18);
        background: rgba(218, 244, 255, 0.22);
        box-shadow: 0 0 0 3px rgba(39, 107, 131, 0);
    }
}

.qres-order-meta {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.66);
}

.qres-order-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--qres-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.qres-status-dot {
    display: inline-flex;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--qres-blue);
}

.qres-status-dot.warning {
    background: var(--qres-gold);
}

.qres-status-dot.muted {
    background: #c8c0b2;
}

.qres-login-shell {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 14%, rgba(184, 135, 45, 0.2), transparent 32%),
        radial-gradient(circle at 86% 22%, rgba(39, 107, 131, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 239, 220, 0.66)),
        var(--qres-bg);
}

.qres-login-shell::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(24, 21, 16, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 21, 16, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(135deg, transparent, #000 24%, #000 76%, transparent);
    content: "";
}

.qres-login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 468px);
}

.qres-login-panel {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(24, 21, 16, 0.1);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 239, 0.88)),
        var(--qres-paper);
    box-shadow:
        0 28px 80px rgba(24, 21, 16, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.76) inset;
    backdrop-filter: blur(18px);
}

.qres-login-brand {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 34px 30px 22px;
    text-align: center;
}

.qres-login-mark {
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border: 1px solid rgba(184, 135, 45, 0.24);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 226, 0.9));
    box-shadow:
        0 18px 42px rgba(184, 135, 45, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.qres-login-title {
    display: grid;
    gap: 4px;
}

.qres-login-title span {
    color: var(--qres-rust);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qres-login-title .mud-typography-h4 {
    margin: 0;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 7vw, 2.7rem);
    font-weight: 900;
    line-height: 1;
}

.qres-login-title .mud-typography-body2 {
    max-width: 330px;
    margin: 2px auto 0;
    color: var(--qres-muted);
    font-weight: 750;
}

.qres-login-content {
    padding: 0 30px 30px !important;
}

.qres-login-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.qres-login-highlights div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--qres-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.qres-login-highlights .mud-icon-root {
    color: var(--qres-blue);
}

.qres-login-field .mud-input-outlined-border {
    border-color: rgba(24, 21, 16, 0.14) !important;
    border-radius: 14px !important;
}

.qres-login-field .mud-input {
    min-height: 46px;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 22px rgba(24, 21, 16, 0.045);
    transition:
        background-color 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.qres-login-field .mud-input:hover {
    background: rgba(255, 255, 255, 0.82);
}

.qres-login-field .mud-input:focus-within {
    background: #fff;
    box-shadow:
        0 10px 26px rgba(24, 21, 16, 0.08),
        0 0 0 3px rgba(39, 107, 131, 0.11);
}

.qres-login-field .mud-input-slot {
    min-height: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 10px !important;
    font-size: 0.96rem;
    line-height: 1.25;
}

.qres-login-field .mud-input-adornment {
    height: 46px;
    margin-top: 0 !important;
    color: var(--qres-muted);
}

.qres-login-field .mud-input-adornment .mud-icon-root {
    font-size: 1.25rem;
}

.qres-login-field .mud-input-label {
    color: var(--qres-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.qres-login-button {
    min-height: 48px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #276b83, #164d60) !important;
    box-shadow: 0 14px 30px rgba(39, 107, 131, 0.28);
    font-weight: 950 !important;
    letter-spacing: 0.02em;
}

.qres-login-button:hover:not(:disabled) {
    box-shadow: 0 18px 38px rgba(39, 107, 131, 0.34);
    transform: translateY(-1px);
}

.qres-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--qres-soft);
    font-size: 0.78rem;
    font-weight: 850;
}

@media (max-width: 520px) {
    .qres-login-shell {
        padding: 16px;
    }

    .qres-login-brand {
        padding: 28px 22px 18px;
    }

    .qres-login-content {
        padding: 0 20px 24px !important;
    }

    .qres-login-highlights {
        grid-template-columns: 1fr;
    }
}

.menu-header {
    margin-bottom: 16px;
}

.menu-header > .mud-stack-root {
    padding: 24px;
    border: 1px solid var(--qres-line);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(184, 135, 45, 0.12), transparent 42%),
        var(--qres-paper);
    box-shadow: var(--qres-shadow);
}

.menu-tabs {
    border-radius: 18px;
    overflow: hidden;
    background: var(--qres-paper);
    box-shadow: var(--qres-shadow);
}

.tab-content-wrapper {
    padding: 18px;
}

.category-card,
.product-table {
    border: 1px solid var(--qres-line);
    border-radius: 16px;
    background: var(--qres-panel);
    box-shadow: 0 16px 40px rgba(24, 21, 16, 0.075);
}

.category-card {
    border-left: 5px solid var(--qres-gold);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(24, 21, 16, 0.13);
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    border: 1px dashed rgba(24, 21, 16, 0.2);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.72);
    color: var(--qres-muted);
    text-align: center;
}

.product-search {
    min-width: 250px;
    max-width: 350px;
}

.product-price {
    color: var(--qres-rust);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
}

.mud-button-root {
    border-radius: 12px;
    font-weight: 850;
}

.mud-input-control {
    margin-bottom: 4px;
}

.mud-dialog {
    border-radius: 20px;
}

.mud-dialog .mud-dialog-title {
    padding: 22px 22px 10px;
}

.mud-dialog .mud-dialog-content {
    padding: 12px 22px;
}

.mud-dialog .mud-dialog-actions {
    padding: 10px 22px 22px;
}

.validation-message {
    color: var(--qres-rust);
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff7df;
    bottom: 0;
    box-shadow: 0 -1px 16px rgba(24, 21, 16, 0.18);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (max-width: 1260px) {
    .qres-kanban-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .qres-shell {
        padding: 14px;
    }

    .qres-page-header,
    .qres-filter-panel {
        grid-template-columns: 1fr;
    }

    .qres-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .qres-stat-grid,
    .qres-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .qres-page-header,
    .qres-content-card,
    .qres-filter-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .qres-page-header-main,
    .qres-appbar-user {
        align-items: flex-start;
    }

    .qres-page-header-copy h1 {
        font-size: 2.35rem;
    }

    .qres-stat-grid,
    .qres-dashboard-grid,
    .qres-form-grid {
        grid-template-columns: 1fr;
    }

    .qres-action-row,
    .qres-dialog-actions,
    .qres-page-header-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .qres-user-chip {
        display: none;
    }
}

/* ===== TableList page styles ===== */
.floor-command {
    --floor-ink: #181510;
    --floor-muted: #6f675b;
    --floor-soft: #958a7b;
    --floor-line: rgba(24, 21, 16, 0.11);
    --floor-line-strong: rgba(24, 21, 16, 0.18);
    --floor-paper: rgba(255, 253, 248, 0.88);
    --floor-panel: #fffbf2;
    --floor-gold: #b8872d;
    --floor-rust: #8d3e20;
    --floor-green: #117453;
    --floor-blue: #276b83;
    --floor-shadow: 0 20px 60px rgba(24, 21, 16, 0.1);
    min-height: calc(100vh - 92px);
    padding: 24px;
    border-radius: 24px;
    color: var(--floor-ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 239, 220, 0.62)),
        linear-gradient(90deg, rgba(17, 116, 83, 0.07), transparent 34%, rgba(141, 62, 32, 0.08)),
        #f4efe6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.floor-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 16px;
    margin-bottom: 16px;
}

.hero-copy,
.hero-panel,
.metric-card,
.table-form-card,
.service-toolbar,
.loading-panel {
    border: 1px solid var(--floor-line);
    background: var(--floor-paper);
    box-shadow: var(--floor-shadow);
    backdrop-filter: blur(16px);

}

.table-form-card {
    padding: 10px;
    margin-bottom: 20px;
}

    .hero-copy {
        position: relative;
        overflow: hidden;
        min-height: 210px;
        padding: 26px;
        border-radius: 20px;
    }

.hero-copy::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(184, 135, 45, 0.1), transparent 42%),
        repeating-linear-gradient(90deg, rgba(24, 21, 16, 0.035) 0 1px, transparent 1px 44px);
    content: "";
    pointer-events: none;
}

.hero-copy > * {
    position: relative;
}

.kicker,
.panel-label,
.toolbar-copy span,
.form-context p,
.form-preview span,
.order-panel-header span,
.draft-head span,
.checkout-bar span {
    color: #7f571a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(184, 135, 45, 0.28);
    border-radius: 999px;
    background: rgba(255, 249, 235, 0.78);
}

.hero-copy h1 {
    margin: 18px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 5vw, 5.2rem);
    font-weight: 900;
    line-height: 0.92;
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    color: var(--floor-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.hero-insights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-insights span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--floor-muted);
    font-weight: 800;
}

.hero-insights b {
    color: var(--floor-ink);
}

.hero-panel {
    display: grid;
    align-content: space-between;
    min-height: 210px;
    padding: 24px;
    border-radius: 20px;
    background:
        linear-gradient(155deg, rgba(24, 21, 16, 0.96), rgba(62, 43, 29, 0.93)),
        #181510;
    color: #fffaf0;
}

.hero-time {
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 900;
    line-height: 0.9;
}

.hero-meta {
    display: grid;
    gap: 8px;
    color: rgba(255, 250, 240, 0.72);
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.metric-card {
    display: grid;
    min-height: 104px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
}

.metric-card .mud-icon-root {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 14px;
    color: white;
}

.metric-card span {
    display: block;
    color: var(--floor-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--floor-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-black .mud-icon-root { background: #181510; }
.metric-amber .mud-icon-root { background: var(--floor-gold); }
.metric-green .mud-icon-root { background: var(--floor-green); }
.metric-rust .mud-icon-root { background: var(--floor-rust); }

.table-form-card {
    position: relative;
    overflow: hidden;
    margin: 22px 0 24px;
    padding: 22px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 18px 18px, rgba(184, 135, 45, 0.16), transparent 28px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 228, 0.82)),
        var(--floor-panel);
    animation: mud-popover-slide-y 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.table-form-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--floor-gold), var(--floor-rust), var(--floor-green));
    content: "";
}

.form-card-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(24, 21, 16, 0.08);
}

.form-title-lockup {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.form-avatar {
    flex: 0 0 auto;
    box-shadow: 0 12px 28px rgba(184, 135, 45, 0.22);
}

.form-title-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.form-eyebrow {
    color: #7f571a;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.form-title-copy h2 {
    margin: 0;
    color: var(--floor-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.05;
}

.form-title-copy p {
    margin: 0;
    color: var(--floor-muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.45;
}

.form-close-button {
    flex: 0 0 auto;
    border-radius: 999px !important;
}

.form-context {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 18px;
}

.form-guidance {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(184, 135, 45, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 238, 0.9));
}

.form-guidance p {
    margin: 0;
    color: var(--floor-muted);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.6;
    text-transform: none;
}

.form-guidance b {
    color: var(--floor-ink);
    font-weight: 900;
}

.form-preview {
    display: grid;
    position: relative;
    overflow: hidden;
    min-height: 132px;
    align-content: center;
    gap: 10px;
    padding: 20px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(24, 21, 16, 0.96), rgba(84, 54, 32, 0.94));
    color: #fffaf0;
}

.form-preview::after {
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(241, 193, 94, 0.25);
    border-radius: 999px;
    content: "";
}

.form-preview span {
    color: rgba(255, 250, 240, 0.68);
}

.form-preview strong {
    overflow: hidden;
    color: #fffaf0;
    font-size: 1.25rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-number {
    display: flex;
    width: fit-content;
    align-items: baseline;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(241, 193, 94, 0.24);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.08);
}

.preview-number small {
    color: rgba(255, 250, 240, 0.7);
    font-size: 0.72rem;
    font-weight: 850;
}

.preview-number b {
    color: #f1c15e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    line-height: 1;
}

.form-input-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 160px) auto;
    gap: 14px;
    align-items: end;
    padding-top: 4px;
}

.form-name-field,
.form-number-field {
    min-width: 0;
}

.form-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    justify-content: flex-end;
}

.form-save-button {
    box-shadow: 0 10px 24px rgba(184, 135, 45, 0.26);
}

.form-actions .mud-button-root,
.hero-actions .mud-button-root,
.table-footer .mud-button-root {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 850;
}

.service-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 210px) minmax(0, 1fr) minmax(240px, 340px);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 18px;
}

.toolbar-copy {
    display: grid;
    gap: 2px;
}

.toolbar-copy strong {
    color: var(--floor-ink);
    font-size: 1rem;
    font-weight: 950;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(24, 21, 16, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--floor-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.filter-pill.active,
.filter-pill:hover,
.filter-pill:focus-visible {
    border-color: rgba(184, 135, 45, 0.42);
    background: #181510;
    color: #fffaf0;
    box-shadow: 0 10px 24px rgba(24, 21, 16, 0.14);
    outline: none;
}

.table-search {
    min-width: 0;
}

.loading-panel {
    display: grid;
    min-height: 360px;
    place-items: center;
    border-radius: 20px;
}

.floor-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* --- Masa kartı ana yapısı --- */
.table-tile {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 232px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 20px;
    background:
        linear-gradient(168deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 245, 0.88) 60%, rgba(248, 242, 228, 0.72)),
        var(--floor-panel);
    box-shadow:
        0 1px 2px rgba(24, 21, 16, 0.06),
        0 8px 28px rgba(24, 21, 16, 0.06);
    cursor: pointer;
    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 220ms ease;
}

/* Sol kenar durum aksanı */
.card-accent {
    flex: 0 0 5px;
    min-height: 100%;
    border-radius: 20px 0 0 20px;
    background: #d4cec2;
    transition: background 200ms ease;
}

.card-content {
    display: flex;
    flex: 1 1 0%;
    min-width: 0;
    flex-direction: column;
    padding: 16px 16px 14px;
}

/* Hover / focus efekti */
.table-tile:hover,
.table-tile:focus-within {
    transform: translateY(-4px) scale(1.005);
    border-color: rgba(184, 135, 45, 0.32);
    box-shadow:
        0 2px 4px rgba(24, 21, 16, 0.06),
        0 20px 48px rgba(24, 21, 16, 0.11),
        0 0 0 3px rgba(184, 135, 45, 0.08);
}

.table-tile.selected {
    border-color: rgba(184, 135, 45, 0.45);
    box-shadow:
        0 2px 4px rgba(24, 21, 16, 0.06),
        0 20px 48px rgba(24, 21, 16, 0.13),
        0 0 0 3px rgba(184, 135, 45, 0.14);
}

/* Durum renklerine göre sol kenar */
.table-created .card-accent { background: var(--floor-blue); }
.table-preparing .card-accent { background: #d97706; }
.table-ready .card-accent { background: var(--floor-green); }
.table-served .card-accent { background: var(--floor-gold); }
.table-empty .card-accent { background: #d4cec2; }
.table-inactive {
    opacity: 0.65;
    filter: grayscale(0.2);
}
.table-inactive .card-accent { background: #9b1c1c; }

/* Aktif siparişli kartlarda belirgin durum vurgusu */
.table-created {
    border-color: rgba(39, 107, 131, 0.5);
    background:
        linear-gradient(168deg, rgba(249, 254, 255, 0.98), rgba(218, 244, 255, 0.94) 56%, rgba(56, 189, 248, 0.36)),
        var(--floor-panel);
    box-shadow:
        0 1px 2px rgba(22, 78, 99, 0.1),
        0 14px 34px rgba(39, 107, 131, 0.22);
}

.table-preparing {
    border-color: rgba(217, 119, 6, 0.62);
    background:
        linear-gradient(168deg, rgba(255, 252, 242, 0.99), rgba(254, 230, 170, 0.96) 54%, rgba(245, 158, 11, 0.52)),
        var(--floor-panel);
    box-shadow:
        0 1px 2px rgba(120, 53, 15, 0.12),
        0 14px 36px rgba(217, 119, 6, 0.28);
}

.table-ready {
    border-color: rgba(17, 116, 83, 0.62);
    background:
        linear-gradient(168deg, rgba(245, 255, 249, 0.99), rgba(187, 247, 208, 0.96) 54%, rgba(34, 197, 94, 0.48)),
        var(--floor-panel);
    box-shadow:
        0 1px 2px rgba(6, 78, 59, 0.12),
        0 14px 36px rgba(17, 116, 83, 0.28);
}

.table-created .table-number {
    background: linear-gradient(145deg, #3783a0, #22566a);
}

.table-preparing .table-number {
    background: linear-gradient(145deg, #f59e0b, #b45309);
}

.table-ready .table-number {
    background: linear-gradient(145deg, #22a96f, #0d6849);
}

/* --- Topline: masa no + başlık + durum chip --- */
.table-topline {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.table-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #1f1c16, #2a2620);
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 900;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(24, 21, 16, 0.18);
}

.table-title {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.table-title h2 {
    overflow: hidden;
    margin: 0;
    color: var(--floor-ink);
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-subtitle {
    color: var(--floor-soft);
    font-size: 0.74rem;
    font-weight: 800;
}

.table-subtitle-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -1px;
    overflow: hidden;
}

.table-nickname {
    color: var(--floor-soft);
    font-size: 0.74rem;
    font-weight: 500;
    opacity: 0.85;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-chip-slot {
    width: max-content;
    max-width: none;
    justify-self: end;
}

.status-chip-slot .status-chip {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-chip-slot .mud-chip-content {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

/* --- Body: sipariş meta + tutar --- */
.table-body {
    display: flex;
    flex: 1 1 0%;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 14px 0 10px;
}

.body-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--floor-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.body-meta .meta-icon {
    color: var(--floor-soft);
    font-size: 1rem;
}

.order-ref {
    color: var(--floor-ink);
    font-weight: 950;
}

.meta-divider {
    color: var(--floor-soft);
    opacity: 0.6;
}

.elapsed-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(24, 21, 16, 0.06);
    color: var(--floor-ink);
    font-size: 0.72rem;
    font-weight: 900;
}

/* Tutar badge */
.amount-badge {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(141, 62, 32, 0.06), rgba(184, 135, 45, 0.06));
}

.amount-badge small {
    color: var(--floor-soft);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.amount-badge strong {
    color: var(--floor-rust);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
}

.amount-badge.amount-muted {
    background: rgba(24, 21, 16, 0.03);
}

.amount-badge.amount-muted strong {
    color: #b5ad9f;
}

/* --- Footer: butonlar --- */
/* --- Footer: butonlar (Expert UI Redesign) --- */
.table-footer {
    display: grid;
    gap: 14px;
    padding: 18px 0 8px;
    border-top: 1px solid var(--floor-line);
    background: linear-gradient(180deg, transparent, rgba(24, 21, 16, 0.01));
}

.card-primary-btn {
    height: 46px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, #2a2620, #181510) !important;
    box-shadow: 
        0 4px 12px rgba(24, 21, 16, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
    color: #fffaf0 !important;
    font-size: 0.88rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.card-primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #3e3830, #1f1c16) !important;
    box-shadow: 
        0 12px 24px rgba(24, 21, 16, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
}

.card-primary-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(24, 21, 16, 0.1) !important;
}

.footer-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(24, 21, 16, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.footer-secondary .mud-icon-button,
.footer-secondary .table-note-action {
    width: 100% !important;
    height: 38px !important;
    border: 1px solid rgba(24, 21, 16, 0.04) !important;
    border-radius: 11px !important;
    background: #ffffff !important;
    color: var(--floor-muted) !important;
    box-shadow: 0 2px 4px rgba(24, 21, 16, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer-secondary .mud-icon-button:hover,
.footer-secondary .table-note-action:hover {
    border-color: var(--floor-line-strong) !important;
    background: var(--floor-panel) !important;
    color: var(--floor-ink) !important;
    box-shadow: 0 6px 16px rgba(24, 21, 16, 0.08) !important;
    transform: translateY(-2px);
}

/* Specific colors for critical actions */
.footer-secondary .mud-icon-button[title*="İptal"]:hover {
    color: var(--floor-rust) !important;
    background: #fff5f2 !important;
    border-color: rgba(141, 62, 32, 0.2) !important;
}

.footer-secondary .mud-icon-button[title*="Kapat"]:hover {
    color: var(--floor-green) !important;
    background: #f2fff9 !important;
    border-color: rgba(17, 116, 83, 0.2) !important;
}

/* Sipariş dialog stilleri */
.order-panel-dialog {
    border-radius: 20px !important;
    overflow: hidden;
}

.order-panel-dialog .mud-dialog-content {
    padding: 0 22px 12px !important;
    max-height: min(72vh, 640px);
    overflow-y: auto;
}

.order-panel-dialog .mud-dialog-title {
    padding: 18px 22px 10px !important;
    border-bottom: 1px solid rgba(24, 21, 16, 0.08);
}

.order-panel-dialog-actions {
    padding: 0 22px 18px !important;
    border-top: 1px solid rgba(24, 21, 16, 0.08);
}

.order-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.order-panel-header h2 {
    margin: 4px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.9rem;
    font-weight: 900;
}

.order-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.order-summary-strip div {
    padding: 12px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.order-summary-strip small {
    display: block;
    color: var(--floor-muted);
    font-weight: 850;
}

.order-summary-strip strong {
    display: block;
    margin-top: 3px;
    color: var(--floor-ink);
    font-weight: 950;
}

.product-rail {
    display: grid;
    max-height: 292px;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
}

.product-pill {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--floor-ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.product-pill:hover,
.product-pill:focus-visible {
    transform: translateX(2px);
    border-color: rgba(184, 135, 45, 0.4);
    background: #fff7df;
    outline: none;
}

.product-pill span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.product-pill strong,
.product-pill small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-pill small {
    color: var(--floor-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.product-pill b {
    flex: 0 0 auto;
    color: var(--floor-rust);
}

.draft-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
}

.draft-head small {
    color: var(--floor-muted);
    font-weight: 850;
}

.empty-draft {
    display: grid;
    place-items: center;
    min-height: 156px;
    padding: 18px;
    border: 1px dashed rgba(24, 21, 16, 0.2);
    border-radius: 16px;
    color: var(--floor-muted);
    text-align: center;
}

.empty-draft .mud-icon-root {
    margin-bottom: 8px;
    color: var(--floor-gold);
    font-size: 2.4rem;
}

.empty-draft strong {
    color: var(--floor-ink);
}

.draft-list {
    display: grid;
    gap: 10px;
}

.draft-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
}

.draft-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

/* Harici kalem düzenleme alanları */
.external-item-inputs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 4px;
}

.ext-input-name {
    flex: 2;
    min-width: 0;
}

.ext-input-price {
    flex: 1;
    min-width: 90px;
}

.external-item-inputs .mud-input-control {
    margin-top: 0 !important;
}

.external-item-inputs .mud-input-outlined-border {
    border-color: rgba(24, 21, 16, 0.08) !important;
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease-in-out;
}

.external-item-inputs .mud-input-outlined-border:hover {
    border-color: rgba(24, 21, 16, 0.2) !important;
    background-color: #ffffff !important;
}

.external-item-inputs .mud-input-control:focus-within .mud-input-outlined-border {
    border-color: var(--floor-gold, #b8872d) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(184, 135, 45, 0.1);
}

.external-item-inputs .mud-input-slot {
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
    color: var(--floor-ink) !important;
    font-weight: 500;
}

.draft-copy strong,
.draft-copy span,
.draft-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.draft-copy small {
    color: var(--floor-rust);
    font-size: 0.76rem;
    font-weight: 850;
}

.draft-copy span {
    color: var(--floor-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.option-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(24, 21, 16, 0.48);
}

.option-picker {
    display: grid;
    width: min(440px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    gap: 14px;
    overflow: auto;
    padding: 18px;
    border-radius: 18px;
    background: #fffaf0;
    box-shadow: 0 28px 80px rgba(24, 21, 16, 0.28);
}

.option-picker-header,
.option-picker-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.option-picker-header span,
.option-picker-price span {
    color: var(--floor-muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.option-picker-header h3 {
    margin: 2px 0 0;
    font-size: 1.2rem;
    font-weight: 950;
}

.option-picker-price strong {
    color: var(--floor-rust);
    font-size: 1.08rem;
}

.option-group {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.option-group legend {
    margin-bottom: 2px;
    color: var(--floor-ink);
    font-size: 0.92rem;
    font-weight: 900;
}

.option-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 21, 16, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.option-choice span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
}

.option-choice b {
    color: var(--floor-rust);
    font-size: 0.84rem;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 999px;
    background: #fffaf0;
}

.stepper b {
    min-width: 26px;
    text-align: center;
}

.discount-panel {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
}

.discount-panel-head,
.total-breakdown span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.discount-panel-head span,
.total-breakdown span {
    color: var(--floor-muted);
    font-weight: 850;
}

.discount-panel-head strong,
.total-breakdown b {
    color: var(--floor-rust);
    font-weight: 950;
}

.discount-mode {
    display: flex;
    gap: 8px;
}

.discount-fields {
    max-width: 260px;
}

.total-breakdown {
    display: grid;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(24, 21, 16, 0.08);
}

.checkout-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(184, 135, 45, 0.18);
    border-radius: 20px;
    background: linear-gradient(135deg, #fffbf2, #ffffff);
    box-shadow: 0 10px 30px rgba(24, 21, 16, 0.06), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.checkout-bar strong {
    display: block;
    margin-top: 2px;
    color: var(--floor-rust);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .filter-pill,
    .product-pill,
    .table-tile {
        transition: none;
    }
}

@media (max-width: 1260px) {
    /* Sipariş paneli artık dialog olarak açılıyor, sidebar layout gereksiz */
}

@media (max-width: 980px) {
    .floor-command {
        padding: 14px;
        border-radius: 18px;
    }

    .floor-hero,
    .service-toolbar {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-context {
        grid-template-columns: 1fr;
    }

    .form-input-row {
        grid-template-columns: minmax(0, 1fr) minmax(130px, 160px);
    }

    .form-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero-copy,
    .hero-panel,
    .table-form-card {
        padding: 16px;
        border-radius: 16px;
    }

    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .metric-grid,
    .order-summary-strip {
        grid-template-columns: 1fr;
    }

    .table-grid {
        grid-template-columns: 1fr;
    }

    .draft-item {
        grid-template-columns: 1fr;
    }

    .checkout-bar,
    .hero-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-bar > div:last-child {
        flex-direction: column;
    }

    .table-form-card {
        margin: 18px 0 22px;
    }

    .form-card-header {
        align-items: flex-start;
    }

    .form-title-lockup {
        align-items: flex-start;
    }

    .form-input-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        grid-column: auto;
    }
}

.align-right {
    margin-left: auto !important;
}

/* ===== Order Report Stilleri ===== */
/* ===== Sayfa Düzeni ===== */
.qres-report-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(24, 21, 16, 0.11);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 16px 40px rgba(24, 21, 16, 0.075);
    backdrop-filter: blur(16px);
}

.qres-report-filter-copy {
    display: grid;
    gap: 2px;
}

.qres-report-filter-copy span {
    display: block;
    color: #7f571a;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.qres-report-filter-copy strong {
    color: #181510;
    font-size: 1rem;
    font-weight: 900;
}

.qres-report-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== İstatistik Grid & Kartları ===== */
.qres-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.qres-stat-card {
    position: relative;
    display: grid;
    min-height: 104px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    padding: 20px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #fffdf8);
    box-shadow: 0 10px 25px -5px rgba(24, 21, 16, 0.04), 0 8px 10px -6px rgba(24, 21, 16, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qres-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 135, 45, 0.15);
    box-shadow: 0 20px 40px -12px rgba(24, 21, 16, 0.12);
}

.qres-metric-icon {
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #181510;
    color: #fffaf0;
}

.qres-metric-icon.gold { background: #b8872d; }
.qres-metric-icon.green { background: #117453; }
.qres-metric-icon.rust { background: #8d3e20; }

.qres-stat-body {
    display: grid;
    gap: 1px;
}

.qres-stat-card span,
.qres-stat-body span {
    display: block;
    color: #6f675b;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.qres-stat-card strong,
.qres-stat-body strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #181510;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Tablo Stilleri ===== */
.qres-report-table {
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
}

.qres-report-table .mud-table-head {
    background: rgba(255, 250, 238, 0.85);
}

.qres-report-table .mud-table-head th {
    color: #6f675b;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    border-color: rgba(24, 21, 16, 0.06);
}

.qres-report-table .mud-table-cell {
    border-color: rgba(24, 21, 16, 0.06);
    font-size: 0.88rem;
}

.qres-report-row:hover {
    background: rgba(255, 250, 239, 0.6) !important;
}

.qres-report-orderno {
    color: #181510;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    font-weight: 900;
}

.qres-report-nickname {
    display: inline-block;
    margin-left: 4px;
    color: #958a7b;
    font-size: 0.8rem;
    font-weight: 700;
}

.qres-report-amount {
    color: #8d3e20;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    font-weight: 900;
}

.qres-report-date {
    display: grid;
    gap: 1px;
}

.qres-report-date span {
    display: block;
    color: #181510 !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    text-transform: none !important;
}

.qres-report-date small {
    color: #958a7b;
    font-size: 0.72rem;
    font-weight: 700;
}

.qres-stat-hint {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
    margin-top: 4px;
    color: #958a7b !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    line-height: 1 !important;
}

.qres-stat-hint .mud-icon-root {
    font-size: 0.85rem !important;
    margin: 0 !important;
}

@media (max-width: 980px) {
    .qres-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .qres-report-filter {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        border-radius: 14px;
    }
}

.qres-report-discount {
    color: #117453;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    font-weight: 900;
}

/* ==========================================================================
   QR MENU STYLES (Modern Gold & Charcoal Theme)
   ========================================================================== */

.qr-menu-container {
    min-height: 100vh;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: white;
}

.qr-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-glass-wrapper {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.restaurant-name {
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.restaurant-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gold-text {
    background: linear-gradient(135deg, #D4AF37 0%, #F1D371 50%, #AA8E39 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-scroll-container {
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-chips-wrapper {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
}

.category-chip {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-chip.active {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #121212;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.category-title-section {
    position: relative;
    padding-left: 12px;
}

.gold-divider {
    height: 4px;
    width: 60px;
    background: #D4AF37;
    border-radius: 2px;
    margin-top: 4px;
}

.gold-divider.sm {
    width: 40px;
    height: 3px;
}

.search-animate {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.products-grid {
    display: grid;
    gap: 16px;
}

.premium-product-card {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.product-card-content {
    display: flex;
    padding: 16px;
    gap: 16px;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF !important;
}

.product-name {
    font-weight: 600 !important;

    line-height: 1.2;
    margin-bottom: 6px;
}

.product-description {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.qr-menu-container .product-price {
    color: #ed5f29 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.currency {
    font-size: 0.8rem;
    margin-left: 2px;
    font-weight: 400;
}

.product-image-section {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-product-card:hover .image-wrapper img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
}

.qr-menu-container .search-input-premium .mud-input-slot {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px;
    color: white !important;
}

.qr-menu-container .search-input-premium .mud-input-underline:before,
.qr-menu-container .search-input-premium .mud-input-underline:after {
    display: none;
}

.qr-menu-container .image-placeholder .mud-icon-root {
    font-size: 2.5rem !important;
}

/* ==========================================================================
   KITCHEN KANBAN STYLES
   ========================================================================== */

.qres-page {
    display: grid;
    gap: 16px;
}

.qres-kanban-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.qres-kanban-column {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 66vh;
    padding: 14px;
    border: 1px solid rgba(24, 21, 16, 0.11);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.88);
    box-shadow: 0 20px 60px rgba(24, 21, 16, 0.1);
    backdrop-filter: blur(16px);
}

.qres-kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(24, 21, 16, 0.08);
}

.qres-kanban-column-header h2 {
    margin: 0;
    color: #181510;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 900;
}

.qres-order-card {
    overflow: hidden;
    border: 1px solid rgba(24, 21, 16, 0.09);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 239, 0.82)),
        #fffbf2;
    box-shadow: 0 16px 40px rgba(24, 21, 16, 0.075);
}

.qres-order-card.updated {
    border-color: rgba(217, 119, 6, 0.48);
    background: #fff7df;
}

.qres-order-item {
    border: 1px solid transparent;
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.qres-order-item.status-updated {
    border-color: rgba(39, 107, 131, 0.34);
    background: rgba(218, 244, 255, 0.92);
    box-shadow: 0 0 0 3px rgba(39, 107, 131, 0.12);
    animation: qres-item-status-pulse 1.8s ease-out;
}

@keyframes qres-item-status-pulse {
    0% {
        border-color: rgba(39, 107, 131, 0.6);
        background: rgba(196, 238, 255, 0.98);
        box-shadow: 0 0 0 0 rgba(39, 107, 131, 0.28);
    }

    55% {
        box-shadow: 0 0 0 7px rgba(39, 107, 131, 0.06);
    }

    100% {
        border-color: rgba(39, 107, 131, 0.18);
        background: rgba(218, 244, 255, 0.22);
        box-shadow: 0 0 0 3px rgba(39, 107, 131, 0);
    }
}

.qres-order-meta {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.66);
}

.qres-order-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #6f675b;
    font-size: 0.78rem;
    font-weight: 800;
}

.qres-status-dot {
    display: inline-flex;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #276b83;
}

.qres-status-dot.warning {
    background: #b8872d;
}

.qres-status-dot.muted {
    background: #c8c0b2;
}

@media (max-width: 1260px) {
    .qres-kanban-grid {
        grid-template-columns: 1fr;
    }

    .qres-kanban-column {
        min-height: auto;
    }
}


/* ==========================================================================
   RESTAURANT DASHBOARD STYLES (Merged from scoped CSS)
   ========================================================================== */

.qres-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.qres-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    padding: 20px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #fffdf8);
    box-shadow: 0 10px 25px -5px rgba(24, 21, 16, 0.04), 0 8px 10px -6px rgba(24, 21, 16, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qres-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 135, 45, 0.15);
    box-shadow: 0 20px 40px -12px rgba(24, 21, 16, 0.12);
}

.qres-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #181510;
    color: #fffaf0;
    margin-bottom: 12px;
    box-shadow: 0 8px 16px -4px rgba(24, 21, 16, 0.2);
}

.qres-metric-icon.gold     { background: linear-gradient(135deg, #d4af37, #b8872d); }
.qres-metric-icon.green    { background: linear-gradient(135deg, #18a379, #117453); }
.qres-metric-icon.rust     { background: linear-gradient(135deg, #b14e28, #8d3e20); }
.qres-metric-icon.charcoal { background: linear-gradient(135deg, #434343, #181510); }

.qres-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qres-stat-card span {
    color: #958a7b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.qres-stat-card strong {
    color: #181510;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
}

.qres-stat-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: #b0a493;
    font-size: 0.7rem;
    font-weight: 700;
}

.qres-stat-pulse {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b8372a;
}

.qres-stat-pulse::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: statPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes statPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

.qres-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.qres-table-legend {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qres-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6f675b;
    font-size: 0.72rem;
    font-weight: 800;
}

.qres-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.qres-legend-dot.available { background: #117453; }
.qres-legend-dot.occupied { background: #b8872d; }

.qres-table-floor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.qres-table-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    text-align: center;
    transition: all 0.2s ease;
}

.qres-table-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24, 21, 16, 0.08);
}

.qres-table-tile.occupied {
    border-color: rgba(184, 135, 45, 0.28);
    background: linear-gradient(180deg, rgba(255, 250, 239, 0.95), rgba(255, 247, 223, 0.7));
}

.qres-table-tile.available {
    border-color: rgba(17, 116, 83, 0.18);
}

.qres-table-tile-no {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #181510;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 900;
}

.qres-table-tile.occupied .qres-table-tile-no { background: #b8872d; }
.qres-table-tile.available .qres-table-tile-no { background: #117453; }

.qres-table-tile-name {
    color: #181510;
    font-size: 0.82rem;
    font-weight: 800;
}

.qres-table-tile-free {
    color: #117453;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.qres-table-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    padding: 12px 18px;
    border: 1px solid rgba(24, 21, 16, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
}

.qres-table-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6f675b;
    font-weight: 700;
}

.qres-table-summary-item strong {
    color: #181510;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 900;
}

.qres-order-timeline {
    display: grid;
    gap: 0;
    position: relative;
}

.qres-order-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.qres-order-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: rgba(24, 21, 16, 0.08);
}

.qres-order-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(24, 21, 16, 0.12);
    background: #fffbf2;
    margin-top: 2px;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.qres-order-timeline-dot.status-new { background: #b8372a; border-color: #b8372a; box-shadow: 0 0 0 3px rgba(184, 55, 42, 0.15); }
.qres-order-timeline-dot.status-preparing { background: #b8872d; border-color: #b8872d; box-shadow: 0 0 0 3px rgba(184, 135, 45, 0.15); }
.qres-order-timeline-dot.status-ready { background: #117453; border-color: #117453; box-shadow: 0 0 0 3px rgba(17, 116, 83, 0.15); }

.qres-order-row-content {
    display: grid;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid rgba(24, 21, 16, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.qres-order-row-content:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(24, 21, 16, 0.06);
}

.qres-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.qres-shortcut-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.qres-shortcut-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 135, 45, 0.22);
    background: rgba(255, 250, 239, 0.85);
    box-shadow: 0 12px 32px rgba(24, 21, 16, 0.08);
}

.qres-shortcut-icon {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #181510;
    color: #fffaf0;
}

.qres-shortcut-icon.gold { background: #b8872d; }
.qres-shortcut-icon.green { background: #117453; }
.qres-shortcut-icon.rust { background: #8d3e20; }

@media (max-width: 1400px) {
    .qres-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .qres-stat-grid, .qres-dashboard-grid, .qres-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .qres-stat-grid, .qres-dashboard-grid, .qres-shortcut-grid { grid-template-columns: 1fr; }
    .qres-table-floor { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .qres-table-summary { flex-direction: column; gap: 8px; }
}

.qres-table-floor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.qres-table-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.25s ease;
}

.qres-table-tile:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 8px 20px rgba(24, 21, 16, 0.06);
}

.qres-table-tile.occupied {
    border-color: rgba(184, 135, 45, 0.2);
    background: linear-gradient(180deg, #fffaf0, #fff7df);
}

.qres-table-tile-no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #181510;
    color: #fffaf0;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 900;
}

.occupied .qres-table-tile-no { background: #b8872d !important; }
.available .qres-table-tile-no { background: #117453 !important; }

.qres-table-tile-name {
    color: #181510;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
}

.qres-table-tile-free {
    color: #117453;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.qres-table-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid rgba(24, 21, 16, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
}

.qres-order-timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qres-order-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 16px;
    position: relative;
    padding-bottom: 12px;
}

.qres-order-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: rgba(24, 21, 16, 0.06);
}

.qres-order-timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #c8c0b2;
    z-index: 1;
    margin-top: 4px;
}

.qres-order-row-content {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(24, 21, 16, 0.05);
}

.qres-order-row-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(24, 21, 16, 0.06);
}

.qres-order-amount {
    color: #8d3e20 !important;
    font-family: Georgia, serif;
    font-weight: 900 !important;
    font-size: 1rem !important;
}

.qres-order-time {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
    color: #958a7b !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

.qres-order-time .mud-icon-root {
    font-size: 1rem !important;
}

.qres-order-row-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 16px 20px !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, #ffffff, #fffefc) !important;
    border: 1px solid rgba(24, 21, 16, 0.08) !important;
    box-shadow: 0 4px 15px rgba(24, 21, 16, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
}

.qres-order-row-content:hover {
    transform: translateX(4px) !important;
    border-color: rgba(184, 135, 45, 0.2) !important;
    box-shadow: 0 12px 30px rgba(24, 21, 16, 0.08) !important;
}

.qres-order-row-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.qres-order-row-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.qres-order-row-info strong {
    color: #181510 !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
}

.qres-order-meta-text {
    color: #958a7b !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}

.qres-order-row-bottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 4px !important;
    padding-top: 10px !important;
    border-top: 1px dashed rgba(24, 21, 16, 0.1) !important;
}

.qres-order-amount {
    color: #8d3e20 !important;
    font-family: 'Outfit', Georgia, serif !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
}

.qres-order-time {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #b0a493 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
}

.qres-order-time .mud-icon-root {
    font-size: 1rem !important;
    color: #d4af37 !important;
}

.qres-order-timeline-dot {
    width: 14px !important;
    height: 14px !important;
    margin-top: 24px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 0 0 1px rgba(24, 21, 16, 0.05) !important;
}

/* Tahsilat Detayları Bölümü */
.qres-payment-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 8px 0;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 250, 240, 0.4));
    border: 1px solid var(--qres-line);
    backdrop-filter: blur(10px);
}

.qres-payment-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.qres-payment-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.8);
}

.qres-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qres-payment-header span {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--qres-muted);
}

.qres-payment-header strong {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: var(--qres-ink);
}

.qres-payment-progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(24, 21, 16, 0.05);
    overflow: hidden;
}

.qres-payment-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.qres-payment-footer {
    display: flex;
    justify-content: flex-end;
}

.qres-payment-footer small {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--qres-muted);
}

/* Ödeme Yöntemi Renkleri */
.method-cash { color: #117453 !important; }
.method-cash .qres-payment-bar { background: linear-gradient(90deg, #117453, #1ed79c); }

.method-creditcard { color: #276b83 !important; }
.method-creditcard .qres-payment-bar { background: linear-gradient(90deg, #276b83, #45b3d9); }

.method-cari { color: #b8872d !important; }
.method-cari .qres-payment-bar { background: linear-gradient(90deg, #b8872d, #f5c76d); }

.method-eft { color: #8d3e20 !important; }
.method-eft .qres-payment-bar { background: linear-gradient(90deg, #8d3e20, #e07a5f); }

/* ==========================================================================
   PRINT RECEIPT STYLES
   ========================================================================== */
.kitchen-receipt {
    box-sizing: border-box;
    width: 72mm;
    max-width: 100%;
    margin: 0 auto;
    padding: 4mm;
    overflow-wrap: anywhere;
    color: #111;
    background: #fff;
    border: 1px solid rgba(24, 21, 16, 0.12);
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.25;
}

.kitchen-receipt__header {
    text-align: center;
}

.kitchen-receipt__eyebrow {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.kitchen-receipt__header h1 {
    margin: 3mm 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.kitchen-receipt__nickname {
    margin-top: 1.5mm;
    font-size: 14px;
    font-weight: 800;
}

.kitchen-receipt__rule {
    height: 0;
    margin: 3mm 0;
    border-top: 1px dashed #111;
}

.kitchen-receipt__meta {
    display: grid;
    gap: 1.5mm;
}

.kitchen-receipt__meta > div,
.kitchen-receipt__summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3mm;
}

.kitchen-receipt__meta span {
    flex: 0 0 auto;
}

.kitchen-receipt__meta strong {
    min-width: 0;
    text-align: right;
}

.kitchen-receipt__summary {
    padding-bottom: 2mm;
    font-size: 13px;
    text-transform: uppercase;
}

.kitchen-receipt__items {
    border-top: 2px solid #111;
}

.kitchen-receipt__item {
    display: grid;
    grid-template-columns: 9mm minmax(0, 1fr);
    gap: 2mm;
    padding: 2mm 0;
    border-bottom: 1px dashed #111;
    align-items: center;
    break-inside: avoid;
    page-break-inside: avoid;
}

.kitchen-receipt__quantity {
    display: grid;
    width: 8mm;
    height: 8mm;
    place-items: center;
    border: 2px solid #111;
    border-radius: 1.5mm;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.kitchen-receipt__item-content {
    min-width: 0;
}

.kitchen-receipt__product {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
}

.kitchen-receipt__options {
    margin-top: 1.5mm;
    font-size: 12px;
    font-weight: 700;
}

.kitchen-receipt__item-note {
    margin-top: 2mm;
    padding: 2mm;
    border: 2px solid #111;
    font-size: 12px;
    line-height: 1.25;
}

.kitchen-receipt__order-note {
    margin-top: 3mm;
    padding: 3mm;
    border: 3px double #111;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    break-inside: avoid;
    page-break-inside: avoid;
}

.kitchen-receipt__order-note > strong {
    display: block;
    margin-bottom: 1.5mm;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-align: center;
}

.kitchen-receipt__empty {
    padding: 8mm 2mm;
    border: 2px dashed #111;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.kitchen-receipt__footer {
    margin-top: 4mm;
    padding-top: 2mm;
    border-top: 1px solid #111;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

@media print {
    html,
    body {
        width: 80mm;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
        height: auto !important;
    }

    body * {
        visibility: hidden;
    }

    /* Gizli alanlar dışında her şeyi kaldır ve ana layout'u gizle */
    .qres-main, .mud-layout, .mud-drawer, .mud-appbar, .qres-nav, .no-print, .mud-dialog-title, .mud-dialog-actions, .mud-overlay, .mud-dialog-overlay {
        display: none !important;
    }

    /* MudDialog kapsayıcılarını baskı düzeni için sıfırla */
    .mud-dialog-container {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 80mm !important;
        height: auto !important;
        min-height: 0 !important;
        z-index: 999999 !important;
    }

    .mud-dialog {
        display: block !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        transform: none !important;
        border-radius: 0 !important;
    }

    .mud-dialog-content {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        width: 80mm !important;
    }

    .receipt-print-area,
    .receipt-print-area * {
        visibility: visible;
    }

    .receipt-print-area {
        position: relative !important;
        left: 4mm !important;
        top: 0 !important;
        width: 72mm !important;
        max-width: 72mm !important;
        margin: 0 !important;
        padding: 0 !important;
        font-family: Arial, Helvetica, sans-serif;
        color: #000 !important;
        background: #fff !important;
        box-sizing: border-box;
    }

    .receipt-print-area.kitchen-receipt {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .receipt-print-area hr {
        border-top: 1px dashed #000;
        margin: 8px 0;
    }

    @page {
        size: 80mm auto;
        margin: 0;
    }
}

/* ==========================================================================
   MENU MANAGEMENT
   ========================================================================== */

.menu-page {
    display: grid;
    gap: 18px;
}

.menu-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--qres-line);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(184, 135, 45, 0.12), transparent 48%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 239, 0.82));
    box-shadow: var(--qres-shadow);
}

.menu-hero-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.menu-hero-icon,
.category-card-icon,
.product-mobile-icon,
.qres-product-dialog-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #fffaf0;
    background: var(--qres-ink);
}

.menu-hero-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
}

.menu-hero-copy {
    min-width: 0;
}

.menu-hero-copy span,
.menu-section-header span,
.product-image-content span,
.product-options-header span,
.qres-product-dialog-title span {
    display: block;
    color: #7f571a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.menu-hero-copy h1 {
    margin: 4px 0 6px;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 0.96;
}

.menu-hero-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--qres-muted);
    line-height: 1.55;
}

.menu-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 10px;
}

.menu-hero-metrics div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
}

.menu-hero-metrics strong {
    display: block;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.menu-hero-metrics span {
    color: var(--qres-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.menu-tabs {
    overflow: hidden;
    border: 1px solid var(--qres-line);
    border-radius: 18px;
    background: var(--qres-paper);
    box-shadow: var(--qres-shadow);
}

.tab-content-wrapper {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.menu-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.menu-section-header h2 {
    margin: 2px 0 0;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 900;
}

.product-toolbar {
    display: flex;
    min-width: min(100%, 520px);
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.product-search {
    flex: 1 1 260px;
}

.category-form-panel,
.product-image-panel,
.product-options-panel,
.product-active-row {
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.category-form-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.category-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--qres-ink);
    font-weight: 900;
}

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

.category-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.category-sort-list {
    display: grid;
    gap: 10px;
}

.category-sort-card {
    display: grid;
    grid-template-columns: 42px 48px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 12px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 239, 0.7));
    box-shadow: 0 8px 24px rgba(24, 21, 16, 0.05);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.category-sort-card:hover {
    border-color: rgba(184, 135, 45, 0.22);
    box-shadow: 0 14px 32px rgba(24, 21, 16, 0.08);
}

.category-sort-card.is-dragging,
.product-option-card.is-dragging,
.product-option-item.is-dragging {
    opacity: 0.56;
}

.category-sort-card.is-drop-target,
.product-option-card.is-drop-target,
.product-option-item.is-drop-target {
    border-color: rgba(39, 107, 131, 0.46);
    box-shadow: 0 0 0 3px rgba(39, 107, 131, 0.12);
}

.category-sort-card.is-passive {
    background: rgba(255, 255, 255, 0.5);
}

.drag-handle {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 10px;
    color: var(--qres-muted);
    background: rgba(255, 255, 255, 0.76);
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle:disabled {
    cursor: default;
    opacity: 0.45;
}

.drag-handle.compact {
    width: 32px;
    height: 32px;
}

.category-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.category-card-icon.active {
    background: var(--qres-green);
}

.category-card-icon.passive {
    background: #9b9286;
}

.category-card-body {
    min-width: 0;
}

.category-card-body .mud-typography-h6,
.product-mobile-main .mud-typography-subtitle1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.category-card-meta span {
    display: inline-grid;
    min-width: 32px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    color: var(--qres-blue);
    background: rgba(39, 107, 131, 0.1);
    font-size: 0.78rem;
    font-weight: 900;
}

.category-reorder-actions,
.category-card-actions,
.inline-icon-actions,
.product-mobile-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-card-list {
    display: none;
}

.product-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.product-table {
    background: transparent;
}

.product-name {
    font-weight: 800;
}

.product-price {
    color: var(--qres-rust);
    font-weight: 900;
}

.product-mobile-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.product-mobile-main,
.product-mobile-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-mobile-main {
    justify-content: flex-start;
}

.product-mobile-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--qres-blue);
}

.product-mobile-main .mud-typography-caption {
    color: var(--qres-muted);
}

.product-mobile-actions {
    justify-content: flex-end;
    border-top: 1px solid rgba(24, 21, 16, 0.07);
    padding-top: 8px;
}

/* ==========================================================================
   PRODUCT FORM DIALOG
   ========================================================================== */

.qres-product-dialog-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qres-product-dialog-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--qres-ink);
}

.qres-product-dialog-title h2 {
    margin: 2px 0 0;
    color: var(--qres-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 900;
}

.product-form-body {
    gap: 16px;
}

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

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

.product-image-panel {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.product-image-preview {
    display: grid;
    aspect-ratio: 1.25;
    overflow: hidden;
    place-items: center;
    border: 1px dashed rgba(24, 21, 16, 0.16);
    border-radius: 14px;
    color: var(--qres-soft);
    background: rgba(255, 250, 239, 0.82);
}

.product-image-preview img,
.product-image-preview .mud-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-preview .mud-icon-root {
    font-size: 2.3rem;
}

.product-image-content {
    display: grid;
    min-width: 0;
    gap: 10px;
}

.product-image-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.file-upload-button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--qres-line);
    border-radius: 4px;
    color: var(--qres-ink);
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.file-upload-button:hover {
    border-color: rgba(24, 21, 16, 0.22);
    background: rgba(24, 21, 16, 0.04);
}

.product-upload-progress {
    min-width: 140px;
    max-width: 220px;
}

.product-options-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.product-options-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-options-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px dashed rgba(24, 21, 16, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.46);
}

.product-options-empty .mud-icon-root {
    color: var(--qres-gold);
}

.product-option-list,
.product-option-items {
    display: grid;
    gap: 10px;
}

.product-option-card,
.product-option-item {
    border: 1px solid rgba(24, 21, 16, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.product-option-card {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.product-option-top,
.product-option-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.product-option-item {
    grid-template-columns: 32px minmax(0, 1fr) minmax(120px, 150px) auto;
    padding: 10px;
    background: rgba(255, 250, 239, 0.58);
}

.product-option-name,
.product-item-name,
.product-item-price {
    min-width: 0;
}

.product-active-row {
    padding: 10px 14px;
}

.product-dialog-actions {
    border-top: 1px solid rgba(24, 21, 16, 0.08);
}

@media (max-width: 900px) {
    .menu-hero,
    .category-form-grid {
        grid-template-columns: 1fr;
    }

    .menu-section-header,
    .product-header,
    .product-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-toolbar {
        width: 100%;
        min-width: 0;
    }

    .product-search {
        flex-basis: auto;
    }

    .product-card-list {
        display: grid;
        gap: 10px;
    }

    .product-table-wrap {
        display: none;
    }
}

@media (max-width: 760px) {
    .menu-hero {
        padding: 16px;
        border-radius: 16px;
    }

    .menu-hero-main {
        align-items: flex-start;
    }

    .menu-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .tab-content-wrapper {
        padding: 12px;
    }

    .category-sort-card {
        grid-template-columns: 38px 44px minmax(0, 1fr);
        gap: 10px;
    }

    .category-reorder-actions,
    .category-card-actions {
        grid-column: 2 / -1;
        justify-content: flex-end;
    }

    .category-form-actions,
    .product-image-actions,
    .product-dialog-actions {
        justify-content: stretch;
    }

    .category-form-actions .mud-button-root,
    .product-toolbar .mud-button-root,
    .product-dialog-actions .mud-button-root {
        flex: 1 1 auto;
    }

    .product-form-grid,
    .product-image-panel,
    .product-option-item {
        grid-template-columns: 1fr;
    }

    .product-option-top {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .product-option-top .inline-icon-actions,
    .product-option-item .inline-icon-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 520px) {
    .menu-hero-main {
        display: grid;
    }

    .menu-hero-copy h1 {
        font-size: 2.25rem;
    }

    .menu-hero-metrics,
    .product-mobile-meta {
        grid-template-columns: 1fr;
    }
}
