.nt-wrap{max-width:1100px;margin:auto;padding:12px 8px;color:#193456}.nt-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.nt-head h1{font-size:clamp(21px,3vw,29px);margin:0}.nt-panel{background:#fff;border:1px solid #dae4ef;border-radius:13px;padding:20px;margin:14px 0}.nt-panel h3{font-size:17px;margin:0 0 12px}.nt-panel p,.nt-panel small{color:#657b96}.nt-panel label{display:block;margin:12px 0}.nt-label textarea,.nt-panel input:not([type=checkbox]),.nt-panel select{width:100%;max-width:100%;box-sizing:border-box;padding:10px;border:1px solid #cbd7e5;border-radius:7px;background:white;color:#193456}.nt-inline{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.nt-inline input[type=time]{width:auto}.nt-btn{padding:10px 13px;background:#fff;color:#203c5d;border:1px solid #cbd7e5;border-radius:8px;cursor:pointer;font-weight:600}.nt-primary{background:#415c7e;color:white}.nt-scroll{overflow-x:auto}.nt-scroll table{width:100%;border-collapse:collapse;min-width:440px}.nt-scroll th,.nt-scroll td{padding:12px 8px;text-align:left;border-bottom:1px solid #e4ebf3}.nt-form{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.nt-form input{flex:1;min-width:130px}.nt-item{padding:14px 0;border-bottom:1px solid #e6edf4}.nt-item p{margin:5px 0}.nt-unread{border-left:3px solid #415c7e;padding-left:12px}.nt-bell{margin-left:auto;border:1px solid #d4deea;border-radius:8px;padding:8px;background:#fff;color:#203c5d;cursor:pointer}@media(max-width:600px){.nt-panel{padding:13px}.nt-head{align-items:flex-start}.nt-inline{gap:8px}.nt-form{display:block}.nt-form>*{margin:5px 0;width:100%}}
.nt-celebrate{position:fixed;z-index:99999;inset:0;background:rgba(12,28,50,.52);display:grid;place-items:center;padding:16px;pointer-events:auto}.nt-celebrate-inner{background:#fff;border-radius:18px;padding:28px;max-width:450px;text-align:center;box-shadow:0 18px 60px #13284455;animation:ntPop .5s ease-out}.nt-celebrate-inner strong{font-size:24px}.nt-celebrate-inner p{line-height:1.6}@keyframes ntPop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}

/* Dashboard V1 notifications polish */
.nt-bell{display:inline-flex;align-items:center;gap:5px;min-height:39px;padding:7px 11px;border-radius:11px;box-shadow:0 2px 8px #18325210}.nt-bell-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:12px;background:#235fa7;color:#fff;font-size:11px;font-weight:750}.nt-item{position:relative}.nt-item .nt-btn{margin:7px 8px 0 0}.nt-panel [hidden]{display:none!important}.nt-detail-overlay{position:fixed;inset:0;z-index:99990;display:grid;place-items:center;background:#132c4b88;padding:15px}.nt-detail-dialog{width:min(480px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:15px;padding:22px;box-shadow:0 20px 55px #0003}.nt-detail-close{float:right}.nt-detail-dialog dl{display:grid;grid-template-columns:100px 1fr;gap:9px;margin:18px 0}.nt-detail-dialog dt{font-weight:700}.nt-detail-dialog dd{margin:0;overflow-wrap:anywhere}

/* Dashboard-only responsive cleanup */
.wl-dashboard,.wl-dashboard *{box-sizing:border-box}.wl-dashboard .wl-filter,.wl-dashboard #wlStaffHolder,.wl-dashboard .wl-staff,.wl-dashboard .wl-report label{min-width:0}.wl-dashboard #wlStaffHolder{max-width:100%;flex:0 1 360px}.wl-dashboard .wl-staff select{width:100%;max-width:100%;min-width:0}.wl-dashboard .wl-report{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:12px}.wl-dashboard .wl-report label{width:100%;min-width:0}.wl-dashboard .wl-report input,.wl-dashboard .wl-report select{width:100%;min-width:0}.wl-dashboard .wl-report button{white-space:nowrap}.wl-dashboard .wl-kpi{min-height:85px}.wl-dashboard .wl-kpi-mark{flex-shrink:0}@media(max-width:1050px){.wl-dashboard .wl-report{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.wl-dashboard .wl-report{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wl-dashboard #wlStaffHolder{flex:1 1 100%;width:100%}.wl-dashboard .wl-filter{width:100%;overflow:hidden}.wl-dashboard .wl-pills{max-width:100%}.wl-dashboard .wl-report button{white-space:normal}.wl-dashboard .wl-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.wl-dashboard .wl-chart-row,.wl-dashboard .wl-legend{max-width:100%;min-width:0}.wl-dashboard .wl-legend-row{min-width:0}}

/* Dashboard final polish: responsive chart, readable legend, matched date fields. */
.wl-dashboard .wl-kpi{cursor:pointer;text-align:left;font:inherit;color:inherit;width:100%}
.wl-dashboard .wl-kpi[hidden],.wl-dashboard .wl-total[hidden]{display:none!important}
.wl-dashboard .wl-total{border:0;text-align:left;cursor:pointer;width:100%;font:inherit}
.wl-dashboard .wl-chart-row,.wl-dashboard .wl-legend,.wl-dashboard .wl-legend-row{box-sizing:border-box;min-width:0}
.wl-dashboard .wl-legend-row{grid-template-columns:12px minmax(0,1fr) 36px 52px;gap:8px;max-width:100%}
.wl-dashboard .wl-legend-row span{overflow-wrap:anywhere}
.wl-dashboard .wl-report input[type=date]{width:100%;min-width:0;max-width:100%;min-height:42px;box-sizing:border-box;font:inherit}
@media(max-width:650px){.wl-dashboard .wl-chart-row{display:flex;flex-direction:column;align-items:stretch;gap:14px;overflow:hidden}.wl-dashboard .wl-interactive-chart{align-self:center;flex:0 0 auto;max-width:100%}.wl-dashboard .wl-legend{width:100%;max-width:100%;flex:none}.wl-dashboard .wl-legend-row{width:100%;grid-template-columns:12px minmax(0,1fr) 36px 48px;gap:6px;padding:8px 3px!important}.wl-dashboard .wl-report{grid-template-columns:repeat(2,minmax(0,1fr))}.wl-dashboard .wl-report label{display:flex;flex-direction:column;gap:5px}.wl-dashboard .wl-report input[type=date]{font-size:14px;padding:8px 5px}.wl-dashboard .wl-report label:nth-child(4),.wl-dashboard .wl-report label:nth-child(5){grid-column:span 1}.wl-dashboard .wl-chart-tooltip{max-width:95%;white-space:normal;text-align:center}}

/* Notification Settings: theme-linked, responsive, isolated styling. */
.nt-wrap{--nt-surface:var(--wl-theme-surface,var(--card-bg,var(--surface,#fff)));--nt-fg:var(--wl-theme-fg,var(--text,#193456));--nt-muted:var(--wl-theme-muted,var(--muted,#657b96));--nt-border:var(--wl-theme-border,var(--border,#dae4ef));--nt-primary:var(--wl-theme-primary,var(--primary,#415c7e));--nt-on-primary:var(--wl-theme-on-primary,#fff);--nt-accent:var(--wl-theme-accent,var(--accent,#235fa7));--nt-selection:var(--wl-theme-selection,var(--surface-secondary,#e4eaf1));color:var(--nt-fg);max-width:1100px;width:100%;min-width:0;box-sizing:border-box;padding:12px 8px 28px}
.nt-wrap,.nt-wrap *{box-sizing:border-box}
.nt-head{flex-wrap:wrap}.nt-head h1{color:var(--nt-fg)}
.nt-panel{min-width:0;background:var(--nt-surface);color:var(--nt-fg);border-color:var(--nt-border)}
.nt-panel :is(h1,h2,h3,h4,label,strong,summary){color:var(--nt-fg)}
.nt-panel :is(p,small){color:var(--nt-muted)}
.nt-panel input:not([type=checkbox]),.nt-panel textarea,.nt-panel select{background:var(--nt-surface);color:var(--nt-fg);border:1px solid var(--nt-border);border-radius:8px;min-width:0;max-width:100%}
.nt-panel input[type=checkbox]{accent-color:var(--nt-primary)}
.nt-wrap .nt-btn{background:var(--nt-surface);color:var(--nt-fg);border:1px solid var(--nt-border);white-space:nowrap;max-width:100%;min-height:40px}
.nt-wrap .nt-btn.nt-primary{background:var(--nt-primary);color:var(--nt-on-primary);border-color:var(--nt-primary)}
.nt-wrap .nt-btn:hover{border-color:var(--nt-accent)}
.nt-wrap :is(button,input,textarea,select,summary):focus-visible{outline:2px solid var(--nt-accent);outline-offset:2px}
.nt-wrap .nt-scroll{overflow-x:auto;max-width:100%}
.nt-wrap .nt-scroll table{min-width:0;width:100%;color:var(--nt-fg)}
.nt-wrap .nt-scroll th{background:var(--nt-selection);color:var(--nt-fg);border-color:var(--nt-border)}
.nt-wrap .nt-scroll td{color:var(--nt-fg);border-color:var(--nt-border);overflow-wrap:anywhere}
.nt-wrap .nt-scroll td:nth-child(2),.nt-wrap .nt-scroll th:nth-child(2){text-align:center;width:100px}
.nt-wrap .nt-scroll td:nth-child(3),.nt-wrap .nt-scroll th:nth-child(3){width:29%}
.nt-wrap .nt-inline{min-width:0;align-items:center}
.nt-wrap .nt-inline label{min-width:0}
.nt-wrap .nt-inline input[type=time]{width:auto;min-width:100px}
.nt-wrap #ntSave{margin-top:10px}
.nt-wrap .nt-form>*{min-width:0}
.nt-wrap .nt-unread{border-left-color:var(--nt-accent)}
html.wl-theme-active .content .nt-wrap :is(.nt-panel,.nt-scroll th,.nt-scroll td){border-color:var(--nt-border)!important}
html.wl-theme-active .content .nt-wrap .nt-panel{background:var(--nt-surface)!important;color:var(--nt-fg)!important}
html.wl-theme-active .content .nt-wrap .nt-btn.nt-primary{background:var(--nt-primary)!important;color:var(--nt-on-primary)!important;border-color:var(--nt-primary)!important}
html.wl-theme-active .content .nt-wrap .nt-btn:not(.nt-primary){background:var(--nt-surface)!important;color:var(--nt-fg)!important;border-color:var(--nt-border)!important}
html.wl-theme-active .content .nt-wrap .nt-scroll th{background:var(--nt-selection)!important;color:var(--nt-fg)!important}
@media(max-width:650px){
 .nt-wrap{padding:10px 4px 22px}.nt-head{align-items:center;gap:10px}.nt-head h1{font-size:clamp(20px,5vw,25px)}
 .nt-panel{padding:14px 12px;margin:10px 0;border-radius:11px}
 .nt-wrap .nt-scroll table{table-layout:fixed;font-size:12px}
 .nt-wrap .nt-scroll th,.nt-wrap .nt-scroll td{padding:10px 5px;vertical-align:middle}
 .nt-wrap .nt-scroll th:first-child,.nt-wrap .nt-scroll td:first-child{width:43%}
 .nt-wrap .nt-scroll th:nth-child(2),.nt-wrap .nt-scroll td:nth-child(2){width:20%}
 .nt-wrap .nt-scroll th:nth-child(3),.nt-wrap .nt-scroll td:nth-child(3){width:37%}
 .nt-wrap .nt-inline{gap:8px}.nt-wrap .nt-inline label{margin:6px 0}
 .nt-wrap .nt-inline input[type=time]{min-width:0;width:115px}
 .nt-wrap #ntSave{width:100%;white-space:normal}
 .nt-wrap #ntEnableDevice,.nt-wrap #ntDisableDevice{flex:1 1 170px}
 .nt-wrap .nt-form{display:flex;flex-direction:column}.nt-wrap .nt-form>*{width:100%}
}
