/* Font được đóng gói trong dự án để hiển thị tiếng Việt ngay cả khi offline. */
@font-face { font-family: "Moc Sans"; src: url("fonts/NotoSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Moc Sans"; src: url("fonts/NotoSans-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Moc Serif"; src: url("fonts/NotoSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Moc Serif"; src: url("fonts/NotoSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Moc Serif"; src: url("fonts/NotoSerif-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
/* Mộc Coffee — CSS dùng chung cho tất cả các trang. */
:root {
  --ink: #2f241d; --coffee: #654321; --coffee-dark: #402a1b;
  --cream: #f7f1e8; --paper: #fffdf9; --sand: #e9dac6;
  --gold: #ae794d; --muted: #76695e; --line: #ded3c5;
  --green: #3f6d4c; --red: #a43f32; --shadow: 0 8px 28px #48301912;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Moc Sans", Arial, sans-serif; font-size: 16px; color: var(--ink); background: var(--cream); line-height: 1.55; }
body, button, input, textarea, select { font-family: "Moc Sans", Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #bd9568; outline-offset: 3px; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.top-strip { background: var(--coffee-dark); color: #f6e8d4; font-size: 12px; font-weight: bold; letter-spacing: .07em; padding: 8px 0; }
.top-inner { display: flex; justify-content: space-between; gap: 16px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.nav-wrap { display: flex; align-items: center; gap: 24px; min-height: 83px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--coffee); border-radius: 50% 50% 8px 8px; font-family: "Moc Serif", "Times New Roman", serif; color: var(--coffee); font-size: 29px; font-weight: bold; }
.brand strong { font-size: 27px; letter-spacing: .02em; font-family: "Moc Serif", "Times New Roman", serif; color: var(--coffee-dark); }
.brand-dot { color: var(--gold); }
.brand small { display: block; font-size: 10px; letter-spacing: .19em; color: var(--muted); margin-top: 6px; }
.nav-links { flex: 1; display: flex; gap: 19px; align-items: center; justify-content: center; }
.nav-links a { font-size: 14px; white-space: nowrap; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--coffee); color: var(--coffee); font-weight: bold; }
.cart-badge { display: inline-flex; vertical-align: middle; background: var(--coffee); color: white; border-radius: 99px; min-width: 19px; padding: 1px 5px; justify-content: center; font-size: 12px; }
.nav-account { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.greeting { font-size: 13px; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: 8px; border-radius: 5px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 20px; background: var(--coffee); color: white; border: 1px solid var(--coffee); border-radius: 6px; font-size: 15px; font-weight: bold; transition: .15s; text-align: center; }
.btn:hover { background: var(--coffee-dark); border-color: var(--coffee-dark); }
.btn.outline { background: transparent; color: var(--coffee); }
.btn.outline:hover { background: var(--sand); }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.block { width: 100%; }
.eyebrow { display: block; font-size: 12px; font-weight: bold; letter-spacing: .17em; color: var(--coffee); margin-bottom: 10px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Moc Serif", "Times New Roman", serif; line-height: 1.12; font-weight: normal; }
h1 { font-size: clamp(40px, 5vw, 70px); letter-spacing: -.015em; margin-bottom: 20px; }
h2 { font-size: clamp(27px, 3vw, 38px); margin-bottom: 13px; }
h3 { font-size: 17px; margin-bottom: 7px; }
p { margin-bottom: 16px; }
.muted { color: var(--muted); }
.text-link { color: var(--coffee); font-weight: bold; border-bottom: 1px solid var(--coffee); white-space: nowrap; }
.hero { padding: 58px 0; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-copy p { max-width: 540px; color: var(--muted); font-size: 18px; }
.hero h1 em { color: var(--coffee); font-weight: normal; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 29px 0; }
.hero-tags { display: flex; gap: 25px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 14px; }
.hero-tags b { display: block; font-size: 20px; color: var(--coffee-dark); }
.hero-art { background: #684b35; position: relative; border-radius: 4px 80px 4px 4px; min-height: 410px; overflow: hidden; color: #f0dfc7; display: grid; place-items: center; }
.art-top, .art-bottom { position: absolute; display: flex; justify-content: space-between; left: 22px; right: 22px; font-size: 11px; letter-spacing: .12em; z-index: 4; }
.art-top { top: 22px; }.art-bottom { bottom: 22px; }
.art-circle { position: absolute; width: 285px; height: 285px; border: 1px solid #a58a6b; border-radius: 50%; background: #8b654d; box-shadow: 0 0 0 18px #78543d; }
.cup { position: absolute; width: 170px; height: 125px; top: 48%; border-radius: 7px 7px 60px 60px; background: #ead6b8; display: grid; place-items: center; color: #654321; z-index: 2; box-shadow: inset 0 12px 0 #503725, 0 8px 14px #2d1b1440; }
.cup::after { content: ""; position: absolute; right: -49px; top: 20px; width: 52px; height: 68px; border: 13px solid #ead6b8; border-left: 0; border-radius: 0 30px 35px 0; }
.cup span { font-family: "Moc Serif", "Times New Roman", serif; font-weight: bold; font-size: 29px; letter-spacing: .04em; }
.saucer { position: absolute; top: calc(48% + 110px); width: 246px; height: 28px; background: #c9a77b; border-radius: 50%; box-shadow: 0 10px 14px #2d1b1460; }
.steam { display: flex; position: absolute; gap: 18px; top: 25%; }
.steam i { display: block; width: 10px; height: 70px; border-left: 2px solid #f3dabb99; border-radius: 50%; transform: rotate(13deg); }
.steam i:nth-child(2) { margin-top: -14px; height: 84px; }
.service-strip { border-block: 1px solid var(--line); background: var(--paper); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); }
.services > div { display: flex; gap: 16px; align-items: center; padding: 25px 16px; border-right: 1px solid var(--line); }
.services > div:last-child { border: none; }.services > div > span { font-family: "Moc Serif", "Times New Roman", serif; font-size: 27px; color: var(--gold); }.services strong, .services small { display: block; }.services small { color: var(--muted); margin-top: 2px; }
.section { padding-top: 50px; padding-bottom: 50px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.section-head p, .section-head h2 { margin-bottom: 5px; }.section-head p { color: var(--muted); }
.section-head.compact { align-items: center; margin-bottom: 17px; }.section-head.compact h2 { margin: 0; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-art { min-height: 142px; background: #dbc4ab; color: #5c402d; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 17px; position: relative; overflow: hidden; }
.product-art.tea { background: #e6d9b2; color: #6d5933; }.product-art.other { background: #d6ddc2; color: #4b5b3d; }
.product-art .art-number { font-size: 12px; letter-spacing: .15em; }
.product-art .product-word { align-self: center; font-family: "Moc Serif", "Times New Roman", serif; font-size: 32px; font-style: italic; border-bottom: 1px solid currentColor; padding: 2px 14px 7px; z-index: 1; }
.product-art .art-category { font-size: 11px; font-weight: bold; letter-spacing: .12em; align-self: end; }
.product-body { padding: 18px; display: flex; flex: 1; flex-direction: column; }
.product h3 { font-family: "Moc Serif", "Times New Roman", serif; font-size: 21px; font-weight: normal; }.product p { font-size: 14px; color: var(--muted); min-height: 44px; margin-bottom: 15px; }
.price { color: var(--coffee); font-size: 19px; font-weight: bold; margin-bottom: 13px; }.product .btn { margin-top: auto; width: 100%; }
.story { background: #eee3d5; }.story-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 50px; align-items: center; }.story-panel { background: var(--coffee-dark); padding: 32px; color: #fff5e6; border-radius: 5px 50px 5px 5px; }.story-panel span { font-size: 13px; letter-spacing: .12em; color: #e7cab0; }.story-panel h3 { font-family: "Moc Serif", "Times New Roman", serif; font-size: 32px; font-weight: normal; line-height: 1.15; margin: 20px 0; }.story-panel p { margin-bottom: 0; }
.page-banner { background: #e8dac8; border-bottom: 1px solid var(--line); padding: 38px 0; }.page-banner h1 { font-size: 48px; margin-bottom: 8px; }.page-banner p { margin: 0; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 16px; }.filters { display: flex; gap: 9px; flex-wrap: wrap; }.filter { border: 1px solid var(--line); border-radius: 30px; background: var(--paper); padding: 10px 17px; color: var(--ink); font-size: 14px; }.filter.active { background: var(--coffee); color: white; border-color: var(--coffee); }.search { width: min(260px, 100%); }.result-count { font-size: 14px; color: var(--muted); margin-bottom: 16px; }.bottom-action { margin-top: 30px; text-align: center; }
.two-col { display: grid; gap: 25px; grid-template-columns: 1.6fr 1fr; align-items: start; }.contact-layout { grid-template-columns: 1fr 1fr; }
.panel { background: var(--paper); border: 1px solid var(--line); padding: 26px; border-radius: 10px; box-shadow: var(--shadow); min-width: 0; }.panel h2 { font-size: 30px; }.panel + .panel { margin-top: 20px; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 15px 0; }.cart-item h3 { margin: 0; }.cart-item small { color: var(--muted); }.cart-item .item-total { text-align: right; min-width: 85px; }.qty { display: flex; align-items: center; gap: 10px; }.qty button { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; width: 30px; height: 30px; font-size: 19px; }.remove { display: block; border: none; background: none; color: var(--red); padding: 3px 0; font-size: 13px; text-decoration: underline; margin-left: auto; }
.summary { position: sticky; top: 20px; }.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }.sum-total { color: var(--coffee); font-size: 18px; border: 0; margin: 6px 0 14px; }.summary p { font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }.form-grid .full { grid-column: 1 / -1; }
label, legend { color: var(--ink); font-size: 15px; font-weight: bold; }
label > span { color: var(--red); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #cabeaf; border-radius: 5px; background: #fff; font-size: 16px; color: var(--ink); }
input:not([type="radio"]):not([type="checkbox"]):focus, select:focus, textarea:focus { border-color: var(--coffee); }
textarea { resize: vertical; min-height: 80px; }
fieldset { border: 0; padding: 0; margin: 0; }legend { padding: 0; margin-bottom: 5px; }.choices { display: flex; flex-wrap: wrap; gap: 15px; }.choices label, .choice { font-weight: normal; display: flex; align-items: center; gap: 5px; }.choices input, .choice input { accent-color: var(--coffee); }
.feedback { padding: 11px 12px; background: #f9e7e1; border: 1px solid #e4b3a7; border-radius: 5px; color: #7c251e; margin: 0; font-size: 14px; }.feedback.success { background: #e9f2e7; border-color: #c5dabc; color: #315b3c; }
.auth-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; align-items: start; }.auth-side { padding: 40px 0; }.auth-side h1 { font-size: 55px; }.auth-side p { color: var(--muted); max-width: 450px; }.auth-note { background: #eee2d0; padding: 22px; border-left: 4px solid var(--coffee); border-radius: 4px; max-width: 430px; }.auth-note p { margin: 10px 0; }.auth-note small { font-size: 13px; }.auth-form { max-width: 540px; width: 100%; }.auth-form h2 { font-size: 35px; }.auth-link { margin: 20px 0 0; text-align: center; }.auth-link a { color: var(--coffee); font-weight: bold; text-decoration: underline; }
.empty { padding: 35px 12px; text-align: center; color: var(--muted); }.empty h3 { font-size: 22px; color: var(--ink); }.empty .btn { margin-top: 8px; }
.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-bottom: 15px; }.order-card .order-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.order-meta { color: var(--muted); font-size: 14px; }.order-lines { border-block: 1px solid var(--line); margin: 15px 0; padding: 10px 0; }.order-line { display: flex; justify-content: space-between; padding: 4px 0; gap: 10px; }.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }.status { display: inline-block; background: #f0dcaf; color: #735326; border-radius: 20px; padding: 5px 10px; font-size: 13px; font-weight: bold; white-space: nowrap; }.status.done { background: #e2ebdc; color: #385c35; }.status.cancelled { background: #f4e1d9; color: #873b35; }.status.preparing { background: #dce9ee; color: #35596a; }
.info-line { border-top: 1px solid var(--line); padding: 16px 0; }.info-line p { margin: 4px 0 0; color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }.stat small { color: var(--muted); }.stat strong { font-family: "Moc Serif", "Times New Roman", serif; display: block; font-size: 28px; color: var(--coffee); margin-top: 6px; }.admin-section { margin-top: 20px; }.table-wrap { overflow: auto; }table { border-collapse: collapse; width: 100%; min-width: 650px; font-size: 14px; }th { background: #eee3d5; text-align: left; }th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: middle; }td select { min-width: 130px; margin: 0; font-size: 14px; padding: 6px; }.message-item { border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }.message-item p { white-space: pre-wrap; }dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); max-width: 520px; width: calc(100% - 30px); max-height: 90vh; padding: 25px; }dialog::backdrop { background: #2d1c1499; }
.site-footer { background: var(--coffee-dark); color: #ede0d0; padding: 36px 0 15px; }.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; }.footer-grid p, .footer-grid a { font-size: 14px; color: #dfcdb9; }.footer-grid > div > a:not(.brand) { display: block; margin: 6px 0; }.footer-brand { margin-bottom: 16px; }.footer-brand .brand-mark, .footer-brand strong, .footer-brand small { color: #ead6bc; border-color: #ead6bc; }.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #795d46; padding-top: 15px; font-size: 12px; gap: 16px; }.site-footer .muted { color: #d1bda7; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--coffee-dark); color: white; padding: 14px 19px; max-width: calc(100% - 48px); border-radius: 6px; z-index: 30; box-shadow: 0 5px 20px #231b1550; }
@media (max-width: 1040px) { .nav-wrap { gap: 15px; }.nav-links { gap: 12px; }.nav-links a { font-size: 13px; }.greeting { display: none; }.products { grid-template-columns: repeat(3, 1fr); }.hero-grid { gap: 30px; } }
@media (max-width: 790px) { .container { width: calc(100% - 32px); }.top-inner > span:last-child { display: none; }.nav-wrap { flex-wrap: wrap; padding: 12px 0; min-height: 0; }.nav-toggle { display: block; margin-left: auto; }.nav-links { display: none; flex: 0 0 100%; order: 5; flex-wrap: wrap; justify-content: start; }.nav-links.open { display: flex; }.nav-account { margin-left: 0; }.hero-grid, .story-grid, .two-col, .auth-section { grid-template-columns: 1fr; gap: 24px; }.hero { padding: 36px 0; }.hero-art { min-height: 320px; }.hero-tags { gap: 14px; }.products { grid-template-columns: repeat(2,1fr); }.services { grid-template-columns: 1fr; }.services > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }.summary { position: static; }.auth-side { padding: 0; }.auth-section { padding: 35px 0; }.auth-side h1 { font-size: 42px; }.auth-form { max-width: none; }.admin-stats { grid-template-columns: repeat(2,1fr); }.footer-grid { grid-template-columns: 1fr 1fr; }.footer-grid > div:first-child { grid-column: 1/-1; }.section { padding-block: 32px; } }
@media (max-width: 420px) { .products { grid-template-columns: 1fr; }.toolbar, .section-head { flex-wrap: wrap; }.form-grid { grid-template-columns: 1fr; }.panel { padding: 17px; }.cart-item { grid-template-columns: 1fr auto; }.cart-item .item-total { grid-column: 1/-1; text-align: left; }.remove { margin-left: 0; }.hero h1 { font-size: 39px; }.section-head .text-link { white-space: normal; }.top-strip { font-size: 10px; }.nav-account .btn { font-size: 12px; padding: 8px; } }

/* Ảnh đồ uống đồng bộ, tự co theo kích thước thẻ món. */
.product-photo { position: relative; aspect-ratio: 4 / 3; background: #dbc4ab; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-category { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 20px; background: #fffdf3ed; color: #654321; font-size: 12px; font-weight: bold; }
.product-art { aspect-ratio: 4 / 3; }

/* Trang quản trị thống kê – đồng bộ nhận diện nâu kem của Mộc. */
.dashboard { padding-block: 35px 50px; }
.dashboard-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.dashboard-heading h1 { font-size:clamp(32px,4vw,44px); margin:5px 0; }
.dashboard-heading p, .chart-heading p { color:var(--muted); margin:5px 0 0; font-size:14px; }
.dashboard-heading .actions { display:flex; gap:10px; flex-wrap:wrap; }
.admin-nav { display:flex; gap:6px; flex-wrap:wrap; padding:6px; background:#ebdfd0; border:1px solid var(--line); border-radius:9px; margin-bottom:22px; }
.admin-nav a { padding:10px 14px; border-radius:6px; color:var(--coffee); font-weight:bold; font-size:14px; }
.admin-nav a.selected { background:var(--paper); box-shadow:0 1px 5px #65432120; color:var(--coffee-dark); }
.admin-nav a:hover { background:#fff9f1; }
.report-controls { padding:18px 22px; margin-bottom:18px; }
.report-filter { display:grid; grid-template-columns:1.2fr 1fr 1fr auto; gap:12px; align-items:end; }
.report-filter label { font-size:14px; }
.report-filter input,.report-filter select { margin-top:5px!important; min-height:46px; }
.report-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px; font-size:14px; color:var(--muted); }
.report-controls .feedback { margin-top:10px; }
.kpi-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.kpi { border:1px solid var(--line); background:var(--paper); padding:18px 20px; border-radius:10px; min-width:0; border-top:3px solid #b3987a; }
.kpi span { display:block; font-size:14px; color:var(--muted); font-weight:bold; }
.kpi strong { display:block; font-size:clamp(20px,2.7vw,30px); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; line-height:1.4; color:var(--coffee); margin:4px 0; }
.kpi small { display:block; color:var(--muted); font-size:13px; }
.kpi.positive { border-top-color:#628366; }.kpi.positive strong { color:var(--green); }
.kpi.negative { border-top-color:#c08c7d; }.kpi.negative strong { color:var(--red); }
.report-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:18px; align-items:stretch; margin:18px 0; }
.report-grid .panel { margin:0; padding:21px; }
.chart-heading { display:flex; justify-content:space-between; gap:8px; align-items:start; margin-bottom:18px; }
.chart-heading h2, .records-panel h2 { font-family:"Moc Sans",Arial,sans-serif; font-weight:bold; font-size:20px; line-height:1.3; margin:0; }
.report-pill { border:1px solid var(--line); border-radius:18px; color:var(--coffee); font-size:12px; white-space:nowrap; padding:4px 9px; }
.chart-legend { display:flex; gap:18px; margin-bottom:15px; font-size:13px; }
.chart-legend span,.status-legend span { display:flex; align-items:center; gap:7px; }
.swatch { display:inline-block; width:11px; height:11px; flex:0 0 11px; border-radius:3px; }
.income-swatch { background:#628366; }.expense-swatch { background:#c08c7d; }
.chart-scroll { overflow-x:auto; padding-bottom:3px; }
.bar-chart { display:grid; grid-template-columns:49px minmax(0,1fr); grid-template-rows:182px auto; gap:6px 5px; }
.bar-axis { grid-column:1; grid-row:1; display:flex; flex-direction:column; justify-content:space-between; font-size:11px; color:var(--muted); text-align:right; }
.plot-area { grid-column:2; grid-row:1; position:relative; display:grid; grid-template-columns:repeat(var(--columns),minmax(0,1fr)); column-gap:6px; padding:0 4px; border-bottom:1px solid var(--line); }
.plot-grid { position:absolute; inset:0; background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#e5dbcf calc(25% - 1px),#e5dbcf 25%); pointer-events:none; }
.bar-group { position:relative; display:flex; justify-content:center; align-items:end; min-width:0; }
.bar-pair { width:100%; height:100%; max-width:58px; display:flex; gap:3px; align-items:flex-end; }
.chart-bar { flex:1; border-radius:4px 4px 0 0; min-width:0; }
.income-bar { background:#628366; }.expense-bar { background:#c08c7d; }
.bar-labels { grid-column:2; grid-row:2; display:grid; grid-template-columns:repeat(var(--columns),minmax(0,1fr)); gap:6px; padding:0 4px; text-align:center; font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.donut-wrap { display:flex; justify-content:center; margin:12px 0 21px; }
.donut { width:165px; height:165px; border-radius:50%; display:grid; place-items:center; }
.donut>div { background:var(--paper); width:116px; height:116px; border-radius:50%; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.donut strong { font-size:31px; line-height:1.2; }.donut small { color:var(--muted); font-size:12px; }
.status-legend { display:grid; gap:8px; font-size:13px; }
.status-legend>div { display:grid; grid-template-columns:1fr 28px 42px; gap:8px; align-items:center; }
.status-legend b,.status-legend small { text-align:right; }.status-legend small { color:var(--muted); }
.product-bar-row { margin:0 0 14px; }.product-bar-row:last-child { margin:0; }
.product-bar-row>div:first-child { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:5px; font-size:14px; }.product-bar-row span { color:var(--muted); }
.product-bar-track { height:11px; background:#eee5d8; border-radius:8px; overflow:hidden; }.product-bar-track>div { height:100%; background:#ad8055; border-radius:8px; }
.customer-summary>div { padding:12px 0; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; }.customer-summary b { color:var(--coffee); font-size:21px; }
.records-panel { margin-top:22px; scroll-margin-top:20px; }.records-panel .section-head { flex-wrap:wrap; }.records-panel h2 { margin-top:4px; }
.record-tabs { display:flex; gap:7px; flex-wrap:wrap; margin:16px 0 10px; }.record-tabs .filter { font-size:13px; padding:8px 12px; }
#record-description { font-size:14px; }.report-table { min-width:720px; }.report-table .numeric { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.report-table tr:nth-child(even) td { background:#fbf7ef; }.report-note { font-size:13px; margin:14px 0 0; }.chart-empty { font-size:14px; color:var(--muted); text-align:center; margin:12px 0; }
#cash-dialog { max-width:560px; }.dashboard .filter { cursor:pointer; }
@media(max-width:900px){.report-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }.report-grid{grid-template-columns:1fr 1fr}.dashboard-heading{flex-wrap:wrap}}
@media(max-width:700px){.report-grid{grid-template-columns:1fr;}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.dashboard .panel{padding:16px;}.kpi{padding:14px;}.dashboard-heading h1{font-size:34px;}.bar-chart{grid-template-rows:170px auto;}}
@media(max-width:400px){.report-filter{grid-template-columns:1fr;}.kpi-grid{grid-template-columns:1fr;}.dashboard-heading .actions{width:100%;}.dashboard-heading .actions>*{flex:1;}}
