﻿

body {
    background-image: url("/img/background_co.png");
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.green-background {
    --bs-table-bg: #13B955;
}

.orange-background {
    --bs-table-bg: #fd7e14;
}

.purple-background {
    --bs-table-bg: #593196;
}

.text-white {
    color: white;
}

.appointmenttext-published {
    color: #3dca4c;
    font-weight: bold;
}

.appointmenttext-notpublished {
    color: #e75055;
    font-weight: bold;
}

.dialogmenutitle {
 
    font-weight: bold;
    font-size: 25px;
}

.dialogmenutitle-published {
    color: #3dca4c;
    font-weight: bold;
    font-size: 20px;
}

.dialogmenutitle-notpublished {
    color: #e75055;
    font-weight: bold;
    font-size: 20px;
}

.panelmenu-title {
    font-weight: bold;
    font-size: 16px;
}

.foodicon-color {
    color:red;
    background-color:green;
   
}

.avatar-daybooking-text {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    line-height: 6rem;
    font-size: 4rem;
}

.avatar-listbooking-text {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    line-height:2.6rem;
    font-size: 1.5rem;
}

.page-cantoperator {
    display: flex;
    overflow-x: hidden;
    width: 100%;
    min-height: calc(100vh - 72px);
    flex-wrap: wrap;
  
}

.page-background {
    background-image: url("/img/background_co.png");
    /*background-color: #f7f8fb;  neutro chiaro, elegante e pulito*/ 
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-background {
    width: 100%;
    min-height: 100vh;
    background-image: url("/img/brand/logi-bg-sd.webp");
    background-size: cover;
    background-repeat: no-repeat; /* evita ripetizione */
    background-position: right center; /* 👉 destra e centro verticale */
}

:root {
    --mm-bg: #f7f8fb;
}
/* o il tuo colore */

.mud-layout,
.mud-drawer-container,
.mud-main-content {
    background-color: var(--mm-bg) !important;
   
}

/* Spazio sopra il contenuto del drawer */
.mud-drawer .mud-drawer-content {
    padding-top: 40px;
}

/* Se usi MudNavMenu / MudNavLink */
.mud-drawer .mud-navmenu {
    padding-top: 6px;
}

.page-holder {
    background: transparent !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* rimuove il bg-gray-100 */
.container-fluid.page-background {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.mud-main-content {
    padding-top: calc(var(--mud-appbar-height) + 12px) !important;
   
}

.icons {
    color: white;
}

.booking-confirmed {
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    height: 100px;
    border: 3px solid #73AD21;
    z-index:1000;
}

.truncate-dish-name {
    width: 200px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
}

/* layout compatto “attaccato” */
.minmax-group {
    display: flex;
    gap: 0;
}

    .minmax-group .mud-input-root {
        height: 32px;
    }

    .minmax-group .left .mud-input-root {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .minmax-group .right .mud-input-root {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        margin-left: -1px;
    }

    .minmax-group .mud-input-root .mud-input-input-control {
        min-width: 90px;
    }

    .minmax-group.is-disabled {
        opacity: .6;
    }



/* testo input quando ≠ 0: secondary + bold */
.mm-nonzero {
    color: var(--mud-palette-secondary) !important;
    font-weight: 700 !important;
}

input.mm-nonzero { /* robusto su vari template */
    color: var(--mud-palette-secondary) !important;
    font-weight: 700 !important;
}

.menu-title-fixed {
    flex: 0 0 140px;
}
/* larghezza fissa per il titolo */
.menu-alt-title-fixed {
    flex: 0 0 260px;
}

.report-viewer-page {
    height: 45rem;
    z-index: 2000 !important;
}

.report-container {
    height: calc(100vh - 48px);
    padding: 0;
    margin: 0;
}

.row-success {
    background-color: rgba(76, 175, 80, 0.12);
}
/* verde  */
.row-warning {
    background-color: rgba(255, 193, 7, 0.14);
}
/* giallo */
.row-error {
    background-color: rgba(244, 67, 54, 0.12);
}
/* rosso  */
.tab-paper {
    max-height: 450px; /*70vh; oppure calc(100vh - 220px) */
    overflow: auto; /* scroll solo sul contenuto della tab */
    padding: 12px; /* opzionale */
}

/* Preloader  */
/* Preloader */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
   
}

.iconLoaderProgress {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 240px;
    height: 240px;
}

    /* Stili comuni agli SVG */
    .iconLoaderProgress svg {
        stroke-width: 10px;
        fill: none;
        transform-origin: center;
        z-index: 999;
    }

/* Anelli */
.iconLoaderProgressFirst circle,
.iconLoaderProgressSecond circle,
.iconLoaderProgressFirst,
.iconLoaderProgressSecond {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

    .iconLoaderProgressFirst circle,
    .iconLoaderProgressSecond circle {
        animation-duration: 3s;
        border-radius: 15px;
    }

/* Rotazione solo sugli anelli */
.iconLoaderProgressFirst,
.iconLoaderProgressSecond {
    position: absolute;
    animation: rotateLoader 6s linear infinite;
}

    .iconLoaderProgressFirst circle {
        animation-name: circleFirst;
        stroke-dasharray: 628, 628;
        stroke-dashoffset: 0;
        stroke: #f5941e;
        stroke-linecap: round;
    }

.iconLoaderProgressSecond {
    transform: rotate(-14deg);
    animation-direction: reverse; /* gira in senso opposto */
}

    .iconLoaderProgressSecond circle {
        animation-name: circleSecond;
        stroke-dasharray: 628, 628;
        stroke-dashoffset: 0;
        stroke: #151846;
        stroke-linecap: round;
    }

/* Immagine centrale */
.iconLoaderImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* regola la dimensione */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* sopra gli svg */
}

    .iconLoaderImage img {
        max-width: 100%;
        max-height: 100%;
    }

/* Animazioni */
@keyframes circleFirst {
    from, to {
        stroke-dashoffset: 50;
    }

    50% {
        stroke-dashoffset: 625;
    }
}

@keyframes circleSecond {
    from, to {
        stroke-dashoffset: -625;
    }

    50% {
        stroke-dashoffset: -50;
    }
}

@keyframes rotateLoader {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.iconLoaderProgress {
    transform: scale(0.6); /* 0.6 = 60% della dimensione */
}

/* Optional: rispetto motion preferences */
@media (prefers-reduced-motion: reduce) {
    .iconLoaderProgressFirst,
    .iconLoaderProgressSecond {
        animation: none !important;
    }
}

.preloader-overlay {
    position: fixed; /* resta fisso rispetto allo schermo */
    top: 0;
    left: 0;
    width: 100vw; /* prende tutta la larghezza */
    height: 100vh; /* prende tutta l’altezza */
    display: flex;
    align-items: center; /* centro verticale */
    justify-content: center; /* centro orizzontale */
    background: rgba(255, 255, 255, 0.8); /* opzionale: sfondo semi-trasparente */
    z-index: 2000; /* sopra tutto */
    background: transparent !important;
}


.tenant-list-scroll {
    /* altezza massima responsiva */
    max-height: clamp(280px, 50vh, 600px);
    overflow-y: auto;
    /* opzionali, per look & feel */
    border-radius: 12px;
}

/* migliora la visibilità dell’header quando è sticky */
.mud-table-sticky-header thead tr th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--mud-palette-surface);
}
.panel-soft {
    background-color: var(--mud-palette-grey-lighten-4, #f5f5f5);
    border: 1px solid var(--mud-palette-grey-lighten-2, #e0e0e0);
    border-radius: 12px;
}

.card-soft {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    /* background elegante come calendario */
    /*background: linear-gradient( 180deg, rgba(248, 249, 255, 0.92), rgba(255, 255, 255, 0.96) );*/
    /* shadow soft moderna */
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .card-soft:not([class*="pa-"]) > .row {
        margin-left: 0;
        margin-right: 0;
    }

.mud-paper.card-soft:not([class*="pa-"]) {
    padding: 1rem;
}

.mud-paper.pa-3 {
    padding: 1rem !important;
}

.mud-paper.pa-4 {
    padding: 1.5rem !important;
}

.mud-paper.card-soft.pa-3 {
    padding: 1.25rem !important; /* ~ tra pa-3 e pa-4 */
}

.spin-ddtgeneration {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.uniform-width {
    width: 200px;
}

.printing-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(1px);
}

.printing-overlay__card {
    min-width: 280px;
    max-width: min(90vw, 420px);
    text-align: center;
}

.mm-drawer .mud-nav-link {
    border-radius: 12px;
    padding: 8px 12px;
}

    .mm-drawer .mud-nav-link:hover {
        background: rgba(0,0,0,0.04);
    }

    .mm-drawer .mud-nav-link.mud-nav-link-active {
        background: rgba(27,30,75,0.10);
        font-weight: 600;
    }

.mm-appbar .mud-toolbar {
    align-items: center;
    margin-top: 7px;
}

.mm-appbar .mud-icon-button,
.mm-appbar .mud-menu {
    color: white !important;
   
}

img.mm-topbar-logo {
    display: block;
    max-height:90%;
    max-width:100%;

   
}




/* il root del badge */
.notif-badge {
    position: relative;
}

    /* il “dot” reale in MudBlazor (nel tuo markup è .mud-badge) */
    .notif-badge .mud-badge {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        min-height: 8px !important;
        padding: 0 !important;
        /* posizione: più TOP = più giù */
        top: 12px !important;
        right: 12px !important;
        /* evita le trasformazioni default che spesso lo sparano in alto */
        transform: none !important;
        /* “bordino” sottile (simile a Bordered ma più piccolo) */
        box-shadow: 0 0 0 1px var(--mud-palette-surface) !important;
        border: none !important;
    }

/**/


/* BOOKING INDEX LARGE CSS (scoped) */
.booking-large-root {
    padding: 2rem 1.5rem 3rem;
    display: grid;
    gap: 2rem;
    /*background: linear-gradient(180deg, rgba(248, 249, 255, 0.9), rgba(255, 255, 255, 0.95));*/
    border-radius: 32px;
}

    .booking-large-root .page-header {
        text-align: left;
    }

    .booking-large-root .page-heading {
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .booking-large-root .page-subheading {
        color: var(--mud-palette-text-secondary);
    }

    .booking-large-root .calendar-shell {
        position: relative;
        padding: 2rem;
        border-radius: 28px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
        background: linear-gradient(180deg, rgba(248, 249, 255, 0.9), rgba(255, 255, 255, 0.95));
    }

    .booking-large-root .calendar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }

    .booking-large-root .calendar-title {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .booking-large-root .calendar-caption {
        color: var(--mud-palette-text-secondary);
        letter-spacing: 0.02em;
    }

    .booking-large-root .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: var(--mud-palette-text-secondary);
    }

    .booking-large-root .weekday {
        text-align: center;
        font-weight: 600;
        letter-spacing: 0.05em;
    }

    .booking-large-root .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .booking-large-root .calendar-cell {
        position: relative;
        border: none;
        border-radius: 18px;
        padding: 1.1rem 0.75rem;
        background: var(--mud-palette-surface);
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        color: var(--mud-palette-text-primary);
        cursor: pointer;
    }

        .booking-large-root .calendar-cell:hover:not(:disabled) {
            transform: translateY(-4px);
            box-shadow: 0 18px 30px rgba(37, 99, 235, 0.18);
        }

        .booking-large-root .calendar-cell:disabled {
            cursor: default;
        }

    .booking-large-root .calendar-cell--muted {
        opacity: 0.35;
    }

    .booking-large-root .calendar-cell--today {
        box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.6);
    }

    .booking-large-root .calendar-cell--selected {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.05));
        box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.45);
    }

    .booking-large-root .calendar-cell--booked {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.08));
        box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.4);
    }

    .booking-large-root .calendar-cell--menu {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.08));
    }

    .booking-large-root .calendar-cell--menu-locked {
        background: linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.08));
    }

    .booking-large-root .calendar-cell--disabled {
        opacity: 0.45;
    }

    .booking-large-root .day-number {
        font-size: 1.125rem;
        font-weight: 600;
    }

    .booking-large-root .status-dot {
        position: absolute;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        right: 0.85rem;
        top: 0.8rem;
    }

        .booking-large-root .status-dot.booked {
            background: #22c55e;
        }

        .booking-large-root .status-dot.menu {
            background: #3b82f6;
        }

    .booking-large-root .status-tag {
        position: absolute;
        bottom: 0.7rem;
        right: 0.75rem;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.1);
        font-size: 0.65rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .booking-large-root .calendar-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem;
        margin-top: 1.75rem;
        font-size: 0.85rem;
        color: var(--mud-palette-text-secondary);
    }

    .booking-large-root .legend-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 0.4rem;
        vertical-align: middle;
    }

        .booking-large-root .legend-dot.booked {
            background: #22c55e;
        }

        .booking-large-root .legend-dot.menu {
            background: #3b82f6;
        }

        .booking-large-root .legend-dot.today {
            background: #f59e0b;
        }

    .booking-large-root .selection-panel {
        padding: 1.5rem 1.75rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
        max-width: 420px;
    }

    .booking-large-root .selection-title {
        font-weight: 600;
        text-transform: capitalize;
        margin-bottom: 0.5rem;
    }

    .booking-large-root .selection-info {
        color: var(--mud-palette-text-secondary);
    }

