:root{--ink:#182f32;--muted:#6e8183;--teal:#087f76;--teal-light:#e4f3ee;--bg:#f5f7f8;--line:#e3e9e9;--orange:#dc8b37;--red:#c95151;--radius:14px;--shadow:0 8px 30px #193b3810}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.5 'Segoe UI','Nirmala UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}a{color:var(--teal);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.2}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:16px}p{margin:8px 0;color:var(--muted)}small{font-size:11px;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{display:block;font-size:10px;letter-spacing:1.8px;color:var(--teal);font-weight:700;margin-bottom:10px}.primary,.secondary,.danger-button{border:0;border-radius:8px;padding:11px 17px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}.primary{background:var(--teal);color:white}.primary:hover{background:#086b64}.secondary{border:1px solid var(--line);background:white;color:var(--ink)}.secondary:hover{background:#edf3f1}.danger-button{background:#fbe9e9;color:var(--red)}button:disabled{opacity:.55;cursor:wait}.wide{width:100%}.icon-button{background:transparent;border:0;color:var(--muted);padding:7px;font-size:20px}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:750;color:var(--ink)}.brand small{display:block;font-size:8px;letter-spacing:1.6px;margin-top:1px}.brand-mark{width:52px;height:52px;border-radius:13px;background:var(--teal);color:white;font-size:35px;font-weight:750;display:grid;place-content:center;position:relative;line-height:1}.brand-mark span{position:absolute;right:2px;bottom:5px;color:#b7e5cf;font-size:22px}.brand-mark.small{width:38px;height:38px;font-size:27px;border-radius:10px}.brand-mark.small span{font-size:17px;bottom:3px}.sidebar{width:232px;background:#fff;height:100vh;position:fixed;top:0;left:0;display:flex;flex-direction:column;border-right:1px solid var(--line);padding:30px 18px 15px;z-index:10}.sidebar .brand{padding:0 8px 27px}.nav-label{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#8b999a;padding:16px 13px 10px}nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:8px;margin:4px 0;color:#6b7b7d;font-weight:600;font-size:13px}nav a svg{width:18px;height:18px}nav a.active{background:var(--teal-light);color:var(--teal)}nav a:hover{background:#f1f5f4}.sidebar-bottom{margin-top:auto}.portal-link{display:block;border:1px solid var(--line);border-radius:9px;font-size:11px;padding:10px 12px;margin:20px 0}.user{display:flex;gap:9px;align-items:center;border-top:1px solid var(--line);padding-top:17px;font-size:12px}.user div small{display:block}.user form{margin-left:auto}.avatar{display:grid;place-content:center;width:32px;height:32px;background:#e9ede7;color:var(--teal);border-radius:50%;font-weight:700}.workspace{margin-left:232px}.topbar{background:#ffffffde;border-bottom:1px solid var(--line);height:76px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:25px}.top-actions .primary{font-size:12px;padding:10px 14px}.live{font-size:10px;display:flex;align-items:center;gap:6px}.live i{width:6px;height:6px;background:#37a486;border-radius:50%}main#content{max-width:1700px;margin:0 auto;padding:30px 34px 20px;min-height:calc(100vh - 125px)}footer{font-size:10px;color:#93a1a2;padding:12px 34px;display:flex;justify-content:space-between}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:24px}.page-head p{font-size:12px;margin-top:8px}.head-actions{display:flex;gap:9px;align-items:center}.period{background:white;border:1px solid var(--line);padding:10px 13px;border-radius:8px;color:var(--muted);font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:19px 21px;position:relative;min-height:139px}.stat-card.featured{background:var(--teal);border-color:var(--teal);color:white}.stat-card .stat-title{font-size:11px;color:var(--muted);display:block;padding-right:32px}.stat-card.featured .stat-title,.stat-card.featured small{color:#c9e6df}.stat-card strong{font-size:29px;letter-spacing:-1px;display:block;margin:9px 0 3px;font-weight:650}.stat-card .stat-icon{position:absolute;right:19px;top:18px;background:#f1f6f4;border-radius:8px;padding:7px;color:var(--teal);height:32px;width:32px;display:grid;place-content:center}.stat-card.featured .stat-icon{background:#ffffff20;color:white}.stat-card small{font-size:10px}.grid-2{display:grid;grid-template-columns:1.8fr 1fr;gap:20px;margin-bottom:20px}.equal{grid-template-columns:1fr 1fr}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.panel-head h2{font-size:15px}.panel-head small{display:block;font-size:10px;margin-top:4px}.text-link{font-size:11px;font-weight:600;white-space:nowrap}.chart{width:100%;height:225px;display:block}.chart text{font-family:inherit;fill:#8a9a9b;font-size:10px}.legend{display:flex;gap:15px;align-items:center;font-size:10px;color:var(--muted);margin-top:7px}.legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:3px;background:var(--teal);margin-right:5px}.legend span:nth-child(2):before{background:#b7ddd1}.legend span:nth-child(3):before{background:var(--orange)}.table-wrap{overflow:auto;margin:0 -2px}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:9px;text-transform:uppercase;letter-spacing:.8px;color:#8b9b9c;font-weight:600;padding:12px 10px;background:#f8faf9;white-space:nowrap}td{padding:13px 10px;border-bottom:1px solid #edf1f0;vertical-align:middle}tbody tr:last-child td{border-bottom:0}td small{display:block;margin-top:3px}td.money{font-weight:600;white-space:nowrap}.badge{display:inline-block;border-radius:5px;background:#eef3f2;color:#6e8383;padding:4px 7px;font-size:9px;white-space:nowrap;font-weight:600}.badge.green{background:#e4f4eb;color:#329568}.badge.orange{background:#fff3df;color:#b3782d}.badge.red{background:#fbe9e8;color:#b55050}.badge.blue{background:#e9f0ff;color:#5b7ba9}.row-name{display:flex;gap:10px;align-items:center}.row-name b{font-size:11px}.mini-avatar{width:30px;height:30px;flex-shrink:0;border-radius:8px;background:#edf3f0;color:#61816e;display:grid;place-content:center;font-size:10px;font-weight:700}.notice{border-radius:9px;background:#fff7e8;color:#a27635;padding:12px 16px;margin-bottom:20px;font-size:11px;border:1px solid #f3e4ca}.notice.danger{background:#fff0ee;border-color:#f5d9d4;color:var(--red)}.notice.info{background:#ecf4f6;border-color:#dcebed;color:#4e7980}.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:14px}.metric-row span{font-size:10px;color:var(--muted)}.metric-row strong{display:block;font-size:17px;color:var(--ink);margin-top:3px}.toolbar{display:flex;gap:10px;margin-bottom:17px;align-items:center;flex-wrap:wrap}.toolbar input{max-width:330px}.toolbar select{width:auto}.toolbar .count{margin-left:auto;color:var(--muted);font-size:11px}.empty{padding:35px;text-align:center;color:var(--muted);font-size:12px}.loading{padding:70px;text-align:center;color:var(--muted)}label{display:block;color:#5a7376;font-size:11px;font-weight:600}input,select,textarea{width:100%;background:white;border:1px solid #dce5e4;padding:10px 12px;border-radius:7px;color:var(--ink);min-width:0;font-weight:400}input:focus,select:focus,textarea:focus{border-color:var(--teal);outline:2px solid #087f7620}label>input,label>select,label>textarea{margin-top:6px}label small{display:block;margin-top:5px;font-weight:400}textarea{resize:vertical;min-height:80px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-bottom:17px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.full{grid-column:1/-1}.check{display:flex;gap:9px;align-items:flex-start;font-weight:400;font-size:11px}.check input{width:16px;height:16px;margin:2px 0}.hidden{display:none!important}.billing-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.billing-summary{position:sticky;top:20px}.billing-summary strong{font-size:35px;display:block;margin:8px 0 18px;color:var(--teal)}.billing-summary dl{font-size:12px;display:grid;grid-template-columns:1fr auto;gap:14px;margin-bottom:20px}.billing-summary dd{margin:0;font-weight:600;text-align:right}.billing-summary .primary{margin:17px 0 10px}.item-line{display:grid;grid-template-columns:2fr .6fr .8fr .8fr 25px;gap:7px;margin:9px 0;align-items:center}.item-head{font-size:9px;color:var(--muted);margin-bottom:6px}.item-line input{padding:9px 8px;font-size:12px}.line-total{font-size:11px;color:var(--teal);text-align:right;margin-top:-4px;margin-bottom:12px}.customer-context{background:#eef7f3;padding:12px;border-radius:8px;margin:14px 0;font-size:11px;color:var(--teal)}.bill-section{padding-bottom:21px;margin-bottom:21px;border-bottom:1px solid var(--line)}.bill-section h3{font-size:13px;margin-bottom:13px}.keyboard{font-size:10px;color:var(--muted);margin-left:10px}dialog{border:0;border-radius:16px;max-width:900px;width:calc(100% - 35px);padding:0;color:var(--ink);max-height:90vh;box-shadow:0 20px 100px #193b3840}dialog::backdrop{background:#153b3b65;backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:20px 25px}.modal-body{padding:23px 25px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:10px;padding:13px 20px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:opacity .2s;z-index:50;font-size:12px;max-width:90%}#toast.show{opacity:1}.tab-strip{display:flex;gap:5px;margin-bottom:20px;flex-wrap:wrap}.tab-strip button{border:1px solid var(--line);background:white;color:var(--muted);border-radius:20px;padding:7px 13px;font-size:11px}.tab-strip button.active{background:var(--teal);color:white;border-color:var(--teal)}.order-card{border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:14px}.order-card-head{display:flex;justify-content:space-between;align-items:center}.order-card-head h3{font-size:13px}.order-card p{font-size:12px}.order-card .head-actions{margin-top:15px;flex-wrap:wrap}.file-link{display:inline-block;background:#f2f6f4;border-radius:5px;padding:5px 9px;margin:5px 5px 0 0;font-size:10px}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.mini-metric{background:#f6f9f7;border-radius:9px;padding:15px;font-size:11px;color:var(--muted)}.mini-metric strong{display:block;font-size:24px;color:var(--ink)}.setting-section{margin-bottom:20px}.setting-section h3{margin-bottom:15px}.bar-list>div{display:flex;gap:10px;align-items:center;margin:17px 0;font-size:11px}.bar-list span{width:80px;color:var(--muted);flex-shrink:0}.bar-list i{height:7px;border-radius:4px;background:var(--teal);display:block}.bar-list b{font-size:10px;margin-left:auto;white-space:nowrap}.mobile-only{display:none}.auth-body{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:white}.auth-card{max-width:390px;align-self:center;justify-self:center;padding:40px 15px;width:100%}.auth-card>.brand-mark{margin-bottom:32px}.auth-card h1{font-size:30px}.auth-card p{font-size:13px;margin:15px 0 25px}.auth-card label{margin-bottom:17px}.auth-card .primary{margin-top:6px}.subtle-link{display:block;text-align:center;margin-top:28px;font-size:11px;color:var(--muted)}.auth-visual{background:#e6f2eb;padding:14vh 12%;position:relative;overflow:hidden}.auth-visual h2{font-size:44px;line-height:1.1;margin-top:25px}.auth-visual p{font-size:13px;line-height:1.8;margin-top:22px}.paper-art{margin-top:65px;transform:rotate(-8deg);background:#bad5c5;padding:20px;border-radius:12px;width:290px}.paper-art>div{background:white;padding:24px;font-size:16px;font-weight:700}.paper-art b{float:right;font-size:9px;letter-spacing:1px}.paper-art span{display:block;font-size:11px;font-weight:400;margin:14px 0}.paper-art strong{font-size:11px}.paper-art hr{border:0;border-top:1px solid var(--line);margin:24px 0}.public-header{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:25px 35px}.public-header .brand{font-size:22px}.public-body{background:#f0f5f2}.order-layout{max-width:1200px;margin:35px auto 50px;padding:0 35px;display:grid;grid-template-columns:1fr 1.25fr;gap:65px}.order-intro h1{font-size:60px;line-height:1.05;margin:22px 0 30px}.order-intro h1 em{color:var(--teal);font-style:normal}.order-intro p{font-size:14px;max-width:350px;line-height:1.8}.steps{margin-top:45px;display:grid;gap:18px}.steps span{display:flex;gap:16px;font-size:12px;align-items:center}.steps b{background:white;color:var(--teal);border:1px solid var(--line);width:35px;height:35px;display:grid;place-content:center;border-radius:50%;font-size:10px}.order-form{padding:30px}.order-form h2{font-size:23px;margin-bottom:10px}.order-form form{margin-top:25px}.file-drop{padding:20px;background:#f1f7f3;border:1px dashed #bed3ca;border-radius:8px;margin-bottom:17px;text-align:center;color:var(--teal);font-size:13px}.file-drop input{background:white;font-size:11px}.order-form .check{margin-bottom:22px}.honeypot{position:absolute;left:-10000px}.public-footer{justify-content:center}.track-card{max-width:600px;margin:10vh auto;padding:45px;text-align:center}.track-card .brand-mark{margin:0 auto 25px}.track-card h1{font-size:28px}.status-large{background:var(--teal-light);color:var(--teal);padding:14px;border-radius:10px;font-size:20px;margin:25px 0;font-weight:600}.details-list{display:grid;grid-template-columns:1fr 1fr;text-align:left;gap:14px;margin:25px 0;font-size:12px}.details-list dt{color:var(--muted)}.details-list dd{margin:0;text-align:right;font-weight:600}.track-card .secondary{margin:12px}.invoice-body{background:#eaf0ed}.print-toolbar{display:flex;justify-content:space-between;align-items:center;max-width:850px;margin:20px auto;font-size:12px}.invoice-paper{background:white;max-width:850px;margin:0 auto 35px;padding:50px;box-shadow:var(--shadow)}.invoice-header{display:flex;justify-content:space-between;border-bottom:2px solid var(--teal);padding-bottom:30px}.invoice-header p{font-size:11px}.invoice-title{text-align:right}.invoice-title h1{font-size:21px}.invoice-recipient{display:flex;justify-content:space-between;margin:30px 0}.invoice-recipient h2{font-size:17px}.invoice-recipient p{font-size:11px}.invoice-items th{background:var(--teal);color:white;padding:14px 12px}.invoice-items td{padding:17px 12px}.invoice-items th:not(:first-child),.invoice-items td:not(:first-child){text-align:right}.invoice-bottom{display:flex;justify-content:space-between;margin-top:25px;gap:25px}.invoice-qr{width:200px;display:grid;justify-items:start;gap:8px;font-size:11px}.invoice-qr img{width:120px;height:120px}.invoice-qr small{font-size:9px}.invoice-totals{display:grid;grid-template-columns:auto auto;gap:12px 35px;font-size:12px;height:max-content;max-width:380px}.invoice-totals dd{margin:0;text-align:right;font-weight:600}.invoice-totals .total{border-top:1px solid var(--line);padding-top:15px;color:var(--teal);font-size:16px}.invoice-note{font-size:11px;margin-top:35px;border-top:1px solid var(--line);padding-top:18px}.invoice-note.muted{margin-top:10px;padding:0;border:0;font-size:9px}
.stat-icon svg{width:18px;height:18px}.panel-head>svg{width:22px;height:22px;flex-shrink:0;color:var(--teal)}
@media(min-width:1600px){.sidebar{width:255px}.workspace{margin-left:255px}main#content{padding:38px 45px}.stat-card{padding:24px}.stat-card strong{font-size:34px}}
@media(max-width:1150px){.sidebar{width:205px;padding:25px 12px}.workspace{margin-left:205px}.topbar{padding:0 22px}main#content{padding:25px 22px}.stats-grid{gap:10px}.stat-card{padding:15px;min-height:130px}.stat-card strong{font-size:25px}.grid-2{grid-template-columns:1.5fr 1fr}.billing-layout{grid-template-columns:1fr 275px}.stat-card .stat-icon{right:12px}.brand{font-size:21px}.order-layout{gap:35px}}
@media(max-width:850px){.sidebar{left:-240px;transition:left .2s;width:232px}.sidebar.open{left:0;box-shadow:10px 0 100px #193b3830}.workspace{margin-left:0}.mobile-only{display:block}.live{display:none}.topbar{height:65px;padding:0 18px}main#content{padding:23px 18px}.stats-grid{grid-template-columns:repeat(2,1fr)}.grid-2,.grid-2.equal,.billing-layout{grid-template-columns:1fr}.billing-summary{position:static}.auth-body{grid-template-columns:1fr}.auth-visual{display:none}.order-layout{grid-template-columns:1fr;gap:30px}.order-intro h1{font-size:44px}.order-intro h1 br{display:none}.steps{display:none}.order-layout{margin-top:10px}.invoice-paper{margin:0;padding:30px}.print-toolbar{padding:0 20px}.mini-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){h1{font-size:25px}.page-head{flex-direction:column}.head-actions{flex-wrap:wrap}.stat-card strong{font-size:25px}.stat-card .stat-icon{display:none}.stat-card .stat-title{padding-right:0;font-size:10px}.stat-card{min-height:125px}.panel{padding:17px}.form-grid,.form-grid.three{grid-template-columns:1fr}.item-line{grid-template-columns:1.6fr .5fr .7fr .7fr 20px;gap:4px}.item-line input{font-size:10px;padding:8px 4px}.metric-row{grid-template-columns:repeat(2,1fr);gap:16px}.order-layout{padding:0 18px}.public-header{padding:20px 18px}.order-form{padding:22px}.invoice-header,.invoice-recipient,.invoice-bottom{flex-direction:column;gap:20px}.invoice-title{text-align:left}.invoice-paper{padding:25px}.invoice-title h1{font-size:18px}.invoice-totals{width:100%;order:-1}.track-card{margin:20px 15px;padding:27px}.topbar #breadcrumb{font-size:10px}.top-actions .primary{font-size:11px}.keyboard{display:none}}
@media print{body{background:white!important}.print-toolbar,.sidebar,.topbar,footer,#toast,.modal-head .icon-button,.no-print{display:none!important}.invoice-paper{box-shadow:none;max-width:none;margin:0;padding:15px}.invoice-qr img{width:95px;height:95px}.invoice-items tr{break-inside:avoid}.invoice-bottom{break-inside:avoid}.workspace{margin:0}body:has(dialog[open]) .workspace{display:none}dialog[open]{position:static;max-height:none;max-width:none;width:100%;box-shadow:none;margin:0;border:0}dialog::backdrop{display:none}.table-wrap{overflow:visible}th{color:#333!important}a{color:inherit}.modal-body{padding:10px}button{display:none!important}}

/* Public mobile order form */
.order-page .public-header{max-width:700px;padding:24px 20px 12px;justify-content:center}
.order-page .order-layout{display:block;max-width:700px;margin:10px auto 32px;padding:0 20px}
.order-page .order-form{padding:28px}.order-page .order-form h2{font-size:24px}
.order-page input,.order-page select,.order-page textarea{font-size:16px;min-height:48px;width:100%;max-width:100%;box-sizing:border-box}
.order-page input[type=checkbox]{width:20px;min-height:20px;flex-shrink:0}
.order-page .form-grid>label[hidden]{display:none}.order-page .form-grid{gap:16px}
.order-page .file-drop{margin:20px 0 12px;overflow-wrap:anywhere}.order-page input[type=file]{font-size:14px;margin-top:10px}
.order-page #page-detection{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin-bottom:20px}
.order-page .minimum-quote{background:#eaf4ef;border:1px solid #cde0d5;border-radius:12px;padding:18px;margin:22px 0}
.order-page .quote-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;font-weight:600}
.order-page #quote-total{font-size:26px;color:#17624c}.order-page #quote-breakdown{font-size:13px;margin:8px 0 14px}
.order-page .price-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;margin-bottom:14px}
.order-page small{line-height:1.5}.order-page .check{align-items:flex-start;line-height:1.6;font-size:12px;margin-top:22px}
.order-page .wide{min-height:52px}.order-page label{min-width:0}
@media(max-width:540px){.order-page .public-header{padding:20px 14px 10px}.order-page .order-layout{padding:0 12px}.order-page .order-form{padding:20px 16px}.order-page .form-grid{grid-template-columns:1fr}.order-page .full{grid-column:1}.order-page .price-guide{grid-template-columns:1fr}.order-page .quote-heading{align-items:flex-start}.order-page #quote-total{font-size:24px}}

/* DigitXBD identity: transparent logo shared by portal, workspace and invoices. */
.site-logo{display:block;width:210px;max-width:100%;height:auto;object-fit:contain}
.sidebar .brand{display:block;padding:0 0 20px}.sidebar .site-logo{width:190px}
.order-page .public-header .site-logo{width:210px}
.centered-logo{width:230px;margin:0 auto 24px}
.invoice-header .site-logo{width:205px}
@media(max-width:540px){.order-page .public-header{padding-top:12px;padding-bottom:4px}.order-page .public-header .site-logo{width:185px}.centered-logo{width:200px}.invoice-header .site-logo{width:160px}}
@media print{.invoice-header .site-logo{width:180px;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.statement-page{max-width:1000px;margin:35px auto;padding:28px}.theme-toggle{font-size:11px;padding:8px 11px}.order-page .public-header{position:relative}.order-page .theme-toggle{position:absolute;right:0;top:10px;padding:5px 7px;font-size:9px}.auth-card .theme-toggle,.track-card .theme-toggle,.statement-page .theme-toggle{margin-top:18px}
[data-theme=dark]{--ink:#e5f0ed;--muted:#a0b8b2;--line:#344c46;--paper:#14221e;--teal:#61d4b7;--teal-light:#203b32;--shadow:0 3px 18px #0003;color-scheme:dark}
[data-theme=dark] body,[data-theme=dark] .public-body,[data-theme=dark] .auth-body,[data-theme=dark] .invoice-body{background:#14221e;color:var(--ink)}
[data-theme=dark] .sidebar,[data-theme=dark] .topbar,[data-theme=dark] .panel,[data-theme=dark] .stat-card,[data-theme=dark] dialog,[data-theme=dark] .secondary,[data-theme=dark] .tab-strip button,[data-theme=dark] .invoice-paper{background:#1c3029;color:var(--ink);border-color:var(--line)}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#14251f;color:var(--ink);border-color:#405c52}
[data-theme=dark] label,[data-theme=dark] small,[data-theme=dark] .eyebrow{color:#abc8bd}
[data-theme=dark] th,[data-theme=dark] .file-link,[data-theme=dark] .mini-metric,[data-theme=dark] .customer-context,[data-theme=dark] .notice.info,[data-theme=dark] .file-drop,[data-theme=dark] .order-page .minimum-quote,[data-theme=dark] .auth-visual{background:#233f34;color:#cfede1;border-color:#3b6151}
[data-theme=dark] td{border-color:var(--line)}[data-theme=dark] .badge.green{background:#23533d;color:#a2e4bb}[data-theme=dark] .badge.orange,[data-theme=dark] .notice{background:#4a3921;color:#f0cf95;border-color:#755b31}[data-theme=dark] .badge.red,[data-theme=dark] .notice.danger{background:#532c2b;color:#ffc3bc;border-color:#70433e}[data-theme=dark] .badge.blue{background:#253e53;color:#b4d7ff}
[data-theme=dark] .primary{background:#267d62;color:white}[data-theme=dark] .order-page #quote-total{color:#79dfbd}[data-theme=dark] .site-logo{background:transparent;border-radius:0;padding:0;box-sizing:border-box}
@media(max-width:540px){.statement-page{margin:12px;padding:18px}.statement-page .stats-grid{grid-template-columns:1fr}.order-page .public-header{padding-top:34px}}
@media print{[data-theme=dark] .invoice-paper,[data-theme=dark] .statement-page{background:white!important;color:#173b35!important;--ink:#173b35;--muted:#526b65;--teal:#087f76;--line:#d9e3e0}[data-theme=dark] .invoice-paper td,[data-theme=dark] .invoice-paper small,[data-theme=dark] .statement-page td,[data-theme=dark] .statement-page small{color:#173b35!important}[data-theme=dark] .invoice-items th{background:#087f76!important;color:white!important}.theme-toggle{display:none!important}}

.invoice-qr-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:310px;align-items:start;flex-shrink:0}.invoice-qr-group .invoice-qr{width:auto}.invoice-qr-group>.full{font-size:9px;line-height:1.5}.invoice-qr-group .invoice-qr img{width:115px;height:115px}
[data-theme=dark] .sidebar nav a{color:#b3cbc1}[data-theme=dark] .sidebar nav a.active{color:#78dfc0}[data-theme=dark] .stat-card.featured{background:#245848;color:#edfff5;border-color:#35705a}

/* Black glass workspace. Neutral surfaces; blue focus and clear text. */
[data-theme=dark]{--ink:#f4f5f8;--muted:#b1b6c2;--line:#ffffff21;--paper:#050507;--teal:#a9bfff;--teal-light:#ffffff0c;--shadow:0 18px 45px #0006}
[data-theme=dark] body,[data-theme=dark] .public-body,[data-theme=dark] .auth-body,[data-theme=dark] .invoice-body{background:#050507;color:var(--ink);background-image:radial-gradient(ellipse at 95% 0%,#17203855,transparent 55%),radial-gradient(ellipse at 0% 100%,#24203133,transparent 45%);background-attachment:fixed}
[data-theme=dark] .sidebar,[data-theme=dark] .topbar,[data-theme=dark] .panel,[data-theme=dark] .stat-card,[data-theme=dark] dialog,[data-theme=dark] .invoice-paper,[data-theme=dark] .track-card{background:linear-gradient(135deg,#ffffff0b,#ffffff04);background-color:#08090cd9;border:1px solid #ffffff21;color:#f4f5f8;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 16px 40px #0004,inset 0 1px 0 #ffffff09}
[data-theme=dark] .sidebar{background-color:#07080bed}[data-theme=dark] .topbar{background-color:#090a0de8}
[data-theme=dark] .secondary,[data-theme=dark] .tab-strip button{background:#ffffff09;color:#e9edf7;border-color:#ffffff2c}
[data-theme=dark] .primary,[data-theme=dark] .tab-strip button.active{background:#d7e1ff;color:#11182b;border-color:#d7e1ff}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#090b10;color:#f4f5f8;border-color:#ffffff30}
[data-theme=dark] select option{background:#11131a;color:#f4f5f8}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#a6abba}
[data-theme=dark] input:focus,[data-theme=dark] select:focus,[data-theme=dark] textarea:focus{border-color:#afc0ff;outline:2px solid #8bafff40}
[data-theme=dark] label,[data-theme=dark] small,[data-theme=dark] .eyebrow,[data-theme=dark] .muted{color:#b8becc}
[data-theme=dark] th,[data-theme=dark] .file-link,[data-theme=dark] .mini-metric,[data-theme=dark] .customer-context,[data-theme=dark] .notice.info,[data-theme=dark] .file-drop,[data-theme=dark] .order-page .minimum-quote,[data-theme=dark] .auth-visual{background:#ffffff09;color:#e3e8f3;border-color:#ffffff26}
[data-theme=dark] td,[data-theme=dark] .invoice-header{border-color:#ffffff25}
[data-theme=dark] .badge.green,[data-theme=dark] .badge.blue{background:#a4bbff1b;color:#cfdbff}
[data-theme=dark] .badge.orange,[data-theme=dark] .notice{background:#fac06c12;color:#ffe0ad;border-color:#fac06c30}
[data-theme=dark] .badge.red,[data-theme=dark] .notice.danger{background:#ff727216;color:#ffc1c1;border-color:#ff72722b}
[data-theme=dark] .sidebar nav a{color:#bbc1cf}[data-theme=dark] .sidebar nav a.active,[data-theme=dark] .sidebar nav a:hover{color:#f4f5ff;background:#ffffff0e}
[data-theme=dark] .stat-card.featured{background:linear-gradient(135deg,#24304c99,#121621cc);color:#f4f5ff;border-color:#bdceff40}
[data-theme=dark] .stat-card.featured small,[data-theme=dark] .stat-card.featured .stat-title{color:#d5ddf0}
[data-theme=dark] .mini-avatar,[data-theme=dark] .avatar{background:#ffffff12;color:#dbe4ff}
[data-theme=dark] .live i{background:#a9bfff}[data-theme=dark] .order-page #quote-total{color:#d1ddff}
[data-theme=dark] svg [fill="#087f76"],[data-theme=dark] svg [fill="#a4c8a0"]{fill:#97b2ff}[data-theme=dark] svg [stroke="#087f76"]{stroke:#97b2ff}
[data-theme=dark] .chart text{fill:#bdc5d6}[data-theme=dark] #toast{background:#202430;color:#f4f5ff;border:1px solid #ffffff35}
[data-theme=dark] dialog::backdrop{background:#000a;backdrop-filter:blur(8px)}
.danger-button{background:#fff0f0;color:#a12b36;border:1px solid #e9b9bd;border-radius:7px;padding:8px 11px;font-size:11px;cursor:pointer;margin:3px}
.invoice-paper{position:relative;isolation:isolate}.paid-watermark{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%) rotate(-25deg);font-size:110px;font-weight:800;letter-spacing:12px;color:#245ea710;pointer-events:none;z-index:-1;border:8px solid currentColor;border-radius:16px;padding:4px 25px;user-select:none}[data-theme=dark] .paid-watermark{color:#ccdcff15}@media(max-width:500px){.paid-watermark{font-size:65px;padding:4px 16px;letter-spacing:6px}}@media print{.paid-watermark,[data-theme=dark] .paid-watermark{color:#3866a126!important;z-index:-1;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
[data-theme=dark] .danger-button{background:#ff686812;color:#ffc2c7;border-color:#ffaaaa35}
.mobile-item-label span{display:none}.mobile-item-label input{margin:0}.transactions-panel{min-width:0}.transactions-panel .table-wrap{max-height:70vh;overflow:auto}.transactions-panel thead{position:sticky;top:0;z-index:1}.transactions-panel table{min-width:2250px}
.transaction-details-toggle{display:none}@media(max-width:767px){.transaction-details-toggle{display:block}.transactions-panel tr:not(.expanded) td:nth-child(5),.transactions-panel tr:not(.expanded) td:nth-child(7),.transactions-panel tr:not(.expanded) td:nth-child(8),.transactions-panel tr:not(.expanded) td:nth-child(9),.transactions-panel tr:not(.expanded) td:nth-child(10),.transactions-panel tr:not(.expanded) td:nth-child(12),.transactions-panel tr:not(.expanded) td:nth-child(13),.transactions-panel tr:not(.expanded) td:nth-child(15),.transactions-panel tr:not(.expanded) td:nth-child(18),.transactions-panel tr:not(.expanded) td:nth-child(19),.transactions-panel tr:not(.expanded) td:nth-child(20),.transactions-panel tr:not(.expanded) td:nth-child(21){display:none}}
.invoice-header{align-items:flex-start;gap:20px}.invoice-verify{margin-left:auto;width:82px;flex-shrink:0;justify-items:center}.invoice-verify img{width:78px;height:78px;background:white}.invoice-verify small{font-size:9px}.invoice-qr-group{max-width:290px}.invoice-qr-group .invoice-qr img{width:145px;height:145px;background:white}.invoice-qr-group .invoice-qr{width:auto}
.merchant-image-preview{display:block;max-width:240px;max-height:360px;width:auto;height:auto;margin:18px 0;background:white;border-radius:8px;padding:4px}.invoice-qr-group:has(.original-merchant-image){display:block;max-width:280px}.invoice-qr-group .original-merchant-image img{width:220px;height:auto;max-width:100%;object-fit:contain}.invoice-qr-group:has(.original-merchant-image)>.full{display:block;margin-top:12px}@media print{.invoice-qr-group .original-merchant-image img{width:190px;height:auto}}
@media(max-width:767px){
 body{font-size:14px}.top-actions{gap:6px}.top-actions .primary{padding:10px}.theme-toggle{font-size:11px!important;padding:10px!important}main#content{padding:18px 12px}.topbar{padding:0 12px}.panel{padding:16px}.page-head p{font-size:13px}.sidebar nav a{min-height:48px;font-size:14px}.sidebar{overflow-y:auto}.sidebar-bottom{position:static;margin-top:25px}
 input,select,textarea{font-size:16px;min-height:44px;padding:11px}label{font-size:13px}button,.primary,.secondary,.danger-button,.file-link{min-height:44px;font-size:12px;padding:10px 12px}.icon-button{min-width:44px}.form-grid,.form-grid.three{grid-template-columns:1fr}.toolbar{align-items:stretch}.toolbar input,.toolbar select{max-width:none;flex:1 1 100%;width:100%}.toolbar .count{margin-left:0;align-self:center}.head-actions{gap:8px;flex-wrap:wrap}.modal-head,.modal-body{padding:16px}dialog{width:calc(100% - 16px);max-height:94dvh;border-radius:13px}.modal-footer{flex-wrap:wrap}.modal-footer button{flex:1}.stats-grid{gap:8px}.stat-card strong{font-size:24px}.stat-card small{font-size:11px}.order-card-head{align-items:flex-start;gap:12px}.order-card-head h3 small{display:block}.order-card .head-actions>*{flex-grow:1}.file-link{overflow-wrap:anywhere}.item-line:not(.item-head){grid-template-columns:1fr 1fr;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.item-head{display:none}.mobile-item-label span{display:block;font-size:12px;margin-bottom:5px}.item-line>label:first-child{grid-column:1/-1}.item-line input{font-size:16px;padding:11px}.item-line>.icon-button{justify-self:end}.line-total{font-size:14px;margin:8px 0 16px}
 .table-wrap{overflow:visible}.table-wrap table,.transactions-panel table{display:block;min-width:0;width:100%}.table-wrap thead{display:none}.table-wrap tbody{display:block}.table-wrap tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.table-wrap td{display:block;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;font-size:13px}.table-wrap td::before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;font-weight:600;margin-bottom:4px}.table-wrap td:last-child{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap;align-items:center}.table-wrap td:last-child::before{flex-basis:100%}.transactions-panel .table-wrap{max-height:none}.transactions-panel td:nth-child(8),.transactions-panel td:nth-child(21){grid-column:1/-1}.table-wrap .empty{grid-column:1/-1}.invoice-header{display:grid;grid-template-columns:1fr auto}.invoice-verify{grid-column:2;grid-row:1}.invoice-title{grid-column:1/-1}.invoice-items{display:table!important}.invoice-items thead{display:table-header-group!important}.invoice-items tbody{display:table-row-group!important}.invoice-items tr{display:table-row!important}.invoice-items td{display:table-cell!important}.invoice-items td::before{display:none!important}
}
@media print{.invoice-verify img{width:78px;height:78px}.invoice-verify{width:82px}.invoice-qr-group .invoice-qr img{width:125px;height:125px}.mobile-item-label span{display:none}.table-wrap table{display:table!important;min-width:0!important}.table-wrap thead{display:table-header-group!important}.table-wrap tbody{display:table-row-group!important}.table-wrap tr{display:table-row!important}.table-wrap td{display:table-cell!important;padding:8px!important}.table-wrap td::before{display:none!important}[data-theme=dark] .invoice-paper{background:white!important;color:#173b35!important;backdrop-filter:none;box-shadow:none;border:0}[data-theme=dark] .invoice-paper th{background:#f0f2f5!important;color:#173b35!important}[data-theme=dark] .invoice-paper .invoice-totals .total{color:#173b35!important}}
