:root {
    --brand: #1F4E79;
    --brand-dark: #163a5c;
    --brand-light: #4493C6;
    --bg: #F1F5F9;
    --surface: #ffffff;
    --text: #1E293B;
    --muted: #64748B;
    --success: #16A34A;
    --danger: #DC2626;
    --warn: #D97706;
    --info: #2563EB;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(15, 23, 42, .08);
    --nav-h: 64px;
    --header-h: 60px;
    --sidebar-w: 260px;
    --content-max: 1280px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
}

/* ── Login ── */
body.staff-login {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 55%, #0f2740 100%);
}

.login-layout {
    width: 100%;
    max-width: 960px;
    display: grid;
    gap: 24px;
    align-items: center;
}

.login-hero {
    display: none;
    color: #fff;
    padding: 24px;
}

.login-hero h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
}

.login-hero p {
    margin: 0;
    opacity: .88;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 36ch;
}

.login-hero-features {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.login-hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    opacity: .92;
}

.login-hero-features i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand img { height: 52px; width: auto; }
.login-brand h1 { margin: 12px 0 4px; font-size: 1.6rem; color: var(--brand); }
.login-brand p { margin: 0; color: var(--muted); font-size: .95rem; }

.login-form label { display: block; margin-bottom: 14px; }
.login-form label span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    background: #FAFAFA;
}
.login-form input:focus { outline: none; border-color: var(--brand-light); background: #fff; }

@media (min-width: 768px) {
    body.staff-login { padding: 40px 32px; }
    .login-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
    .login-hero { display: block; }
    .login-shell { margin: 0; max-width: none; padding: 36px 32px; }
}

@media (min-width: 1200px) {
    .login-layout { max-width: 1100px; }
}

/* ── App shell ── */
body.staff-app {
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

.staff-shell {
    display: flex;
    min-height: 100dvh;
}

.staff-content-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.staff-main {
    flex: 1;
    padding: 16px;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
}

/* ── Sidebar (tablet + desktop) ── */
.staff-sidebar {
    display: none;
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand) 100%);
    color: #fff;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.sidebar-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.sidebar-brand strong {
    display: block;
    font-size: .95rem;
    line-height: 1.2;
}

.sidebar-brand span {
    font-size: .75rem;
    opacity: .75;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: background .15s, color .15s;
}

.sidebar-link i { width: 20px; text-align: center; font-size: 1.05rem; }

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

.sidebar-link.active {
    background: rgba(255,255,255,.18);
    color: #fff;
    box-shadow: inset 3px 0 0 #fff;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.sidebar-logout { opacity: .85; }

.staff-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 190;
}

.staff-sidebar-backdrop.is-visible { display: block; }

/* ── Header ── */
.staff-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 1px 8px rgba(15,23,42,.04);
}

.staff-header-left,
.staff-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.staff-logo-sm { height: 30px; }
.staff-logo-mobile { display: block; }

.staff-menu-toggle {
    display: inline-flex;
    background: #F1F5F9;
    color: var(--brand);
}

.staff-back-btn {
    background: #F1F5F9;
    color: var(--brand);
}

.staff-page-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-header-badge {
    display: none;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand);
    background: #EFF6FF;
    padding: 6px 10px;
    border-radius: 999px;
}

.staff-header .btn-icon {
    background: #F1F5F9;
    color: var(--brand);
}

.staff-header .btn-ghost:hover { background: #FEE2E2; color: var(--danger); }

/* ── Bottom nav (mobile) ── */
.staff-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--surface);
    border-top: 1px solid #E2E8F0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(15,23,42,.06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 600;
    padding-top: 8px;
    transition: color .15s;
}

.nav-item i { font-size: 1.15rem; }
.nav-item.active { color: var(--brand); }

.nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: .55rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* ── Buttons ── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background .15s, transform .1s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .1s, opacity .15s, filter .15s;
}

