:root {
    --bg: #fff8f0;
    --ink: #241814;
    --muted: #74645b;
    --line: #eadbd0;
    --brand: #c13a2a;
    --brand-dark: #94261d;
    --panel: #ffffff;
    --accent: #12805f;
    --accent-dark: #0b6047;
    --nav-bg: #1f5f86;
    --nav-bg-2: #16445f;
    --gold: #f4a51c;
    --button-shadow: 0 8px 18px rgba(35, 56, 77, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
}

.navbar-moderno {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #fff;
    background:
        radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(125, 211, 252, 0.22), transparent 42%),
        linear-gradient(135deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%);
    box-shadow: 0 8px 26px rgba(18, 64, 92, 0.22);
}

.nav-container {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-brand,
.nav-user-info,
.nav-links,
.nav-link {
    display: flex;
    align-items: center;
}

.nav-brand {
    gap: 12px;
    min-width: 0;
}

.nav-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #20c997);
    box-shadow: 0 8px 18px rgba(18, 128, 95, 0.34);
    font-weight: 900;
}

.nav-brand-icon.nav-logo {
    overflow: hidden;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.nav-brand-icon.nav-logo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.nav-brand-text {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.05;
}

.nav-brand-text small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 600;
}

.nav-user-info {
    gap: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nav-drawer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    color: #0f2d3d;
    background: linear-gradient(135deg, #f7c948, #f59e0b);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.22);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
}

.nav-drawer-btn span {
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 45, 61, 0.88);
    font-size: 12px;
}

.nav-drawer-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.nav-drawer-btn:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.nav-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #20c997);
    font-weight: 900;
}

.nav-user-details {
    text-align: right;
    line-height: 1.1;
}

.nav-user-name {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.nav-user-role {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 7px 16px rgba(192, 57, 43, 0.25);
    font-size: 13px;
    font-weight: 900;
}

.nav-main {
    padding: 9px 0 10px;
}

.nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.nav-link {
    justify-content: center;
    min-height: 38px;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 13px;
    font-weight: 800;
}

.nav-link-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    line-height: 1;
}

.nav-link.active .nav-link-icon {
    background: rgba(16, 33, 22, 0.12);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
}

.nav-link.active {
    color: #102116;
    background: linear-gradient(135deg, #ffc857, var(--gold));
    box-shadow: 0 8px 18px rgba(244, 165, 28, 0.30);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 28px;
    background: #fffdf9;
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--brand);
    font-size: 22px;
    font-weight: 800;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 8px;
}

nav a:hover {
    background: #f4ece4;
    color: var(--brand);
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.narrow {
    width: min(820px, calc(100% - 32px));
}

.central-page {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 26px 0 42px;
}

.central-hero {
    margin-bottom: 24px;
}

.central-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 30px;
    border: 1px solid rgba(223, 230, 238, 0.9);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(44, 62, 80, 0.10);
}

.central-hero-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.central-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #b53024, #24745b);
    box-shadow: 0 10px 22px rgba(181, 48, 36, 0.24);
    font-weight: 900;
}

.central-hero-logo {
    overflow: hidden;
    padding: 3px;
    border-radius: 999px;
    background: rgba(35, 56, 77, 0.08);
}

.central-hero-logo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.central-hero h1 {
    margin: 0;
    color: #23384d;
    font-size: 36px;
    line-height: 1.05;
}

.central-hero p {
    margin: 7px 0 0;
    color: #607282;
    font-weight: 700;
}

.central-badge {
    min-width: 180px;
    padding: 14px 18px;
    border-radius: 18px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #2c3e50, #1f2d3d);
}

.central-badge span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.76;
}

.central-badge strong {
    display: block;
    margin-top: 3px;
    font-size: 26px;
}

.central-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
    gap: 16px;
}

.central-card {
    position: relative;
    display: flex;
    min-height: 148px;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    padding: 20px 18px;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 12px 26px rgba(35, 56, 77, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.central-card::after {
    position: absolute;
    right: -30px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    content: "";
}

.central-card:hover {
    transform: translateY(-4px);
    filter: saturate(1.04);
    box-shadow: 0 18px 36px rgba(35, 56, 77, 0.22);
}

.card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 800;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 15px;
    font-weight: 900;
}

.card-title {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 900;
}

.card-title small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
    opacity: 0.92;
}

