/* Shared colors taken from the Encaissement screen. */
:root{
  --cf-navy:#142330;--cf-navy-2:#1d303d;--cf-blue:#1877f2;--cf-blue-2:#1266cd;
  --cf-teal:#62cdb3;--cf-green:#62cdb3;--cf-orange:#f2b34b;--cf-purple:#a77bea;
  --cf-red:#ff765c;--cf-bg:#0b121b;--cf-white:#142330;--cf-line:#304652;
  --cf-text:#edf5f7;--cf-muted:#a8bac5;--cf-shadow:0 12px 30px rgba(0,0,0,.22);
}
html body:not(.cf-light-mode){background:radial-gradient(ellipse at 50% -18%,#193e4a 0,#101c28 48%,#0b121b 100%)!important;color:#edf5f7!important;color-scheme:dark}
html body:not(.cf-light-mode) h1,html body:not(.cf-light-mode) h2,html body:not(.cf-light-mode) h3{color:#edf5f7!important}
html body:not(.cf-light-mode) :is(.sidebar,.mobile-nav,.mobile-menu,.drawer){background:linear-gradient(180deg,#101c28,#142330)!important;border-color:#304652!important;color:#edf5f7!important}
html body:not(.cf-light-mode) :is(.sidebar,.mobile-nav,.mobile-menu,.drawer) a{color:#d5e1e6!important}
html body:not(.cf-light-mode) :is(.sidebar,.mobile-nav,.mobile-menu,.drawer) a:is(:hover,.active){background:linear-gradient(135deg,rgba(255,118,92,.22),rgba(255,118,92,.07))!important;color:#fff!important;border-color:rgba(255,118,92,.35)!important}
html body:not(.cf-light-mode) :is(.top,.header,.topbar){background:linear-gradient(135deg,#142330,#1b303b)!important;border-color:#304652!important;color:#edf5f7!important}
html body:not(.cf-light-mode) :is(.card,.panel,.box,.workspace,.main-card,.manual-card,.tour-card,.tour-row,.stat-card,.info-card,.content-card,.history-card,.simple-repass-card,.help,.notification-card,.dialog,.modal,.modal-content,.dialog-content,.user-row,.sector-card,.year-tools,.year-form){background:#142330!important;border-color:#304652!important;color:#edf5f7!important;box-shadow:0 12px 30px rgba(0,0,0,.22)!important}
html body:not(.cf-light-mode) :is(.card,.panel,.box,.workspace,.main-card,.manual-card,.tour-card,.tour-row,.stat-card,.info-card,.content-card,.history-card,.simple-repass-card,.help,.notification-card,.dialog,.modal,.modal-content,.dialog-content,.user-row,.sector-card,.year-tools,.year-form) :is(h1,h2,h3,strong,b,td){color:#edf5f7!important}
html body:not(.cf-light-mode) :is(.subtitle,.muted,.note,.help-text,.section-subtitle,.user-row small,.sector-meta,.hint,.msg,.sub,.description,.stat-label){color:#a8bac5!important}
html body:not(.cf-light-mode) :is(input,select,textarea){background:#0e1922!important;color:#f3f7f8!important;border-color:#405966!important;color-scheme:dark}
html body:not(.cf-light-mode) :is(input,textarea)::placeholder{color:#8196a2!important;opacity:1}
html body:not(.cf-light-mode) :is(input,select,textarea):focus{border-color:#62cdb3!important;box-shadow:0 0 0 3px rgba(98,205,179,.16)!important}
html body:not(.cf-light-mode) :is(.primary,.primary-btn,.btn-primary,.btn.primary,button.primary,button[type=submit],.save,.submit){background:linear-gradient(135deg,#ff765c,#df443b)!important;border-color:#ff765c!important;color:#fff!important;box-shadow:0 8px 20px rgba(231,71,61,.24)!important}
html body:not(.cf-light-mode) :is(.btn-success,button.success,.confirm-ok){background:linear-gradient(135deg,#2bc48a,#159b72)!important;border-color:#62cdb3!important;color:#06241b!important}
html body:not(.cf-light-mode) :is(.purple,.btn-purple,.cheque){background:linear-gradient(135deg,#bb8cff,#8854d6)!important;color:#190c2d!important}
html body:not(.cf-light-mode) :is(.secondary,.light,.btn-light,.btn.secondary,.btn-secondary,.cancel){background:#263945!important;border:1px solid #405966!important;color:#e2edf1!important}
html body:not(.cf-light-mode) :is(table,.table){background:#142330!important;color:#edf5f7!important}
html body:not(.cf-light-mode) :is(table,.table) th{background:#1d303d!important;color:#a8bac5!important;border-color:#304652!important}
html body:not(.cf-light-mode) :is(table,.table) td{color:#e6eef1!important;border-color:#304652!important}
html body:not(.cf-light-mode) :is(tbody tr:hover td,.list-item:hover){background:#1d303d!important}
html body:not(.cf-light-mode) :is(.ok,.success,.alert-success,.notice-success){background:#173b32!important;border-color:#2c775d!important;color:#a9f0cb!important}
html body:not(.cf-light-mode) :is(.error,.err,.alert-danger,.notice-error){background:#3b2528!important;border-color:#78434a!important;color:#ffc5bc!important}
html body:not(.cf-light-mode) :is(.warning,.warn,.alert-warning){background:#3a3425!important;border-color:#6c5a35!important;color:#f8dfa0!important}
html body:not(.cf-light-mode) .admin-workspace-tabs{background:#101c28!important;border-color:#304652!important}
html body:not(.cf-light-mode) .admin-workspace-tabs a{color:#a8bac5!important}
html body:not(.cf-light-mode) .admin-workspace-tabs a.active{background:#263945!important;color:#edf5f7!important;box-shadow:0 2px 8px rgba(0,0,0,.25)!important}
html body:not(.cf-light-mode) .cfm-bottom-nav a.active{color:#fff!important}
html body:not(.cf-light-mode) .cfm-bottom-nav a.active{background:linear-gradient(135deg,#ff765c,#df443b)!important;box-shadow:0 7px 16px rgba(231,71,61,.24)!important}
html body:not(.cf-light-mode) .cf-theme-toggle{background:#142330!important;border-color:#405966!important;color:#edf5f7!important}
/* Keep the map itself and sector-status colors unchanged. */
html body.cf-map-page{background:#0b121b!important;color:#edf5f7!important}
html body.cf-map-page :is(.sidebar,.top,.main,.workspace,.cf-mobile-dashboard,.cfm-bottom-nav){--cf-navy:#142330;--cf-line:#304652}
html body.cf-mobile-device.cf-light-mode{color-scheme:light}