.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: .85rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warn { background: #F59E0B; color: #fff; }
.btn-warn:hover { background: #D97706; }
.btn-lg { padding: 16px; font-size: 1rem; border-radius: 14px; }

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: .9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* ── Dashboard ── */
.welcome-card {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.welcome-label { margin: 0; opacity: .85; font-size: .9rem; }
.welcome-name { margin: 4px 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.welcome-meta { margin: 0; opacity: .9; font-size: .9rem; }

.hub-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hub-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148,163,184,.15);
    height: 100%;
}

.hub-card-hr { border-top: 4px solid var(--brand-light); }
.hub-card-ops { border-top: 4px solid #F97316; }

.hub-card-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.hub-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.hub-card-hr .hub-card-icon { background: #EFF6FF; color: var(--brand); }
.hub-card-ops .hub-card-icon { background: #FFF7ED; color: #EA580C; }
.hub-card-header h3 { margin: 0 0 4px; font-size: 1.15rem; }
.hub-card-header p { margin: 0; color: var(--muted); font-size: .88rem; }

.hub-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.status-in { background: #DCFCE7; color: #166534; }
.status-out { background: #F1F5F9; color: #475569; }
.status-muted { background: #F1F5F9; color: #64748B; }
.status-warn { background: #FEF3C7; color: #92400E; }
.status-info { background: #DBEAFE; color: #1D4ED8; }
.status-alert { background: #FEE2E2; color: #B91C1C; }

.hub-links { display: flex; flex-direction: column; gap: 8px; }
.hub-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    background: #F8FAFC; color: var(--text);
    text-decoration: none; font-weight: 600; font-size: .95rem;
    transition: background .15s, transform .1s;
}
.hub-link:hover { background: #EFF6FF; transform: translateX(2px); }
.hub-link i { width: 20px; text-align: center; color: var(--brand); }
.hub-link-ext { border: 1px dashed #CBD5E1; background: #fff; }
.badge-count {
    margin-left: auto;
    background: var(--danger); color: #fff;
    font-size: .75rem; padding: 2px 8px; border-radius: 999px;
}

/* ── Page layouts ── */
.page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.page-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.card-pad { padding: 20px; }
.card-title { margin: 0 0 14px; font-size: 1.05rem; }

.section-block { margin-top: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; }
.section-title {
    margin: 0 0 12px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.list-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.list-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(15,23,42,.05);
    border: 1px solid #E2E8F0;
}
.list-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.list-card.skeleton { color: var(--muted); }

.badge {
    font-size: .7rem; font-weight: 700; padding: 4px 8px; border-radius: 999px;
    white-space: nowrap;
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-info { background: #DBEAFE; color: #1D4ED8; }
.badge-warn { background: #FEF3C7; color: #B45309; }
.badge-danger { background: #FEE2E2; color: #B91C1C; }
.badge-muted { background: #F1F5F9; color: #64748B; }

.text-muted { color: var(--muted); font-size: .85rem; }
.empty-state { text-align: center; color: var(--muted); padding: 32px 16px; }
.empty-state-icon i { font-size: 2.5rem; opacity: .4; display: block; margin-bottom: 8px; }

.timbratura-status { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.timbratura-circle {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    flex-shrink: 0;
}
.timbratura-circle.in { background: #DCFCE7; color: var(--success); }
.timbratura-circle.out { background: #F1F5F9; color: var(--muted); }
.timbratura-status h3 { margin: 0 0 4px; font-size: 1.15rem; }
.timbratura-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.timbratura-check {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 10px; font-size: .85rem; font-weight: 600;
}
.timbratura-check-pending { background: #F1F5F9; color: #64748B; }
.timbratura-check-ok { background: #DCFCE7; color: #166534; }
.timbratura-check-warn { background: #FEF3C7; color: #B45309; }
.timbratura-check i { flex-shrink: 0; width: 1.25em; font-size: 1.1rem; text-align: center; }
.timbratura-nfc-icon { color: #0284C7; font-size: 1.15rem; }
#btn-leggi-nfc { display: flex; align-items: center; justify-content: center; gap: 8px; color: #0F172A; border: 1px solid #CBD5E1; font-weight: 600; }
#btn-leggi-nfc .timbratura-nfc-icon { font-size: 1.25rem; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stack-form label { display: block; margin-bottom: 12px; }
.stack-form label span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.stack-form input, .stack-form select, .stack-form textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid #E2E8F0;
    border-radius: 12px; font-size: 1rem; font-family: inherit; background: #FAFAFA;
}
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus {
    outline: none; border-color: var(--brand-light); background: #fff;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.form-msg { margin-top: 12px; font-size: .85rem; font-weight: 600; padding: 10px; border-radius: 10px; }
.form-msg.ok { background: #DCFCE7; color: #166534; }
.form-msg.err { background: #FEE2E2; color: #B91C1C; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.stat-mini {
    background: var(--surface); border-radius: 14px; padding: 16px 10px; text-align: center;
    box-shadow: var(--shadow);
}
.stat-mini span { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.stat-mini strong { font-size: clamp(1.2rem, 2.5vw, 1.6rem); color: var(--brand); }
.stat-accent strong { color: var(--success); }

.busta-netto { margin: 6px 0 0; font-size: .95rem; }

.notifica-item { display: flex; gap: 12px; align-items: flex-start; }
.notifica-item.unread { border-left: 4px solid var(--brand-light); background: #F8FAFC; }
.notifica-item.read { opacity: .92; }
.notifica-tone-warn .notifica-icon { background: #FEF3C7; color: #B45309; }
.notifica-tone-success .notifica-icon { background: #DCFCE7; color: #166534; }
.notifica-type-label {
    display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; color: var(--muted); margin-bottom: 4px;
}
.notifica-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.notifiche-toolbar { margin-bottom: 16px; }
.notifiche-toolbar-top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.notifiche-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.notifiche-stat { font-size: .85rem; color: var(--muted); }
.notifiche-stat strong { color: var(--brand); font-size: 1.1rem; margin-right: 4px; }
.notifiche-stat-accent strong { color: var(--danger); }
.notifiche-filters { display: flex; gap: 6px; }
.notifiche-filters .btn.active { background: #EFF6FF; color: var(--brand); }
.notifiche-bulk { display: flex; flex-wrap: wrap; gap: 8px; }
.comanda-stato-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-right: 8px; }
.ordine-cucina-panel { margin-bottom: 16px; border-left: 4px solid #F97316; }
.ordine-cucina-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 12px; flex-wrap: wrap;
}
.ordine-cucina-voci {
    list-style: none; margin: 0 0 12px; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.ordine-cucina-voci li {
    padding: 10px 12px; background: #FFF7ED; border-radius: 10px; font-size: .9rem;
}
.voce-note-inline { color: var(--muted); font-style: italic; font-weight: 400; }
.ordine-cucina-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notifica-icon {
    width: 40px; height: 40px; border-radius: 10px; background: #EFF6FF;
    display: flex; align-items: center; justify-content: center; color: var(--brand); flex-shrink: 0;
}
.notifica-body { flex: 1; min-width: 0; }
.notifica-body p { margin: 0 0 4px; font-size: .9rem; line-height: 1.4; }
.notifica-body time { font-size: .75rem; color: var(--muted); }

.tavolo-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tavolo-meta { font-size: .85rem; color: var(--muted); }

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
    body.staff-app { padding-bottom: 0; }

    .staff-sidebar {
        display: flex;
        position: sticky;
        top: 0;
        height: 100dvh;
    }

    .staff-menu-toggle { display: none; }
    .staff-logo-mobile { display: none; }
    .staff-header-badge { display: inline-block; }

    .staff-content-wrap {
        margin-left: 0;
    }

    .staff-main { padding: 24px 28px; }

    .staff-bottom-nav { display: none; }

    .staff-header {
        padding: 0 28px;
        height: 68px;
    }

    .staff-page-title { font-size: 1.25rem; }

    .hub-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .page-grid-2 { grid-template-columns: 1fr 1fr; gap: 20px; }
    .page-grid-2 .card { margin-bottom: 0; }

    .form-row-2 { grid-template-columns: 1fr 1fr; gap: 12px; }

    .list-cards-grid { grid-template-columns: repeat(2, 1fr); }

    .btn-row { max-width: 480px; }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
    :root {
        --sidebar-w: 280px;
        --header-h: 72px;
    }

    .staff-main { padding: 28px 40px; }

    .welcome-card { padding: 28px 32px; }

    .list-cards-grid { grid-template-columns: repeat(3, 1fr); }

    .hub-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ── Large desktop (1280px+) ── */
@media (min-width: 1280px) {
    .page-grid-2-wide {
        grid-template-columns: 380px 1fr;
        gap: 24px;
    }
}

/* ── Mobile sidebar drawer (< 768px) ── */
@media (max-width: 767px) {
    .staff-sidebar {
        display: flex;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .staff-sidebar.is-open {
        transform: translateX(0);
    }

    body.staff-sidebar-open {
        overflow: hidden;
    }
}

/* ── Tavoli & Comanda ── */
.staff-main:has(.tavoli-workspace) {
    max-width: 1600px;
}

.tavoli-workspace { width: 100%; }

.tavoli-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.search-box {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0 14px;
    box-shadow: var(--shadow);
}

.search-box i { color: var(--muted); }
.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 1rem;
    outline: none;
}

.tavoli-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.tavoli-list-panel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #E2E8F0;
    max-height: 420px;
    overflow: auto;
}

.tavoli-quick-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tavolo-quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    background: #FAFAFA;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.tavolo-quick-item:hover { background: #EFF6FF; border-color: var(--brand-light); }
.tavolo-quick-item.active {
    background: #EFF6FF;
    border-color: var(--brand);
    box-shadow: inset 3px 0 0 var(--brand);
}

.tqi-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tqi-main strong { font-size: .95rem; }
.tqi-main span { font-size: .8rem; color: var(--muted); }

.comanda-panel {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #E2E8F0;
    min-height: 360px;
}

.comanda-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
}

.comanda-empty i {
    font-size: 2.5rem;
    opacity: .35;
    margin-bottom: 12px;
}

.comanda-empty h3 { margin: 0 0 8px; color: var(--text); }

.comanda-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #E2E8F0;
    background: linear-gradient(135deg, #F8FAFC, #fff);
}

.comanda-header h2 { margin: 0 0 4px; font-size: 1.35rem; }

.comanda-header-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.btn-back-tavoli {
    display: none;
    flex-shrink: 0;
    margin-top: 2px;
    background: #EFF6FF;
    color: var(--brand);
    border-radius: 10px;
    width: 40px;
    height: 40px;
}

.comanda-ordine-full {
    padding: 16px 20px 24px;
    border-bottom: none;
}

.comanda-voci-full {
    max-height: none;
    min-height: 200px;
}

.empty-state-box {
    text-align: center;
    padding: 32px 16px;
}

.empty-state-box .empty-state {
    margin: 0 0 16px;
    color: var(--muted);
}

.tavoli-workspace.tavolo-selezionato .tavoli-list-panel {
    display: none;
}

.tavoli-workspace.tavolo-selezionato .tavoli-layout {
    grid-template-columns: 1fr;
}

.tavoli-workspace.tavolo-selezionato .btn-back-tavoli {
    display: inline-flex;
}

@media (min-width: 900px) {
    .tavoli-workspace.tavolo-selezionato .tavoli-list-panel {
        display: block;
    }

    .tavoli-workspace.tavolo-selezionato .tavoli-layout {
        grid-template-columns: minmax(260px, 320px) 1fr;
    }

    .btn-back-tavoli {
        display: none !important;
    }
}

.comanda-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comanda-totale {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
    background: #EFF6FF;
    padding: 8px 14px;
    border-radius: 10px;
}

.comanda-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.comanda-ordine,
.comanda-menu {
    padding: 16px 20px 20px;
}

.comanda-ordine {
    border-bottom: 1px solid #E2E8F0;
}

.comanda-voci {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
}

.voce-comanda {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #FAFAFA;
}

.voce-comanda.annullata { opacity: .55; background: #F1F5F9; }

.voce-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.voce-note {
    margin: 0 0 8px;
    font-size: .85rem;
    color: var(--warn);
    font-style: italic;
}

.voce-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.input-nota {
    flex: 1;
    min-width: 140px;
    padding: 8px 10px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: .85rem;
}

.menu-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.menu-toolbar input,
.menu-toolbar select {
    padding: 10px 12px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: .95rem;
    background: #FAFAFA;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.menu-item:hover {
    background: #EFF6FF;
    border-color: var(--brand-light);
    box-shadow: 0 4px 12px rgba(31, 78, 121, .08);
}

.menu-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F1F5F9;
}

.menu-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.4rem;
}

.menu-item-body { flex: 1; min-width: 0; }

.menu-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.menu-item strong { display: block; font-size: .95rem; line-height: 1.25; }

.menu-ingredienti {
    margin: 0 0 6px;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-prezzo { font-weight: 700; color: var(--brand); white-space: nowrap; font-size: .9rem; }

.menu-meta,
.piatto-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.menu-allergeni,
.piatto-allergeni-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}

.allergeni-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .04em;
    margin-right: 4px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--meta-color) 12%, white);
    color: var(--meta-color);
    border: 1px solid color-mix(in srgb, var(--meta-color) 25%, white);
}

.meta-badge i { font-size: .75rem; }

.allergen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--meta-color) 14%, white);
    color: var(--meta-color);
    font-size: .85rem;
}

.modal-piatto-media {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #F1F5F9;
}

.modal-piatto-media img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.modal-ph {
    height: 120px;
    font-size: 2rem;
}

.modal-piatto-ingredienti {
    margin: 0 0 10px;
    font-size: .88rem;
    line-height: 1.45;
}

.staff-modal {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.carrello-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #CBD5E1;
}

.carrello-panel h4 { margin: 0 0 10px; font-size: .9rem; }

.carrello-items {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .9rem;
}

.carrello-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #F0FDF4;
    border-radius: 8px;
}

.apri-tavolo-panel { margin-bottom: 16px; }

/* Modal */
.staff-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 500;
}

.staff-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 32px));
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    z-index: 510;
    overflow: hidden;
}

.staff-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #E2E8F0;
}

.staff-modal-header h3 { margin: 0; font-size: 1.05rem; }

.staff-modal-body { padding: 16px 18px; }
.staff-modal-body label { display: block; margin-bottom: 12px; }
.staff-modal-body label span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.staff-modal-body input,
.staff-modal-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
}

.staff-modal-footer { padding: 0 18px 18px; }

@media (min-width: 900px) {
    .tavoli-layout {
        grid-template-columns: minmax(260px, 320px) 1fr;
    }

    .tavoli-list-panel { max-height: calc(100dvh - 200px); }

    .comanda-split {
        grid-template-columns: 1fr 1fr;
    }

    .comanda-ordine {
        border-bottom: none;
        border-right: 1px solid #E2E8F0;
    }

    .comanda-voci,
    .menu-list {
        max-height: calc(100dvh - 340px);
    }

    .menu-toolbar {
        grid-template-columns: 1fr 180px;
    }
}

@media (min-width: 1200px) {
    .comanda-split {
        grid-template-columns: 1.1fr 1fr;
    }
}

/* Toast, popup info e conferma (stile manager) */
.staff-toast-container {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 16px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.staff-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-light);
    box-shadow: 0 8px 24px rgba(31, 78, 121, .15);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .25s, transform .25s;
    pointer-events: auto;
}

.staff-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.staff-toast-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.staff-toast-body { flex: 1; min-width: 0; }
.staff-toast-body strong { display: block; font-size: .9rem; margin-bottom: 2px; color: var(--brand); }
.staff-toast-body p { margin: 0; font-size: .85rem; color: var(--text); line-height: 1.4; }

.staff-toast-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
}

.staff-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 8000;
    opacity: 0;
    transition: opacity .25s;
}

.staff-overlay-backdrop.show { opacity: 1; }

.staff-info-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: min(420px, 100vw);
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    z-index: 8100;
    box-shadow: 0 -8px 40px rgba(31, 78, 121, .2);
    transition: transform .28s ease;
    overflow: hidden;
}

.staff-info-sheet.show { transform: translate(-50%, 0); }

.staff-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    color: #fff;
}

.staff-info-header h3 { margin: 0; flex: 1; font-size: 1.05rem; }
.staff-info-icon { font-size: 1.4rem; }
.staff-info-header .btn-icon { color: #fff; background: rgba(255,255,255,.15); border: none; }

.staff-info-body {
    padding: 20px;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--text);
}

.staff-info-footer { padding: 0 20px 24px; }

.staff-confirm-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.92);
    width: min(380px, calc(100vw - 32px));
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    z-index: 8100;
    box-shadow: 0 20px 60px rgba(31, 78, 121, .25);
    opacity: 0;
    transition: opacity .25s, transform .25s;
}

.staff-confirm-box.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.staff-confirm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--brand);
}

.staff-confirm-header h3 { margin: 0; font-size: 1.05rem; }
.staff-confirm-msg { margin: 0 0 20px; color: var(--muted); line-height: 1.45; font-size: .92rem; }

.staff-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Badge cliccabili allergeni / caratteristiche */
.meta-clickable {
    cursor: pointer;
    font-family: inherit;
    transition: transform .12s, box-shadow .12s, background .12s;
}

.meta-clickable:hover {
    box-shadow: 0 2px 8px rgba(31, 78, 121, .12);
}

.meta-clickable:active { transform: scale(.95); }

.meta-attr.meta-clickable {
    background: color-mix(in srgb, var(--brand-light) 14%, white);
    color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--brand-light) 35%, white);
}

.allergen-icon.meta-clickable {
    background: color-mix(in srgb, var(--brand) 10%, white);
    color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, white);
}

.meta-section-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .04em;
    margin-bottom: 8px;
}

/* legacy meta-row duplicato rimosso sotto */

.modal-detail-img,
.modal-piatto-media img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    background: #F8FAFC;
}

