/* Only explicitly enhanced WWW tables. Grafik, source layout, FV and Register
   remain outside this selector boundary. No styles are injected into cells. */
/* Common navigation is consistent; FV opts out through portal-active. The
   schedule itself retains its deployed width, cells, styles and handlers. */
body.portal-active #portal-shell .p-top{min-height:76px;padding:15px clamp(16px,2vw,40px);gap:16px}
body.portal-active #portal-shell .p-nav-horizontal{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0 clamp(16px,2vw,40px) 16px;gap:8px}
body.portal-active #portal-shell .p-nav-horizontal>button{max-width:none;width:100%;min-width:0;min-height:46px}
body.portal-active #portal-shell .p-subnav{padding:12px clamp(16px,2vw,40px) 16px;min-height:87px;box-sizing:border-box;align-items:stretch}
body.portal-active:not(:has(#module-kw[data-table-profile=protected-schedule]:not([hidden]))) main{margin:0;width:100%;max-width:none;padding:24px clamp(16px,2vw,40px) 40px;box-sizing:border-box}
body.portal-active #module-home{width:100%;max-width:none}
body.portal-active #module-home .p-context{position:static;display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 0;padding:12px 16px;border:1px solid #dfE8f2;border-radius:10px;background:#fff}
body.portal-active #module-home .p-context>label{flex:0 1 220px;width:auto;max-width:100%;font-size:12px;min-width:0}
body.portal-active #module-home .p-metrics{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
body.portal-active #module-home .p-shortcuts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
body.portal-active #module-home .p-dashboard{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,.8fr);gap:16px}
body.portal-active #module-home .p-dashboard>.p-card{min-width:0;grid-column:auto;grid-row:auto;margin:0}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration){min-width:0;max-width:100%;box-sizing:border-box}
body.portal-active .www-table-frame{overflow:auto;max-width:100%;box-sizing:border-box}
body.portal-active dialog.www-row-panel{position:fixed;inset:0 0 0 auto;margin:0;width:min(580px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;box-sizing:border-box;border-radius:16px 0 0 16px;padding:26px;overflow:auto;border:1px solid #d7e3f1;box-shadow:-14px 0 60px #153f6826}
body.portal-active dialog.www-row-panel::backdrop{background:#1637514a;backdrop-filter:blur(2px)}
body.portal-active .www-row-panel header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:0 0 20px;border:0;border-bottom:1px solid #e1e9f2;background:transparent;position:static;height:auto}
body.portal-active .www-row-panel h2{font-size:22px;margin:7px 0 0;color:#294966}
body.portal-active .www-row-panel small{font-size:10px;letter-spacing:1px;color:#718ba3}
body.portal-active .www-row-panel button{border:1px solid #d4e1ef;background:#f1f6fc;color:#35678f;border-radius:8px;padding:9px 12px}
body.portal-active .www-row-note{font-size:12px;line-height:1.7;color:#6d8296;background:#f6f9fd;padding:12px;border-radius:8px}
body.portal-active .www-row-fields{margin:20px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.portal-active .www-row-fields>div{padding:13px 15px;background:#f7fafd;border:1px solid #e2ebf4;border-radius:9px;min-width:0}
body.portal-active .www-row-fields dt{font-size:11px;color:#70869b;line-height:1.5}
body.portal-active .www-row-fields dd{margin:5px 0 0;font-size:14px;font-weight:600;color:#2b4d6b;overflow-wrap:anywhere;white-space:pre-wrap;font-variant-numeric:tabular-nums}
@media(max-width:1150px){body.portal-active #module-home .p-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}body.portal-active #module-home .p-dashboard>.p-card:first-child{grid-column:1/-1}}
@media(max-width:750px){body.portal-active #portal-shell .p-top{min-height:76px;padding:12px 16px;gap:10px}body.portal-active #portal-shell .p-nav-horizontal{grid-template-columns:repeat(3,minmax(0,1fr))}body.portal-active #portal-shell .p-nav-horizontal>button{font-size:12px;padding:9px 8px}body.portal-active #module-home .p-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.portal-active #module-home .p-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}body.portal-active #module-home .p-dashboard{grid-template-columns:minmax(0,1fr)}body.portal-active #module-home .p-dashboard>.p-card:first-child{grid-column:auto}body.portal-active #module-home .p-context>label{flex:1 1 160px}body.portal-active #portal-shell .p-subnav>button{flex:0 1 160px;min-width:0}}
@media(max-width:450px){body.portal-active #portal-shell .p-nav-horizontal{grid-template-columns:repeat(2,minmax(0,1fr))}body.portal-active #portal-shell .p-nav-horizontal>button{font-size:11px}body.portal-active #module-home .p-metric{min-width:0;overflow-wrap:anywhere}body.portal-active #module-home .p-shortcuts{grid-template-columns:1fr}body.portal-active .www-row-fields{grid-template-columns:1fr}body.portal-active dialog.www-row-panel{padding:18px;border-radius:0}}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 16px;margin:16px 0 0;background:#fff;border:1px solid #dce6f1;border-bottom:0;border-radius:12px 12px 0 0;color:#60778e;font-size:12px}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-summary{margin-right:auto;font-variant-numeric:tabular-nums}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-toolbar button,body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-columns>summary{min-height:34px;padding:7px 12px;border:1px solid #d7e3f1;border-radius:7px;color:#345d85;background:#f8faff;font-size:12px;cursor:pointer}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-toolbar button:hover,body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-columns>summary:hover{background:#edf4fc;border-color:#91b4d9}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-columns{position:relative}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-columns>summary{list-style:none}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-columns>summary::-webkit-details-marker{display:none}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-column-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(370px,80vw);max-height:55vh;overflow:auto;z-index:15;padding:18px;background:#fff;border:1px solid #cfdfef;border-radius:10px;box-shadow:0 12px 35px #173e6426;display:flex;gap:10px;flex-wrap:wrap}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-column-panel>strong,body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-column-panel>small{flex-basis:100%;line-height:1.6}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-column-list{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-column-list>label{display:flex;align-items:center;gap:7px;padding:7px 3px;font-size:12px;line-height:1.45;cursor:pointer;min-width:0}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-column-list input{width:15px;height:15px;min-height:0;flex:none;accent-color:#347abd}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-column-list span{overflow-wrap:anywhere}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-frame{margin-top:0;border:1px solid #dce6f1;border-radius:0 0 12px 12px;max-height:65vh;background:#fff;box-shadow:0 3px 14px #29496e06}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table]{border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.5;min-width:100%;width:max-content;background:#fff}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] tr>[hidden]{display:none!important}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] th{background:#eef4fb;color:#315471;font-weight:650;font-size:12px;letter-spacing:.1px;padding:13px 16px;border:0;border-bottom:1px solid #d5e2ef;vertical-align:middle;white-space:nowrap;z-index:3}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] td{padding:12px 16px;border:0;border-bottom:1px solid #edf1f6;vertical-align:middle;background:#fff;color:#36526c;max-width:360px;white-space:normal;overflow-wrap:anywhere}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] tbody tr:nth-child(even)>td{background:#f8fafd}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] tbody tr:hover>td{background:#edf5ff}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] tbody tr:last-child>td{border-bottom:0}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;color:#284866}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-index{min-width:65px;width:65px;position:sticky;left:0;z-index:2;color:#8292a2;font-size:11px;text-align:center;padding:10px 8px}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-identity{position:sticky;left:0;z-index:2;min-width:175px;max-width:270px;font-weight:600;border-right:1px solid #e3ebf4}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-index+.www-table-identity{left:var(--www-index-width,65px)}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] th.www-table-index,body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] th.www-table-identity{z-index:5}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-actions{position:sticky;right:0;z-index:2;min-width:145px;white-space:nowrap;border-left:1px solid #e3ebf4}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] th.www-table-actions{z-index:5}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-actions button{min-height:30px;padding:5px 10px;border:1px solid #d8e5f3;border-radius:6px;font-size:11px;margin-right:5px;background:#f3f8ff;color:#2e6497}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-actions button:hover{background:#e4efff}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .kw-table-cell-button{min-height:24px;padding:2px 0;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit;text-align:inherit;font-size:13px;line-height:1.5;white-space:normal;width:100%}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .kw-table-cell-button:hover{color:#216caf;text-decoration:underline;background:transparent}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-number>.kw-table-cell-button{text-align:right!important;font-variant-numeric:tabular-nums}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .p-column-filter-button{margin-left:8px;border:0;background:transparent;color:#6b8baa;min-height:24px;padding:2px 6px;font-size:12px}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .p-column-filter-button[data-active=true]{background:#dbeaff;color:#245f99;border-radius:4px}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-frame[data-density=compact] table[data-www-table] td{padding:7px 12px}
body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-frame[data-density=compact] table[data-www-table] th{padding:9px 12px}
@media(max-width:650px){body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-toolbar{padding:10px;gap:7px}body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-summary{flex-basis:100%;font-size:11px}body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] td{padding:10px 12px}body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-index{position:static;min-width:45px;width:45px}body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-identity,body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-index+.www-table-identity{position:static;min-width:160px}body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) table[data-www-table] .www-table-actions{position:static;min-width:130px}body.portal-active :is(#module-home,#module-kw:not([data-table-profile=protected-schedule]),#module-reporting,#module-sources,#module-planning,#module-analytics,#module-administration) .www-table-column-panel{left:0;right:auto;width:min(320px,calc(100vw - 45px))}}
