/*
 CPGCBL EMD | Original-site UI Pro R1 | 2026-10-30
 Main website ONLY. This file is linked exclusively by index.html.
 No new DOM structure / no event listeners / no changes to Work Form / Worker.
 Exactly 3 palettes: light=Classic White, hybrid=Ocean Blue, dark=Midnight Dark.
 Performance: small paint effects, no ambient GPU filter on fixed header, no layout-jump hover.
*/
body.r107-ui[data-theme="light"]{
 --bg:#f6f8fb!important;--panel:#fff!important;--panel2:#f9fbfd!important;--panel3:#eaf1f9!important;
 --side:#fff!important;--line:#dae3ed!important;--text:#1b293a!important;--muted:#62748a!important;
 --accent:#2563b8!important;--accent2:#2983bc!important;--good:#15836f!important;--warn:#a96f18!important;--bad:#bd4353!important;
 --r109-side:#ffffff!important;--r109-side2:#fafcff!important;--r109-hero:#ffffff!important;
 --r113-main:#f6f8fb!important;--r113-heading:#152c45!important;--r113-ink:#25415e!important;--r113-head:#f6f9fc!important;
 --r113-surface:#fff!important;--r113-soft:#f5f8fc!important;--r113-edge:#dce5ee!important;--r113-glow:#2a5c9117!important;
 --r113-side-ink:#233b56!important;--r113-side-sub:#61768d!important;--r113-side-active:#eaf2fc!important;
 --r113-field:#fff!important;--r113-table:#f1f6fc!important;--shadow:0 3px 16px #1a38520d!important;
 --emd-pro-surface:#fff;--emd-pro-hover:#f2f7fd;--emd-pro-active:#eaf2ff;--emd-pro-focus:#407bca;
}
body.r107-ui[data-theme="hybrid"]{
 --bg:#eff5fd!important;--panel:#fff!important;--panel2:#f6faff!important;--panel3:#e3edfb!important;
 --side:#122e51!important;--line:#d7e4f2!important;--text:#15314e!important;--muted:#5b7391!important;
 --accent:#1968c6!important;--accent2:#2084d5!important;--good:#128a75!important;--warn:#a96f18!important;--bad:#b83d58!important;
 --r109-side:#122e51!important;--r109-side2:#122e51!important;--r109-hero:#ffffff!important;
 --r113-main:#edf4fd!important;--r113-heading:#18395d!important;--r113-ink:#254e79!important;--r113-head:#f6fbff!important;
 --r113-surface:#fff!important;--r113-soft:#f0f6ff!important;--r113-edge:#d1e0f2!important;--r113-glow:#0d5ca424!important;
 --r113-side-ink:#ecf5ff!important;--r113-side-sub:#a8c1dd!important;--r113-side-active:#225184!important;
 --r113-field:#f9fcff!important;--r113-table:#edf4ff!important;--shadow:0 3px 18px #12457812!important;
 --emd-pro-surface:#fff;--emd-pro-hover:#f2f7ff;--emd-pro-active:#dceaff;--emd-pro-focus:#2c80d4;
}
body.r107-ui[data-theme="dark"]{
 --bg:#0b1625!important;--panel:#142439!important;--panel2:#1a2d45!important;--panel3:#213954!important;
 --side:#101f33!important;--line:#31465f!important;--text:#eff6ff!important;--muted:#afc1d4!important;
 --accent:#67b5ff!important;--accent2:#47d1db!important;--good:#60d6ad!important;--warn:#f6c06b!important;--bad:#ff8b9b!important;
 --r109-side:#101f33!important;--r109-side2:#101f33!important;--r109-hero:#182f47!important;
 --r113-main:#0b1625!important;--r113-heading:#f0f7ff!important;--r113-ink:#eff7ff!important;--r113-head:#1b3049!important;
 --r113-surface:#142439!important;--r113-soft:#1b3048!important;--r113-edge:#324a66!important;--r113-glow:#3c90d528!important;
 --r113-side-ink:#eaf4ff!important;--r113-side-sub:#aac0d7!important;--r113-side-active:#1c4268!important;
 --r113-field:#1c3048!important;--r113-table:#1b3048!important;--shadow:0 4px 20px #00000028!important;
 --emd-pro-surface:#142439;--emd-pro-hover:#213a55;--emd-pro-active:#1f4268;--emd-pro-focus:#67b5ff;
}
/* Preserve the original sidebar + workspace + topbar placement. No reparenting. */
body.r107-ui #mainShell {font-family:Inter,"Segoe UI",system-ui,Arial,sans-serif!important;-webkit-font-smoothing:antialiased;}
body.r107-ui #mainShell .main{background:var(--r113-main)!important;}
body.r107-ui #mainShell .side{
 background:var(--r109-side)!important;border-right:1px solid var(--r113-edge)!important;
 box-shadow:2px 0 10px rgba(16,46,78,.035)!important;
}
body.r107-ui #mainShell .top{
 background:var(--panel)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 border-bottom:1px solid var(--r113-edge)!important;box-shadow:0 1px 7px rgba(21,52,78,.055)!important;
}
body.r107-ui #mainShell .top .title{letter-spacing:-.025em!important;font-weight:760!important;line-height:1.23!important;}
body.r107-ui #mainShell .logo b{letter-spacing:-.01em;font-weight:780!important;}
body.r107-ui #mainShell .side .navbtn{
 border-radius:9px!important;transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease!important;
 box-shadow:none!important;transform:none!important;
}
body.r107-ui #mainShell .side .navbtn:hover{background:var(--r113-side-active)!important;}
body.r107-ui #mainShell .side .navbtn.active{
 background:var(--r113-side-active)!important;
 border-color:color-mix(in srgb,var(--accent) 30%,var(--r113-edge))!important;
 box-shadow:inset 3px 0 var(--accent)!important;
}
body.r107-ui #mainShell #content{padding:18px 22px 36px!important;}
/* Controls: consistent size, focus and affordance; NEVER alter disabled/hidden state. */
body.r107-ui #mainShell :is(.btn,.tab,.module,.r4-tabs button,.r4-filterbar button){
 border-radius:9px!important;transition:background-color 135ms ease,color 135ms ease,border-color 135ms ease,box-shadow 135ms ease!important;
 font-weight:700!important;transform:none!important;
}
body.r107-ui #mainShell :is(.btn,.tab,.module,.r4-tabs button):hover:not(:disabled){box-shadow:none!important;}
body.r107-ui #mainShell :is(button,a,input,select,textarea):focus-visible{
 outline:2px solid var(--emd-pro-focus)!important;outline-offset:2px!important;
}
body.r107-ui #mainShell :is(input,select,textarea){border-color:var(--r113-edge)!important;}
body.r107-ui #mainShell :is(input,select,textarea):focus{border-color:var(--accent)!important;}
body.r107-ui #mainShell :is(.r4-filterbar,.toolbar,.tabs,.modules){border-color:var(--r113-edge)!important;box-shadow:none!important;}
/* A cohesive table, KPI and card treatment throughout the existing modules. */
body.r107-ui #mainShell :is(.card,.r5-card,.r4-card,.r4-workspaces button,.parity-kpi,.r4-kpi,.r5-kpi,.kpi){
 border-radius:11px!important;border-color:var(--r113-edge)!important;
 box-shadow:0 2px 10px rgba(12,38,65,.055)!important;
 transition:border-color 140ms ease,background-color 140ms ease,box-shadow 140ms ease!important;
 transform:none!important;
}
body.r107-ui #mainShell :is(.r4-workspaces button,.r4-kpi,.parity-kpi,.kpi):hover{
 transform:none!important;box-shadow:0 3px 13px rgba(12,38,65,.09)!important;
 border-color:color-mix(in srgb,var(--accent) 30%,var(--r113-edge))!important;
}
body.r107-ui #mainShell :is(.r5-table,.r4-table,.table) :is(th,td){border-color:var(--r113-edge)!important;}
body.r107-ui #mainShell :is(.r5-table,.r4-table,.table) thead th{font-weight:770!important;letter-spacing:.018em!important;}
body.r107-ui #mainShell :is(.r5-table,.r4-table,.table) tbody tr:hover td{
 background:color-mix(in srgb,var(--accent) 6%,var(--panel))!important;
}
body.r107-ui #mainShell :is(.r4-hero,.daily-hero,.r5-hero){box-shadow:none!important;}
/* Original drawers/modals remain exactly the same DOM and functional behavior. */
body.r107-ui :is(#drawer .drawerpanel,.modalback .modal){
 border-color:var(--r113-edge)!important;
 box-shadow:0 14px 45px rgba(8,27,44,.16)!important;
}
body.r107-ui :is(.drawerhead,.modalhead){border-color:var(--r113-edge)!important;}
/* Remove continuous decorative/compositor-heavy motion; user-triggered effects remain. */
body.r107-ui #mainShell :is(.r4-orbit,.r4-orbit i,.r113-kpi-icon,.r5-orbit){animation:none!important;filter:none!important;}
body.r107-ui #mainShell :is(.r4-chart,.r4-line,.r4-workspaces button){filter:none!important;}
body.r107-ui #mainShell .r113-theme-choice{border:1px solid var(--r113-edge)!important;}
body.r107-ui #mainShell #themeGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
/* The theme modal lives outside #mainShell; style three source-defined options. */
body.r107-ui #themeGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body.r107-ui #themeGrid .theme-choice{border-radius:11px!important;}
body.r107-ui #themeGrid .theme-choice.active{outline:2px solid var(--accent)!important;outline-offset:1px!important;}
body.r107-ui #themeGrid .r113-pv-light{background:linear-gradient(140deg,#f9fbfe,#f0f6ff)!important;}
body.r107-ui #themeGrid .r113-pv-hybrid{background:linear-gradient(140deg,#f1f7ff 0 52%,#164b84 52%)!important;}
body.r107-ui #themeGrid .r113-pv-dark{background:linear-gradient(140deg,#112137,#173558)!important;}
@media(max-width:1000px){body.r107-ui #mainShell #content{padding:15px 15px 28px!important;}}
@media(max-width:700px){body.r107-ui #mainShell #content{padding:12px 11px 25px!important;}body.r107-ui #themeGrid{grid-template-columns:1fr!important;}}
@media(prefers-reduced-motion:reduce){body.r107-ui #mainShell *{transition-duration:0ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important;}}