@media (min-width: 768px) {
    .staff-info-sheet {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%) scale(.94);
        border-radius: 16px;
        opacity: 0;
    }

    .staff-info-sheet.show {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Pagina menù dedicata */
.menu-page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-bottom: calc(var(--nav-h) + 80px);
}

.menu-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.menu-page-kicker {
    margin: 0 0 4px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--brand-light);
}

.menu-page-header h2 { margin: 0; font-size: 1.35rem; color: var(--brand); }

.menu-list-page {
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-meta-hint {
    color: var(--brand-light);
    font-size: .75rem;
    opacity: .85;
}

.carrello-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(31, 78, 121, .35);
}

.carrello-bar-info {
    cursor: pointer;
    font-size: .9rem;
}

.carrello-bar-info strong { font-size: 1.1rem; }

.carrello-bar .btn-success {
    background: #fff;
    color: var(--brand);
    border: none;
    font-weight: 700;
}

/* Modal carrello */
#modal-carrello-backdrop {
    z-index: 8500;
}

#modal-carrello-backdrop[hidden],
#modal-carrello.cart-modal[hidden] {
    display: none !important;
}

#modal-carrello.cart-modal.is-open {
    display: flex !important;
}

#modal-carrello-backdrop.is-open {
    display: block !important;
}

