:root {
    --primary: #c0392b;
    --primary-dark: #962d22;
    --accent: #f1c40f;
    --gray-100: #f8f9fa;
    --gray-300: #e0e0e0;
    --gray-700: #4a4a4a;
    --gray-900: #222;
    --radius: 12px;
    --delivery-thumb-grid: 160px;
    --delivery-thumb-list: 96px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--gray-100);
    color: var(--gray-900);
    font-family: var(--font, 'Segoe UI', sans-serif);
}

.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, rgba(192, 57, 43, 0.2), transparent),
                radial-gradient(circle at bottom, rgba(241, 196, 15, 0.15), transparent),
                var(--gray-100);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-card h1 {
    margin: 0 0 0.5rem;
}

.subtitle {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.alert {
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(192, 57, 43, 0.15);
    color: var(--primary-dark);
}

.alert-warning {
    background: rgba(241, 196, 15, 0.2);
    color: #8a6d1d;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form label {
    font-weight: 600;
    color: var(--gray-700);
}

.form input,
.form textarea,
.form select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 1rem;
}

.form button {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form button:hover {
    background: var(--primary-dark);
}

.form-info {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.form-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.form-field-header label {
    margin: 0;
}

.form-quick-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
}

.form-quick-link:hover,
.form-quick-link:focus {
    color: var(--primary);
    text-decoration: underline;
    outline: none;
}
.produto-imagem-upload {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.produto-imagem-preview {
    width: 160px;
    height: 120px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    overflow: hidden;
}

.produto-imagem-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #475569;
}

.checkbox-inline input[type="checkbox"] {
    margin: 0;
}
.vendas-filter-form {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.vendas-filter-field label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.vendas-filter-field input,
.vendas-filter-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
.vendas-filter-field input:focus,
.vendas-filter-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(83, 125, 253, 0.18);
}
.vendas-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0;
    margin-left: auto;
}
.vendas-filter-actions .button,
.vendas-filter-actions .button-secondary {
    margin-top: 0;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
}
.vendas-filter-field {
    flex: 1 1 190px;
    min-width: 190px;
}

.login-hint {
    margin-top: 1.25rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-300);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.nav-brand {
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    color: var(--gray-900);
    border: 1px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.2);
    color: var(--primary-dark);
}

.nav-more {
    margin-left: 1.5rem;
}

.nav-more summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
}

.nav-more summary::marker {
    content: '';
}

.nav-more summary::-webkit-details-marker {
    display: none;
}

.nav-more summary::after {
    content: '▾';
    margin-left: 0.35rem;
    font-size: 0.85rem;
    color: inherit;
}

.nav-more[open] summary::after {
    content: '▴';
}

.nav-more-list {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
}

.nav-dropdown {
    position: relative;
}
.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    color: var(--gray-900);
    transition: all 0.2s ease;
}
.nav-dropdown summary::marker,
.nav-dropdown summary::-webkit-details-marker {
    display: none;
}
.nav-dropdown summary::after {
    content: '▾';
    margin-left: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.75;
}
.nav-dropdown[open] summary::after {
    content: '▴';
}
.nav-dropdown summary:hover,
.nav-dropdown summary.active {
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.2);
    color: var(--primary-dark);
}
.nav-dropdown-list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    z-index: 20;
}
.nav-dropdown-list a {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    color: var(--gray-800);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-list a:hover,
.nav-dropdown-list a.active {
    background: rgba(192, 57, 43, 0.12);
    color: var(--primary-dark);
}
.pdv-simple-body .nav-dropdown summary {
    color: rgba(255, 255, 255, 0.82);
    border-color: transparent;
}
.pdv-simple-body .nav-dropdown summary:hover,
.pdv-simple-body .nav-dropdown summary.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.pdv-simple-body .nav-dropdown summary::after {
    opacity: 0.9;
}
.pdv-simple-body .nav-dropdown-list {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
}
.pdv-simple-body .nav-dropdown-list a {
    color: rgba(241, 245, 249, 0.9);
}
.pdv-simple-body .nav-dropdown-list a:hover,
.pdv-simple-body .nav-dropdown-list a.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.nav-link-disabled {
    color: rgba(71, 85, 105, 0.8);
    font-size: 0.9rem;
}

.nav-actions a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.nav-actions {
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown summary {
        width: 100%;
        text-align: center;
    }
    .nav-dropdown-list {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid rgba(148, 163, 184, 0.25);
        margin-top: 0.6rem;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .nav-actions {
        text-align: center;
        margin-left: 0;
    }

    .nav-more {
        margin-left: 0;
        width: 100%;
    }

    .nav-more summary {
        width: 100%;
        display: inline-block;
        text-align: center;
    }
}

.content {
    padding: 2rem;
    flex: 1;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-300);
    text-align: left;
}

th {
    background: rgba(0, 0, 0, 0.02);
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.status-ativa {
    background: rgba(39, 174, 96, 0.15);
    color: #1f8c4f;
}

.status-ocupada {
    background: rgba(192, 57, 43, 0.15);
    color: var(--primary-dark);
}

.status-desativada {
    background: rgba(128, 139, 150, 0.2);
    color: #55606d;
}

.status-vencido {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.status-cancelada {
    background: rgba(149, 165, 166, 0.18);
    color: #5f6a6d;
}

.section-title {
    margin: 0 0 1rem 0;
}

.empty-state {
    padding: 1rem;
    border: 1px dashed var(--gray-300);
    border-radius: 8px;
    text-align: center;
    color: var(--gray-700);
}

.hidden {
    display: none !important;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    transition: background 0.2s ease;
}

.button:hover {
    background: var(--primary-dark);
}

.button-danger {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    color: #fff;
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.35);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.button-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(248, 113, 113, 0.45);
}

.button-secondary {
    background: var(--gray-300);
    color: var(--gray-900);
}

.button-secondary:hover {
    background: var(--gray-700);
    color: #fff;
}

    gap: 0.75rem;
    text-align: center;
    min-height: 420px;
}

.sale-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 420px;
}

