body {
    background: #f5f8f4;
    color: #1f2a24;
}

html {
    scroll-behavior: smooth;
    --customer-mobile-nav-height: 68px;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.brand-mark {
    color: #198754;
    font-weight: 700;
}

.auth-card {
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 68, 42, 0.08);
}

.form-text-small {
    font-size: 0.875rem;
}

.has-order-summary {
    padding-bottom: 172px;
}

.customer-shell {
    background:
        linear-gradient(180deg, rgba(236, 247, 239, 0.9) 0, rgba(245, 248, 244, 0) 280px),
        #f5f8f4;
}

.customer-container {
    width: min(100% - 24px, 1100px);
    max-width: 1100px;
}

.customer-topbar {
    min-height: 58px;
}

.customer-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.customer-main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.customer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    color: #486154;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.customer-nav-link:hover,
.customer-nav-link:focus {
    color: #198754;
    background: #edf7ef;
}

.customer-nav-link.active {
    color: #fff;
    background: #198754;
}

.customer-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.customer-user .customer-avatar {
    display: grid;
    flex: 0 0 auto;
}

.customer-user-copy {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.customer-user-copy strong,
.customer-user-copy span {
    overflow: hidden;
    max-width: 150px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-user-copy span {
    color: #66736b;
    font-size: 0.82rem;
}

.customer-logout-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
}

.customer-mobile-nav {
    display: none;
}

.customer-menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 240px;
}

.customer-avatar {
    display: none;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    background: #198754;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.customer-menu-name {
    font-weight: 700;
}

.customer-menu-location {
    color: #66736b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
}

.customer-context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #66736b;
    font-size: 0.94rem;
}

.customer-context span + span::before {
    content: "Â·";
    margin-right: 8px;
    color: #9aa79f;
}

    .week-panel {
    padding: 14px;
    background: #fff;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 68, 42, 0.06);
}

.customer-context span + span::before {
    content: "Â·";
}

.week-selector {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.week-title {
    font-weight: 800;
    text-align: center;
}

.week-arrow {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    color: #198754;
    text-decoration: none;
    border-radius: 999px;
    font-size: 1.55rem;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease;
}

.week-arrow:hover,
.week-arrow:focus {
    color: #146c43;
    background: #effaf3;
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(126px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-status-short {
    display: none;
}

.day-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 112px;
    padding: 12px;
    color: #1f2a24;
    text-decoration: none;
    background: #f9fbf8;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.day-card.active {
    border-color: #198754;
    background: #effaf3;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.14);
}

.day-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #198754;
}

.day-date {
    font-size: 1.16rem;
    font-weight: 700;
}

.day-meta,
.meal-description,
.summary-items {
    color: #66736b;
    font-size: 0.9rem;
}

.menu-section {
    scroll-margin-top: 132px;
}

.category-nav {
    position: sticky;
    top: 58px;
    z-index: 1010;
    display: flex;
    gap: 8px;
    padding: 8px 0 12px;
    margin-bottom: 10px;
    overflow-x: auto;
    background: #f5f8f4;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 13px;
    color: #235335;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #d8e5d8;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
}

.category-pill:focus,
.category-pill:hover,
.category-pill.active {
    color: #0f5132;
    border-color: #198754;
    background: #effaf3;
}

.daily-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.category-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.category-heading h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #486154;
    text-transform: uppercase;
}

.category-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dfe7dd;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.meal-card {
    position: relative;
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 14px;
    height: 100%;
    min-height: 138px;
    padding: 12px;
    padding-right: 48px;
    background: #fff;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.meal-card:focus-within {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18);
}

.meal-card:hover {
    border-color: #9cc8ab;
}

.meal-card.selected {
    border-color: #14804d;
    background: linear-gradient(185deg, #fcfdfd 0%, #13603a 100%);
    color:#065f46;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18);
}  

.meal-card.disabled {
    cursor: not-allowed;
    opacity: 0.68;
}
.quantity-control {
    position: absolute;
    right: 10px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: #fff;
    border: 1px solid #cfe0d5;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(22, 64, 42, 0.12);
}

.quantity-btn {
    display: inline-flex;
    width: 36px;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 999px;
}

.quantity-value {
    display: inline-flex;
    min-width: 28px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #153923;
    font-weight: 800;
    line-height: 1;
}

.meal-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding-right: 4px;
}