#modal-carrello.cart-modal {
    z-index: 8510;
}

body.cart-modal-open {
    overflow: hidden;
}

body.cart-modal-open .carrello-bar:not(.is-visible) {
    display: none !important;
}

body.cart-modal-open .carrello-bar.is-visible {
    z-index: 8490;
}

.carrello-bar[hidden] {
    display: none !important;
}

.cart-modal {
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
}

.cart-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
}

.cart-modal-subtitle {
    margin: 4px 0 0;
    font-size: .82rem;
    opacity: .9;
}

.cart-modal-close {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border: none;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    background: #F8FAFC;
    min-height: 120px;
    max-height: calc(100dvh - 260px);
}

.cart-items-list {
    gap: 10px;
}

/* Override stile legacy .carrello-items li */
.carrello-items.cart-items-list > li.cart-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(31, 78, 121, .06);
    overflow: hidden;
    min-height: 100px;
}

.cart-item-media {
    width: 100px;
    min-width: 100px;
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(160deg, #EFF6FF 0%, #F8FAFC 100%);
    border-right: 1px solid #E2E8F0;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.cart-item-media .cart-item-img,
.cart-item-media img.cart-item-img {
    width: 100%;
    height: 100%;
    min-height: 100px;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.1);
}

.cart-item-img {
    border: none;
    border-radius: 0;
    background: transparent;
}

.cart-item-img-ph {
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-light);
    font-size: 1.6rem;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: block;
}