.sale-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.sale-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.9rem 1rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.search-result:hover {
    background: #f3f7fb;
}

.search-result__meta {
    font-size: 0.85rem;
    color: #6b7a8c;
}

.search-result__action {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-results__empty {
    padding: 1rem;
    font-size: 0.95rem;
    color: #6b7a8c;
}

.status-aberta {
    background: rgba(39, 174, 96, 0.18);
    color: #1f8c4f;
}

.status-fechada {
    background: rgba(192, 57, 43, 0.18);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .sale-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sale-topbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .sale-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .sale-field--small,
    .sale-field--button {
        width: 100%;
    }

    .pdv-sidebar {
        width: 100%;
    }

    .pdv-table-grid {
        max-height: none;
    }
}

.pdv-simple-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(138, 180, 248, 0.35), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(94, 234, 212, 0.25), transparent 45%),
        linear-gradient(135deg, #1c2441 0%, #151b2f 45%, #0b0f1d 100%);
    color: #f8fafc;
}

.pdv-simple-body .nav-bar {
    background: transparent;
    border: none;
    box-shadow: none;
}

.pdv-simple-body .nav-brand {
    color: #ffffff;
}

.pdv-simple-body .nav-links a {
    color: rgba(255, 255, 255, 0.72);
    border-color: transparent;
}

.pdv-simple-body .nav-links a:hover,
.pdv-simple-body .nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.pdv-simple-body .nav-actions,
.pdv-simple-body .nav-actions a {
    color: rgba(255, 255, 255, 0.75);
}

.pdv-simple-wrapper {
    display: flex;
    gap: 3rem;
    padding: 2.5rem 4rem;
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.pdv-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
    align-content: start;
    padding: 1.75rem;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 35px 60px rgba(7, 12, 24, 0.35);
    backdrop-filter: blur(14px);
    flex: 0 1 560px;
}

.pdv-mesa-filter {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.pdv-mesa-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 160px;
    min-width: 140px;
}

.pdv-mesa-filter-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
    letter-spacing: 0.02em;
}

.pdv-mesa-filter-field input,
.pdv-mesa-filter-field select {
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}

.pdv-mesa-filter-field input::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.pdv-mesa-filter-field select {
    cursor: pointer;
}

.pdv-status-filter-desktop {
    display: block;
}

@media (max-width: 768px) {
    .pdv-status-filter-desktop {
        display: none !important;
    }
}

.pdv-mesa-empty {
    grid-column: 1 / -1;
    margin: 0;
}

.mesa-tile {
    position: relative;
    border-radius: 16px;
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #7dd56f, #46b96f);
    color: #0f172a;
    box-shadow: 0 18px 30px rgba(22, 101, 52, 0.2);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.mesa-tile::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.85);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.mesa-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px rgba(15, 118, 110, 0.35);
}

.mesa-tile--ocupada {
    background: linear-gradient(135deg, #fb7185, #ec4899);
    color: #ffffff;
    box-shadow: 0 22px 35px rgba(220, 38, 38, 0.3);
}

.mesa-tile--ocupada::after {
    background: rgba(248, 113, 113, 0.9);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.25);
}

.mesa-tile--reservada {
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #1f2933;
    box-shadow: 0 22px 35px rgba(234, 179, 8, 0.28);
}

.mesa-tile--reservada::after {
    background: rgba(250, 204, 21, 0.85);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.25);
}

.mesa-tile--desativada {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #e2e8f0;
    box-shadow: 0 18px 28px rgba(100, 116, 139, 0.26);
    cursor: not-allowed;
}

.mesa-tile--desativada::after {
    background: rgba(148, 163, 184, 0.85);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.25);
}

.mesa-tile--desativada:hover {
    transform: none;
    box-shadow: 0 18px 28px rgba(100, 116, 139, 0.26);
}

.mesa-tile--active {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px rgba(59, 130, 246, 0.35);
    outline: 2px solid rgba(148, 163, 255, 0.6);
    outline-offset: 3px;
}

.pdv-simple-panel {
    flex: 1 1 520px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.45);
    color: #f8fafc;
}

.pdv-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.pdv-panel-heading h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pdv-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
}

.pdv-status-badge.status-ativa {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.pdv-status-badge.status-ocupada {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

.pdv-status-badge.status-desativada {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.32);
    color: #e2e8f0;
}

.pdv-status-badge.status-cancelada {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.28);
    color: #cbd5f5;
}

.pdv-panel-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pdv-panel-total {
    font-size: 1rem;
    font-weight: 700;
    color: #facc15;
}

.pdv-panel-counter {
    font-weight: 600;
}

.pdv-simple-search input {
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.pdv-simple-results {
    position: relative;
}

.pdv-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.4rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 25px 45px rgba(8, 11, 19, 0.45);
    max-height: 240px;
    overflow-y: auto;
    z-index: 15;
}

.pdv-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: #f1f5f9;
    transition: background 0.15s ease;
}

.pdv-search-result--empty {
    justify-content: center;
    opacity: 0.65;
    cursor: default;
    pointer-events: none;
}

.pdv-search-result:hover {
    background: rgba(148, 163, 184, 0.16);
}

.pdv-items-table {
    flex: 1;
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
}

.pdv-items-table table {
    display: block;
    width: max-content;
    min-width: 1000px;
    max-width: none;
    border-collapse: collapse;
    color: #e2e8f0;
}

.pdv-items-table th,
.pdv-items-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.9rem;
}

