﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --bg: #f4f6fb;
    --surface: #fff;
    --warm: #eef1f8;
    --border: #e0e5f0;
    --muted: #8a95b0;
    --ink: #111827;
    --ink2: #374151;
    --accent: #1a56db;
    --accent2: #3b82f6;
    --accent-soft: #eff4ff;
    --green: #059669;
    --green-soft: #ecfdf5;
    --red: #dc2626;
    --red-soft: #fef2f2;
    --sidebar: #0d1b3e;
    --r: 8px;
    --rlg: 12px;
    --sh: 0 1px 4px rgba(17,24,39,.06),0 4px 16px rgba(17,24,39,.07);
    --shmd: 0 4px 24px rgba(17,24,39,.12);
}

body {
    font-family: 'Inter',sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    -webkit-font-smoothing: antialiased
}

header {
    background: var(--sidebar);
    color: #fff;
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.06)
}

.logo {
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.3px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent2);
    border-radius: 50%;
    display: inline-block
}

.logo span {
    color: var(--accent2)
}

.rest-btn {
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    font-weight: 500;
    cursor: pointer;
    padding: .3rem .75rem;
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    transition: all .2s
}

    .rest-btn:hover {
        background: rgba(255,255,255,.12);
        color: #fff
    }

.app {
    display: flex;
    flex: 1;
    min-height: 0
}

.sidebar {
    width: 220px;
    background: var(--sidebar);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    border-right: 1px solid rgba(255,255,255,.05)
}

.nav-sec {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,.22);
    padding: .5rem 1.25rem;
    margin-top: .5rem
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem 1.25rem;
    color: rgba(255,255,255,.5);
    cursor: pointer;
    font-size: .83rem;
    font-weight: 500;
    transition: all .15s;
    text-decoration: none;
    margin: 1px .5rem;
    border-radius: 6px
}

    .nav-item:hover {
        background: rgba(255,255,255,.05);
        color: rgba(255,255,255,.85)
    }

    .nav-item.active {
        background: rgba(59,130,246,.15);
        color: #93c5fd
    }

.nav-icon {
    font-size: .95rem;
    width: 18px;
    text-align: center;
    opacity: .8
}

.nav-badge {
    margin-left: auto;
    background: rgba(59,130,246,.3);
    color: #93c5fd;
    font-size: .62rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px
}

.sidebar-foot {
    margin-top: auto;
    padding: 1rem 1.25rem;
    font-size: .72rem;
    color: rgba(255,255,255,.18);
    border-top: 1px solid rgba(255,255,255,.05)
}

main {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem 2rem
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem
}

.page-title {
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.3px
}

.page-sub {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .2rem
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: var(--r);
    font-family: 'Inter',sans-serif;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s;
    white-space: nowrap
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(26,86,219,.3)
}

    .btn-primary:hover {
        background: #1648c7
    }

.btn-secondary {
    background: var(--surface);
    color: var(--ink2);
    border: 1px solid var(--border)
}

    .btn-secondary:hover {
        background: var(--warm)
    }

.btn-ghost {
    background: transparent;
    color: var(--ink2);
    border: 1px solid var(--border)
}

    .btn-ghost:hover {
        background: var(--warm)
    }

.btn-danger {
    background: transparent;
    color: var(--red);
    border: 1px solid #fca5a5
}

    .btn-danger:hover {
        background: var(--red-soft)
    }

.btn-sm {
    padding: .3rem .7rem;
    font-size: .76rem
}

.btn-icon {
    padding: .35rem .45rem;
    font-size: .9rem
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rlg);
    box-shadow: var(--sh)
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem
}

.card-title {
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: -.2px
}

.card-body {
    padding: 1.25rem
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: .9rem;
    margin-bottom: 1.75rem
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rlg);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--sh);
    position: relative;
    overflow: hidden;
    transition: all .2s
}

    .stat-card:hover {
        box-shadow: var(--shmd);
        transform: translateY(-1px)
    }

    .stat-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg,var(--accent),var(--accent2))
    }

.stat-icon {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    width: 34px;
    height: 34px;
    background: var(--accent-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans',sans-serif;
    letter-spacing: -.5px
}

.stat-label {
    font-size: .7rem;
    color: var(--muted);
    margin-top: .1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px
}

.table-wrap {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .83rem
}

th {
    text-align: left;
    padding: .65rem 1rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border)
}