.cart-item-name {
    display: block;
    font-size: .95rem;
    color: var(--brand);
    margin-bottom: 4px;
    line-height: 1.25;
    font-weight: 700;
}

.cart-item-note {
    margin: 0 0 4px;
    font-size: .78rem;
    color: var(--warn);
    font-style: italic;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-note i { margin-right: 4px; opacity: .85; }

.cart-item-note-empty {
    color: var(--muted);
    font-style: normal;
}

.cart-item-subtot {
    margin-top: 2px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--brand);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
}

@media (max-width: 380px) {
    .cart-item-media {
        width: 88px;
        min-width: 88px;
    }

    .cart-item-media .cart-item-img,
    .cart-item-media img.cart-item-img,
    .cart-item-img-ph {
        min-height: 92px;
    }
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #EFF6FF;
    border: 1px solid color-mix(in srgb, var(--brand-light) 40%, white);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--brand);
    font-size: .85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.qty-btn:hover { background: rgba(31, 78, 121, .08); }
.qty-btn:active { background: rgba(31, 78, 121, .14); }

.qty-val {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
    color: var(--brand);
}

.btn-cart-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #fff;
    color: var(--brand);
    font-size: .82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.btn-cart-edit:hover {
    border-color: var(--brand-light);
    background: #EFF6FF;
}