@media (max-width: 1024px) {
    .booking-large-root {
        padding: 1.5rem 1rem 2.5rem;
    }

        .booking-large-root .calendar-grid {
            gap: 0.5rem;
        }

        .booking-large-root .calendar-shell {
            padding: 1.5rem;
        }
}

@media (max-width: 768px) {
    .booking-large-root .calendar-shell {
        padding: 1.25rem;
    }

    .booking-large-root .calendar-cell {
        padding: 0.85rem 0.65rem;
    }

    .booking-large-root .calendar-legend {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* MENU SCHEDULER - Calendar base look = BookingIndexLarge (scoped) */
.menu-scheduler-root {
    padding: 2rem 1.5rem 3rem;
    display: grid;
    gap: 2rem;
    /* niente background qui: lo mettiamo SOLO nella card calendario */
    background: transparent;
    border-radius: 32px;
}

    /* Header pagina (scoped) */
    .menu-scheduler-root .page-header {
        text-align: left;
    }

    .menu-scheduler-root .page-heading {
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    /* Card del calendario: stessa “premium card” */
    .menu-scheduler-root .menu-calendar-shell {
        position: relative;
        padding: 2rem;
        border-radius: 28px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: linear-gradient(180deg, rgba(248, 249, 255, 0.9), rgba(255, 255, 255, 0.95));
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    }

    /* Header interno calendario = Booking */
    .menu-scheduler-root .calendar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }

    .menu-scheduler-root .calendar-title {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .menu-scheduler-root .calendar-caption {
        color: var(--mud-palette-text-secondary);
        letter-spacing: 0.02em;
    }

    /* Weekdays = Booking */
    .menu-scheduler-root .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: var(--mud-palette-text-secondary);
    }

    .menu-scheduler-root .weekday {
        text-align: center;
        font-weight: 600;
        letter-spacing: 0.05em;
    }

    /* Grid = Booking */
    .menu-scheduler-root .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.75rem;
    }

    /* Celle: stessa base di Booking, MA manteniamo header + icone dentro */
    .menu-scheduler-root .calendar-cell {
        position: relative;
        border: none;
        border-radius: 18px;
        /* più compatto */
        padding: 0.75rem 0.6rem;
        gap: 0.25rem;
        min-height: 70px;
        background: var(--mud-palette-surface);
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        color: var(--mud-palette-text-primary);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .menu-scheduler-root .calendar-cell:hover:not(.calendar-cell--muted) {
            transform: translateY(-4px);
            box-shadow: 0 18px 30px rgba(37, 99, 235, 0.18);
        }

    .menu-scheduler-root .calendar-cell--muted {
        opacity: 0.35;
        cursor: default;
    }

    /* TODAY come Booking (bordo blu) */
    .menu-scheduler-root .calendar-cell--today {
        box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.6);
    }

    /* SELECTED come Booking */
    .menu-scheduler-root .calendar-cell--selected {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.05));
        box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.45);
    }

    /* Stati: stessa palette Booking
   published = verde, draft = blu (coerenza con Booking)
*/
    .menu-scheduler-root .calendar-cell--published {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.08));
        /* opzionale: se vuoi anche il bordo blu leggero */
        box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
    }

    .menu-scheduler-root .calendar-cell--draft {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.08));
    }

    /* Header cella: giorno + pulsante + in alto a destra */
    .menu-scheduler-root .calendar-cell__header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
        min-height: 24px;
    }

    .menu-scheduler-root .day-number {
        font-size: 1.125rem;
        font-weight: 600;
    }

    .menu-scheduler-root .day-add-button {
        position: absolute;
        top: -0.35rem;
        right: -0.35rem;
        transform: scale(0.92);
    }

    /* Icone menu: coerenti con stile “pill” e shadow soft */
    .menu-scheduler-root .menu-icons {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.35rem;
        justify-content: center;
        width: 100%;
        margin-top: 0.1rem;
    }

    .menu-scheduler-root .menu-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        cursor: pointer;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

        .menu-scheduler-root .menu-icon:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 18px rgba(15, 23, 42, 0.2);
        }

    .menu-scheduler-root .menu-icon--published {
        background: #22c55e;
    }

    .menu-scheduler-root .menu-icon--draft {
        background: #3b82f6;
    }

    /* Tooltip: lascialo, ma coerente */
    .menu-scheduler-root .menu-tooltip .mud-tooltip {
        background-color: #f8fafc;
        color: var(--mud-palette-text-primary);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    }

    .menu-scheduler-root .menu-tooltip .mud-tooltip-arrow {
        color: #f8fafc;
    }

    /* Legend: stessa palette Booking */
    .menu-scheduler-root .calendar-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem;
        margin-top: 1.75rem;
        font-size: 0.85rem;
        color: var(--mud-palette-text-secondary);
    }

    .menu-scheduler-root .legend-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 0.4rem;
        vertical-align: middle;
    }

        .menu-scheduler-root .legend-dot.published {
            background: #22c55e;
        }

        .menu-scheduler-root .legend-dot.draft {
            background: #3b82f6;
        }

        .menu-scheduler-root .legend-dot.today {
            background: #f59e0b;
        }

