/* ==========================================================================
   M'Burger - Director Dashboard Styles
   Full-screen dark theme
   Palette: #1a1614 bg, #c8a090 accent, #faf8f5 cream, #d4a94b mustard
   ========================================================================== */

/* ===== RESET & BASE ===== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.mbd {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1614;
    color: #faf8f5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== LOGIN SCREEN ===== */

.mbd-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 169, 75, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(200, 160, 144, 0.06) 0%, transparent 50%),
        #1a1614;
}

.mbd-login__card {
    background: #242020;
    border: 1px solid rgba(200, 160, 144, 0.15);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.mbd-login__logo {
    margin-bottom: 1.5rem;
}

.mbd-login__logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.mbd-login__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #faf8f5;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.mbd-login__subtitle {
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.5);
    margin-bottom: 2rem;
}

.mbd-login__field {
    margin-bottom: 1.25rem;
    text-align: left;
}

.mbd-login__field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(250, 248, 245, 0.7);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mbd-login__field input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1614;
    border: 1px solid rgba(200, 160, 144, 0.2);
    border-radius: 8px;
    color: #faf8f5;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.mbd-login__field input:focus {
    border-color: #d4a94b;
}

.mbd-login__field input::placeholder {
    color: rgba(250, 248, 245, 0.3);
}

.mbd-login__btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #d4a94b, #c8a090);
    border: none;
    border-radius: 8px;
    color: #1a1614;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.mbd-login__btn:hover {
    opacity: 0.9;
}

.mbd-login__btn:active {
    transform: scale(0.98);
}

.mbd-login__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mbd-login__error {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(196, 106, 90, 0.15);
    border: 1px solid rgba(196, 106, 90, 0.3);
    border-radius: 6px;
    color: #e88a7a;
    font-size: 0.85rem;
}

/* ===== DASHBOARD LAYOUT ===== */

.mbd-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== SIDEBAR + MAIN LAYOUT ===== */

.mbd-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ===== TOPBAR ===== */

.mbd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #242020;
    border-bottom: 1px solid rgba(200, 160, 144, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.mbd-topbar__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.mbd-topbar__logo {
    height: 32px;
    width: auto;
}

.mbd-topbar__title {
    font-size: 1rem;
    font-weight: 600;
    color: #faf8f5;
    white-space: nowrap;
}

.mbd-topbar__center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.mbd-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Period presets */

.mbd-period-presets {
    display: flex;
    gap: 2px;
    background: #1a1614;
    border-radius: 8px;
    padding: 3px;
}

.mbd-period-btn {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(250, 248, 245, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mbd-period-btn:hover {
    color: #faf8f5;
    background: rgba(200, 160, 144, 0.1);
}

.mbd-period-btn.active {
    background: #d4a94b;
    color: #1a1614;
    font-weight: 600;
}

/* Custom dates */

.mbd-custom-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mbd-date-input {
    padding: 0.35rem 0.6rem;
    background: #1a1614;
    border: 1px solid rgba(200, 160, 144, 0.2);
    border-radius: 6px;
    color: #faf8f5;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
}

.mbd-date-input:focus {
    border-color: #d4a94b;
}

/* Webkit date picker icon */
.mbd-date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

.mbd-date-sep {
    color: rgba(250, 248, 245, 0.4);
    font-size: 0.85rem;
}

.mbd-btn-sm {
    padding: 0.35rem 0.75rem;
    background: #d4a94b;
    border: none;
    border-radius: 6px;
    color: #1a1614;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mbd-btn-sm:hover {
    opacity: 0.85;
}

/* Restaurant filter select */

.mbd-select {
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    background: #1a1614;
    border: 1px solid rgba(200, 160, 144, 0.2);
    border-radius: 6px;
    color: #faf8f5;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8a090' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    max-width: 200px;
}

.mbd-select:focus {
    border-color: #d4a94b;
}

/* Export dropdown */

.mbd-dropdown {
    position: relative;
}

.mbd-btn-export {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(200, 160, 144, 0.12);
    border: 1px solid rgba(200, 160, 144, 0.2);
    border-radius: 6px;
    color: #faf8f5;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.mbd-btn-export:hover {
    background: rgba(200, 160, 144, 0.2);
}

.mbd-dropdown__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #2e2a28;
    border: 1px solid rgba(200, 160, 144, 0.15);
    border-radius: 8px;
    padding: 0.35rem;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.mbd-dropdown__item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #faf8f5;
    font-size: 0.82rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.mbd-dropdown__item:hover {
    background: rgba(212, 169, 75, 0.15);
}

/* Logout button */

.mbd-btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(196, 106, 90, 0.12);
    border: 1px solid rgba(196, 106, 90, 0.2);
    border-radius: 6px;
    color: #e88a7a;
    cursor: pointer;
    transition: background 0.2s;
}

.mbd-btn-logout:hover {
    background: rgba(196, 106, 90, 0.25);
}

/* ===== SIDEBAR ===== */

.mbd-sidebar {
    width: 220px;
    background: #242020;
    border-right: 1px solid rgba(200, 160, 144, 0.1);
    padding: 1.25rem 0;
    flex-shrink: 0;
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
    overflow-y: auto;
}

.mbd-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.5rem;
}

.mbd-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(250, 248, 245, 0.55);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}