.pdv-items-table th {
    background: rgba(148, 163, 184, 0.12);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: #cbd5f5;
}

.pdv-items-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pdv-item-edit,
.pdv-item-remove {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

.pdv-item-remove {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.pdv-item-remove:hover {
    background: rgba(248, 113, 113, 0.28);
}

.pdv-items-empty {
    text-align: center;
    padding: 2rem 0;
    color: rgba(226, 232, 240, 0.7);
}

.pdv-total-bar {
    display: grid;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.05));
    padding: 1.2rem 1.4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
}

.pdv-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.88);
}

.pdv-total-row strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
}

.pdv-total-row--highlight {
    margin-top: 0.2rem;
}

.pdv-total-row--highlight strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.pdv-discount-panel {
    margin: 1.4rem 0 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pdv-discount-panel label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(226, 232, 240, 0.85);
}

.pdv-discount-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.pdv-discount-controls input {
    width: 160px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

@media (max-width: 768px) {
    .pdv-discount-panel {
        display: none !important;
    }
}

.pdv-discount-note {
    font-size: 0.8rem;
    color: rgba(248, 113, 113, 0.8);
}

.pdv-discount-note.hidden {
    display: none;
}

@media (min-width: 1600px) {
    .pdv-simple-wrapper {
        max-width: 1600px;
        padding: 3rem 5rem;
        gap: 3.5rem;
    }

    .pdv-simple-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .pdv-simple-panel {
        flex: 1 1 600px;
    }
}

.pdv-payment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: end;
}

.pdv-payment label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.pdv-payment select,
.pdv-payment input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
}

.pdv-change {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pdv-change.hidden {
    display: none;
}

.pdv-change-value {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-weight: 700;
    font-size: 1.1rem;
    color: #f8fafc;
    text-align: right;
    letter-spacing: 0.08em;
}

.pdv-action-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pdv-action-row button {
    flex: 1 1 180px;
}

.pdv-close-button,
.pdv-cancel-button {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.pdv-close-button {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #ffffff;
    box-shadow: 0 20px 35px rgba(37, 99, 235, 0.35);
}

.pdv-close-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px rgba(59, 130, 246, 0.45);
    filter: brightness(1.05);
}

.pdv-cancel-button {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    color: #ffffff;
    box-shadow: 0 20px 35px rgba(239, 68, 68, 0.35);
}

.pdv-cancel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px rgba(248, 113, 113, 0.4);
    filter: brightness(1.05);
}

.pdv-close-button:disabled,
.pdv-cancel-button:disabled {
    background: rgba(148, 163, 184, 0.3);
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
}

.pdv-message {
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.pdv-message--error {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.pdv-message--success {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
}

.pdv-message--info {
    background: rgba(250, 204, 21, 0.2);
    border-color: rgba(250, 204, 21, 0.3);
    color: #fef3c7;
}

@media (max-width: 1200px) {
    .pdv-simple-wrapper {
        flex-direction: column;
        max-width: 100%;
        gap: 2rem;
        padding: 2rem 2.5rem;
    }

    .pdv-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        padding: 1.5rem;
        flex: none;
    }

    .pdv-simple-panel {
        flex: none;
    }
}

@media (max-width: 768px) {
    .pdv-mesa-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .pdv-mesa-filter-field {
        width: 100%;
    }

    .pdv-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pdv-panel-meta {
        justify-content: space-between;
    }

    .pdv-payment {
        grid-template-columns: 1fr;
    }

    .pdv-simple-wrapper {
        padding: 1.8rem 1.25rem;
        gap: 1.5rem;
    }

    .pdv-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        padding: 1.25rem;
    }

    .mesa-tile {
        text-align: left;
        padding: 1rem;
    }

}

@media (max-width: 600px) {
    .pdv-simple-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .mesa-tile {
        font-size: 1.05rem;
    }
}

.pdv-comanda-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid transparent;
    color: #f8fafc;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pdv-comanda-item--active {
    border-color: rgba(94, 234, 212, 0.7);
    background: rgba(45, 212, 191, 0.18);
}

.pdv-comanda-item--fechada,
.pdv-comanda-item--cancelada {
    opacity: 0.7;
}

.pdv-comanda-title {
    font-weight: 600;
}

.pdv-comanda-client {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.85);
}

.pdv-comanda-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.65);
}

.delivery-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.delivery-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.delivery-field-wide {
    grid-column: 1 / -1;
}

.delivery-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--gray-700);
}

.delivery-form input,
.delivery-form textarea {
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.delivery-form input:focus,
.delivery-form textarea:focus,
.delivery-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.delivery-products {
    display: grid;
    gap: 1.25rem;
}

.delivery-search {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.delivery-search input {
    flex: 1;
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
}

.delivery-search select {
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    background: #fff;
    font-size: 1rem;
    min-width: 180px;
}

.delivery-search select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.delivery-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

#delivery-client-results {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.delivery-view-toggle {
    margin: 0.75rem 0 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.delivery-view-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    background: #f1f2f6;
    color: #576574;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.delivery-view-button svg {
    display: block;
}

.delivery-view-button:is(:hover, :focus-visible) {
    border-color: rgba(192, 57, 43, 0.4);
    color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
    outline: none;
}

.delivery-view-button.is-active {
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.4);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.12);
}

.delivery-product {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.delivery-product:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.delivery-product-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: var(--delivery-thumb-grid);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.12), rgba(241, 196, 15, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.65), rgba(241, 196, 15, 0.65));
}

.delivery-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.delivery-product-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1rem;
}

