/* Shared screen theme. Print deliberately uses the original light stylesheet. */
.rscg-theme-bar{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:8px 20px;background:#fff;color:#243c50;border-bottom:1px solid #d6e1e9;font:600 13px 'Segoe UI',Arial,sans-serif;position:relative;z-index:20;min-height:48px}
.rscg-theme-bar select{width:auto;min-width:100px;padding:6px 12px;border:1px solid #aabac8;border-radius:8px;background:#fff;color:#152d42;font:inherit}
.rscg-theme-bar select:focus-visible{outline:3px solid #218ed6;outline-offset:2px}
.rscg-theme-bar label{margin:0;display:block;color:inherit}
img[src*="rscg-logo.png"]{object-fit:contain;filter:none!important;mix-blend-mode:normal!important}
.document-brand-logo{width:210px;max-width:100%;height:100px;object-fit:contain;background:#fff;border-radius:8px;padding:8px}
@media screen {
 html[data-theme="dark"]{color-scheme:dark;--bg:#080b10;--panel:#141a22;--text:#f0f4fa;--ink:#f0f4fa;--muted:#afbdce;--border:#344252;--line:#344252;--pale:#19222d;--soft:#19222d;--sky:#173e5b}
 html[data-theme="dark"] body{background:#080b10!important;color:#f0f4fa!important}
 html[data-theme="dark"] :is(main,.main,.main-content,.app-shell,.page,.page-shell,.intake-page){background:#080b10!important;color:#f0f4fa}
 html[data-theme="dark"] :is(header,.topbar,.site-top,.rscg-theme-bar,dialog,section,[class$="-card"],[class$="-panel"],.card,.panel,.estimate-paper,.customer-paper,.customer-estimate,.body,.footer,.meta>div,.payment,.autocomplete-results,.autocomplete-option,.pipeline-card,.pipeline-column,.saved-estimate-card){background:#141a22!important;color:#f0f4fa!important;border-color:#344252!important;background-image:none!important}
 html[data-theme="dark"] :is(h1,h2,h3,h4,h5,label,p,small,strong,span,td,th,li,.label,.note,.internal-note,.line-number){color:inherit}
 html[data-theme="dark"] :is(input,textarea,select,option){background:#0e141c!important;color:#f5f7fb!important;border-color:#405269!important}
 html[data-theme="dark"] :is(input,textarea)::placeholder{color:#a9b7c8!important}
 html[data-theme="dark"] :is(.item-row>*,.estimate-item-rscg>*,.estimate-item-v1,.calculated-cell,.totals,.totals-card>div,.meta-grid,.summary-grid,table,tr,td){background:#141a22!important;color:#f0f4fa!important;border-color:#344252!important}
 html[data-theme="dark"] :is(.private,.internal-cell,.totals-card .internal){background:#202a36!important;color:#ecf2f9!important}
 html[data-theme="dark"] :is(.section-row,.estimate-section-row,.customer-section-line td,.customer-table .section td,.column-head,.estimate-line-head,.group-head span:first-child,.customer-group,th){background:#143c59!important;color:#d9efff!important;border-color:#326482!important}
 html[data-theme="dark"] :is(.section-row,.estimate-section-row) input{background:transparent!important;color:#e3f4ff!important}
 html[data-theme="dark"] :is(.internal-group,.group-head span:last-child){background:#344150!important;color:#eef4fb!important}
 html[data-theme="dark"] :is(.secondary,.secondary-btn,.ghost-btn,.text-btn,.phone-btn,.section-add-row,.section-add-row-v1){background:#1b3045!important;color:#cbeaff!important;border-color:#3c6586!important}
 html[data-theme="dark"] :is(.primary,.primary-btn,.submit-btn,.accept-btn,.print-btn){background:#1679b9!important;color:white!important}
 html[data-theme="dark"] :is(.remove,.item-remove-v1){color:#ff9ca6!important}
 html[data-theme="dark"] :is(.sidebar,.system-sidebar){background:#080e16!important}
 html[data-theme="dark"] a{color:#7cc9ff}
 html[data-theme="dark"] :is(.auth-shell,.auth-screen,.dropzone,.empty,.saved-estimate,.stat-card,.customer-summary,.estimate-customer-summary,.form-section,.input-suffix,.project-number-box,.receipt-banner,.warranty,.customer-warranty,.customer-deposit,.balance-box,.badge,.step-chip,.percent-input,.multiplier-readout,.assumptions .readonly strong,.assumptions b){background:#1b2836!important;color:#e3edf8!important;border-color:#344252!important;background-image:none!important}
 html[data-theme="dark"] :is(.profit,.paid,.ok,.success){color:#73e0b0!important}
 html[data-theme="dark"] :is(.signature-wrap,canvas){background:white!important;color:#172938!important}
 html[data-theme="dark"] img[src*="rscg-logo.png"]{background:#f3f6fa!important;border-radius:8px!important;padding:8px;box-sizing:border-box}
}
@media print{.rscg-theme-bar{display:none!important}html{color-scheme:light}}
