/* SES Solar Pro V5 – Unified Horizon Blue/White/Gold menu theme.
   Visual changes only. Loaded AFTER all V1-V4 visual layers.
   Never alter display/visibility/permissions of secured sections. */
:root {
  color-scheme: light;
  --ses-blue:#0966bd;--ses-blue-dark:#0b4c95;--ses-blue-light:#e7f3ff;
  --ses-blue-soft:#f3f9ff;--ses-gold:#f6c648;--ses-gold-dark:#ac7210;
  --ses-gold-light:#fff5d8;--ses-deep:#093766;--ses-navy:#082e5e;
  --bg-main:#e9f5ff;--bg-card:#ffffff;--text-dark:#12385c;
  --text-muted:#4c6882;--border-light:#bdd9f4;--green:#087744;
  --green-light:#e3f8ec;--red:#b42332;--red-light:#fff0f1;
  --shadow:0 12px 28px rgba(8,61,135,.16);
  --ses-v5-ink:#0b315f;--ses-v5-muted:#3d5978;--ses-v5-border:#aecded;
  --ses-v5-paper:linear-gradient(155deg,#fff 0%,#f3f9ff 55%,#e8f3ff 100%);
  --ses-v5-gold:linear-gradient(180deg,#fff4c7 0%,#ffcf58 50%,#eca91f 100%);
  --ses-v5-blue:linear-gradient(140deg,#0f79d4,#074580);
  --ses-v5-shadow:inset 0 2px 1px #fff,0 10px 25px #0d4a8730,0 3px 6px #154c8023;
}
/* Navigation – one consistent treatment for all 17 pages. */
#sesWebRoot .ses-sidebar {color:#123d73!important;background:linear-gradient(156deg,#fff 0%,#edf6ff 48%,#ddeeff 100%)!important;border-left:3px solid #e3af3c!important}
#sesWebRoot .ses-brand{border-bottom:1px solid #c9dff5!important}
#sesWebRoot .ses-nav{scrollbar-color:#9abce0 transparent}
#sesWebRoot .ses-nav-label{color:#42648b!important;font-weight:850!important;letter-spacing:.15px}
#sesWebRoot .ses-nav button{background:transparent!important;color:#113e78!important;border:1px solid transparent!important;min-height:46px!important;border-radius:12px!important;font-weight:850!important;line-height:1.6!important;opacity:1!important;transition:background-color .15s ease,box-shadow .15s ease,transform .15s ease}
#sesWebRoot .ses-nav button svg{color:#115aab!important;stroke:currentColor!important}
#sesWebRoot .ses-nav button:hover,#sesWebRoot .ses-nav button:focus-visible{background:linear-gradient(135deg,#fff,#e0efff)!important;border-color:#a5caed!important;box-shadow:0 4px 11px #0e50931b!important}
#sesWebRoot .ses-nav button.active,#sesWebRoot .ses-nav button[aria-current="page"]{background:var(--ses-v5-gold)!important;border:1.5px solid #c98d16!important;color:#18395c!important;box-shadow:inset 0 2px 2px #fff8dc,0 7px 13px #ba882e5e!important;text-shadow:0 1px 0 #fff6d8!important}
#sesWebRoot .ses-nav button.active svg{color:#0c5197!important}
#sesWebRoot .ses-side-foot{background:linear-gradient(145deg,#e4f1ff,#f7fbff)!important;color:#4d6785!important;border-color:#aecbe7!important}
#sesWebRoot .ses-side-foot strong{color:#0c4c93!important}
#sesWebRoot .ses-side-foot button{background:var(--ses-v5-paper)!important;border:1px solid #aac9e7!important;color:#124879!important;box-shadow:var(--ses-v5-shadow)!important}
/* Header, search/selection menus, and page switching. */
#sesWebRoot .ses-workspace{color:var(--ses-v5-ink)!important}
#sesWebRoot .top-header{background:linear-gradient(150deg,#fff,#eaf5ff)!important;border-bottom:2px solid #e5ba53!important;color:#0c3d74!important}
#sesWebRoot .ses-location,#sesWebRoot .ses-top-picker label,#sesWebRoot .brand-titles h1{color:#103d72!important}
#sesWebRoot .ses-menu-toggle{background:var(--ses-v5-paper)!important;color:#0c4a8b!important;border:1.5px solid #98bee5!important;box-shadow:var(--ses-v5-shadow)!important}
#sesWebRoot #sesWebProjectSelect,#sesWebRoot .form-control,#sesWebRoot input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),#sesWebRoot textarea,#sesWebRoot select{
  color:#123d6b!important;background:#fff!important;border:1.5px solid #a6c8eb!important;box-shadow:inset 0 1px 3px #245c8f12!important;opacity:1!important;color-scheme:light!important
}
#sesWebRoot :is(input,textarea)::placeholder{color:#566f87!important;opacity:1!important}
#sesWebRoot select option{color:#143a66!important;background:#fff!important}
#sesWebRoot .form-label,#sesWebRoot label{color:#234f7b!important;opacity:1!important}
#sesWebRoot :is(.mode-switcher,.project-view-switch,.login-kind){background:#e9f4ff!important;border:1px solid #b4d2ef!important;border-radius:14px!important}
#sesWebRoot :is(.mode-btn,.project-view-btn,.select-chip){color:#124978!important;background:linear-gradient(145deg,#fff,#eaf4ff)!important;border:1px solid #bad2ee!important;opacity:1!important}
#sesWebRoot :is(.mode-btn.active,.mode-btn.active-tech,.mode-btn.active-admin,.project-view-btn.active,.select-chip.active){color:#103a69!important;background:var(--ses-v5-gold)!important;border:1px solid #c78c18!important;box-shadow:inset 0 2px 2px #fff7dd,0 5px 12px #b6812870!important}
#sesWebRoot .form-control:focus-visible,#sesWebRoot :is(select,textarea,input):focus-visible{outline:3px solid #f3bf46!important;outline-offset:2px!important}
/* All content menus and sub-menu cards; preserve landscape headers and logo dimensions. */
#sesWebRoot :is(.card,.ses-web-card,.ses-action-card,.ses-mini-task,.ses-phase-item,.ses-fact,.ses-empty,.ses-horizon-table-card){background:var(--ses-v5-paper)!important;border:1px solid var(--ses-v5-border)!important;color:var(--ses-v5-ink)!important;box-shadow:var(--ses-v5-shadow)!important}
#sesWebRoot :is(.card,.ses-web-card,.ses-horizon-table-card){border-radius:18px!important}
#sesWebRoot :is(.staff-box,.team-person,.permission-panel,.permission-option,.assignment-option,.spec-create-box,.spec-form-section,.spec-details,.spec-quick>div,.spec-feed-item,.grid-3-money>div,.v8-quick-box,.v8-line,.v84-tile,.camera-zone,.pin-display,.custody-cell,.kpi-box,.spec-detail-row,.exp-item){
  color:var(--ses-v5-ink)!important;background:var(--ses-v5-paper)!important;border:1px solid #bdd6f1!important;box-shadow:inset 0 2px 0 #fff,0 5px 13px #0a518b1c!important
}
#sesWebRoot :is(.project-metrics-row .mini-stat,.ses-kpi,.ses-horizon-metric){background:var(--ses-v5-paper)!important;border:1px solid #bad6f3!important;box-shadow:var(--ses-v5-shadow)!important}
#sesWebRoot :is(.card-title,.ses-web-card h3,.ses-section-intro h2,.ses-action-card strong,.ses-mini-task strong,.spec-top strong,.spec-section h4,.spec-form-section h4,.spec-feed-item strong,.spec-details summary,.team-person strong,.v8-line b,.exp-title,.exp-item strong,.staff-val,.ses-phase-content strong){color:#0b467f!important;opacity:1!important;text-shadow:none!important}
#sesWebRoot :is(.ses-section-intro p,.ses-web-card p,.ses-web-card small,.microcopy,.spec-mini,.v8-muted,.staff-lbl,.photo-help,.spec-detail-row span,.grid-3-money small,.team-person small,.v84-tile small,.spec-quick small,.v8-line small,.exp-meta,.ses-phase-content small){color:#445f7b!important;opacity:1!important}
#sesWebRoot :is(.spec-consent,.spec-detail-row strong,.spec-quick strong,.grid-3-money strong,.v84-tile label){color:#123f70!important}
#sesWebRoot .card-header{border-bottom-color:#c1d9ee!important}
#sesWebRoot :is(.ses-section-intro .ses-tag,.ses-counter,.badge-gold){color:#6b4404!important;background:#fff1cf!important;border:1px solid #e6bd63!important}
#sesWebRoot .badge-blue{color:#0d4e8f!important;background:#e4f2ff!important;border:1px solid #a9cae9!important}
#sesWebRoot .ses-phase-num{background:#dceeff!important;color:#095294!important}
#sesWebRoot .ses-phase-item.done{border-right:4px solid #149363!important}
#sesWebRoot .ses-phase-item.rejected{border-right:4px solid #ba4a27!important}
#sesWebRoot .ses-phase-item.sent{border-right:4px solid #156eb8!important}
/* Blue section titles in all menus. */
#sesWebRoot :is(.ses-h2-shortcuts h3,.ses-horizon-home-finance h3,.ses-horizon-table-card h3){background:var(--ses-v5-blue)!important;color:white!important;border-radius:14px!important;box-shadow:inset 0 2px 0 #8ecbff,0 5px 12px #124d8438!important}
/* Touch-friendly controls; preserve danger/success color semantics. */
#sesWebRoot :is(.btn-pill,.btn-submit,.ses-phase-action,.ses-mini-task button,.ses-action-card button,.ses-h2-shortcut,.ses-horizon-table button){font-weight:850!important;min-height:43px}
#sesWebRoot :is(.btn-pill.blue,.btn-xls){background:var(--ses-v5-blue)!important;border:1px solid #064988!important;color:#fff!important;box-shadow:inset 0 2px 0 #8fcaff,0 5px 13px #0c4d8e44!important;text-shadow:none!important}
#sesWebRoot :is(.btn-pill.gold,.btn-submit,.ses-phase-action,.ses-mini-task button,.ses-action-card button,.ses-horizon-table button){background:var(--ses-v5-gold)!important;color:#183856!important;border:1px solid #c68c1e!important;box-shadow:inset 0 2px 2px #fff9df,0 6px 15px #ae812c55!important;text-shadow:none!important}
#sesWebRoot :is(.btn-pill:not(.gold):not(.blue):not(.danger),.btn-cam.gallery){background:var(--ses-v5-paper)!important;color:#0e4c86!important;border:1px solid #b0cfef!important;box-shadow:inset 0 2px 0 #fff,0 4px 11px #0b4f8c2a!important}
#sesWebRoot .btn-pill.danger{background:#fff0f1!important;border:1px solid #edb1b8!important;color:#a92436!important}
#sesWebRoot .btn-wa{background:linear-gradient(135deg,#19a875,#077247)!important;color:#fff!important;border:1px solid #087e51!important}
#sesWebRoot :is(button,input,select,textarea):disabled{opacity:.62!important;cursor:not-allowed!important}
#sesWebRoot :is(input[type="radio"],input[type="checkbox"]){accent-color:#0d65b9!important}
/* Tables – unified blue headers, readable body rows. */
#sesWebRoot :is(table,.ses-horizon-table){color:#123b67!important}
#sesWebRoot :is(table,.ses-horizon-table) th{background:var(--ses-v5-blue)!important;color:#fff!important;border-color:#0d579c!important}
#sesWebRoot :is(table,.ses-horizon-table) td{color:#153a68!important;background:#f9fcff!important;border-bottom:1px solid #c9dff2!important}
#sesWebRoot .ses-horizon-status:not(.done){color:#0b5799!important;background:#dceeff!important}
#sesWebRoot .ses-horizon-status.done,#sesWebRoot .v8-tag{color:#087247!important;background:#e1f8eb!important}
/* Important: standalone dialogs are OUTSIDE #sesWebRoot in the original V8 HTML. */
#appShell .modal-backdrop .modal-card,body>.modal-backdrop .modal-card{
  background:var(--ses-v5-paper)!important;color:var(--ses-v5-ink)!important;border:2px solid #a9c9ed!important;
  color-scheme:light!important;box-shadow:0 25px 70px #042b6366,inset 0 3px 2px #fff!important
}
#appShell .modal-backdrop .modal-header,body>.modal-backdrop .modal-header{background:linear-gradient(130deg,#e3f2ff,#fff)!important;border-bottom:2px solid #f0c65d!important;border-radius:12px!important;padding:10px 13px!important;margin-bottom:14px!important}
#appShell .modal-backdrop .modal-card :is(.modal-title,.form-label,.card-title,h2,h3,h4,.permission-panel strong,.spec-form-section h4,.spec-section h4,.spec-details summary,.spec-top strong,.spec-feed-item .rowline strong),body>.modal-backdrop .modal-card :is(.modal-title,.form-label,.card-title,h2,h3,h4){color:#0a4c90!important;opacity:1!important;text-shadow:none!important}
#appShell .modal-backdrop .modal-card :is(p,small,.microcopy,.spec-mini,.photo-help,.v8-muted,.form-locked-note,.spec-detail-row span){color:#435d78!important;opacity:1!important}
#appShell .modal-backdrop .modal-card :is(.form-control,input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),textarea,select),body>.modal-backdrop .modal-card :is(.form-control,input,textarea,select){background:#fff!important;border:1.5px solid #a4c7e9!important;color:#123e70!important;opacity:1!important;box-shadow:inset 0 1px 3px #14599015!important}
#appShell .modal-backdrop .modal-card :is(input,textarea)::placeholder{color:#5e7791!important;opacity:1!important}
#appShell .modal-backdrop .modal-card option{background:#fff!important;color:#143a6a!important}
#appShell .modal-backdrop .modal-card :is(.permission-panel,.spec-create-box,.spec-form-section,.v8-quick-box,.spec-details,.spec-quick>div,.spec-feed-item,.grid-3-money>div,.spec-alert,.pin-display,.permission-option,.assignment-option,.team-person,.v8-line,.staff-box,.v84-tile,.spec-detail-row){background:var(--ses-v5-paper)!important;color:#153f71!important;border:1px solid #b9d5ee!important;box-shadow:inset 0 2px 0 #fff,0 3px 9px #0b4a8922!important}
#appShell .modal-backdrop .modal-card :is(.spec-detail-row strong,.spec-quick strong,.grid-3-money strong,.spec-consent,.staff-val){color:#123f70!important}
#appShell .modal-backdrop .modal-card :is(.close-x,.pin-key,.select-chip,.mode-btn){background:linear-gradient(#fff,#e7f3ff)!important;color:#0b477e!important;border:1px solid #abc7e9!important}
#appShell .modal-backdrop .modal-card :is(.select-chip.active,.mode-btn.active,.mode-btn.active-tech,.mode-btn.active-admin){background:var(--ses-v5-gold)!important;color:#16365c!important;border-color:#c18b20!important}
#appShell .modal-backdrop .modal-card :is(.btn-submit,.btn-pill.gold,.btn-pill.blue){background:var(--ses-v5-gold)!important;color:#1c3d60!important;border:1px solid #c08b22!important;box-shadow:inset 0 2px 2px #fff7dc,0 5px 12px #b27d264a!important}
#appShell .modal-backdrop .modal-card :is(input[type="checkbox"],input[type="radio"]){accent-color:#0b6cc5!important;opacity:1!important}
#appShell .modal-backdrop .modal-card :is(input,textarea,select):focus-visible{outline:3px solid #f2c34f!important;outline-offset:2px!important}
#appShell .modal-backdrop .modal-card .btn-pill.danger{color:#a62e37!important;background:#fff0f1!important;border-color:#edb8bf!important}
/* Preserve the identity of the login page, keep mode tabs consistent. */
#authGate .auth-card :is(.form-control,input,select){background:#fff!important;color:#183e68!important;border-color:#a4c8e9!important;color-scheme:light!important}
#authGate .login-kind-btn:not(.active){background:linear-gradient(#fff,#eaf4ff)!important;color:#13477c!important}
#authGate .login-kind-btn.active{background:var(--ses-v5-gold)!important;color:#12385b!important;border-color:#c78c14!important}
/* Do not override approved 3D SES logo size, landscape hero or blue footer. */
@media(max-width:760px){
  #sesWebRoot .ses-nav button{min-height:50px!important;font-size:14px!important}
  #sesWebRoot :is(.form-control,select,input,textarea){font-size:16px!important}
  #appShell .modal-backdrop .modal-card :is(.form-control,select,input,textarea){font-size:16px!important}
  #sesWebRoot .ses-view.active.ses-grid-view{grid-template-columns:minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){#sesWebRoot .ses-nav button{transition:none!important}}


/* V5 enhanced 3D modal controls, inputs and smart-entry dropdowns */
/* SES SOLAR PRO V5 / One brand for all menus and forms: pearl white, deep blue, warm gold.
   Designed to override the V4 charcoal !important dialog styles without changing their logic. */
:root{
  --ses-v5-blue-hex:#0756a5;--ses-v5-blue-deep:#073c80;--ses-v5-blue-ink:#123b69;
  --ses-v5-gold-hex:#e8a916;--ses-v5-gold-bright:#ffd567;--ses-v5-white:#fff;
  --ses-v5-line:#b7d5f5;--ses-v5-hint:#365f8b;
  --ses-v5-depth:inset 0 2px 2px #fff,0 8px 18px #09509b25,0 2px 3px #0b4b8822;
}
/* Dialogs sit outside the new web dashboard. These selectors override the old dark palette. */
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card{
  color-scheme:light!important;
  color:var(--ses-v5-blue-ink)!important;
  background:linear-gradient(157deg,#ffffff 3%,#f1f8ff 58%,#e0eeff 100%)!important;
  border:2px solid #b2d5fa!important;
  border-bottom:4px solid #8dbced!important;
  border-radius:23px!important;
  box-shadow:inset 0 3px 2px #fff,0 23px 60px #052f716b,0 5px 0 #8caed8!important;
  scrollbar-color:#9dc4e8 transparent;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop){
  background:rgba(4,29,68,.72)!important;backdrop-filter:blur(10px)!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-header{
  padding:4px 0 13px!important;margin-bottom:16px!important;
  border-bottom:2px solid #c7dff8!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.modal-title,.form-label,.card-title,h2,h3,h4),
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.permission-panel strong,.spec-form-section h4,.spec-section h4,.spec-details summary,.spec-top strong,.spec-feed-item .rowline strong){
  color:#064b94!important;text-shadow:0 1px 0 white!important;opacity:1!important;font-weight:900!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card .modal-title{
  font-size:clamp(17px,2.7vw,22px)!important;letter-spacing:-.2px!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(p,small,.microcopy,.spec-mini,.photo-help,.v8-muted,.form-locked-note,.spec-detail-row span){
  color:#355c83!important;opacity:1!important;line-height:1.85!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.form-control,input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),textarea,select){
  color:#153d6c!important;
  -webkit-text-fill-color:currentColor;
  background:linear-gradient(180deg,#fff 0%,#f9fcff 70%,#ecf5ff 100%)!important;
  border:1.5px solid #9ec5ed!important;
  border-bottom:2px solid #84b5e7!important;
  border-radius:13px!important;opacity:1!important;
  box-shadow:inset 0 2px 5px #cde2fa55,0 2px 0 #fff!important;
  font-size:clamp(13px,2vw,16px)!important;
  min-height:45px;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(input,textarea)::placeholder{
  color:#5a789a!important;opacity:1!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(input,textarea,select):focus-visible{
  outline:3px solid #ffc453!important;outline-offset:2px!important;
  border-color:#0874ce!important;box-shadow:0 0 0 4px #71b7ff3a!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card option{
  background:#f6fbff!important;color:#133c70!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.permission-panel,.spec-create-box,.spec-form-section,.v8-quick-box,.spec-details,.spec-quick>div,.spec-feed-item,.grid-3-money>div,.pin-display),
#sesWebRoot :is(.permission-panel,.spec-create-box,.spec-form-section,.v8-quick-box,.spec-details,.spec-quick>div,.spec-feed-item,.grid-3-money>div,.staff-box,.custody-cell,.kpi-box,.v84-tile,.camera-zone,.pin-display){
  color:#143e73!important;
  background:linear-gradient(154deg,#fff 4%,#f1f7ff 68%,#e4f0ff 100%)!important;
  border:1.5px solid #bed6f0!important;border-bottom:3px solid #a7c8e9!important;
  border-radius:16px!important;
  box-shadow:var(--ses-v5-depth)!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.permission-option,.assignment-option,.team-person,.v8-line,.staff-box),
#sesWebRoot :is(.permission-option,.assignment-option,.spec-detail-row,.v8-line){
  color:#143e73!important;background:linear-gradient(145deg,#fff,#eaf5ff)!important;
  border:1.5px solid #c3daf1!important;border-radius:13px!important;
  box-shadow:inset 0 2px 0 white,0 3px 8px #0e60ac16!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.spec-detail-row strong,.spec-quick strong,.grid-3-money strong,.spec-consent,.staff-val),
#sesWebRoot :is(.spec-consent,.staff-val,.spec-quick strong,.spec-detail-row strong,.grid-3-money strong,.v84-tile label){
  color:#113e74!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.spec-alert,.spec-approved){
  color:#78510b!important;background:#fff8e2!important;border-color:#ebc968!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card .spec-approved{
  background:#e8fbf0!important;color:#07643f!important;border-color:#9ddab4!important;
}
#sesWebRoot :is(.microcopy,.spec-mini,.v8-muted,.staff-lbl,.photo-help,.spec-detail-row span,.grid-3-money small,.team-person small,.v84-tile small,.spec-quick small){
  color:#416187!important;opacity:1!important;line-height:1.8!important;
}
#sesWebRoot :is(.spec-form-section h4,.spec-section h4,.spec-top strong,.spec-feed-item .rowline strong,.spec-details summary){
  color:#074f9b!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.close-x,.pin-key){
  background:linear-gradient(160deg,#fff,#e5f3ff)!important;
  color:#12518d!important;border:1.5px solid #9bc2ea!important;
  border-radius:11px!important;box-shadow:var(--ses-v5-depth)!important;
  min-width:38px;min-height:38px;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.select-chip,.mode-btn),
#sesWebRoot :is(.select-chip,.mode-btn,.project-view-btn){
  background:linear-gradient(#fff,#e9f4ff)!important;color:#194878!important;
  border:1.5px solid #a9cbed!important;border-radius:13px!important;
  font-weight:900!important;opacity:1!important;
  box-shadow:inset 0 2px 0 #fff,0 4px 10px #0e539e28!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.select-chip.active,.mode-btn.active,.mode-btn.active-tech,.mode-btn.active-admin),
#sesWebRoot :is(.select-chip.active,.project-view-btn.active,.mode-btn.active-admin,.mode-btn.active-tech){
  background:linear-gradient(180deg,#fff1ad,#ffd36b 44%,#e5a313)!important;
  color:#283a51!important;border-color:#c68c17!important;
  box-shadow:inset 0 3px 2px #fff9dc,0 6px 12px #9c6d1d48!important;
}
#sesWebRoot :is(.project-view-switch,.mode-switcher){
  background:#eaf4ff!important;border:1.5px solid #a8cbed!important;border-radius:14px!important;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(.btn-submit,.btn-pill.gold,.btn-pill.blue){
  color:#153756!important;
  background:linear-gradient(180deg,#fff0a7,#ffcf54 44%,#e9a318)!important;
  border:1.5px solid #bd8617!important;border-radius:14px!important;
  box-shadow:inset 0 3px 2px #fff9d5,0 7px 13px #a2782a5c!important;
  font-weight:900!important;min-height:46px;
}
:is(#appShell .modal-backdrop, body > .modal-backdrop) .modal-card :is(input[type="checkbox"],input[type="radio"]){
  accent-color:#126dc9!important;opacity:1!important;
}
#sesWebRoot .select-chip{background:linear-gradient(#fff,#e8f4ff)!important;color:#104b8c!important;border-color:#a9cbed!important}
#sesWebRoot .select-chip.active{background:linear-gradient(#fff1a9,#ffcf55,#e6a516)!important;color:#253951!important;border-color:#bf850b!important}
#sesWebRoot .badge-blue{background:#e4f2ff!important;color:#0754a2!important;border:1px solid #a3c7ef!important}
#sesWebRoot .badge-gold{background:#fff2d5!important;color:#80520e!important;border:1px solid #eec270!important}
#sesWebRoot .badge-green{background:#e3faef!important;color:#08633f!important;border:1px solid #8dd7b5!important}
#sesWebRoot :is(.icon-btn,.btn-cam.gallery){background:linear-gradient(#fff,#e9f4ff)!important;color:#0d4f94!important;border:1px solid #afcceb!important}
#sesWebRoot .btn-cam.live{background:linear-gradient(#fff0ad,#f1bf3f)!important;color:#183d65!important}
#sesWebRoot .proj-chip:not(.active){background:linear-gradient(145deg,#fff,#e6f2ff)!important;border-color:#aac9e8!important;box-shadow:var(--ses-v5-depth)!important}
#sesWebRoot .proj-chip:not(.active) :is(.proj-chip-name,.proj-chip-staff,.proj-chip-custody){color:#184673!important}
#sesWebRoot :is(.form-control,input:not([type="checkbox"]):not([type="radio"]),select,textarea){color:#153d6b!important}
#sesWebRoot :is(.form-control,input,textarea)::placeholder{color:#547496!important;opacity:1!important}
#sesWebRoot :is(.form-control,textarea,select):focus-visible{outline:3px solid #f8b92f!important;outline-offset:2px!important}
#sesWebRoot .toast{background:#074c96!important;color:#fff!important}
/* Preserve the real status meanings throughout the theme. */
#sesWebRoot :is(.text-danger,.badge-red,.ses-horizon-status.red){color:#a42b2b!important}
#sesWebRoot :is(.text-success,.badge-success,.ses-horizon-status.done){color:#076a42!important}
/* Cross-page navigation / cards share the SES blue headers and gold selected state. */
#sesWebRoot :is(.ses-section-intro h2,.ses-web-card h3){color:#074b99!important}
#sesWebRoot :is(.ses-sidebar,.ses-web-card,.ses-action-card){color:#16436f!important}
#sesWebRoot .ses-sidebar button[aria-current="page"],
#sesWebRoot .ses-sidebar button.active{
  color:#14385d!important;background:linear-gradient(180deg,#fff1b7,#ffd05d,#efa813)!important;
  border-radius:13px!important;box-shadow:inset 0 2px 0 #fff7d3,0 5px 12px #a66f1f44!important;
}
/* Entry suggestion popup, built as a body portal so it is not clipped by dialogs. */
#sesV5SuggestPanel.ses-v5-suggest-panel{
  position:fixed!important;z-index:12000!important;direction:rtl!important;
  overflow:auto!important;padding:6px!important;
  background:linear-gradient(150deg,#fff,#eaf4ff)!important;
  color:#174575!important;border:2px solid #93c3f5!important;
  border-radius:15px!important;box-shadow:0 15px 35px #052e6e77,inset 0 2px 0 #fff!important;
  overscroll-behavior:contain;
}
#sesV5SuggestPanel[hidden]{display:none!important}
#sesV5SuggestPanel .ses-v5-suggest-title{
  font-size:12px;font-weight:900;position:sticky;top:-6px;padding:9px 10px;
  background:linear-gradient(100deg,#0c66c4,#073d82);color:white;
  border-radius:10px;text-align:right;z-index:1;
}
#sesV5SuggestPanel .ses-v5-suggest-list{display:grid;gap:4px;padding-top:6px}
#sesV5SuggestPanel .ses-v5-option{
  display:block!important;width:100%!important;min-height:42px!important;
  border:1px solid #c0daf6!important;border-radius:10px!important;
  color:#174a80!important;background:linear-gradient(#fff,#eaf5ff)!important;
  box-shadow:inset 0 2px 0 white!important;
  text-align:right!important;font-family:inherit!important;font-weight:750!important;
  line-height:1.6!important;padding:8px 10px!important;white-space:normal!important;
  overflow-wrap:anywhere!important;cursor:pointer!important;
}
#sesV5SuggestPanel .ses-v5-option:hover,#sesV5SuggestPanel .ses-v5-option.active{
  background:linear-gradient(#ffefad,#ffd26c,#f3b93d)!important;color:#133c65!important;
  border-color:#e5b044!important;
}
#sesV5SuggestPanel .ses-v5-suggest-foot{
  display:block!important;color:#3f6083!important;font-size:11px!important;
  padding:8px 5px 3px!important;line-height:1.5!important;
}
.ses-v5-select-trigger{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:36px;margin:6px 0 0;padding:5px 13px;
  border:1px solid #9cc6ee;border-radius:10px;color:#07539a;
  background:linear-gradient(#fff,#e6f3ff);font-weight:850;font-size:12px;
  box-shadow:inset 0 2px 0 white,0 3px 7px #0e4b9021;cursor:pointer;
}
.ses-v5-select-search-wrap{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:8px 0}
.ses-v5-select-search-wrap .ses-v5-select-search{
  flex:1 1 165px;min-width:0;min-height:43px;border:2px solid #75b4ed!important;
  border-radius:11px!important;color:#123d72!important;background:#fff!important;
  padding:8px 12px!important;font-size:15px!important;direction:rtl!important;
}
.ses-v5-search-close{min-height:41px;padding:7px 12px;border-radius:10px;
  color:#194c81;background:#e9f3ff;border:1px solid #add0f2;font-weight:850;cursor:pointer}
@media(max-width:760px){
  :is(#appShell .modal-backdrop,body > .modal-backdrop) .modal-card{padding:17px!important;border-radius:19px!important}
  :is(#appShell .modal-backdrop,body > .modal-backdrop) .modal-card :is(.form-control,input,select,textarea){font-size:16px!important}
  .ses-v5-select-trigger{min-height:39px;font-size:13px}
  #sesV5SuggestPanel .ses-v5-option{min-height:48px!important;font-size:14px!important}
}
@media(prefers-reduced-motion:reduce){#sesV5SuggestPanel *{animation:none!important;transition:none!important}}

/* V5 additional audit: neutralise the stale charcoal palette on legacy cards and menus. */
#sesWebRoot :is(.ses-nav-label,.ses-location,.ses-top-picker label){color:#285683!important}
#sesWebRoot :is(.card,.ses-empty,.ses-fact,.ses-counter,.ses-phase-item,.profit-hero,.custody-banner,.mini-stat,.exp-item,.bottom-bar,.ses-tag,.v8-line,.ses-mini-task,.ses-action-card){
  background:linear-gradient(155deg,#fff 0%,#f2f8ff 60%,#e6f2ff 100%)!important;
  color:#173f6c!important;border-color:#bcd7ef!important;box-shadow:inset 0 2px 2px #fff,0 8px 18px #0c54951f!important;
}
#sesWebRoot :is(.ses-fact strong,.ses-mini-task strong,.ses-action-card strong,.exp-title,.exp-amount,.card-title,.profit-hero strong,.mini-stat strong){color:#0a4c91!important}
#sesWebRoot :is(.ses-fact small,.exp-meta,.ses-empty,.ses-mini-task small,.ses-action-card p,.ses-counter,.ses-nav-label){color:#456b8c!important}
#sesWebRoot :is(.form-label,.form-help,.ses-web-card p,.ses-project-stat){color:#244f7b!important}
#sesWebRoot :is(.btn-pill:not(.gold):not(.blue):not(.danger),.icon-btn,.btn-cam.gallery){background:linear-gradient(#fff,#e9f4ff)!important;color:#10518f!important;border-color:#afccec!important}
#sesWebRoot .btn-pill.danger{background:#fff0f2!important;color:#a42b38!important;border-color:#efb7bf!important}
#sesWebRoot .badge-red{background:#ffecef!important;color:#a32139!important}
#sesWebRoot .card-header{border-bottom:2px solid #c5def4!important}
#sesWebRoot :is(.form-control,input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select){
  color-scheme:light!important;color:#123b69!important;background:#fff!important;
  border:1.5px solid #9dc5ed!important;opacity:1!important;
}
#sesWebRoot select option{background:#fff!important;color:#123b69!important}
#sesWebRoot :is(.select-chip,.mode-btn,.project-view-btn){opacity:1!important}
#sesWebRoot :is(.select-chip.active,.mode-btn.active,.project-view-btn.active){background:linear-gradient(180deg,#fff1b6,#ffcf5b 48%,#e8a614)!important;color:#153757!important}
/* Basket category administration */
#sesWebRoot .ses-v5-cat-tools{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0;color:#36618b;font-size:13px;font-weight:800}
#sesWebRoot .ses-v5-manage{background:linear-gradient(160deg,#0f73cb,#084887)!important;color:#fff!important;border:1px solid #07539b!important;border-radius:13px!important;box-shadow:inset 0 2px 0 #8fcfff,0 7px 13px #0a4a8d45!important;padding:10px 14px!important;min-height:44px}
#sesWebRoot .ses-v5-manager{max-width:min(95vw,870px);width:100%;max-height:88dvh;overflow-y:auto}
#sesWebRoot .ses-v5-explain{color:#41638a!important;background:#e7f3ff!important;border:1px solid #bedcf7;border-radius:12px;padding:10px 13px;line-height:1.85}
#sesWebRoot .ses-v5-rows{display:grid;gap:9px;margin:15px 0}
#sesWebRoot .ses-v5-cat-row{display:flex;align-items:center;justify-content:space-between;gap:11px;flex-wrap:wrap;background:linear-gradient(#fff,#eaf5ff);border:1px solid #bfdbf6;border-radius:14px;padding:11px 13px;box-shadow:0 4px 12px #0b4a8d16}
#sesWebRoot .ses-v5-cat-row strong{color:#0b4a90!important;font-size:14px}
#sesWebRoot .ses-v5-row-actions{display:flex;flex-wrap:wrap;gap:6px}
#sesWebRoot .ses-v5-row-actions button{min-height:39px;padding:6px 10px;font-size:12px}
#sesWebRoot .ses-v5-row-actions button.danger{color:#a42b38!important;background:#ffeef1!important;border:1px solid #efb5c0!important}
#sesWebRoot .ses-v5-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,130px);gap:12px}
#sesWebRoot .ses-v5-edit-grid label{display:flex;flex-direction:column;gap:7px;color:#14518d!important;font-weight:900}
#sesWebRoot .ses-v5-editor{background:linear-gradient(#f3f9ff,#e8f3ff);border:1.5px solid #bfd9ef;border-radius:14px;padding:14px}
#sesWebRoot .ses-v5-edit-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
#sesWebRoot .ses-v5-status{margin:10px 0 0;color:#076647!important;font-weight:800;min-height:1.6em}
#sesWebRoot .ses-v5-status[data-error=yes]{color:#b12732!important}
#sesWebRoot #sesV5ExpenseCategories{display:flex;flex-wrap:wrap;gap:8px}
#sesWebRoot #sesV5ExpenseCategories .select-chip{cursor:pointer;min-height:45px;padding:9px 12px;font-size:13px;line-height:1.7}
#sesWebRoot #sesV5ExpenseCategories .select-chip:focus-visible{outline:3px solid #ffca4a!important;outline-offset:2px}
#sesWebRoot #sesV5CatModal{z-index:9000}
@media(max-width:480px){#sesWebRoot .ses-v5-edit-grid{grid-template-columns:minmax(0,1fr) 105px}#sesWebRoot .ses-v5-row-actions{width:100%}#sesWebRoot .ses-v5-cat-row{align-items:flex-start}}