/* Responsive come Booking */
@media (max-width: 1024px) {
    .menu-scheduler-root {
        padding: 1.5rem 1rem 2.5rem;
    }

        .menu-scheduler-root .calendar-grid {
            gap: 0.5rem;
        }

        .menu-scheduler-root .menu-calendar-shell {
            padding: 1.5rem;
        }
}

@media (max-width: 768px) {
    .menu-scheduler-root .menu-calendar-shell {
        padding: 0.7rem 0.55rem;
        min-height: 64px;
    }

    .menu-scheduler-root .calendar-cell {
        padding: 0.85rem 0.65rem;
        min-height: 80px;
    }

    .menu-scheduler-root .calendar-legend {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* MenuScheduler: tooltip scuro -> testo status più leggibile */
.menu-tooltip__status {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
}

/* Titolo un filo più brillante */
.menu-tooltip__title {
    color: rgba(255,255,255,0.95) !important;
}

/* Chips dentro il tooltip: più contrasto su scuro */
.menu-tooltip__content .mud-chip {
    color: rgba(255,255,255,0.92) !important;
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
}

    /* Se il testo dei chip è dentro typography interna */
    .menu-tooltip__content .mud-chip .mud-typography {
        color: rgba(255,255,255,0.92) !important;
    }





/* DataGrid dentro card-soft: bordi arrotondati e clipping coerente */
.mud-paper.card-soft {
    overflow: hidden; /* IMPORTANT: clippa la griglia ai bordi della card */
}

    /* Il DataGrid container deve rispettare i bordi */
    .mud-paper.card-soft .mud-table-container,
    .mud-paper.card-soft .mud-table,
    .mud-paper.card-soft .mud-datagrid {
        border-radius: inherit;
    }

    /* Header della tabella (top rounded) */
    .mud-paper.card-soft thead tr:first-child th:first-child {
        border-top-left-radius: inherit;
    }

    .mud-paper.card-soft thead tr:first-child th:last-child {
        border-top-right-radius: inherit;
    }

    /* Se c’è un footer/pager, arrotonda in basso */
    .mud-paper.card-soft .mud-table-pagination,
    .mud-paper.card-soft .mud-datagrid-pager,
    .mud-paper.card-soft tfoot tr:last-child td:first-child {
        border-bottom-left-radius: inherit;
    }

    .mud-paper.card-soft .mud-table-pagination,
    .mud-paper.card-soft .mud-datagrid-pager,
    .mud-paper.card-soft tfoot tr:last-child td:last-child {
        border-bottom-right-radius: inherit;
    }

    /* Se usi pa-0, evita che il contenuto “tocchi” il bordo con linee brutte */
    .mud-paper.card-soft.pa-0 .mud-table-container {
        margin: 0;
    }

    /* Optional: bordo interno più soft (se ora vedi linee troppo “dure”) */
    .mud-paper.card-soft .mud-table,
    .mud-paper.card-soft .mud-datagrid {
        box-shadow: none;
    }

/* Stile "card calendario" applicabile a MudCard / MudPaper */
.card-soft {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 249, 255, 0.92), rgba(255, 255, 255, 0.96));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* MudCard: assicurati che anche l'interno rispetti i bordi arrotondati */
.mud-card.card-soft {
    overflow: hidden;
}

    /* Se usi MudCardContent/MudCardActions, mantieni padding coerente */
    .mud-card.card-soft .mud-card-content {
        padding: 1rem;
    }

    .mud-card.card-soft .mud-card-actions {
        padding: 0.75rem 1rem 1rem;
    }
.mm-dish__allergens {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.mm-dish__allergen {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(220, 53, 69, .35);
    background: rgba(220, 53, 69, .08);
}

.mm-dish__allergen-icon {
    color: #dc3545;
}

.mm-dish__allergen-text {
    color: #dc3545;
    font-weight: 600;
    font-size: .85rem;
}
.mm-dish--allergen {
    border: 1px solid rgba(220, 53, 69, .55) !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .10);
}
/*mm-dish-thumb {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    overflow: hidden;
    flex: 0 0 110px;
    background: #f3f4f6;*/ /* più uniforme del rgba */
    /*background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 70%, #e9eef5 100%);
}

.mm-dish-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}*/

.mm-dish-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 24px;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 70%, #e9eef5 100%);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

    .mm-dish-thumb img {
        max-width: 130px; /* controlli la “taglia” */
        max-height: 130px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        border-radius: 16px;
        background: #fff;
    }

/* MudTabs: linea/slider di selezione */
.mud-tabs-toolbar .mud-tab-slider,
.mud-tabs-toolbar .mud-tab-indicator {
    background-color: var(--mud-palette-secondary) !important;
}

/* opzionale: se hai un bordo/underline che resta bianco */
.mud-tabs-toolbar::after {
    border-color: rgba(0,0,0,.08) !important;
}

/* ===== MudTabs indicator/slider -> Secondary ===== */

.mud-tab-slider,
.mud-tab-indicator,
.mud-tabs-slider,
.mud-tabs-indicator,
.mud-tabs-active-bar,
.mud-tabs-activebar {
    background-color: var(--mud-palette-secondary) !important;
    border-color: var(--mud-palette-secondary) !important;
}

.preloader-embedded {
    width: 100%;
    min-height: 240px; /* garantisce spazio al loader */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}


/* =========================
   BOOKING CALENDAR (ONLY)
   Scoped: .booking-large-root
   - NO top band on the card
   - NO left green bar
   - Booked = green ribbon band (mobile style)
   - Menu = light-blue filled day circle
   ========================= */

/* Card calendario */
.booking-large-root .calendar-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(15,23,42,0.08);
    background: linear-gradient(180deg, rgba(248,249,255,0.90), rgba(255,255,255,0.96));
    box-shadow: 0 24px 56px rgba(15,23,42,0.10);
}

    /* IMPORTANT: niente pseudo “fasce” sulla card */
    .booking-large-root .calendar-shell::before,
    .booking-large-root .calendar-shell::after {
        content: none !important;
    }

