/* Biashara Desk shared application components, derived from the approved Overview.
   Overview and generated document templates are intentionally outside .bd-ui. */
:root{--ui-green:#0e3b2f;--ui-ink:#173d33;--ui-amber:#f5a623;--ui-cream:#fff6e5;--ui-surface:#fff;--ui-canvas:#f3f7f4;--ui-border:#e4ece8;--ui-muted:#667d76;--ui-radius:14px;--ui-space:20px;--ui-danger:#a03225}
#workspace .bd-ui{color:var(--ui-ink);font-size:14px;line-height:1.55}
#workspace .bd-ui.card,#workspace .bd-ui>.card{background:var(--ui-surface);border:1px solid var(--ui-border)!important;border-top:2px solid var(--ui-amber)!important;border-radius:var(--ui-radius);box-shadow:none;padding:var(--ui-space);margin-bottom:20px}
#workspace .bd-ui h2{font-size:18px;line-height:1.4;letter-spacing:-.5px;margin:0 0 20px;font-weight:600;color:var(--ui-green)}
#workspace .bd-ui h2:after{width:36px;height:3px;margin-top:9px;background:var(--ui-amber)}
#workspace .bd-ui h3{font:600 15px Sora,system-ui,sans-serif;letter-spacing:-.3px;margin:24px 0 16px;color:var(--ui-green)}
#workspace .bd-ui .muted,#workspace .bd-ui small{color:var(--ui-muted);font-size:12px;line-height:1.65}
#workspace .bd-ui label{font-size:12px;font-weight:600;color:#39574b;margin-bottom:7px}
#workspace .bd-ui input,#workspace .bd-ui select,#workspace .bd-ui textarea{background:var(--ui-surface);color:var(--ui-ink);border:1px solid #d6e2da;border-radius:9px;font-size:13px;min-height:44px;padding:11px 12px;margin-bottom:18px;box-shadow:none;max-width:100%}
#workspace .bd-ui input::placeholder,#workspace .bd-ui textarea::placeholder{color:#82958d}
#workspace .bd-ui textarea{min-height:94px;resize:vertical}
#workspace .bd-ui input:focus,#workspace .bd-ui select:focus,#workspace .bd-ui textarea:focus{outline:0;border-color:var(--ui-amber)!important;box-shadow:0 0 0 3px #f5a62324!important}
#workspace .bd-ui .grid{gap:18px 22px}#workspace .bd-ui .three{gap:18px}
#workspace .bd-ui button{min-height:42px;border-radius:9px;font-size:12px;padding:10px 16px;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;gap:8px;vertical-align:middle}
#workspace .bd-ui button.secondary:not(.bd-tab):not(.bd-edit):not(.bd-view):not(.bd-download):not(.bd-print){background:var(--ui-cream)!important;color:var(--ui-green)!important;border:1px solid #ffe1aa!important;box-shadow:none}
#workspace .bd-ui button.secondary:not(.bd-tab):hover{background:#ffedcc!important}
#workspace .bd-ui button:disabled{opacity:.5;cursor:not-allowed}
#workspace .bd-ui .actions{gap:9px;align-items:center}#workspace .bd-ui .bd-form-actions{display:flex;flex-wrap:wrap;gap:9px;margin:4px 0 24px}
#workspace .bd-ui .cloud-list{border-left:0;padding:0;margin-top:0}
#workspace .bd-ui .record{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 0;border-bottom:1px solid #ecf0ee;margin:0;font-size:13px}
#workspace .bd-ui .record:last-child{border-bottom:0}#workspace .bd-ui .record:hover{background:#f9fcfa}
#workspace .bd-ui .record>div:first-child{flex:1;min-width:0}#workspace .bd-ui .record>div:last-child{text-align:right}#workspace .bd-ui .record strong{font-weight:600;color:var(--ui-ink)}
#workspace .bd-ui .record .actions{margin-left:14px;display:inline-flex;flex-wrap:wrap}#workspace .bd-ui .record button{padding:7px 12px;min-height:34px;font-size:11px}
#workspace .bd-ui .pill,#workspace .bd-ui .tag{border-radius:24px;background:var(--ui-cream);font-size:11px;padding:4px 9px;color:var(--ui-green)}
.bd-list-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:28px;padding-top:24px;border-top:1px solid var(--ui-border)}
#workspace .bd-ui .bd-list-heading h3{margin:0}.bd-count{font-size:11px;background:#e8f2ec;color:#32644d;border-radius:20px;padding:4px 9px;white-space:nowrap}
.bd-list-tools{display:grid;grid-template-columns:minmax(180px,1fr) minmax(145px,180px);gap:14px;align-items:end;margin:16px 0 0}
#workspace .bd-ui .bd-list-tools input,#workspace .bd-ui .bd-list-tools select{margin-bottom:10px}
.bd-list-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;padding:16px 0 0;font-size:12px;color:var(--ui-muted)}
#workspace .bd-ui .bd-list-footer button{padding:8px 12px;min-height:36px}.bd-list-empty{padding:26px 16px;background:#f7faf7;border:1px dashed #dce7df;border-radius:10px;text-align:center;color:var(--ui-muted);font-size:13px;margin:12px 0}
.bd-breadcrumbs{display:flex;gap:7px;align-items:center;color:var(--ui-muted);font-size:11px;margin:0 0 10px}.bd-breadcrumbs button{padding:0;background:transparent!important;color:#537166!important;border:0;font-size:11px;font-weight:500;min-height:24px}.bd-breadcrumbs span:last-child{color:var(--ui-green)}
#workspace .bd-ui .bd-doc-table{font-size:12px}#workspace .bd-ui .bd-doc-table th{font-size:11px;background:#f6f9f6;color:#536b5e;border-bottom:1px solid var(--ui-border);padding:14px 12px}#workspace .bd-ui .bd-doc-table td{padding:14px 12px;border-bottom:1px solid #ecf0ee}
#workspace .bd-ui .bd-actions{flex-wrap:wrap;white-space:normal;min-width:235px}#workspace .bd-ui .bd-actions button{min-height:34px;padding:7px 9px}
#workspace .bd-ui .bd-tabs{row-gap:6px}#workspace .bd-ui .bd-tab{min-height:40px;padding:9px 11px}
#workspace .bd-ui #reportCloud{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
#workspace .bd-ui #reportCloud .record{display:block;border:1px solid var(--ui-border);border-radius:12px;padding:18px;min-height:122px}#workspace .bd-ui #reportCloud .record>div:last-child{text-align:left;margin-top:16px;font-size:21px;letter-spacing:-.5px}
#workspace .bd-ui #reportCloud .record:nth-child(2)>div:last-child{color:#bb7b00}#workspace .bd-ui #reportCloud .record strong{font-weight:600}
#workspace .bd-ui #documentEditor{min-width:0}#workspace .bd-ui .bd-docs-heading{align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:20px}#workspace .bd-ui .bd-docs-heading h2{margin-bottom:0}
#workspace .bd-ui .document-editor-presentation{border:1px solid var(--ui-border);background:#f5f9f5;border-radius:12px}
#workspace .bd-ui #editorFeedback{font-size:12px;line-height:1.65;margin-top:12px}#workspace .bd-ui .conversion-note{border:1px solid #ffe1aa;background:var(--ui-cream);color:#6b5428}
#workspace .bd-ui input[type=file]{background:#f8fbf8;min-height:56px;padding:9px}
#workspace .bd-ui hr{border:0;border-top:1px solid var(--ui-border);margin:28px 0}
dialog[aria-label="Document preview"],#passwordRecovery{border:1px solid var(--ui-border)!important;border-radius:14px!important;box-shadow:0 24px 90px #092e2440;color:var(--ui-ink)}dialog::backdrop{background:#082f2580}
#passwordRecovery input{min-height:44px;border-color:#d6e2da}#passwordRecovery button{min-height:42px}#passwordRecovery button[type=submit]{background:var(--ui-amber);color:var(--ui-green)}
#msg:not(:empty){border-radius:10px;line-height:1.6}#workspace .bd-ui .ok{color:#147c52}
@media(min-width:1251px){#workspace .bd-ui[data-section=customers],#workspace .bd-ui[data-section=services],#workspace .bd-ui[data-section=expenses],#workspace .bd-ui[data-section=payments]{padding:26px 28px}}
@media(max-width:1100px){#workspace .bd-ui #reportCloud{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){:root{--ui-space:16px}#workspace .bd-ui h2{font-size:17px}#workspace .bd-ui .record{align-items:flex-start;flex-wrap:wrap;gap:10px}#workspace .bd-ui .record>div:last-child{text-align:left;width:100%}#workspace .bd-ui .record .actions{margin-left:0;justify-content:flex-start;display:flex;margin-top:10px}#workspace .bd-ui .grid,#workspace .bd-ui .three{gap:0}#workspace .bd-ui .bd-form-actions button{flex:1}.bd-list-tools{grid-template-columns:1fr;gap:0}.bd-list-heading{margin-top:22px;padding-top:20px}#workspace .bd-ui #reportCloud{grid-template-columns:1fr}#workspace .bd-ui #reportCloud .record{min-height:100px}#workspace .bd-ui .bd-docs-heading>.actions{width:100%}#workspace .bd-ui .bd-docs-heading #backDocuments{flex:none}#workspace .bd-ui .bd-actions{min-width:220px}#workspace .bd-ui .document-editor-presentation{padding:12px}.bd-list-footer{justify-content:space-between}}
@media(prefers-reduced-motion:reduce){#workspace .bd-ui *{scroll-behavior:auto!important;transition:none!important}}
/* Retained browser-only archive/export utility: presentation only, storage and settings unchanged. */
body.bd-legacy{background:var(--ui-canvas);color:var(--ui-ink);font-family:'DM Sans',system-ui,sans-serif}.bd-legacy header{background:#003e34}.bd-legacy h1,.bd-legacy h2,.bd-legacy h3{font-family:Sora,system-ui,sans-serif;color:var(--ui-green)}.bd-legacy .card{border:1px solid var(--ui-border);border-top:2px solid var(--ui-amber);border-radius:var(--ui-radius);box-shadow:none}.bd-legacy button{background:var(--ui-amber);color:var(--ui-green);border-radius:9px}.bd-legacy button.secondary{background:var(--ui-cream);color:var(--ui-green)}.bd-legacy input,.bd-legacy select,.bd-legacy textarea{border-color:#d6e2da;color:var(--ui-ink)}
