/* FEBRY.OPS V417 / Invoice Studio light UI. Excludes paper, document content,
   user-uploaded image colors, swatch values and PDF rendering. */
:root[data-theme="light"]{
 color-scheme:only light!important;
 --fo-cashmere:#FFFDF1;--fo-butterscotch:#FFCE99;--fo-barrel:#562F00;
 background:#FFFDF1!important;color:#562F00!important;
}
:root[data-theme="light"] body{background:#FFFDF1!important;color:#562F00!important;color-scheme:only light!important}
:root[data-theme="light"] body *{color-scheme:only light}
:root[data-theme="light"] body :is(.topbar,.panel,.canvas-toolbar,.bottom-help,.modal,.modal-head,.modal-footer,.template-card,.template-glyph,.tool-tile,.upload-tile,.chip-toggle,.mode-switch,.pill-action,.outline-btn,.btn,.toast,.istudio-site-nav-panel,.istudio-gate,.istudio-gate-main,.field-entry,.table-editor-row,.gallery-tile,.gallery-item){
 background:linear-gradient(155deg,#FFFDF1,#FFCE99)!important;border-color:#FFCE99!important;box-shadow:none!important;color:#562F00!important;
}
:root[data-theme="light"] body :is(.workspace,.stage-scroll,.workarea){background:#FFFDF1!important;color:#562F00!important}
:root[data-theme="light"] body :is(h1,h2,h3,h4,h5,h6,p,small,span,strong,b,em,label,a,button,select,option,summary,li,output,.btn,.icon-btn,.chip-toggle,.micro-label,.panel-heading,.setting-head,.field-label,.paper-caption,.zoom-value,.tool-hint,.doc-state,.brand,.bottom-help,.istudio-site-nav-heading,.istudio-site-nav-footnote){
 color:#562F00!important;-webkit-text-fill-color:#562F00!important;text-shadow:none!important;
}
:root[data-theme="light"] body :is(input,select,textarea){background:#FFFDF1!important;color:#562F00!important;border-color:#FFCE99!important;caret-color:#562F00}
:root[data-theme="light"] body :is(input,textarea)::placeholder{color:#562F00!important;opacity:.65}
:root[data-theme="light"] body :is(.mode-switch button.active,.btn-main,.theme-toggle,.chip-toggle[aria-pressed="true"]){background:#FFCE99!important;color:#562F00!important;border-color:#FFCE99!important}
:root[data-theme="light"] body :is(.section-divider,.section-line,.toolbar-divider){background:#FFCE99!important}
:root[data-theme="light"] body :is(.topbar,.panel,.canvas-toolbar,.tool-tile,.upload-tile,.btn,.icon-btn,.chip-toggle,.mode-switch,.modal,.template-card,.istudio-site-nav-panel,.istudio-gate){border-color:#FFCE99!important}
:root[data-theme="light"] body :is(button,a,input,textarea,select):focus-visible{outline:2px solid #562F00!important;outline-offset:2px}
/* Exception: the actual paper, editable document and thumbnails must retain original
   colors so switching UI theme never alters invoice visuals or printed PDFs. */
:root[data-theme="light"] body :is(.paper-shadow,.inline-edit,.template-thumb,.starter-preview,.template-preview){color-scheme:only light}


/* V422 — Snow Studio / Ivory Linen / Slate light overhaul.
   UI only. Invoice paper, document content and export output remain unchanged. */
:root[data-theme="light"]{
 color-scheme:light!important;forced-color-adjust:none;
 --fo-snow:#FFFFFF;--fo-ivory:#FFFAF0;--fo-slate:#F8FAFC;--fo-line:#E2E8F0;--fo-barrel:#562F00;
 background:#FFFFFF!important;color:#562F00!important;
}
:root[data-theme="light"] body,:root[data-theme="light"] body *{color-scheme:light!important}
:root[data-theme="light"] body{background:#FFFFFF!important;color:#562F00!important;forced-color-adjust:none}
:root[data-theme="light"] body :is(.topbar,.panel,.canvas-toolbar,.bottom-help,.modal,.modal-head,.modal-footer,.template-card,.template-glyph,.tool-tile,.upload-tile,.chip-toggle,.mode-switch,.pill-action,.outline-btn,.btn,.toast,.istudio-site-nav-panel,.istudio-gate,.istudio-gate-main,.field-entry,.table-editor-row,.gallery-tile,.gallery-item,.panel-heading,.panel-foot,.details-notice,.mode-banner,.inline-select select,.prop-input,.prop-select,.prop-textarea,.align-actions button,.icon-btn,.invoice-credit){
 background:#FFFAF0!important;background-image:none!important;border-color:#E2E8F0!important;box-shadow:none!important;color:#562F00!important;
}
:root[data-theme="light"] body :is(.workspace,.stage-scroll,.workarea){background:#FFFFFF!important;color:#562F00!important}
:root[data-theme="light"] body :is(.tool-scroll,.properties-scroll,.modal-body){scrollbar-color:#C7D2DE #FFFFFF}
:root[data-theme="light"] body :is(h1,h2,h3,h4,h5,h6,p,small,span,strong,b,em,label,a,button,select,option,summary,li,output,.btn,.icon-btn,.chip-toggle,.micro-label,.panel-heading,.setting-head,.field-label,.paper-caption,.zoom-value,.tool-hint,.doc-state,.brand,.bottom-help,.istudio-site-nav-heading,.istudio-site-nav-footnote,.invoice-credit,.panel-foot,.brand small,.upload-tile small,.upload-arrow,.layer-icon,.layer-mini,.range-row output,.input-with-suffix span,.muted-copy,.template-info small,.starter-tile>small,.field-entry label,.table-editor-head){
 color:#562F00!important;-webkit-text-fill-color:#562F00!important;text-shadow:none!important;
}
:root[data-theme="light"] body :is(input,select,textarea){background:#FFFFFF!important;color:#562F00!important;border-color:#E2E8F0!important;caret-color:#562F00}
:root[data-theme="light"] body :is(input,textarea)::placeholder{color:#562F00!important;opacity:.68}
:root[data-theme="light"] body :is(.mode-switch,.chip-toggle,.tool-tile,.upload-tile,.starter-tile,.template-glyph,.icon-btn){background:#F8FAFC!important}
:root[data-theme="light"] body :is(.mode-switch button.active,.btn-main,.theme-toggle,.chip-toggle[aria-pressed="true"]){background:#FFFAF0!important;color:#562F00!important;border-color:#E2E8F0!important}
:root[data-theme="light"] body :is(.section-divider,.section-line,.toolbar-divider){background:#E2E8F0!important}
:root[data-theme="light"] body :is(button,a,input,textarea,select):focus-visible{outline:2px solid #562F00!important;outline-offset:2px}
:root[data-theme="light"] .brand-mark{background:#FFFAF0!important;color:#562F00!important;border:1px solid #E2E8F0!important}
:root[data-theme="light"] .brand b,:root[data-theme="light"] .brand small,:root[data-theme="light"] .doc-state,:root[data-theme="light"] .header-sep{color:#562F00!important;-webkit-text-fill-color:#562F00!important}
:root[data-theme="light"] .topbar,:root[data-theme="light"] .canvas-toolbar,:root[data-theme="light"] .bottom-help{background:#FFFFFF!important}
:root[data-theme="light"] .workspace{background:#FFFFFF!important}
:root[data-theme="light"] .paper-caption{color:#562F00!important;opacity:.78}