.delivery-product-price {
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.delivery-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.delivery-product-action {
    flex: 1 1 140px;
    border: 1px solid rgba(192, 57, 43, 0.35);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: #fff;
    color: #c0392b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.delivery-product-action:hover,
.delivery-product-action:focus {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
    outline: none;
}

.delivery-product-action--half {
    border-color: rgba(241, 196, 15, 0.45);
    color: #c27c0e;
}

.delivery-product-action--half:hover,
.delivery-product-action--half:focus {
    background: #c27c0e;
    border-color: #c27c0e;
    color: #fff;
}

.delivery-product-badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#delivery-client-results.list-mode {
    grid-template-columns: 1fr;
}

#delivery-client-results.list-mode .delivery-product {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#delivery-client-results.list-mode .delivery-product-media {
    width: var(--delivery-thumb-list);
    height: var(--delivery-thumb-list);
    flex: 0 0 var(--delivery-thumb-list);
    max-height: none;
    aspect-ratio: auto;
}

#delivery-client-results.list-mode .delivery-product-info {
    flex: 1 1 auto;
}

#delivery-client-results.list-mode .delivery-product-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 140px;
}

#delivery-client-results.list-mode .delivery-product-action {
    flex: 1 1 auto;
}

@media (max-width: 768px) {
    .delivery-view-toggle {
        width: 100%;
        justify-content: stretch;
    }

    .delivery-view-button {
        flex: 1 1 50%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    #delivery-client-results {
        grid-template-columns: 1fr;
    }

    #delivery-client-results.list-mode .delivery-product {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    :root {
        --delivery-thumb-grid: 140px;
        --delivery-thumb-list: 72px;
    }

    #delivery-client-results.list-mode .delivery-product {
        flex-direction: row;
        align-items: center;
        gap: 0.65rem;
    }

    #delivery-client-results.list-mode .delivery-product-media {
        width: var(--delivery-thumb-list);
        height: var(--delivery-thumb-list);
        flex: 0 0 var(--delivery-thumb-list);
    }

    #delivery-client-results.list-mode .delivery-product-info {
        gap: 0.25rem;
    }

    #delivery-client-results.list-mode .delivery-product-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        min-width: 120px;
    }

    #delivery-client-results.list-mode .delivery-product-action {
        flex: 1 1 auto;
        text-align: center;
    }

    #delivery-client-results .delivery-product-actions {
        gap: 0.4rem;
    }

    #delivery-client-results .delivery-product-action {
        flex: 1 1 calc(50% - 0.4rem);
    }
}
    --primary: #c0392b;
    --primary-dark: #962d22;
    --accent: #f1c40f;
    --gray-100: #f8f9fa;
    --gray-300: #e0e0e0;
    --gray-700: #4a4a4a;
    --gray-900: #222;
    --radius: 12px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--gray-100);
    color: var(--gray-900);
    font-family: var(--font, 'Segoe UI', sans-serif);
}

.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, rgba(192, 57, 43, 0.2), transparent),
                radial-gradient(circle at bottom, rgba(241, 196, 15, 0.15), transparent),
                var(--gray-100);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-card h1 {
    margin: 0 0 0.5rem;
}

.subtitle {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.alert {
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(192, 57, 43, 0.15);
    color: var(--primary-dark);
}

.alert-warning {
    background: rgba(241, 196, 15, 0.2);
    color: #8a6d1d;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form label {
    font-weight: 600;
    color: var(--gray-700);
}

.form input,
.form textarea,
.form select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 1rem;
}

.form button {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form button:hover {
    background: var(--primary-dark);
}

.form-info {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}
.produto-imagem-upload {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.produto-imagem-preview {
    width: 160px;
    height: 120px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    overflow: hidden;
}

.produto-imagem-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #475569;
}

.checkbox-inline input[type="checkbox"] {
    margin: 0;
}
.vendas-filter-form {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.vendas-filter-field label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.vendas-filter-field input,
.vendas-filter-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
.vendas-filter-field input:focus,
.vendas-filter-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(83, 125, 253, 0.18);
}
.vendas-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0;
    margin-left: auto;
}
.vendas-filter-actions .button,
.vendas-filter-actions .button-secondary {
    margin-top: 0;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
}
.vendas-filter-field {
    flex: 1 1 190px;
    min-width: 190px;
}

.login-hint {
    margin-top: 1.25rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-300);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.nav-brand {
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    color: var(--gray-900);
    border: 1px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.2);
    color: var(--primary-dark);
}

.nav-more {
    margin-left: 1.5rem;
}

.nav-more summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
}

.nav-more summary::marker {
    content: '';
}

.nav-more summary::-webkit-details-marker {
    display: none;
}

.nav-more summary::after {
    content: '▾';
    margin-left: 0.35rem;
    font-size: 0.85rem;
    color: inherit;
}

.nav-more[open] summary::after {
    content: '▴';
}

.nav-more-list {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
}

