body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f1ea;
    color: #1f2937;
    overflow-x: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

body.modal-open {
    overflow: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background:
        radial-gradient(circle at 10% 14%, rgba(15, 118, 110, 0.14), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(194, 65, 12, 0.1), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 241, 234, 0.82)),
        #f4f1ea;
}

.login-shell {
    display: block;
    width: min(100%, 440px);
    animation: login-panel-in 0.48s ease both;
}

.login-brand-panel,
.login-card {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 28px;
    background: #fffdf8;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.login-brand-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 430px;
    padding: clamp(24px, 3vw, 34px);
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.96), rgba(17, 94, 89, 0.95) 54%, rgba(31, 41, 55, 0.98));
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    pointer-events: none;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 210px;
    height: 210px;
    border: 32px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.login-brand-orbit {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-self: start;
    justify-self: center;
    width: 128px;
    max-width: 36%;
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.login-brand-orbit::before,
.login-brand-orbit::after {
    content: '';
    position: absolute;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-brand-orbit::before {
    inset: -12px;
    animation: login-float 4.8s ease-in-out infinite;
}

.login-brand-orbit::after {
    inset: 18px;
}

.login-brand-icon,
.login-lock-badge,
.login-input-icon {
    display: grid;
    place-items: center;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.login-brand-icon svg,
.login-lock-badge svg,
.login-input-icon svg {
    width: 1em;
    height: 1em;
}

.login-brand-icon svg {
    font-size: 38px;
}

.login-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.login-brand-copy .brand-eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.login-brand-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.9rem, 3.1vw, 2.75rem);
    line-height: 1.05;
}

.login-brand-copy p:not(.brand-eyebrow) {
    max-width: 460px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.55;
}

.login-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.login-feature-grid span {
    min-width: 0;
    padding: 11px 10px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.11);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

.login-card {
    align-self: center;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(26px, 3vw, 36px);
}

.login-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.login-lock-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #0f766e;
    background: rgba(15, 118, 110, 0.1);
}

.login-lock-badge svg {
    font-size: 29px;
}

.brand-eyebrow,
.topbar-label {
    margin: 0 0 8px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
}

.brand-title,
.login-card h1,
.login-card h2,
.admin-topbar h2,
.panel-card h3 {
    margin: 0;
}

.login-card h1,
.login-card h2 {
    font-size: clamp(1.65rem, 3vw, 2.05rem);
    color: #111827;
    line-height: 1.15;
}

.login-copy {
    color: #6b7280;
    margin: 10px 0 0;
    line-height: 1.5;
}

.login-form,
.product-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.login-form {
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-form label,
.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 22px;
    height: 22px;
    color: #94a3b8;
    transform: translateY(-50%);
    transition: color 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.login-input-icon svg {
    font-size: 21px;
}

.login-form input,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    background: #ffffff;
}

.login-form input {
    min-height: 52px;
    padding-left: 48px;
    border-color: #d8dee8;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #0f766e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.login-input-wrap:focus-within .login-input-icon {
    color: #0f766e;
    transform: translateY(-50%) scale(1.04);
}

textarea {
    resize: vertical;
}

.login-form button,
.admin-nav a,
.button-primary,
.button-secondary,
.button-danger,
.button-link,
.button-icon {
    transition: 0.2s ease;
}

.login-form button,
.form-actions button,
.button-primary,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.login-form button,
.form-actions button,
.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #115e59);
}

.login-form button {
    min-height: 52px;
    margin-top: 4px;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24);
}

.button-secondary {
    color: #1f2937;
    background: #e5e7eb;
}

.button-danger {
    color: #ffffff;
    background: #b91c1c;
}

.button-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    color: #78350f;
    background: #fbbf24;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.button-icon {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #e5e7eb;
    color: #1f2937;
    font-weight: 700;
    cursor: pointer;
}

.button-small {
    padding: 10px 12px;
    font-size: 0.85rem;
}

.login-form button:hover,
.form-actions button:hover,
.button-primary:hover,
.button-secondary:hover,
.button-danger:hover,
.button-warning:hover,
.button-link:hover,
.button-icon:hover {
    transform: translateY(-1px);
}

