:root{
  --evm-navy:#061b35;
  --evm-navy-2:#082b50;
  --evm-blue:#0969b5;
  --evm-blue-2:#1486d4;
  --evm-cyan:#64c7ff;
  --evm-accent:#f5bd00;
  --evm-bg:#eef4fb;
  --evm-card:#ffffff;
  --evm-field:#f6f9fd;
  --evm-text:#0b1d33;
  --evm-muted:#60758e;
  --evm-line:#d8e4f1;
  --evm-success:#128447;
  --evm-danger:#d92d3a;
  --evm-warning:#f5b700;
  --evm-shadow:0 12px 34px rgba(8,42,79,.10);
  --evm-header-height:118px;
}
*{box-sizing:border-box}
html,body{margin:0!important;padding:0!important;min-height:100%;width:100%;max-width:none!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;color:var(--evm-text);background:var(--evm-bg)!important}
html{scroll-behavior:smooth}
body.evmsk-suite-body,body.evmsk-auth-body{display:block!important;position:static!important;transform:none!important;inset:auto!important;max-width:none!important;width:100%!important;padding:0!important;margin:0!important;background:linear-gradient(145deg,#edf4fc 0%,#f7faff 55%,#eef5fb 100%)!important;color:var(--evm-text)!important}
body.evmsk-suite-body::before,body.evmsk-auth-body::before{content:"";position:fixed;inset:0;background-image:linear-gradient(115deg,rgba(239,246,255,.94),rgba(255,255,255,.90)),url("/EVM/admin/BrandingSK.png");background-position:center;background-size:cover;background-repeat:no-repeat;z-index:-2;pointer-events:none}
body.evmsk-suite-body::after,body.evmsk-auth-body::after{display:none!important;content:none!important}
.evmsk-suite-page{min-height:100vh;display:flex;flex-direction:column;width:100%;margin:0;padding:0}

/* Direct, non-buffered suite header */
.evmsk-suite-header{width:100%;margin:0!important;padding:0;background:linear-gradient(103deg,var(--evm-navy) 0%,#074477 52%,#0879c5 100%);color:#fff;box-shadow:0 10px 30px rgba(5,31,60,.25);position:sticky;top:0;z-index:1000;border:0;border-radius:0;isolation:isolate}
.evmsk-suite-toprow{min-height:66px;padding:7px 16px;display:grid;grid-template-columns:minmax(205px,245px) minmax(245px,1fr) auto;align-items:center;gap:14px;border-bottom:1px solid rgba(255,255,255,.13)}
.evmsk-suite-brand{min-width:0;display:flex;align-items:center;gap:11px;text-decoration:none!important;color:#fff!important}
.evmsk-suite-brand img{width:44px;height:44px;object-fit:contain;background:#fff;border-radius:9px;padding:3px;box-shadow:0 3px 10px rgba(0,0,0,.18)}
.evmsk-suite-brand span{min-width:0;border-left:1px solid rgba(255,255,255,.22);padding-left:11px;line-height:1.04}
.evmsk-suite-brand strong{display:block;font-size:17px;font-weight:850;letter-spacing:.015em}
.evmsk-suite-brand small{display:block;color:#c8e6fb;font-size:10px;margin-top:5px;white-space:nowrap}
.evmsk-suite-context{min-width:0;display:flex;justify-content:center;align-items:center;gap:7px}
.evmsk-suite-context>span{min-width:135px;max-width:260px;height:48px;padding:6px 11px;border:1px solid rgba(255,255,255,.14);border-radius:9px;background:rgba(2,21,43,.25);display:flex;flex-direction:column;justify-content:center}
.evmsk-suite-context small{font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.06em;color:#a9d9fa;font-weight:750;margin-bottom:5px}
.evmsk-suite-context strong{font-size:11px;line-height:1.15;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.evmsk-suite-tools{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap;min-width:0}
.evmsk-suite-toolgroup{display:flex;align-items:center;gap:4px;padding-right:5px;margin-right:1px;border-right:1px solid rgba(255,255,255,.13)}
.evmsk-suite-toolgroup:last-of-type{border-right:0;padding-right:0}
.evmsk-suite-tool,.evmsk-suite-theme,.evmsk-suite-user,.evmsk-suite-language{height:43px;border:1px solid rgba(255,255,255,.15);border-radius:8px;background:rgba(255,255,255,.065);color:#fff!important;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;font-weight:760;font-size:10px;line-height:1;transition:background .16s,border-color .16s,color .16s,transform .16s;box-shadow:none!important}
button.evmsk-suite-tool,button.evmsk-suite-theme{font-family:inherit;cursor:pointer;padding:0;margin:0}
.evmsk-suite-tool{min-width:45px;padding:4px 7px;flex-direction:column;gap:4px}
.evmsk-suite-tool:hover,.evmsk-suite-tool:focus-visible,.evmsk-suite-tool.active{background:rgba(255,255,255,.13);border-color:var(--evm-cyan);color:#fff!important;transform:translateY(-1px);outline:none}
.evmsk-suite-tool.is-disabled{opacity:.42;pointer-events:none;filter:saturate(.3)}
.evmsk-tool-icon{font-size:16px;line-height:1;height:17px;display:flex;align-items:center;justify-content:center;font-weight:850}
.evmsk-tool-icon-text{font-size:9px;border:1px solid currentColor;border-radius:3px;padding:2px 3px}
.evmsk-suite-tool-compact{min-width:43px}
.evmsk-suite-theme{padding:0 7px;gap:5px;min-width:61px;flex-direction:row}
.evmsk-suite-theme>span:first-child{font-size:15px}
.evmsk-suite-theme i{width:24px;height:13px;border-radius:999px;background:#355d80;display:block;position:relative}
.evmsk-suite-theme i::after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#fff;left:2px;top:2px;transition:.2s}
.evmsk-suite-theme.on i{background:var(--evm-accent)}
.evmsk-suite-theme.on i::after{left:13px;background:#10243c}
.evmsk-suite-language{overflow:hidden;min-width:66px}
.evmsk-suite-language a{height:100%;min-width:33px;padding:0 6px;display:flex;align-items:center;justify-content:center;color:#fff!important;text-decoration:none!important;border-right:1px solid rgba(255,255,255,.14);font-size:10px;font-weight:850}
.evmsk-suite-language a:last-child{border-right:0}
.evmsk-suite-language a.active{background:#fff;color:var(--evm-blue)!important;box-shadow:inset 0 0 0 1px #fff}
.evmsk-suite-user{padding:0 9px;gap:7px;justify-content:flex-start;min-width:98px}
.evmsk-suite-avatar{font-size:17px;color:#89d7ff}
.evmsk-suite-user>span:last-child{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.evmsk-suite-user strong{max-width:85px;overflow:hidden;text-overflow:ellipsis;font-size:10px}
.evmsk-suite-user small{font-size:9px;color:#b7dcf5;margin-top:3px}
.evmsk-suite-user:hover{border-color:#ffcf3c;background:rgba(255,255,255,.12);color:#fff!important}
.evmsk-suite-menu-toggle{display:none;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;border-radius:8px;padding:8px 11px;font-size:18px;cursor:pointer}
.evmsk-suite-auth-title{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;min-width:0}
.evmsk-suite-auth-title strong{font-size:14px}.evmsk-suite-auth-title small{font-size:10px;color:#b9def7;margin-top:4px}
.evmsk-suite-auth-tools{justify-self:end}

.evmsk-suite-navrow{height:52px;padding:0 16px;display:flex;align-items:stretch;background:rgba(1,20,40,.31)}
.evmsk-suite-mainnav{width:100%;display:grid;grid-template-columns:repeat(11,minmax(0,1fr));align-items:stretch;justify-content:center;gap:5px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.evmsk-suite-navitem{min-width:0;max-width:none;padding:5px 6px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#dceefd!important;text-decoration:none!important;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;font-size:10px;font-weight:780;white-space:nowrap;transition:.17s ease}
.evmsk-suite-navitem:hover,.evmsk-suite-navitem.active{color:#fff!important;background:rgba(255,255,255,.10);border-bottom-color:var(--evm-accent)}
.evmsk-suite-navicon{font-size:17px;line-height:1;color:#85d1ff}.evmsk-suite-navitem.active .evmsk-suite-navicon{color:var(--evm-accent)}

/* Main application shell */
.evmsk-suite-content{width:100%;max-width:none!important;margin:0!important;padding:20px clamp(14px,1.8vw,34px) 34px;flex:1;position:relative}
.evmsk-workspace{width:100%;max-width:1760px;margin:0 auto;padding:0}
.evmsk-suite-content>.container,.evmsk-suite-content.container,.evmsk-suite-content>.container-fluid,.evmsk-suite-content .container,.evmsk-suite-content .container-fluid{max-width:none!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
.evmsk-suite-content #evmTab{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
.evmsk-suite-content #evmTabContent,.evmsk-suite-content .tab-content,.evmsk-suite-content .tab-pane{width:100%!important;max-width:none!important}
.evmsk-suite-content .tab-pane{padding-top:0!important}
.evmsk-suite-content>.text-center.mt-4.mb-1,.evmsk-suite-content .legacy-page-header,.evmsk-suite-content .legacy-header-actions,.evmsk-suite-content>.no-print[style*="text-align:right"]{display:none!important}

/* EVM cards, forms, tables */
.evmsk-suite-content .evm-card,.evmsk-suite-content .card,.evmsk-suite-content fieldset,.evmsk-suite-content .admin-box,.evmsk-suite-content .page-box,.evmsk-suite-content .panel,.evmsk-suite-content .content-box{background:var(--evm-card)!important;border:1px solid var(--evm-line)!important;border-radius:14px!important;box-shadow:var(--evm-shadow)!important;color:var(--evm-text)!important;margin-bottom:18px!important}
.evmsk-suite-content .evm-card,.evmsk-suite-content .card-body,.evmsk-suite-content fieldset,.evmsk-suite-content .admin-box,.evmsk-suite-content .page-box,.evmsk-suite-content .panel,.evmsk-suite-content .content-box{padding:18px!important}
.evmsk-suite-content .admin-box,.evmsk-suite-content .page-box{max-width:1500px!important;margin:0 auto 20px!important}
.evmsk-suite-content h1,.evmsk-suite-content h2,.evmsk-suite-content h3,.evmsk-suite-content h4,.evmsk-suite-content h5,.evmsk-suite-content h6{color:var(--evm-navy)!important;font-weight:820!important;letter-spacing:-.02em}
.evmsk-suite-content h1{font-size:28px}.evmsk-suite-content h2{font-size:22px}.evmsk-suite-content h3{font-size:18px}
.evmsk-suite-content label,.evmsk-suite-content .form-label{font-weight:720;color:#263e58}
.evmsk-suite-content input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),.evmsk-suite-content select,.evmsk-suite-content textarea,.evmsk-suite-content .form-control,.evmsk-suite-content .form-select{border:1px solid var(--evm-line)!important;background:var(--evm-field)!important;color:var(--evm-text)!important;border-radius:8px!important;box-shadow:none!important;min-height:38px;padding:8px 10px!important}
.evmsk-suite-content textarea{min-height:78px}
.evmsk-suite-content input:focus,.evmsk-suite-content select:focus,.evmsk-suite-content textarea:focus,.evmsk-suite-content .form-control:focus,.evmsk-suite-content .form-select:focus{outline:3px solid rgba(20,134,212,.15)!important;border-color:var(--evm-blue-2)!important;background:#fff!important}
.evmsk-suite-content input:disabled,.evmsk-suite-content select:disabled,.evmsk-suite-content textarea:disabled,.evmsk-suite-content input[readonly]{background:#edf2f7!important;color:#718096!important;opacity:1}
.evmsk-suite-content .btn,.evmsk-suite-content button:not(.evmsk-suite-tool):not(.evmsk-suite-theme):not(.evmsk-suite-menu-toggle){border-radius:8px!important;font-weight:760!important;min-height:35px;transition:.16s ease}
.evmsk-suite-content .btn-primary,.evmsk-suite-content button.btn-primary{background:linear-gradient(180deg,var(--evm-blue-2),var(--evm-blue))!important;border-color:var(--evm-blue)!important;color:#fff!important;box-shadow:0 4px 12px rgba(9,105,181,.22)!important}
.evmsk-suite-content .btn-primary:hover{filter:brightness(.97);transform:translateY(-1px)}
.evmsk-suite-content .btn-warning{background:var(--evm-accent)!important;border-color:var(--evm-accent)!important;color:#14243a!important}
.evmsk-suite-content .btn-danger{background:var(--evm-danger)!important;border-color:var(--evm-danger)!important;color:#fff!important}
.evmsk-suite-content .btn-success{background:var(--evm-success)!important;border-color:var(--evm-success)!important;color:#fff!important}
.evmsk-suite-content .btn-outline-secondary,.evmsk-suite-content .btn-light{background:#eef4fa!important;border-color:var(--evm-line)!important;color:var(--evm-navy)!important}
.evmsk-suite-content .table-responsive,.evmsk-table-wrap{width:100%;overflow-x:auto;border-radius:10px;border:1px solid var(--evm-line)}
.evmsk-suite-content table,.evmsk-suite-content .table{width:100%!important;color:var(--evm-text)!important;border-collapse:separate!important;border-spacing:0!important;margin-bottom:0!important;font-size:12px}
.evmsk-suite-content table thead th,.evmsk-suite-content .table thead th{background:linear-gradient(180deg,#eff5fc,#e7f0fa)!important;color:#17324d!important;font-weight:800!important;border-bottom:1px solid #cddbea!important;white-space:nowrap;padding:9px 10px!important}
.evmsk-suite-content table tbody td,.evmsk-suite-content .table tbody td{padding:8px 10px!important;border-color:#e3ebf4!important;vertical-align:middle}
.evmsk-suite-content table tbody tr:nth-child(even) td{background:rgba(239,245,252,.48)}
.evmsk-suite-content table tbody tr:hover td{background:#eaf5ff!important}
.evmsk-suite-content .modal-content{background:var(--evm-card)!important;color:var(--evm-text)!important;border:1px solid var(--evm-line)!important;border-radius:14px!important;box-shadow:0 24px 70px rgba(5,30,58,.28)!important}
.evmsk-suite-content .modal-header,.evmsk-suite-content .modal-footer{border-color:var(--evm-line)!important}
.evmsk-suite-content .alert{border-radius:10px!important;border-width:1px!important;box-shadow:none!important}
.evmsk-suite-content .badge{border-radius:6px;font-weight:760}
.evmsk-suite-content hr{border-color:var(--evm-line)!important;opacity:1}

/* Auth pages */
.evmsk-auth-body .evmsk-suite-content{display:flex;align-items:flex-start;justify-content:center;padding-top:44px}
.evmsk-auth-body .login-box,.evmsk-auth-body .admin-box{width:min(460px,calc(100% - 28px));max-width:460px!important;margin:0 auto!important;padding:30px!important;background:var(--evm-card)!important;border:1px solid var(--evm-line)!important;border-radius:16px!important;box-shadow:0 20px 55px rgba(7,46,85,.18)!important;color:var(--evm-text)!important}
.evmsk-auth-body .login-box .logo{max-width:150px;max-height:65px;object-fit:contain;display:block;margin:0 auto 20px}
.evmsk-auth-body .login-box h3,.evmsk-auth-body .admin-box h2,.evmsk-auth-body .admin-box h4{color:var(--evm-navy)!important;font-weight:820;text-align:center}
.evmsk-auth-body input,.evmsk-auth-body select{background:var(--evm-field)!important;color:var(--evm-text)!important;border:1px solid var(--evm-line)!important;border-radius:9px!important;min-height:43px}
.evmsk-auth-body label{font-weight:720;color:#263e58}

/* Report keeps its specialist report page, but receives the suite header */
body.evmsk-report-body .evmsk-suite-content{padding:0!important;background:#f4f7fb}
body.evmsk-report-body .evmsk-workspace{max-width:none!important}
body.evmsk-report-body .topbar{display:none!important}
body.evmsk-report-body #reportRoot{margin-top:0!important}
body.evmsk-report-body .evmsk-suite-header{position:sticky}

.evmsk-suite-footer{width:100%;padding:13px clamp(16px,2vw,34px);display:flex;align-items:center;justify-content:space-between;gap:18px;background:#071b34;color:#c7d8e9;border-top:1px solid rgba(255,255,255,.09);font-size:11px}
.evmsk-suite-footer>div:first-child{display:flex;align-items:center;gap:8px}.evmsk-suite-footer strong{color:#fff}.evmsk-suite-footer-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:13px}.evmsk-suite-footer a{color:#b8dbf3!important;text-decoration:none}.evmsk-suite-footer a:hover{color:#fff!important;text-decoration:underline}

/* Dark mode */
html.evmsk-dark{color-scheme:dark;--evm-bg:#091321;--evm-card:#14243a;--evm-field:#0e1b2e;--evm-text:#edf4fb;--evm-muted:#a9bacd;--evm-line:#31455f;--evm-shadow:0 14px 38px rgba(0,0,0,.27)}
html.evmsk-dark body.evmsk-suite-body,html.evmsk-dark body.evmsk-auth-body{background:#091321!important;color:var(--evm-text)!important}
html.evmsk-dark body.evmsk-suite-body::before,html.evmsk-dark body.evmsk-auth-body::before{background-image:linear-gradient(115deg,rgba(5,14,26,.93),rgba(10,24,42,.91)),url("/EVM/admin/BrandingDarkSK.png")}
html.evmsk-dark .evmsk-suite-content{color:var(--evm-text)!important}
html.evmsk-dark .evmsk-suite-content .evm-card,html.evmsk-dark .evmsk-suite-content .card,html.evmsk-dark .evmsk-suite-content fieldset,html.evmsk-dark .evmsk-suite-content .admin-box,html.evmsk-dark .evmsk-suite-content .page-box,html.evmsk-dark .evmsk-suite-content .panel,html.evmsk-dark .evmsk-suite-content .content-box,html.evmsk-dark .evmsk-auth-body .login-box,html.evmsk-dark .evmsk-auth-body .admin-box{background:var(--evm-card)!important;color:var(--evm-text)!important;border-color:var(--evm-line)!important}
html.evmsk-dark .evmsk-suite-content h1,html.evmsk-dark .evmsk-suite-content h2,html.evmsk-dark .evmsk-suite-content h3,html.evmsk-dark .evmsk-suite-content h4,html.evmsk-dark .evmsk-suite-content h5,html.evmsk-dark .evmsk-suite-content h6,html.evmsk-dark .evmsk-suite-content label,html.evmsk-dark .evmsk-suite-content .form-label,html.evmsk-dark .evmsk-auth-body label,html.evmsk-dark .evmsk-auth-body h2,html.evmsk-dark .evmsk-auth-body h3,html.evmsk-dark .evmsk-auth-body h4{color:#f5f9fd!important}
html.evmsk-dark .evmsk-suite-content p,html.evmsk-dark .evmsk-suite-content small,html.evmsk-dark .evmsk-suite-content .text-muted{color:#b5c4d6!important}
html.evmsk-dark .evmsk-suite-content input,html.evmsk-dark .evmsk-suite-content select,html.evmsk-dark .evmsk-suite-content textarea,html.evmsk-dark .evmsk-suite-content .form-control,html.evmsk-dark .evmsk-suite-content .form-select,html.evmsk-dark .evmsk-auth-body input,html.evmsk-dark .evmsk-auth-body select{background:var(--evm-field)!important;color:var(--evm-text)!important;border-color:var(--evm-line)!important}
html.evmsk-dark input::placeholder,html.evmsk-dark textarea::placeholder{color:#8296ae!important;opacity:1}
html.evmsk-dark select option{background:#0e1b2e!important;color:#edf4fb!important}
html.evmsk-dark .evmsk-suite-content table,html.evmsk-dark .evmsk-suite-content .table{color:#edf4fb!important;border-color:var(--evm-line)!important}
html.evmsk-dark .evmsk-suite-content table thead th,html.evmsk-dark .evmsk-suite-content .table thead th{background:#20344f!important;color:#fff!important;border-color:#3b526e!important}
html.evmsk-dark .evmsk-suite-content table tbody td,html.evmsk-dark .evmsk-suite-content .table tbody td{background:transparent!important;color:#eaf2fa!important;border-color:#2f435d!important}
html.evmsk-dark .evmsk-suite-content table tbody tr:nth-child(even) td{background:rgba(36,55,79,.42)!important}
html.evmsk-dark .evmsk-suite-content table tbody tr:hover td{background:#243b57!important}
html.evmsk-dark .evmsk-suite-content .btn-outline-secondary,html.evmsk-dark .evmsk-suite-content .btn-light{background:#223650!important;color:#f4f8fc!important;border-color:#405773!important}
html.evmsk-dark .evmsk-suite-content .modal-content{background:#14243a!important;color:#edf4fb!important;border-color:#344a66!important}
html.evmsk-dark .evmsk-suite-content .alert-info{background:#15385d!important;color:#d7ecff!important;border-color:#2c5e8d!important}
html.evmsk-dark .evmsk-suite-content .alert-warning{background:#4c3813!important;color:#ffe9a6!important;border-color:#795e21!important}
html.evmsk-dark .evmsk-suite-content .alert-danger{background:#4a2029!important;color:#ffd9df!important;border-color:#743744!important}
html.evmsk-dark .evmsk-suite-content .alert-success{background:#173d32!important;color:#cef8e9!important;border-color:#2a6954!important}
html.evmsk-dark .evmsk-suite-footer{background:#050d18}

/* Responsive */
@media(max-width:1600px){
  .evmsk-suite-toprow{grid-template-columns:200px minmax(200px,1fr) auto;gap:8px;padding-left:11px;padding-right:11px}
  .evmsk-suite-context>span{min-width:115px;max-width:190px;padding-left:8px;padding-right:8px}
  .evmsk-suite-tool{min-width:41px;padding-left:5px;padding-right:5px;font-size:9px}
  .evmsk-suite-theme{min-width:52px}.evmsk-suite-theme>span:nth-child(2){display:none}
  .evmsk-suite-user{min-width:78px}.evmsk-suite-user strong{max-width:65px}
  .evmsk-suite-products .evmsk-suite-tool>span:last-child{display:none}
}
@media(max-width:1280px){
  .evmsk-suite-toprow{grid-template-columns:190px 1fr auto}
  .evmsk-suite-context{justify-content:flex-start}.evmsk-suite-context>span:nth-child(2){display:none}
  .evmsk-suite-admin .evmsk-suite-tool>span:last-child,.evmsk-suite-actions .evmsk-suite-tool>span:last-child{display:none}
  .evmsk-suite-tool{min-width:38px}
}
@media(max-width:980px){
  .evmsk-suite-header{position:sticky}
  .evmsk-suite-toprow{grid-template-columns:1fr auto;min-height:66px}
  .evmsk-suite-brand{grid-column:1}.evmsk-suite-menu-toggle{display:block;grid-column:2}
  .evmsk-suite-context{grid-column:1/-1;display:none;justify-content:stretch}.evmsk-suite-context>span{display:flex!important;max-width:none;flex:1}
  .evmsk-suite-tools{grid-column:1/-1;display:none;justify-content:flex-start;overflow-x:auto;padding-bottom:3px}
  .evmsk-suite-navrow{display:none;height:auto;padding:7px 10px}
  .evmsk-suite-header.open .evmsk-suite-context,.evmsk-suite-header.open .evmsk-suite-tools,.evmsk-suite-header.open .evmsk-suite-navrow{display:flex}
  .evmsk-suite-header.open .evmsk-suite-toprow{padding-bottom:9px}
  .evmsk-suite-mainnav{display:grid;grid-template-columns:repeat(4,minmax(85px,1fr));overflow:visible;gap:4px}
  .evmsk-suite-navitem{max-width:none;min-height:48px;border-radius:7px;border-bottom-width:2px}
  .evmsk-suite-auth-title{display:none}.evmsk-suite-auth-tools{display:flex!important;grid-column:auto;overflow:visible}
  .evmsk-suite-content{padding:15px 10px 28px}
}
@media(max-width:650px){
  .evmsk-suite-mainnav{grid-template-columns:repeat(2,1fr)}
  .evmsk-suite-context{flex-direction:column}.evmsk-suite-context>span{width:100%}
  .evmsk-suite-tools{align-items:flex-start;flex-wrap:wrap;overflow:visible}
  .evmsk-suite-toolgroup{border-right:0;border-bottom:1px solid rgba(255,255,255,.13);padding-bottom:5px;width:100%;justify-content:flex-start;overflow-x:auto}
  .evmsk-suite-language,.evmsk-suite-user{margin-top:4px}
  .evmsk-suite-footer{flex-direction:column;align-items:flex-start}.evmsk-suite-footer-links{justify-content:flex-start}
  .evmsk-suite-content .evm-card,.evmsk-suite-content .card-body,.evmsk-suite-content fieldset,.evmsk-suite-content .admin-box,.evmsk-suite-content .page-box{padding:13px!important}
}

/* Print */
@media print{
  .evmsk-suite-header,.evmsk-suite-footer,.no-print{display:none!important}
  .evmsk-suite-content{padding:0!important;background:#fff!important}
  body.evmsk-suite-body,body.evmsk-report-body{background:#fff!important}
  body::before{display:none!important}
}


/* ==========================================================
   SK-EVM V3 usability and accessibility refinements
   ========================================================== */
.evmsk-suite-external{background:linear-gradient(145deg,rgba(35,201,196,.22),rgba(24,155,202,.16))!important;border-color:rgba(119,236,231,.55)!important;color:#eaffff!important;position:relative}
.evmsk-suite-external::after{content:"↗";position:absolute;right:4px;top:3px;font-size:8px;color:#9ff8f1;opacity:.9}
.evmsk-suite-external .evmsk-tool-icon{color:#8bf2eb}
.evmsk-suite-external:hover,.evmsk-suite-external:focus-visible{background:linear-gradient(145deg,rgba(45,219,211,.36),rgba(36,179,224,.28))!important;border-color:#a7fff8!important}

/* All module tabs use the same geometry, including Cost and Data Import. */
.evmsk-suite-mainnav{padding:0 2px}
.evmsk-suite-navitem{height:49px;margin:0;overflow:hidden;text-overflow:ellipsis}
.evmsk-suite-navitem>span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* Central HTML dialog */
html.evmsk-dialog-open{overflow:hidden}
.evmsk-dialog-layer{position:fixed;inset:0;z-index:6000;display:grid;place-items:center;padding:20px;opacity:0;transition:opacity .16s ease}
.evmsk-dialog-layer[hidden]{display:none!important}
.evmsk-dialog-layer.is-open{opacity:1}
.evmsk-dialog-backdrop{position:absolute;inset:0;background:rgba(2,15,29,.58);backdrop-filter:blur(4px)}
.evmsk-dialog-card{position:relative;width:min(520px,100%);display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;background:#fff;color:#0b1d33;border:1px solid #cbdceb;border-radius:16px;padding:22px;box-shadow:0 30px 90px rgba(0,20,45,.34);transform:translateY(8px) scale(.985);transition:transform .16s ease}
.evmsk-dialog-layer.is-open .evmsk-dialog-card{transform:none}
.evmsk-dialog-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#e4f3ff;color:#076ab6;font-size:24px;font-weight:900;border:1px solid #c5e5fb}
.evmsk-dialog-layer[data-tone="danger"] .evmsk-dialog-icon{background:#fff0f1;color:#c72233;border-color:#ffc8cf}
.evmsk-dialog-copy{min-width:0}.evmsk-dialog-copy h2{margin:1px 0 8px;font-size:20px;color:#0b1d33}.evmsk-dialog-message{font-size:14px;line-height:1.55;color:#41566e;overflow-wrap:anywhere}.evmsk-dialog-message b,.evmsk-dialog-message strong{color:#0b1d33}
.evmsk-dialog-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;margin-top:7px}
.evmsk-dialog-button{min-width:94px;border-radius:9px;border:1px solid transparent;padding:10px 16px;font:750 13px/1.1 Inter,system-ui,sans-serif;cursor:pointer}
.evmsk-dialog-button-primary{background:#0969b5;color:#fff;border-color:#0969b5}.evmsk-dialog-button-primary:hover{background:#075792}
.evmsk-dialog-button-secondary{background:#f3f7fb;color:#17324f;border-color:#cbd9e7}.evmsk-dialog-button-secondary:hover{background:#e6eef7}
html.evmsk-dark .evmsk-dialog-card{background:#14243a;color:#edf4fb;border-color:#38506d}.evmsk-dark .evmsk-dialog-copy h2,.evmsk-dark .evmsk-dialog-message b,.evmsk-dark .evmsk-dialog-message strong{color:#fff}.evmsk-dark .evmsk-dialog-message{color:#c6d5e6}.evmsk-dark .evmsk-dialog-button-secondary{background:#213650;color:#f4f8fc;border-color:#405a78}

/* Input table controls */
.evmsk-input-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px;padding:10px 11px;border:1px solid var(--evm-line);border-radius:11px;background:linear-gradient(180deg,#f9fcff,#f1f7fd)}
.evmsk-input-toolbar-main{display:flex;align-items:center;gap:8px;flex:1 1 520px;min-width:0}
.evmsk-input-toolbar .form-control,.evmsk-input-toolbar .form-select{min-height:36px!important;height:36px!important;margin:0!important;font-size:12px!important}
.evmsk-input-toolbar .evmsk-input-search{flex:1 1 260px;min-width:180px}.evmsk-input-toolbar .evmsk-input-period{flex:0 0 170px}
.evmsk-input-result{white-space:nowrap;color:var(--evm-muted);font-size:12px;font-weight:700}
.evmsk-input-table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;border:1px solid var(--evm-line);border-radius:10px;background:var(--evm-card);scrollbar-width:thin}
#evmsk-input-table{margin:0!important}
#evmsk-input-table thead th{position:sticky;top:0;z-index:3;vertical-align:middle!important}
#evmsk-input-table tbody tr[hidden]{display:none!important}
#evmsk-input-table tr.status-row td{position:relative;box-shadow:inset 0 3px 0 #ffc400,inset 0 -3px 0 #ffc400!important;font-weight:800!important;filter:saturate(1.08)}
#evmsk-input-table tr.status-row td:first-child{box-shadow:inset 4px 0 0 #ffc400,inset 0 3px 0 #ffc400,inset 0 -3px 0 #ffc400!important}
#evmsk-input-table tr.status-row td:last-child{box-shadow:inset -4px 0 0 #ffc400,inset 0 3px 0 #ffc400,inset 0 -3px 0 #ffc400!important}
#evmsk-input-table tr.evmsk-status-pulse td{animation:evmskStatusPulse .65s ease 2}
@keyframes evmskStatusPulse{50%{filter:brightness(1.17) saturate(1.2)}}

@media(min-width:1281px){
  .evmsk-input-table-wrap{overflow-x:hidden}
  #evmsk-input-table.table.table-wide{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;font-size:clamp(7.5px,.52vw,10px)!important}
  #evmsk-input-table th,#evmsk-input-table td{padding:4px 2px!important;line-height:1.12!important;white-space:normal!important;overflow:hidden;text-overflow:ellipsis;text-align:center!important}
  #evmsk-input-table th:nth-child(1),#evmsk-input-table td:nth-child(1){width:38px}
  #evmsk-input-table th:nth-child(2),#evmsk-input-table td:nth-child(2){width:51px}
  #evmsk-input-table th:last-child,#evmsk-input-table td:last-child{width:62px}
  #evmsk-input-table .edit-btn{font-size:8px!important;padding:4px 3px!important;width:100%;white-space:normal;line-height:1.05}
}
@media(max-width:1280px){
  #evmsk-input-table.table.table-wide{min-width:1420px!important;width:max-content!important}
}

/* User filter and billing */
.evmsk-user-filterbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px;margin:0 0 12px;background:#f4f8fc;border:1px solid var(--evm-line);border-radius:10px}.evmsk-user-filterbar input{flex:1 1 260px;min-width:190px}.evmsk-user-filterbar span{font-size:12px;color:var(--evm-muted);font-weight:750}
.evmsk-billing-panel{width:100%;max-width:100%;margin:24px 0 0;border:1px solid var(--evm-line);border-radius:14px;background:var(--evm-card);box-shadow:var(--evm-shadow);overflow:hidden}
.evmsk-billing-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:17px 18px;border-bottom:1px solid var(--evm-line)}.evmsk-billing-head h5{margin:0 0 4px}.evmsk-billing-head p{margin:0;color:var(--evm-muted)}
.evmsk-billing-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;padding:14px 18px;background:#f5f9fd}.evmsk-billing-summary article{background:var(--evm-card);border:1px solid var(--evm-line);border-radius:10px;padding:12px}.evmsk-billing-summary span{display:block;color:var(--evm-muted);font-size:13px}.evmsk-billing-summary strong{font-size:21px}
.evmsk-billing-body{padding:18px;max-width:100%;overflow:hidden}.evmsk-billing-table{width:100%;min-width:760px}.evmsk-billing-table code{font-size:12px}.evmsk-billing-note{margin:14px 0 0;color:var(--evm-muted);font-size:13px}

/* Dark-mode field and semantic table contrast */
html.evmsk-dark .evmsk-input-toolbar,html.evmsk-dark .evmsk-user-filterbar{background:#101f33;border-color:#314a67}
html.evmsk-dark .evmsk-billing-summary{background:#101d30}
html.evmsk-dark .evmsk-billing-summary article{background:#172941;border-color:#334c69}
html.evmsk-dark .evmsk-suite-content input:disabled,html.evmsk-dark .evmsk-suite-content input[readonly],html.evmsk-dark .evmsk-suite-content textarea:disabled,html.evmsk-dark .evmsk-suite-content select:disabled{background:#18283d!important;color:#b7c7d9!important;border-color:#3a506a!important;opacity:1!important}
html.evmsk-dark .evmsk-suite-content .form-text{color:#9fb2c8!important}
html.evmsk-dark .evmsk-suite-content .btn-close{filter:invert(1) grayscale(1) brightness(2)}
html.evmsk-dark .evmsk-suite-content input:-webkit-autofill,html.evmsk-dark .evmsk-suite-content input:-webkit-autofill:hover,html.evmsk-dark .evmsk-suite-content input:-webkit-autofill:focus{-webkit-text-fill-color:#edf4fb!important;-webkit-box-shadow:0 0 0 1000px #0e1b2e inset!important}
html.evmsk-dark #evmsk-input-table td.tbl-progress{background:#283c55!important;color:#eff7ff!important}
html.evmsk-dark #evmsk-input-table td.tbl-ev{background:#174a37!important;color:#d9ffef!important}
html.evmsk-dark #evmsk-input-table td.tbl-pv{background:#183f69!important;color:#e1f0ff!important}
html.evmsk-dark #evmsk-input-table td.tbl-rpv{background:#46346d!important;color:#f2eaff!important}
html.evmsk-dark #evmsk-input-table td.tbl-ac{background:#6a2630!important;color:#ffe9ec!important}
html.evmsk-dark #evmsk-input-table td.tbl-fc{background:#5c4320!important;color:#fff0c8!important}
html.evmsk-dark #evmsk-input-table td.tbl-cv,html.evmsk-dark #evmsk-input-table td.tbl-sv{background:#284358!important;color:#f1f8ff!important}
html.evmsk-dark #evmsk-input-table td.tbl-cpi{background:#7b5b08!important;color:#fff8d6!important}
html.evmsk-dark #evmsk-input-table td.tbl-spi{background:#31506a!important;color:#f0f8ff!important}
html.evmsk-dark #evmsk-input-table td.tbl-cr{background:#17606a!important;color:#e1fcff!important}
html.evmsk-dark #evmsk-input-table tr.status-row td{box-shadow:inset 0 3px 0 #ffd43b,inset 0 -3px 0 #ffd43b!important}
html.evmsk-dark #evmsk-input-table tr.status-row td:first-child{box-shadow:inset 4px 0 0 #ffd43b,inset 0 3px 0 #ffd43b,inset 0 -3px 0 #ffd43b!important}
html.evmsk-dark #evmsk-input-table tr.status-row td:last-child{box-shadow:inset -4px 0 0 #ffd43b,inset 0 3px 0 #ffd43b,inset 0 -3px 0 #ffd43b!important}

@media(max-width:1100px){.evmsk-suite-mainnav{display:grid;grid-template-columns:repeat(4,minmax(85px,1fr))}}
@media(max-width:700px){.evmsk-dialog-card{grid-template-columns:38px minmax(0,1fr);padding:17px}.evmsk-dialog-icon{width:36px;height:36px}.evmsk-input-toolbar-main{flex-direction:column;align-items:stretch}.evmsk-input-toolbar .evmsk-input-period{flex-basis:auto}.evmsk-billing-head{align-items:flex-start;flex-direction:column}}

@media(max-width:650px){.evmsk-suite-mainnav{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ==========================================================
   SK-EVM V14 – normalized tabs, faster rendering and batch input
   ========================================================== */

/* Every EVM pane is hidden independently of malformed legacy wrappers.
   The runtime moves the eleven module panes into one host. */
.evmsk-suite-content .tab-pane:not(.active),
body.evmsk-suite-body .tab-pane:not(.active){display:none!important;opacity:0!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
.evmsk-suite-content .tab-pane.active,
body.evmsk-suite-body .tab-pane.active{display:block!important;opacity:1!important;visibility:visible!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important}
.evmsk-tab-host,#evmTabContent{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.evmsk-suite-content{padding-top:10px!important;padding-bottom:16px!important}
.evmsk-workspace{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:0!important}
.evmsk-tab-host>.tab-pane>*:first-child{margin-top:0!important}
.evmsk-tab-host>.tab-pane>*:last-child{margin-bottom:0!important}
.evmsk-tab-host>.tab-pane>.evm-card,
.evmsk-tab-host>.tab-pane>.card,
.evmsk-tab-host>.tab-pane>fieldset,
.evmsk-tab-host>.tab-pane>.panel,
.evmsk-tab-host>.tab-pane>.content-box{width:100%!important;max-width:none!important;margin:0 0 14px!important}
.evmsk-tab-host>.tab-pane>.evm-card:last-child,
.evmsk-tab-host>.tab-pane>.card:last-child,
.evmsk-tab-host>.tab-pane>fieldset:last-child,
.evmsk-tab-host>.tab-pane>.panel:last-child,
.evmsk-tab-host>.tab-pane>.content-box:last-child{margin-bottom:0!important}
.evmsk-suite-content .tab-content:not(#evmTabContent):not(:has(.tab-pane)){display:none!important}

/* Legacy inline widths are normalized across all modules. */
.evmsk-tab-host .evm-card[style*="60vw"],
.evmsk-tab-host .evm-card[style*="90vw"],
.evmsk-tab-host .card[style*="60vw"]{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
.evmsk-tab-host .evm-card{padding:16px!important}
.evmsk-tab-host .evm-card-header{margin:0 0 10px!important;padding:0!important}
.evmsk-tab-host .evm-card-header h1,
.evmsk-tab-host .evm-card-header h2,
.evmsk-tab-host .evm-card-header h3,
.evmsk-tab-host .evm-card-header h4{margin-top:0!important;margin-bottom:8px!important}
.evmsk-tab-host br:first-child,.evmsk-tab-host .evm-card-header>br:last-child{display:none!important}

/* Stable module navigation geometry. */
.evmsk-suite-navrow{height:52px!important;min-height:52px!important}
.evmsk-suite-mainnav{height:52px!important;grid-template-columns:repeat(11,minmax(0,1fr))!important;gap:4px!important;padding:0!important;margin:0!important}
.evmsk-suite-navitem{height:52px!important;min-height:52px!important;padding:5px 4px 4px!important;margin:0!important;border-radius:7px 7px 0 0!important;line-height:1.05!important}
.evmsk-suite-navitem:hover,.evmsk-suite-navitem:focus-visible{color:#fff!important;background:rgba(255,255,255,.13)!important;border-bottom-color:#78d4ff!important;outline:none!important}
.evmsk-suite-navitem.active{color:#fff!important;background:rgba(255,255,255,.12)!important;border-bottom-color:var(--evm-accent)!important}
.evmsk-suite-navitem:hover .evmsk-suite-navicon,.evmsk-suite-navitem:focus-visible .evmsk-suite-navicon{color:#fff!important}

/* Preserve KPI colors and text contrast on hover instead of replacing all cells. */
.evmsk-suite-content table tbody tr:hover td{filter:brightness(.96) saturate(1.04);transition:filter .12s ease!important}
.evmsk-suite-content table tbody tr:hover td:not(.tbl-ev):not(.tbl-pv):not(.tbl-rpv):not(.tbl-ac):not(.tbl-fc):not(.tbl-cpi):not(.tbl-spi):not(.tbl-cr):not(.tbl-progress){background-color:#edf6ff!important;color:#0b1d33!important}
.evmsk-suite-content table tbody tr:hover td.tbl-ev{background:#24973f!important;color:#fff!important}
.evmsk-suite-content table tbody tr:hover td.tbl-pv{background:#002f8f!important;color:#fff!important}
.evmsk-suite-content table tbody tr:hover td.tbl-rpv{background:#1d1d1d!important;color:#fff!important}
.evmsk-suite-content table tbody tr:hover td.tbl-ac{background:#8c0000!important;color:#fff!important}
.evmsk-suite-content table tbody tr:hover td.tbl-fc{background:#7d7d7d!important;color:#fff!important}
.evmsk-suite-content table tbody tr:hover td.tbl-cpi{background:#ffe326!important;color:#172033!important}
.evmsk-suite-content table tbody tr:hover td.tbl-spi{background:#185fce!important;color:#fff!important}
.evmsk-suite-content table tbody tr:hover td.tbl-cr{background:#cceef8!important;color:#172033!important}
.evmsk-suite-content table tbody tr:hover td.tbl-progress{background:#e9eef5!important;color:#172033!important}
#evmsk-input-table tr.status-row:hover td{filter:none!important}
#evmsk-input-table tr.status-row:hover td.tbl-ev{background:#28a745!important;color:#fff!important}
#evmsk-input-table tr.status-row:hover td.tbl-pv{background:#003399!important;color:#fff!important}
#evmsk-input-table tr.status-row:hover td.tbl-rpv{background:#222!important;color:#fff!important}
#evmsk-input-table tr.status-row:hover td.tbl-ac{background:#990000!important;color:#fff!important}
#evmsk-input-table tr.status-row:hover td.tbl-fc{background:#888!important;color:#fff!important}
#evmsk-input-table tr.status-row:hover td.tbl-cpi{background:#ffe92c!important;color:#222!important}
#evmsk-input-table tr.status-row:hover td.tbl-spi{background:#1c6be8!important;color:#fff!important}
#evmsk-input-table tr.status-row:hover td.tbl-cr{background:#e0f7ff!important;color:#222!important}
#evmsk-input-table tr.status-row:hover td.tbl-progress{background:#f3f3f3!important;color:#172033!important}

/* Table quality of life. */
.evmsk-scroll-surface{width:100%;max-width:100%;overflow:auto!important;overscroll-behavior:contain;border-radius:10px;scrollbar-width:thin;scrollbar-color:#9bb5ce #eaf1f8}
.evmsk-scroll-surface::-webkit-scrollbar{height:10px;width:10px}.evmsk-scroll-surface::-webkit-scrollbar-thumb{background:#9bb5ce;border-radius:999px;border:2px solid #eaf1f8}.evmsk-scroll-surface::-webkit-scrollbar-track{background:#eaf1f8}
.evmsk-qol-table{margin-bottom:0!important}
.evmsk-qol-table.table-wide thead th{position:sticky!important;top:0!important;z-index:6!important}
.evmsk-qol-table.table-wide th:first-child,.evmsk-qol-table.table-wide td:first-child{position:sticky;left:0;z-index:5;box-shadow:2px 0 0 rgba(12,51,88,.10)}
.evmsk-qol-table.table-wide thead th:first-child{z-index:8}
.evmsk-qol-table.table-wide tbody td:first-child{background:#f7fafe!important;color:#10243c!important}
.evmsk-qol-table input[type="number"]{min-width:72px!important;width:100%!important;max-width:110px!important;text-align:right;font-variant-numeric:tabular-nums}
.evmsk-qol-table input.evmsk-dirty-input{border-color:#e0a500!important;background:#fff9dc!important;box-shadow:0 0 0 2px rgba(224,165,0,.15)!important}

/* Generic batch-entry toolbar for monthly value tables. */
.evmsk-batch-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px;padding:9px 11px;border:1px solid #cbdceb;border-radius:10px;background:linear-gradient(180deg,#fafdff,#eff6fc);color:#17324f}
.evmsk-batch-toolbar>div:first-child{display:flex;align-items:baseline;gap:9px;min-width:0}.evmsk-batch-toolbar strong{font-size:12px;color:#082b50}.evmsk-batch-toolbar span{font-size:11px;color:#61778f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evmsk-batch-toolbar>div:last-child{display:flex;gap:7px}
.evmsk-batch-toolbar button{min-height:32px!important;padding:6px 11px!important;font-size:11px!important;border-radius:8px!important}

.evmsk-batch-layer{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:20px;opacity:0;transition:opacity .15s ease}.evmsk-batch-layer[hidden]{display:none!important}.evmsk-batch-layer.is-open{opacity:1}.evmsk-batch-backdrop{position:absolute;inset:0;background:rgba(2,15,29,.62);backdrop-filter:blur(4px)}
.evmsk-batch-card{position:relative;width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;color:#0b1d33;border:1px solid #cbdceb;border-radius:16px;box-shadow:0 30px 90px rgba(0,20,45,.38);padding:0}
.evmsk-batch-card>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:linear-gradient(105deg,#061b35,#0879c5);color:#fff;border-radius:15px 15px 0 0}.evmsk-batch-card>header small{display:block;font-size:9px;color:#a8ddff;text-transform:uppercase;letter-spacing:.08em}.evmsk-batch-card>header h2{margin:3px 0 0!important;color:#fff!important;font-size:20px}.evmsk-batch-card>header button{width:34px;height:34px;border:1px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(255,255,255,.10);color:#fff;font-size:22px;line-height:1;padding:0!important;cursor:pointer}
.evmsk-batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px}.evmsk-batch-grid label{display:flex;flex-direction:column;gap:5px;min-width:0}.evmsk-batch-grid label>span{font-size:11px;font-weight:800;color:#37516d}.evmsk-batch-grid input,.evmsk-batch-grid select,.evmsk-batch-grid textarea{width:100%;min-height:40px;border:1px solid #c9d8e7;border-radius:9px;background:#f7fafe;color:#0b1d33;padding:9px 10px;font:inherit}.evmsk-batch-grid textarea{resize:vertical;min-height:110px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.evmsk-batch-paste{grid-column:1/-1}
.evmsk-batch-help{margin:0 18px 14px;padding:9px 11px;border-radius:9px;background:#edf6ff;color:#35526e;font-size:12px}.evmsk-batch-card>footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding:13px 18px;background:#f7fafe;border-top:1px solid #d9e5ef}.evmsk-batch-save{background:#128447;color:#fff;border-color:#128447}.evmsk-batch-save:hover{background:#0d6f3a}

/* Dark mode contrast and hover preservation. */
html.evmsk-dark .evmsk-suite-content table tbody tr:hover td{filter:brightness(1.10) saturate(1.04)}
html.evmsk-dark .evmsk-suite-content table tbody tr:hover td:not(.tbl-ev):not(.tbl-pv):not(.tbl-rpv):not(.tbl-ac):not(.tbl-fc):not(.tbl-cpi):not(.tbl-spi):not(.tbl-cr):not(.tbl-progress){background:#243b57!important;color:#f4f8fc!important}
html.evmsk-dark .evmsk-qol-table.table-wide tbody td:first-child{background:#172a42!important;color:#f2f7fc!important}
html.evmsk-dark .evmsk-batch-toolbar{background:linear-gradient(180deg,#172a42,#122238);border-color:#38516d;color:#edf4fb}.evmsk-dark .evmsk-batch-toolbar strong{color:#fff}.evmsk-dark .evmsk-batch-toolbar span{color:#b8cbe0}
html.evmsk-dark .evmsk-batch-card{background:#14243a;color:#edf4fb;border-color:#38506d}.evmsk-dark .evmsk-batch-grid label>span{color:#c2d5e8}.evmsk-dark .evmsk-batch-grid input,.evmsk-dark .evmsk-batch-grid select,.evmsk-dark .evmsk-batch-grid textarea{background:#0e1b2e;color:#fff;border-color:#405975}.evmsk-dark .evmsk-batch-help{background:#193451;color:#cce4f7}.evmsk-dark .evmsk-batch-card>footer{background:#101f32;border-color:#344b67}
html.evmsk-dark .evmsk-qol-table input.evmsk-dirty-input{background:#4d3b0e!important;color:#fff!important;border-color:#e7b900!important}

@media(max-width:980px){
  .evmsk-suite-mainnav{height:auto!important;grid-template-columns:repeat(4,minmax(85px,1fr))!important}
  .evmsk-suite-navrow{height:auto!important;min-height:0!important}
  .evmsk-suite-navitem{height:48px!important;min-height:48px!important}
  .evmsk-suite-content{padding-top:8px!important;padding-bottom:12px!important}
  .evmsk-batch-grid{grid-template-columns:1fr}
  .evmsk-batch-paste{grid-column:auto}
}
@media(max-width:650px){
  .evmsk-suite-mainnav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .evmsk-tab-host .evm-card{padding:12px!important}
  .evmsk-batch-toolbar{align-items:flex-start}.evmsk-batch-toolbar>div:first-child{flex-direction:column;gap:2px}.evmsk-batch-toolbar span{white-space:normal}
  .evmsk-batch-card>footer{flex-wrap:wrap}.evmsk-batch-card>footer button{flex:1 1 130px}
}

/* Status period remains legible while hovering. */
#evmsk-input-table tr.status-row:hover td.status-cell,
#evmsk-input-table tr.status-row:hover th.status-cell{background:#fff59d!important;color:#172033!important;box-shadow:inset 0 0 0 3px #ffd54f!important}
html.evmsk-dark #evmsk-input-table tr.status-row:hover td.status-cell,
html.evmsk-dark #evmsk-input-table tr.status-row:hover th.status-cell{background:#5b4b00!important;color:#fff7bf!important;box-shadow:inset 0 0 0 3px #d9ad00!important}

/* Short modules do not reserve a full empty viewport below their content. */
body.evmsk-page-index .evmsk-suite-page{min-height:0!important}
body.evmsk-page-index .evmsk-suite-content{flex:0 0 auto!important;min-height:0!important}
body.evmsk-page-index .evmsk-suite-footer{margin-top:12px!important}
body.evmsk-suite-body>.tab-content:not(:has(.tab-pane)){display:none!important}


/* ======================================================================
   SK-EVM V14 – accessible palette, readable numeric inputs, edit dialog
   ====================================================================== */

/* Numeric month matrices: values remain readable even with large budgets. */
.evmsk-qol-table{table-layout:auto!important}
.evmsk-qol-table td:has(>input[data-evmsk-monthly]){min-width:128px!important}
.evmsk-qol-table input[type="number"][data-evmsk-monthly],
.evmsk-qol-table input[type="number"][name*="["]{
  box-sizing:border-box!important;
  width:calc(var(--evmsk-input-ch,9) * 1ch + 2.65rem)!important;
  min-width:7.9rem!important;
  max-width:17rem!important;
  height:42px!important;
  padding:8px 11px!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:650!important;
  letter-spacing:.005em!important;
  text-align:right!important;
  font-variant-numeric:tabular-nums!important;
  overflow:visible!important;
}
.evmsk-qol-table input[type="number"]:focus{position:relative;z-index:12;min-width:10rem!important;box-shadow:0 0 0 3px rgba(8,121,197,.18)!important}
.evmsk-qol-table td{vertical-align:middle!important}
.evmsk-qol-table .out-of-range{min-width:44px!important;background:rgba(128,150,172,.07)!important}

/* Batch V5 additions. */
.evmsk-batch-check{grid-column:1/-1;display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:8px 10px;border:1px solid #d4e2ee;border-radius:9px;background:#f8fbfe}.evmsk-batch-check input{width:18px!important;min-height:18px!important;margin:0!important}.evmsk-batch-check span{font-size:12px!important;font-weight:700!important;color:#314d68!important}
html.evmsk-dark .evmsk-batch-check{background:#0f2034;border-color:#344e6a}.evmsk-dark .evmsk-batch-check span{color:#d5e3f1!important}
.evmsk-batch-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 18px 10px;padding:10px 12px;border:1px solid #d4e2ee;border-radius:9px;background:#f8fbfe;color:#39536d;font-size:12px}
.evmsk-batch-summary strong{color:#082b50;font-size:13px}
.evmsk-batch-grid [hidden]{display:none!important}
.evmsk-batch-grid input.is-invalid{border-color:#d32f2f!important;box-shadow:0 0 0 2px rgba(211,47,47,.14)!important}
html.evmsk-dark .evmsk-batch-summary{background:#0f2034;border-color:#344e6a;color:#c7d8e9}
html.evmsk-dark .evmsk-batch-summary strong{color:#fff}

/* Custom SK-EVM palette without native browser color controls. */
.evmsk-marker-color-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.evmsk-color-trigger{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:5px 9px;border:1px solid #c7d8e8;border-radius:9px;background:#f7fafe;color:#15324f;font:inherit;font-size:11px;font-weight:750;cursor:pointer}
.evmsk-color-trigger:hover,.evmsk-color-trigger:focus-visible{border-color:#0879c5;box-shadow:0 0 0 3px rgba(8,121,197,.14);outline:none}
.evmsk-color-preview{display:block;width:26px;height:26px;border-radius:7px;background:var(--evmsk-selected-color,#0879c5);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.10)}
.evmsk-color-presets{display:flex;gap:4px;flex-wrap:wrap}
.evmsk-color-mini{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;border:2px solid #fff!important;border-radius:6px!important;background:var(--swatch)!important;box-shadow:0 0 0 1px #b9c9d8!important;padding:0!important;cursor:pointer}
.evmsk-color-mini:hover,.evmsk-color-mini:focus-visible{transform:scale(1.12);box-shadow:0 0 0 2px #0879c5!important;outline:none}
.evmsk-color-layer{position:fixed;inset:0;z-index:5200;display:grid;place-items:center;padding:18px;opacity:0;transition:opacity .14s ease}.evmsk-color-layer[hidden]{display:none!important}.evmsk-color-layer.is-open{opacity:1}
.evmsk-color-backdrop{position:absolute;inset:0;background:rgba(2,15,29,.65);backdrop-filter:blur(4px)}
.evmsk-color-card{position:relative;width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;border:1px solid #c9d9e8;border-radius:16px;background:#fff;color:#10243c;box-shadow:0 30px 90px rgba(0,20,45,.42)}
.evmsk-color-card>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:linear-gradient(105deg,#061b35,#0879c5);color:#fff}.evmsk-color-card>header small{display:block;color:#a9ddff;font-size:9px;letter-spacing:.08em;text-transform:uppercase}.evmsk-color-card>header h2{margin:2px 0 0!important;font-size:20px!important;color:#fff!important}.evmsk-color-card>header button{width:34px;height:34px;border:1px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(255,255,255,.1);color:#fff;font-size:22px;line-height:1;padding:0!important}
.evmsk-color-body{padding:18px}.evmsk-color-current{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:10px 12px;border:1px solid #d6e3ee;border-radius:10px;background:#f7fafe}.evmsk-color-current span{width:42px;height:34px;border-radius:8px;background:var(--swatch,#0879c5);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.evmsk-color-grid{display:grid;grid-template-columns:repeat(10,minmax(32px,1fr));gap:8px}.evmsk-color-swatch{aspect-ratio:1;border:2px solid #fff;border-radius:8px;background:var(--swatch);box-shadow:0 0 0 1px #b9cad9;cursor:pointer;min-width:0!important;padding:0!important}.evmsk-color-swatch:hover,.evmsk-color-swatch:focus-visible{transform:scale(1.08);box-shadow:0 0 0 3px rgba(8,121,197,.28);outline:none}
.evmsk-color-custom{display:flex;align-items:flex-end;gap:10px;margin-top:16px}.evmsk-color-custom label{display:flex;flex:1;flex-direction:column;gap:5px}.evmsk-color-custom label span{font-size:11px;font-weight:800;color:#38536d}.evmsk-color-custom input{height:40px;border:1px solid #c8d8e7;border-radius:9px;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase}.evmsk-color-custom input.is-invalid{border-color:#d32f2f;box-shadow:0 0 0 3px rgba(211,47,47,.14)}.evmsk-color-body>p{margin:12px 0 0;color:#667b90;font-size:11px}
html.evmsk-dark .evmsk-color-trigger{background:#0e1b2e;border-color:#405975;color:#f2f7fc}
html.evmsk-dark .evmsk-color-card{background:#14243a;color:#edf4fb;border-color:#38506d}
html.evmsk-dark .evmsk-color-current{background:#0e1b2e;border-color:#38506d}
html.evmsk-dark .evmsk-color-custom label span{color:#c6d8e9}
html.evmsk-dark .evmsk-color-custom input{background:#0e1b2e;color:#fff;border-color:#405975}
html.evmsk-dark .evmsk-color-body>p{color:#b8c9da}

/* Bottom-row month editing opens in a centered HTML dialog. */
#evmskMonthEditModal{z-index:4000!important}
#evmskMonthEditModal .modal-dialog{max-width:720px;margin:1.25rem auto}
#evmskMonthEditModal .modal-content{border:1px solid #c8d9e8;border-radius:16px;overflow:hidden;box-shadow:0 30px 90px rgba(0,25,55,.42)}
#evmskMonthEditModal .modal-header{background:linear-gradient(105deg,#061b35,#0879c5);color:#fff;border:0;padding:15px 18px}
#evmskMonthEditModal .modal-title{color:#fff!important;font-size:19px!important}
#evmskMonthEditModal .modal-body{padding:18px}
#evmskMonthEditModal .evmsk-month-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;padding:10px 12px;border:1px solid #d5e3ef;border-radius:10px;background:#f4f9fd;color:#153653}
#evmskMonthEditModal .form-control{min-height:43px!important;font-size:14px!important;font-weight:650!important;text-align:right;font-variant-numeric:tabular-nums}
#evmskMonthEditModal .modal-footer{background:#f7fafe;border-color:#dbe6ef}
html.evmsk-dark #evmskMonthEditModal .modal-content{background:#14243a;color:#edf4fb;border-color:#38506d}
html.evmsk-dark #evmskMonthEditModal .evmsk-month-selected{background:#0e1b2e;color:#edf4fb;border-color:#405975}
html.evmsk-dark #evmskMonthEditModal .modal-footer{background:#101f32;border-color:#344b67}

@media(max-width:760px){.evmsk-color-grid{grid-template-columns:repeat(6,minmax(32px,1fr))}.evmsk-color-custom{align-items:stretch;flex-direction:column}.evmsk-color-custom button{width:100%}.evmsk-qol-table input[type="number"][name*="["]{min-width:7.5rem!important}}


/* V6: database-backed marker controls */
.evmsk-suite-marker-toggle>span:last-child{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05;gap:2px}
.evmsk-suite-marker-toggle>span:last-child strong{font-size:10px;font-weight:800;white-space:nowrap}
.evmsk-suite-marker-toggle>span:last-child small{font-size:9px;opacity:.78;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.evmsk-suite-marker-toggle.active{background:rgba(30,190,115,.2)!important;border-color:rgba(118,239,181,.72)!important}
.evmsk-suite-marker-toggle:not(.active){background:rgba(255,255,255,.07)!important;opacity:.8}
.evmsk-suite-marker-toggle.is-saving,.evmsk-marker-color-control.is-saving{pointer-events:none;opacity:.65}
.evmsk-marker-color-control{position:relative}
.evmsk-marker-color-control.is-saved::after{content:'✓';position:absolute;right:-5px;top:-7px;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#0a9c5b;color:#fff;font-size:12px;font-weight:900;box-shadow:0 3px 9px rgba(0,0,0,.18)}
.evmsk-marker-color-control.is-save-error .evmsk-color-trigger{outline:2px solid #dc3545;outline-offset:2px}
.evmsk-marker-visibility-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;margin:16px 0;border:1px solid #cddff0;border-radius:12px;background:#f3f8fd}
.evmsk-marker-visibility-card>div{display:flex;flex-direction:column;gap:3px}
.evmsk-marker-visibility-card strong{color:#0a355d;font-size:14px}
.evmsk-marker-visibility-card span{color:#58718a;font-size:12px}
.evmsk-switch-control{display:flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap}
.evmsk-switch-control input{position:absolute;opacity:0;pointer-events:none}
.evmsk-switch-control>span{width:42px;height:23px;border-radius:999px;background:#8998a7;position:relative;transition:.18s}
.evmsk-switch-control>span::after{content:'';position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:#fff;transition:.18s;box-shadow:0 1px 4px rgba(0,0,0,.22)}
.evmsk-switch-control input:checked+span{background:#0879c5}
.evmsk-switch-control input:checked+span::after{transform:translateX(19px)}
.evmsk-switch-control b{font-size:12px;color:#173b5e;min-width:24px}
.evmsk-dark .evmsk-marker-visibility-card{background:#112b43;border-color:#31506c}
.evmsk-dark .evmsk-marker-visibility-card strong,.evmsk-dark .evmsk-switch-control b{color:#e7f3ff}
.evmsk-dark .evmsk-marker-visibility-card span{color:#b4c9db}

/* V6: all JavaScript visualizations are centered in their card/container */
.evm-card canvas,.evmsk-workspace canvas,.chart-container canvas,[id$="Chart"]{display:block!important;margin-left:auto!important;margin-right:auto!important;max-width:100%}
.evm-card .js-plotly-plot,.evmsk-workspace .js-plotly-plot,.evm-card .plot-container,.evmsk-workspace .plot-container{margin-left:auto!important;margin-right:auto!important}
#scheduleCurveChart,#costCurveChart,#spiCpiChart,#evmChart,#scheduleChart,#trendChart,#cashflowCurveChart,#cashflowBarChart,#businessCaseChart{display:block!important;margin-inline:auto!important}


/* V6 final: marker editor, persisted-state feedback and chart alignment */
.evmsk-marker-editor{background:#f8fbfe!important;border-color:#d4e2ef!important}
.evmsk-marker-editor-head{font-size:12px!important;color:#4f6880!important}
.evmsk-marker-editor-row{background:#fff!important;border:1px solid #dce7f1!important}
.evmsk-color-db-state{display:block;width:100%;margin-top:2px;color:#5d758d;font-size:9px;font-weight:700}
.evmsk-marker-color-control.is-saving .evmsk-color-db-state::before{content:'… ';color:#0879c5}
.evmsk-marker-color-control.is-saved .evmsk-color-db-state{color:#087c4a}
.evmsk-marker-color-control.is-save-error .evmsk-color-db-state{color:#b42318}
.evmsk-marker-visibility-copy{min-width:0}
.evmsk-switch-control b{min-width:72px;text-align:left}
html.evmsk-dark .evmsk-marker-editor{background:#102238!important;border-color:#344f6b!important}
html.evmsk-dark .evmsk-marker-editor-row{background:#142a43!important;border-color:#38536e!important}
html.evmsk-dark .evmsk-marker-editor-head,html.evmsk-dark .evmsk-color-db-state{color:#bed0e2!important}

/* Center complete Chart.js and Plotly wrappers, not only their canvas nodes. */
.evmsk-tab-host .chart-container,.evmsk-tab-host .chart-wrapper,.evmsk-tab-host .chart-box,
.evmsk-tab-host [class*="chart-container"],.evmsk-tab-host [class*="chart-wrapper"],
.evmsk-tab-host .js-plotly-plot,.evmsk-tab-host .plot-container,.evmsk-tab-host .svg-container{
  margin-left:auto!important;margin-right:auto!important;max-width:100%!important
}
.evmsk-tab-host canvas{display:block!important;margin-inline:auto!important}
.evmsk-risk-trend-card canvas{width:min(100%,920px)!important;min-height:260px;margin-inline:auto!important}

/* Risk governance fields and monitoring remain readable in both themes. */
.evmsk-risk-assessment-grid select,.evmsk-risk-assessment-grid textarea{min-height:40px}
.evmsk-risk-monitoring-table td,.evmsk-risk-monitoring-table th{vertical-align:middle!important}
html.evmsk-dark .evmsk-risk-assessment-grid select,html.evmsk-dark .evmsk-risk-assessment-grid textarea{background:#0e1b2e!important;color:#f4f8fc!important;border-color:#405975!important}
html.evmsk-dark .evmsk-risk-monitoring-table td,html.evmsk-dark .evmsk-risk-monitoring-table th{color:#eef5fb!important;border-color:#35506c!important}


/* V10 deterministic overlay stack. Values stay below the browser z-index clamp. */
.evmsk-suite-header{z-index:1000!important}
#evmskMonthEditModal{z-index:4000!important}
.evmsk-batch-layer{z-index:5000!important}
.evmsk-color-layer{z-index:5200!important}
.evmsk-dialog-layer{z-index:6000!important}
.evmsk-dialog-layer .evmsk-dialog-card{z-index:1}
.evmsk-batch-layer[aria-hidden="true"] .evmsk-batch-card{pointer-events:none}
.evmsk-batch-grid select option[value="normalize"]{font-weight:750}


/* V9: customer-facing chart export controls and deterministic number fields. */
.evmsk-chart-export-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  width:100%!important;
  margin:14px auto 22px!important;
  text-align:center!important;
}
.evmsk-chart-export-actions button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:8px 14px!important;
  border:1px solid #9fb6ca!important;
  border-radius:9px!important;
  background:#f7fafe!important;
  color:#0a3157!important;
  font-weight:750!important;
  line-height:1.15!important;
  cursor:pointer!important;
}
.evmsk-chart-export-actions button:hover,
.evmsk-chart-export-actions button:focus-visible{
  background:#0879c5!important;
  border-color:#0879c5!important;
  color:#fff!important;
  outline:none!important;
  box-shadow:0 0 0 3px rgba(8,121,197,.18)!important;
}
html.evmsk-dark .evmsk-chart-export-actions button{
  background:#10263e!important;
  border-color:#43627f!important;
  color:#edf6ff!important;
}
html.evmsk-dark .evmsk-chart-export-actions button:hover,
html.evmsk-dark .evmsk-chart-export-actions button:focus-visible{
  background:#0b78bd!important;
  border-color:#53b8f1!important;
  color:#fff!important;
}
.evmsk-license-usage{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 0;
  color:#526b82;font-size:12px;font-weight:650
}
.evmsk-license-usage strong{color:#0b345b}
html.evmsk-dark .evmsk-license-usage{color:#b8cada}
html.evmsk-dark .evmsk-license-usage strong{color:#fff}


/* ==========================================================
   V9 – risk chart stability, collapsible input areas,
   project metadata and hardened import
   ========================================================== */
.evmsk-risk-trend-chart-wrap{
  position:relative!important;
  width:min(100%,960px)!important;
  height:320px!important;
  min-height:320px!important;
  max-height:320px!important;
  margin:16px auto 0!important;
  overflow:hidden!important;
  contain:layout size paint;
}
.evmsk-risk-trend-chart-wrap canvas{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
}
.evmsk-pane-section-controls{
  display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;
  margin:0 0 12px;padding:8px 10px;border:1px solid var(--evmsk-border,#d7e4f1);
  border-radius:12px;background:rgba(245,250,255,.88);
}
.evmsk-input-section{position:relative}
.evmsk-input-section-toggle-row{
  position:relative;z-index:2;display:flex;justify-content:flex-end;align-items:center;
  width:100%;min-height:36px;margin:0 0 8px;padding:0;
}
.evmsk-input-section-toggle{
  position:static!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  max-width:100%;border:1px solid #b9cee2;background:#f6fbff;color:#0b3b66;
  border-radius:9px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer;
}
.evmsk-input-section.is-collapsed{
  min-height:58px!important;padding-bottom:12px!important;
}
.evmsk-input-section.is-collapsed > :not(.evmsk-input-section-toggle-row):not(.evm-card-header):not(h1):not(h2):not(h3):not(h4){display:none!important}
.evmsk-input-section.is-collapsed > .evm-card-header > :not(h1):not(h2):not(h3):not(h4){display:none!important}
.evmsk-project-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:min(100%,420px)}
.evmsk-project-filter input{min-width:260px}
.evmsk-project-meta-line{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}
.evmsk-project-meta-line span{display:inline-flex;padding:2px 7px;border-radius:999px;background:#eaf4fd;color:#174a76;font-size:11px;font-weight:700}
.evmsk-project-metadata{border:1px solid #d8e5f1;border-radius:14px;background:#f8fbfe;overflow:hidden}
.evmsk-project-metadata summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px;cursor:pointer;list-style:none}
.evmsk-project-metadata summary::-webkit-details-marker{display:none}
.evmsk-project-metadata summary span:first-child{display:flex;flex-direction:column;gap:2px}
.evmsk-project-metadata summary small{color:#647b91;font-weight:500}
.evmsk-project-metadata .evmsk-details-state:before{content:attr(data-closed);font-weight:700;color:#0a64aa}
.evmsk-project-metadata[open] .evmsk-details-state:before{content:attr(data-open)}
.evmsk-project-metadata-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px;border-top:1px solid #d8e5f1;background:#fff}
.evmsk-project-metadata-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#1a344f}
.evmsk-project-metadata-grid label>span{font-size:12px}
.evmsk-project-meta-wide{grid-column:span 3}
.evmsk-import-card{width:min(100%,1440px)!important;max-width:none!important;margin:0 auto!important}
.evmsk-import-header,.evmsk-import-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.evmsk-import-header p,.evmsk-import-preview-head p{margin:4px 0 0;color:#667f97}
.evmsk-import-steps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px}
.evmsk-import-steps>section,.evmsk-import-preview{border:1px solid #d8e5f1;border-radius:14px;background:#f8fbfe;padding:16px}
.evmsk-import-steps h3,.evmsk-import-preview h3{font-size:17px;margin:0 0 10px}
.evmsk-import-upload-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.evmsk-import-upload-form input[type=file]{flex:1 1 300px}
.evmsk-help-text{font-size:12px;color:#687f95;margin:10px 0 0}
.evmsk-import-format-grid{display:grid;grid-template-columns:1fr;gap:8px}
.evmsk-import-format-grid span{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:9px;background:#fff;border:1px solid #dce8f3}
.evmsk-import-format-grid small{color:#61788e}
.evmsk-import-preview{margin-top:16px;background:#fff}
.evmsk-import-table-wrap{max-height:520px;overflow:auto!important;margin-top:12px}
.evmsk-import-table-wrap table{min-width:1900px}
.evmsk-import-table-wrap th{position:sticky;top:0;z-index:2;white-space:nowrap;background:#eaf3fb!important}
.evmsk-import-table-wrap td{white-space:nowrap;text-align:right}
.evmsk-import-table-wrap td:last-child{text-align:left;min-width:260px}
.evmsk-import-table-wrap ul{margin:0;padding-left:16px}
.evmsk-import-apply-form{display:flex;justify-content:flex-end;margin-top:14px}
html.evmsk-dark .evmsk-pane-section-controls,
html.evmsk-dark .evmsk-input-section-toggle,
html.evmsk-dark .evmsk-project-metadata,
html.evmsk-dark .evmsk-import-steps>section,
html.evmsk-dark .evmsk-import-preview{background:#12283d!important;border-color:#31516e!important;color:#e7f2fb!important}
html.evmsk-dark .evmsk-input-section-toggle{color:#e7f2fb!important}
html.evmsk-dark .evmsk-project-metadata-grid,
html.evmsk-dark .evmsk-import-format-grid span{background:#0e2235!important;border-color:#31516e!important}
html.evmsk-dark .evmsk-project-metadata-grid label{color:#e7f2fb!important}
html.evmsk-dark .evmsk-project-meta-line span{background:#183c59;color:#d9efff}
html.evmsk-dark .evmsk-import-table-wrap th{background:#17354f!important;color:#f1f7fc!important}
@media(max-width:980px){.evmsk-project-metadata-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.evmsk-project-meta-wide{grid-column:span 2}.evmsk-import-steps{grid-template-columns:1fr}}
@media(max-width:640px){.evmsk-project-metadata-grid{grid-template-columns:1fr}.evmsk-project-meta-wide{grid-column:auto}.evmsk-input-section-toggle-row{justify-content:stretch}.evmsk-input-section-toggle{width:100%;margin:0}.evmsk-pane-section-controls{justify-content:stretch}.evmsk-pane-section-controls button{flex:1}}

.evmsk-import-history{margin-top:16px;padding:16px;border:1px solid #d8e5f1;border-radius:14px;background:#fff}
.evmsk-import-history h3{font-size:17px;margin:0 0 10px}
.evmsk-import-history table{min-width:760px}
html.evmsk-dark .evmsk-import-history{background:#0e2235;border-color:#31516e;color:#e7f2fb}

/* V9 risk workspace: stable full-width layout and always-visible save actions. */
#Risk > .evm-card{
  width:min(100%,1560px)!important;
  max-width:100%!important;
  margin-top:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.evmsk-risk-savebar{
  position:sticky;
  top:calc(var(--evmsk-header-height,112px) + 8px);
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid #bad5ea;
  border-radius:12px;
  background:rgba(242,249,255,.96);
  box-shadow:0 8px 22px rgba(7,54,92,.10);
  backdrop-filter:blur(8px);
}
.evmsk-risk-savebar>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:220px}
.evmsk-risk-savebar>div:first-child span{font-size:12px;color:#58738c;font-weight:500}
.evmsk-risk-savebar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
html.evmsk-dark .evmsk-risk-savebar{background:rgba(13,38,60,.96);border-color:#3a607d;color:#edf7ff}
html.evmsk-dark .evmsk-risk-savebar>div:first-child span{color:#bdd0df}
@media(max-width:760px){
  .evmsk-risk-savebar{position:static;align-items:stretch}
  .evmsk-risk-savebar-actions{justify-content:stretch}
  .evmsk-risk-savebar-actions .btn{flex:1}
}

/* ==========================================================
   SK-EVM V13 – full-width risk workspace and safe data export
   ========================================================== */
#Risk,
#Risk.active,
.evmsk-tab-host>#Risk,
.evmsk-tab-host>#Risk.active{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
#Risk>.evmsk-risk-card,
.evmsk-risk-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:18px!important;
  overflow:visible!important;
}
.evmsk-risk-governance{width:100%;max-width:none;min-width:0}
.evmsk-risk-explainer,.evmsk-risk-register-intro{
  display:flex;flex-direction:column;gap:4px;width:100%;padding:13px 15px;
  margin:0 0 12px;border:1px solid #cfe0ef;border-radius:12px;background:#f3f8fd;
}
.evmsk-risk-explainer strong,.evmsk-risk-register-intro strong{color:#0b3c68;font-size:14px}
.evmsk-risk-explainer span,.evmsk-risk-register-intro span{color:#536d84;font-size:12px;line-height:1.45}
.evmsk-risk-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;width:100%;margin:0 0 12px}
.evmsk-risk-kpis article{min-width:0;padding:12px;border:1px solid #d8e5f1;border-radius:11px;background:#fff}
.evmsk-risk-kpis article span{display:block;color:#63798d;font-size:12px}
.evmsk-risk-kpis article strong{display:block;margin-top:3px;color:#092f55;font-size:21px}
.evmsk-risk-monitoring-wrap,.evmsk-risk-register-wrap{width:100%!important;max-width:none!important;overflow:auto!important}
.evmsk-risk-monitoring-table{width:100%!important;min-width:1320px!important}
.evmsk-risk-register-wrap table{min-width:2600px!important}
.evmsk-risk-mc-help{max-width:980px;margin:5px 0 8px;color:#61778d;line-height:1.5}
.evmsk-risk-mc-counts{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 15px}
.evmsk-risk-mc-counts span{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #d3e2ef;border-radius:999px;background:#f5f9fd;color:#526c84;font-size:12px}
.evmsk-risk-mc-counts strong{color:#0a4f86;font-size:14px}
.evmsk-risk-result-box{width:min(100%,900px)!important;max-width:none!important}
.evmsk-import-header-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}
#evmskExportCurrentData[data-loading="1"]{cursor:wait;opacity:.78}
#evmskExportCurrentData:disabled{cursor:not-allowed}
html.evmsk-dark .evmsk-risk-explainer,
html.evmsk-dark .evmsk-risk-register-intro,
html.evmsk-dark .evmsk-risk-kpis article,
html.evmsk-dark .evmsk-risk-mc-counts span{background:#11283e!important;border-color:#35536e!important;color:#e7f1fa!important}
html.evmsk-dark .evmsk-risk-explainer strong,
html.evmsk-dark .evmsk-risk-register-intro strong,
html.evmsk-dark .evmsk-risk-kpis article strong,
html.evmsk-dark .evmsk-risk-mc-counts strong{color:#fff!important}
html.evmsk-dark .evmsk-risk-explainer span,
html.evmsk-dark .evmsk-risk-register-intro span,
html.evmsk-dark .evmsk-risk-kpis article span,
html.evmsk-dark .evmsk-risk-mc-help{color:#bdd0e2!important}
@media(max-width:900px){.evmsk-risk-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.evmsk-import-header-actions{justify-content:flex-start}}
@media(max-width:520px){.evmsk-risk-kpis{grid-template-columns:1fr}.evmsk-import-header-actions>*{width:100%}}

/* V13 risk tab uses the complete available workspace. */
body.evmsk-active-risk .evmsk-workspace{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
body.evmsk-active-risk .evmsk-suite-content{
  padding-left:clamp(10px,1vw,18px)!important;
  padding-right:clamp(10px,1vw,18px)!important;
}
body.evmsk-active-risk #evmTabContent,
body.evmsk-active-risk #Risk,
body.evmsk-active-risk .evmsk-risk-card{
  width:100%!important;
  max-width:none!important;
}
.evmsk-risk-result-box,
#Risk .alert-info,
#Risk .alert-success,
#Risk .alert-warning{
  max-width:100%!important;
}


/* ==========================================================
   V14 – stable cashflow chart and non-overlapping section controls
   ========================================================== */
#Cashflow{width:100%!important;max-width:none!important;min-width:0!important}
#Cashflow > .evm-card{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
.evmsk-business-case-chart-wrap{
  position:relative!important;
  width:min(100%,1600px)!important;
  max-width:1600px!important;
  min-width:0!important;
  height:clamp(440px,48vw,640px)!important;
  min-height:440px!important;
  margin:18px auto 0!important;
  overflow:hidden!important;
}
.evmsk-business-case-chart-wrap canvas,
#businessCaseChart{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
}
.evmsk-input-section > .evmsk-input-section-toggle-row + .evm-card-header{margin-top:0!important}
.evmsk-import-header-actions{position:relative!important;z-index:1!important;padding-right:0!important}
html.evmsk-dark .evmsk-input-section-toggle{background:#16344e!important;border-color:#456682!important;color:#eef7ff!important}
@media(max-width:700px){
  .evmsk-business-case-chart-wrap{height:430px!important;min-height:430px!important}
}