.nav-dropdown {
    position: relative;
}
.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    color: var(--gray-900);
    transition: all 0.2s ease;
}
.nav-dropdown summary::marker,
.nav-dropdown summary::-webkit-details-marker {
    display: none;
}
.nav-dropdown summary::after {
    content: '▾';
    margin-left: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.75;
}
.nav-dropdown[open] summary::after {
    content: '▴';
}
.nav-dropdown summary:hover,
.nav-dropdown summary.active {
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.2);
    color: var(--primary-dark);
}
.nav-dropdown-list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    z-index: 20;
}
.nav-dropdown-list a {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    color: var(--gray-800);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-list a:hover,
.nav-dropdown-list a.active {
    background: rgba(192, 57, 43, 0.12);
    color: var(--primary-dark);
}
.pdv-simple-body .nav-dropdown summary {
    color: rgba(255, 255, 255, 0.82);
    border-color: transparent;
}
.pdv-simple-body .nav-dropdown summary:hover,
.pdv-simple-body .nav-dropdown summary.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.pdv-simple-body .nav-dropdown summary::after {
    opacity: 0.9;
}
.pdv-simple-body .nav-dropdown-list {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
}
.pdv-simple-body .nav-dropdown-list a {
    color: rgba(241, 245, 249, 0.9);
}
.pdv-simple-body .nav-dropdown-list a:hover,
.pdv-simple-body .nav-dropdown-list a.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.nav-link-disabled {
    color: rgba(71, 85, 105, 0.8);
    font-size: 0.9rem;
}

.nav-actions a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.nav-actions {
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown summary {
        width: 100%;
        text-align: center;
    }
    .nav-dropdown-list {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid rgba(148, 163, 184, 0.25);
        margin-top: 0.6rem;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .nav-actions {
        text-align: center;
        margin-left: 0;
    }

    .nav-more {
        margin-left: 0;
        width: 100%;
    }

    .nav-more summary {
        width: 100%;
        display: inline-block;
        text-align: center;
    }
}

.content {
    padding: 2rem;
    flex: 1;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-300);
    text-align: left;
}

th {
    background: rgba(0, 0, 0, 0.02);
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.status-ativa {
    background: rgba(39, 174, 96, 0.15);
    color: #1f8c4f;
}

.status-ocupada {
    background: rgba(192, 57, 43, 0.15);
    color: var(--primary-dark);
}

.status-desativada {
    background: rgba(128, 139, 150, 0.2);
    color: #55606d;
}

.status-cancelada {
    background: rgba(149, 165, 166, 0.18);
    color: #5f6a6d;
}

.section-title {
    margin: 0 0 1rem 0;
}

.empty-state {
    padding: 1rem;
    border: 1px dashed var(--gray-300);
    border-radius: 8px;
    text-align: center;
    color: var(--gray-700);
}

.hidden {
    display: none !important;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    transition: background 0.2s ease;
}

.button:hover {
    background: var(--primary-dark);
}

.button-danger {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    color: #fff;
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.35);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.button-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(248, 113, 113, 0.45);
}

.button-secondary {
    background: var(--gray-300);
    color: var(--gray-900);
}

.button-secondary:hover {
    background: var(--gray-700);
    color: #fff;
}

    gap: 0.75rem;
    text-align: center;
    min-height: 420px;
}

.sale-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 420px;
}

.sale-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.sale-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.9rem 1rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.search-result:hover {
    background: #f3f7fb;
}

.search-result__meta {
    font-size: 0.85rem;
    color: #6b7a8c;
}

.search-result__action {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-results__empty {
    padding: 1rem;
    font-size: 0.95rem;
    color: #6b7a8c;
}

.status-aberta {
    background: rgba(39, 174, 96, 0.18);
    color: #1f8c4f;
}

.status-fechada {
    background: rgba(192, 57, 43, 0.18);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .sale-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sale-topbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .sale-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .sale-field--small,
    .sale-field--button {
        width: 100%;
    }

    .pdv-sidebar {
        width: 100%;
    }

    .pdv-table-grid {
        max-height: none;
    }
}

.pdv-simple-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(138, 180, 248, 0.35), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(94, 234, 212, 0.25), transparent 45%),
        linear-gradient(135deg, #1c2441 0%, #151b2f 45%, #0b0f1d 100%);
    color: #f8fafc;
}

.pdv-simple-body .nav-bar {
    background: transparent;
    border: none;
    box-shadow: none;
}

.pdv-simple-body .nav-brand {
    color: #ffffff;
}

.pdv-simple-body .nav-links a {
    color: rgba(255, 255, 255, 0.72);
    border-color: transparent;
}

.pdv-simple-body .nav-links a:hover,
.pdv-simple-body .nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.pdv-simple-body .nav-actions,
.pdv-simple-body .nav-actions a {
    color: rgba(255, 255, 255, 0.75);
}

.pdv-simple-wrapper {
    display: flex;
    gap: 3rem;
    padding: 2.5rem 4rem;
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.pdv-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
    align-content: start;
    padding: 1.75rem;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 35px 60px rgba(7, 12, 24, 0.35);
    backdrop-filter: blur(14px);
    flex: 0 1 560px;
}

.pdv-mesa-filter {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.pdv-mesa-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 160px;
    min-width: 140px;
}

.pdv-mesa-filter-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
    letter-spacing: 0.02em;
}

.pdv-mesa-filter-field input,
.pdv-mesa-filter-field select {
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}

.pdv-mesa-filter-field input::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.pdv-mesa-filter-field select {
    cursor: pointer;
}

.pdv-mesa-empty {
    grid-column: 1 / -1;
    margin: 0;
}

.mesa-tile {
    position: relative;
    border-radius: 16px;
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #7dd56f, #46b96f);
    color: #0f172a;
    box-shadow: 0 18px 30px rgba(22, 101, 52, 0.2);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.mesa-tile::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.85);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.mesa-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px rgba(15, 118, 110, 0.35);
}

.mesa-tile--ocupada {
    background: linear-gradient(135deg, #fb7185, #ec4899);
    color: #ffffff;
    box-shadow: 0 22px 35px rgba(220, 38, 38, 0.3);
}

.mesa-tile--ocupada::after {
    background: rgba(248, 113, 113, 0.9);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.25);
}

.mesa-tile--reservada {
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #1f2933;
    box-shadow: 0 22px 35px rgba(234, 179, 8, 0.28);
}

.mesa-tile--reservada::after {
    background: rgba(250, 204, 21, 0.85);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.25);
}

.mesa-tile--desativada {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #e2e8f0;
    box-shadow: 0 18px 28px rgba(100, 116, 139, 0.26);
    cursor: not-allowed;
}

.mesa-tile--desativada::after {
    background: rgba(148, 163, 184, 0.85);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.25);
}