td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--ink2)
}

tr:last-child td {
    border-bottom: none
}

tr:hover td {
    background: #f8faff
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: .18rem .6rem;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 600
}

.badge-green {
    background: var(--green-soft);
    color: var(--green)
}

.badge-blue {
    background: var(--accent-soft);
    color: var(--accent)
}

.badge-gray {
    background: var(--warm);
    color: var(--muted)
}

.badge-orange {
    background: #fffbeb;
    color: #d97706
}

.pl-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .55rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap
}

.pl-catalog {
    background: #eff4ff;
    color: #1a56db;
    border-color: #c7d9f9
}

.pl-delivery {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a
}

.pl-hh {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe
}

.pl-takeaway {
    background: #f0fdfa;
    color: #0d9488;
    border-color: #99f6e4
}

.dish-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--warm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0
}

.dish-info {
    display: flex;
    align-items: center;
    gap: .7rem
}

.dish-name {
    font-weight: 600;
    color: var(--ink);
    font-size: .85rem
}

.dish-desc {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .1rem;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: .4rem;
    flex-shrink: 0
}

.form-grid {
    display: grid;
    gap: .9rem
}

.form-grid-2 {
    grid-template-columns: 1fr 1fr
}

.form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem
}

label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink2);
    letter-spacing: .2px
}

input, select, textarea {
    padding: .55rem .8rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: 'Inter',sans-serif;
    font-size: .83rem;
    color: var(--ink);
    background: var(--surface);
    transition: border-color .15s,box-shadow .15s;
    outline: none
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(26,86,219,.08)
    }

textarea {
    resize: vertical;
    min-height: 80px
}

.pfx-wrap {
    position: relative
}

    .pfx-wrap input {
        padding-left: 1.8rem
    }

.pfx {
    position: absolute;
    left: .7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .8rem;
    pointer-events: none
}

.form-hint {
    font-size: .7rem;
    color: var(--muted);
    margin-top: .15rem
}

.field-error {
    font-size: .7rem;
    color: var(--red);
    margin-top: .15rem;
    font-weight: 500
}

/* PRICE SECTION */
.price-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1rem 1.1rem;
    margin: .25rem 0
}

.price-section-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .8rem
}

.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem
}

.price-row {
    display: flex;
    flex-direction: column;
    gap: .3rem
}

.price-lbl {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink2);
    display: flex;
    align-items: center;
    gap: .35rem
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,27,62,.55);
    backdrop-filter: blur(3px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem
}

    .modal-overlay.open {
        display: flex
    }

.modal {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: 0 8px 48px rgba(13,27,62,.22);
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    animation: mIn .2s cubic-bezier(.34,1.56,.64,1);
    border: 1px solid var(--border)
}

@keyframes mIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.96)
    }
}

.modal-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.modal-title {
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.2px
}

.modal-close {
    background: var(--warm);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    padding: .3rem .45rem;
    transition: all .15s
}

    .modal-close:hover {
        background: var(--border);
        color: var(--ink)
    }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1
}

.modal-footer {
    padding: .9rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    background: var(--bg);
    border-radius: 0 0 14px 14px
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.4rem;
    gap: .1rem
}

.tab {
    padding: .55rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
    border-radius: 6px 6px 0 0
}

    .tab.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
        background: var(--accent-soft)
    }

    .tab:hover:not(.active) {
        color: var(--ink2);
        background: var(--warm)
    }

.toolbar {
    display: flex;
    gap: .6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px
}

    .search-wrap input {
        padding-left: 2.2rem;
        width: 100%
    }

.search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .5rem
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--accent-soft);
    border: 1px solid #c7d9f9;
    border-radius: 6px;
    padding: .2rem .55rem .2rem .45rem;
    font-size: .73rem;
    font-weight: 600;
    color: var(--accent)
}

.chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #93b4f0;
    font-size: .8rem;
    line-height: 1;
    padding: 0
}

    .chip-remove:hover {
        color: var(--red)
    }

.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--muted)
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    opacity: .6
}

.empty-title {
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 1rem;
    color: var(--ink2);
    margin-bottom: .35rem;
    font-weight: 700
}

.empty-text {
    font-size: .8rem
}

