@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --coffee-primary: #6f4e37;
    --coffee-secondary: #a67c52;
    --coffee-light: #d4a574;
    --coffee-dark: #3e2723;
    --bg-color: #f5f5f5;
    --white: #ffffff;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #ead8c5);
}

.login-card {
    width: min(420px, 92vw);
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
}

.login-logo {
    font-size: 3rem;
}

* {
    font-family: 'Inter', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--bg-color);
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
}

.page {
    display: flex;
    min-height: 0;
    height: auto;
    align-items: flex-start;
}

main {
    flex: 1;
    min-width: 0;
    background: white;
    overflow: visible;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex: 0 0 300px;
    background: var(--coffee-dark);
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    margin: 1rem;
    min-height: 0 !important;
    height: auto !important;
    max-height: none;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 8px;
}

.sidebar .navbar-brand {
    display: block;
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}

.sidebar-top-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
}

.sidebar-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.88);
}

.sidebar-logout {
    flex-shrink: 0;
    color: #ffd28a;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-logout:hover {
    color: #fff;
    text-decoration: underline;
}

.sidebar .nav-scrollable {
    padding: 1.25rem 0 1.5rem;
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.sidebar .nav-item {
    padding: 0 1rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 0.45rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link.active {
    background: var(--coffee-light);
    color: var(--coffee-dark);
    font-weight: 600;
}

.sidebar-account {
    flex-shrink: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-account .nav-link {
    margin-bottom: 0;
}

/* Top Bar */
.top-row {
    height: 60px;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-row h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-dark);
}

.top-row .ms-auto {
    color: #666;
    font-size: 0.9rem;
}

/* Content */
.content {
    padding: 2rem;
}

.shared-page-banner { position: relative; min-height: 145px; display: flex; align-items: center; overflow: hidden; margin-bottom: 1.25rem; border-radius: 14px; background: #32160b; box-shadow: 0 6px 16px rgba(62,39,35,.13); }
.shared-page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.shared-page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,13,5,.82), rgba(36,13,5,.15)); }
.shared-page-banner-content { position: relative; z-index: 1; padding: 1.5rem 2rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.shared-page-banner-content small { color: #e7b47e; letter-spacing: .08em; font-weight: 600; }
.shared-page-banner-content h1 { margin: .5rem 0 0; color: #fff; font-family: 'Segoe UI', Arial, sans-serif; font-size: clamp(1.6rem, 3vw, 2.45rem); font-weight: 700; line-height: 1.2; letter-spacing: 0; }

/* Headings */
h1, h2 {
    color: var(--coffee-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--coffee-primary);
    display: inline-block;
}

/* Cards */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    background: white;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 1.5rem;
}

.dashboard-kpi { border: 0; overflow: hidden; }
.ban-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }.ban-page-header h2 { margin-bottom: .25rem; }.ban-page-header p { margin: 0; color: #777; }
.ban-hero { position: relative; min-height: 185px; display: flex; align-items: center; overflow: hidden; margin-bottom: 1.2rem; padding: 2rem 2.25rem; border-radius: 14px; color: #fff; background: #32160b; box-shadow: 0 6px 16px rgba(62,39,35,.13); }.ban-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }.ban-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,13,5,.84), rgba(36,13,5,.2)); }.ban-hero > div { position: relative; z-index: 1; }.ban-hero small { color: #e7b47e; letter-spacing: .08em; }.ban-hero h1 { margin: .5rem 0; color: #fff; font: 700 2.7rem Georgia, serif; }.ban-hero p { margin: 0; font-size: 1.05rem; }
.ban-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }.ban-status-filters { display: flex; flex-wrap: wrap; gap: .55rem; }.ban-status-filters button { padding: .7rem .95rem; border: 1px solid #e4ddd7; border-radius: 10px; color: #555; background: #fff; }.ban-status-filters button.active { border-color: var(--coffee-primary); color: var(--coffee-primary); box-shadow: inset 0 -2px 0 var(--coffee-primary); }.ban-actions { display: flex; align-items: center; gap: .7rem; }.ban-search { display: flex; align-items: center; gap: .5rem; width: 220px; padding: .65rem .8rem; border: 1px solid #e5ddd7; border-radius: 9px; background: #fff; }.ban-search i { color: #777; }.ban-search input { width: 100%; border: 0; outline: 0; }.ban-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; padding: 1rem 1.2rem; border-radius: 12px 12px 0 0; background: #fffaf5; }.ban-section-header h3, .ban-summary h3 { margin: 0; color: #2f211a; font-size: 1.15rem; }.ban-section-header span { color: #888; font-size: .85rem; }.ban-view-switch { display: flex; gap: .3rem; }.ban-view-switch button { border: 1px solid #e6ddd4; padding: .5rem .75rem; border-radius: 8px; color: #765c4c; background: #fff; }.ban-view-switch button.active { color: #fff; background: var(--coffee-primary); }.ban-summary { margin-bottom: 1rem; padding: 1.1rem; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(62,39,35,.07); }.ban-summary h3 { margin-bottom: .85rem; }.ban-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }.ban-summary-grid > div { min-height: 75px; padding: .75rem; border-radius: 10px; }.ban-summary-grid strong, .ban-summary-grid span { display: block; }.ban-summary-grid strong { font-size: 1.35rem; }.ban-summary-grid span { font-size: .75rem; }.summary-empty { color: #267c42; background: #e8f6e9; }.summary-using { color: #a46600; background: #fff2d4; }.summary-booked { color: #2864ae; background: #e5efff; }.summary-other { color: #b7353f; background: #ffe7e7; }.using-row { display: flex; align-items: center; gap: .55rem; padding: .65rem 0; border-top: 1px solid #eee7e0; }.using-row > img { width: 42px; height: 36px; object-fit: contain; }.using-row span { display: flex; flex: 1; flex-direction: column; }.using-row small { color: #888; }.using-row button { border: 0; border-radius: 7px; padding: .45rem .65rem; color: #fff; background: var(--coffee-primary); }
.dashboard-loading { padding: 2rem; color: var(--coffee-primary); }
.dashboard-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -0.25rem 0 1rem; }
.dashboard-search { display: flex; align-items: center; gap: .7rem; width: min(520px, 100%); padding: .7rem 1rem; border-radius: 2rem; background: #fff; color: #888; box-shadow: 0 2px 12px rgba(62,39,35,.08); }
.dashboard-search i { color: #222; font-size: 1.1rem; }
.dashboard-date { display: flex; align-items: center; gap: 1rem; color: #555; }
.dashboard-date > i:first-child { color: var(--coffee-dark); font-size: 1.1rem; }
.dashboard-date span { display: flex; flex-direction: column; text-align: right; font-size: .82rem; }
.dashboard-date strong { color: #222; font-size: 1rem; }
.dashboard-profile { font-size: 2rem; color: var(--coffee-dark); }
.dashboard-hero { position: relative; min-height: 285px; overflow: hidden; display: flex; align-items: center; padding: 2.25rem 2.5rem; border-radius: 14px; color: #fff; background: #2d1208; box-shadow: 0 7px 20px rgba(62,39,35,.16); }
.dashboard-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dashboard-hero::before { content: ""; position: absolute; z-index: 1; top: 1.5rem; left: 2.5rem; width: 390px; height: 48px; border-radius: 8px; background: rgba(38, 14, 5, .82); }
.dashboard-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,10,3,.8), rgba(30,10,3,.2) 70%); pointer-events: none; }
.dashboard-hero-content { position: relative; z-index: 2; max-width: 70%; text-shadow: 0 2px 4px rgba(0,0,0,.45); }
.dashboard-hero-content p { margin: 0 0 .25rem; font-size: 1.35rem; font-style: italic; font-family: Georgia, serif; }
.dashboard-hero-content h1 { margin: 0 0 .5rem; color: #fff; font: 700 clamp(2.3rem, 5vw, 4rem) Georgia, serif; }
.dashboard-hero-content h5 { color: #fff; font-weight: 400; margin-bottom: 1.35rem; }
.dashboard-hero-content em { display: block; margin-top: 1.25rem; color: #fff; font: italic 1.15rem Georgia, serif; }
.dashboard-hero-button { display: inline-flex; gap: .5rem; align-items: center; padding: .75rem 1.5rem; border-radius: 2rem; color: #fff; background: #a85e2d; text-decoration: none; font-weight: 600; }
.dashboard-hero-button:hover { color: #fff; background: #c9793d; }
.dashboard-stat-row { margin-top: 1rem; }
.dashboard-stat { display: flex; align-items: center; gap: 1rem; min-height: 112px; padding: 1.15rem 1.2rem; border: 1px solid rgba(62,39,35,.08); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(62,39,35,.06); }
.dashboard-stat > i { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; color: #fff; font-size: 1.5rem; }
.dashboard-stat div { display: flex; flex-direction: column; min-width: 0; }
.dashboard-stat strong { font-size: 1.45rem; color: #222; }
.dashboard-stat span { color: #72594a; font-size: .9rem; }
.dashboard-stat a { color: var(--coffee-primary); font-size: .8rem; text-decoration: none; margin-top: .3rem; }
.stat-orange > i { background: #f09b31; }.stat-green > i { background: #42ae56; }.stat-purple > i { background: #7465dc; }.stat-red > i { background: #eb5360; }
.dashboard-lower { margin-top: 1rem; }
.dashboard-panel { padding: 1.25rem; border: 1px solid rgba(62,39,35,.08); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(62,39,35,.06); }
.dashboard-panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }.dashboard-panel h3 { margin: 0; color: #222; font-size: 1.1rem; }.dashboard-panel-title span { padding: .3rem .55rem; border: 1px solid #eee; border-radius: 6px; color: #777; font-size: .75rem; }
.best-seller-row { display: flex; align-items: center; gap: .55rem; margin: .8rem 0; }.best-seller-row > b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: #bd713b; font-size: .75rem; }.best-seller-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #8d4a25, #e7a363); font-size: 1.4rem; }.best-seller-name { display: flex; flex-direction: column; min-width: 112px; }.best-seller-name strong { font-size: .86rem; }.best-seller-name small { color: #888; }.best-seller-bar { height: 9px; flex: 1; overflow: hidden; border-radius: 9px; background: #f1e9e3; }.best-seller-bar span { display: block; height: 100%; border-radius: inherit; background: #e59a50; }
.revenue-bars { display: flex; align-items: end; justify-content: space-around; height: 190px; padding: 1rem .4rem 0; border-bottom: 1px solid #eee; background: repeating-linear-gradient(to bottom, transparent 0 45px, #f1ede9 46px 47px); }.revenue-bar-item { display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; gap: .45rem; }.revenue-bar { width: 30px; min-height: 8px; border-radius: 7px 7px 0 0; background: #cf8750; }.revenue-bar-item small { color: #777; font-size: .72rem; }
.dashboard-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }.dashboard-mini-stats > div { display: grid; grid-template-columns: 35px 1fr; column-gap: .55rem; align-items: center; padding: .7rem; border-radius: 9px; background: #faf5ef; }.dashboard-mini-stats i { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #21833b; background: #dff2df; }.dashboard-mini-stats strong { color: #28823c; }.dashboard-mini-stats small { color: #777; }
.quick-actions h3 { margin-bottom: 1rem; }.quick-actions a { display: block; margin-top: .65rem; padding: .7rem .85rem; border-radius: 8px; color: #68442f; background: #f5ece5; text-decoration: none; font-size: .86rem; }.quick-actions a:hover { background: #ead6c5; }.quick-actions .quick-action-primary { color: #fff; background: var(--coffee-primary); }.quick-actions i { margin-right: .35rem; }
.dashboard-quote-image { width: 100%; height: 112px; object-fit: cover; object-position: center; margin-top: 1rem; border-radius: 10px; }
.dashboard-quick-card .card-body { display: flex; flex-direction: column; align-items: center; }
.dashboard-quick-card .card-text { flex: 1 1 auto; width: 100%; margin-bottom: 0; }
.dashboard-quick-button { width: 142px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1.25rem; font-weight: 600; }
.dashboard-kpi .card-body { display: flex; flex-direction: column; gap: .55rem; }
.dashboard-kpi span { color: #666; font-size: .9rem; }
.dashboard-kpi strong { font-size: 1.35rem; color: var(--coffee-dark); }
.kpi-revenue { border-left: 5px solid #198754; }
.kpi-invoice { border-left: 5px solid #0dcaf0; }
.kpi-average { border-left: 5px solid #ffc107; }
.kpi-discount { border-left: 5px solid #a67c52; }
.dashboard-bar-row { display: grid; grid-template-columns: 65px 1fr 130px; gap: .75rem; align-items: center; margin-bottom: .8rem; font-size: .85rem; }
.dashboard-bar-row b { text-align: right; white-space: nowrap; }
.dashboard-bar-track { height: 18px; background: #eee; border-radius: 10px; overflow: hidden; }
.dashboard-bar { height: 100%; min-width: 3px; background: linear-gradient(90deg, var(--coffee-light), var(--coffee-primary)); border-radius: 10px; }
.payment-summary { margin-bottom: 1.1rem; }
.payment-summary > div:first-child { display: flex; justify-content: space-between; margin-bottom: .3rem; }
.bg-coffee { background-color: var(--coffee-primary) !important; }

/* Weekly work-shift board */
.schedule-board { overflow: hidden; background: #fffaf5; }
.schedule-board-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: #f8efe6; }
.schedule-board-toolbar strong { display: block; color: var(--coffee-dark); font-size: 1.1rem; }
.schedule-board-toolbar small { display: block; color: #777; margin-top: .2rem; }
.schedule-legend { display: flex; flex-wrap: wrap; gap: .85rem; color: #555; font-size: .8rem; }
.schedule-dot { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: .25rem; vertical-align: -2px; }
.schedule-grid-wrap { overflow-x: auto; padding: .75rem; }
.schedule-grid { min-width: 850px; display: grid; grid-template-columns: 180px repeat(7, minmax(92px, 1fr)); gap: 4px; }
.schedule-corner, .schedule-day, .schedule-employee, .schedule-cell { min-height: 58px; padding: .5rem; border-radius: 7px; }
.schedule-corner, .schedule-day { background: #f0e5da; text-align: center; color: var(--coffee-dark); }
.schedule-day { display: flex; flex-direction: column; justify-content: center; }
.schedule-day small { color: #777; margin-top: .15rem; }
.schedule-day.schedule-today { background: #ead0b4; }
.schedule-day.schedule-selected { background: #d8ae7d; color: #3d2419; box-shadow: inset 0 -3px 0 #795538; }
.schedule-day.schedule-selected small { color: #5f4637; font-weight: 600; }
.schedule-employee { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #eee0d2; }
.schedule-employee span:last-child { min-width: 0; }
.schedule-employee strong, .schedule-employee small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-employee strong { font-size: .82rem; }
.schedule-employee small { color: #777; font-size: .7rem; margin-top: .15rem; }
.employee-avatar { width: 30px; height: 30px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #dbeafe; color: #2463a8; font-weight: 700; font-size: .72rem; }
.schedule-cell { min-height: 58px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px dashed #ded6cf; }
.schedule-available-list { width: 100%; display: flex; flex-direction: column; gap: .2rem; }
.schedule-action-pill { border: 0; cursor: pointer; }
.schedule-action-pill:hover { filter: brightness(.96); transform: translateY(-1px); }
.schedule-empty { color: #aaa; font-size: 1.3rem; }
.schedule-empty-button { border: 0; background: transparent; cursor: pointer; width: 100%; height: 100%; }
.schedule-empty-button:hover { color: var(--coffee-primary); background: #fff8ef; border-radius: 5px; }
.shift-pill { width: 100%; min-height: 44px; padding: .3rem .35rem; border-radius: 5px; text-align: center; font-size: .72rem; }
.shift-pill strong, .shift-pill small, .shift-pill em { display: block; }
.shift-pill small { font-size: .62rem; margin-top: .1rem; }
.shift-pill em { font-size: .58rem; font-style: normal; margin-top: .1rem; }
.shift-morning { background: #d9f3dc; color: #176b35; }
.shift-afternoon { background: #ffe1c1; color: #9b4d0b; }
.shift-evening { background: #ddd6ff; color: #4431a5; }
.shift-custom { background: #e9ecef; color: #495057; }
.shift-pending { background: #fff0b8; }
.schedule-note { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: .85rem 1.25rem 1rem; color: #666; font-size: .78rem; border-top: 1px solid #eee0d2; }
.schedule-note strong { color: var(--coffee-primary); margin-right: .5rem; }
.schedule-actions { display: flex; justify-content: flex-end; gap: .65rem; padding: .75rem 1.25rem 1rem; }
.custom-picker-trigger { background: #fff; text-align: left; cursor: pointer; }
.custom-picker-backdrop { position: fixed; inset: 0; z-index: 1999; background: rgba(0,0,0,.25); }
.custom-date-time-picker { position: fixed; z-index: 2000; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 2rem)); color: #f8f8ff; border: 1px solid #4b4c70; border-radius: 20px; padding: 1rem; background: linear-gradient(145deg, #17182f, #2c2d4b); box-shadow: 0 18px 45px rgba(0,0,0,.4); }
.picker-input-preview { padding: .5rem .75rem 1rem; color: #b7b9d6; font-size: .9rem; }
.picker-input-preview span { float: right; color: #fff; font-size: 1.2rem; font-weight: 700; }
.picker-content { display: grid; grid-template-columns: 1fr 150px; gap: .8rem; }
.picker-calendar, .picker-time { padding: .8rem; border-radius: 14px; background: rgba(10,11,32,.35); }
.picker-month-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.picker-month-bar button { border: 0; color: #dfe2ff; background: transparent; font-size: 1.5rem; cursor: pointer; }
.picker-weekdays, .picker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; }
.picker-weekdays { color: #9da0bf; font-size: .75rem; margin-bottom: .35rem; }
.picker-days button { border: 0; border-radius: 8px; padding: .5rem 0; color: #f8f8ff; background: transparent; cursor: pointer; }
.picker-days button:hover, .picker-day-selected { background: #5669dc !important; color: #fff !important; }
.picker-day-muted { color: #62647f !important; }
.picker-time { display: flex; flex-direction: column; gap: .45rem; }
.picker-time label { color: #aeb1d0; font-size: .78rem; margin: 0; }
.picker-time select { border: 1px solid #555879; border-radius: 8px; padding: .5rem; color: #fff; background: #242642; }
.picker-time-preview { margin-top: auto; padding: .6rem; border-radius: 8px; text-align: center; color: #fff; background: #596de0; font-weight: 700; }
.picker-footer { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .8rem; }
@media (max-width: 600px) { .picker-content { grid-template-columns: 1fr; } .picker-time { display: grid; grid-template-columns: 1fr 1fr; } .picker-time strong, .picker-time-preview { grid-column: 1 / -1; } }
@media (max-width: 900px) { .schedule-board-toolbar { align-items: flex-start; flex-direction: column; } }

.table-status-legend { display: flex; flex-wrap: wrap; gap: 1rem; color: #666; font-size: .9rem; }
.status-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .25rem; }
.status-empty { background: #198754; }
.status-using { background: #ffc107; }
.status-booked { background: #0dcaf0; }
.table-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.table-card { background: #fff; border: 1.5px solid #adb5bd; border-radius: 12px; padding: 1rem; text-align: center; box-shadow: 0 2px 8px rgba(62, 39, 35, .08); transition: transform .2s, box-shadow .2s; }
.table-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(62, 39, 35, .15); }
.table-card-empty { border-color: #22b65c; }
.table-card-using { border-color: #ffb800; }
.table-card-booked { border-color: #0dcaf0; }
.table-card-other { border-color: #dc3545; }
.table-card-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.table-card-number { color: #777; font-weight: 600; }
.table-visual { width: 120px; height: 82px; margin: 1rem auto .75rem; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 0; background: transparent; box-shadow: none; }
.table-visual img { width: 100%; height: 100%; padding: .35rem; object-fit: contain; }
.table-visual-standard, .table-visual-vip, .table-visual-takeaway { width: 120px; height: 82px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.table-card h5 { margin: 0 0 .75rem; color: var(--coffee-dark); }
.table-card-actions { display: flex; justify-content: center; gap: .4rem; }
.menu-item-image, .menu-item-image-placeholder { width: 54px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; object-fit: cover; background: #f4eadf; color: var(--coffee-primary); font-size: 1.25rem; }
.menu-image-preview { display: flex; align-items: center; gap: .6rem; color: #777; font-size: .8rem; }
.menu-image-preview img { width: 72px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid #e5ddd7; }
.goimon-table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.goimon-table-card { min-height: 190px; padding: 1rem; border: 1.5px solid #adb5bd; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 2px 8px rgba(62, 39, 35, .08); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.goimon-table-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(62, 39, 35, .15); }
.goimon-table-card-empty { border-color: #22b65c; }
.goimon-table-card-using { border-color: #ffb800; }
.goimon-table-card-booked { border-color: #0dcaf0; }
.goimon-table-card-other { border-color: #dc3545; }
.goimon-table-card-takeaway { border-color: #0dcaf0; }
.goimon-table-card.disabled { cursor: not-allowed; opacity: .65; }
.goimon-table-card-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.goimon-table-number { color: #777; font-weight: 600; }
.goimon-table-visual { width: 120px; height: 82px; margin: 1rem auto .75rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.goimon-table-visual img { width: 100%; height: 100%; padding: .35rem; object-fit: contain; }
.goimon-table-card h5 { margin: 0; color: var(--coffee-dark); }

.card-header {
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.card-header.bg-coffee {
    background: var(--coffee-primary);
    color: white;
    border-bottom: none;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--coffee-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--coffee-dark);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-light {
    background: white;
    color: var(--coffee-dark);
    border: 2px solid var(--coffee-primary);
}

.btn-light:hover {
    background: var(--coffee-primary);
    color: white;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

/* Button Add - xuống dòng và căn trái */
.btn.btn-primary.mb-3 {
    display: block;
    width: auto;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

/* Tables */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--coffee-primary);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background: #fafafa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-primary {
    background-color: #007bff !important;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    border-left: 4px solid;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.6rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--coffee-primary);
    box-shadow: 0 0 0 0.2rem rgba(111, 78, 55, 0.15);
}

label {
    font-weight: 600;
    color: var(--coffee-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Modal */
.modal.show {
    display: block;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--bg-color);
    border-bottom: 1px solid #dee2e6;
    padding: 1.2rem 1.5rem;
}

.modal-header.bg-coffee {
    background: var(--coffee-primary);
    color: white;
}

.modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-top: 1px solid #dee2e6;
}

/* Home Page Cards */
.card.text-white.bg-primary {
    background: #667eea !important;
    border: none;
}

.card.text-white.bg-success {
    background: #28a745 !important;
    border: none;
}

.card.text-white.bg-warning {
    background: #ffc107 !important;
    border: none;
    color: #000 !important;
}

.card.text-white.bg-info {
    background: #17a2b8 !important;
    border: none;
}

.card.h-100 {
    height: 100%;
}

/* Statistics Cards */
.shadow-coffee {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-coffee .card-body h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.shadow-coffee .card-body h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

/* Ban Cards */
.ban-card {
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 130px;
}

.ban-card:hover {
    border-color: var(--coffee-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ban-card.selected {
    border: 3px solid var(--coffee-primary);
    background: #fffbf5;
}

.ban-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
}

.ban-card.disabled:hover {
    border-color: #e0e0e0;
    box-shadow: none;
}

/* Text Colors */
.text-coffee {
    color: var(--coffee-primary);
}

.text-success {
    color: #28a745 !important;
}

/* Utilities */
.bg-coffee {
    background: var(--coffee-primary);
}

/* Error UI */
#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Loading */
p em {
    color: #666;
    font-style: normal;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--coffee-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coffee-primary);
}

/* Close Button */
.btn-close-white {
    filter: brightness(0) invert(1);
}

/* Tab Navigation */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--coffee-secondary);
    color: var(--coffee-primary);
}

.nav-tabs .nav-link.active {
    color: var(--coffee-primary);
    border-bottom-color: var(--coffee-primary);
    background: transparent;
}

/* Payment Method Cards */
.payment-method-card {
    transition: all 0.3s ease;
    height: 100%;
}
.payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.payment-method-card.selected {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(101, 67, 33, 0.1) 100%);
}

.invoice-print-area {
    background: #fff;
    color: #111;
    padding: 1.5rem;
}

.invoice-table th,
.invoice-table td {
    border-color: #999;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    #invoice-print-area,
    #invoice-print-area * {
        visibility: visible !important;
    }

    #invoice-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
    }

    .invoice-preview-actions,
    .modal-header,
    .modal-footer {
        display: none !important;
    }
}

/* Responsive - chỉ cần thiết */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .content {
        padding: 1rem;
    }
}

/* Keep the layout usable at narrow widths and browser zoom levels. */
.page-login .content { padding: 0 !important; }
.login-page { min-height: 100vh; padding: 1rem; }
.login-card { width: min(420px, 100%); }
img { max-width: 100%; }
@media (max-width: 768px) {
    .page { display: block; }
    .sidebar { display: flex; position: static; width: auto; margin: .75rem; max-width: 100%; }
    .sidebar .navbar-brand { padding: .8rem 1rem; font-size: 1.05rem; text-align: left; }
    .sidebar .nav-scrollable { padding: .4rem; overflow-x: auto; }
    .sidebar .nav-scrollable nav { display: flex; flex-direction: row !important; width: max-content; }
    .sidebar .nav-item { padding: 0 .2rem; }
    .sidebar .nav-link { white-space: nowrap; padding: .65rem .8rem; margin: 0; }
    .sidebar-account { display: flex; width: max-content; align-items: center; }
    .content { padding: 1rem !important; }
    .ban-toolbar, .ban-actions { flex-wrap: wrap; }
    .ban-search { max-width: 100%; }
    .dashboard-hero { padding: 1.5rem; }
    .dashboard-hero-content { max-width: 100%; }
    .dashboard-hero::before { max-width: calc(100% - 3rem); left: 1.5rem; }
    .shared-page-banner-content h1, .ban-hero h1 { font-size: 1.75rem; }
}
