.device-history{overflow-wrap:anywhere;min-width:0;margin-block:1rem;line-height:1.6}.device-history h3{margin-block:1rem .5rem;font-size:1rem;line-height:1.5}.history-filters{flex-wrap:wrap;align-items:end;gap:.75rem;display:flex}.history-filters label{flex:12rem;gap:.25rem;min-width:0;display:grid}.history-filters input,.history-filters select,.history-filters textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit;padding:.5rem}.history-filters button,.device-history>button{font:inherit;white-space:normal;min-height:2.5rem;padding:.5rem .75rem}.history-table-scroll{border:1px solid #dfe7ef;border-radius:8px;max-width:100%;max-height:26rem;margin-block:.75rem;overflow:auto}.history-table-scroll table{border-collapse:collapse;width:100%}.history-table-scroll th,.history-table-scroll td{vertical-align:top;white-space:normal;min-width:9rem;padding:.5rem .75rem}.device-history figure{color:#286e86;margin:.75rem 0}.device-history svg{width:100%;height:auto;display:block}.commissioning-evidence{max-height:24rem}.device-history summary{cursor:pointer;padding-block:.5rem}.cabinet-history-page{align-self:stretch;min-width:0}.history-scope-summary{overflow-wrap:anywhere;color:#405a74;margin:.6rem 0 .25rem}.history-ownership{color:#60758c;margin-block:.25rem;font-size:.8rem}.history-ownership summary{cursor:pointer}.history-ownership p{max-width:75ch;margin:.35rem 0}.history-shortcuts,.history-query-actions,.history-pagination,.history-view-toolbar,.history-detail-toolbar{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.history-shortcuts{margin-bottom:.65rem}.device-history button{white-space:normal;overflow-wrap:anywhere;min-height:2.2rem;padding:.4rem .7rem;line-height:1.4}.history-query-form{background:#f7fafd;border:1px solid #dce6ef;border-radius:10px;grid-template-columns:repeat(2,minmax(150px,1fr)) minmax(180px,1.1fr);gap:.7rem;padding:.8rem;display:grid}.history-query-form label,.history-view-toolbar label,.history-detail-toolbar label{color:#46617b;gap:.25rem;min-width:0;font-size:.8rem;display:grid}.history-query-form input,.history-query-form select,.history-view-toolbar select,.history-detail-toolbar select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:2.5rem;font:inherit;color:#183954;background:#fff;border:1px solid #bfcfdf;border-radius:6px;padding:.5rem}.history-query-actions{grid-column:1/-1}.history-summary{grid-template-columns:minmax(200px,2fr) repeat(3,minmax(100px,1fr));gap:.65rem;margin-block:.85rem;display:grid}.history-summary>div{background:#f5f8fb;border-left:3px solid #9dbbd4;border-radius:5px;align-content:start;gap:.15rem;min-width:0;padding:.5rem .65rem;display:grid}.history-summary span,.history-summary strong{overflow-wrap:anywhere;line-height:1.5;display:block}.history-summary span{color:#56708a;font-size:.75rem}.history-summary strong{color:#163b58;font-size:.85rem;font-weight:600}.history-view-toolbar{justify-content:space-between}.history-view-toolbar label{grid-template-columns:auto minmax(140px,190px);align-items:center}.history-tabs{gap:.35rem;display:flex}.history-tabs button[aria-pressed=true]{color:#fff;background:#245c87;border-color:#245c87}.history-help{color:#577089;max-width:100ch;margin:.55rem 0;font-size:.78rem}.history-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:.8rem;display:grid}.history-chart-grid>.history-chart-card:last-child:nth-child(odd){grid-column:1/-1}.history-chart-card{background:#fff;border:1px solid #dce5ed;border-radius:10px;min-width:0;padding:.8rem;box-shadow:0 2px 5px #233c5610}.history-chart-card header{flex-wrap:wrap;justify-content:space-between;align-items:start;gap:.4rem;display:flex}.history-chart-card header>div{min-width:0}.history-chart-card h4{color:#173e5c;overflow-wrap:anywhere;margin:0;font-size:.95rem;line-height:1.5}.history-chart-card h4 small{font-size:.8rem;font-weight:400}.history-chart-card header span{color:#60758b;font-size:.72rem}.history-chart-actions{flex-wrap:wrap;gap:.3rem;display:flex}.history-chart-actions button{min-height:1.9rem;padding:.25rem .4rem;font-size:.7rem}.history-legend{flex-wrap:wrap;gap:.3rem .75rem;max-height:5.5rem;margin:.45rem 0;display:flex;overflow:auto}.history-legend span,.history-chart-inspector span{overflow-wrap:anywhere;align-items:baseline;gap:.3rem;min-width:0;font-size:.74rem;display:flex}.history-legend i,.history-chart-inspector i{border-radius:50%;flex:0 0 .5rem;width:.5rem;height:.5rem}.history-chart-canvas{touch-action:pan-y;width:100%;min-width:0}.history-chart-canvas svg{width:100%;overflow:hidden}.history-chart-canvas text{fill:#566b80;font:10px system-ui,sans-serif}.history-time-scrubber{color:#60748a;align-items:center;gap:.5rem;font-size:.7rem;display:flex}.history-time-scrubber input{flex:1;min-width:0;margin:.25rem 0}.history-chart-inspector{background:#f3f7fb;border-radius:6px;min-height:3.2rem;max-height:8rem;padding:.4rem .5rem;line-height:1.55;overflow:auto}.history-chart-inspector strong{margin-bottom:.15rem;font-size:.73rem;font-weight:600;display:block}.history-chart-card footer{color:#5b7187;overflow-wrap:anywhere;padding-top:.4rem;font-size:.7rem;line-height:1.5}.history-source-details{color:#526c85;font-size:.72rem}.history-source-details>summary{padding-block:.2rem}.history-source-details>p{overflow-wrap:anywhere;margin:.3rem 0}.history-empty{text-align:center;background:#f8fafc;border:1px dashed #b8c9d9;border-radius:8px;padding:1.25rem}.history-notice{background:#fff8ec;border:1px solid #ead5b0;border-radius:8px;margin-block:.6rem;padding:.6rem .75rem;font-size:.8rem}.history-gap-list{max-height:12rem;overflow:auto}.history-details,.history-export{border:1px solid #dce5ed;border-radius:8px;margin-top:.8rem;padding:.2rem .75rem}.history-details>summary,.history-export>summary{font-size:.85rem;font-weight:600}.history-detail-toolbar{justify-content:space-between}.history-detail-toolbar>span,.history-export p{color:#5c7186;font-size:.75rem}.history-table-scroll th{z-index:1;background:#edf3f8;position:sticky;top:0}.history-table-scroll td{font-size:.78rem}.history-reading-list{gap:.25rem;margin:0;display:grid}.history-reading-list>div{flex-wrap:wrap;justify-content:space-between;column-gap:.8rem;display:flex}.history-reading-list dt{color:#526b82}.history-reading-list dd{font-variant-numeric:tabular-nums;margin:0;font-weight:600}.history-pagination{justify-content:center;padding-block:.55rem;font-size:.8rem}@media (width<=1100px){.history-chart-grid{grid-template-columns:minmax(0,1fr)}.history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.history-query-form{grid-template-columns:minmax(0,1fr);padding:.65rem}.history-summary{gap:.4rem}.history-summary>div:first-child{grid-column:1/-1}.history-summary>div{padding:.4rem .5rem}.history-chart-card{padding:.6rem}.history-view-toolbar{align-items:stretch}.history-view-toolbar>label{grid-template-columns:auto minmax(0,1fr);width:100%}.history-query-actions button{flex:1}.history-table-scroll{max-height:22rem}}.device-history input[type=checkbox]{vertical-align:middle;width:1rem;height:1rem;margin-right:.5rem}.automation-panel fieldset{border:1px solid #cbd5e1;border-radius:.5rem;min-width:0;margin-block:.75rem;padding:.75rem}.automation-panel legend{padding-inline:.3rem;font-size:.95rem;line-height:1.5}.automation-panel .table-wrap{max-width:100%;overflow:auto}.automation-panel button{white-space:normal;margin:.25rem;line-height:1.5}.automation-panel details{border-bottom:1px solid #e2e8f0;padding:.5rem}.automation-panel>form{background:#f8fafc;border-radius:.5rem;min-width:0;padding:.75rem}.automation-panel .section-bar{flex-wrap:wrap}@media (width<=600px){.automation-panel .section-bar h3{flex-basis:100%}}.automation-panel{min-width:0}.automation-panel small{display:block}.automation-panel button{justify-content:center;align-items:center;gap:.4rem;display:inline-flex}.automation-toolbar{gap:.65rem;margin:.75rem 0;display:grid}.automation-filter-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:.65rem;display:grid}.automation-toolbar label{gap:.3rem;min-width:0;display:grid}.automation-toolbar select,.automation-toolbar input,.automation-editor input,.automation-editor select{box-sizing:border-box;width:100%;min-width:0}.automation-search-input{align-items:center;min-width:0;display:flex;position:relative}.automation-search-input svg{color:var(--text-muted,#52606d);pointer-events:none;position:absolute;left:.65rem}.automation-search-input input{padding-left:2rem}.automation-filter-summary{min-height:2rem;color:var(--text-muted,#52606d);justify-content:flex-end;align-items:center;gap:.75rem;display:flex}.automation-clear-filters{white-space:nowrap}.automation-copy,.automation-editor,.automation-runs{border-top:1px solid var(--border,#d6dde4);margin-top:1rem;padding-top:1rem}.automation-copy-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem 1rem;display:grid}.automation-copy-grid label,.automation-switch{align-items:center;gap:.5rem;min-width:0;display:flex}.automation-copy-grid input,.automation-switch input{flex:none;width:1rem;height:1rem}.automation-editor-header,.automation-section-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.automation-editor-header h3,.automation-section-heading h3,.automation-section-heading h4,.automation-editor-section>h4{margin:0}.automation-editor-section{border-bottom:1px solid var(--border,#d6dde4);padding:1rem 0}.automation-scope-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin-top:.75rem;display:grid}.automation-scope-grid label{align-content:start;gap:.3rem;min-width:0;display:grid}.automation-scope-grid label>span{color:var(--text-muted,#52606d);font-size:.84rem}.automation-scope-grid select{box-sizing:border-box;width:100%;min-width:0}.automation-scope-pending{color:var(--text-muted,#52606d);background:var(--surface-subtle,#f6f8fa);border:1px solid var(--border,#d6dde4);border-radius:6px;margin-top:.75rem;padding:.8rem}.automation-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:.75rem;display:grid}.automation-grid label,.automation-condition-row label,.automation-action-row label,.automation-schedule-grid>label{align-content:start;gap:.3rem;min-width:0;display:grid}.automation-grid label>span,.automation-condition-row label>span,.automation-action-row label>span,.automation-schedule-grid label>span,.automation-toolbar label>span{color:var(--text-muted,#52606d);font-size:.84rem}.automation-rows{gap:.65rem;margin-top:.75rem;display:grid}.automation-condition-row,.automation-action-row{background:var(--surface-subtle,#f6f8fa);border:1px solid var(--border,#d6dde4);border-radius:6px;align-items:end;gap:.65rem;padding:.75rem;display:grid}.automation-condition-row{grid-template-columns:minmax(11rem,1.5fr) minmax(9rem,1.2fr) minmax(6rem,.65fr) minmax(7rem,.7fr) minmax(7rem,.7fr) 2.5rem}.automation-action-row{grid-template-columns:minmax(12rem,1.6fr) minmax(10rem,1.2fr) minmax(7rem,.7fr) 2.5rem}.automation-empty-row{color:var(--text-muted,#52606d);background:var(--surface-subtle,#f6f8fa);padding:.8rem}.automation-inline-warning{color:#9a6700;font-size:.78rem;line-height:1.35;display:inline-block}.icon-only-button{flex:none;width:2.5rem;height:2.5rem;padding:0}.automation-schedule-grid{grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,2fr);align-items:start;gap:.75rem;margin-top:.75rem;display:grid}.automation-weekdays{border:1px solid var(--border,#d6dde4);border-radius:6px;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem;min-width:0;margin:0;padding:.55rem .7rem .7rem;display:grid}.automation-weekdays legend{color:var(--text-muted,#52606d);padding:0 .25rem;font-size:.84rem}.automation-weekdays label{white-space:nowrap;justify-content:center;align-items:center;gap:.25rem;display:flex}.automation-weekdays input{width:1rem;height:1rem}.automation-advanced{border-bottom:1px solid var(--border,#d6dde4);padding:.85rem 0}.automation-advanced summary{cursor:pointer;font-weight:600}.automation-execution-hint{color:var(--text-muted,#52606d);margin:.65rem 0 0}.automation-fixed-value{box-sizing:border-box;border:1px solid var(--border,#d6dde4);background:var(--surface-subtle,#f6f8fa);width:100%;min-height:2.35rem;color:var(--text,#17212b);border-radius:4px;align-items:center;padding:.5rem .65rem;font-weight:600;display:flex}.automation-editor-error{color:#8a1c13;background:#fff1f0;border:1px solid #b42318;border-left-width:4px;border-radius:6px;margin-top:1rem;padding:.75rem .9rem;font-weight:600}.automation-editor-error:focus{outline-offset:2px;outline:2px solid #b42318}.automation-form-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.65rem;padding-top:1rem;display:flex}.automation-form-actions .automation-switch{margin-right:auto}.automation-runs details{border-bottom:1px solid var(--border,#d6dde4);padding:.65rem 0}@media (width<=1500px){.automation-filter-grid,.automation-scope-grid,.automation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.automation-condition-row{grid-template-columns:repeat(3,minmax(0,1fr)) 2.5rem}.automation-condition-row label:nth-child(4){grid-area:2/1}.automation-condition-row label:nth-child(5){grid-area:2/2}.automation-condition-row .icon-only-button{grid-area:1/4}}@media (width<=900px){.automation-filter-grid,.automation-scope-grid,.automation-grid,.automation-copy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-condition-row,.automation-action-row{grid-template-columns:repeat(2,minmax(0,1fr)) 2.5rem}.automation-condition-row .icon-only-button,.automation-action-row .icon-only-button{grid-area:1/3}.automation-schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-weekdays{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=560px){.automation-filter-grid{grid-template-columns:minmax(0,1fr)}.automation-filter-summary{justify-content:space-between}.automation-grid,.automation-scope-grid,.automation-copy-grid,.automation-condition-row,.automation-action-row,.automation-schedule-grid{grid-template-columns:minmax(0,1fr)}.automation-grid>label,.automation-copy-grid>label,.automation-condition-row>label,.automation-action-row>label,.automation-schedule-grid>label,.automation-weekdays{grid-column:1}.automation-condition-row .icon-only-button,.automation-action-row .icon-only-button{grid-area:auto/1;justify-self:end}.automation-condition-row label:nth-child(4),.automation-condition-row label:nth-child(5){grid-area:auto/1}.automation-weekdays{grid-template-columns:repeat(4,minmax(0,1fr))}}