.page {
    display: none
}

    .page.active {
        display: block
    }

#toasts {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.toast {
    background: var(--ink);
    color: #f9fafb;
    padding: .75rem 1.1rem;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: tIn .25s cubic-bezier(.34,1.56,.64,1);
    max-width: 300px;
    border: 1px solid rgba(255,255,255,.08)
}

    .toast.success::before {
        content: '✓';
        color: #34d399;
        font-weight: 700
    }

    .toast.error::before {
        content: '✕';
        color: #f87171;
        font-weight: 700
    }

@keyframes tIn {
    from {
        opacity: 0;
        transform: translateX(16px)
    }
}

.price {
    font-weight: 700;
    color: var(--accent)
}

.price-na {
    color: #c8d0e4;
    font-size: .78rem
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(210px,1fr));
    gap: .9rem
}

.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rlg);
    padding: 1.1rem;
    box-shadow: var(--sh);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: all .2s
}

    .cat-card:hover {
        box-shadow: var(--shmd);
        transform: translateY(-2px)
    }

.allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
    gap: .5rem
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: var(--warm);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .5rem .7rem;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 500;
    transition: all .15s;
    user-select: none
}

    .allergen-item:hover {
        border-color: var(--accent2);
        background: var(--accent-soft)
    }

    .allergen-item.selected {
        background: var(--accent-soft);
        border-color: var(--accent);
        color: var(--accent);
        font-weight: 600
    }

/* PRICELIST VIEW TABS */
.pl-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem
}

.pl-tab {
    padding: .45rem 1rem;
    border-radius: var(--r);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink2);
    transition: all .15s
}

    .pl-tab:hover {
        border-color: var(--accent);
        color: var(--accent)
    }

    .pl-tab.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent)
    }

/* CUSTOMIZATION ASSIGN DRAG & DROP */
.custom-assign-section-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    margin-bottom: .5rem;
    margin-top: 1rem
}

    .custom-assign-section-title:first-child {
        margin-top: 0
    }

.custom-assign-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .75rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    margin-bottom: .4rem;
    transition: all .15s;
    user-select: none
}

    .custom-assign-row:hover {
        border-color: var(--accent2);
        background: #f8faff
    }

    .custom-assign-row.assigned {
        border-color: var(--accent);
        background: var(--accent-soft)
    }

    .custom-assign-row.dragging {
        opacity: .4;
        border-style: dashed
    }

    .custom-assign-row.drag-over {
        border-color: var(--accent);
        background: #dbeafe;
        transform: scale(1.01)
    }

.drag-handle {
    cursor: grab;
    color: var(--muted);
    font-size: 1rem;
    flex-shrink: 0;
    padding: 0 .2rem;
    line-height: 1;
    user-select: none
}

    .drag-handle:active {
        cursor: grabbing
    }

.custom-assign-check {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0
}

.custom-assign-name {
    font-weight: 600;
    font-size: .83rem;
    flex: 1
}

.custom-assign-opts {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .1rem
}

.custom-assign-sort-badge {
    font-size: .68rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    padding: .1rem .5rem;
    flex-shrink: 0
}

.custom-assign-mandatory {
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 5px
}

/* LIB OPTIONS */
.lib-option-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem
}

    .lib-option-row input[type="text"] {
        flex: 2
    }

.lib-option-del {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: .95rem;
    padding: .2rem .3rem;
    border-radius: 4px;
    transition: all .15s;
    flex-shrink: 0
}

    .lib-option-del:hover {
        background: var(--red-soft);
        color: var(--red)
    }

.custom-group {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--rlg);
    padding: 1rem;
    margin-bottom: .75rem;
    position: relative
}

.custom-group-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
    flex-wrap: wrap
}

    .custom-group-header input {
        flex: 1;
        min-width: 120px;
        font-weight: 600
    }

.custom-group-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    border: 1.5px solid transparent;
    transition: all .15s
}

    .custom-group-badge.mandatory {
        background: #fef2f2;
        color: var(--red);
        border-color: #fca5a5
    }

    .custom-group-badge.optional {
        background: var(--green-soft);
        color: var(--green);
        border-color: #6ee7b7
    }

.custom-group-sort {
    width: 60px;
    font-size: .8rem
}

