:root{font-family:Segoe UI,Arial,sans-serif;color:#182e3c;background:#f2f5f7;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{background:#087f83;color:white;border:1px solid transparent;border-radius:7px;padding:11px 17px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.93)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e7ae43;outline-offset:2px}.secondary{background:#fff;color:#245461;border-color:#d7e2e6}p{line-height:1.55}h1{font-size:30px;letter-spacing:-1px;margin:4px 0 12px}h2{font-size:18px;margin:0 0 14px}.muted,.eyebrow{color:#6c7e8a}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px}.brand{font-weight:800;font-size:27px;letter-spacing:-1px}.brand span{font-size:10px;letter-spacing:2px;color:#53cac3;margin-left:8px}aside{width:240px;background:#102d3b;color:#fff;position:fixed;inset:0 auto 0 0;padding:32px 22px;display:flex;flex-direction:column}aside .muted{font-size:10px;letter-spacing:1.5px;color:#8faab6;margin:38px 0 16px}nav{display:grid;gap:8px}nav [data-page]{text-align:left;background:transparent;color:#c3d5dd}nav [data-page].active{background:#224b5b;color:#fff}.account{margin-top:auto;font-size:13px}.account button{font-size:12px}main{margin-left:240px;padding:32px 40px;max-width:1600px}header,.toolbar,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.badge{font-size:12px;color:#087f83;background:#dff3ed;border-radius:20px;padding:9px 14px}.card{background:#fff;border:1px solid #dfe7ec;border-radius:12px;padding:25px;margin:20px 0;box-shadow:0 3px 12px #18394804}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.metrics .card{margin:5px 0}.metrics .metric-caption{font-size:13px;color:#5f7481}.metrics strong{font-size:36px;letter-spacing:-1px}.metrics span{font-size:12px;color:#6c7e8a}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin-bottom:18px}input,select,textarea{border:1px solid #c9d6de;border-radius:6px;padding:10px;background:#fff;color:#182e3c;min-width:0}textarea{font-family:Consolas,monospace;width:100%;line-height:1.5}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:13px 10px;border-bottom:1px solid #e4ebef;text-align:left;white-space:nowrap}th{background:#f5f8f9;color:#5f7481;font-weight:600}.table-wrap{overflow:auto;max-height:650px}.checks{display:flex;flex-wrap:wrap;gap:18px}.checks label,.inline{flex-direction:row;align-items:center}.actions{justify-content:flex-start;flex-wrap:wrap;margin-top:12px}.login{min-height:100vh;display:grid;place-items:center;background:#102d3b;padding:20px}.login .card{max-width:440px;width:100%;padding:38px}.login .brand{color:#087f83;margin-bottom:32px}.login h1{font-size:27px}.login p{color:#6c7e8a}.login button{width:100%}#notice{position:fixed;bottom:24px;right:24px;max-width:min(500px,90vw);padding:16px 22px;background:#102d3b;color:white;border-radius:8px;box-shadow:0 5px 24px #0003;z-index:10}.chart{overflow:auto;min-height:140px}.chart svg{display:block;width:100%;min-width:500px;height:230px}.chart text{font-size:12px;fill:#6c7e8a}.chart rect{fill:#168e91}.chart polyline{fill:none;stroke:#168e91;stroke-width:3}.report-brand{display:flex;gap:24px;align-items:center}.report-brand img{max-width:160px;max-height:80px;object-fit:contain}pre{background:#102d3b;color:#d4eff0;padding:20px;border-radius:8px;overflow:auto;font-size:12px}[hidden]{display:none!important}@media(max-width:950px){aside{width:190px;padding:25px 15px}main{margin-left:190px;padding:24px}.metrics,.grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){aside{position:static;width:auto}aside .muted,.account p{display:none}nav{grid-template-columns:1fr 1fr;margin:16px 0}.account{margin-top:0}main{margin:0;padding:18px}.metrics,.grid{grid-template-columns:1fr}header{align-items:flex-start}.badge{white-space:nowrap;font-size:10px}.card{padding:18px}.metrics strong{font-size:30px}}@media print{body{background:white}aside,header,.no-print,#notice{display:none!important}main{margin:0;padding:0;max-width:none}.page{display:none!important}#reports,#reportOutput{display:block!important}.card{border:0;box-shadow:none;margin:0;padding:0}.table-wrap{overflow:visible;max-height:none}th,td{white-space:normal;font-size:10px;padding:8px}thead{display:table-header-group}tr{break-inside:avoid}}
#reportGenerating{border:1px solid #dfe7ec;border-radius:12px;padding:28px 44px;color:#182e3c;background:#fff;box-shadow:0 8px 32px #102d3b33;cursor:wait}#reportGenerating::backdrop{background:#102d3b80;cursor:wait}#reportGenerating p{margin:0;font-size:18px;font-weight:600}
.live-device-name{font-weight:600}.live-summary-table th:nth-child(n+4){min-width:110px;white-space:normal}.live-device-row>td:nth-child(n+4){font-variant-numeric:tabular-nums}
.brand-logo{display:block;width:100%;height:auto;object-fit:contain}aside .brand{background:#fff;border-radius:8px;padding:8px}aside .brand-logo{max-height:72px}.login .brand-logo{max-height:110px}.company-brand{margin-top:20px;padding-top:16px;border-top:1px solid #34515f}.company-brand>span{display:block;margin-bottom:8px;font-size:10px;letter-spacing:1px;color:#8faab6}.company-logo{width:100%;max-width:160px;padding:8px 12px;background:#fff;border-radius:6px}.company-logo img{display:block;width:100%;height:48px;object-fit:contain}@media(max-width:650px){aside .brand{width:220px}.company-brand{display:flex;align-items:center;gap:12px;margin-top:16px;padding-top:12px;flex-wrap:wrap}.company-brand>span{margin:0}.company-logo{max-width:140px}.company-logo img{height:36px}}
.driver-library{margin-top:16px;max-height:420px}.driver-library .actions{margin:0;flex-wrap:nowrap}.driver-library .selected-driver td{background:#e5f4f1}.driver-library button{padding:8px 11px;font-size:12px}#driverSearch{flex:1;min-width:180px}#driverSelection{font-size:13px;color:#245461}#driverFilename{max-width:420px}button:disabled{opacity:.5;cursor:default}
#drivers{--configuration-columns:6}#devices{--configuration-columns:5}.required-mark{color:#b44433;font-weight:700}.parameter-fields,#driverForm>.grid,#deviceForm>.grid{display:grid;grid-template-columns:repeat(var(--configuration-columns,6),minmax(0,1fr));gap:12px}.parameter-fields>.parameter-row{grid-template-columns:minmax(0,1fr) 34px;gap:4px;border:0;align-items:end;padding:8px 0}.parameter-fields>.mandatory-field{grid-template-columns:minmax(0,1fr)}.mandatory-field>.parameter-controls:empty{display:none}.parameter-fields .parameter-row>label{font-size:12px;min-width:0}.parameter-fields input,.parameter-fields select{width:100%;padding:9px 8px}.parameter-fields>.parameter-collection{grid-column:1/-1}.parameter-collection{border:1px solid #dfe7ec;border-radius:8px;padding:12px;margin:12px 0;background:#fcfdfe}.missing-fields{color:#a23427;font-size:13px}.field-help{font-size:12px;margin:8px 0}.parameter-editor .actions{gap:8px}.parameter-editor .actions select{max-width:100%}@media(max-width:1150px){.parameter-fields,#driverForm>.grid,#deviceForm>.grid{grid-template-columns:repeat(min(var(--configuration-columns,6),3),minmax(0,1fr))}}@media(max-width:950px){.parameter-fields,#driverForm>.grid,#deviceForm>.grid{grid-template-columns:repeat(min(var(--configuration-columns,6),2),minmax(0,1fr))}}@media(max-width:650px){.parameter-fields,#driverForm>.grid,#deviceForm>.grid{grid-template-columns:minmax(0,1fr)}.parameter-collection{padding:10px}}
.parameter-controls .delete-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;flex-shrink:0;background:transparent;border-color:transparent}.delete-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.parameter-controls .delete-icon:hover{background:#fff0ef;border-color:#f1ceca}
.parameter-editor{border:1px solid #dfe7ec;border-radius:8px;padding:16px;margin:18px 0}.parameter-editor h3{margin:0 0 14px}.parameter-row{border-bottom:1px solid #e4ebef;padding:12px 0;display:grid;grid-template-columns:minmax(140px,1fr) auto;gap:12px}.parameter-row>label{margin:0;overflow-wrap:anywhere}.parameter-row>details{grid-column:1/-1;border-left:2px solid #dfe7ec;padding-left:14px}.parameter-controls{display:flex;gap:8px;align-items:flex-start}.parameter-controls button{color:#9b3030}.parameter-editor summary{cursor:pointer;padding:10px 0}.parameter-editor .actions input{flex:1;min-width:120px}.parameter-editor>details{margin-top:16px}.parameter-controls select{max-width:115px}@media(max-width:650px){.parameter-row{grid-template-columns:1fr}.parameter-controls{flex-wrap:wrap}.parameter-editor{padding:10px}}

.device-entries{display:grid;gap:12px;margin-top:20px}.device-entry{border:1px solid #dfe7ec;border-radius:8px;padding:16px}.device-entry h3{margin:0 0 8px;font-size:15px}.device-entry p{margin:0;font-size:13px;color:#5f7481;overflow-wrap:anywhere}

.parameter-add{padding-top:12px;border-top:1px solid #e4ebef;margin-top:12px;align-items:flex-end}.parameter-picker{margin:0;min-width:180px}.parameter-picker>span{font-size:12px;color:#245461}.parameter-add>.parameter-picker select{max-width:320px;width:100%}

.user-actions{margin:0;flex-wrap:nowrap}.user-actions button{padding:7px 10px;font-size:12px}.audit-detail{max-width:650px;min-width:280px;white-space:normal}.audit-detail pre{max-height:360px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}#auditEvents{margin-top:20px}#passwordChange .secondary{margin-top:10px}

.account-actions{display:flex;align-items:center;gap:8px;margin-top:14px}.account-actions .account-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:42px;padding:9px 8px;border:1px solid #47707f;border-radius:9px;color:#e7f5f6;background:#204653;font-size:11px;white-space:nowrap;box-shadow:0 2px 5px #071e2826;transition:background .15s,border-color .15s}.account-actions .password-action{background:#14666b;border-color:#278b8d}.account-actions .account-action:hover{background:#2c5966;border-color:#6abdbf;filter:none}.account-actions .password-action:hover{background:#1a7a7e}.account-action svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}@media(min-width:651px) and (max-width:950px){.account-action span{display:none}.account-actions .account-action{flex:none;width:42px}}
.report-brand .report-enernexus-logo{margin-left:auto;max-width:180px;max-height:65px}

.number-spinner::-webkit-inner-spin-button, .number-spinner::-webkit-outer-spin-button { opacity: 1; }

.communication-group{grid-column:1/-1;min-width:0;margin:8px 0;padding:12px;border:1px solid #c7dcdf;border-radius:8px}.communication-group legend{font-size:13px;font-weight:600;color:#245461;padding:0 6px}.communication-group>.parameter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:650px){.communication-group>.parameter-fields{grid-template-columns:minmax(0,1fr)}}

.reading-state{display:block;color:#607784;margin-top:4px}td[data-state="Stale"],td[data-state="Bad quality"],td[data-state="Invalid source time"]{background:#fff3dd}td[data-state="No data"]{color:#71818b}.report-parameter-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-content:start;margin:0}.report-parameter-row label{margin:0}.report-parameter-row input[type="text"]{width:100%}.report-parameter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin-top:16px}.report-parameter-grid>label{margin:0;align-items:flex-start;overflow-wrap:anywhere}.report-parameter-grid>div{min-width:0;overflow-wrap:anywhere}#parameterSelections fieldset{min-width:0;border:1px solid #dfe7ec;border-radius:8px;margin:14px 0;padding:16px}#parameterSelections details{margin:16px 0}@media(max-width:950px){.report-parameter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.report-parameter-grid{grid-template-columns:1fr}}

.customer-logos{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.customer-logos img,.customer-logo-preview{max-width:160px;max-height:70px;object-fit:contain}.header-customer-logos{margin-left:auto}.header-customer-logos img{max-width:120px;max-height:50px}.customer-logo-preview{display:block;margin:0 0 16px}.report-brand{flex-wrap:wrap}.customer-logo-settings{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){header{flex-wrap:wrap}.header-customer-logos{margin-left:0}.customer-logo-settings{grid-template-columns:1fr}.customer-logos img{max-width:120px}}

.point-table-editor .point-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.point-toolbar h3{margin:0;white-space:nowrap}.point-toolbar .point-search{margin:0 0 0 auto;flex:1;max-width:320px;min-width:160px}.point-toolbar input{padding:7px 9px}.point-toolbar>span{font-size:12px;white-space:nowrap}.point-toolbar>button{padding:7px 11px;white-space:nowrap}.point-table-editor>div:not(.point-toolbar){min-height:0}.point-table-scroll{max-height:65vh;overflow:auto;border:1px solid #dfe7ec;border-radius:7px;scroll-padding-top:40px}.point-mapping-table{table-layout:fixed;min-width:720px;width:100%;font-size:12px}.point-mapping-table thead th{position:sticky;top:0;z-index:1;padding:8px 5px;background:#edf4f6}.point-mapping-table th:first-child{width:38px;font-size:0}.point-mapping-table th:nth-child(2){width:30%}.point-mapping-table th:nth-child(3){width:68px}.point-mapping-table th:nth-child(4){width:145px}.point-mapping-table th:nth-child(5){width:120px}.point-mapping-table th:nth-child(6){width:72px}.point-mapping-table th:last-child{width:40px;font-size:0}.point-table-row>td{padding:2px 4px;height:31px;vertical-align:middle}.point-table-row input:not([type=checkbox]),.point-table-row select{width:100%;min-width:0;height:26px;margin:0;padding:3px 5px;font-size:12px;border-color:transparent;background:transparent}.point-table-row input:hover,.point-table-row select:hover,.point-table-row input:focus,.point-table-row select:focus{border-color:#b7ccd4;background:white}.point-table-row input:read-only{color:#607784}.point-table-row input::placeholder{font-style:italic}.point-table-row .point-expand{height:24px;width:28px;padding:0;font-size:11px;background:transparent;border-color:transparent}.point-table-row .point-fast{text-align:center}.point-fast input{width:16px;height:16px;margin:0;vertical-align:middle;accent-color:#087f83}.point-table-row .point-delete{display:table-cell;text-align:center}.point-table-row .point-delete .delete-icon{height:24px;width:28px;padding:4px}.point-table-row:hover{background:#f3f9fa}.point-invalid{background:#fff2ed}.point-table-row :invalid{border-color:#c45d45!important;background:#fff8f4!important}.point-options-row>td{padding:10px 14px;background:#f5f9fa;white-space:normal}.point-options-row details{border:0;margin:0;padding:0}.point-options-row details>summary{display:none}.point-options-row .parameter-fields{margin:0}.point-options-row .parameter-row{margin:0}.point-options-row .parameter-add{margin-top:6px}.point-empty{padding:18px;text-align:center}.point-editor-open{overflow:hidden}.point-table-editor.point-editor-expanded{position:fixed;inset:18px;z-index:2000;margin:0;padding:16px;background:white;display:flex;flex-direction:column;box-shadow:0 0 0 100vmax #102d3ba6}.point-editor-expanded>div:not(.point-toolbar){display:flex;flex:1;flex-direction:column;min-height:0}.point-editor-expanded .point-table-scroll{flex:1;max-height:none;min-height:0}.point-editor-expanded>.point-toolbar{flex-shrink:0}.point-editor-expanded>.point-toolbar .point-search{max-width:460px}.point-editor-expanded>details{flex-shrink:0;max-height:25vh;overflow:auto}.point-editor-expanded .point-mapping-table th:nth-child(2){width:auto}@media(max-width:650px){.point-table-editor.point-editor-expanded{inset:6px;padding:10px}.point-toolbar .point-search{order:2;max-width:none;flex-basis:100%;margin:0}.point-toolbar>span{margin-left:auto}.point-table-scroll{max-height:70vh}}

body.point-editor-open #notice{z-index:2100}
.audit-remarks{min-width:320px;max-width:560px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}.audit-remarks textarea{width:100%;box-sizing:border-box}.audit-remark-entry{margin:6px 0;padding:6px 0;border-bottom:1px solid #dfe7ec}.audit-remarks>button{margin-top:8px}

.device-config-table{min-width:1000px}.device-config-table th:nth-child(2){width:18%}.device-config-table th:nth-child(3){width:20%}.device-config-table th:nth-child(4){width:35%}.device-config-table th:nth-child(5){width:80px}.device-config-table th:nth-child(6){width:100px}.device-config-table .device-connection{display:flex;gap:4px;align-items:center}.device-connection select{max-width:70px}.device-connection input:last-child{max-width:100px}.device-advanced-form>.grid>.device-primary-field{display:none}#deviceFormPanel{margin:12px 0}#deviceFormPanel>summary{cursor:pointer;font-weight:600;padding:10px 0}#deviceFormPanel[open]>form{padding:12px;border:1px solid #dfe7ec;border-radius:8px}.device-details-row .parameter-editor{margin:8px 0;padding:10px}.device-details-row form{margin:0}.device-table-editor .point-table-scroll{max-height:65vh}.device-table-editor.point-editor-expanded .point-table-scroll{max-height:none}.device-table-editor.point-editor-expanded .device-config-table th:nth-child(2){width:18%}

.display-rules-table th{position:sticky;top:0;z-index:1}.display-rules-table td{padding:5px 8px}.display-rules-table input,.display-rules-table select{width:100%;min-width:130px;padding:6px}.display-rules-table button{padding:6px 10px}.live-table-editor .point-toolbar>label{margin:0;min-width:130px}.live-table-editor .point-toolbar>label select{padding:6px}.live-groups-scroll{padding:0 8px}.live-type-group{margin:10px 0}.live-type-group>h3{font-size:14px;margin:10px 0}.live-summary-table{min-width:900px}.live-summary-table thead th{position:sticky;top:0;z-index:1;background:#edf4f6}.live-summary-table th:first-child{width:38px;font-size:0}.live-summary-table th:nth-child(2){width:180px}.live-summary-table th:nth-child(3){width:180px}.live-device-row>td{padding:5px;vertical-align:middle}.live-device-row .point-expand{padding:3px 6px;border:0}.quick-values{display:grid;grid-template-columns:repeat(var(--quick-count),minmax(110px,1fr));gap:6px}.quick-value{display:flex;flex-direction:column;gap:2px;min-width:110px;padding:4px 6px;border-left:2px solid #d7e6e9;font-size:12px}.quick-value strong{font-size:11px;white-space:normal;overflow-wrap:anywhere}.quick-value small{font-size:10px;color:#607784}.quick-value[data-state="Stale"],.quick-value[data-state="Bad quality"]{background:#fff3dd}.live-device-detail>td{padding:8px 12px;background:#f5f9fa}.live-detail-table{font-size:12px;min-width:650px}.live-detail-table th,.live-detail-table td{padding:5px 8px}.live-detail-table th{position:static}.live-detail-table th:first-child{width:40%;font-size:12px}.live-table-editor.point-editor-expanded #deviceLiveGroups{flex:1;min-height:0;max-height:none;overflow:auto}.overview-quick-table>tbody>tr>td{padding:6px}.overview-quick-table>tbody>tr>td:first-child{width:180px;font-weight:600}.overview-quick-table .quick-value{font-weight:400}

.point-table-editor:not(.device-table-editor) .point-mapping-table{min-width:1280px}.point-table-editor:not(.device-table-editor) .point-mapping-table th{white-space:normal;font-size:11px;line-height:12px;padding:6px 4px}.point-table-editor:not(.device-table-editor) .point-mapping-table th:first-child,.point-table-editor:not(.device-table-editor) .point-mapping-table th:last-child{font-size:0}.live-type-group{flex:none}.display-rules-table{font-size:12px}.display-rules-table th{padding:7px 5px}.display-rules-table td{padding:2px 4px}.display-rules-table input,.display-rules-table select{height:26px;padding:3px 5px;font-size:12px}.display-rules-table button{height:26px;padding:3px 8px;font-size:12px}

.point-toolbar h2{margin:0}.display-table-editor.point-editor-expanded>#displaySettingsForm{display:flex;flex-direction:column;flex:1;min-height:0}.display-table-editor.point-editor-expanded #displayRules{flex:1;max-height:none;min-height:0}.display-table-editor.point-editor-expanded .grid label{margin-bottom:12px}#displayStatus:empty{display:none}
#overviewQuickDisplay{padding:12px}#overviewQuickDisplay>.toolbar{margin-bottom:8px}#overviewQuickDisplay h2{margin:0}#overviewDisplaySettings{padding:6px 10px;font-size:12px}.overview-quick-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.overview-type-group{min-width:0;border:1px solid #dfe7ec;border-radius:6px;overflow:hidden}.overview-quick-table{display:block;font-size:12px}.overview-quick-table caption{display:block;text-align:left;padding:6px 8px;font-size:13px;font-weight:600;background:#edf4f6}.overview-quick-table tbody{display:grid;grid-template-columns:repeat(var(--overview-columns,3),minmax(0,max-content))}.overview-quick-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0;border-bottom:1px solid #e4ebef}.overview-quick-table th,.overview-quick-table>tbody>tr>td{padding:4px 8px;line-height:1.3;border-bottom:0}.overview-quick-table>tbody>tr>th{background:transparent;color:inherit;white-space:normal;overflow-wrap:anywhere}.overview-quick-table td{text-align:right;font-variant-numeric:tabular-nums}@media(max-width:1150px){.overview-quick-table tbody{grid-template-columns:repeat(min(var(--overview-columns,3),3),minmax(0,max-content))}}@media(max-width:950px){.overview-quick-table tbody{grid-template-columns:repeat(min(var(--overview-columns,3),2),minmax(0,max-content))}}@media(max-width:650px){.overview-quick-table tbody{grid-template-columns:minmax(0,max-content)}}

.amc-expired-banner{position:sticky;top:8px;z-index:20;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;margin:16px 0;padding:12px 18px;border:2px solid #dc2626;border-radius:8px;background:#fee2e2;color:#991b1b;animation:amc-expired-flash 2s ease-in-out infinite}.amc-expired-banner button{padding:4px;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px}.amc-expired-banner button:disabled{cursor:wait;opacity:.7}@keyframes amc-expired-flash{0%,100%{background:#fee2e2;border-color:#dc2626}50%{background:#fecaca;border-color:#991b1b}}@media(prefers-reduced-motion:reduce){.amc-expired-banner{animation:none}}

#schedulerCard{min-width:0}#schedulerCard .table-wrap{max-width:100%;overflow:auto;margin:12px 0}#schedulerCard td{max-width:380px;overflow-wrap:anywhere;vertical-align:top}#schedulerCard td button{margin:3px}#schedulerCard fieldset{min-width:0;border:1px solid #d7e2e6;border-radius:8px;margin:14px 0;padding:14px}#schedulerCard legend{font-weight:600}#schedulerCard details{margin:16px 0}#schedulerCard summary{cursor:pointer;font-weight:600}#schedulerCard .grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}#schedulerError{color:#b42318}[data-content-theme=dark] #schedulerError{color:#fca5a5}#schedulerCard textarea{width:100%}
#reports #schedulerCard{grid-column:1/-1}#reports #schedulerCard .grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}#schedulerCard label{min-width:0}#schedulerCard td{white-space:normal}#schedulerCard th{white-space:nowrap}
aside .brand-logo{max-width:100%;height:auto;object-fit:contain}aside .company-logo img{max-width:100%;object-fit:contain}

/* Scheduler panels share the selected content theme. */
#schedulerCard{--sc-surface:#f7f9fc;--sc-field:#fff;--sc-border:#bdcad8;--sc-text:#213547;--sc-muted:#61758a;--sc-raw:#eef3f9;--sc-accent:#2369c5;--sc-selected:#e3efff;color:var(--sc-text)}
[data-content-theme=dark] #schedulerCard{--sc-surface:#1c2a3c;--sc-field:#172435;--sc-border:#52657c;--sc-text:#e2e8f0;--sc-muted:#acbacb;--sc-raw:#101a29;--sc-accent:#72abf3;--sc-selected:#243f60}
#schedulerCard .scheduler-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
#schedulerCard .scheduler-heading h2{margin:0}#schedulerCard .scheduler-heading .actions{margin:0}
#schedulerCard .scheduler-panel{background:var(--sc-surface);border:1px solid var(--sc-border);border-radius:10px;padding:18px;margin-bottom:18px;min-width:0}
#schedulerCard h3{font-size:18px;margin:0 0 16px}#schedulerCard h4{font-size:14px;margin:0}
#schedulerCard .muted{color:var(--sc-muted)}#schedulerCard label{color:var(--sc-text);font-weight:400;font-size:13px}
#schedulerCard input:not([type=checkbox]),#schedulerCard select,#schedulerCard textarea{background:var(--sc-field);color:var(--sc-text);border:1px solid var(--sc-border);border-radius:6px;padding:7px 9px;font-size:13px;width:100%;min-width:0}
#schedulerCard input::placeholder,#schedulerCard textarea::placeholder{color:var(--sc-muted);opacity:1}
#schedulerCard button{padding:7px 12px;font-size:13px;border-radius:6px}#schedulerCard .secondary{background:var(--sc-field);border:1px solid var(--sc-border);color:var(--sc-text)}
#schedulerCard .scheduler-schedule-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
#schedulerCard .scheduler-schedule-grid label{margin:0 0 5px}#schedulerCard .scheduler-schedule-grid>div{min-width:0}
#schedulerCard .scheduler-cron-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
#schedulerCard .scheduler-storage-controls{display:flex;gap:8px}#schedulerCard .scheduler-storage-controls input{flex:1}
#schedulerCard .scheduler-preview{position:relative}#schedulerPreview{width:100%;white-space:nowrap;display:flex;align-items:center;justify-content:space-between;gap:18px}
#schedulerCard #schedulerPreviewResult{position:absolute;right:0;top:calc(100% + 6px);z-index:10;min-width:100%;width:max-content;max-width:min(340px,80vw);padding:4px 0;margin:0;list-style:none;border:1px solid var(--sc-border);border-radius:7px;background:var(--sc-field);color:var(--sc-text);box-shadow:0 8px 20px #0003;font-size:13px}
#schedulerPreviewResult li{padding:7px 10px;border-bottom:1px solid var(--sc-border)}#schedulerPreviewResult li:last-child{border-bottom:0}
#schedulerCard #schedulerCronHelp{font-size:12px;margin:5px 0 10px}#schedulerCard .scheduler-presets{display:flex;flex-wrap:wrap;gap:7px}
#schedulerCard .scheduler-presets button[aria-pressed=true]{background:var(--sc-selected);border-color:var(--sc-accent);color:var(--sc-accent)}
#schedulerCard label.scheduler-toggle{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:10px;margin:18px 0 0}
#schedulerCard #schedulerDateFolder{appearance:none;width:38px;height:22px;flex:none;border:1px solid var(--sc-border);border-radius:20px;background:var(--sc-border);padding:0;cursor:pointer;position:relative;margin:0}
#schedulerDateFolder::after{content:'';display:block;position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004}
#schedulerCard #schedulerDateFolder:checked{background:#2877da;border-color:#2877da}#schedulerDateFolder:checked::after{left:19px}
#schedulerCard .scheduler-tabs{display:flex;border-bottom:1px solid var(--sc-border);gap:4px;margin-bottom:14px}
#schedulerCard .scheduler-tabs button{border:0;border-radius:0;border-bottom:2px solid transparent;background:transparent;color:var(--sc-text);padding:10px 12px}
#schedulerCard .scheduler-tabs button[aria-selected=true]{border-bottom-color:var(--sc-accent);color:var(--sc-accent)}
#schedulerCard #schedulerReport{padding:0;margin:0;border:0;border-radius:0}#schedulerActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#schedulerCard #schedulerActions .scheduler-action-card,#schedulerCard .scheduler-command-card{border:1px solid var(--sc-border);padding:12px;border-radius:7px;margin:0;min-width:0;background:var(--sc-field)}
#schedulerCard .scheduler-action-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
#schedulerCard .scheduler-action-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}
#schedulerCard .scheduler-action-fields label{margin:0;gap:5px;font-size:12px}#schedulerCard .scheduler-action-fields input,#schedulerCard .scheduler-action-fields select{height:34px}
#schedulerCard .scheduler-remove{background:transparent;border:0;color:#c75360;padding:2px;width:24px;height:24px;display:grid;place-items:center}
#schedulerCard .scheduler-remove svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#schedulerAddAction{margin-top:14px}#schedulerCard .scheduler-command-card{max-width:760px}#schedulerCard .scheduler-command-card h4{margin-bottom:14px}
#schedulerCard fieldset:disabled{opacity:.65}#schedulerCard .scheduler-raw{margin:14px 0 0;border:1px solid var(--sc-border);border-radius:7px;overflow:hidden;background:var(--sc-raw)}
#schedulerCard .scheduler-raw summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:var(--sc-surface);font-size:13px;list-style:none}
#schedulerCard .scheduler-raw summary::-webkit-details-marker{display:none}#schedulerCard .scheduler-raw summary span{font-weight:400;font-size:12px;color:var(--sc-muted)}
#schedulerCard .scheduler-raw textarea{display:block;border:0;border-radius:0;background:var(--sc-raw);padding:10px 12px;min-height:90px;resize:vertical}
#schedulerCard .scheduler-action-help{font-size:12px;margin:10px 0 0}#schedulerCard .scheduler-save-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;position:sticky;bottom:0;z-index:2;background:var(--sc-surface);border:1px solid var(--sc-border);border-radius:8px;padding:12px;margin-bottom:20px}
#schedulerCard .scheduler-save-bar>label{margin:0}#schedulerCard .scheduler-save-bar>label:first-child{flex:1;min-width:180px;max-width:360px}#schedulerCard .scheduler-save-bar .actions{margin:0 0 0 auto}
#schedulerCard .scheduler-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#schedulerCard #schedulerFolderDialog{width:min(640px,92vw);max-height:90vh;overflow:auto;background:var(--sc-surface);color:var(--sc-text);border:1px solid var(--sc-border);border-radius:10px;padding:20px}
#schedulerFolderDialog::backdrop{background:#0007}#schedulerFolders{display:grid;gap:5px;margin:12px 0}#schedulerFolders button{text-align:left;overflow-wrap:anywhere}
[data-content-theme=dark] #schedulerCard select{color-scheme:dark}
@media(max-width:1100px){#schedulerCard .scheduler-schedule-grid{grid-template-columns:minmax(0,1fr)}#schedulerActions{grid-template-columns:minmax(0,1fr)}#schedulerCard label.scheduler-toggle{justify-content:flex-start}}
@media(max-width:600px){#schedulerCard .scheduler-panel{padding:12px}#schedulerCard .scheduler-cron-controls{grid-template-columns:minmax(0,1fr)}#schedulerCard .scheduler-preview{justify-self:start}#schedulerCard .scheduler-action-fields{grid-template-columns:minmax(0,1fr)}#schedulerCard .scheduler-raw summary span{display:none}#schedulerCard .scheduler-save-bar{position:static}#schedulerCard .scheduler-save-bar>label:first-child{max-width:none;flex-basis:100%}#schedulerCard .scheduler-tabs button{padding:10px 8px}#schedulerCard .scheduler-toggle span{font-size:12px}}

#schedulerCard .scheduler-jobs-panel,#schedulerCard .scheduler-history-panel{padding:18px}
#schedulerCard .scheduler-panel th{background:var(--sc-selected);color:var(--sc-text);font-size:13px;font-weight:600;border-bottom-color:var(--sc-border)}
#schedulerCard .scheduler-panel td{font-size:13px;color:var(--sc-text);border-bottom-color:var(--sc-border);padding:9px 10px;vertical-align:middle}
#schedulerJobs table{min-width:980px}#schedulerLogs table{min-width:1040px}#schedulerCard .sc-badge{display:inline-block;border-radius:12px;padding:3px 10px;font-size:12px;line-height:1.35;white-space:nowrap}
#schedulerCard .sc-report{background:#b9dcff;color:#183f65}#schedulerCard .sc-command{background:#d8b9ef;color:#4f276f}#schedulerCard .sc-success{background:#d3efdf;color:#1b6545}#schedulerCard .sc-failed{background:#f9d8dc;color:#a62e3c}#schedulerCard .sc-running{background:#dbeaff;color:#225799}
[data-content-theme=dark] #schedulerCard .sc-success{background:#28694c;color:#d5f6e6}[data-content-theme=dark] #schedulerCard .sc-failed{background:#8e3440;color:#ffe4e8}[data-content-theme=dark] #schedulerCard .sc-running{background:#294d79;color:#d6e8ff}
#schedulerCard .sc-state{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}#schedulerCard .sc-state i{width:9px;height:9px;border-radius:50%;display:inline-block;background:#4eaf80}#schedulerCard .sc-paused i{background:#d9aa4d}
#schedulerCard .sc-schedule{white-space:nowrap}#schedulerCard .sc-schedule [tabindex]{color:var(--sc-muted);cursor:help}
#schedulerCard td.sc-row-actions{white-space:nowrap;max-width:none}#schedulerCard .sc-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 8px}
#schedulerCard .sc-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#schedulerCard .sc-text-button{background:transparent;border:0;color:var(--sc-accent);padding:0;text-decoration:underline;text-underline-offset:2px}
#schedulerCard .scheduler-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}#schedulerCard .scheduler-history-heading h3{margin:0}
#schedulerCard .scheduler-history-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:100%}#schedulerCard .scheduler-history-filters{display:flex;gap:6px;flex-wrap:wrap}
#schedulerCard .scheduler-history-filters button{background:var(--sc-selected);color:var(--sc-text);border:1px solid var(--sc-border);font-weight:400}#schedulerCard .scheduler-history-filters button[aria-pressed=true]{border-color:var(--sc-accent);box-shadow:inset 0 0 0 1px var(--sc-accent)}
#schedulerCard #schedulerHistorySearch{width:210px;max-width:100%}#schedulerCard .scheduler-history-note{font-size:12px;margin:10px 0 4px}
#schedulerCard details.sc-files{display:inline-block;margin:0 3px;vertical-align:middle}#schedulerCard .sc-files summary{padding:6px 10px;background:var(--sc-selected);border:1px solid var(--sc-accent);border-radius:6px;font-size:13px;font-weight:400;list-style:none}
#schedulerCard .sc-files summary::-webkit-details-marker{display:none}#schedulerCard .sc-files-menu{position:fixed;z-index:30;min-width:260px;width:min(600px,88vw);max-height:300px;overflow:auto;white-space:normal;border:1px solid var(--sc-accent);border-radius:7px;background:var(--sc-field);color:var(--sc-text);box-shadow:0 8px 25px #0005;padding:6px}
#schedulerCard .sc-files-menu button{display:block;text-align:left;width:100%;margin:0;padding:7px 8px;border:0;overflow-wrap:anywhere;background:transparent;color:var(--sc-accent);font-weight:400}
#schedulerCard #schedulerLogDialog{width:min(820px,92vw);max-height:85vh;overflow:auto;border:1px solid var(--sc-border);border-radius:10px;background:var(--sc-surface);color:var(--sc-text);padding:20px}#schedulerLogDialog::backdrop{background:#0007}#schedulerLogContent{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
@media(max-width:600px){#schedulerCard .scheduler-jobs-panel,#schedulerCard .scheduler-history-panel{padding:12px}#schedulerCard .scheduler-history-controls{gap:10px}#schedulerCard #schedulerHistorySearch{width:100%}}
#diskVolumes strong[data-level=warning]{color:#9a6200}#diskVolumes strong[data-level=critical]{color:#b44433}

/* Settings > Telemetry: server time status (release item 15). */
.server-time-status { display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 16px;margin:0 0 12px; }
.server-time-status dt { font-weight:600; }
.server-time-status dd { margin:0; }
/* Parameter Display: Today/Month/Year choices and period rows (derived values). */
.display-rules-table .display-period-choice{display:inline-flex;align-items:center;gap:3px;margin-right:8px;white-space:nowrap}.display-rules-table .display-period-choice input{width:auto;min-width:0;height:auto;padding:0}.display-rules-table .display-period-row td:first-child{padding-left:14px;color:#536b78}

.power-guard-notice,.power-guard-accept{margin:0 0 14px;padding:10px 14px;border:2px solid #dc2626;border-radius:8px;background:#fee2e2;color:#991b1b}.power-guard-accept p{margin:0 0 4px;font-weight:600}.power-guard-accept .actions{margin-top:6px}.power-guard-delay{display:flex;gap:8px;margin:0;padding:0;border:0;min-width:0}.power-guard-delay legend{padding:0;margin-bottom:4px}.power-guard-delay label{flex:1 1 0;min-width:0}.power-guard-banner.power-guard-urgent{font-size:1.15em;font-weight:700;border-width:3px;background:#dc2626;color:#fff;animation:none}.power-guard-banner.power-guard-urgent button{color:#fff}
/* Setup checklist (item 39). */
.setup-steps,.setup-checks{margin:12px 0;padding-left:22px;display:grid;gap:10px}.setup-checks{list-style:none;padding-left:0}
.setup-steps li,.setup-checks li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}.setup-steps li span.muted,.setup-checks li span.muted{flex:1 1 260px;font-size:12px}
.setup-steps li button{padding:6px 12px;font-size:12px}
.setup-warning{order:1;flex:1 1 100%;font-size:12px;padding:4px 10px;margin-left:80px;border-left:4px solid #c2410c;background:rgba(194,65,12,.10)}
.server-time-warning{margin:0 0 12px;padding:8px 12px;border-left:5px solid #c2410c;background:rgba(194,65,12,.10)}
.setup-mark{display:inline-block;min-width:68px;text-align:center;font-size:11px;font-weight:700;border-radius:12px;padding:3px 8px;border:1px solid #b45309;color:#92400e;background:#fef3c7}
.setup-mark[data-done=true]{border-color:#15803d;color:#166534;background:#dcfce7}
[data-content-theme=dark] .setup-mark{background:#3b2a0c;color:#fcd34d;border-color:#b45309}[data-content-theme=dark] .setup-mark[data-done=true]{background:#0f2e1c;color:#86efac;border-color:#15803d}
.setup-steps li[data-current=true]{outline:2px solid #2563eb;outline-offset:4px;border-radius:6px}.setup-current{font-size:11px;font-weight:700;color:#1d4ed8}.setup-missing{order:1;flex:1 1 100%;font-size:12px;padding-left:80px}.setup-steps li>button{margin-left:auto}@media(max-width:640px){.setup-missing{padding-left:0}}
.setup-next{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:12px 0;padding:10px 14px;border:1px solid #93c5fd;border-radius:8px;background:#eff6ff;color:#1e3a8a}.setup-next p{margin:0;flex:1 1 280px;min-width:0;overflow-wrap:anywhere}.setup-next .actions{display:flex;flex-wrap:wrap;gap:8px}.setup-next #setupNextMissing{order:1;flex:1 1 100%;margin:0;padding:0;border:0;background:none;font-size:12px;color:inherit}.setup-next .actions{margin-left:auto}
[data-content-theme=dark] .setup-next{background:#0f1f3d;color:#bfdbfe;border-color:#1d4ed8}[data-content-theme=dark] .setup-current{color:#93c5fd}
/* Weekly USB backup card: Prepare backup drive and Restore from this drive (item 40b). */
#usbBackupCard .usb-panel{margin-top:12px;padding:12px;border:1px solid #d5dfe7;border-radius:8px}
#usbBackupCard .usb-panel h3{margin:0 0 8px;font-size:15px}
#usbBackupCard .usb-panel .warning{margin:8px 0;padding:8px 12px;border-left:5px solid #c2410c;background:rgba(194,65,12,.10)}
#usbBackupCard .usb-drive{display:flex;gap:8px;align-items:flex-start;margin:6px 0;font-weight:400}
#usbBackupCard .usb-drive input{width:auto;margin-top:3px}
#usbBackupCard .usb-drive.refused{opacity:.7}
#usbBackupCard .usb-panel label input[type=text]{display:block;max-width:240px;margin-top:4px}
#usbBackupCard button.danger{background:#b42318;border-color:#b42318;color:#fff}
#usbBackupCard button.danger:disabled{opacity:.5}
[data-content-theme=dark] #usbBackupCard .usb-panel{border-color:#41546a}
[data-content-theme=dark] #usbBackupCard .usb-panel .warning{background:rgba(251,146,60,.16);border-left-color:#fb923c}#usbBackupCard #usbDriveProblem{margin:8px 0;padding:8px 12px;border-left:5px solid #c2410c;background:rgba(194,65,12,.10)}#usbBackupCard #usbDriveProblem p{margin:0 0 6px}[data-content-theme=dark] #usbBackupCard #usbDriveProblem{background:rgba(251,146,60,.16);border-left-color:#fb923c}

/* F18: System > Server time, time source choice */
.time-source-form fieldset{display:grid;gap:.4rem;border:0;padding:0;margin:.75rem 0}
.time-source-form label{display:flex;flex-direction:row;justify-content:flex-start;gap:.5rem;align-items:center;flex-wrap:wrap;margin:0;font-weight:400}
/* #serverTimeCard beats ":is(#settings,#system) input{width:100%}". */
#serverTimeCard .time-source-form label input[type=radio]{flex:none;width:auto;min-width:0;height:auto;margin:0}#serverTimeCard .time-source-form label input[type=text]{flex:0 1 260px;width:auto}
.time-source-form legend{font-weight:600;padding:0;margin-bottom:.25rem}
#serverTimeSource[data-ok="no"]{color:var(--danger,#b42318)}

/* Item 1: System > Diagnostics */
#diagnosticsCard .diagnostics-range{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;border:0;padding:0;margin:.75rem 0}
#diagnosticsCard .diagnostics-range legend{font-weight:600;padding:0;margin-bottom:.4rem;width:100%}
#diagnosticsCard .diagnostics-range label{display:flex;flex-direction:row;flex:none;gap:.4rem;align-items:center;margin:0;font-size:14px;white-space:nowrap}
#diagnosticsCard .diagnostics-range input{width:auto;flex:none;margin:0;padding:0}
#diagnosticsCard progress{width:100%;max-width:420px;height:12px;margin-top:10px}
/* IEC-104 signal options (A-21) */
#iecOptionsCard .iec-options-endpoint{margin-top:18px}
#iecOptionsCard .iec-options-endpoint h3{font-size:15px;margin:0 0 10px}
#iecOptionsCard .iec-timers{margin-bottom:12px;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr))}
#iecOptionsCard .iec-link-timers{margin-bottom:12px}
#iecOptionsCard .iec-link-timers summary{cursor:pointer;margin-bottom:8px}
#iecOptionsCard .table-wrap{overflow-x:auto}
#iecOptionsCard .iec-options-table input[type=number]{width:7rem}
#iecOptionsCard .iec-options-table input[type=checkbox]{width:auto}

/* VRTeX support over remote access (G2 Step B): banner on every page, Live logs card. */
.support-banner{position:sticky;top:8px;z-index:21;margin:16px 0;padding:10px 18px;border:2px solid #d97706;border-radius:8px;background:#fef3c7;color:#78350f;text-align:center}
#remoteSupportCard label.inline{display:flex;flex-direction:row;gap:.5rem;align-items:center;font-weight:600}#remoteSupportCard label.inline input{width:auto;margin:0}
.live-logs{max-height:420px;overflow:auto;margin:10px 0 0;padding:12px 16px;border-radius:8px;background:#0f2a35;color:#e2f3f7;font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;word-break:break-all}