.meal-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    min-width: 0;
}

.meal-card-top strong {
    min-width: 0;
    padding-right: 4px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.meal-price {
    justify-self: end;
    color: #198754;
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.meal-image {
    width: 100%;
    height: 112px;
    object-fit: cover;
    border-radius: 6px;
}

.meal-image-placeholder {
    display: block;
    width: 100%;
    height: 112px;
    border-radius: 6px;
    background:
        linear-gradient(135deg, #e6efe8, #f7faf6);
    border: 1px solid #e3ebe3;
}

.admin-thumb {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-clickable-row {
    cursor: pointer;
}

.admin-clickable-row:hover > * {
    background-color: #f2fbf5;
}

.officebite-datatable thead th {
    vertical-align: middle;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.officebite-datatable tbody td {
    vertical-align: middle;
}

.officebite-datatable th:last-child,
.officebite-datatable td:last-child {
    white-space: nowrap;
}

.admin-table-action-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    line-height: 1;
}

.admin-table-action-btn i {
    font-size: 1rem;
    line-height: 1;
}

.dt-buttons .btn {
    --bs-btn-padding-y: 0.35rem;
    --bs-btn-padding-x: 0.65rem;
    --bs-btn-font-size: 0.875rem;
    color: #fff;
    border-radius: 0;
}

.dt-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
}

.dt-buttons .btn:not(:first-child) {
    margin-left: -1px;
}

.dt-buttons .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.dt-buttons .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.dt-buttons .btn:hover,
.dt-buttons .btn:focus {
    color: #fff;
    z-index: 1;
}

.dt-container .dt-layout-row {
    row-gap: 10px;
}

.dt-container .dt-layout-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dt-container .dt-layout-cell.dt-layout-end {
    justify-content: flex-end;
}

.dt-search label,
.dt-length label {
    color: #66736b;
    font-size: 0.9rem;
}

.dt-search input {
    max-width: 240px;
}

.dt-container .pagination {
    margin-bottom: 0;
}

.meal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-check {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: #198754;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-50%) scale(0.92);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.meal-card.selected .selected-check {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.empty-state {
    padding: 28px;
    background: #fff;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 68, 42, 0.06);
}

.cost-filter {
    display: grid;
    grid-template-columns: 110px 92px auto;
    gap: 8px;
    align-self: start;
}

.cost-kpi {
    height: 100%;
    padding: 18px;
    background: #fff;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 68, 42, 0.06);
}

.cost-list {
    display: grid;
    gap: 8px;
}

.cost-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(118px, 1fr));
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f9fbf8;
    border: 1px solid #e3ebe3;
    border-radius: 8px;
}

.cost-row > div:not(:first-child) {
    display: grid;
    gap: 2px;
}

.cost-row-main {
    min-width: 0;
}

.cost-row span {
    color: #66736b;
    font-size: 0.82rem;
}

.cost-row.is-cancelled {
    opacity: 0.68;
}

.analytics-overview {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 68, 42, 0.06);
}

.analytics-overview-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e6eee5;
}

.analytics-overview-header h1 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.analytics-period-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.analytics-period-dates,
.analytics-period-presets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.analytics-period-dates .form-control {
    width: 142px;
    min-height: 34px;
    padding: 5px 8px;
    font-size: 0.86rem;
}

.analytics-period-presets .btn {
    min-width: 48px;
    min-height: 34px;
    font-weight: 750;
}

.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-kpi {
    display: grid;
    gap: 5px;
    min-height: 86px;
    padding: 16px 18px;
    border-right: 1px solid #e6eee5;
}

.analytics-kpi:last-child {
    border-right: 0;
}

.analytics-kpi span {
    color: #66736b;
    font-size: 0.88rem;
    font-weight: 700;
}

.analytics-kpi strong {
    color: #153923;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.1;
}


.analytics-card {
    min-width: 0;
    height: 100%;
    padding: 18px;
    background: #fff;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 68, 42, 0.06);
}