.custom-group-del {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 1.1rem;
    margin-left: auto;
    padding: .2rem .3rem;
    border-radius: 4px;
    transition: all .15s
}

    .custom-group-del:hover {
        background: var(--red-soft);
        color: var(--red)
    }

.custom-options {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.custom-option-row {
    display: flex;
    align-items: center;
    gap: .5rem
}

    .custom-option-row input[type="text"] {
        flex: 2
    }

    .custom-option-row input[type="number"] {
        width: 90px
    }

.custom-option-price-wrap {
    position: relative;
    width: 90px
}

    .custom-option-price-wrap .pfx {
        pointer-events: none
    }

.custom-option-del {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 1rem;
    padding: .2rem .3rem;
    border-radius: 4px;
    transition: all .15s;
    flex-shrink: 0
}

    .custom-option-del:hover {
        background: var(--red-soft);
        color: var(--red)
    }

.add-option-btn {
    font-size: .75rem;
    padding: .3rem .65rem;
    margin-top: .4rem;
    align-self: flex-start
}

/* DAILY SPECIALS */
.daily-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rlg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--sh);
    flex-wrap: wrap;
    gap: .75rem
}

.daily-date-display {
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: .5rem
}

.daily-date-sub {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 400;
    margin-left: .25rem
}

.daily-day-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    color: #fff;
    letter-spacing: .3px
}

.daily-item-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--rlg);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    box-shadow: var(--sh);
    transition: all .2s;
    position: relative;
    overflow: hidden
}

    .daily-item-card:hover {
        box-shadow: var(--shmd);
        transform: translateY(-1px)
    }

.daily-item-emoji {
    width: 44px;
    height: 44px;
    background: var(--warm);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid var(--border)
}

.daily-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden
}

.daily-item-name {
    font-weight: 700;
    font-size: .92rem;
    font-family: 'Plus Jakarta Sans',sans-serif
}

.daily-item-desc {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .15rem
}

.daily-item-meta {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    flex-wrap: wrap;
    align-items: center
}

.daily-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 1rem;
    padding: .3rem;
    border-radius: 6px;
    transition: all .15s;
    flex-shrink: 0;
    align-self: flex-start
}

    .daily-item-remove:hover {
        background: var(--red-soft);
        color: var(--red)
    }

.daily-notes-input {
    width: 100%;
    margin-top: .5rem;
    font-size: .8rem;
    padding: .4rem .65rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-family: 'Inter',sans-serif;
    color: var(--ink);
    background: #fafbfd;
    transition: border-color .15s;
    outline: none
}

    .daily-notes-input:focus {
        border-color: var(--accent)
    }

.daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: .9rem
}

.daily-add-section {
    background: var(--bg);
    border: 1.5px dashed var(--border);
    border-radius: var(--rlg);
    padding: 1.25rem;
    margin-bottom: 1.25rem
}

.daily-add-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    margin-bottom: .75rem
}

.dish-search-dropdown {
    position: relative
}

.dish-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1.5px solid var(--accent);
    border-top: none;
    border-radius: 0 0 var(--r) var(--r);
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: var(--shmd);
    display: none
}

    .dish-search-results.open {
        display: block
    }

.dish-result-item {
    padding: .65rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
    transition: background .12s
}

    .dish-result-item:last-child {
        border-bottom: none
    }

    .dish-result-item:hover {
        background: var(--accent-soft)
    }

.dish-result-emoji {
    font-size: 1.1rem;
    width: 26px;
    text-align: center
}

.dish-result-name {
    font-weight: 600;
    color: var(--ink)
}

.dish-result-cat {
    font-size: .72rem;
    color: var(--muted)
}

.daily-price-override {
    display: flex;
    align-items: center;
    gap: .4rem
}

.daily-history-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .83rem
}

    .daily-history-row:last-child {
        border-bottom: none
    }

.daily-history-date {
    font-weight: 600;
    color: var(--ink2);
    min-width: 110px
}

.daily-history-items {
    color: var(--ink2);
    flex: 1
}

.daily-today-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .55rem;
    border-radius: 5px;
    font-size: .68rem;
    font-weight: 700;
    background: var(--green-soft);
    color: var(--green)
}

@media(max-width:768px) {
    .sidebar {
        display: none
    }

    main {
        padding: 1rem
    }

    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr
    }

    .price-grid {
        grid-template-columns: 1fr 1fr
    }
}
