.workspace-body { min-width: 320px; min-height: 100vh; background: #f5f7fb; color: #202d47; }
.workspace-shell { min-height: 100vh; }
.workspace-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 244px; flex-direction: column; padding: 23px 15px 15px; border-right: 1px solid #e8ecf3; background: #fff; }
.workspace-brand { margin: 0 0 37px 9px; }
.workspace-label { margin: 0 0 10px 11px; color: #9aa4b6; font-size: 8px; font-weight: 800; letter-spacing: 1.15px; }
.workspace-nav { display: grid; gap: 4px; }
.nav-item { display: flex; width: 100%; min-height: 41px; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #647189; font: 600 11px var(--font-body); text-align: left; transition: background .16s ease, color .16s ease; }
.nav-item:hover { background: #f5f7fc; color: #304caa; }
.nav-item.is-active { background: #edf2ff; color: #3455bb; font-weight: 700; }
.nav-icon { display: grid; width: 19px; place-items: center; color: #8390a7; font-size: 15px; font-weight: 600; }
.nav-item.is-active .nav-icon { color: #4667ce; }
.nav-count { display: grid; min-width: 20px; height: 20px; place-items: center; margin-left: auto; border-radius: 10px; background: #fff; color: #70809e; font-size: 9px; }
.sidebar-bottom { display: grid; gap: 8px; margin-top: auto; }
.sidebar-help { display: flex; align-items: center; gap: 9px; margin: 0 2px 6px; padding: 11px 8px; border: 1px solid #ebeff6; border-radius: 8px; }
.sidebar-help > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #eff3ff; color: #506bc6; font-size: 11px; font-weight: 700; }
.sidebar-help strong, .sidebar-help small, .sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-help strong { font-size: 9px; }.sidebar-help small, .sidebar-user small { margin-top: 3px; color: #929caf; font-size: 8px; }
.back-link { display: flex; align-items: center; gap: 8px; padding: 10px 11px; color: #758199; font-size: 10px; }
.back-link:hover { color: #3455bb; }
.sidebar-user { display: flex; align-items: center; gap: 9px; margin-top: 3px; padding: 12px 4px 2px; border-top: 1px solid #edf0f5; }
.user-avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #e9efff; color: #4562c2; font-size: 11px; font-weight: 700; }
.sidebar-user > span:nth-child(2) { flex: 1; }.sidebar-user strong { font-size: 9px; }.user-menu { color: #9ba5b5; font-size: 18px; }
.workspace-main-column { min-height: 100vh; margin-left: 244px; }
.workspace-topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 34px; border-bottom: 1px solid #e8ecf3; background: #ffffffed; backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #939db0; font-size: 10px; }.breadcrumb b { color: #c4cad5; font-weight: 400; }.breadcrumb strong { color: #283651; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }.topbar-date { color: #8d98aa; font-size: 9px; }.topbar-create { min-height: 36px; padding: 0 12px; font-size: 10px; }.topbar-create > span { font-size: 15px; }
.sidebar-toggle { display: none; }
.workspace-main { width: min(1190px, 100%); margin: 0 auto; padding: 22px 34px 50px; }
.demo-warning { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; padding: 10px 12px; border: 1px solid #f0dfb8; border-radius: 7px; background: #fffaf0; color: #7e632a; }
.warning-symbol { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 50%; background: #f5e5be; color: #876622; font-size: 11px; font-weight: 800; }
.demo-warning p { flex: 1; margin: 0; font-size: 9px; line-height: 1.6; }.demo-warning p strong { color: #6b5422; }
.warning-reset { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #ead8af; border-radius: 5px; background: white; color: #715b2d; font-size: 8px; font-weight: 700; }
.warning-reset:hover { background: #fff5dd; }
.storage-alert { margin: -12px 0 18px; padding: 10px 12px; border: 1px solid #e8caca; border-radius: 6px; background: #fff4f3; color: #9c4540; font-size: 9px; line-height: 1.6; }
.storage-alert[hidden] { display: none; }
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.view-heading h1 { margin: 0 0 5px; color: #1c2a46; font: 800 24px/1.2 var(--font-display); letter-spacing: -.8px; }.view-heading p { margin: 0; color: #8290a6; font-size: 10px; line-height: 1.6; }
.view-actions { display: flex; align-items: center; gap: 8px; }
.workspace-body .button { min-height: 36px; padding: 0 12px; border-radius: 6px; font-size: 9px; }
.workspace-body .button svg { width: 14px; height: 14px; }
.button-secondary { border: 1px solid #e2e7f0; background: white; color: #52617b; }.button-secondary:hover { border-color: #b8c5e7; color: #3a5cc6; }
.button-danger { border: 1px solid #f0d7d7; background: white; color: #a74b4b; }.button-danger:hover { background: #fff4f4; }
.button-small-text { min-height: 29px !important; padding: 0 9px !important; font-size: 8px !important; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.metric-box { position: relative; min-height: 110px; padding: 15px; border: 1px solid #e9edf4; border-radius: 8px; background: #fff; }
.metric-box-head { display: flex; align-items: center; justify-content: space-between; color: #77849b; font-size: 9px; }.metric-box-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: #edf2ff; color: #4a68cf; font-size: 13px; }.metric-box-icon.green { background: #eaf6f0; color: #388767; }.metric-box-icon.orange { background: #fff4e6; color: #ad772e; }.metric-box-icon.red { background: #fff0ef; color: #c0645a; }
.metric-box > strong { display: block; margin-top: 9px; color: #26334d; font: 800 22px var(--font-display); letter-spacing: -.7px; }.metric-box > small { display: block; margin-top: 5px; color: #97a1b1; font-size: 8px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .75fr); gap: 14px; margin-bottom: 14px; }
.panel { min-width: 0; border: 1px solid #e9edf4; border-radius: 8px; background: #fff; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border-bottom: 1px solid #eff1f5; }
.panel-header h2 { margin: 0; color: #2b3852; font: 700 11px var(--font-display); letter-spacing: -.15px; }.panel-header p { margin: 4px 0 0; color: #97a1b0; font-size: 8px; }.panel-link { border: 0; background: transparent; color: #4764c2; cursor: pointer; font-size: 8px; font-weight: 700; }
.quick-actions { display: grid; padding: 3px 12px 7px; }
.quick-action { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr) 16px; align-items: center; gap: 1px 9px; padding: 11px 1px; border: 0; border-bottom: 1px solid #f0f2f6; background: transparent; text-align: left; }
.quick-action:last-child { border-bottom: 0; }
.quick-action > span { display: grid; width: 27px; height: 27px; grid-row: span 2; place-items: center; border-radius: 7px; background: #edf2ff; color: #4967cc; font-size: 13px; }
.quick-action strong { color: #3a4760; font-size: 8px; }
.quick-action small { min-width: 0; color: #939daf; font-size: 7px; overflow-wrap: anywhere; }
.quick-action b { grid-column: 3; grid-row: span 2; color: #7185d1; font-size: 13px; }
.quick-action:hover strong { color: #3659c1; }
.revenue-chart { min-height: 205px; padding: 16px 16px 11px; }
.chart-bars { display: flex; height: 154px; align-items: flex-end; justify-content: space-around; gap: 11px; padding: 0 6px 0 31px; border-bottom: 1px solid #e9edf3; background: repeating-linear-gradient(to bottom, transparent 0 37px, #f1f3f7 38px 39px); position: relative; }
.chart-bars:before { position: absolute; top: 0; bottom: 1px; left: 0; display: flex; width: 26px; flex-direction: column; justify-content: space-between; color: #a1aaba; font-size: 7px; content: "₹80k\A ₹60k\A ₹40k\A ₹20k"; white-space: pre; }
.chart-column { display: flex; height: 100%; min-width: 20px; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart-column i { display: block; width: min(28px, 68%); min-height: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #6e8af0, #4262d0); transition: height .25s ease; }
.chart-column small { position: absolute; bottom: -19px; color: #929daf; font-size: 7px; }
.revenue-chart .chart-bars { margin-bottom: 21px; }
.activity-list { display: grid; }
.activity-row { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid #f0f2f6; }.activity-row:last-child { border-bottom: 0; }
.activity-icon { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 7px; background: #edf2ff; color: #4967cb; font-size: 11px; }.activity-icon.green { background: #eaf6f0; color: #388767; }.activity-row > div:nth-child(2) { min-width: 0; flex: 1; }.activity-row strong, .activity-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.activity-row strong { color: #3c4962; font-size: 8px; }.activity-row small { margin-top: 4px; color: #9aa4b4; font-size: 7px; }.activity-amount { color: #3a465e; font-size: 8px; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 12px; background: #eff2f7; color: #69758b; font-size: 7px; font-weight: 700; white-space: nowrap; }.status-pill:before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }.status-paid { background: #eaf6f0; color: #378163; }.status-partial { background: #fff4e5; color: #a6742e; }.status-overdue { background: #fff0ef; color: #b95e55; }.status-draft { background: #eef1f7; color: #69758b; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }.data-table th { padding: 10px 13px; background: #fafbfc; color: #8a95a7; font-size: 7px; font-weight: 800; letter-spacing: .45px; white-space: nowrap; }.data-table td { padding: 11px 13px; border-top: 1px solid #f0f2f6; color: #56637a; font-size: 8px; white-space: nowrap; }.data-table td strong { display: block; color: #34415b; font-size: 8px; }.data-table td small { display: block; margin-top: 3px; color: #9aa3b3; font-size: 7px; }.data-table tr[data-action] { cursor: pointer; }.data-table tbody tr[data-action]:hover { background: #fafbfe; }
.stock-low { color: #b66b3c !important; font-weight: 700; }
.table-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #eff1f5; }
.control-row { display: flex; align-items: center; gap: 7px; }.input-search, .select-control { min-height: 31px; padding: 0 9px; border: 1px solid #e5e9f0; border-radius: 5px; outline: none; background: white; color: #506079; font: 9px var(--font-body); }.input-search { width: min(225px, 42vw); }.input-search:focus, .select-control:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #8097e2; box-shadow: 0 0 0 3px #4e6dd512; }.result-count { color: #919bad; font-size: 8px; }
.empty-state { padding: 35px 20px; color: #8490a4; text-align: center; font-size: 10px; }.empty-state strong { display: block; margin-bottom: 5px; color: #44516a; font-size: 12px; }
.detail-pair { display: inline-flex; align-items: center; gap: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { display: grid; align-content: start; gap: 5px; color: #59667e; font-size: 8px; font-weight: 700; }
.form-field.full { grid-column: 1 / -1; }.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #e3e8f0; border-radius: 5px; outline: none; background: white; color: #283650; font: 10px var(--font-body); }.form-field textarea { min-height: 67px; resize: vertical; }.form-field input::placeholder, .form-field textarea::placeholder { color: #aab2bf; font-weight: 400; }.form-help { color: #929daf; font-size: 7px; font-weight: 400; line-height: 1.5; }
.dialog-form { width: min(760px, calc(100vw - 30px)); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 25px 90px #0e193b45; }.dialog-form::backdrop { background: #101b35a6; backdrop-filter: blur(3px); }
.invoice-detail-dialog { width: min(850px, calc(100vw - 30px)); max-width: none; max-height: 92vh; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #f4f6fa; box-shadow: 0 25px 90px #0e193b45; }.invoice-detail-dialog::backdrop { background: #101b35a6; backdrop-filter: blur(3px); }.invoice-detail-dialog .dialog-content { max-height: calc(92vh - 60px); padding: 17px; overflow: auto; }
.dialog-heading { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 19px; border-bottom: 1px solid #edf0f5; background: white; }.dialog-heading h2 { margin: 0; color: #26334d; font: 800 15px var(--font-display); letter-spacing: -.4px; }.dialog-heading p { margin: 4px 0 0; color: #909bae; font-size: 8px; }.dialog-close { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 0; border-radius: 6px; background: #f4f6fa; color: #59667e; font-size: 19px; }.dialog-close:hover { background: #e9edf5; }.dialog-content { max-height: calc(92vh - 60px); padding: 18px 20px 21px; overflow: auto; }.dialog-actions-row { display: flex; justify-content: flex-end; gap: 7px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #eff1f5; }
.invoice-lines { display: grid; gap: 9px; }.invoice-line { display: grid; grid-template-columns: 1.4fr 1.5fr .65fr .8fr .9fr .7fr 28px; gap: 7px; align-items: end; padding: 11px; border: 1px solid #e8ecf3; border-radius: 7px; background: #fbfcfe; }.invoice-line .form-field { min-width: 0; }.invoice-line .form-field input, .invoice-line .form-field select { min-height: 32px; padding: 6px; font-size: 8px; }.invoice-line .form-field > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.line-remove { display: grid; width: 27px; height: 31px; place-items: center; border: 1px solid #eedada; border-radius: 5px; background: #fff; color: #b06060; font-size: 14px; }.line-remove:hover { background: #fff0f0; }
.invoice-form-section { margin-bottom: 18px; }.invoice-form-section h3 { margin: 0 0 10px; color: #394660; font: 700 10px var(--font-display); }.invoice-summary { display: grid; grid-template-columns: 1fr minmax(205px, 270px); gap: 20px; margin-top: 14px; padding: 13px; border-radius: 7px; background: #f7f8fc; }.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; color: #748097; font-size: 9px; }.summary-row strong { color: #36435d; font-weight: 600; }.summary-total { margin-top: 5px; padding-top: 10px; border-top: 1px solid #dfe4ee; color: #294cae; font-size: 10px; font-weight: 700; }.summary-total strong { color: #294cae; font: 800 15px var(--font-display); }.tax-breakdown-mini { margin-top: 7px; color: #8d98a9; font-size: 8px; line-height: 1.65; }
.print-invoice { width: min(100%, 720px); margin: auto; padding: 35px 40px; background: #fff; color: #24314b; }.print-invoice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.print-company { display: flex; align-items: center; gap: 11px; }.print-logo { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 8px; background: #edf2ff; color: #3e60ca; font: 800 12px var(--font-display); }.print-invoice h2 { margin: 0 0 5px; font: 800 12px var(--font-display); letter-spacing: -.2px; }.print-invoice p, .print-invoice span { margin: 3px 0; color: #748097; font-size: 8px; }.print-tax-title { display: grid; justify-items: end; gap: 5px; color: #3c5fc9; }.print-tax-title strong { font: 800 11px var(--font-display); letter-spacing: .7px; }.print-rule { height: 2px; margin: 19px 0; background: #4262cc; }.print-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 23px; }.print-parties > div { display: grid; gap: 5px; align-content: start; }.print-parties small { margin-bottom: 2px; color: #8b95a7; font-size: 7px; font-weight: 800; letter-spacing: .8px; }.print-parties strong { color: #34415b; font-size: 9px; }.print-parties span { font-size: 8px; }.print-parties b { display: inline-block; min-width: 82px; color: #4b5870; }.print-table { width: 100%; border-collapse: collapse; }.print-table th { padding: 9px 6px; background: #f2f4f8; color: #68748a; font-size: 7px; text-align: left; }.print-table td { padding: 10px 6px; border-bottom: 1px solid #e9edf3; color: #506079; font-size: 8px; }.print-table th:not(:first-child), .print-table td:not(:first-child) { text-align: right; }.print-table td:first-child { text-align: left; }.print-totals { width: min(100%, 260px); margin: 17px 0 0 auto; }.print-totals > div { display: flex; justify-content: space-between; padding: 6px 0; color: #6d7990; font-size: 8px; }.print-grand { margin-top: 5px; padding: 11px !important; border-radius: 5px; background: #f0f3ff; color: #294cae !important; font-size: 10px !important; }.print-legal { margin-top: 22px; padding-top: 9px; border-top: 1px solid #e8ecf2; color: #8c96a6; font-size: 7px; line-height: 1.6; }
.toast-region { position: fixed; z-index: 99; right: 20px; bottom: 20px; display: grid; gap: 8px; }.toast { max-width: min(360px, calc(100vw - 40px)); padding: 11px 15px; border: 1px solid #dce8df; border-radius: 7px; background: #fff; box-shadow: 0 8px 28px #1724431a; color: #376e51; font-size: 10px; }.toast.error { border-color: #efd7d6; color: #a34a47; }
.doc-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }.doc-type-card { display: flex; min-height: 92px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 13px; border: 1px solid #e8ecf3; border-radius: 8px; background: #fff; text-align: left; }.doc-type-card:hover { border-color: #a9b8e9; box-shadow: 0 6px 18px #2b426e0a; }.doc-type-card span { color: #536dc4; font-size: 15px; }.doc-type-card strong { color: #3c4961; font-size: 9px; }.doc-type-card small { color: #929daf; font-size: 7px; }
.documents-panel { margin-top: 17px; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }.report-box { padding: 14px; border: 1px solid #e9edf4; border-radius: 7px; background: #fff; }.report-box span { color: #828ea3; font-size: 8px; }.report-box strong { display: block; margin-top: 8px; color: #2d3b55; font: 800 19px var(--font-display); }
.report-filter-row { display: flex; align-items: center; gap: 9px; margin: -3px 0 13px; color: #758198; font-size: 9px; }
.report-section-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 9px; color: #394660; font: 700 11px var(--font-display); }.report-section-title span { color: #9a7a3a; font: 600 7px var(--font-body); }.period-report { margin-bottom: 14px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .6fr); gap: 14px; align-items: start; }.settings-panel { padding: 16px; }.settings-panel h2 { margin: 0 0 4px; color: #36435c; font: 700 11px var(--font-display); }.settings-panel > p { margin: 0 0 15px; color: #919bad; font-size: 8px; line-height: 1.6; }.settings-side-note { padding: 14px; border: 1px solid #f0dfb8; border-radius: 7px; background: #fffaf0; color: #77622f; font-size: 9px; line-height: 1.7; }.settings-side-note strong { display: block; margin-bottom: 6px; }
.settings-reset { margin-top: 12px; margin-bottom: 12px; }
.customer-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-bottom: 17px; padding: 14px; border: 1px solid #edf0f5; border-radius: 7px; }.customer-detail-grid > div { display: grid; gap: 4px; }.customer-detail-grid .full { grid-column: 1 / -1; }.customer-detail-grid small { color: #929daf; font-size: 7px; font-weight: 800; letter-spacing: .6px; }.customer-detail-grid strong { color: #47546b; font-size: 9px; font-weight: 600; }.customer-history { margin-top: 10px; }
.branding-section { margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0f5; }.branding-section h3 { margin: 0 0 5px; color: #394660; font: 700 10px var(--font-display); }.branding-section > p { margin: 0 0 12px; color: #929daf; font-size: 8px; line-height: 1.6; }
.branding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.branding-card { display: grid; grid-template-columns: 102px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; border: 1px solid #e8ecf3; border-radius: 7px; background: #fbfcfe; }.branding-card > div:last-child { min-width: 0; }.branding-card strong { display: block; margin-bottom: 8px; color: #47546b; font-size: 8px; }
.branding-preview { display: grid; width: 102px; height: 72px; place-items: center; overflow: hidden; border: 1px dashed #dbe1ec; border-radius: 5px; background: white; }.branding-preview img { max-width: 96px; max-height: 66px; object-fit: contain; }.branding-preview span { color: #b0b8c5; font: 800 10px var(--font-display); letter-spacing: 1px; }.branding-preview [hidden] { display: none; }
.branding-upload { margin-bottom: 7px; font-size: 7px !important; }.branding-upload input[type="file"] { min-height: 30px; padding: 5px; font-size: 7px; }.branding-remove { padding: 0; border: 0; background: transparent; color: #9a5a58; cursor: pointer; font: 600 7px var(--font-body); }.branding-remove:disabled { color: #aab2bf; cursor: not-allowed; }
.template-modern { border-top: 6px solid #3157c8; }.template-modern .print-rule { height: 4px; border-radius: 2px; }.template-modern .print-logo { border-radius: 12px; background: #3157c8; color: #fff; }.template-modern .print-grand { background: #3157c8; color: #fff !important; }.template-modern .print-grand strong { color: #fff !important; }
.template-minimal .print-rule { height: 1px; background: #cdd3dc; }.template-minimal .print-tax-title { color: #526078; }.template-minimal .print-logo { border: 1px solid #e0e4eb; background: #fff; color: #526078; }.template-minimal .print-grand { border-radius: 0; background: #f5f6f8; color: #26334d !important; }.template-minimal .print-grand strong { color: #26334d !important; }
.print-logo-image { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }.print-signature { display: grid; justify-items: end; gap: 4px; margin: 8px 0 16px auto; color: #758097; font-size: 7px; }.print-signature img { width: min(170px, 42vw); max-height: 58px; object-fit: contain; object-position: right center; }
.invoice-detail-dialog .screen-actions { flex-wrap: wrap; }
.workspace-body.theme-dark { color-scheme: dark; background: #111827; color: #e6ebf4; }
.theme-dark .workspace-sidebar, .theme-dark .workspace-topbar, .theme-dark .panel, .theme-dark .metric-box, .theme-dark .report-box, .theme-dark .settings-panel { border-color: #2b374d; background: #192437; color: #e6ebf4; }
.theme-dark .workspace-topbar { background: #192437ed; }.theme-dark .workspace-label, .theme-dark .view-heading p, .theme-dark .panel-header p, .theme-dark .settings-panel > p, .theme-dark .metric-box > small { color: #9ba8bd; }
.theme-dark .view-heading h1, .theme-dark .panel-header h2, .theme-dark .metric-box > strong, .theme-dark .report-box strong, .theme-dark .settings-panel h2, .theme-dark .breadcrumb strong { color: #e6ebf4; }
.theme-dark .nav-item { color: #a7b3c7; }.theme-dark .nav-item:hover, .theme-dark .nav-item.is-active { background: #263552; color: #cbd7ff; }.theme-dark .nav-count, .theme-dark .user-avatar { background: #2b3b5b; color: #cbd7ff; }
.theme-dark .sidebar-help, .theme-dark .sidebar-user, .theme-dark .panel-header, .theme-dark .table-controls, .theme-dark .data-table th, .theme-dark .data-table td { border-color: #2b374d; }
.theme-dark .sidebar-help, .theme-dark .data-table th { background: #202d42; }.theme-dark .sidebar-help strong, .theme-dark .sidebar-user strong, .theme-dark .data-table td strong { color: #e6ebf4; }
.theme-dark .data-table td, .theme-dark .activity-row, .theme-dark .quick-action { border-color: #2b374d; color: #c5cede; }.theme-dark .activity-row strong, .theme-dark .quick-action strong { color: #e1e7f1; }
.theme-dark .input-search, .theme-dark .select-control, .theme-dark .form-field input, .theme-dark .form-field select, .theme-dark .form-field textarea { border-color: #3a4760; background: #121b2b; color: #e6ebf4; color-scheme: dark; }
.theme-dark .form-field, .theme-dark .report-filter-row { color: #c1ccdc; }.theme-dark .form-help, .theme-dark .result-count, .theme-dark .empty-state { color: #9ba8bd; }
.theme-dark .invoice-line, .theme-dark .invoice-summary, .theme-dark .customer-detail-grid, .theme-dark .branding-card { border-color: #2b374d; background: #202d42; }
.theme-dark .branding-preview { border-color: #46536b; background: #121b2b; }.theme-dark .branding-card strong, .theme-dark .summary-row, .theme-dark .customer-detail-grid strong { color: #d3dceb; }
.theme-dark .dialog-form, .theme-dark .invoice-detail-dialog { border-color: #2b374d; background: #192437; }.theme-dark .dialog-heading { border-color: #2b374d; background: #192437; }.theme-dark .dialog-heading h2 { color: #e6ebf4; }.theme-dark .dialog-heading p { color: #9ba8bd; }.theme-dark .dialog-close { background: #26334a; color: #d5deec; }
.theme-dark .button-secondary { border-color: #3a4760; background: #202d42; color: #d3dceb; }.theme-dark .button-secondary:hover { border-color: #7189ce; color: #e6ebf4; }
.theme-dark .business-onboarding { border-color: #334361; background: #1b2940; }.theme-dark .business-onboarding strong { color: #e1e7f1; }.theme-dark .business-onboarding p { color: #a7b3c7; }
.theme-dark .print-invoice { background: #fff; color: #24314b; }.theme-dark .print-invoice h2 { color: #24314b; }.theme-dark .print-invoice .print-parties strong { color: #34415b; }
.admin-empty { min-height: 180px; }.admin-empty .empty-state { padding-top: 72px; }
.demo-warning[hidden], .cloud-status-note[hidden] { display: none !important; }
.cloud-status-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 10px 12px; border: 1px solid #dce8df; border-radius: 7px; background: #f5fbf7; color: #376e51; font-size: 9px; line-height: 1.5; }
.cloud-status-note.pending { border-color: #e6e2ca; background: #fffdf4; color: #78672e; }
.cloud-status-note.error { border-color: #efd7d6; background: #fff5f4; color: #a34a47; }
.cloud-status-retry { flex: 0 0 auto; padding: 5px 9px; border: 1px solid currentColor; border-radius: 5px; background: #fff; color: inherit; font: 700 8px var(--font-body); }
.user-menu { padding: 4px 6px; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.user-menu:hover { background: #f0f3f9; color: #3455bb; }
.business-onboarding { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -5px 0 16px; padding: 14px 16px; border: 1px solid #dfe6f5; border-radius: 8px; background: #f8faff; }.business-onboarding strong { color: #34425e; font-size: 10px; }.business-onboarding p { margin: 4px 0 0; color: #8591a5; font-size: 8px; line-height: 1.5; }
.auth-mode .workspace-sidebar, .auth-mode .workspace-topbar { display: none; }
.auth-mode .workspace-main-column { margin-left: 0; }
.auth-mode .workspace-main { display: grid; width: 100%; min-height: 100vh; place-items: center; margin: 0; padding: 24px 16px; }
.auth-card { width: min(460px, 100%); padding: 34px; border: 1px solid #e8ecf3; border-radius: 13px; background: #fff; box-shadow: 0 20px 70px #17244312; }
.auth-brand { display: inline-block; margin-bottom: 28px; color: #293753; font: 800 17px var(--font-display); letter-spacing: -.5px; }.auth-brand span { color: #4768d2; }
.auth-eyebrow { display: block; margin-bottom: 8px; color: #7788c4; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.auth-card h1 { margin: 0; color: #1c2a46; font: 800 25px/1.2 var(--font-display); letter-spacing: -.8px; }.auth-description { margin: 8px 0 19px; color: #8290a6; font-size: 10px; line-height: 1.7; }
.auth-form { display: grid; gap: 12px; }.auth-form .form-field { font-size: 9px; }.auth-form .form-field input { min-height: 42px; font-size: 11px; }.auth-submit { min-height: 42px !important; margin-top: 3px; font-size: 10px !important; }.auth-submit:disabled { cursor: not-allowed; opacity: .6; }
.auth-message { margin: 0 0 12px; padding: 10px; border: 1px solid #dce8df; border-radius: 6px; background: #f5fbf7; color: #376e51; font-size: 9px; line-height: 1.6; }.auth-message.error { border-color: #efd7d6; background: #fff5f4; color: #a34a47; }
.auth-hint { margin: 0; color: #8290a6; font-size: 9px; line-height: 1.6; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }.auth-switch { margin: 0; color: #8792a5; font-size: 9px; }
.auth-text-button { padding: 0; border: 0; background: transparent; color: #4563c5; cursor: pointer; font: 700 9px var(--font-body); }.auth-text-button:hover { color: #294cae; text-decoration: underline; }
.auth-recovery-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.auth-demo-divider { display: flex; align-items: center; gap: 11px; margin: 20px 0 12px; color: #a2aab8; font-size: 8px; }.auth-demo-divider:before, .auth-demo-divider:after { height: 1px; flex: 1; background: #edf0f5; content: ""; }
.auth-demo-button { width: 100%; min-height: 39px !important; font-size: 9px !important; }
.auth-legal { margin: 14px 0 0; color: #98a1b0; font-size: 8px; line-height: 1.6; text-align: center; }
.auth-loading { width: 25px; height: 25px; margin-top: 18px; border: 3px solid #e5eafa; border-top-color: #4967cc; border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .workspace-sidebar { width: 214px; }.workspace-main-column { margin-left: 214px; }.workspace-topbar { padding-right: 22px; padding-left: 22px; }.workspace-main { padding-right: 22px; padding-left: 22px; }.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.invoice-line { grid-template-columns: 1fr 1fr .65fr .8fr .8fr .65fr 28px; gap: 5px; padding: 8px; }
}
@media (max-width: 760px) {
  .workspace-sidebar { width: 250px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 12px 0 30px #17244310; }.workspace-sidebar.is-open { transform: translateX(0); }.workspace-main-column { margin-left: 0; }.workspace-topbar { min-height: 58px; padding: 0 14px; }.sidebar-toggle { display: grid; width: 30px; height: 30px; flex: 0 0 30px; align-content: center; justify-items: center; gap: 4px; border: 1px solid #e5e9f0; border-radius: 5px; background: #fff; }.sidebar-toggle span { width: 14px; height: 1.5px; background: #52617b; }.breadcrumb { flex: 1; gap: 6px; font-size: 8px; }.breadcrumb strong { font-size: 9px; }.topbar-actions { gap: 7px; }.topbar-date { display: none; }.topbar-create { min-height: 33px !important; padding: 0 9px !important; font-size: 8px !important; }  .workspace-main { padding: 14px 14px 40px; }.demo-warning { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 9px; }.demo-warning p { min-width: calc(100% - 32px); font-size: 8px; }.warning-reset { margin-left: 27px; }.view-heading h1 { font-size: 21px; }.view-heading p { font-size: 9px; }.dashboard-grid { grid-template-columns: minmax(0, 1fr); }.report-summary { grid-template-columns: 1fr; gap: 8px; }.report-box { padding: 11px; }.report-box strong { margin-top: 4px; font-size: 16px; }.settings-layout { grid-template-columns: 1fr; }.invoice-line { grid-template-columns: 1fr 1fr 28px; gap: 8px; }.invoice-line .form-field:nth-child(1), .invoice-line .form-field:nth-child(2) { grid-column: span 1; }.invoice-line .line-remove { grid-column: 3; grid-row: 1; }.invoice-summary { grid-template-columns: 1fr; gap: 7px; }.doc-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 450px) {
  .workspace-main { padding-right: 10px; padding-left: 10px; }.workspace-topbar { gap: 8px; }.breadcrumb > span, .breadcrumb > b { display: none; }.topbar-create { gap: 5px !important; }.view-heading { align-items: flex-start; flex-direction: column; }.view-actions { width: 100%; }.view-actions .button { flex: 1; }.metric-grid { gap: 8px; }.metric-box { min-height: 96px; padding: 11px; }.metric-box > strong { font-size: 18px; }.metric-box > small { font-size: 7px; }.table-controls { align-items: stretch; flex-direction: column; }.control-row { width: 100%; }.input-search { width: 100%; flex: 1; }.data-table th, .data-table td { padding-right: 9px; padding-left: 9px; }.form-grid, .form-grid.three { grid-template-columns: 1fr; }.form-field.full { grid-column: auto; }.doc-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dialog-content { padding: 14px 12px 17px; }.dialog-heading { padding: 12px 14px; }.print-invoice { padding: 25px 15px; }.print-parties { gap: 11px; }.print-table th, .print-table td { padding-right: 4px; padding-left: 4px; font-size: 7px; }.business-onboarding { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) { .branding-grid { grid-template-columns: 1fr; } }
@media (max-width: 450px) {
  .invoice-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; }
  .auth-card { padding: 25px 20px; }.auth-links { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { .workspace-sidebar, .chart-column i { transition-duration: .01ms; } }
@media print {
  body.workspace-body > * { display: none !important; }
  body.workspace-body > .app-dialog[open] { position: static; display: block !important; width: 100%; max-width: none; max-height: none; overflow: visible; border: 0; border-radius: 0; background: white; box-shadow: none; }
  body.workspace-body > .app-dialog[open] .dialog-heading { display: none; }
  body.workspace-body > .app-dialog[open] .dialog-content { max-height: none; padding: 0; overflow: visible; }
  body.workspace-body > .app-dialog[open] .print-invoice { width: 210mm; min-height: 270mm; margin: 0 auto; padding: 20mm; }
  @page { size: A4; margin: 0; }
  body.workspace-body.report-print > .workspace-shell { display: block !important; }
  body.workspace-body.report-print { page: report; }
  body.workspace-body.report-print > .workspace-shell .workspace-sidebar,
  body.workspace-body.report-print > .workspace-shell .workspace-topbar,
  body.workspace-body.report-print > .workspace-shell .view-actions { display: none !important; }
  body.workspace-body.report-print > .workspace-shell .workspace-main-column { margin: 0; }
  body.workspace-body.report-print > .workspace-shell .workspace-main { width: 100%; padding: 0; }
  body.workspace-body.report-print #workspace-main > :not(#view-root) { display: none !important; }
  body.workspace-body.report-print .report-summary,
  body.workspace-body.report-print .period-report,
  body.workspace-body.report-print #view-root > .panel { break-inside: avoid; }
  body.workspace-body.report-print > .app-dialog[open] { display: none !important; }
  body.workspace-body.report-print .report-filter-row { color: #333; }
  @page report { size: A4; margin: 12mm; }
}