.btn-cart-edit i { font-size: .75rem; }

.cart-empty {
    text-align: center;
    color: var(--muted);
    padding: 24px 12px;
    margin: 0;
}

.cart-modal-footer {
    padding: 14px 16px 18px;
    border-top: 1px solid #E2E8F0;
    background: #fff;
}

.cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-modal-actions .btn-ghost {
    color: var(--brand);
    border: 1px solid #CBD5E1;
    background: #fff;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: .95rem;
    color: var(--muted);
}

.cart-total-row strong {
    font-size: 1.2rem;
    color: var(--brand);
}

.cart-edit-modal {
    z-index: 520;
}

#modal-edit-note-backdrop { z-index: 515; }

/* Icone compatte allergeni / caratteristiche */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
}

.meta-icon,
.meta-clickable {
    width: auto;
    flex: 0 0 auto;
    cursor: pointer;
    font-family: inherit;
    transition: transform .12s, box-shadow .12s;
}

.meta-compact,
.meta-attr-icon.meta-compact,
.allergen-icon.meta-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--brand-light) 35%, white);
    background: color-mix(in srgb, var(--brand-light) 12%, white);
    color: var(--brand);
    font-size: .9rem;
}

.meta-compact:hover,
.meta-clickable:hover {
    box-shadow: 0 2px 8px rgba(31, 78, 121, .15);
}

.meta-compact:active,
.meta-clickable:active { transform: scale(.93); }

.meta-compact span { display: none; }

.piatto-meta-row .meta-section-label {
    width: 100%;
    flex-basis: 100%;
}
