/* One company palette across React and PHP screens. */
html{--accent:#176b87;--accent-deep:#15475e;--accent-soft:#edf5f7;--canvas:#f3f6f7;--ink:#20343e;--muted:#6c818c;--border:#dce5e8;--primary:var(--accent)}
html[data-theme=forest]{--accent:#28745a;--accent-deep:#214b3c;--accent-soft:#edf6f0;--canvas:#f3f7f4;--ink:#223a2d;--muted:#728479;--border:#dce7de}
html[data-theme=violet]{--accent:#7252a1;--accent-deep:#4b376a;--accent-soft:#f3eef9;--canvas:#f7f5fa;--ink:#342c44;--muted:#84768f;--border:#e5deed}
html[data-theme=slate]{--accent:#344c70;--accent-deep:#23334e;--accent-soft:#edf1f7;--canvas:#f4f6fa;--ink:#253348;--muted:#778496;--border:#dce3ed}
html[data-theme=copper]{--accent:#a5643f;--accent-deep:#6f482f;--accent-soft:#faf1ea;--canvas:#faf6f2;--ink:#423328;--muted:#907e70;--border:#eaddd2}
html body,html .shell,html .workspace,html .mainarea,html .native-workspace>main{background:var(--canvas)!important;color:var(--ink)!important}
html .primary,html .shell .primary,html .brandmark,html .setup-icon,html .mobileadd{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;box-shadow:none!important}
html .secondary,html .fullbutton{border-color:var(--border)!important;color:var(--accent-deep)!important;background:#fff!important}
html .card,html .metric,html .company,html .record-page>.modal{border-color:var(--border)!important;background:#fff!important;box-shadow:0 2px 4px #122b3603!important}
html h1,html h2,html h3,html .shell .card h2,html .shell .pageheading h1,html .shell .metric strong,html .shell .rowname b{color:var(--ink)!important}
html .navitem,html .navchild{color:var(--muted)!important;min-height:34px!important;padding-top:7px!important;padding-bottom:7px!important}
html .navgroup{margin:0!important}html .menutree{gap:2px!important}html .navchildren{padding-bottom:2px!important}html .navitem.active,html .navchild.active,html .admin-hub a[aria-current=page]{background:var(--accent-soft)!important;color:var(--accent)!important}
html .navitem svg,html .topbar svg,html .rowicon,html .metricicon{color:var(--accent)!important}html .navlabel,html .sidebar-search{display:none!important}
html .invoiceeditor,html .contactfields,html .invoicepayments,html .invoicepay,html .stockfields,html .setup-card,html .numberhint,html .tip{background:var(--accent-soft)!important;border-color:var(--border)!important;color:var(--muted)!important}
html .cardheading p,html .pageheading p,html .shell .pageheading p,html .shell .metric>div>span,html .breadcrumb,html .footnote,html .record-page .numberhint{color:var(--muted)!important}
html input:not([type=checkbox]):not([type=radio]):not([type=file]),html select,html textarea{border:1px solid var(--border)!important;background:#fff!important;color:var(--ink)!important;border-radius:9px!important;box-shadow:none!important;font:inherit;min-height:42px;padding:10px 12px;max-width:100%;box-sizing:border-box}
html input:focus,html select:focus,html textarea:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)!important}
html .native-workspace main>section.card{padding:26px;border-radius:16px;margin:18px 0}html .adminform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:end}html .adminform label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:13px;color:var(--muted)}html form>label{font-size:13px}html .native-workspace .card p{color:var(--muted);line-height:1.7;font-size:13px}html .adminform button{align-self:end;min-height:42px}html .permission-check{display:flex;align-items:center;gap:9px;padding:13px 0}html .license-module{background:var(--canvas);border:1px solid var(--border);border-radius:12px;padding:20px}html .license-grid{gap:18px}.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.plan-card{padding:30px!important}.plan-card>strong{display:block;font-size:34px;color:var(--accent);margin-top:24px}.plan-card>strong small{font-size:13px;font-weight:400}.plan-current{padding:24px}.plan-card>small,.plan-current>small{font-size:11px;letter-spacing:1.5px;color:var(--muted)}
.settings-studio{display:grid;grid-template-columns:260px 1fr;background:#fff;border:1px solid var(--border);border-radius:20px;overflow:hidden;min-height:570px;margin-top:22px}.studio-rail{background:var(--accent-deep);color:white;padding:32px 22px}.studio-rail>small{font-size:9px;letter-spacing:2px;opacity:.6}.studio-rail h2{font-size:24px;line-height:1.35;margin:22px 0;color:white!important;font-weight:500;letter-spacing:-.6px}.studio-rail>p{font-size:12px;line-height:1.8;opacity:.65;margin-bottom:35px}.studio-rail button{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;padding:13px 14px;border:0;border-radius:9px;background:transparent;color:#ffffffa8;font-size:13px;margin:5px 0}.studio-rail button.selected{background:#ffffff19;color:white}.studio-content{padding:34px 40px}.studio-content>header{padding-bottom:24px;border-bottom:1px solid var(--border)}.studio-content header small{font-size:9px;letter-spacing:1.7px;color:var(--accent)}.studio-content header h2{font-size:25px;margin:12px 0 7px}.studio-content header p{font-size:13px;color:var(--muted)}.studio-options{display:flex;flex-direction:column;padding-top:12px}.studio-options>a,.studio-options>button{display:flex;align-items:center;gap:20px;padding:23px 0;border:0;border-bottom:1px solid var(--border);background:transparent;text-decoration:none;text-align:left;font:inherit;color:var(--ink)}.studio-options>a:hover,.studio-options>button:hover{background:var(--canvas)}.studio-options>button:disabled{opacity:.6}.studio-options>*>span:nth-child(2){flex:1}.studio-options b{display:block;font-size:15px;font-weight:500}.studio-options small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.studio-options .studio-symbol{width:44px;height:44px;background:var(--accent-soft);color:var(--accent);border-radius:12px;display:grid;place-items:center;flex-shrink:0}
.asset-intro{border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:20px}.asset-intro h2{font-size:18px}.asset-row{display:grid;grid-template-columns:64px 135px 1fr auto;gap:20px;align-items:center;border:1px solid var(--border);padding:20px;border-radius:12px;margin:14px 0}.asset-row small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.asset-row p{font-size:12px}.asset-preview{width:58px;height:58px;display:grid;place-items:center;background:var(--canvas);border:1px dashed var(--border);border-radius:9px}.asset-preview img{max-width:54px;max-height:54px;object-fit:contain}.asset-preview span{color:var(--muted);font-size:24px}.asset-row .upload-btn{display:inline-flex!important;gap:7px;align-items:center;background:var(--accent-soft);color:var(--accent);padding:10px 15px;border-radius:8px;cursor:pointer;margin:0}.upload-btn input{width:1px;height:1px;opacity:0;position:absolute}.asset-remove{grid-column:2/5;color:var(--muted)}.document-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 24px}.document-tabs a{padding:10px 15px;background:var(--canvas);color:var(--muted);text-decoration:none;border-radius:9px;font-size:12px}.document-tabs a[aria-current=page]{background:var(--accent);color:white}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.theme-choice{position:relative;border:1px solid var(--border);border-radius:12px;padding:16px;cursor:pointer;margin:0!important}.theme-choice:has(input:checked){border:2px solid var(--accent)}.theme-choice input{position:absolute;right:12px;top:12px;accent-color:var(--preview)}.theme-swatch{display:block;width:100%;height:75px;background:linear-gradient(110deg,var(--preview) 30%,color-mix(in srgb,var(--preview),white 88%) 30%);border-radius:8px;margin-bottom:12px}.theme-choice b{display:block;font-size:14px}.theme-choice small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:5px}.company-list form,.bank-order{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:18px 0;border-bottom:1px solid var(--border)}.read-notifications{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:0;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:11px;float:right}.danger-zone{border-color:#eabbbb!important}.gateway-settings form{max-width:950px}.gateway-settings form>label{display:block;margin:20px 0}.asset-preview img{background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 50% / 10px 10px}
@media(max-width:1100px){.settings-studio{grid-template-columns:210px 1fr}.studio-content{padding:28px}.theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-row{grid-template-columns:54px 100px 1fr auto;gap:12px}}
@media(max-width:700px){.settings-studio{grid-template-columns:1fr;margin-top:10px;border-radius:14px;min-height:0}.studio-rail{padding:18px;display:flex;gap:6px;flex-wrap:wrap}.studio-rail>small,.studio-rail h2,.studio-rail>p{display:none}.studio-rail button{width:auto;flex:1;min-width:120px;margin:0;padding:10px 12px;font-size:12px}.studio-content{padding:22px}.studio-options>a,.studio-options>button{gap:12px;padding:20px 0}.studio-options b{font-size:14px}.studio-options small{font-size:11px}.studio-options .studio-symbol{width:36px;height:36px}.plan-grid{grid-template-columns:1fr}.plan-card>strong{font-size:30px}.asset-row{grid-template-columns:48px 1fr auto;padding:15px;gap:12px}.asset-row p{grid-column:2/4;margin:0!important;font-size:10px!important}.asset-row .upload-btn{grid-column:3;grid-row:1;font-size:12px;padding:9px 12px}.asset-remove{grid-column:2/4}.asset-preview{width:45px;height:45px}.asset-preview img{max-width:42px;max-height:42px}.theme-options{gap:10px}.theme-choice{padding:12px}.theme-swatch{height:60px}html .adminform{grid-template-columns:1fr;gap:16px}html .native-workspace main>section.card{padding:20px}.document-tabs{gap:6px}.document-tabs a{padding:9px 11px}.bank-order b{font-size:10px;overflow-wrap:anywhere}.admin-hub{gap:8px}.admin-hub section{padding:10px}.navitem{min-height:33px!important}}
@media screen{html .tpltitle i,html .tpltable thead,html .tplgrand{background:var(--accent)!important}html .invoicedoctable th{color:white!important}.tplwords,.tplnotes{border-color:var(--border)!important}.invoice-template .tplgrand strong{color:#fff!important}}
@media print{.settings-studio,.theme-options,.admin-hub,.document-tabs{display:none!important}html body{background:#fff!important}}
.integration-hero{padding:28px 32px;background:var(--accent-deep);border-radius:16px;color:white;margin:22px 0}.integration-hero>span{font-size:10px;letter-spacing:2px;opacity:.7}.integration-hero h2{font-size:27px;color:white!important;font-weight:500;margin:14px 0}.integration-hero p{font-size:13px;opacity:.7;line-height:1.8}.integration-hero>b{display:inline-block;padding:7px 12px;border:1px solid #ffffff30;border-radius:20px;font-size:10px;font-weight:400;margin-top:10px}.integration-step{display:flex;align-items:center;gap:16px;margin:14px 0 22px}.integration-step>small{width:34px;height:34px;border-radius:50%;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent)}.integration-step h2{font-size:17px;margin:0}.integration-step p{font-size:12px!important;margin:4px 0 0}.integration-step:not(:first-child){margin-top:35px}.integration-advanced{padding:18px 0;border-top:1px solid var(--border);margin-top:28px}.integration-advanced summary{font-size:12px;color:var(--muted);cursor:pointer}.integration-advanced .adminform{margin-top:20px}.integration-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--border);padding-top:22px;margin-top:14px}.integration-footer label{font-size:12px}.portal-card{display:flex;align-items:center;gap:25px}.portal-card>div{flex:1}.portal-card h2{font-size:18px}.integration-diagnostics{padding:20px;border:1px solid var(--border);border-radius:12px;margin:20px 0;color:var(--muted);font-size:12px}.dashboard-quick-actions{max-width:900px;margin:20px 0}.native-workspace .inlineform{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.native-workspace .card h2{font-size:20px;letter-spacing:-.4px}.native-workspace .adminform>button{max-width:230px}.native-workspace .license-module small{display:block;font-size:11px;line-height:1.6;margin:8px 0}.native-workspace .license-module label{font-size:13px}.native-workspace code{overflow-wrap:anywhere;word-break:break-word;font-size:12px}.asset-row .upload-btn:focus-within{outline:2px solid var(--accent)}
@media(max-width:700px){.integration-hero{padding:22px}.integration-hero h2{font-size:22px}.portal-card{display:block}.portal-card .secondary{margin-top:10px}.integration-footer{align-items:stretch;flex-direction:column}.integration-footer label{padding:10px 0}}
.preferences-card .asset-row .upload-btn{position:relative;overflow:hidden}.preferences-card .asset-row .upload-btn input[type=file]{position:absolute!important;inset:0!important;width:100%!important;max-width:100%!important;height:100%!important;min-height:0!important;padding:0!important;opacity:0;cursor:pointer}.preferences-card .theme-choice input[type=radio]{width:16px!important;height:16px!important;max-width:16px!important;min-height:0!important;padding:0!important;right:12px;top:12px}.preferences-card .asset-remove{display:flex!important;align-items:center;gap:8px;font-size:11px;margin:0!important}
.auth-workspace .authcard{max-width:620px;padding:36px;border:1px solid var(--border);border-radius:20px;background:#fff;box-shadow:0 16px 60px #16344308}.auth-workspace .authcard h1{font-size:27px;letter-spacing:-.7px;color:var(--ink)}.auth-workspace .authcard label{display:flex;flex-direction:column;gap:8px;margin:16px 0;color:var(--muted);font-size:13px}.auth-workspace .authcard button{margin-top:16px;border-radius:9px;background:var(--accent);color:white;padding:13px 20px;border:0}.auth-workspace>header{background:transparent;border:0;box-shadow:none}
@media(max-width:700px){.auth-workspace .authcard{padding:24px;border-radius:15px}}
html .companyavatar,html .avatar,html .user .avatar,html .mint,html .peach,html .lavender,html .sand,html .quickicon,html .rowicon,html .categoryicon{background:var(--accent-soft)!important;color:var(--accent)!important}html .greenDot,html .liveDot{background:var(--accent)!important}html .linechart polyline{stroke:var(--accent)!important}html .linechart circle{fill:var(--accent)!important}html .linechart g:nth-of-type(2) polyline{stroke:var(--muted)!important}html .linechart g:nth-of-type(2) circle{fill:var(--muted)!important}html footer{color:var(--muted)}html .sendnotification{border-color:var(--border);color:var(--accent)}
@media print{html .tpltitle i,html .tpltable thead{background:var(--accent)!important}.tpltable th{color:white!important}}