.mbd-nav-item:hover {
    background: rgba(200, 160, 144, 0.08);
    color: rgba(250, 248, 245, 0.85);
}

.mbd-nav-item.active {
    background: rgba(212, 169, 75, 0.12);
    color: #d4a94b;
    font-weight: 600;
}

.mbd-nav-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.mbd-nav-item.active svg {
    opacity: 1;
}

/* ===== PANELS (section switching) ===== */

.mbd-panel {
    display: none;
}

.mbd-panel.active {
    display: block;
}

.mbd-panel__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #faf8f5;
    margin-bottom: 0.4rem;
}

.mbd-panel__desc {
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.5);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* ===== MAIN CONTENT ===== */

.mbd-main {
    flex: 1;
    padding: 1.5rem;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Loading overlay */

.mbd-loading {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 20, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    gap: 1rem;
    border-radius: 8px;
}

.mbd-loading__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(212, 169, 75, 0.2);
    border-top-color: #d4a94b;
    border-radius: 50%;
    animation: mbd-spin 0.8s linear infinite;
}

@keyframes mbd-spin {
    to { transform: rotate(360deg); }
}

.mbd-loading p {
    color: rgba(250, 248, 245, 0.6);
    font-size: 0.85rem;
}

/* ===== KPI CARDS ROW ===== */