.mesa-tile--desativada:hover {
    transform: none;
    box-shadow: 0 18px 28px rgba(100, 116, 139, 0.26);
}

.mesa-tile--active {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px rgba(59, 130, 246, 0.35);
    outline: 2px solid rgba(148, 163, 255, 0.6);
    outline-offset: 3px;
}

.pdv-simple-panel {
    flex: 1 1 520px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.45);
    color: #f8fafc;
}

.pdv-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.pdv-panel-heading h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pdv-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
}

.pdv-status-badge.status-ativa {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.pdv-status-badge.status-ocupada {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

.pdv-status-badge.status-desativada {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.32);
    color: #e2e8f0;
}

.pdv-status-badge.status-cancelada {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.28);
    color: #cbd5f5;
}

.pdv-panel-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pdv-panel-total {
    font-size: 1rem;
    font-weight: 700;
    color: #facc15;
}

.pdv-panel-counter {
    font-weight: 600;
}

.pdv-simple-search input {
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.pdv-simple-results {
    position: relative;
}

.pdv-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.4rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 25px 45px rgba(8, 11, 19, 0.45);
    max-height: 240px;
    overflow-y: auto;
    z-index: 15;
}

.pdv-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: #f1f5f9;
    transition: background 0.15s ease;
}

.pdv-search-result--empty {
    justify-content: center;
    opacity: 0.65;
    cursor: default;
    pointer-events: none;
}

.pdv-search-result:hover {
    background: rgba(148, 163, 184, 0.16);
}

.pdv-items-table {
    flex: 1;
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
}

.pdv-items-table table {
    display: block;
    width: max-content;
    min-width: 1000px;
    max-width: none;
    border-collapse: collapse;
    color: #e2e8f0;
}

.pdv-items-table th,
.pdv-items-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.9rem;
}

.pdv-items-table th {
    background: rgba(148, 163, 184, 0.12);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: #cbd5f5;
}

.pdv-items-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pdv-item-edit,
.pdv-item-remove {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

.pdv-item-remove {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.pdv-item-remove:hover {
    background: rgba(248, 113, 113, 0.28);
}

.pdv-items-empty {
    text-align: center;
    padding: 2rem 0;
    color: rgba(226, 232, 240, 0.7);
}


@media (max-width: 768px) {
    .pdv-items-table {
        overflow-x: auto;
    }
    .pdv-items-table table {
        display: block;
        width: max-content;
        min-width: 720px;
    }
    .pdv-items-actions {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }
    .pdv-item-edit,
    .pdv-item-remove {
        white-space: nowrap;
    }
}

.pdv-items-table::-webkit-scrollbar {
    height: 8px;
}
.pdv-items-table::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.75);
    border-radius: 999px;
}
.pdv-items-table::-webkit-scrollbar-track {
    background: transparent;
}

.pdv-total-bar {
    display: grid;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.05));
    padding: 1.2rem 1.4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
}

.pdv-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.88);
}

.pdv-total-row strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
}

.pdv-total-row--highlight {
    margin-top: 0.2rem;
}

.pdv-total-row--highlight strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.pdv-discount-panel {
    margin: 1.4rem 0 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pdv-discount-panel label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(226, 232, 240, 0.85);
}

.pdv-discount-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.pdv-discount-controls input {
    width: 160px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.pdv-discount-note {
    font-size: 0.8rem;
    color: rgba(248, 113, 113, 0.8);
}

.pdv-discount-note.hidden {
    display: none;
}

@media (min-width: 1600px) {
    .pdv-simple-wrapper {
        max-width: 1600px;
        padding: 3rem 5rem;
        gap: 3.5rem;
    }

    .pdv-simple-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .pdv-simple-panel {
        flex: 1 1 600px;
    }
}

.pdv-payment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: end;
}

.pdv-payment label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.pdv-payment select,
.pdv-payment input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.35);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
}

.pdv-change {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pdv-change.hidden {
    display: none;
}

.pdv-change-value {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-weight: 700;
    font-size: 1.1rem;
    color: #f8fafc;
    text-align: right;
    letter-spacing: 0.08em;
}

.pdv-action-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pdv-action-row button {
    flex: 1 1 180px;
}

.pdv-close-button,
.pdv-cancel-button {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.pdv-close-button {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #ffffff;
    box-shadow: 0 20px 35px rgba(37, 99, 235, 0.35);
}

.pdv-close-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px rgba(59, 130, 246, 0.45);
    filter: brightness(1.05);
}

.pdv-cancel-button {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    color: #ffffff;
    box-shadow: 0 20px 35px rgba(239, 68, 68, 0.35);
}

.pdv-cancel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px rgba(248, 113, 113, 0.4);
    filter: brightness(1.05);
}

.pdv-close-button:disabled,
.pdv-cancel-button:disabled {
    background: rgba(148, 163, 184, 0.3);
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
}

.pdv-message {
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.pdv-message--error {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.pdv-message--success {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
}

.pdv-message--info {
    background: rgba(250, 204, 21, 0.2);
    border-color: rgba(250, 204, 21, 0.3);
    color: #fef3c7;
}

@media (max-width: 1200px) {
    .pdv-simple-wrapper {
        flex-direction: column;
        max-width: 100%;
        gap: 2rem;
        padding: 2rem 2.5rem;
    }

    .pdv-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        padding: 1.5rem;
        flex: none;
    }

    .pdv-simple-panel {
        flex: none;
    }
}

@media (max-width: 768px) {
    .pdv-mesa-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .pdv-mesa-filter-field {
        width: 100%;
    }

    .pdv-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pdv-panel-meta {
        justify-content: space-between;
    }

    .pdv-payment {
        grid-template-columns: 1fr;
    }

    .pdv-simple-wrapper {
        padding: 1.8rem 1.25rem;
        gap: 1.5rem;
    }

    .pdv-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        padding: 1.25rem;
    }

    .mesa-tile {
        text-align: left;
        padding: 1rem;
    }

}

