/* ETDWEB 0.2.64: preferinte vizuale. Reguli aplicate doar ecranului, nu tiparirii. */
:root{--ui-bg:#f6f7f9;--ui-surface:#fff;--ui-text:#24323e;--ui-muted:#566774;--ui-border:#bdc9d2;--ui-bar:#f2f4f6;--ui-button:#e2e7eb;--ui-hover:#e7f1f8;--ui-accent:#1b7aa6;--ui-selected:#236e98;--ui-head:#7f8c98;--ui-onhead:#fff;--ui-input:#fff;--ui-sum:#eef0f3;--ui-rest:#fbe5e8;--ui-edit:#fffbe8;--ui-onaccent:#fff;--ui-rail:#cdd6dd;--ui-danger:#c72d35;--ui-success:#217746}
.etd-color-symbol{display:block;width:24px;height:24px;border:1px solid currentColor;background:linear-gradient(135deg,#fff 0 49%,#26384d 51% 100%);box-shadow:0 0 0 2px #ffffff55 inset}
#etd-colors{display:flex!important;align-items:center;justify-content:center;width:34px!important;height:34px;padding:4px!important;color:var(--ui-text)}
#etd-colors:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-1px}
.top #menu .menu-sep{border-top-width:1px;border-top-color:var(--ui-border);margin:5px 10px}
.etd-appearance{color:var(--ui-text);background:var(--ui-surface)}
.etd-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.etd-theme-grid button{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 10px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);text-align:left;border-radius:4px}
.etd-theme-grid button:hover{background:var(--ui-hover)}
.etd-theme-grid button[aria-pressed=true]{border:2px solid var(--ui-accent);padding:7px 9px;background:var(--ui-hover);font-weight:700}
.etd-theme-grid button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.etd-swatch{width:26px;height:26px;border:1px solid #0004;border-radius:50%;background:var(--swatch);flex:none;box-shadow:0 0 0 2px #fff8 inset}
.etd-theme-check{margin-left:auto;visibility:hidden}.etd-theme-grid [aria-pressed=true] .etd-theme-check{visibility:visible}
.etd-appearance [role=status]{font-weight:600;min-height:20px}
@media screen{
html[data-etd-theme]{--sg-text:var(--ui-text);--sg-muted:var(--ui-muted);--sg-line:var(--ui-border);--sg-head:var(--ui-head);--sg-head-line:var(--ui-border);--sg-sel:var(--ui-selected);--sg-hover:var(--ui-hover);--sg-bar:var(--ui-bar);--sg-btn:var(--ui-button);--sg-btn-hover:var(--ui-hover);--sg-btn-line:var(--ui-border);--sg-icon:var(--ui-text);--sg-pink:var(--ui-rest);--sg-pink-sel:var(--ui-selected);--sg-sum:var(--ui-sum);--sg-rail:var(--ui-rail);--sg-rail-top:var(--ui-accent);--sg-edit:var(--ui-edit);background:var(--ui-bg);color:var(--ui-text)}
html[data-etd-theme=negru]{color-scheme:dark;--ui-bg:#20222b;--ui-surface:#30333e;--ui-text:#f0f1f5;--ui-muted:#bec4d1;--ui-border:#565c6c;--ui-bar:#282b35;--ui-button:#3c404e;--ui-hover:#454d60;--ui-accent:#9bc6f3;--ui-selected:#475f7c;--ui-head:#191c25;--ui-input:#252833;--ui-sum:#3e4352;--ui-rest:#4d3540;--ui-edit:#443f2e;--ui-onaccent:#172334;--ui-rail:#373b49;--ui-danger:#ff777d;--ui-success:#8bddad}
html[data-etd-theme=gri]{--ui-bg:#e7e8eb;--ui-surface:#f7f7f8;--ui-text:#2b3038;--ui-muted:#555d69;--ui-border:#bac0c8;--ui-bar:#e1e3e7;--ui-button:#d2d6dc;--ui-hover:#e0e5ec;--ui-accent:#525d6c;--ui-selected:#535f70;--ui-head:#626b77;--ui-input:#fff;--ui-sum:#e6e8eb;--ui-rest:#f5e0e4;--ui-rail:#c8ccd3}
html[data-etd-theme=rosu]{--ui-bg:#f6edef;--ui-surface:#fffafb;--ui-text:#3e2730;--ui-muted:#70505b;--ui-border:#d7b6bd;--ui-bar:#f2e2e6;--ui-button:#ebcfd6;--ui-hover:#f2d8de;--ui-accent:#9e303d;--ui-selected:#913140;--ui-head:#943744;--ui-input:#fff;--ui-sum:#f1e0e4;--ui-rest:#f7d3da;--ui-rail:#e6c3cc}
html[data-etd-theme=bleu-inchis]{color-scheme:dark;--ui-bg:#132031;--ui-surface:#1b2d44;--ui-text:#edf4ff;--ui-muted:#b3c8df;--ui-border:#486281;--ui-bar:#17283d;--ui-button:#29425f;--ui-hover:#345575;--ui-accent:#8fcaff;--ui-selected:#306397;--ui-head:#102036;--ui-input:#15263c;--ui-sum:#293e58;--ui-rest:#493747;--ui-edit:#3c432d;--ui-onaccent:#10243b;--ui-rail:#233a55;--ui-danger:#ff8289;--ui-success:#8de1b5}
html[data-etd-theme=galben]{--ui-bg:#f5f0dd;--ui-surface:#fffdf3;--ui-text:#3d351b;--ui-muted:#6b6042;--ui-border:#c9ba85;--ui-bar:#f0e6bd;--ui-button:#e9d995;--ui-hover:#f0df9d;--ui-accent:#755615;--ui-selected:#725719;--ui-head:#d5b44e;--ui-onhead:#30260d;--ui-input:#fffef8;--ui-sum:#efe6c4;--ui-rest:#f5dcd3;--ui-rail:#dfce90}
html[data-etd-theme=verde]{--ui-bg:#eaf1ed;--ui-surface:#fafffc;--ui-text:#233c31;--ui-muted:#4d6c5b;--ui-border:#b0cbbb;--ui-bar:#deebe3;--ui-button:#c9ded2;--ui-hover:#d3e8dc;--ui-accent:#26664e;--ui-selected:#26664e;--ui-head:#326b54;--ui-input:#fff;--ui-sum:#e0ece5;--ui-rest:#f4dedf;--ui-rail:#bed8c9}
html[data-etd-theme=violet]{--ui-bg:#efeaf6;--ui-surface:#fdfbff;--ui-text:#352c46;--ui-muted:#665777;--ui-border:#c5b6d7;--ui-bar:#e8dff1;--ui-button:#dacde9;--ui-hover:#e2d6ef;--ui-accent:#65508b;--ui-selected:#65508b;--ui-head:#6c578d;--ui-input:#fff;--ui-sum:#e9e0f2;--ui-rest:#f5dde6;--ui-rail:#cec0df}
html[data-etd-theme] body{background:var(--ui-bg);color:var(--ui-text)}
html[data-etd-theme] :is(.top,.panel,.login,.sg-screen,.sg-page,.sg-scroll,.sg-strip,.sg-side,.reg-card,.ef-detail,.sg-pop,.sg-menu,.sg-picker,dialog,.cfg-body,.cfg-card,.cfg-content){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}
html[data-etd-theme] :is(button,input,select,textarea){color:var(--ui-text);border-color:var(--ui-border)}
html[data-etd-theme] :is(button,input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:var(--ui-input)}
html[data-etd-theme] :is(input,textarea)::placeholder{color:var(--ui-muted);opacity:1}
html[data-etd-theme] :is(input,select,textarea)[readonly]{background:var(--ui-bar);color:var(--ui-muted)}
html[data-etd-theme] :is(.primary,button.primary){background:var(--ui-selected);border-color:var(--ui-selected);color:#fff}
html[data-etd-theme] :is(.top nav button,.top #identity,.top #logout){color:var(--ui-text)}
html[data-etd-theme] .top .logo::after,html[data-etd-theme] .sg-topicon{color:var(--ui-accent)}
html[data-etd-theme] .sg-topicon .sg-ico,html[data-etd-theme] .sg-rail-foot .sg-ico{stroke:var(--ui-accent)}
html[data-etd-theme] .top .logo,html[data-etd-theme] #rail-toggle{background:var(--ui-accent)!important;color:var(--ui-onaccent)!important}
html[data-etd-theme] .top .logo::before{border-color:var(--ui-onaccent);color:var(--ui-onaccent)}
html[data-etd-theme] #shell aside{border-color:var(--ui-border)!important}
html[data-etd-theme] #rail-title,html[data-etd-theme] .sg-rail-foot{color:var(--ui-text);border-color:var(--ui-text)}
html[data-etd-theme] :is(#nav-drawer,.top #menu){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}
html[data-etd-theme] :is(#nav-drawer,.top #menu) :is(button,summary,kbd,.nav-caption){color:var(--ui-text);background:transparent}
html[data-etd-theme] .top #menu .menu-icon svg{stroke:var(--ui-accent);fill:transparent}
html[data-etd-theme] :is(.top nav button,.top #logout,.top #menu button,#nav-drawer button,.sg-rail-foot button):hover,html[data-etd-theme] .top #menu button:focus-visible{background:var(--ui-hover)}
html[data-etd-theme] :is(.sg-toolbar,.toolbar,.sg-statusbar,.sg-bottom,.fx-linebar,.reg-tabs,.reg-card-title,.cfg-tabs,.cfg-toolbar,dialog footer){background:var(--ui-bar);color:var(--ui-text);border-color:var(--ui-border)}
html[data-etd-theme] .sg-btn,html[data-etd-theme] .sg-bottom .sg-wide{color:var(--ui-text)!important}
html[data-etd-theme] .sg-btn:disabled,html[data-etd-theme] .sg-wide:disabled{color:var(--ui-muted)!important;opacity:.55}
html[data-etd-theme] .sg-btn:disabled .sg-ico{stroke:var(--ui-muted)}
html[data-etd-theme] .sg-btn.on{background:var(--ui-hover)!important}
html[data-etd-theme] :is(.sg-search,.sg-search input,.sg-search select){background:var(--ui-input);color:var(--ui-text)}
html[data-etd-theme] :is(.sg-table,.table) th{background:var(--ui-head)!important;color:var(--ui-onhead)!important;border-color:var(--ui-border)}
html[data-etd-theme] :is(.sg-table,.table) td{background:var(--ui-surface);border-color:var(--ui-border)}
html[data-etd-theme] :is(.sg-table,.table) tbody tr:hover td{background:var(--ui-hover)}
html[data-etd-theme] .sg-table td.sum{background:var(--ui-sum)}
html[data-etd-theme] .sg-table td.rest{background:var(--ui-rest)}
html[data-etd-theme] :is(.sg-table,.table) tbody tr.selected td{background:var(--ui-selected)!important;color:#fff}
html[data-etd-theme] :is(.sg-table,.table) input[type=checkbox]{accent-color:var(--ui-selected)}
html[data-etd-theme] :is(.sg-editrow,.fx-eline,#pl-editor) td,html[data-etd-theme] #purchase-desk .pd-header-form{background:var(--ui-edit)!important}
html[data-etd-theme] .fx-lines tr.fx-eline td.calc{background:var(--ui-sum)!important;color:var(--ui-text)}
html[data-etd-theme] :is(.reg-hint,.hint,.reg-field,.reg-card-title small,.sg-strip span,.cfg-hint,.cfg-f){color:var(--ui-muted)}
html[data-etd-theme] :is(.reg-hint,.reg-val){background:var(--ui-bar);border-color:var(--ui-border)}
html[data-etd-theme] .sg-picker .opt:nth-child(even){background:var(--ui-bar)}
html[data-etd-theme] .sg-picker :is(.opt.active,.opt:hover){background:var(--ui-selected);color:#fff}
html[data-etd-theme] .sg-picker .opt.msg{background:var(--ui-surface)!important;color:var(--ui-muted)}
html[data-etd-theme] .sg-picker .opt.head{background:var(--ui-head)!important;color:var(--ui-onhead)}
html[data-etd-theme] dialog.sg-dialog h2{background:var(--ui-head);color:var(--ui-onhead)}
html[data-etd-theme] :is(.cfg-tabs,.reg-tabs,.ef-tabs) button{background:var(--ui-button);color:var(--ui-text);border-color:var(--ui-border)}
html[data-etd-theme] :is(.cfg-tabs button.active,.reg-tabs button.active,.ef-tabs button.on){background:var(--ui-selected);color:#fff}
html[data-etd-theme] #purchase-desk .sg-bottom{background:var(--ui-bar)}
html[data-etd-theme] :is(.cfg-side,.cfg-body,.sg-pane-sum,.reg-card,.module-card,.config-summary){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}
html[data-etd-theme] :is(.cfg-band,.sg-pane-title,.lg-lbl,.lg-th,.td-title,.config-tabs,.reg-card-title){background:var(--ui-bar);color:var(--ui-text)}
html[data-etd-theme] :is(.cfg-box legend,.cfg-sub,.cfg-a,.cfg-f,.sg-pane-prices label,.cfg-wide,.cfg-wide .sg-ico){color:var(--ui-text);stroke:currentColor}
html[data-etd-theme] .cfg-box{border-color:var(--ui-border)}
html[data-etd-theme] :is(.cfg-switch button.on,.cfg-tabs button.on){background:var(--ui-selected);color:#fff;border-color:var(--ui-selected)}
html[data-etd-theme] .sg-pane-sum{background:var(--ui-sum)}
/* Pastreaza semnificatia avertizarilor si a lacatelor, indiferent de tema. */
html[data-etd-theme] .sg-lock.locked .sg-ico{stroke:var(--ui-danger)}
html[data-etd-theme] .sg-lock.open .sg-ico{stroke:var(--ui-muted)}
html[data-etd-theme] :is(.status-cancelled,.et-spv.off,.reg-bad,.ef-table td.st.bad){color:var(--ui-danger)}
html[data-etd-theme] :is(.status-issued,.et-spv.ok,.ef-table td.st.ok){color:var(--ui-success)}
html[data-etd-theme] .test-banner,html[data-etd-theme] #feedback{color:#58420c;background:#fff3cf;border-color:#cbb16a}
html[data-etd-theme] a{color:var(--ui-accent)}
html[data-etd-theme] .etd-theme-grid button{background:var(--ui-surface)}
html[data-etd-theme] .etd-theme-grid button[aria-pressed=true],html[data-etd-theme] .etd-theme-grid button:hover{background:var(--ui-hover)}
}

/* Alegerea rapida a culorii, fara modificarea culorilor actiunilor Email/WhatsApp/Tiparire. */
@media screen{
#etd-theme-top{display:flex;flex:0 0 auto;align-items:center;gap:5px;margin:0 8px;max-width:174px}
#etd-theme-top button{width:16px;height:16px;min-width:16px;min-height:16px;padding:0;border-radius:50%;border:1px solid #0005;background:var(--swatch)!important;box-shadow:0 0 0 1px #fff inset;cursor:pointer}
#etd-theme-top button[aria-pressed=true]{outline:2px solid var(--ui-text);outline-offset:2px}
#etd-theme-top button:focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}
@media(max-width:1200px){#etd-theme-top{display:grid;grid-template-columns:repeat(4,14px);gap:4px;margin:0 5px}#etd-theme-top button{width:14px;height:14px;min-width:14px;min-height:14px}}
}
@media print{#etd-theme-top{display:none!important}}

@media screen{
html[data-etd-theme=bleu-deschis]{--ui-bg:#eef6fb;--ui-surface:#fbfdff;--ui-text:#243a48;--ui-border:#bdd5e5;--ui-bar:#dcecf6;--ui-button:#ccdfed;--ui-hover:#d9edf9;--ui-accent:#397fa8;--ui-selected:#326d91;--ui-head:#4a819f;--ui-sum:#e5f0f7;--ui-rail:#c9dfed;--ui-input:#fff;--ui-muted:#56616b;--ui-rest:#f4dedf;--ui-edit:#fffbe8;--ui-onhead:#fff;--ui-onaccent:#fff}
html[data-etd-theme=turcoaz]{--ui-bg:#eaf5f4;--ui-surface:#faffff;--ui-text:#234244;--ui-border:#afd0cc;--ui-bar:#dceeea;--ui-button:#c8e2dd;--ui-hover:#d5efea;--ui-accent:#247b80;--ui-selected:#216b70;--ui-head:#2c777a;--ui-sum:#e0efec;--ui-rail:#bfded8;--ui-input:#fff;--ui-muted:#56616b;--ui-rest:#f4dedf;--ui-edit:#fffbe8;--ui-onhead:#fff;--ui-onaccent:#fff}
html[data-etd-theme=portocaliu]{--ui-bg:#fbf2e9;--ui-surface:#fffdfa;--ui-text:#493322;--ui-border:#dec5ae;--ui-bar:#f5e6d7;--ui-button:#edd4ba;--ui-hover:#f9e3ce;--ui-accent:#a65b22;--ui-selected:#91501f;--ui-head:#a36032;--ui-sum:#f5e9dd;--ui-rail:#e6ceb5;--ui-input:#fff;--ui-muted:#56616b;--ui-rest:#f4dedf;--ui-edit:#fffbe8;--ui-onhead:#fff;--ui-onaccent:#fff}
html[data-etd-theme=roz]{--ui-bg:#faf0f5;--ui-surface:#fffafd;--ui-text:#492c3d;--ui-border:#ddbdcc;--ui-bar:#f3e0ea;--ui-button:#eacbdc;--ui-hover:#f5dce9;--ui-accent:#a34270;--ui-selected:#913a62;--ui-head:#a54d78;--ui-sum:#f3e3eb;--ui-rail:#e4c2d4;--ui-input:#fff;--ui-muted:#56616b;--ui-rest:#f4dedf;--ui-edit:#fffbe8;--ui-onhead:#fff;--ui-onaccent:#fff}
html[data-etd-theme=oliv]{--ui-bg:#f1f3e9;--ui-surface:#fdfff9;--ui-text:#363d28;--ui-border:#c6cdb0;--ui-bar:#e6ead7;--ui-button:#d7dfbf;--ui-hover:#e7edcf;--ui-accent:#65713c;--ui-selected:#586433;--ui-head:#6b7749;--ui-sum:#e9eddc;--ui-rail:#d0d9b7;--ui-input:#fff;--ui-muted:#56616b;--ui-rest:#f4dedf;--ui-edit:#fffbe8;--ui-onhead:#fff;--ui-onaccent:#fff}
html[data-etd-theme=albastru-otel]{--ui-bg:#edf1f5;--ui-surface:#fbfdff;--ui-text:#2d3c49;--ui-border:#bccbd5;--ui-bar:#dfe7ee;--ui-button:#cedbe5;--ui-hover:#deebf4;--ui-accent:#4c667b;--ui-selected:#435c70;--ui-head:#566f82;--ui-sum:#e4ebf1;--ui-rail:#c7d6e0;--ui-input:#fff;--ui-muted:#56616b;--ui-rest:#f4dedf;--ui-edit:#fffbe8;--ui-onhead:#fff;--ui-onaccent:#fff}
#etd-theme-top{margin-left:auto;max-width:none}
.top:has(#etd-theme-top) #identity{margin-left:8px}
@media(max-width:1450px){#etd-theme-top{display:grid;grid-template-columns:repeat(7,14px);gap:4px;margin-left:auto}#etd-theme-top button{width:14px;height:14px;min-width:14px;min-height:14px}}
}

@media screen{
html[data-etd-theme=rosu-bordo]{--ui-bg:#fbf0f2;--ui-surface:#fffdfa;--ui-text:#44232d;--ui-muted:#59616a;--ui-border:#bfc5ca;--ui-bar:#fbf0f2;--ui-button:#e0e4e8;--ui-hover:#e6edf0;--ui-accent:#762637;--ui-selected:#762637;--ui-head:#762637;--ui-onhead:#fff;--ui-onaccent:#fff;--ui-input:#fff;--ui-sum:#fbf0f2;--ui-rail:#cbd3d8}
html[data-etd-theme=rosu-coral]{--ui-bg:#fff2ee;--ui-surface:#fffdfa;--ui-text:#492a26;--ui-muted:#59616a;--ui-border:#bfc5ca;--ui-bar:#fff2ee;--ui-button:#e0e4e8;--ui-hover:#e6edf0;--ui-accent:#ab4036;--ui-selected:#ab4036;--ui-head:#ab4036;--ui-onhead:#fff;--ui-onaccent:#fff;--ui-input:#fff;--ui-sum:#fff2ee;--ui-rail:#cbd3d8}
html[data-etd-theme=indigo]{--ui-bg:#f0effb;--ui-surface:#fffdfa;--ui-text:#302f49;--ui-muted:#59616a;--ui-border:#bfc5ca;--ui-bar:#f0effb;--ui-button:#e0e4e8;--ui-hover:#e6edf0;--ui-accent:#46458a;--ui-selected:#46458a;--ui-head:#46458a;--ui-onhead:#fff;--ui-onaccent:#fff;--ui-input:#fff;--ui-sum:#f0effb;--ui-rail:#cbd3d8}
html[data-etd-theme=petrol]{--ui-bg:#edf6f7;--ui-surface:#fffdfa;--ui-text:#253e43;--ui-muted:#59616a;--ui-border:#bfc5ca;--ui-bar:#edf6f7;--ui-button:#e0e4e8;--ui-hover:#e6edf0;--ui-accent:#245b64;--ui-selected:#245b64;--ui-head:#245b64;--ui-onhead:#fff;--ui-onaccent:#fff;--ui-input:#fff;--ui-sum:#edf6f7;--ui-rail:#cbd3d8}
html[data-etd-theme=maro]{--ui-bg:#f6efe8;--ui-surface:#fffdfa;--ui-text:#433328;--ui-muted:#59616a;--ui-border:#bfc5ca;--ui-bar:#f6efe8;--ui-button:#e0e4e8;--ui-hover:#e6edf0;--ui-accent:#795238;--ui-selected:#795238;--ui-head:#795238;--ui-onhead:#fff;--ui-onaccent:#fff;--ui-input:#fff;--ui-sum:#f6efe8;--ui-rail:#cbd3d8}
html[data-etd-theme=menta]{--ui-bg:#edf8f1;--ui-surface:#fffdfa;--ui-text:#294438;--ui-muted:#59616a;--ui-border:#bfc5ca;--ui-bar:#edf8f1;--ui-button:#e0e4e8;--ui-hover:#e6edf0;--ui-accent:#39755d;--ui-selected:#39755d;--ui-head:#39755d;--ui-onhead:#fff;--ui-onaccent:#fff;--ui-input:#fff;--ui-sum:#edf8f1;--ui-rail:#cbd3d8}
/* Set foreground and background together. Keep semantic action colors from app.css. */
html[data-etd-theme] :is(button,a.button,a.btn,a[role="button"]):not([data-etd-tone]):not([data-theme-choice]):not([data-text-choice]):not(.logo):not(#rail-toggle){background-color:var(--ui-button);background-image:none;color:var(--ui-text)!important}
html[data-etd-theme] :is(button,a.button,a.btn,a[role="button"]):not([data-etd-tone]):not([data-theme-choice]):not([data-text-choice]):hover{background-color:var(--ui-hover)}
html[data-etd-theme] :is(button.primary,a.primary,.sg-btn.primary,.cfg-switch button.on,.cfg-tabs button.on,.cfg-tabs button.active,.reg-tabs button.active,.ef-tabs button.on):not([data-etd-tone]){background:var(--ui-selected)!important;border-color:var(--ui-selected);color:#fff!important}
html[data-etd-theme] :is(button,a.button,a.btn,a[role="button"]):not([data-etd-tone]) :is(span,b,strong,u,small){color:inherit!important}
html[data-etd-theme] :is(button,a.button,a.btn,a[role="button"]) .sg-ico{color:inherit;stroke:currentColor}
#etd-theme-top{display:grid;grid-template-columns:repeat(10,14px);gap:4px;margin-left:auto}
#etd-theme-top button{width:14px;height:14px;min-width:14px;min-height:14px}
@media(max-width:1000px){#etd-theme-top{grid-template-columns:repeat(5,12px)}#etd-theme-top button{width:12px;height:12px;min-width:12px;min-height:12px}}
}

/* Signed commercial balances must remain visible in all themes and on printouts. */
.lg-negative{color:#b42328!important;font-weight:700}
@media screen{html[data-etd-theme=negru] .lg-negative,html[data-etd-theme=bleu-inchis] .lg-negative{color:#ff9297!important}}
.lg-partner-balance{padding:4px 8px;text-align:right;font-weight:700}

@media screen{
/* One row for both selectors; narrow screens scroll within the palette. */
#etd-theme-top{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:5px;margin-left:auto;min-width:0;max-width:32vw;flex:0 1 auto;overflow-x:auto;overflow-y:hidden;padding:4px 3px;scrollbar-width:thin}
#etd-theme-top>button{flex:0 0 14px;width:14px;height:14px;min-width:14px;min-height:14px}
#etd-text-top{display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:4px;border:0;border-left:1px solid var(--ui-border);padding:0 0 0 7px;margin-left:2px}
#etd-theme-top #etd-text-top button{flex:0 0 19px;background:#dce1e5!important;color:var(--swatch)!important;border-radius:3px;width:19px;min-width:19px;height:19px;min-height:19px;font-size:12px;font-weight:bold;line-height:14px}
#etd-theme-top #etd-text-top button[data-text-choice=alb]{background:#4a5159!important}
html[data-etd-text=negru]{--etd-user-text:#242424}
html[data-etd-text=gri]{--etd-user-text:#606870}
html[data-etd-text=alb]{--etd-user-text:#fff}
html[data-etd-text]{--ui-text:var(--etd-user-text);--sg-text:var(--etd-user-text)}
html[data-etd-text] body{color:var(--ui-text)}
html[data-etd-text] :is(.sg-table td,input,select,textarea){color:var(--ui-text)}
html[data-etd-text] .sg-table tr.selected td{color:#fff}
}
