
:root { --ink:#1d211f; --muted:#727874; --line:#e6e9e7; --nav:#171a18; --green:#174b3b; --green-deep:#0d3529; --green-soft:#e7f0ec; --blue:#4387ef; --amber:#c78a27; --surface:#fff; --page:#f7f8f7; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--page); font:14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:250px 1fr; }
.sidebar { background:var(--nav); color:#cbd0dc; padding:28px 16px; display:flex; flex-direction:column; }
.brand { display:flex; align-items:center; gap:12px; padding:0 10px 30px; font-weight:700; color:white; }
.brand span { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:var(--green); font-size:12px; }
.brand small { display:block; color:#9299a9; font-weight:500; font-size:11px; }
nav { display:grid; gap:4px; }
.nav-item { border:0; background:transparent; padding:11px 12px; border-radius:8px; color:#cbd0dc; text-align:left; cursor:pointer; font:inherit; }
.nav-item:hover,.nav-item.active { color:white; background:#343842; }
.nav-item.active { box-shadow:inset 3px 0 #78a996; }
.sidebar-note { margin:auto 10px 0; color:#8d94a3; font-size:12px; }
main { max-width:1280px; width:100%; margin:0 auto; padding:34px 44px 56px; }
header,.scope-heading,.panel-header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
h1,h2,h3,p { margin:0; } h1 { font-size:29px; letter-spacing:-.6px; } h2 { font-size:21px; letter-spacing:-.3px; } h3 { font-size:15px; }
.eyebrow { color:var(--muted); letter-spacing:.1em; font-size:11px; font-weight:700; }
.period { border:1px solid var(--line); background:white; padding:9px 13px; border-radius:8px; color:var(--ink); font:inherit; }
.scope-switcher { display:flex; gap:4px; width:max-content; margin:30px 0 26px; padding:4px; border:1px solid var(--line); background:white; border-radius:10px; }
.scope-switcher button { border:0; background:transparent; border-radius:7px; padding:9px 14px; color:var(--muted); font-size:12px; font-weight:700; cursor:pointer; }
.scope-switcher button.active { background:var(--green-soft); color:var(--green-deep); }
.scope-heading { margin-bottom:18px; }.scope-heading p,.panel p { margin-top:3px; color:var(--muted); }.status,.tag { display:inline-block; background:#eef1f6; color:#5e6572; border-radius:999px; padding:4px 8px; font-size:11px; font-weight:600; }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }.metrics article,.panel,.placeholder { background:var(--surface); border:1px solid var(--line); border-radius:12px; }.metrics article { padding:20px; }.metrics p { color:var(--muted); }.metrics strong { display:block; margin:8px 0 5px; font-size:27px; letter-spacing:-.7px; }.metrics small { color:var(--muted); }.metrics .profit { background:var(--green-deep); border-color:var(--green-deep); }.metrics .profit p,.metrics .profit small { color:#b8cfc5; }.metrics .profit strong { color:#fff; }
.grid { display:grid; grid-template-columns:1.45fr 1fr; gap:16px; margin:16px 0; }.panel { padding:20px; }.chart-panel { min-height:260px; }.panel-header strong { font-size:16px; }.bars { height:170px; padding:23px 3px 0; display:flex; align-items:end; justify-content:space-around; gap:14px; }.bar-wrap { height:100%; flex:1; display:flex; flex-direction:column; justify-content:end; align-items:center; gap:8px; }.bar { width:min(38px,100%); min-height:8px; border-radius:6px 6px 2px 2px; background:linear-gradient(#5f977f,var(--green)); }.bar-wrap small { color:var(--muted); font-size:10px; }
.alerts { padding:11px 0 0; list-style:none; }.alerts li { padding:11px 0; border-bottom:1px solid var(--line); }.alerts li:last-child { border-bottom:0; }.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; }.amber { background:var(--amber); }.purple { background:var(--green); }.blue { background:var(--blue); }
.table-panel { padding-bottom:7px; } .inventory-table-wrap { overflow-x:auto; } table { width:100%; border-collapse:collapse; margin-top:15px; }th,td { padding:12px 0; border-bottom:1px solid var(--line); text-align:left; }th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }td:last-child,th:last-child { text-align:right; }.link-button { border:0; background:transparent; color:var(--green); cursor:pointer; font:inherit; font-weight:600; }.warning { color:#9b660d; font-weight:700; }
.placeholder { min-height:365px; padding:45px; max-width:800px; }.placeholder h2 { margin:10px 0; font-size:26px; }.placeholder > p { max-width:620px; color:var(--muted); font-size:16px; }.placeholder .muted { margin-top:25px; font-size:14px; }.module-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--green-soft); color:var(--green-deep); font-weight:800; }
.primary-button,.secondary-button,.icon-button { border:0; border-radius:8px; padding:10px 14px; cursor:pointer; font:600 14px/1 inherit; }.primary-button { background:var(--green); color:#fff; }.primary-button:hover { background:var(--green-deep); }.secondary-button { background:#eef1ef; color:var(--ink); }.finance-summary { display:flex; flex-wrap:wrap; gap:10px 22px; margin:-4px 0 16px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--muted); }.finance-summary strong { color:var(--ink); }.income { color:#176142 !important; }.expense { color:#a34938 !important; }.allocation-note { display:flex; gap:15px; margin-top:16px; padding:14px 16px; border-left:3px solid var(--green); background:var(--green-soft); border-radius:0 9px 9px 0; }.allocation-note span { color:#476256; }dialog { width:min(570px, calc(100% - 32px)); border:1px solid var(--line); border-radius:14px; padding:0; box-shadow:0 18px 50px #0004; }dialog::backdrop { background:#1118; }dialog form { padding:24px; }.dialog-header { display:flex; justify-content:space-between; gap:20px; }.dialog-header h2 { margin-top:3px; }.icon-button { width:32px; height:32px; padding:0; font-size:22px; background:#f0f2f1; }.dialog-note { margin:16px 0; color:var(--muted); }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.form-grid label { display:grid; gap:6px; color:#4d544f; font-size:12px; font-weight:700; }.form-grid input,.form-grid select,.category-filter select { width:100%; border:1px solid #d9deda; border-radius:7px; padding:10px; color:var(--ink); background:#fff; font:14px inherit; }.wide { grid-column:1 / -1; }.is-hidden { display:none !important; }.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:22px; }
.finance-filters { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 12px; }.finance-filters button { border:1px solid var(--line); border-radius:999px; background:#fff; color:#59615c; padding:7px 11px; cursor:pointer; font:600 12px inherit; }.finance-filters button:hover,.finance-filters button.active { border-color:#b8d0c4; background:var(--green-soft); color:var(--green-deep); }
.finance-filter-row { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:12px; }.finance-filter-row .finance-filters { margin:0; }.category-filter { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; white-space:nowrap; }.category-filter select { width:auto; padding:7px 9px; }
.integration-layout { max-width:850px; }.integration-card { display:flex; gap:18px; padding:23px; border:1px solid var(--line); border-radius:12px; background:#fff; }.integration-logo { display:grid; place-items:center; flex:0 0 45px; height:45px; border-radius:11px; background:var(--green); color:#fff; font-weight:800; font-size:19px; }.integration-copy { min-width:0; flex:1; }.integration-copy > p { margin:12px 0 17px; color:var(--muted); }.inline-form { display:flex; gap:10px; align-items:end; }.inline-form label { display:grid; flex:1; gap:6px; color:#4d544f; font-size:12px; font-weight:700; }.inline-form input { width:100%; border:1px solid #d9deda; border-radius:7px; padding:10px; color:var(--ink); background:#fff; font:14px inherit; }.integration-actions { display:flex; align-items:center; gap:12px; margin-top:14px; }.muted-message { color:var(--muted); font-size:12px; }.integration-note { display:flex; gap:15px; margin-top:16px; padding:14px 16px; border-left:3px solid var(--green); background:var(--green-soft); border-radius:0 9px 9px 0; }.integration-note span { color:#476256; }
.credentials-form { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end; margin-top:12px; padding-top:14px; border-top:1px solid var(--line); }.credentials-form label { display:grid; gap:6px; color:#4d544f; font-size:12px; font-weight:700; }.credentials-form input { min-width:0; width:100%; border:1px solid #d9deda; border-radius:7px; padding:10px; color:var(--ink); background:#fff; font:14px inherit; }.preview-heading { display:flex; justify-content:space-between; align-items:baseline; margin-top:20px; }.preview-heading span { color:var(--muted); font-size:12px; }
.shop-loading { max-width:650px; min-height:260px; padding:45px; border:1px solid var(--line); border-radius:12px; background:#fff; }.shop-loading h2 { margin:8px 0; font-size:24px; }.shop-loading p:not(.eyebrow) { color:var(--muted); }.shop-loading button { margin-top:18px; }.out-of-stock { background:#fbeceb; color:#9c392e; }
.cost-form { display:flex; min-width:170px; gap:6px; }.cost-form input { min-width:0; width:90px; border:1px solid #d9deda; border-radius:7px; padding:7px; font:14px inherit; }.cost-form .secondary-button { padding:7px 9px; font-size:12px; }
.inventory-sections { display:grid; gap:16px; }.stock-tag { display:inline-block; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; }.stock-ok,.stock-neutral { background:#eef1ef; color:#526057; }.stock-critical { background:#fbeceb; color:#9c392e; }.stock-warning { background:#fff5d7; color:#8a620f; }.inventory-section tr.stock-critical td { background:#fff7f6; }.inventory-section tr.stock-warning td { background:#fffdf6; }.salon-add-form { display:grid; grid-template-columns:1.5fr 1fr 100px auto; gap:10px; align-items:end; margin-top:16px; }.salon-add-form label { display:grid; gap:5px; color:#4d544f; font-size:12px; font-weight:700; }.salon-add-form input,.salon-stock-form input { width:100%; border:1px solid #d9deda; border-radius:7px; padding:8px; font:14px inherit; }.salon-stock-form { display:flex; justify-content:flex-end; gap:6px; min-width:150px; }.salon-stock-form input { width:72px; }.salon-stock-form .secondary-button { padding:7px 9px; font-size:12px; }.empty-row { color:var(--muted); text-align:center !important; padding:24px; }
@media (max-width:800px) { .app-shell { grid-template-columns:1fr; }.sidebar { min-height:auto; padding:18px; }.sidebar nav { grid-template-columns:repeat(4,1fr); }.sidebar-note { display:none; }.brand { padding-bottom:14px; }main { padding:26px 18px; }.grid,.metrics { grid-template-columns:1fr; }header { align-items:flex-start; }.period { display:none; }.scope-switcher { width:100%; overflow-x:auto; margin:22px 0; }.scope-switcher button { flex:1; white-space:nowrap; padding:9px 10px; }.panel { padding:16px; }.panel-header { align-items:flex-start; }.inventory-table-wrap table { min-width:650px; }.salon-add-form { grid-template-columns:1fr 1fr; }.salon-add-form label:first-child { grid-column:1 / -1; }.salon-add-form .secondary-button { grid-column:1 / -1; }.finance-summary { gap:8px 14px; }.cost-form { min-width:180px; } }