@media (max-width: 600px) {
    .pdv-simple-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .mesa-tile {
        font-size: 1.05rem;
    }
}

.pdv-comanda-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid transparent;
    color: #f8fafc;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pdv-comanda-item--active {
    border-color: rgba(94, 234, 212, 0.7);
    background: rgba(45, 212, 191, 0.18);
}

.pdv-comanda-item--fechada,
.pdv-comanda-item--cancelada {
    opacity: 0.7;
}

.pdv-comanda-title {
    font-weight: 600;
}

.pdv-comanda-client {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.85);
}

.pdv-comanda-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.65);
}

.delivery-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.delivery-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.delivery-field-wide {
    grid-column: 1 / -1;
}

.delivery-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--gray-700);
}

.delivery-form input,
.delivery-form textarea {
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.delivery-form input:focus,
.delivery-form textarea:focus,
.delivery-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.delivery-products {
    display: grid;
    gap: 1.25rem;
}

.delivery-search {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.delivery-search input {
    flex: 1;
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
}

.delivery-search select {
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    background: #fff;
    font-size: 1rem;
    min-width: 180px;
}

.delivery-search select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.delivery-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.delivery-product {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.delivery-product:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.delivery-product-media {
    flex: 0 0 82px;
    height: 82px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.12), rgba(241, 196, 15, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.65), rgba(241, 196, 15, 0.65));
}

.delivery-product-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.delivery-product-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1rem;
}

.delivery-product-price {
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.delivery-product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.delivery-product-action {
    border: 1px solid rgba(192, 57, 43, 0.35);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: #fff;
    color: #c0392b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.delivery-placeholder {
    display: inline-block;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5f5;
    color: #475569;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .delivery-product {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-product-media {
        width: 100%;
        height: 160px;
        flex: 0 0 auto;
    }

    .delivery-product-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .delivery-product-action {
        flex: 1 1 calc(50% - 0.4rem);
        text-align: center;
    }
}

.delivery-cart {
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.delivery-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.delivery-cart-list {
    display: grid;
    gap: 0.75rem;
}

.delivery-cart-item {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.delivery-cart-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.delivery-cart-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.delivery-cart-controls button {
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delivery-cart-controls button:hover {
    background: var(--primary-dark);
}

.delivery-cart-controls input {
    width: 3.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    text-align: center;
}

.delivery-cart-total {
    font-weight: 600;
    color: var(--primary-dark);
}

.delivery-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.delivery-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.delivery-orders {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.delivery-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.delivery-orders-list {
    display: grid;
    gap: 1.2rem;
}

.delivery-panel--orders {
    gap: 1.25rem;
}

.delivery-panel-header--compact {
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.delivery-refresh-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #475569;
}

.delivery-refresh-form label {
    font-weight: 600;
}

.delivery-refresh-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.delivery-refresh-controls select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0.45rem 0.9rem;
    background: #fff;
    font-size: 0.95rem;
    min-width: 130px;
}

.delivery-refresh-indicator {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.delivery-orders-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.delivery-orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
}

.delivery-orders-table thead {
    background: #f8fafc;
}

.delivery-orders-table th {
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.delivery-orders-table td {
    padding: 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    font-size: 0.95rem;
}

.delivery-order-row:last-child td {
    border-bottom: none;
}

.delivery-order-col {
    display: grid;
    gap: 0.6rem;
}

.delivery-order-idline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.delivery-order-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.delivery-order-phone {
    font-size: 0.9rem;
    color: #1e293b;
}

.delivery-order-share {
    display: flex;
    align-items: center;
}

.delivery-order-col--address p {
    margin: 0;
}

.delivery-order-note {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
}

.delivery-order-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-order-actions-grid .delivery-inline-form {
    padding: 0;
}

.delivery-button-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.delivery-order-total span {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

.delivery-order-total strong {
    font-size: 1.1rem;
    color: #0f172a;
}

.delivery-inline-form--status {
    display: grid;
    gap: 0.5rem;
}

.delivery-inline-form--status select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    background: #fff;
}

.delivery-inline-form--payment {
    display: grid;
    gap: 0.4rem;
}

.delivery-inline-form--payment label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.delivery-inline-form--payment select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    background: #fff;
}

.delivery-payment-summary {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #475569;
}

.delivery-payment-summary span {
    display: block;
}

.delivery-payment-warning {
    font-size: 0.85rem;
    color: #b45309;
}

.delivery-filter-indicator {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 0.75rem;
}

.delivery-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.18);
    font-size: 0.82rem;
    color: #c0392b;
    margin: 0 0 1rem;
}

.delivery-filter-chip a {
    color: #a83221;
    text-decoration: none;
    font-weight: 600;
}

.delivery-filter-chip a:hover {
    text-decoration: underline;
}

.delivery-print-button {
    width: 100%;
}


@media (max-width: 1080px) {
    .delivery-orders-table {
        min-width: 720px;
    }
}

@media (max-width: 720px) {
    .delivery-refresh-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .delivery-refresh-controls {
        justify-content: flex-start;
    }

    .delivery-orders-table {
        min-width: 100%;
    }

    .delivery-panel--orders {
        padding: 1.5rem;
    }

    .delivery-order-col {
        gap: 0.4rem;
    }
}

.delivery-order-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 1.4rem;
    display: grid;
    gap: 1rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.delivery-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.delivery-order-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.delivery-order-body {
    display: grid;
    gap: 0.85rem;
}

.delivery-order-address,
.delivery-order-notes {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.delivery-order-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.delivery-order-items li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.delivery-order-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.delivery-inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.delivery-order-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.button-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(192, 57, 43, 0.35);
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-ghost:hover {
    background: rgba(192, 57, 43, 0.08);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.delivery-toast-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.delivery-toast-stack.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delivery-toast-stack.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
}

.delivery-toast {
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.delivery-toast--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.delivery-toast--error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #7f1d1d;
}

.delivery-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2.25rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.08), rgba(241, 196, 15, 0.1));
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.delivery-hero-text h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.delivery-hero-text p {
    margin: 0 0 1.25rem;
    color: #475569;
    max-width: 32rem;
}