/* Header */
.booking-large-root .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.booking-large-root .calendar-title {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2px;
}

.booking-large-root .calendar-caption {
    color: var(--mud-palette-text-secondary);
}

/* Weekdays */
.booking-large-root .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.booking-large-root .weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    opacity: .65;
}

/* Grid */
.booking-large-root .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

/* Cell base */
.booking-large-root .calendar-cell {
    position: relative;
    height: 78px;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,0.08);
    background: rgba(255,255,255,0.92);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    overflow: hidden; /* serve per la ribbon */
    -webkit-tap-highlight-color: transparent;
    transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

    .booking-large-root .calendar-cell:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(15,23,42,0.10);
    }

    .booking-large-root .calendar-cell:active:not(:disabled) {
        transform: translateY(-1px) scale(0.995);
    }

    .booking-large-root .calendar-cell:disabled {
        cursor: default;
    }

/* outside month */
.booking-large-root .calendar-cell--muted {
    opacity: .40;
}

/* Numero giorno */
.booking-large-root .day-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: rgba(0,0,0,.78);
}

/* OGGI: solo contorno soft */
.booking-large-root .calendar-cell--today .day-number {
    box-shadow: inset 0 0 0 2px rgba(63,83,126,.25);
}

/* SELEZIONATO: pieno scuro (vince su menu) */
.booking-large-root .calendar-cell--selected .day-number {
    background: #3f537e;
    color: #fff;
    box-shadow: none;
}

