.demo-app { --demo-ink: #151a2b; --demo-paper: #f6f7fb; --demo-lime: #eaedff; --demo-line: #dfe3ed; color: var(--demo-ink); font: inherit; }
.demo-app *, .demo-app *::before, .demo-app *::after { box-sizing: border-box; }
.demo-app h2 { margin: 0 0 16px; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -.025em; }
.demo-app p { line-height: 1.65; }
.demo-notice { padding: clamp(22px, 4vw, 38px); margin-bottom: 24px; border: 1px solid var(--demo-line); border-radius: 20px; background: var(--demo-paper); }
.demo-notice p { max-width: 82ch; margin: 0; }
.demo-badge { display: inline-block; padding: 6px 10px; margin-bottom: 18px; border: 1px solid #bbd94f; border-radius: 999px; background: var(--demo-lime); font-size: .7rem; letter-spacing: .08em; font-weight: 800; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.demo-card { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--demo-line); border-radius: 20px; background: #fff; }
.demo-form { display: grid; gap: 18px; }
.demo-form h2 { margin-bottom: 0; }
.demo-field { display: grid; gap: 7px; min-width: 0; }
.demo-field label { font-size: .985rem; font-weight: 700; }
.demo-app input, .demo-app select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #a8ada0; border-radius: 12px; background: #fff; color: var(--demo-ink); font: inherit; }
.demo-app input:focus-visible, .demo-app select:focus-visible, .demo-button:focus-visible { outline: 3px solid #76971e; outline-offset: 3px; }
.demo-app input:disabled, .demo-app select:disabled { opacity: .6; }
.demo-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 8px; padding: 10px 16px; border: 1px solid #a8ada0; border-radius: 12px; background: var(--demo-paper); color: var(--demo-ink); font: inherit; font-size: 1.005rem; font-weight: 700; line-height: 1.3; cursor: pointer; text-align: center; }
.demo-button:hover { border-color: var(--demo-ink); background: #e9ecdf; }
.demo-button-primary { border-color: var(--demo-ink); background: var(--demo-ink); color: var(--demo-lime); }
.demo-button-primary:hover { background: #373b31; }
.demo-button-small { min-height: 40px; padding: 8px 12px; font-size: .905rem; }
.demo-button:disabled { opacity: .5; cursor: not-allowed; }
.demo-help { margin: 0; color: #51574c; font-size: .915rem; line-height: 1.55; }
.demo-status { min-height: 1.55em; margin: 0; font-size: .965rem; line-height: 1.55; overflow-wrap: anywhere; }
.demo-status[data-state="error"] { color: #a52c1b; }
.demo-status[data-state="success"] { color: #395817; }
.demo-section-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.demo-section-heading h2 { margin: 0; }
.demo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.demo-booking-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.demo-booking-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--demo-line); border-radius: 14px; background: var(--demo-paper); }
.demo-booking-item strong { display: block; margin-bottom: 4px; font-size: 1.065rem; }
.demo-booking-item span { display: block; font-size: .925rem; line-height: 1.5; }
.demo-footnote { max-width: 90ch; margin: 20px 0 0; color: #51574c; font-size: .955rem; }
.demo-table-scroll { min-width: 0; overflow-x: auto; border: 1px solid var(--demo-line); border-radius: 12px; }
.demo-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .945rem; }
.demo-table th { background: var(--demo-paper); color: #51574c; font-size: .845rem; font-weight: 700; letter-spacing: .025em; }
.demo-table th, .demo-table td { padding: 13px 14px; border-bottom: 1px solid var(--demo-line); vertical-align: middle; }
.demo-table tbody tr:last-child td { border-bottom: 0; }
.demo-table th:last-child, .demo-table td:last-child { white-space: nowrap; }
.demo-table td { line-height: 1.5; }
.demo-quote-table { min-width: 620px; }
.demo-quote-table th:first-child { width: 40%; }
.demo-quote-table th:nth-child(2) { width: 100px; }
.demo-quote-table th:nth-child(3) { width: 145px; }
.demo-quote-table input { min-height: 42px; padding: 8px; border-radius: 8px; font-size: .965rem; }
.demo-quote-table td:nth-child(4) { min-width: 118px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-quote-bottom { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 1fr); gap: 32px; align-items: start; }
.demo-summary { display: grid; gap: 14px; margin: 0; padding: 20px; border-radius: 14px; background: var(--demo-paper); }
.demo-summary div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.demo-summary dt { font-size: .975rem; }
.demo-summary dd { margin: 0; font-weight: 800; font-size: 1.175rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-summary div:last-child { border-top: 1px solid var(--demo-line); padding-top: 14px; }
.demo-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 14px; margin-bottom: 16px; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 24px; }
.demo-metric { display: grid; gap: 13px; padding: 24px; border: 1px solid var(--demo-line); border-radius: 16px; background: #fff; }
.demo-metric span { font-size: .925rem; color: #51574c; }
.demo-metric strong { font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.demo-metric small { font-size: .845rem; line-height: 1.5; }
.demo-metric-accent { background: var(--demo-lime); border-color: #bbd94f; }
.demo-sales-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.demo-sales-grid .demo-table { min-width: 560px; }
.demo-sales-grid .demo-help { margin-bottom: 16px; }
.demo-bars { display: grid; gap: 22px; padding: 0; margin: 24px 0 0; list-style: none; }
.demo-bar-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .925rem; }
.demo-bar-label strong { white-space: nowrap; font-size: .925rem; font-variant-numeric: tabular-nums; }
.demo-bar-track { height: 10px; border-radius: 999px; background: #e8ebdf; overflow: hidden; }
.demo-bar-fill { height: 100%; min-width: 0; border-radius: inherit; background: #20221f; }
.demo-type { display: inline-flex; padding: 4px 8px; border-radius: 8px; font-size: .815rem; font-weight: 700; background: #edf4d7; }
.demo-type-expense { background: #f2e9df; }
.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 980px) { .demo-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo-filters .demo-button { justify-self: start; } .demo-sales-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .demo-grid, .demo-quote-bottom, .demo-metrics { grid-template-columns: 1fr; } .demo-grid { gap: 16px; } .demo-metrics { gap: 10px; } .demo-metric { padding: 20px; gap: 8px; } .demo-notice { margin-bottom: 16px; } .demo-booking-item { align-items: start; flex-wrap: wrap; } .demo-summary { padding: 16px; } .demo-summary dd { font-size: 1.075rem; } .demo-filters { padding: 18px; gap: 12px; } }
@media (max-width: 380px) { .demo-filters { grid-template-columns: 1fr; } .demo-summary div { flex-wrap: wrap; gap: 5px; } }
@media print { .demo-no-print, .demo-app[data-demo="quote"] .demo-notice { display: none !important; } .demo-app .demo-card { padding: 0; border: 0; } .demo-app .demo-table-scroll { overflow: visible; } .demo-app .demo-quote-table { min-width: 0; } .demo-app .demo-quote-table input { padding: 2px; border: 0; background: transparent; } .demo-app .demo-quote-bottom { margin-top: 20px; } .demo-app .demo-field input { border: 0; padding-left: 0; } .demo-app .demo-footnote { color: #20221f; } }