.mbd-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mbd-kpi-card {
    background: #242020;
    border: 1px solid rgba(200, 160, 144, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: border-color 0.2s, transform 0.15s;
}

.mbd-kpi-card:hover {
    border-color: rgba(200, 160, 144, 0.25);
    transform: translateY(-1px);
}

.mbd-kpi-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.mbd-kpi-card[data-kpi="revenue"] .mbd-kpi-card__icon {
    background: rgba(212, 169, 75, 0.15);
    color: #d4a94b;
}

.mbd-kpi-card[data-kpi="orders"] .mbd-kpi-card__icon {
    background: rgba(200, 160, 144, 0.15);
    color: #c8a090;
}

.mbd-kpi-card[data-kpi="basket"] .mbd-kpi-card__icon {
    background: rgba(139, 115, 85, 0.2);
    color: #a68b6a;
}

.mbd-kpi-card[data-kpi="customers"] .mbd-kpi-card__icon {
    background: rgba(122, 154, 106, 0.15);
    color: #7a9a6a;
}

.mbd-kpi-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mbd-kpi-card__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(250, 248, 245, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mbd-kpi-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #faf8f5;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbd-kpi-card__trend {
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

/* Trend badges */

.mbd-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.mbd-trend--up {
    background: rgba(122, 154, 106, 0.15);
    color: #8fbc6a;
}

.mbd-trend--down {
    background: rgba(196, 106, 90, 0.15);
    color: #e88a7a;
}

/* ===== CHARTS ROW ===== */

.mbd-charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mbd-chart-card {
    background: #242020;
    border: 1px solid rgba(200, 160, 144, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
}

.mbd-chart-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(250, 248, 245, 0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mbd-chart-card__body {
    position: relative;
}

.mbd-chart-card--large .mbd-chart-card__body {
    height: 300px;
}

.mbd-chart-card--small .mbd-chart-card__body {
    height: 300px;
}

/* ===== SECTIONS ===== */

.mbd-section {
    margin-bottom: 1.5rem;
}

.mbd-section__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(250, 248, 245, 0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===== RESTAURANT GRID ===== */

.mbd-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.mbd-restaurant-card {
    background: #242020;
    border: 1px solid rgba(200, 160, 144, 0.1);
    border-radius: 10px;
    padding: 1.1rem;
    transition: border-color 0.2s;
}

.mbd-restaurant-card:hover {
    border-color: rgba(212, 169, 75, 0.25);
}

.mbd-restaurant-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4a94b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(200, 160, 144, 0.08);
}

.mbd-restaurant-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.mbd-restaurant-card__stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mbd-restaurant-card__stat-label {
    font-size: 0.7rem;
    color: rgba(250, 248, 245, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mbd-restaurant-card__stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #faf8f5;
}

/* ===== ORDERS TABLE ===== */

.mbd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mbd-table {
    width: 100%;
    border-collapse: collapse;
    background: #242020;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.82rem;
}

.mbd-table thead th {
    background: #2e2a28;
    padding: 0.7rem 0.8rem;
    text-align: left;
    font-weight: 600;
    color: rgba(250, 248, 245, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.72rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(200, 160, 144, 0.1);
}

.mbd-table tbody td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid rgba(200, 160, 144, 0.06);
    color: rgba(250, 248, 245, 0.85);
    vertical-align: middle;
}

.mbd-table tbody tr:last-child td {
    border-bottom: none;
}

.mbd-table tbody tr:hover td {
    background: rgba(200, 160, 144, 0.04);
}

.mbd-table__id {
    font-weight: 600;
    color: #d4a94b !important;
    white-space: nowrap;
}

.mbd-table__total {
    font-weight: 600;
    white-space: nowrap;
}

.mbd-table__items {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(250, 248, 245, 0.6) !important;
    font-size: 0.78rem;
}

.mbd-table__empty {
    text-align: center;
    color: rgba(250, 248, 245, 0.4);
    padding: 2rem !important;
    font-style: italic;
}

/* Order status badges */

.mbd-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.mbd-status--completed {
    background: rgba(122, 154, 106, 0.18);
    color: #8fbc6a;
}

.mbd-status--processing {
    background: rgba(212, 169, 75, 0.18);
    color: #d4a94b;
}

.mbd-status--on-hold {
    background: rgba(200, 160, 144, 0.18);
    color: #c8a090;
}

.mbd-status--pending {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(250, 248, 245, 0.6);
}

.mbd-status--cancelled,
.mbd-status--failed {
    background: rgba(196, 106, 90, 0.18);
    color: #e88a7a;
}

.mbd-status--refunded {
    background: rgba(139, 115, 85, 0.18);
    color: #a68b6a;
}

/* ===== COMPARISON SECTION ===== */

.mbd-comparison__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mbd-comparison__card {
    background: #242020;
    border: 1px solid rgba(200, 160, 144, 0.1);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mbd-comparison__label {
    font-size: 0.75rem;
    color: rgba(250, 248, 245, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mbd-comparison__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #faf8f5;
}

.mbd-comparison__delta {
    margin-top: 0.1rem;
}

/* ===== FOOTER ===== */

.mbd-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(250, 248, 245, 0.3);
    border-top: 1px solid rgba(200, 160, 144, 0.06);
}

/* ===== KPI ROW VARIANT (3 cols) ===== */

.mbd-kpi-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== CHART CARD BODY VARIANTS ===== */

.mbd-chart-card__body--doughnut {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbd-chart-card__body--bar-h {
    height: 250px;
}

/* ===== EXPORT SECTION ===== */

.mbd-export-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mbd-export-card {
    background: #242020;
    border: 1px solid rgba(200, 160, 144, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.2s, transform 0.15s;
}

.mbd-export-card:hover {
    border-color: rgba(212, 169, 75, 0.25);
    transform: translateY(-2px);
}

.mbd-export-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(212, 169, 75, 0.12);
    color: #d4a94b;
    margin-bottom: 0.25rem;
}

.mbd-export-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #faf8f5;
}

.mbd-export-card__desc {
    font-size: 0.8rem;
    color: rgba(250, 248, 245, 0.5);
    line-height: 1.5;
    flex: 1;
}

.mbd-export-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #d4a94b, #c8a090);
    border: none;
    border-radius: 8px;
    color: #1a1614;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.mbd-export-card__btn:hover {
    opacity: 0.9;
}

.mbd-export-card__btn:active {
    transform: scale(0.97);
}

.mbd-export-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    background: rgba(200, 160, 144, 0.06);
    border: 1px solid rgba(200, 160, 144, 0.1);
    border-radius: 8px;
    color: rgba(250, 248, 245, 0.5);
    font-size: 0.8rem;
}

.mbd-export-info svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ===== PERFORMANCE TABLE (revenue share bar) ===== */

.mbd-share-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mbd-share-bar__track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.mbd-share-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a94b, #c8a090);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.mbd-share-bar__pct {
    font-size: 0.78rem;
    font-weight: 600;
    color: #d4a94b;
    white-space: nowrap;
    min-width: 40px;
    text-align: right;
}

/* ===== EMPTY STATE ===== */

.mbd-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(250, 248, 245, 0.4);
    font-style: italic;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1200px) {
    .mbd-charts-row {
        grid-template-columns: 1fr;
    }

    .mbd-chart-card--large .mbd-chart-card__body,
    .mbd-chart-card--small .mbd-chart-card__body {
        height: 260px;
    }

    .mbd-export-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .mbd-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .mbd-kpi-row--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mbd-topbar {
        padding: 0.75rem 1rem;
    }

    .mbd-topbar__center {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .mbd-comparison__grid {
        grid-template-columns: 1fr;
    }

    /* Sidebar collapses to icon-only */
    .mbd-sidebar {
        width: 56px;
        padding: 1rem 0;
    }

    .mbd-nav-item span {
        display: none;
    }

    .mbd-nav-item {
        justify-content: center;
        padding: 0.65rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mbd-layout {
        flex-direction: column;
    }

    .mbd-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(200, 160, 144, 0.1);
    }

    .mbd-sidebar__nav {
        flex-direction: row;
        gap: 0;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mbd-nav-item {
        border-radius: 0;
        padding: 0.65rem 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mbd-nav-item span {
        display: inline;
    }

    .mbd-nav-item.active {
        background: transparent;
        border-bottom: 2px solid #d4a94b;
    }

    .mbd-main {
        padding: 1rem;
    }

    .mbd-kpi-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .mbd-kpi-row--3 {
        grid-template-columns: 1fr;
    }

    .mbd-kpi-card {
        padding: 1rem;
    }

    .mbd-kpi-card__value {
        font-size: 1.2rem;
    }

    .mbd-kpi-card__icon {
        width: 36px;
        height: 36px;
    }

    .mbd-kpi-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .mbd-topbar__title {
        display: none;
    }

    .mbd-period-presets {
        flex-wrap: wrap;
    }

    .mbd-period-btn {
        font-size: 0.72rem;
        padding: 0.3rem 0.5rem;
    }

    .mbd-select {
        max-width: 150px;
        font-size: 0.75rem;
    }

    .mbd-restaurant-grid {
        grid-template-columns: 1fr;
    }

    .mbd-chart-card--large .mbd-chart-card__body,
    .mbd-chart-card--small .mbd-chart-card__body {
        height: 220px;
    }

    .mbd-table {
        font-size: 0.75rem;
    }

    .mbd-table thead th,
    .mbd-table tbody td {
        padding: 0.5rem 0.5rem;
    }

    .mbd-login__card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .mbd-kpi-row {
        grid-template-columns: 1fr;
    }

    .mbd-topbar__right {
        flex-wrap: wrap;
    }

    .mbd-custom-dates {
        flex-wrap: wrap;
    }

    .mbd-date-input {
        width: 100%;
    }

    .mbd-charts-row {
        gap: 0.75rem;
    }

    .mbd-export-grid {
        gap: 0.75rem;
    }

    .mbd-export-card {
        padding: 1.15rem;
    }
}

/* ===== SCROLLBAR (dark theme) ===== */

.mbd ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.mbd ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.mbd ::-webkit-scrollbar-thumb {
    background: rgba(200, 160, 144, 0.2);
    border-radius: 3px;
}

.mbd ::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 160, 144, 0.35);
}

/* ===== PRINT ===== */

@media print {
    .mbd-topbar,
    .mbd-footer,
    .mbd-loading,
    .mbd-btn-export,
    .mbd-btn-logout,
    .mbd-dropdown,
    .mbd-sidebar {
        display: none !important;
    }

    .mbd-layout {
        display: block;
    }

    .mbd-panel {
        display: block !important;
    }

    body.mbd {
        background: #fff;
        color: #333;
    }

    .mbd-kpi-card,
    .mbd-chart-card,
    .mbd-restaurant-card,
    .mbd-comparison__card {
        background: #fff;
        border-color: #ddd;
        color: #333;
    }

    .mbd-kpi-card__label,
    .mbd-restaurant-card__stat-label,
    .mbd-comparison__label {
        color: #666;
    }

    .mbd-kpi-card__value,
    .mbd-restaurant-card__stat-value,
    .mbd-comparison__value {
        color: #333;
    }

    .mbd-table {
        background: #fff;
    }

    .mbd-table thead th {
        background: #f5f5f5;
        color: #333;
    }

    .mbd-table tbody td {
        color: #333;
        border-color: #eee;
    }
}