/* MENU disponibile: cerchio azzurro (sempre), ma NON se selezionato */
.booking-large-root .calendar-cell--menu:not(.calendar-cell--selected) .day-number {
    background: rgba(59,130,246,.18);
    color: rgba(0,0,0,.78);
}

/* CHIUSO */
.booking-large-root .calendar-cell--disabled {
    opacity: .75;
}

.booking-large-root .status-tag {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    opacity: .70;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.06);
}



/* CHIP CHIUSO: sempre uguale, sempre sopra */
.booking-large-root .calendar-cell .status-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: auto;
    z-index: 10;
    background: rgba(245,245,245,0.95); /* così non cambia contrasto */
    backdrop-filter: blur(2px);
}

/* ribbon SOTTILE in alto a destra (non riempie l'angolo) */
.booking-large-root .calendar-cell {
    position: relative;
    overflow: hidden;
}

.booking-large-root .calendar-cell--booked::before {
    content: "";
    position: absolute;
    top: 8px;
    right: -12px;
    width: 54px;
    height: 2px;
    transform: rotate(45deg);
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    z-index: 2;
    pointer-events: none;
}

.booking-large-root .calendar-cell--booked::after {
    content: "";
    position: absolute;
    top: 6px;
    right: -14px;
    width: 54px;
    height: 10px;
    background: linear-gradient(180deg, #17c95c 0%, #10a64c 100%);
    transform: rotate(45deg);
    border-radius: 999px;
    /* bordo soft + luce */
    box-shadow: 0 10px 18px rgba(15,23,42,0.18), /* ombra “sotto” */
    0 2px 0 rgba(255,255,255,0.28) inset, /* highlight sopra */
    0 -2px 0 rgba(0,0,0,0.12) inset; /* ombra interna sotto */

    z-index: 1;
    pointer-events: none;
}

/* contenuti sopra */
.booking-large-root .calendar-cell .day-number {
    position: relative;
    z-index: 5;
}

/* Blur backdrop MudDialog */
.mm-dialog-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.35) !important; /* overlay scuro */
}