.delivery-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.delivery-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.delivery-stat {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem 1.25rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.delivery-stat--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.delivery-stat--link:hover {
    border-color: var(--primary);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.delivery-stat--active {
    border-color: var(--primary);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
}

.delivery-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.delivery-stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.delivery-stat-hint {
    font-size: 0.85rem;
    color: #475569;
}

.delivery-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.delivery-column--primary {
    order: 1;
}

.delivery-column--secondary {
    order: 2;
}

@media (min-width: 1080px) {
    .delivery-main {
        grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
        align-items: flex-start;
    }
}

.delivery-panel {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.delivery-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.delivery-panel-header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.delivery-panel-header p {
    margin: 0.35rem 0 0;
    color: #475569;
    max-width: 28rem;
}

.delivery-form-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-autofill-hint {
    font-size: 0.85rem;
    color: #1f8c4f;
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.2);
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
}

.delivery-form-block-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.delivery-form-hint {
    font-size: 0.85rem;
    color: #64748b;
}

.delivery-search-actions {
    display: flex;
    gap: 0.5rem;
}

.delivery-cart-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.delivery-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.delivery-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.delivery-orders-list {
    display: grid;
    gap: 1.25rem;
}

.delivery-order-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: #fff;
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.delivery-order-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.delivery-order-id {
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(192, 57, 43, 0.12);
    color: var(--primary-dark);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.delivery-order-header h3 {
    margin: 0;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-tag--novo {
    background: rgba(59, 130, 246, 0.12);
    color: #1e40af;
}

.status-tag--preparo {
    background: rgba(249, 115, 22, 0.14);
    color: #9a3412;
}

.status-tag--rota {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.status-tag--finalizado {
    background: rgba(56, 189, 248, 0.14);
    color: #0c4a6e;
}

.status-tag--cancelado {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.status-tag--default {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
}

.delivery-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #64748b;
}

.delivery-order-body {
    display: grid;
    gap: 1.1rem;
}

.delivery-order-info p {
    margin: 0.2rem 0 0;
}

.delivery-order-note {
    font-size: 0.9rem;
    color: #475569;
}

.delivery-order-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.delivery-order-item-name {
    font-weight: 600;
}

.delivery-order-item-qty {
    font-size: 0.9rem;
    color: #475569;
}

.delivery-order-item-total {
    font-weight: 600;
    color: var(--primary-dark);
    text-align: right;
}

.delivery-order-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.delivery-order-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.delivery-order-total span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}

.delivery-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.65);
    display: grid;
    gap: 0.75rem;
}

.delivery-empty-state h3 {
    margin: 0;
}

@media (max-width: 900px) {
    .delivery-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 720px) {
    .delivery-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-order-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-order-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.delivery-order-meta {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.delivery-share-link {
    text-decoration: none;
}

@media (max-width: 720px) {
    .delivery-cart-item,
    .delivery-order-items li {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .delivery-order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .delivery-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-orders-header {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-inline-form {
        width: 100%;
    }

    .delivery-inline-form select,
    .delivery-inline-form button {
        flex: 1;
    }
}
.delivery-filters-form {
    margin-bottom: 1.5rem;
}

.delivery-filters-card {
    background: linear-gradient(135deg, rgba(236, 240, 241, 0.7), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(189, 195, 199, 0.5);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 8px 24px rgba(52, 73, 94, 0.08);
}

.delivery-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.delivery-filters-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.delivery-filters-header p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.delivery-filters-reset {
    white-space: nowrap;
}

.delivery-filters-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.delivery-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.delivery-filter-label {
    font-size: 0.9rem;
    color: #34495e;
}

.delivery-filter-input {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(189, 195, 199, 0.6);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.delivery-filter-input:focus-within {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.8);
}

.delivery-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    padding-left: 0.9rem;
}

.delivery-filter-icon svg {
    display: block;
}

.delivery-filter-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #2c3e50;
}

.delivery-filter-input input:focus {
    outline: none;
}

.delivery-filters-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.delivery-filters-actions .button {
    min-width: 160px;
}

/* Responsive navigation enhancements */
.nav-sections {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--gray-300);
    background: #fff;
    border-radius: 12px;
    padding: 0.4rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-900);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.pdv-simple-body .nav-toggle {
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
}

.pdv-simple-body .nav-toggle span {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .nav-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

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

    .nav-sections {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-sections.nav-collapsible {
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-sections.nav-collapsible.is-open {
        max-height: 1200px;
        padding-top: 0.75rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
    }

    .nav-dropdown,
    .nav-more {
        width: 100%;
    }

    .nav-dropdown summary,
    .nav-more summary {
        width: 100%;
        text-align: left;
    }

    .nav-actions {
        margin-left: 0;
        width: 100%;
        text-align: left;
        border-top: 1px solid rgba(148, 163, 184, 0.4);
        padding-top: 0.75rem;
    }
}

@media (max-width: 768px) {
    .delivery-filters-card {
        padding: 1.25rem;
    }

    .delivery-filters-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .delivery-filters-actions {
        justify-content: stretch;
    }

    .delivery-filters-actions .button {
        width: 100%;
    }
}