.card-salon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-llevar {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.card-express {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.card-pedidos {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.card-productos {
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

.card-clientes {
    background: linear-gradient(135deg, #155e75, #0891b2);
}

.card-cocina {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.card-categorias {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.card-tamanos {
    background: linear-gradient(135deg, #7f8c8d, #596a6b);
}

.card-rutas {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.card-carrito {
    background: linear-gradient(135deg, #d35400, #a04000);
}

.card-admin {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 42px 0 28px;
}

.order-status-bar {
    align-items: center;
    width: 100vw;
    min-height: 72px;
    margin: -12px calc(50% - 50vw) 8px;
    padding: 8px max(22px, calc((100vw - 1680px) / 2 + 10px));
    color: #fff;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(125, 211, 252, 0.22), transparent 44%),
        linear-gradient(135deg, #25698f, #16445f);
    box-shadow: inset 0 12px 20px rgba(13, 45, 64, 0.16), 0 12px 24px rgba(18, 64, 92, 0.12);
}

.order-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.order-status-copy h1 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 15px;
    line-height: 1.1;
}

.order-status-copy p {
    margin: 0 0 3px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
}

.order-status-copy strong {
    color: #fff;
}

.current-mode-card {
    display: inline-grid;
    flex: 0 0 132px;
    width: 132px;
    gap: 2px;
    padding: 7px 11px 8px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #20c997);
    box-shadow: 0 10px 22px rgba(18, 128, 95, 0.28);
    text-transform: uppercase;
}

.current-mode-card span,
.current-mode-card small {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.current-mode-card strong {
    font-size: 18px;
    line-height: 1;
}

.hero h1 {
    max-width: 760px;
    margin: 8px 0 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.03;
}

.order-status-bar .order-status-copy h1 {
    max-width: none;
    margin: 0 0 3px;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.hero-actions .button,
.hero-actions .send-kitchen-form {
    min-width: 150px;
}

.hero-actions .button {
    min-height: 38px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.hero-actions .send-kitchen-form {
    width: auto;
}

.hero-actions .send-kitchen-form .button {
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, #f5ad28, #e8890d);
    border-color: #e8890d;
    box-shadow: 0 8px 18px rgba(232, 137, 13, 0.24);
}

.hero-actions .note-button {
    color: #142333;
    background: #fffaf1;
    border-color: #f4d7a2;
}

.hero-actions .return-button {
    color: #fff;
    background: linear-gradient(135deg, #39546f, #24394f);
    border-color: #24394f;
}

.eyebrow,
.tag {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.flash,
.error,
.empty {
    padding: 12px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.flash {
    border-color: #b9ddcc;
    color: #185c43;
}

.error {
    border-color: #efb4ad;
    color: #8e2119;
}

.category-strip {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 10px;
}

.pos-category-strip {
    width: 100%;
    margin: 0 0 10px;
    padding: 0 0 7px;
}

.category-filter {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: #263c53;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(35, 56, 77, 0.18);
}

.category-filter.is-active {
    color: #102116;
    background: linear-gradient(135deg, #ffc857, var(--gold));
    box-shadow: 0 8px 18px rgba(244, 165, 28, 0.28);
}

.subcategory-strip {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: -3px 0 12px;
    padding: 0 0 6px;
}

.subcategory-filter {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 15px;
    border: 1px solid rgba(38, 60, 83, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #263c53;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(35, 56, 77, 0.12);
}

.subcategory-filter.is-active {
    border-color: rgba(25, 135, 105, 0.35);
    color: #fff;
    background: linear-gradient(135deg, #1fc49b, #16836f);
    box-shadow: 0 8px 18px rgba(25, 135, 105, 0.22);
}

.subcategory-filter.is-hidden {
    display: none;
}

.pickup-customer-panel {
    margin: 0 0 10px;
    padding: 9px 10px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(35, 56, 77, 0.08);
}

.pickup-customer-panel form {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.4fr 160px;
    gap: 8px;
    align-items: end;
}

.pickup-customer-panel label {
    gap: 4px;
    font-size: 12px;
}

.pickup-customer-panel input {
    min-height: 34px;
    padding: 7px 9px;
}

.pickup-customer-panel .button {
    min-height: 34px;
    padding: 7px 10px;
}

.express-customer-panel form {
    grid-template-columns: 0.9fr 1fr 1.4fr 1fr 110px;
}

.express-phone-field {
    position: relative;
}

.express-phone-suggestions {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    overflow: auto;
    max-height: 210px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 26, 36, 0.16);
}

.express-phone-suggestions.is-hidden {
    display: none;
}

.express-phone-option {
    display: grid;
    width: 100%;
    gap: 2px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    color: #172331;
    text-align: left;
    cursor: pointer;
}

.express-phone-option:hover,
.express-phone-option:focus {
    background: #eef6ff;
    outline: none;
}

.express-phone-option strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.express-phone-option span {
    overflow: hidden;
    color: #5f6b7a;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.express-customer-status {
    grid-column: 1 / -1;
    min-height: 16px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.express-customer-status[data-state="found"] {
    color: #0b7c54;
}

.express-customer-status[data-state="new"] {
    color: #9a5a00;
}

.express-customer-status[data-state="error"] {
    color: #c0392b;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.dashboard-stats article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.dashboard-stats span,
.module-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-stats strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
}

.dashboard-section {
    margin-top: 30px;
}

.section-title {
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 4px 0 0;
    font-size: 26px;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.module-card {
    display: grid;
    gap: 9px;
    min-height: 145px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.module-card strong {
    font-size: 24px;
}

.module-card small {
    color: var(--muted);
    line-height: 1.35;
}

.screen-card,
.order-card {
    display: grid;
    gap: 10px;
    min-height: 170px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.screen-card span,
.order-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.screen-card strong {
    font-size: 34px;
}

.screen-card small,
.order-card small,
.context-line {
    color: var(--muted);
    font-weight: 700;
}

.screen-card.green,
.order-card.green {
    border-top: 5px solid var(--accent);
}

.screen-card.red,
.order-card.red {
    border-top: 5px solid var(--brand);
}

.screen-card.blue,
.order-card.blue {
    border-top: 5px solid #2e6f9f;
}

.screen-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.screen-heading h1 {
    margin: 6px 0 0;
    font-size: 42px;
}

.order-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
}

.order-card {
    min-height: 140px;
    justify-items: stretch;
}

.order-card strong {
    font-size: 44px;
    line-height: 1;
}

.order-card.is-active {
    background: #fff4e6;
    border-color: #d99b52;
}

.order-card.is-money-pending {
    color: #fff;
    background: linear-gradient(135deg, #7a2e10, #c05621);
    border-color: #c05621;
}

.order-card.is-money-pending span,
.order-card.is-money-pending small {
    color: rgba(255, 255, 255, 0.86);
}

.order-card-client {
    display: block;
    max-width: 100%;
    color: #1f3b4d !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none !important;
    white-space: nowrap;
}

.order-card.is-money-pending .order-card-client {
    color: #fff !important;
}

.order-card.is-money-pending .order-card-timer {
    color: #7a2e10;
    background: #fff8ea;
}

.order-card-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-width: 86px;
    box-sizing: border-box;
    justify-self: start;
    margin: 2px 0 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #10b981);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.22);
}

.order-card-total span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 8px;
    text-transform: uppercase;
}

.order-card-total::before {
    content: none !important;
}

.order-card.is-money-pending .order-card-total {
    color: #7a2e10;
    background: #fff8ea;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}


.order-card-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 86px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: #2d435b;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.pending-money-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
}

.pending-money-overlay.is-open {
    display: grid;
}

.pending-money-dialog {
    width: min(420px, 100%);
    padding: 22px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.pending-money-dialog h2 {
    margin: 0 0 12px;
    color: #7a2e10;
    font-size: 24px;
}

.pending-money-dialog p {
    margin: 8px 0;
    color: #23384d;
    font-size: 17px;
    font-weight: 800;
}

.pending-money-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.pos-page {
    width: min(1680px, calc(100% - 20px));
    padding-top: 18px;
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 0.95fr);
    gap: 14px;
    align-items: start;
    padding-top: 0;
}

.pos-products {
    min-width: 0;
}

.pos-cart {
    position: sticky;
    top: 116px;
    display: flex;
    min-width: 0;
    width: 100%;
    max-height: calc(100vh - 132px);
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e4e8ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(35, 56, 77, 0.10);
}

.pos-cart-header,
.pos-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pos-cart-header h2 {
    margin: 4px 0 0;
    font-size: 22px;
}

.cart-route-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 10px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #fff8e6;
    color: #7a5800;
    font-size: 12px;
    font-weight: 900;
}

.pos-cart-table-wrap {
    overflow: auto;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
}

.pos-cart-table {
    min-width: 620px;
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pos-cart-table th {
    padding: 8px 7px;
    color: #fff;
    background: #2d435b;
    border-bottom: 0;
    text-align: center;
    font-size: 12px;
}

.pos-cart-table td {
    padding: 8px 7px;
    border-bottom: 1px solid #e5e9ef;
    text-align: center;
    vertical-align: middle;
}

.pos-cart-table td:first-child {
    width: 42%;
    max-width: 360px;
    overflow: visible;
    white-space: normal;
    text-align: left;
    font-weight: 800;
    line-height: 1.25;
}

.pos-cart .cart-actions {
    align-items: center;
    flex: 0 0 auto;
    justify-content: center;
}

.pos-cart .cart-actions form {
    margin: 0;
}

.pos-cart-footer {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.pos-cart-footer .button {
    width: 100%;
    min-height: 54px;
    font-size: 22px;
    text-transform: uppercase;
    color: #1f1605;
    background: linear-gradient(135deg, #ffc857, #f39c12);
    border-color: #f39c12;
    box-shadow: 0 9px 20px rgba(243, 156, 18, 0.24);
}

.product-card,
.form-panel,
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.is-hidden {
    display: none !important;
}

.payment-modal {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(35, 56, 77, 0.12);
}

.payment-section {
    display: grid;
    gap: 12px;
}

.payment-section h2 {
    margin: 0;
    color: #23384d;
    font-size: 20px;
}

.payment-total,
.change-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    background: #f6faf8;
}

.payment-total span,
.change-box span {
    color: var(--muted);
    font-weight: 800;
}

.payment-total strong,
.change-box strong {
    font-size: 24px;
}

.payment-actions {
    margin-top: 4px;
}

.payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(15, 26, 36, 0.62);
}

.payment-overlay.is-open {
    display: grid;
}

.payment-dialog {
    width: min(1080px, 100%);
    max-height: calc(100vh - 44px);
    overflow: hidden;
    border-radius: 10px;
    background: #f4f6f9;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.payment-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    color: #fff;
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
}

.payment-title-block {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 900;
}

.payment-dialog-header h2 {
    margin: 2px 0 0;
    font-size: 19px;
    text-transform: uppercase;
}

.payment-dialog-header p,
.payment-dialog-header span {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 800;
}

.payment-dialog-header strong {
    display: block;
    min-width: 98px;
    margin-top: 5px;
    padding: 9px 12px;
    border-radius: 6px;
    color: #0b43b8;
    background: #fff;
    text-align: center;
    font-size: 18px;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 18px;
    cursor: pointer;
}

.payment-dialog-body {
    display: grid;
    gap: 9px;
    max-height: calc(100vh - 118px);
    overflow: auto;
    padding: 9px;
}

.payment-selection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
    gap: 9px;
}

.payment-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 10px;
}

.payment-dialog-actions .button {
    min-height: 44px;
    font-size: 16px;
    text-transform: uppercase;
}

.payment-dialog-actions .button.primary {
    background: #087a12;
    border-color: #087a12;
}

.payment-order-panel,
.payment-collect-panel,
.payment-summary-panel {
    display: grid;
    gap: 7px;
}

.payment-order-panel,
.payment-collect-panel,
.payment-totals-box,
.payment-method-box {
    padding: 9px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    background: #fff;
}

.payment-panel-title,
.payment-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.payment-panel-title h3 {
    margin: 0;
    color: #123d73;
    font-size: 16px;
    text-transform: uppercase;
}

.payment-panel-title span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #0743b5;
    background: #dbe8ff;
    font-weight: 900;
}

.payment-collect-panel {
    border-color: #cbdcc8;
    background: #f3faf0;
}

.payment-collect-panel .payment-panel-title h3,
.payment-total-line.is-green {
    color: #0d6b18;
}

.payment-collect-panel .payment-panel-title span {
    color: #0d6b18;
    background: #ccebc7;
}

.payment-transfer-actions {
    display: grid;
    align-content: center;
    gap: 6px;
}

.payment-transfer-actions button {
    min-height: 48px;
    border: 1px solid #d4ded2;
    border-radius: 8px;
    color: #0d6b18;
    background: #f3faf0;
    font-size: 18px;
    font-weight: 900;
}

.payment-transfer-actions button:nth-child(n+3) {
    color: #c81717;
    background: #fff0f0;
}

.payment-transfer-actions span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.payment-table-wrap tr {
    cursor: pointer;
}

.payment-table-wrap tr.is-selected td {
    background: #dcecff;
}

.payment-table-wrap tr.is-muted td {
    color: #8a96a3;
    background: #f4f6f8;
}

.payment-table-wrap {
    overflow: auto;
    min-height: 190px;
    border-radius: 4px;
    background: #c9ccd1;
}

.payment-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.payment-table-wrap th {
    padding: 6px 6px;
    color: #fff;
    background: #244a78;
    text-align: center;
    font-size: 11px;
}

.payment-table-wrap td {
    padding: 6px 6px;
    border-bottom: 1px solid #dfe4ea;
    background: #fff;
    text-align: center;
    font-size: 12px;
}

.payment-table-wrap td:first-child {
    width: 38%;
    text-align: left;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
}

.payment-total-line {
    color: #063ca8;
    font-weight: 900;
}

.payment-total-line strong {
    font-size: 18px;
}

.payment-summary-panel {
    grid-template-columns: 1fr 1fr;
}

.payment-totals-box,
.payment-method-box {
    display: grid;
    gap: 7px;
}

.payment-totals-box > div {
    display: grid;
    grid-template-columns: 1fr 130px;
    align-items: center;
    gap: 8px;
}

.payment-totals-box .payment-discount-actions {
    grid-template-columns: 1fr 96px;
}

.payment-totals-box .payment-discount-actions .button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
}

.payment-totals-box span {
    font-weight: 900;
}

.payment-totals-box strong {
    padding: 7px 9px;
    border-radius: 6px;
    background: #f7f8fa;
    text-align: right;
    font-size: 16px;
}

.payment-totals-box .grand-total strong {
    color: #fff;
    background: #087a12;
    font-size: 19px;
}

.cart-discount-line {
    margin-top: 3px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 900;
}

.payment-method-box label,
.payment-method-box .change-box,
.payment-method-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: start;
    gap: 8px;
    font-size: 13px;
}

.payment-method-label {
    padding-top: 13px;
    font-weight: 900;
}

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

.payment-method-card {
    min-height: 54px;
    padding: 7px 8px;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    color: #203246;
    background: linear-gradient(180deg, #ffffff 0%, #edf3f8 100%);
    box-shadow: 0 8px 14px rgba(20, 43, 68, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 7px;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.payment-method-card strong {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.payment-method-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, #244a78 0%, #17324f 100%);
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 900;
}

.payment-method-card:hover {
    transform: translateY(-1px);
    border-color: #9fb0c1;
    box-shadow: 0 10px 18px rgba(20, 43, 68, 0.12);
}

.payment-method-card.is-active {
    border-color: #f0b323;
    color: #172b3c;
    background: linear-gradient(180deg, #fff8de 0%, #ffe9a6 100%);
    box-shadow: 0 0 0 2px rgba(240, 179, 35, 0.24), 0 10px 20px rgba(120, 80, 0, 0.14);
}

.payment-method-card.is-active .payment-method-card-icon {
    background: linear-gradient(135deg, #0f8d64 0%, #096b4b 100%);
}

.payment-method-box input,
.payment-method-box select {
    min-height: 34px;
    padding: 6px 9px;
    text-align: right;
    font-weight: 800;
}

.payment-method-box .payment-print-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
}

.payment-method-box .payment-print-check input {
    width: 18px;
    min-height: 18px;
}

.invoice-client-card {
    display: grid;
    grid-template-columns: 1fr 96px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    background: #f7f9fc;
}

.invoice-client-card span {
    display: block;
    color: #5f6b7a;
    font-size: 12px;
    font-weight: 900;
}

.invoice-client-card strong {
    display: block;
    overflow: hidden;
    color: #172331;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-client-button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.invoice-client-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(15, 26, 36, 0.55);
}

.invoice-client-overlay.is-hidden {
    display: none;
}

.invoice-client-dialog {
    position: relative;
    z-index: 10001;
    width: min(680px, calc(100vw - 28px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 9px;
    padding: 10px;
    border: 1px solid #c8d1dc;
    border-radius: 8px;
    background: #f7f8fb;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.invoice-modal-header {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -10px -10px 2px;
    padding: 9px 12px;
    color: #fff;
    background: #1b2840;
}

.invoice-modal-header h3 {
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
}

.invoice-modal-header p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 800;
}

.invoice-client-dialog label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    color: #172331;
    font-size: 12px;
    font-weight: 900;
}

.invoice-client-dialog input,
.invoice-client-dialog select,
.invoice-client-dialog textarea {
    width: 100%;
    min-height: 31px;
    padding: 5px 8px;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    background: #fff;
    color: #172331;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.invoice-lookup-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 88px;
    align-items: end;
    gap: 7px;
}

.invoice-lookup-button {
    min-height: 31px;
    padding: 5px 8px;
    font-size: 12px;
}

.invoice-status {
    grid-column: 1 / -1;
    min-height: 15px;
    margin: -1px 0 0;
    color: #5f6b7a;
    font-size: 11px;
    font-weight: 800;
}

.invoice-status[data-state="found"] {
    color: #087a12;
}

.invoice-status[data-state="error"] {
    color: #b42318;
}

.invoice-address-field {
    grid-column: 1 / -1;
}

.invoice-address-field textarea {
    min-height: 52px;
    resize: vertical;
}

.invoice-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    justify-self: end;
    width: min(390px, 100%);
}

.invoice-actions .button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.payment-method-box .change-box {
    margin: 0;
    padding: 0;
    background: transparent;
}

.payment-method-box .change-box strong {
    padding: 7px 9px;
    border-radius: 6px;
    color: #087a12;
    background: #f7f8fa;
    text-align: right;
}

.kitchen-ticket-page {
    background: #eef2f6;
}

.kitchen-ticket {
    display: grid;
    justify-content: center;
    gap: 18px;
    padding: 24px;
}

.kitchen-ticket-paper {
    width: min(420px, 100%);
    padding: 18px;
    color: #111;
    background: #fff;
    border: 1px solid #d7dde5;
    box-shadow: 0 18px 45px rgba(20, 34, 48, 0.16);
}

.kitchen-ticket-paper header {
    padding-bottom: 12px;
    border-bottom: 2px dashed #222;
    text-align: center;
}

.kitchen-ticket-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kitchen-ticket-paper h1 {
    margin: 0 0 10px;
    font-size: 24px;
}

.kitchen-ticket-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 10px 0;
}

.kitchen-ticket-meta strong {
    padding: 7px 10px;
    border: 1px solid #222;
    border-radius: 4px;
    font-size: 18px;
}

.kitchen-customer {
    padding: 12px 0;
    border-bottom: 2px dashed #222;
}

.kitchen-customer p,
.kitchen-ticket-paper footer p {
    margin: 4px 0;
}

.kitchen-items {
    display: grid;
    gap: 0;
    padding: 10px 0;
}

.kitchen-items article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
}

.kitchen-items span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid #111;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 900;
}

.kitchen-items strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.kitchen-items small {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    font-weight: 800;
}

.kitchen-ticket-paper footer {
    padding-top: 10px;
    border-top: 2px dashed #222;
    font-weight: 900;
}

.kitchen-ticket-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.kitchen-board-page {
    width: min(1440px, calc(100% - 28px));
}

.kitchen-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.kitchen-board-header h1 {
    margin: 6px 0 0;
    color: #23384d;
    font-size: 34px;
}

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

.kitchen-order-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(35, 56, 77, 0.10);
}

.kitchen-order-card header,
.kitchen-order-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

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

.kitchen-order-card p {
    margin: 0;
    color: #607282;
    font-weight: 800;
}

.kitchen-card-timer {
    display: inline-flex;
    margin-top: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: #f39c12;
    font-size: 18px;
    font-style: normal;
    font-weight: 900;
}

.kitchen-order-card header > span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #0d6b18;
    background: #dff3dd;
    font-weight: 900;
}

.kitchen-order-client {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f4f7fa;
}

.kitchen-order-client small {
    color: #607282;
    font-weight: 800;
}

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

.kitchen-order-items div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.kitchen-order-items div > strong {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #fff;
    background: #2d435b;
    font-size: 18px;
}

.kitchen-order-items span {
    color: #172636;
    font-size: 18px;
    font-weight: 900;
}

.kitchen-order-items small {
    display: block;
    margin-top: 3px;
    color: #607282;
    font-size: 16px;
    font-weight: 900;
}

.kitchen-order-items small strong,
.kitchen-order-items .kitchen-item-note {
    color: #d85a30;
    font-size: 16px;
    font-weight: 900;
}

.kitchen-ready-form {
    width: 100%;
}

.kitchen-order-card footer .button {
    flex: 1;
    width: 100%;
    min-height: 40px;
}

.cash-ticket-page {
    background: #eef2f6;
}

.cash-ticket {
    display: grid;
    justify-content: center;
    gap: 18px;
    padding: 12px 18px 26px;
}

.ticket-success-message {
    display: grid;
    gap: 3px;
    width: min(330px, 100%);
    padding: 10px 12px;
    border: 1px solid #bfe8d8;
    border-radius: 8px;
    color: #0b6b45;
    background: #e9fbf3;
    text-align: center;
}

.ticket-success-message strong {
    font-size: 15px;
}

.ticket-success-message span {
    font-size: 12px;
    font-weight: 800;
}

.ticket-success-message small {
    color: #5f6f80;
    font-size: 11px;
    font-weight: 700;
}

.cash-ticket-paper {
    width: 410px;
    max-width: calc(100vw - 28px);
    padding: 18px 22px 20px;
    color: #111;
    background: #fff;
    border: 1px solid #d7dde5;
    font-family: "Courier New", monospace;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.34;
    box-shadow: 0 18px 45px rgba(20, 34, 48, 0.16);
}

.cash-ticket-paper header,
.cash-ticket-paper footer {
    text-align: center;
}

.cash-ticket-paper h1 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.cash-ticket-paper p {
    margin: 3px 0;
}

.cash-ticket-paper .ticket-address {
    overflow-wrap: anywhere;
    white-space: normal;
}

.ticket-line {
    margin: 10px 0;
    border-top: 1px dashed #111;
}

.ticket-info,
.ticket-items,
.ticket-totals {
    display: grid;
    gap: 2px;
}

.ticket-totals {
    width: 82%;
    margin: 0 auto;
}

.ticket-items article strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.ticket-items article p {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-right: 36px;
    text-align: right;
    white-space: nowrap;
}

.ticket-items article p span:last-child {
    min-width: 92px;
    text-align: left;
}

.ticket-totals p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: baseline;
    margin: 5px 0;
}

.ticket-totals p strong {
    min-width: 112px;
    text-align: right;
}

.ticket-grand-total {
    font-size: 18px;
    font-weight: 900;
}

.cash-ticket-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cash-ticket-actions .button {
    min-width: 120px;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 7px;
    font-size: 17px;
}

.product-card {
    gap: 6px;
    justify-content: space-between;
    min-height: 106px;
    padding: 10px 9px;
    border-radius: 10px;
    box-shadow: 0 7px 16px rgba(35, 56, 77, 0.12);
    text-align: center;
}

.product-card h2 {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.15;
}

.product-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.product-card.is-hidden {
    display: none;
}

.product-action {
    display: grid;
    gap: 5px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

.product-card select {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 14px;
    font-weight: 800;
}

.product-card .button {
    min-height: 30px;
    padding: 4px 7px;
    font-size: 12px;
}

.product-card label {
    gap: 4px;
    font-size: 12px;
}

.pizza-half-controls {
    display: none;
}

.pizza-half-controls.is-visible {
    display: grid;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    color: var(--brand);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(35, 56, 77, 0.06);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 18px rgba(193, 58, 42, 0.22);
}

.button:hover {
    border-color: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(35, 56, 77, 0.12);
    transform: translateY(-1px);
}

.button:disabled,
.button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.25);
}

.button.small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 14px;
}

.button.danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.cart-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.cart-actions .button {
    min-width: 38px;
    white-space: nowrap;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.qty {
    max-width: 90px;
}

.qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #185c43;
    background: #dcf3e8;
    font-weight: 900;
}

.price {
    max-width: 140px;
}

.summary,
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.inline-form {
    margin-top: 16px;
}

.link-button {
    padding: 0;
    color: var(--brand);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

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

.auth .form-panel {
    width: min(420px, 100%);
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(125, 211, 252, 0.34), transparent 26%),
        linear-gradient(135deg, #dff4ff 0%, #eef9ff 45%, #c9e9f8 100%);
}

.auth-shell {
    grid-template-columns: minmax(280px, 470px) minmax(300px, 430px);
    gap: 28px;
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    place-items: stretch;
}

.auth-brand-panel,
.auth-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(31, 95, 134, 0.18);
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    padding: 44px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(135deg, #2f80b7 0%, #1f6f9a 48%, #17836e 100%);
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #e4f7ff);
    box-shadow: 0 14px 30px rgba(10, 57, 88, 0.24);
    color: #1f6f9a;
    font-size: 24px;
    font-weight: 900;
}

.auth-brand-logo {
    width: 190px;
    height: 190px;
    margin-bottom: 26px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.28), transparent 58%),
        rgba(255, 255, 255, 0.12);
    box-shadow:
        0 22px 44px rgba(5, 34, 50, 0.34),
        0 0 0 9px rgba(255, 255, 255, 0.08);
}

.auth-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.auth-eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-brand-panel h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 0.96;
}

.auth-copy {
    max-width: 360px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 1.55;
}

.auth-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.auth-feature-row span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.auth-card {
    align-self: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.auth-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.auth-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #1f6f9a;
    background: #e7f6ff;
    font-size: 14px;
}

.auth-card h2 {
    margin: 0;
    color: #16384f;
    font-size: 28px;
    line-height: 1.05;
}

.auth-card-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.auth-card label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: #23485f;
    font-size: 13px;
    font-weight: 900;
}

.auth-card input {
    border-color: #cfe0ec;
    background: #f8fcff;
}

.auth-card input:focus {
    border-color: #2f80b7;
    box-shadow: 0 0 0 3px rgba(47, 128, 183, 0.16);
    outline: 0;
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
    min-height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f80b7, #17836e);
    border-color: #24709f;
    box-shadow: 0 12px 24px rgba(47, 128, 183, 0.24);
    font-size: 16px;
}

.swal2-popup {
    border-radius: 14px !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.swal2-container {
    z-index: 30000 !important;
}

.swal2-title {
    color: #16384f !important;
}

.product-catalog-table {
    min-width: 980px;
    table-layout: fixed;
    font-size: 12px;
}

.product-catalog-table th,
.product-catalog-table td {
    text-align: center;
    vertical-align: middle;
}

.product-catalog-table th:nth-child(1),
.product-catalog-table td:nth-child(1) {
    width: 5%;
}

.product-catalog-table th:nth-child(2),
.product-catalog-table td:nth-child(2) {
    width: 21%;
    text-align: left;
}

.product-catalog-table th:nth-child(3),
.product-catalog-table td:nth-child(3),
.product-catalog-table th:nth-child(4),
.product-catalog-table td:nth-child(4),
.product-catalog-table th:nth-child(5),
.product-catalog-table td:nth-child(5) {
    width: 16%;
}

.product-catalog-table th:nth-child(3),
.product-catalog-table td:nth-child(3),
.product-catalog-table th:nth-child(4),
.product-catalog-table td:nth-child(4) {
    font-weight: 900;
}

.product-catalog-table th:nth-child(6),
.product-catalog-table td:nth-child(6) {
    width: 11%;
}

.product-catalog-table th:nth-child(7),
.product-catalog-table td:nth-child(7) {
    width: 15%;
}

.product-catalog-table th {
    padding: 8px 9px;
    font-size: 11px;
}

.product-catalog-table td {
    padding: 7px 9px;
    line-height: 1.25;
}

.product-catalog-table .product-name-cell {
    font-size: 12.5px;
}

.product-catalog-table .product-name-col,
.product-catalog-table .product-name-cell {
    min-width: 0;
}

.product-catalog-table .status-badge {
    padding: 4px 8px;
    font-size: 11px;
}

.product-catalog-table .row-actions {
    gap: 6px;
}

.product-catalog-table .row-actions .btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 820px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: 18px 0;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 28px;
    }

    .auth-brand-logo {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
}

.status-form {
    display: flex;
    gap: 8px;
    min-width: 260px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 18px;
    align-items: start;
}

.admin-product-form {
    position: sticky;
    top: 86px;
}

.admin-product-form h2 {
    margin: 0;
    font-size: 22px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
    min-height: auto;
}

.size-price-panel {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.size-price-panel legend {
    padding: 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.size-price-panel label {
    grid-template-columns: 1fr minmax(110px, 140px);
    align-items: center;
    gap: 10px;
}

.size-price-panel input {
    min-height: 36px;
    padding: 7px 9px;
}

.size-price-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 360px;
}

.size-price-list span {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    color: #185c43;
    background: #dcf3e8;
    font-size: 12px;
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.status-pill.ok {
    color: #185c43;
    background: #dcf3e8;
}

.status-pill.off {
    color: #7d4b17;
    background: #fff0d7;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.row-actions form {
    margin: 0;
}

.product-actions {
    flex-wrap: nowrap;
    min-width: 190px;
}

.product-actions .btn,
.product-actions form {
    flex: 1 1 0;
}

.product-actions .btn {
    width: 100%;
    min-width: 88px;
    white-space: nowrap;
}

.product-name-col,
.product-name-cell {
    width: 28%;
    min-width: 210px;
}

.product-name-cell {
    font-weight: 800;
    line-height: 1.3;
}

.product-page {
    width: min(1480px, calc(100% - 24px));
    margin: 0 auto;
    padding: 24px 0 36px;
}

.product-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.product-header h1 {
    margin: 0 0 6px;
    color: #23384d;
    font-size: 30px;
}

.product-header p {
    margin: 0;
    color: #5f7184;
    font-weight: 650;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(760px, 1fr);
    gap: 18px;
    align-items: start;
}

.product-panel {
    padding: 18px;
    border: 1px solid rgba(223, 230, 238, 0.9);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(35, 56, 77, 0.10);
}

.product-panel h2 {
    margin: 0 0 14px;
    color: #23384d;
    font-size: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field label {
    color: #32475b;
    font-size: 13px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    border: 1px solid #ced7e0;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 14px;
}

.sizes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sizes-header h2 {
    margin: 0;
    font-size: 16px;
}

.sizes-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.size-row {
    display: grid;
    grid-template-columns: 1fr 130px auto;
    gap: 8px;
    align-items: center;
}

.size-row label {
    color: #32475b;
    font-weight: 800;
}

.size-row input,
.size-row select {
    min-height: 40px;
    border: 1px solid #ced7e0;
    border-radius: 10px;
    background: #fbfcfe;
}

.btn-light {
    color: #23384d;
    background: #edf2f7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    color: #23384d;
    background: #edf2f7;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 8px 18px rgba(18, 128, 95, 0.18);
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, #39546f, #24394f);
}

.btn-warning {
    color: #fff;
    background: linear-gradient(135deg, #f5ad28, #e8890d);
}

.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 14px;
}

.search-field {
    display: flex;
    flex: 1 1 280px;
    min-width: 240px;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    color: #32475b;
    font-size: 13px;
    font-weight: 800;
}

.search-field input {
    border: 1px solid #ced7e0;
    border-radius: 10px;
    background: #fbfcfe;
}

.search-form > .btn {
    margin-top: 25px;
}

.smart-search-help {
    color: #7a6654;
    font-size: 11px;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-badge.active {
    color: #18794e;
    background: #e9f9f3;
}

.status-badge.inactive {
    color: #b42318;
    background: #fdeeee;
}

.status-badge.warning {
    color: #9a5a00;
    background: #fff4d8;
}

.customer-history-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.customer-history-overlay.is-open {
    display: grid;
}

.customer-history-dialog {
    width: min(1080px, 100%);
    max-height: min(86vh, 860px);
    overflow: auto;
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.customer-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.history-close {
    flex: 0 0 auto;
    text-decoration: none;
}

.customer-history-header h2,
.customer-history-order h3 {
    margin: 0;
}

.customer-history-header p,
.customer-history-order p {
    margin: 5px 0 0;
    color: #607282;
    font-weight: 700;
}

.customer-history-list {
    display: grid;
    gap: 14px;
}

.customer-history-order {
    padding: 14px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #f9fbfd;
}

.customer-history-order header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.customer-history-total {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.customer-history-total strong {
    color: #23384d;
    font-size: 20px;
}

.customer-history-reprint {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.customer-history-reprint .btn {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
    white-space: nowrap;
}

.customer-history-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.customer-history-table table {
    min-width: 620px;
}

.empty-note {
    color: #6b7d8f;
    font-style: italic;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    background: #f8fafc;
}

.pagination-info {
    color: #5f7184;
    font-size: 14px;
    font-weight: 700;
}

.pagination-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    color: #23384d;
    background: #fff;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(20, 34, 48, .06);
    transition: background .15s, border-color .15s, transform .15s;
}

.page-link:hover {
    border-color: #1abc9c;
    color: #117964;
    transform: translateY(-1px);
}

.page-link.active {
    color: #fff;
    background: #1abc9c;
    border-color: #1abc9c;
    box-shadow: 0 6px 14px rgba(26, 188, 156, .24);
}

.page-link.disabled {
    pointer-events: none;
    opacity: .45;
    background: #edf2f7;
    box-shadow: none;
}

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

.total-line {
    text-align: right;
    font-size: 22px;
    font-weight: 800;
}

@media (max-width: 720px) {
    .page,
    .pos-page {
        width: min(100% - 14px, 1480px);
    }

    .topbar,
    .hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .screen-heading {
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
    }

    .screen-heading h1 {
        font-size: 32px;
    }

    .screen-heading .button {
        width: 100%;
    }

    .order-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .order-card {
        min-height: 118px;
        gap: 6px;
        padding: 13px;
        border-radius: 10px;
    }

    .order-card strong {
        font-size: 34px;
    }

    .order-card span,
    .order-card small {
        font-size: 11px;
    }

    .order-card-client {
        font-size: 10px !important;
    }

    .order-card-total,
    .order-card-timer {
        font-size: 12px;
        min-width: 0;
    }

    .order-status-bar {
        display: grid;
        gap: 10px;
        min-height: 0;
        margin-top: -20px;
        padding: 10px 8px;
    }

    .order-status-info {
        align-items: center;
        gap: 8px;
    }

    .current-mode-card {
        flex: 0 0 118px;
        width: 118px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .current-mode-card strong {
        font-size: 18px;
    }

    .order-status-copy p {
        font-size: 11px;
    }

    .hero-actions {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .hero-actions .button,
    .hero-actions .send-kitchen-form {
        width: 100%;
    }

    .pickup-customer-panel form {
        grid-template-columns: 1fr;
    }

    .express-customer-panel form {
        grid-template-columns: 1fr;
    }

    .pickup-customer-panel input,
    .pickup-customer-panel select,
    .pickup-customer-panel .button {
        min-height: 40px;
        font-size: 15px;
    }

    .category-strip {
        gap: 6px;
        margin-bottom: 8px;
        padding-bottom: 5px;
    }

    .category-filter {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .subcategory-strip {
        gap: 6px;
        margin-bottom: 8px;
        padding-bottom: 5px;
    }

    .subcategory-filter {
        min-height: 32px;
        padding: 6px 12px;
        font-size: 12px;
    }

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

    .product-card {
        min-height: 0;
        padding: 9px 8px;
    }

    .product-card h2 {
        font-size: 13px;
    }

    .product-card select {
        min-height: 34px;
        font-size: 13px;
    }

    .product-card .button {
        min-height: 34px;
    }

    .central-hero-card {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .central-hero h1 {
        font-size: 28px;
    }

    .central-badge {
        min-width: 0;
    }

    .central-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .central-card {
        min-height: 134px;
        padding: 17px 14px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .status-form {
        min-width: 220px;
    }

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

    .admin-product-form {
        position: static;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-header,
    .search-form,
    .actions,
    .pagination,
    .pagination-links,
    .row-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .size-row {
        grid-template-columns: 1fr;
    }

    .product-panel table {
        min-width: 760px;
    }

    .pos-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pos-cart {
        position: static;
        max-height: none;
        padding: 10px;
        border-radius: 10px;
    }

    .pos-cart-header {
        align-items: flex-start;
    }

    .pos-cart-header h2 {
        font-size: 20px;
    }

    .pos-cart-table {
        min-width: 0;
        font-size: 12px;
    }

    .pos-cart-table th,
    .pos-cart-table td {
        padding: 7px 5px;
    }

    .pos-cart-table th:nth-child(3),
    .pos-cart-table td:nth-child(3) {
        display: none;
    }

    .pos-cart-table td:first-child {
        width: auto;
        max-width: none;
    }

    .pos-cart .cart-actions {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .pos-cart .cart-actions .button.small {
        min-width: 34px;
        min-height: 32px;
        padding: 5px 7px;
        font-size: 12px;
    }

    .pos-cart-footer .button {
        min-height: 48px;
        font-size: 18px;
    }

    .payment-overlay {
        align-items: end;
        padding: 8px;
    }

    .payment-dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 10px 10px 0 0;
    }

    .payment-dialog-body {
        max-height: calc(100vh - 86px);
        padding: 8px;
    }

    .payment-dialog-header {
        padding: 9px 10px;
    }

    .payment-icon {
        width: 34px;
        height: 34px;
    }

    .payment-dialog-header h2 {
        font-size: 16px;
    }

    .payment-dialog-actions {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .payment-dialog-actions .button {
        min-height: 42px;
        font-size: 14px;
    }
}

@media (max-width: 980px) {
    .nav-container {
        width: min(100% - 20px, 1440px);
    }

    .nav-top-bar {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-user-info {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .nav-main {
        padding: 0;
    }

    .nav-links {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
        padding: 12px 0;
    }

    .navbar-moderno.is-open .nav-links {
        display: grid;
    }

    .nav-link {
        min-height: 42px;
    }
}

@media (min-width: 721px) and (max-width: 1100px) {
    .page,
    .pos-page {
        width: min(100% - 20px, 1480px);
    }

    .order-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .order-card {
        min-height: 130px;
        padding: 16px;
    }

    .order-card strong {
        font-size: 38px;
    }

    .pickup-customer-panel form,
    .express-customer-panel form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pickup-customer-panel .button,
    .express-customer-status {
        grid-column: 1 / -1;
    }

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

    .pos-layout {
        grid-template-columns: 1fr;
    }

    .pos-cart {
        position: static;
        max-height: none;
    }
}

@media (max-width: 1180px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .pos-cart {
        position: static;
        max-height: none;
    }

    .payment-dialog-header,
    .payment-selection-grid,
    .payment-summary-panel {
        grid-template-columns: 1fr;
    }

    .payment-dialog-header {
        display: grid;
    }

    .payment-transfer-actions {
        display: none;
    }

    .payment-dialog-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-brand-icon {
        width: 34px;
        height: 34px;
    }

    .nav-brand-text {
        font-size: 16px;
    }

    .nav-user-info {
        border-radius: 14px;
    }

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

@media (min-width: 721px) and (max-width: 1100px) {
    .menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pos-layout {
        grid-template-columns: 1fr;
    }
}

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

    .pos-layout {
        grid-template-columns: 1fr;
    }
}

@media print {
    body.cash-ticket-page {
        background: #fff;
    }

    .cash-ticket {
        display: block;
        padding: 0;
    }

    .cash-ticket-paper {
        width: 76mm;
        margin: 0;
        padding: 4mm;
        border: 0;
        box-shadow: none;
        font-size: 12px;
        line-height: 1.28;
    }

    .cash-ticket-paper h1 {
        font-size: 16px;
    }

    .ticket-items article strong {
        font-size: 12px;
    }

    .ticket-items article p {
        padding-right: 0;
        justify-content: flex-end;
        gap: 5px;
    }

    .ticket-totals p strong {
        min-width: 78px;
    }

    .ticket-totals {
        width: 92%;
    }

    .ticket-grand-total {
        font-size: 14px;
    }

    .cash-ticket-actions {
        display: none;
    }

    .ticket-success-message {
        display: none;
    }

    body.kitchen-ticket-page {
        background: #fff;
    }

    .kitchen-ticket {
        display: block;
        padding: 0;
    }

    .kitchen-ticket-paper {
        width: 80mm;
        margin: 0;
        padding: 8mm 5mm;
        border: 0;
        box-shadow: none;
    }

    .kitchen-ticket-actions {
        display: none;
    }
}

/* =============================
   MEJORAS TICKET TERMICO 80MM
   Compatible con Chrome, Laragon y Windows
============================= */
.cash-ticket-page {
    background: #e5e7eb;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
}

.cash-ticket {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    box-sizing: border-box;
}

.cash-ticket-paper {
    width: 80mm;
    max-width: 80mm;
    background: #fff;
    color: #000;
    padding: 8px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.28;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.cash-ticket-paper header,
.cash-ticket-paper footer {
    text-align: center;
}

.cash-ticket-paper h1 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.1;
}

.cash-ticket-paper p {
    margin: 2px 0;
}

.ticket-line {
    border-top: 1px dashed #000;
    margin: 6px 0;
}

.ticket-items article {
    margin-bottom: 4px;
}

.ticket-items article strong {
    display: block;
    font-size: 12px;
    word-break: break-word;
}

.ticket-items p,
.ticket-totals p {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 2px 0;
}

.ticket-totals strong {
    white-space: nowrap;
}

.ticket-grand-total {
    font-size: 15px;
    font-weight: 700;
}

.cash-ticket-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media print {
    html,
    body {
        width: 80mm;
        min-width: 80mm;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

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

    .ticket-success-message,
    .cash-ticket-actions,
    .navbar-moderno,
    nav,
    header:not(.cash-ticket-paper header) {
        display: none !important;
    }

    .cash-ticket {
        width: 80mm !important;
        min-height: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cash-ticket-paper {
        width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 !important;
        padding: 2mm !important;
        border: 0 !important;
        box-shadow: none !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .cash-ticket-paper h1 {
        font-size: 16px !important;
    }
}

/* =============================
   FLUJO DE VENTAS
============================= */
.pos-cart-footer-stack {
    flex-direction: column;
    gap: 10px;
}

.sale-flow-actions,
.sales-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sale-flow-actions form,
.sales-actions form {
    margin: 0;
}

.sales-filter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
    margin: 18px 0;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.sales-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.sales-summary-grid article,
.sales-table-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.sales-summary-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.sales-summary-grid strong {
    font-size: 22px;
}

.sales-ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ranking-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ranking-title span {
    color: #123d73;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.ranking-title strong {
    padding: 4px 8px;
    border-radius: 999px;
    color: #0d6b18;
    background: #dcfce7;
    font-size: 11px;
}

.ranking-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.ranking-list li span {
    min-width: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
}

.ranking-list li small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.ranking-list li strong {
    color: #0f8d64;
    font-size: 15px;
    white-space: nowrap;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
}

.sales-table th,
.sales-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.sale-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.sale-status.ok {
    background: #dcfce7;
    color: #166534;
}

.sale-status.danger {
    background: #fee2e2;
    color: #991b1b;
}

.sales-table tr.is-cancelled {
    opacity: .65;
}

@media print {
    body:not(.cash-ticket-page):not(.kitchen-ticket-page) {
        background: #fff !important;
    }

    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .navbar-moderno,
    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .sales-filter,
    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .no-print,
    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .sale-flow-actions {
        display: none !important;
    }

    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .page {
        max-width: none !important;
        margin: 0 !important;
        padding: 12px !important;
    }

    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .screen-heading,
    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .sales-summary-grid article,
    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .sales-table-card {
        box-shadow: none !important;
        border: 1px solid #d7dde5 !important;
        break-inside: avoid;
    }

    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .sales-summary-grid,
    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .sales-ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .sales-table th,
    body:not(.cash-ticket-page):not(.kitchen-ticket-page) .sales-table td {
        padding: 6px !important;
        font-size: 11px !important;
    }
}