/*Stile per KPY Dashboard*/


.mm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .mm-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mm-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.mm-kpi-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 6px 18px rgba(15,23,42,.06);
}

.mm-kpi-accent {
    height: 6px;
    width: 100%;
    background: rgba(70,80,221,.9);
}

.mm-kpi-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 14px 16px;
    gap: 12px;
}

.mm-kpi-main {
    min-width: 0;
}

.mm-kpi-value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.mm-kpi-label {
    margin-top: 6px;
    font-weight: 650;
    color: #0f172a;
}

.mm-kpi-sub {
    margin-top: 2px;
    color: rgba(15,23,42,.60);
    font-size: 13px;
}

.mm-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(15,23,42,.02);
}

    .mm-kpi-icon .mud-icon-root {
        opacity: .95;
    }

/* Varianti colore (accent + icona) */
.mm-kpi--danger .mm-kpi-accent {
    background: rgba(220,53,69,.95);
}

.mm-kpi--danger .mm-kpi-icon {
    background: rgba(220,53,69,.08);
    border-color: rgba(220,53,69,.18);
}

.mm-kpi--danger .mud-icon-root {
    color: #dc3545;
}

.mm-kpi--info .mm-kpi-accent {
    background: rgba(13,110,253,.95);
}

.mm-kpi--info .mm-kpi-icon {
    background: rgba(13,110,253,.08);
    border-color: rgba(13,110,253,.18);
}

.mm-kpi--info .mud-icon-root {
    color: #0d6efd;
}

.mm-kpi--primary .mm-kpi-accent {
    background: rgba(70,80,221,.95);
}

.mm-kpi--primary .mm-kpi-icon {
    background: rgba(70,80,221,.08);
    border-color: rgba(70,80,221,.18);
}

.mm-kpi--primary .mud-icon-root {
    color: #4650dd;
}

.mm-kpi--primary2 .mm-kpi-accent {
    background: rgba(70,80,221,.75);
}

.mm-kpi--primary2 .mm-kpi-icon {
    background: rgba(70,80,221,.06);
    border-color: rgba(70,80,221,.16);
}

.mm-kpi--primary2 .mud-icon-root {
    color: #4650dd;
}

/* Skeleton semplice */
.mm-kpi-skel {
    display: inline-block;
    background: rgba(15,23,42,.08);
    border-radius: 10px;
    animation: mmPulse 1.1s ease-in-out infinite;
}

.mm-kpi-skel--num {
    width: 88px;
    height: 28px;
}

@keyframes mmPulse {
    0% {
        opacity: .55;
    }

    50% {
        opacity: .90;
    }

    100% {
        opacity: .55;
    }
}

.mm-pill {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 2px 10px;
}