.analytics-card h2 {
    margin: 0 0 14px;
    color: #153923;
    font-size: 0.88rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.analytics-chart-card {
    display: flex;
    flex-direction: column;
}

.analytics-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    flex: 1 1 auto;
}

.analytics-chart-donut {
    width: min(100%, 240px);
    min-height: 240px;
    max-width: 240px;
    margin-right: auto;
    margin-left: auto;
}

.analytics-split-label {
    margin-top: 4px;
    color: #153923;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.analytics-quick-summary {
    display: grid;
    gap: 6px;
}

.analytics-quick-summary p {
    margin: 0;
    color: #486154;
    font-size: 1rem;
}

.analytics-empty {
    padding: 18px;
    color: #66736b;
    background: #f9fbf8;
    border: 1px dashed #cddccc;
    border-radius: 8px;
}
.order-summary-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #dfe7dd;
    box-shadow: 0 -8px 24px rgba(21, 68, 42, 0.12);
}

.summary-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.summary-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.summary-line,
.summary-breakdown div {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-width: 220px;
}

.summary-breakdown {
    padding-top: 4px;
    margin-top: 4px;
    border-top: 1px solid #e5ece4;
    color: #486154;
    font-size: 0.9rem;
}

.summary-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-compact {
    display: none;
}

@media (max-width: 575.98px) {
    .has-order-summary {
        padding-bottom: 128px;
    }

    .customer-container {
        width: min(100% - 16px, 1100px);
    }

    .customer-topbar {
        min-height: 48px;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .brand-mark {
        font-size: 1.42rem;
        line-height: 1;
    }

    .customer-menu-button {
        min-height: 44px;
        max-width: 60px;
        padding-right: 6px;
        padding-left: 6px;
        border-radius: 999px;
    }

    .customer-avatar {
        display: grid;
        width: 34px;
        height: 34px;
    }

    .customer-menu-name {
        display: none;
    }

    .customer-menu-location {
        display: none;
    }

    .customer-hero {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px !important;
    }

    .customer-hero .small {
        font-size: 0.78rem;
    }

    .customer-hero h1 {
        font-size: 1.05rem;
    }

    .customer-context {
        gap: 5px;
        font-size: 0.82rem;
    }

    .cost-filter {
        grid-template-columns: 1fr 1fr auto;
        width: 100%;
    }

    .analytics-overview-header {
        padding: 14px;
    }

    .analytics-period-toolbar {
        justify-content: stretch;
        width: 100%;
    }

    .analytics-period-dates,
    .analytics-period-presets {
        width: 100%;
    }

    .analytics-period-dates .form-control {
        flex: 1 1 calc(50% - 4px);
        width: auto;
        min-width: 0;
    }

    .analytics-period-presets .btn {
        flex: 0 0 auto;
    }

    .analytics-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-kpi {
        min-height: 74px;
        padding: 13px 14px;
        border-bottom: 1px solid #e6eee5;
    }

    .analytics-kpi:nth-child(2n) {
        border-right: 0;
    }

    .analytics-kpi:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .analytics-kpi strong {
        font-size: 1.2rem;
    }

    .analytics-card {
        padding: 14px;
    }

    .analytics-chart-wrap {
        min-height: 230px;
    }

    .analytics-chart-donut {
        width: min(100%, 230px);
        min-height: 230px;
        max-width: 230px;
    }
    .week-panel {
        padding: 8px 7px;
        margin-right: -2px;
        margin-left: -2px;
        margin-bottom: 14px !important;
    }

    .week-selector {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 5px;
        margin-bottom: 6px;
    }

    .week-title {
        overflow: visible;
        font-size: 1.06rem;
        line-height: 1.15;
        text-overflow: clip;
        white-space: nowrap;
    }

    .week-arrow {
        min-width: 40px;
        min-height: 42px;
        padding: 7px 8px;
    }

    .week-strip {
        grid-template-columns: repeat(5, 68px);
        gap: 5px;
    }

    .day-card {
        align-items: center;
        min-height: 62px;
        padding: 6px 5px;
        gap: 2px;
        text-align: center;
    }

    .day-name {
        font-size: 0.82rem;
        line-height: 1;
    }

    .day-date {
        font-size: 1.18rem;
        line-height: 1.05;
    }

    .day-card .badge {
        max-width: 100%;
        padding: 3px 6px;
        font-size: 0.7rem;
        line-height: 1;
    }

    .day-status-full {
        display: none;
    }

    .day-status-short {
        display: inline;
    }

    .daily-header {
        margin-bottom: 8px !important;
    }

    .daily-header h2 {
        font-size: 1.28rem;
        line-height: 1.15;
    }

    .daily-header .text-muted {
        font-size: 0.9rem;
    }

    .category-nav {
        top: 48px;
        min-height: 44px;
        gap: 6px;
        padding: 5px 0 7px;
        margin-right: -8px;
        margin-left: -8px;
        padding-left: 8px;
        margin-bottom: 6px;
    }

    .category-pill {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 0.84rem;
        line-height: 1;
    }

    .category-heading {
        margin-bottom: 7px;
    }

    .category-heading h3 {
        font-size: 0.78rem;
    }

    .meal-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .meal-card {
        grid-template-columns: 80px 1fr;
        min-height: 98px;
        gap: 9px;
        padding: 8px;
    }

    .meal-image,
    .meal-image-placeholder {
        height: 80px;
    }
    .meal-card-top strong {
        font-size: 0.98rem;
    }

    .meal-price {
        font-size: 1rem;
    }

    .meal-description {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.81rem;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .meal-badges .badge {
        padding: 3px 6px;
        font-size: 0.68rem;
    }

    .selected-check {
        top: 50%;
        right: 8px;
        width: 36px;
        height: 36px;
        transform: translateY(-50%) scale(0.92);
    }
    .quantity-control {
        right: 10px;
        bottom: 8px;
    }

    .quantity-btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    .quantity-value {
        height: 38px;
    }

    .order-summary-bar {
        padding-top: 7px;
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }

    .summary-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .summary-copy {
        gap: 1px;
    }

    .summary-line {
        min-width: 0;
        font-size: 0.98rem;
    }

    .summary-items {
        display: none;
    }

    .summary-copy {
        grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
        align-items: end;
    }

    .summary-line {
        display: grid;
        gap: 0;
    }

    .summary-breakdown {
        grid-column: 1 / -1;
    }

    .summary-line strong {
        font-size: 1.16rem;
    }

    .summary-breakdown {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px 10px;
        padding-top: 1px;
        margin-top: 1px;
        font-size: 0.76rem;
        line-height: 1.15;
    }

    .summary-breakdown div {
        display: grid;
        min-width: 0;
        gap: 0;
    }

    .summary-breakdown small {
        display: block;
        grid-column: 1 / -1;
        font-size: 0.72rem;
    }

    .summary-actions {
        display: grid;
        grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
        gap: 7px;
    }

    .summary-actions .btn {
        width: 100%;
        min-height: 46px;
        padding: 8px 10px;
        font-size: 0.92rem;
        font-weight: 700;
    }

    .summary-actions .btn-outline-danger {
        min-height: 46px;
        font-size: 0.9rem;
    }

    .label-full {
        display: none;
    }

    .label-compact {
        display: inline;
    }

    .cost-row {
        grid-template-columns: 1fr;
    }

    .cost-row > div:not(:first-child) {
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 360px) {
    .has-order-summary {
        padding-bottom: 120px;
    }

    .customer-container {
        width: min(100% - 12px, 1100px);
    }

    .brand-mark {
        font-size: 1.34rem;
    }

    .customer-avatar {
        width: 32px;
        height: 32px;
    }

    .week-selector {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 4px;
    }

    .week-title {
        font-size: clamp(0.86rem, 4.25vw, 0.98rem);
    }

    .week-arrow {
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
    }

    .week-strip {
        grid-template-columns: repeat(5, 66px);
        gap: 4px;
    }

    .day-card {
        min-height: 58px;
        padding: 5px 4px;
    }

    .day-name {
        font-size: 0.78rem;
    }

    .day-date {
        font-size: 1.08rem;
    }

    .day-card .badge {
        padding: 3px 5px;
        font-size: 0.66rem;
    }

    .daily-header h2 {
        font-size: 1.18rem;
    }

    .daily-header .text-muted {
        font-size: 0.84rem;
    }

    .category-pill {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .meal-card {
        grid-template-columns: 72px 1fr;
        min-height: 88px;
        gap: 8px;
        padding: 7px;
    }

    .meal-image,
    .meal-image-placeholder {
        height: 72px;
    }

    .meal-card-top strong {
        font-size: 0.94rem;
    }

    .meal-price {
        font-size: 0.96rem;
    }

    .meal-description {
        font-size: 0.78rem;
        -webkit-line-clamp: 1;
    }

    .meal-badges {
        gap: 4px;
    }

    .meal-badges .badge {
        font-size: 0.66rem;
    }

    .selected-check {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
    .quantity-control {
        right: 10px;
        bottom: 7px;
        gap: 5px;
    }

    .quantity-btn {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .quantity-value {
        height: 36px;
        min-width: 26px;
    }

    .summary-line {
        font-size: 0.94rem;
    }

    .summary-line strong {
        font-size: 1.16rem;
    }

    .summary-breakdown {
        font-size: 0.72rem;
    }

    .summary-breakdown strong {
        font-size: 0.88rem;
    }

    .summary-actions {
        gap: 6px;
    }

    .summary-actions .btn {
        min-height: 44px;
        padding: 7px 8px;
        font-size: 0.88rem;
    }
}

@media (min-width: 992px) {
    .meal-card:hover .selected-check {
        opacity: 0.35;
    }

    .meal-card.selected:hover .selected-check {
        opacity: 1;
    }
}

@media (max-width: 900px) and (min-width: 577px) {
    .meal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .has-order-summary {
        padding-bottom: 118px;
    }

    .summary-breakdown,
    .summary-items {
        display: none;
    }

    .summary-inner {
        flex-direction: row;
        align-items: center;
    }

    .summary-actions {
        grid-template-columns: auto auto;
    }
}

@media (max-width: 767.98px) {
    .customer-has-mobile-nav {
        padding-bottom: calc(var(--customer-mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .customer-has-mobile-nav.has-order-summary {
        padding-bottom: calc(128px + var(--customer-mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .customer-topbar {
        min-height: 52px;
    }

    .customer-header-inner {
        gap: 8px;
        justify-content: space-between;
    }

    .customer-main-nav {
        display: none;
    }

    .customer-user {
        flex: 0 1 auto;
        gap: 7px;
    }

    .customer-user .customer-avatar {
        width: 34px;
        height: 34px;
    }

    .customer-user-copy strong,
    .customer-user-copy span {
        max-width: 96px;
    }

    .customer-user-copy strong {
        font-size: 0.9rem;
    }

    .customer-user-copy span {
        font-size: 0.76rem;
    }

    .customer-logout-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .customer-mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: var(--customer-mobile-nav-height);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #dfe7dd;
        box-shadow: 0 -8px 24px rgba(21, 68, 42, 0.12);
    }

    .customer-mobile-nav-link {
        display: grid;
        min-height: 48px;
        place-items: center;
        align-content: center;
        gap: 2px;
        color: #66736b;
        text-decoration: none;
        border-radius: 8px;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .customer-mobile-nav-link i {
        font-size: 1.18rem;
        line-height: 1;
    }

    .customer-mobile-nav-link.active {
        color: #198754;
        background: #edf7ef;
    }

    .order-summary-bar {
        bottom: var(--customer-mobile-nav-height);
    }
}

@media (max-width: 360px) {
    .customer-has-mobile-nav.has-order-summary {
        padding-bottom: calc(120px + var(--customer-mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .customer-user-copy strong,
    .customer-user-copy span {
        max-width: 82px;
    }

    .customer-mobile-nav {
        padding-right: 4px;
        padding-left: 4px;
    }

    .customer-mobile-nav-link {
        font-size: 0.68rem;
    }
}

.material-category-tree {
    display: grid;
    gap: 0.75rem;
}

.material-category-tree-root {
    padding: 0.75rem;
    border: 1px solid #dfe7dd;
    border-radius: 8px;
    background: #fff;
}

.material-category-tree-root ul {
    padding-left: 1.25rem;
}

.material-category-tree-root li {
    padding: 0.35rem 0;
    border-top: 1px solid #eef3ec;
}
.officebite-chart {
    position: relative;
    height: 280px;
}

@media (max-width: 575.98px) {
    .officebite-chart {
        height: 240px;
    }
}

.admin-user-button {
    white-space: nowrap;
}

.admin-user-dropdown-menu {
    min-width: 18rem;
    max-width: min(22rem, calc(100vw - 1rem));
    white-space: normal;
}

.admin-user-context {
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .admin-user-dropdown-menu {
        max-width: calc(100vw - 2rem);
    }
}
.production-kpi {
    position: relative;
    min-height: 118px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(39, 92, 51, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0.2rem 0.75rem rgba(28, 67, 38, 0.06);
}

.production-kpi::after {
    position: absolute;
    right: 0.9rem;
    top: 0.8rem;
    font-size: 1.35rem;
    opacity: 0.65;
}

.production-kpi-plan { background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.12), #fff); }
.production-kpi-ordered { background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08), #fff); }
.production-kpi-produced { background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.10), #fff); }
.production-kpi-picked { background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.07), #fff); }
.production-kpi-cost { background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.09), #fff); }
.production-kpi-revenue { background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.14), #fff); }

.production-kpi > i {
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.production-kpi-label {
    margin-top: 0.35rem;
    color: #5f6d63;
    font-size: 0.78rem;
    font-weight: 600;
}

.production-kpi-value {
    margin-top: 0.15rem;
    color: #1f2d23;
    font-size: 1.25rem;
    font-weight: 700;
}

.production-kpi-secondary {
    color: #657268;
    font-size: 0.75rem;
}

@media (max-width: 575.98px) {
    .production-kpi {
        min-height: 104px;
        padding: 0.75rem;
    }

    .production-kpi-value {
        font-size: 1.05rem;
    }
}
.production-plan-header {
    min-width: 0;
}

.production-plan-heading,
.production-plan-controls,
.production-plan-period-label {
    min-width: 0;
}

.production-plan-controls {
    max-width: 100%;
}

.production-plan-period-label {
    font-weight: 600;
    text-align: center;
}

.production-plan-period-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.production-plan-table-card,
.production-plan-table-wrap,
.production-plan-table-wrap table {
    max-width: 100%;
}

.production-plan-table-wrap {
    overflow-x: auto;
}

@media (max-width: 767.98px) {
    .production-plan-header {
        align-items: flex-start !important;
    }

    .production-plan-controls {
        width: 100%;
        justify-content: flex-start !important;
    }

    .production-plan-period-label {
        flex: 1 1 auto;
    }
}

@media (max-width: 420px) {
    .production-plan-controls .btn-group,
    .production-plan-controls .production-plan-period-label,
    .production-plan-controls .production-plan-period-button {
        flex: 0 0 auto;
    }

    .production-plan-period-label {
        font-size: 0.85rem;
    }
}

/* Customer analytics dark dashboard scope */
.customer-analytics-dark {
    min-height: 100vh;
    color: #DDE4E0;
    background: linear-gradient(135deg, #11181C 0%, #151D21 45%, #10171B 100%);
}

.customer-analytics-dark .customer-topbar {
    background: #10171B !important;
    border-bottom-color: #29343A !important;
}

.customer-analytics-dark .brand-mark {
    color: #43C77A;
}

.customer-analytics-dark .customer-nav-link {
    color: #DDE4E0;
}

.customer-analytics-dark .customer-nav-link:hover,
.customer-analytics-dark .customer-nav-link:focus {
    color: #fff;
    background: rgba(34, 180, 91, 0.12);
}

.customer-analytics-dark .customer-nav-link.active,
.customer-analytics-dark .customer-mobile-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #15803D, #16A34A);
    box-shadow: 0 10px 22px rgba(21, 128, 61, 0.28);
}

.customer-analytics-dark .customer-user-copy strong {
    color: #F3F6F4;
}

.customer-analytics-dark .customer-user-copy span,
.customer-analytics-dark .customer-context {
    color: #AAB5B0;
}

.customer-analytics-dark .customer-mobile-nav {
    background: #10171B;
    border-top-color: #29343A;
}

.customer-analytics-dark .customer-mobile-nav-link {
    color: #DDE4E0;
}

.customer-analytics-dark main.customer-container {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
}

.customer-analytics-dark .analytics-overview {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.customer-analytics-dark .analytics-overview-header {
    padding: 0 0 22px;
    border-bottom: 0;
}

.customer-analytics-dark .analytics-overview-header h1 {
    color: #F3F6F4;
    font-weight: 700;
}

.customer-analytics-dark .analytics-period-toolbar {
    align-items: center;
}

.customer-analytics-dark .analytics-period-dates::after {
    content: "do";
    order: 2;
    color: #AAB5B0;
    font-size: 0.82rem;
    font-weight: 700;
}

.customer-analytics-dark .analytics-period-dates .form-control:first-child {
    order: 1;
}

.customer-analytics-dark .analytics-period-dates .form-control:last-child {
    order: 3;
}

.customer-analytics-dark .analytics-period-dates .form-control {
    color: #F3F6F4;
    color-scheme: dark;
    background: #151D21;
    border-color: #354249;
}

.customer-analytics-dark .analytics-period-dates .form-control:focus {
    color: #F3F6F4;
    background: #151D21;
    border-color: #22B45B;
    box-shadow: 0 0 0 .2rem rgba(34, 180, 91, .18);
}

.customer-analytics-dark .analytics-period-presets .btn-outline-warning {
    color: #43C77A;
    border-color: #1FAA59;
    background: transparent;
}

.customer-analytics-dark .analytics-period-presets .btn-outline-warning:hover,
.customer-analytics-dark .analytics-period-presets .btn-outline-warning:focus,
.customer-analytics-dark .analytics-period-presets .btn-warning {
    color: #fff;
    border-color: #159455;
    background: linear-gradient(135deg, #15803D, #16A34A);
    box-shadow: 0 0 0 .2rem rgba(34, 180, 91, .14);
}

.customer-analytics-dark .analytics-period-current .btn {
    min-width: 128px;
}

.customer-analytics-dark .analytics-kpi-grid {
    gap: 14px;
}

.customer-analytics-dark .analytics-kpi {
    position: relative;
    overflow: hidden;
    min-height: 80px;
    padding: 18px;
    border: 1px solid #2C383E;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.customer-analytics-dark .analytics-kpi::after {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    font-family: "bootstrap-icons";
    font-size: 1.05rem;
    border-radius: 999px;
    opacity: 0.96;
}

.customer-analytics-dark .analytics-kpi-meals {
    border-color: #235C39;
    background: linear-gradient(135deg, #163521, #10251A);
}

.customer-analytics-dark .analytics-kpi-total {
    border-color: #146A61;
    background: linear-gradient(135deg, #0F3A36, #102825);
}

.customer-analytics-dark .analytics-kpi-employer {
    border-color: #205B91;
    background: linear-gradient(135deg, #142D48, #101F30);
}

.customer-analytics-dark .analytics-kpi-employee {
    border-color: #8A5A12;
    background: linear-gradient(135deg, #493116, #2C2113);
}

.customer-analytics-dark .analytics-kpi-meals::after {
    content: "\F3E7";
    color: #43C77A;
    background: rgba(67, 199, 122, 0.12);
}

.customer-analytics-dark .analytics-kpi-total::after {
    content: "\F635";
    color: #32D0BE;
    background: rgba(50, 208, 190, 0.12);
}

.customer-analytics-dark .analytics-kpi-employer::after {
    content: "\F4D7";
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.12);
}

.customer-analytics-dark .analytics-kpi-employee::after {
    content: "\F64A";
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
}

.customer-analytics-dark .analytics-kpi span {
    color: #F3F6F4;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.customer-analytics-dark .analytics-kpi small {
    color: #AAB5B0;
    font-weight: 600;
}

.customer-analytics-dark .analytics-kpi strong {
    margin-top: auto;
    font-size: 1.72rem;
}

.customer-analytics-dark .analytics-kpi-meals strong {
    color: #43C77A;
}

.customer-analytics-dark .analytics-kpi-total strong {
    color: #32D0BE;
}

.customer-analytics-dark .analytics-kpi-employer strong {
    color: #3B82F6;
}

.customer-analytics-dark .analytics-kpi-employee strong {
    color: #F59E0B;
}

.customer-analytics-dark .analytics-card {
    color: #DDE4E0;
    background: linear-gradient(145deg, #182126, #151D21);
    border: 1px solid #2C383E;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.customer-analytics-dark .analytics-card h2 {
    color: #F3F6F4;
    font-weight: 800;
}

.customer-analytics-dark .analytics-chart-wrap {
    min-height: 280px;
}

.customer-analytics-dark .analytics-chart-donut {
    width: min(100%, 240px);
    min-height: 240px;
    max-width: 240px;
}

.customer-analytics-dark .analytics-split-label {
    color: #F3F6F4;
}

.customer-analytics-dark .analytics-quick-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: linear-gradient(135deg, #173423, #132A1C);
    border-color: #285B3B;
}

.customer-analytics-dark .analytics-quick-summary h2 {
    grid-column: 1 / -1;
}

.customer-analytics-dark .analytics-quick-summary strong {
    color: #43C77A;
    font-weight: 800;
}

.customer-analytics-dark .analytics-empty,
.customer-analytics-dark .analytics-empty-state {
    color: #AAB5B0;
    background: #182126;
    border: 1px solid #354249;
    border-radius: 16px;
}

.customer-analytics-dark .analytics-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 280px;
    padding: 32px;
    text-align: center;
}

.customer-analytics-dark .analytics-empty-state i {
    color: #43C77A;
    font-size: 2rem;
}

.customer-analytics-dark .analytics-empty-state h2 {
    margin: 0;
    color: #F3F6F4;
    font-size: 1.1rem;
}

.customer-analytics-dark .analytics-empty-state p {
    margin: 0;
}

@media (max-width: 991.98px) {
    .customer-analytics-dark .analytics-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-analytics-dark .analytics-quick-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
    }

}

@media (max-width: 575.98px) {
    .customer-analytics-dark main.customer-container {
        padding-top: 16px !important;
        padding-bottom: 20px !important;
    }

    .customer-analytics-dark .analytics-period-dates .form-control {
        flex: 1 1 calc(50% - 18px);
    }

    .customer-analytics-dark .analytics-period-presets .btn {
        min-width: 58px;
    }

    .customer-analytics-dark .analytics-period-current .btn {
        min-width: 120px;
    }

    .customer-analytics-dark .analytics-chart-wrap,
    .customer-analytics-dark .analytics-chart-donut {
        min-height: 230px;
    }

    .customer-analytics-dark .analytics-kpi strong {
        font-size: 1.24rem;
    }

    .customer-analytics-dark .analytics-quick-summary {
        grid-template-columns: 1fr;
    }

}
.analytics-insight {
    display: grid;
    gap: 4px;
}

.analytics-insight span {
    color: #66736b;
    font-size: 0.9rem;
}

.analytics-insight strong {
    color: #153923;
    font-size: 1rem;
}

.customer-analytics-dark .analytics-insight {
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-analytics-dark .analytics-insight:last-child {
    border-right: 0;
}

.customer-analytics-dark .analytics-insight span {
    color: #AAB5B0;
    font-weight: 650;
}

.customer-analytics-dark .analytics-insight strong {
    color: #43C77A;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .customer-analytics-dark .analytics-insight:nth-child(odd) {
        border-right: 0;
    }
}

@media (max-width: 575.98px) {
    .customer-analytics-dark .analytics-insight {
        padding: 0;
        border-right: 0;
    }
}
.customer-analytics-dark .analytics-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 34px;
    border-color: rgba(255, 160, 0, 0.65);
    color: #ffbf4d;
    background: rgba(255, 160, 0, 0.08);
    font-weight: 700;
}

.customer-analytics-dark .analytics-pdf-button:hover,
.customer-analytics-dark .analytics-pdf-button:focus {
    border-color: #ffa000;
    background: rgba(255, 160, 0, 0.18);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 160, 0, .16);
}