.login-form button:hover {
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.3);
}

.login-form button:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.24);
}

@keyframes login-panel-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 18px;
    font-size: 0.95rem;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: 22px;
    color: #f9fafb;
    background: linear-gradient(180deg, #111827, #1f2937);
}

.admin-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-brand-block {
    min-width: 0;
}

.brand-title {
    overflow-wrap: anywhere;
    font-size: 1.45rem;
    line-height: 1.15;
}

.admin-menu-toggle {
    display: none;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 0;
}

.admin-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1.25;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin-content {
    min-width: 0;
    padding: clamp(18px, 3vw, 30px);
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-user {
    min-width: 0;
    max-width: 280px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.admin-user span,
.stat-card strong {
    display: block;
    font-weight: 700;
}

.admin-user span,
.admin-user small {
    overflow-wrap: anywhere;
}

.admin-user small,
.stat-card span,
.empty-state,
.form-group small,
.table-muted,
.detail-label {
    color: #6b7280;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card,
.panel-card,
.detail-card {
    background: #fffdf8;
    border: 1px solid rgba(229, 231, 235, 0.84);
    border-radius: 18px;
    padding: clamp(16px, 2.2vw, 22px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.stat-card strong {
    margin-top: 12px;
    font-size: 2rem;
}

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

.panel-card-header,
.label-row,
.modal-header,
.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: #ccfbf1;
    color: #115e59;
}

.status-inactive {
    background: #e5e7eb;
    color: #374151;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-preparing {
    background: #ede9fe;
    color: #6d28d9;
}

.status-ready {
    background: #d9f99d;
    color: #3f6212;
}

.status-shipping {
    background: #cffafe;
    color: #155e75;
}

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

.status-paid,
.status-closed {
    background: #ccfbf1;
    color: #115e59;
}

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

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

.form-group {
    display: grid;
    gap: 8px;
}

.form-group-color {
    align-content: start;
}

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

.color-input-shell {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d6dbe4;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.color-input-compact {
    width: 52px !important;
    height: 40px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px;
    background: transparent !important;
    cursor: pointer;
}

.color-input-compact::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input-compact::-webkit-color-swatch {
    border: 0;
    border-radius: 12px;
}

.color-input-compact::-moz-color-swatch {
    border: 0;
    border-radius: 12px;
}

.color-input-copy {
    font-size: 0.84rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.checkbox-group {
    align-items: end;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.form-actions {
    margin-top: 8px;
}

.current-image {
    margin-top: 8px;
}

.current-image p {
    margin: 0 0 10px;
    font-weight: 600;
}

.current-image img,
.table-image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
    background: #e5e7eb;
}

.table-image-small {
    width: 72px;
    height: 72px;
}

.table-image-placeholder {
    display: grid;
    place-items: center;
    color: #6b7280;
    font-size: 0.8rem;
}

.store-logo-preview {
    object-fit: contain !important;
    padding: 8px;
    background: #ffffff;
}

.actions-inline,
.inline-detail,
.order-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.actions-inline a,
.actions-inline button,
.table-actions a,
.table-actions button,
.form-actions a,
.form-actions button {
    min-height: 40px;
}

.order-print-panel {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
}

.order-print-panel-copy {
    display: grid;
    gap: 6px;
}

.order-print-panel-copy span {
    color: #6b7280;
    font-size: 0.92rem;
}

.order-print-form {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.order-print-form .form-group {
    min-width: 220px;
    margin: 0;
}

.order-print-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.actions-inline form {
    margin: 0;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
}

.table-qr-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.table-qr-card h4 {
    margin: 10px 0 4px;
    font-size: 1.2rem;
}

.qr-preview {
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.qr-preview svg {
    width: min(100%, 220px);
    height: auto;
}

.qr-card-preview svg {
    width: min(100%, 240px);
    max-height: 320px;
}

.table-internal-note {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.form-section {
    display: grid;
    gap: 14px;
    margin-top: 10px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
}

.form-section h4 {
    margin: 0;
}

.form-section-help {
    margin: 0;
    color: #6b7280;
}

.checkbox-stack {
    display: grid;
    gap: 12px;
}

.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.copy-row input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-row button {
    white-space: nowrap;
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.cash-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    margin-top: 18px;
}

.cash-account-card,
.cash-order-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.cash-account-top,
.cash-order-header,
.cash-order-total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cash-account-top h4,
.cash-order-header h4 {
    margin: 10px 0 0;
    font-size: 1.25rem;
}

.cash-account-total {
    flex: 0 0 auto;
    font-size: 1.25rem;
    color: #0f766e;
}

.cash-account-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cash-account-meta > div {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.cash-account-meta span,
.cash-order-total span {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cash-account-actions,
.cash-close-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cash-account-actions form,
.cash-close-actions form {
    margin: 0;
}

.cash-order-list {
    display: grid;
    gap: 18px;
}

.cash-note {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.cash-order-total {
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.cash-order-total strong {
    color: #0f766e;
    font-size: 1.1rem;
}

.kitchen-live {
    min-height: 70vh;
}

.kitchen-live-header {
    align-items: flex-start;
}

.kitchen-sound-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.kitchen-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.kitchen-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 18px;
}

.kitchen-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 18px;
}

.kitchen-table-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

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

.kitchen-table-header h4 {
    margin: 0;
    font-size: 1.35rem;
}

.kitchen-table-total {
    flex: 0 0 auto;
    color: #0f766e;
    font-size: 1.35rem;
}

.kitchen-table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kitchen-table-orders {
    display: grid;
    gap: 12px;
}

.kitchen-without-table {
    margin-top: 18px;
}

.kitchen-order-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.kitchen-order-card-compact {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}

.kitchen-order-new {
    border-color: #0f766e;
    background: linear-gradient(180deg, #ecfdf5, #ffffff 38%);
    animation: kitchen-new-pulse 1.6s ease-in-out 3;
}

@keyframes kitchen-new-pulse {
    0%, 100% {
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
    }
    50% {
        box-shadow: 0 18px 42px rgba(15, 118, 110, 0.2);
    }
}

.kitchen-new-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
}

.kitchen-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-right: 58px;
}

.kitchen-order-top h4 {
    margin: 0;
    font-size: 1.25rem;
}

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

.kitchen-meta-grid > div,
.kitchen-note {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.kitchen-meta-grid span,
.kitchen-note span {
    flex: 0 0 auto;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kitchen-meta-grid strong,
.kitchen-note strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.kitchen-products {
    display: grid;
    gap: 10px;
}

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

.kitchen-products li {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fffdf8;
    border: 1px solid #e5e7eb;
}

.kitchen-products small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
}

.kitchen-status-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.kitchen-status-actions button {
    min-height: 44px;
}

.kitchen-empty {
    grid-column: 1 / -1;
    margin: 0;
}

.kitchen-live-clean {
    display: grid;
    gap: 16px;
}

.kitchen-clean-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kitchen-filter-menu {
    position: relative;
    margin-left: auto;
}

.kitchen-filter-trigger {
    min-width: 104px;
}

.kitchen-filter-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    display: grid;
    gap: 4px;
    width: 210px;
    max-height: min(70vh, 360px);
    overflow: auto;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.kitchen-filter-popover[hidden] {
    display: none !important;
}

.kitchen-filter-option {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #374151;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.kitchen-filter-option:hover,
.kitchen-filter-option.is-active {
    color: #ffffff;
    background: #0f766e;
}

.kitchen-table-card-clean {
    gap: 14px;
    padding: 16px;
    border-width: 1px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.kitchen-table-clean-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.kitchen-table-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.kitchen-table-title-row h4 {
    margin: 0;
    font-size: 1.25rem;
}

.kitchen-table-title-row span,
.kitchen-table-clean-head p,
.kitchen-order-clean-head small,
.kitchen-order-meta-line {
    color: #6b7280;
}

.kitchen-table-clean-head p {
    margin: 6px 0 0;
    font-weight: 700;
}

.kitchen-table-actions-clean,
.kitchen-order-state-actions,
.kitchen-order-print-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kitchen-table-actions-clean {
    justify-content: flex-end;
}

.kitchen-order-card-clean {
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 14px;
}

.kitchen-order-clean-head {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(240px, auto);
    gap: 10px;
    align-items: start;
}

.kitchen-order-clean-head h4 {
    margin: 0;
    font-size: 1rem;
}

.kitchen-order-clean-head .status-pill {
    justify-self: start;
}

.kitchen-order-state-actions {
    justify-content: flex-end;
}

.kitchen-order-state-actions button,
.kitchen-order-print-actions a {
    min-height: 36px;
    padding-inline: 10px;
}

.kitchen-products-clean {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kitchen-products-clean li {
    padding: 0;
    background: transparent;
    border: 0;
}

.kitchen-products-clean small {
    display: block;
    color: #6b7280;
}

.kitchen-order-extra {
    margin: 0;
    color: #374151;
    line-height: 1.35;
}

.kitchen-order-extra span {
    color: #6b7280;
    font-weight: 800;
}

.kitchen-order-meta-line {
    font-size: 0.88rem;
    font-weight: 800;
}

.kitchen-order-print-actions {
    padding-top: 2px;
}

.products-list-shell {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.products-table {
    min-width: 940px;
    table-layout: fixed;
}

.products-table-head {
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
    background: #fffdf8;
}

.products-table-head th {
    background: #fffdf8;
}

.products-table-body-wrap {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
}

.products-col-image {
    width: 112px;
}

.products-col-name {
    width: 24%;
}

.products-col-category {
    width: 18%;
}

.products-col-price {
    width: 12%;
}

.products-col-stock {
    width: 10%;
}

.products-col-status {
    width: 14%;
}

.products-col-actions {
    width: 22%;
}

.catalog-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.catalog-header-copy {
    min-width: 0;
}

.catalog-header-search {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    min-width: min(100%, 280px);
}

.catalog-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex-wrap: wrap;
}

.catalog-search-input-wrap {
    position: relative;
    width: min(100%, 360px);
}

.catalog-search-input-wrap::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #94a3b8;
    border-radius: 999px;
    transform: translateY(-60%);
    pointer-events: none;
}

.catalog-search-input-wrap::after {
    content: '';
    position: absolute;
    left: 29px;
    top: calc(50% + 4px);
    width: 8px;
    height: 2px;
    background: #94a3b8;
    transform: rotate(45deg);
    border-radius: 999px;
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px 10px 44px;
    border: 1px solid #d6dbe4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.catalog-search-input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    background: #ffffff;
}

.empty-state-inline {
    margin-top: 16px;
}

.admin-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-grid-two {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

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

.detail-card,
.detail-list > div {
    display: grid;
    gap: 8px;
}

.detail-list {
    display: grid;
    gap: 16px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    align-items: start;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 999px;
    background: #0f766e;
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.14);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.5);
    z-index: 1000;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    width: min(100%, 620px);
    padding: 24px;
    border-radius: 24px;
    background: #fffdf8;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
}

.modal-feedback {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
}

.modal-feedback-success {
    background: #dcfce7;
    color: #166534;
}

.modal-feedback-error {
    background: #fee2e2;
    color: #991b1b;
}

.attribute-list,
.gallery-grid {
    display: grid;
    gap: 12px;
}

.attribute-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.attribute-row input {
    margin: 0;
}

.gallery-section {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

.gallery-title {
    margin: 0;
    font-weight: 700;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 148px));
    justify-content: start;
}

.gallery-card {
    display: grid;
    gap: 12px;
    width: 148px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.gallery-card-primary {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.12);
}

.gallery-card img {
    width: 100%;
    height: 108px;
    object-fit: cover;
    border-radius: 16px;
    background: #e5e7eb;
}

.gallery-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-color-link {
    display: grid;
    gap: 6px;
    min-width: 150px;
    color: #4b5563;
    font-size: 0.82rem;
}

.gallery-color-link span {
    font-weight: 600;
}

.gallery-color-link select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 8px 10px;
    background: #ffffff;
}

.color-variant-list {
    display: grid;
    gap: 12px;
}

.color-variant-row {
    display: grid;
    grid-template-columns: minmax(200px, 1.1fr) minmax(200px, 1fr) 108px auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}

.color-variant-field {
    display: grid;
    gap: 8px;
}

.color-variant-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b5563;
}

.color-variant-preview,
.color-variant-preview-placeholder {
    width: 100%;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    background: #e5e7eb;
}

.color-variant-preview {
    display: grid;
    place-items: center;
}

.color-variant-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.color-variant-preview-placeholder {
    display: grid;
    place-items: center;
    color: #6b7280;
    font-size: 0.82rem;
}

.danger-zone-card {
    border-color: rgba(185, 28, 28, 0.22);
}

.danger-zone-warning {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff7ed;
    color: #7f1d1d;
}

.danger-zone-warning strong {
    font-size: 1rem;
}

.danger-zone-warning p {
    margin: 0;
    color: #7c2d12;
    line-height: 1.5;
}

.danger-zone-warning code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.maintenance-target {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
}

.maintenance-target strong {
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.maintenance-target span {
    color: #1f2937;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.maintenance-action-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
}

.maintenance-action-warning {
    border-color: rgba(217, 119, 6, 0.28);
}

.maintenance-action-danger {
    border-color: rgba(185, 28, 28, 0.3);
}

.maintenance-action-copy {
    display: grid;
    gap: 8px;
}

.maintenance-action-copy h4 {
    margin: 0;
    font-size: 1.15rem;
}

.maintenance-action-copy p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.maintenance-summary {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.maintenance-summary > strong {
    font-size: 0.86rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.maintenance-summary p {
    margin: 0;
    color: #6b7280;
}

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

.maintenance-summary li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    color: #4b5563;
}

.maintenance-summary li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.maintenance-form {
    display: grid;
    gap: 14px;
    align-self: end;
}

.maintenance-form button {
    width: 100%;
    min-height: 44px;
}

@media (max-width: 900px) {
    .login-page {
        align-items: center;
        min-height: 100svh;
        padding: 14px;
    }

    .login-shell {
        width: min(100%, 430px);
    }

    .login-brand-panel {
        display: none;
    }

    .login-card {
        padding: 24px 22px;
        border-radius: 22px;
    }

    .login-card-head {
        gap: 14px;
    }

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

    .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 50;
        min-height: 0;
        gap: 0;
        padding: 12px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    }

    .admin-sidebar-head {
        align-items: center;
    }

    .admin-sidebar .brand-eyebrow {
        margin-bottom: 4px;
        font-size: 0.68rem;
    }

    .brand-title {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .admin-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        left: auto;
        z-index: 60;
        display: none;
        width: min(280px, calc(100vw - 24px));
        max-height: min(74vh, 520px);
        overflow-y: auto;
        padding: 8px;
        border: 1px solid rgba(229, 231, 235, 0.9);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 22px 60px rgba(15, 23, 42, 0.2);
    }

    .admin-nav.is-open {
        display: grid;
    }

    .admin-nav a {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 9px 12px;
        color: #1f2937;
        background: transparent;
    }

    .admin-nav a:hover {
        color: #0f766e;
        background: #f0fdfa;
    }

    .admin-content {
        padding: 16px 12px 22px;
    }

    .admin-topbar,
    .panel-card-header,
    .form-grid,
    .admin-grid-two,
    .detail-grid,
    .label-row,
    .modal-header,
    .modal-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-topbar {
        gap: 12px;
        margin-bottom: 16px;
    }

    .admin-topbar h2 {
        font-size: 1.45rem;
        line-height: 1.18;
    }

    .topbar-label {
        margin-bottom: 5px;
    }

    .admin-user {
        max-width: none;
        padding: 12px 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }

    .stat-card strong {
        margin-top: 8px;
        font-size: 1.35rem;
        overflow-wrap: anywhere;
    }

    .panel-card,
    .detail-card,
    .stat-card {
        border-radius: 16px;
    }

    .panel-card + .panel-card {
        margin-top: 14px;
    }

    .panel-card-header {
        gap: 12px;
    }

    .panel-card-header h3 {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    table {
        min-width: 680px;
    }

    th,
    td {
        padding: 11px 10px;
        font-size: 0.92rem;
    }

    .form-actions,
    .actions-inline,
    .table-actions,
    .catalog-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .form-actions a,
    .form-actions button,
    .actions-inline a,
    .actions-inline button,
    .table-actions a,
    .table-actions button,
    .catalog-header-actions a,
    .catalog-header-actions button {
        width: 100%;
    }

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

    .form-grid,
    .admin-grid-two,
    .detail-grid {
        display: grid;
    }

    .color-input-shell {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-header-bar {
        align-items: stretch;
    }

    .order-print-form,
    .order-print-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .order-print-form .form-group {
        min-width: 0;
    }

    .catalog-header-search {
        order: 3;
        width: 100%;
        justify-content: stretch;
    }

    .catalog-header-actions {
        margin-left: 0;
        justify-content: space-between;
    }

    .catalog-search-input-wrap {
        width: 100%;
    }

    .products-table-body-wrap {
        max-height: 52vh;
    }

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

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

    .copy-row button {
        width: 100%;
    }

    .cash-account-top,
    .cash-order-header,
    .cash-order-total {
        flex-direction: column;
        align-items: stretch;
    }

    .cash-account-meta {
        grid-template-columns: 1fr;
    }

    .cash-account-actions,
    .cash-close-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cash-account-actions a,
    .cash-account-actions button,
    .cash-close-actions button {
        width: 100%;
    }

    .kitchen-sound-controls,
    .kitchen-order-top {
        align-items: stretch;
        justify-content: flex-start;
    }

    .kitchen-orders-grid,
    .kitchen-table-grid,
    .kitchen-meta-grid,
    .kitchen-status-actions {
        grid-template-columns: 1fr;
    }

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

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

    .kitchen-table-actions a,
    .kitchen-table-actions button {
        width: 100%;
    }

    .kitchen-clean-toolbar {
        justify-content: flex-end;
    }

    .kitchen-filter-popover {
        width: min(220px, calc(100vw - 40px));
    }

    .kitchen-table-clean-head,
    .kitchen-order-clean-head {
        grid-template-columns: 1fr;
    }

    .kitchen-table-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .kitchen-table-actions-clean {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .kitchen-table-actions-clean a,
    .kitchen-table-actions-clean button {
        width: 100%;
    }

    .kitchen-order-state-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }

    .kitchen-order-state-actions button {
        min-width: 0;
        padding-inline: 8px;
    }

    .kitchen-order-print-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kitchen-meta-grid > div,
    .kitchen-note {
        align-items: flex-start;
    }

    .color-variant-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .gallery-card {
        width: auto;
    }
}

@media (max-width: 520px) {
    .login-page {
        min-height: 100svh;
        padding: 10px;
    }

    .login-card {
        padding: 22px 18px 20px;
        border-radius: 20px;
    }

    .login-card-head {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

    .login-lock-badge {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .login-lock-badge svg {
        font-size: 24px;
    }

    .login-card h1,
    .login-card h2 {
        font-size: 1.45rem;
    }

    .login-copy {
        margin-top: 6px;
        font-size: 0.92rem;
    }

    .login-form {
        gap: 14px;
        margin-top: 18px;
    }

    .login-form input,
    .login-form button {
        min-height: 48px;
    }

    .alert {
        margin-top: 14px;
        padding: 12px 13px;
    }

    .admin-content {
        padding: 14px 10px 20px;
    }

    .admin-sidebar {
        padding: 10px;
    }

    .admin-menu-toggle {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .admin-nav {
        right: 10px;
        width: min(270px, calc(100vw - 20px));
    }

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

    .panel-card,
    .detail-card,
    .stat-card {
        padding: 15px;
    }

    .form-grid {
        gap: 14px;
    }

    .product-form {
        gap: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .button-primary,
    .button-secondary,
    .button-danger,
    .button-warning,
    .form-actions button {
        min-height: 42px;
        padding: 10px 12px;
    }

    table {
        min-width: 620px;
    }

    .table-wrap {
        margin-inline: -2px;
    }

    .cash-accounts-grid,
    .tables-grid,
    .kitchen-orders-grid,
    .kitchen-table-grid {
        gap: 12px;
    }
}

.salon-layout,
.salon-pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 20px;
    align-items: start;
}

.table-zone-manager {
    margin: 18px 0;
}

.zone-chip-row,
.zone-create-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
}

.zone-chip-row span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #115e59;
    background: #ccfbf1;
    font-weight: 800;
}

.zone-create-form .form-group {
    min-width: min(100%, 220px);
    margin: 0;
}

.salon-head {
    align-items: flex-start;
}

.salon-floor,
.salon-delivery-panel,
.salon-product-panel,
.salon-cart-panel {
    min-width: 0;
}

.salon-special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 320px));
    gap: 16px;
    margin-top: 18px;
}

.salon-zones {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.salon-zone {
    display: grid;
    gap: 12px;
}

.salon-zone-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.salon-zone-head h4,
.salon-delivery-section h4 {
    margin: 0;
    font-size: 1rem;
}

.salon-zone-head span {
    color: #6b7280;
    font-weight: 700;
}

.salon-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 14px;
}

.salon-table-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
    color: #374151;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.salon-table-card.is-occupied {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #115e59;
}

.salon-table-card-quick {
    border-color: #1d4ed8;
    background: #eff6ff;
    color: #1e3a8a;
}

.salon-table-card:hover {
    transform: translateY(-1px);
}

.salon-table-top,
.salon-table-meta,
.delivery-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.salon-table-top strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.salon-table-icon {
    display: grid;
    place-items: center;
    min-height: 92px;
    color: currentColor;
}

.salon-table-icon svg {
    width: min(92px, 60%);
    height: auto;
}

.salon-table-meta {
    align-items: end;
}

.salon-table-meta span {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
}

.salon-table-meta strong {
    color: inherit;
    font-size: 1.15rem;
}

.delivery-alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-left: 8px;
    border-radius: 999px;
    color: #ffffff;
    background: #b91c1c;
    font-size: 0.9rem;
}

.salon-delivery-section {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.driver-form,
.delivery-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.delivery-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.driver-form .form-group {
    margin: 0;
}

.driver-form input,
.delivery-actions select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
}

.delivery-order-list {
    display: grid;
    gap: 12px;
}

.delivery-order-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.delivery-order-card.is-new {
    border-color: #b91c1c;
    background: #fff7f7;
}

.delivery-order-head h5 {
    margin: 6px 0 0;
    font-size: 1rem;
}

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

.delivery-meta > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
}

.delivery-meta span {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.delivery-meta strong,
.delivery-products,
.delivery-note {
    overflow-wrap: anywhere;
}

.delivery-products,
.delivery-note {
    margin: 0;
    color: #374151;
    line-height: 1.45;
}

.salon-product-toolbar,
.salon-search-form,
.salon-category-row,
.salon-checkout-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.salon-product-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.salon-search-form input {
    min-width: min(100%, 260px);
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
}

.salon-category-row a {
    padding: 9px 12px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
}

.salon-category-row a.is-active {
    background: #0f766e;
    color: #ffffff;
}

.salon-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 14px;
}

.salon-product-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.salon-product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
}

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

.salon-product-copy {
    display: grid;
    gap: 4px;
}

.salon-product-copy span {
    color: #0f766e;
    font-weight: 800;
}

.salon-product-form {
    display: grid;
    gap: 8px;
}

.salon-product-form select,
.salon-product-form input,
.salon-cart-item input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 9px 10px;
}

.salon-cart-list {
    display: grid;
    gap: 12px;
}

.salon-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.salon-cart-item div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.salon-cart-item span,
.salon-cart-item small {
    color: #6b7280;
}

.salon-checkout-actions {
    margin-top: 16px;
}

.salon-checkout-actions form {
    margin: 0;
}

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

@media (max-width: 720px) {
    .salon-table-grid,
    .salon-special-grid,
    .salon-product-grid,
    .delivery-meta,
    .driver-form,
    .delivery-actions {
        grid-template-columns: 1fr;
    }

    .salon-table-top,
    .salon-table-meta,
    .delivery-order-head {
        align-items: stretch;
        flex-direction: column;
    }

    .salon-table-top strong {
        text-align: left;
    }

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

    .salon-checkout-actions button,
    .driver-form button,
    .delivery-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-shell,
    .login-brand-orbit::before,
    .kitchen-order-new {
        animation: none;
    }

    .login-form button,
    .login-input-icon,
    .login-form input {
        transition: none;
    }
}
