/* PlantReach operational workspace. Shared tokens retain all existing forms. */
:root{--bg:#fff;--panel:#fff;--panel2:#f7f8fa;--line:#eceef1;--fg:#353b43;--muted:#747e89;--accent:#006fff;--accent2:#006fff;--ok:#25854c;--warn:#a4670b;--bad:#ce4048;--card:#fff;--danger:#ce4048;--font:Arial,'Segoe UI',sans-serif}
body{font-size:13px;background:#fff}button,input,select,textarea{font:inherit}button,a,input,select,textarea{accent-color:var(--accent)}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:var(--accent);text-decoration:none}svg{flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
header.top{height:50px;padding:0 20px 0 15px;gap:9px;background:#f5f6f8;border:0;box-shadow:0 1px 0 var(--line);backdrop-filter:none;z-index:30}header.top .logo{height:23px;width:23px}header.top .brand{font-size:13px;font-weight:600;color:#66717d;letter-spacing:0}.workspace-name{margin-left:14px;border-left:1px solid #e0e4e9;padding:16px 20px;color:var(--accent);height:50px;white-space:nowrap}.workspace-name svg{vertical-align:middle;margin-right:8px}.workspace-picker{max-width:190px;border:0;background:transparent;color:#626d79;font-size:12px;padding:8px;cursor:pointer}.searchbox{padding:5px 10px;border:0;border-radius:4px;background:#eaedf1;max-width:230px}.searchbox input{font-size:12px;min-width:0;width:100%}.avatar{width:28px;height:28px;border-radius:5px;font-size:11px;background:#e8edf2;color:#637183}.avatar-button{padding:0}#usermenu{background:#fff!important;border-radius:5px!important;box-shadow:0 8px 24px #172b4d18!important}.umitem:hover{background:var(--panel2)}
main{max-width:none;margin:0;padding:26px 28px 60px 78px;width:100%;min-width:0}.authenticated main{min-height:calc(100dvh - 50px)}.fleet-page main{padding:0 0 30px 50px}nav.tabs{position:fixed;inset:50px auto 0 0;width:50px;display:flex;flex-direction:column;justify-content:flex-start;gap:2px;padding:6px 0;background:#fff;border:0;border-right:1px solid var(--line);backdrop-filter:none;z-index:25}nav.tabs a{position:relative;flex:0 0 46px;min-height:46px;max-width:none;width:49px;display:flex;flex-direction:column;justify-content:center;padding:0;gap:0;border-radius:0;font-size:0;color:#808994}nav.tabs a svg{width:20px;height:20px;stroke-width:1.4}nav.tabs a.active{background:#f0f7ff;color:var(--accent)}nav.tabs a:hover{background:#f6f8fa}nav.tabs a:hover:after,nav.tabs a:focus-visible:after{content:attr(aria-label);position:absolute;left:56px;background:#303945;color:#fff;padding:7px 10px;font-size:12px;border-radius:4px;white-space:nowrap;box-shadow:0 3px 8px #0001}#tab-provision{margin-top:auto}.rail-bottom{margin-top:auto}.workspace-footer{position:fixed;bottom:0;left:50px;right:0;height:30px;background:#fafbfc;border-top:1px solid var(--line);color:#8b939d;display:flex;align-items:center;gap:12px;padding:0 18px;font-size:11px;z-index:20}.workspace-footer .footer-brand{margin-left:auto;color:#606c79;font-weight:600}
.card{border-radius:5px;padding:20px;border-color:var(--line);box-shadow:none}.card h2{font-size:13px;font-weight:600;text-transform:none;letter-spacing:0;color:var(--fg)}.rowlist{gap:0}.rowitem{border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;min-height:49px;padding:10px 8px}.rowitem:hover{background:#f8fafc}.rowitem .ic{width:28px;height:28px;border-radius:3px;background:transparent;color:#8994a2}.rowitem .t{font-size:13px;font-weight:400}.rowitem .s{font-size:12px}.stat{background:#fff;border:0;border-right:1px solid var(--line);border-radius:0;padding:10px 20px}.stat:last-child{border-right:0}.stat .k{font-size:11px;text-transform:none;letter-spacing:0;font-weight:400}.stat .v{font-size:25px;font-weight:400}.stats{gap:0}.dot{height:6px;width:6px}.dot.on{box-shadow:none}.badge{font-size:10px;font-weight:400;border-radius:3px}.status-label{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.status-label.online .dot{background:#55bd79}.status-label.offline .dot{background:#b6bdc5}.status-label.disabled .dot{background:#d69b46}
button.primary,button.ghost,button.danger{border-radius:4px;min-height:32px;padding:7px 12px;font-size:12px;font-weight:400;background:#fff;border:1px solid var(--line);color:var(--accent)}button.primary:hover,button.ghost:hover{background:#f1f7ff;border-color:#cfdef4}button.primary.solid{background:var(--accent);color:#fff;border-color:var(--accent)}button.danger{color:var(--bad)}.field label{font-size:12px;font-weight:400;letter-spacing:0;text-transform:none}.field input,.field select{border-radius:4px;background:#fff;font-size:13px;min-height:37px;padding:9px 10px}.pagehead h1{font-size:23px;font-weight:400;letter-spacing:0}.pagehead p{font-size:13px}.hint{background:#f5f9ff;border-color:#dfebfa;color:#64778f;border-radius:4px;font-size:12px}.mono{font-size:12px;color:#707d8d}.plc-ip{background:#f5faf7;border:0;color:#25854c;border-radius:3px;font-size:12px;font-weight:400}.copy{height:28px;width:28px;border-radius:4px;background:#fff}.eyebrow{font-weight:400}.toast{background:#f2faf5;color:#287044;border-color:#d3eadc;border-radius:4px;bottom:45px}.toast.err{background:#fff4f4;color:#ad3540;border-color:#f0d7d9}.login{margin:15vh auto 0;padding:32px;max-width:380px}.login h2{font-size:23px;margin:12px 0 8px}.login .login-intro{color:var(--muted);line-height:1.6;margin-bottom:25px}.login-brand{color:var(--accent);font-size:13px;font-weight:600}.login button{margin-top:10px;min-height:38px}.login-footer{font-size:11px;text-align:center;color:var(--muted);margin-top:25px}.login-page main{padding:16px}.login-page .workspace-footer{display:none}
.fleet-layout{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:calc(100dvh - 80px)}.fleet-sidebar{border-right:1px solid var(--line);padding:12px;background:#fff}.fleet-searchline{display:flex;gap:7px;align-items:center;margin-bottom:9px}.fleet-search{display:flex;align-items:center;gap:7px;background:#f5f6f8;border-radius:4px;padding:7px 9px;min-width:0;flex:1;color:#85909c}.fleet-search input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-size:12px}.view-switch{display:flex;gap:1px}.icon-button{display:inline-grid;place-items:center;width:29px;height:29px;border:1px solid var(--line);background:white;color:#9099a4;border-radius:3px;padding:0}.icon-button.active{color:var(--accent);background:#eff6ff}.fleet-sidebar>.primary{width:100%;text-align:left;margin-bottom:7px;display:flex;gap:8px;align-items:center}.filter-section{padding:15px 8px;border-bottom:1px solid var(--line)}.filter-section summary{font-size:12px;color:#303942;cursor:pointer;list-style:none;margin-bottom:10px;display:flex;justify-content:space-between}.filter-section summary:after{content:'⌃';color:#a3aab2}.filter-section:not([open]) summary{margin:0}.filter-section:not([open]) summary:after{content:'⌄'}.filter-option{display:flex;align-items:center;gap:8px;min-height:28px;font-size:12px;color:#66727f}.filter-option input{width:15px;height:15px;margin:0}.filter-count{margin-left:auto;color:#a0a8b2;font-size:11px}.filter-select{width:100%;background:white;border:1px solid var(--line);padding:7px;color:#64717f;border-radius:3px;font-size:12px}.filter-actions{padding:17px 8px;display:flex;flex-direction:column;align-items:flex-start;gap:13px}.text-button{border:0;background:none;color:var(--accent);padding:0;font-size:12px}.fleet-content{min-width:0;overflow:hidden}.fleet-toolbar{height:46px;display:flex;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid var(--line)}.fleet-toolbar h1{font-size:13px;font-weight:600;margin:0}.fleet-toolbar .count{font-size:11px;color:#99a1ac}.fleet-toolbar .spacer{flex:1}.table-scroll{overflow-x:auto;width:100%}.fleet-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}.fleet-table th{font-weight:600;color:#303841;height:38px;background:#fff;padding:0 15px;border-bottom:1px solid var(--line)}.fleet-table td{height:43px;padding:0 15px;border-bottom:1px solid #f0f1f3;color:#64707d;max-width:220px;overflow:hidden;text-overflow:ellipsis}.fleet-table tbody tr:hover td{background:#f6f9fc}.fleet-table .device-name{color:#414c58;font-weight:400}.fleet-table .device-icon{width:45px;padding:0 10px 0 20px;color:#919ba6}.fleet-table .device-icon svg{width:17px;height:22px;vertical-align:middle}.sort-button{color:inherit;background:none;border:0;padding:10px 0;font-size:12px}.sort-arrow{font-size:9px;color:#9da6b0;margin-left:6px}.fleet-table .number{font-variant-numeric:tabular-nums}.fleet-table .traffic{color:#54a96b}.row-link{border:0;background:none;padding:0;color:inherit;text-align:left;font:inherit;cursor:pointer}.row-link:hover{color:var(--accent)}.fleet-empty{text-align:center;padding:90px 20px;color:var(--muted)}.fleet-empty h2{font-weight:400;font-size:17px;color:#495664;margin-bottom:8px}.fleet-empty p{line-height:1.7}.fleet-empty button{margin-top:17px}.fleet-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:14px 20px;color:#939ca6;font-size:11px}.fleet-grid{padding:20px;display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:16px}.fleet-grid .card{margin:0;padding:18px}.device-tile-top{display:flex;justify-content:space-between;margin-bottom:20px}.device-tile-top svg{width:30px;height:35px;color:#8594a5}.device-tile-name{font-size:14px;color:#3c4753;margin-bottom:6px}.device-tile-meta{font-size:12px;line-height:1.8;color:#87929e}.fleet-layout.filters-collapsed{grid-template-columns:minmax(0,1fr)}.filters-collapsed .fleet-sidebar{display:none}.filter-toggle{display:none}.filters-collapsed .filter-toggle{display:inline-grid}.fleet-summary{display:flex;gap:6px;align-items:center}.table-panel{padding:0;overflow:hidden}.table-panel .panel-heading{padding:16px 20px;margin:0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.table-panel .fleet-table td{height:48px}.table-panel .table-search{border:1px solid var(--line);padding:7px 10px;border-radius:4px;max-width:220px}.table-panel .panel-heading h2{margin:0}
.sheet{z-index:40}.sheet .backdrop{background:#1a293b15}.sheet .panel{left:auto;right:0;top:50px;bottom:30px;transform:none;width:450px;max-width:100%;max-height:none;border-radius:0;border:0;border-left:1px solid var(--line);box-shadow:-5px 0 24px #20354c09;padding:22px}.sheet-title{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.sheet-title h2{font-size:17px;font-weight:400}.sheet-close{height:27px;width:27px;border:0;background:#f5f6f8;border-radius:3px;font-size:18px}.sheet h2{font-weight:400;font-size:14px}.drawer-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin:18px 0}.drawer-tabs button{border:0;border-bottom:2px solid transparent;background:none;color:#8a939e;font-size:12px;padding:10px 0}.drawer-tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}.detail-hero{display:flex;align-items:center;gap:14px;margin:25px 0}.detail-hero svg{width:42px;height:48px;color:#8798ab}.detail-hero .device-name{font-size:17px;margin-bottom:7px}.connection-path{display:flex;align-items:center;justify-content:space-between;padding:16px 0;margin:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px;color:#8491a0;gap:8px}.connection-path span{text-align:center;line-height:1.8}.connection-path b{font-weight:400;color:#3d4c5d}.detail-section{margin:22px 0}.detail-section h3{font-size:12px;font-weight:600;margin-bottom:14px}.kv{font-size:12px;gap:13px 20px}.kv>span:nth-child(even){overflow-wrap:anywhere}.drawer-empty{padding:30px 8px;text-align:center;line-height:1.7;color:var(--muted)}.column-options{display:grid;gap:13px;margin-top:20px}.column-options label{display:flex;gap:10px;align-items:center}.access-card{border-left:2px solid var(--accent)}pre.config{background:#f7f9fb;color:#617186;border-radius:4px}.table-title{display:flex;align-items:center;gap:12px;margin:0 0 22px}.table-title h1{font-size:21px;font-weight:400}.table-title .grow{flex:1}
@media(min-width:1500px){.fleet-layout{grid-template-columns:284px minmax(0,1fr)}.fleet-table td,.fleet-table th{padding-left:19px;padding-right:19px}}
@media(max-width:1050px){.workspace-name{padding:16px 10px;margin-left:2px}.workspace-picker{max-width:140px}.fleet-layout{grid-template-columns:230px minmax(0,1fr)}header.top .searchbox{max-width:170px}.fleet-table td,.fleet-table th{padding-left:12px;padding-right:12px}}
@media(max-width:767px){header.top{height:50px;padding:0 12px}.workspace-name{font-size:12px;padding:16px 9px}.workspace-name svg{display:none}header.top .searchbox{display:none}.workspace-picker{max-width:115px;font-size:11px}.workspace-footer{display:none}nav.tabs{inset:auto 0 0;width:100%;height:62px;flex-direction:row;overflow-x:auto;border-right:0;border-top:1px solid var(--line);padding:4px 3px;background:#fff}nav.tabs a{flex:1 0 54px;width:auto;max-width:none;min-height:50px;font-size:9px;gap:5px}nav.tabs a svg{width:18px;height:18px}nav.tabs a:after{display:none}#tab-provision{margin-top:0}main,.fleet-page main{padding:16px 12px 78px}.fleet-page main{padding:0 0 72px}.fleet-layout{display:block;min-height:calc(100dvh - 112px)}.fleet-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:10px 12px}.fleet-searchline{margin:0}.fleet-sidebar>.primary,.fleet-sidebar .filter-section,.fleet-sidebar .filter-actions{display:none}.fleet-sidebar.mobile-expanded .filter-section{display:block}.fleet-sidebar.mobile-expanded .filter-actions{display:flex}.fleet-sidebar.mobile-expanded>.primary{display:flex;margin-top:12px}.filter-toggle{display:inline-grid}.fleet-toolbar{padding:0 12px}.fleet-toolbar .count{font-size:10px}.sheet .panel{inset:0;width:100%;max-height:100dvh;padding:20px 18px;border:0}.sheet .backdrop{background:#fff}.fleet-grid{padding:12px}.stats{grid-template-columns:repeat(2,1fr);row-gap:20px}.stat:nth-child(2){border-right:0}.card{padding:16px}.table-panel{padding:0}.table-panel .panel-heading{gap:10px;flex-wrap:wrap}.table-panel .table-search{max-width:150px}.login{margin-top:10vh}.table-title{margin-bottom:16px}.table-title h1{font-size:19px}}
@media(max-width:767px){.workspace-name{display:none}header.top .brand{white-space:nowrap}.workspace-picker{max-width:145px}header.top{flex-shrink:0}.sheet .panel{padding-bottom:30px}.authenticated main{min-height:calc(100dvh - 112px)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
/* PLC inventory inputs use the same spacing as the rest of the setup form. */
.field textarea { width:100%; box-sizing:border-box; resize:vertical; min-height:110px; padding:10px 12px; border:1px solid var(--line, #dfe3e8); border-radius:4px; font:13px var(--mono, monospace); color:var(--text, #333); background:#fff; }
 .build-version{position:fixed;right:18px;bottom:8px;z-index:26;font-size:11px;color:var(--muted);background:var(--bg);padding:2px 5px;border-radius:3px;max-width:calc(100vw - 36px)}
@media(max-width:760px){.authenticated .build-version{bottom:66px;right:12px;font-size:10px}}
.sidebar-account{margin-top:auto;flex:0 0 50px;display:flex;align-items:center;justify-content:center;width:49px}.sidebar-account .avatar{width:30px;height:30px;border-radius:50%;color:var(--accent);background:#eef5ff}.sidebar-account #usermenu{position:fixed;left:58px;bottom:38px;top:auto;right:auto;width:260px;max-width:calc(100vw - 76px);padding:6px;border:1px solid var(--line);background:#fff;z-index:60}.sidebar-account .umitem{display:block;width:100%;border:0;background:transparent;color:var(--fg);text-align:left;font:inherit;border-radius:4px}.sidebar-account #um-email{overflow-wrap:anywhere}#tab-provision{margin-top:0}#ac-email{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--fg)}
@media(max-width:767px){nav.tabs{padding-left:52px}.sidebar-account{position:fixed;left:0;bottom:4px;height:54px;margin:0;background:#fff;border-right:1px solid var(--line)}.sidebar-account #usermenu{left:8px;bottom:70px;max-width:calc(100vw - 16px)}}
/* Shared CRUD actions: consistent targets and tooltips outside scroll containers. */
.crud-action{display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle;width:34px!important;min-width:34px;height:34px;padding:7px!important;margin-left:2px;margin-right:2px;border:1px solid transparent!important;border-radius:7px;color:#68788c;background:transparent;text-decoration:none;cursor:pointer;flex-shrink:0}
.crud-action svg{width:19px;height:19px;pointer-events:none}
.crud-action:hover{color:var(--accent);background:#edf5ff;border-color:#d5e7ff!important}
.crud-action[data-crud-action="delete"]:hover{color:#c93232;background:#fff0f0;border-color:#ffd5d5!important}
.crud-action:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.crud-tooltip{position:fixed;z-index:1000;max-width:calc(100vw - 16px);padding:7px 11px;border-radius:6px;background:#263447;color:#fff;box-shadow:0 3px 12px #0002;font-size:12px;line-height:1.4;pointer-events:none;white-space:nowrap}
.crud-tooltip[hidden]{display:none}
@media(pointer:coarse){.crud-action{width:44px!important;min-width:44px;height:44px}}
/* Downloads: focused product card, comfortable spacing, separate engineer route. */
.downloads-page{max-width:1160px;margin:0 auto;padding:4px 8px 36px;color:var(--fg)}
.downloads-heading{margin-bottom:30px}.downloads-heading h1{font-size:24px;font-weight:500;letter-spacing:-.45px;margin:0 0 10px}.downloads-heading p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.downloads-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:26px;align-items:stretch}
.download-product{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 3px 14px #22334a04}
.download-product-top{display:flex;justify-content:space-between;align-items:flex-start;padding:32px 32px 24px}
.download-app-icon{width:68px;height:68px;display:grid;place-items:center;border-radius:16px;background:#edf5ff;color:#2681df}.download-app-icon svg{width:43px;height:43px}
.download-platform{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);padding:6px 10px;border-radius:6px;color:#647387;font-size:12px}.download-platform svg{width:15px;height:15px}
.download-product-copy{padding:0 32px}.download-eyebrow{font-size:10px;font-weight:600;letter-spacing:1.25px;color:#7d8a9a;margin:0 0 10px}.download-product-copy h2{font-size:25px;font-weight:500;letter-spacing:-.5px;margin:0 0 14px;color:#304154}.download-product-copy>p:last-child{font-size:14px;line-height:1.8;max-width:470px;margin:0;color:#768396}
.download-features{display:flex;flex-direction:column;gap:12px;padding:24px 32px 30px;font-size:13px;color:#576b80}.download-features>span{display:flex;gap:10px;align-items:center}.download-features>span>span{color:#299681}
.download-product-footer{padding:25px 32px 27px;border-top:1px solid var(--line);background:#fafcfe}.download-primary.primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 20px;border:1px solid #2485e8;background:#2485e8;color:#fff;border-radius:7px;font-size:13px;font-weight:500;min-height:44px;box-shadow:0 2px 4px #2485e81a}.download-primary.primary:hover{background:#1676d8;border-color:#1676d8}.download-primary svg{width:18px;height:18px}.download-primary:disabled{opacity:.65}.download-file-meta{display:block;font-size:11px;color:#8b96a4;margin-top:12px}.download-status{font-size:12px;line-height:1.6;margin:12px 0 0;color:#4d6d8b}.download-status:empty{display:none}
.download-guide{padding:30px 28px;background:#f8fafc;border:1px solid #edf0f4;border-radius:12px}.download-guide h2{font-size:16px;font-weight:500;margin:0 0 10px;color:#3b4e62}.download-guide-intro{font-size:13px;line-height:1.7;color:#8591a0;margin:0 0 30px}.download-steps{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:28px}.download-steps li{display:flex;gap:15px;align-items:flex-start}.download-step-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid #dce6ef;border-radius:50%;background:#fff;color:#5981a7;font-size:12px}.download-steps h3{font-size:13px;font-weight:500;margin:4px 0 8px;color:#4d6075}.download-steps p{font-size:12px;line-height:1.85;color:#8290a0;margin:0}.download-steps strong{font-weight:500;overflow-wrap:anywhere}
.download-engineering{display:flex;gap:18px;align-items:center;padding:24px 28px;margin-top:26px;border:1px solid var(--line);border-radius:10px;background:#fff}.download-engineering-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:10px;background:#f4f7fa;color:#7690a7}.download-engineering-icon svg{width:23px;height:23px}.download-engineering h2{font-size:14px;font-weight:500;margin:0 0 7px;color:#4d6075}.download-engineering p{font-size:12px;line-height:1.7;color:#8290a0;margin:0}.download-engineering-link{display:inline-flex;gap:12px;align-items:center;white-space:nowrap;font-size:13px;color:var(--accent);text-decoration:none;margin-left:auto;padding:10px 0 10px 14px}.download-engineering-link:hover{text-decoration:underline}
@media(max-width:900px){.downloads-grid{grid-template-columns:1fr}.downloads-page{max-width:660px;padding:0 0 24px}.download-engineering{flex-wrap:wrap}.download-engineering-link{margin-left:60px;padding:0}.download-guide{padding:26px}.download-steps{gap:22px}}
@media(max-width:480px){.downloads-heading{margin-bottom:22px}.download-product-top{padding:24px 22px 20px}.download-product-copy{padding:0 22px}.download-product-copy h2{font-size:23px}.download-features{padding:22px}.download-product-footer{padding:22px}.download-primary.primary{width:100%}.download-guide{padding:24px 22px}.download-engineering{padding:22px;gap:12px}.download-engineering>div:nth-child(2){flex:1;min-width:160px}.download-engineering-link{margin-left:54px}}
/* Details are non-modal: outside targets receive their original click. */
.sheet{pointer-events:none}.sheet .backdrop{pointer-events:none;background:transparent}.sheet .panel{pointer-events:auto}
/* Consistent detail panels and forms across the workspace. */
.sheet .panel{width:510px;padding:28px 28px 36px;background:#fff;border-left:1px solid #e4eaf0;box-shadow:-8px 0 32px #20354c0c;font-size:13px;line-height:1.6;scrollbar-width:thin;scrollbar-color:#d7e0e8 transparent}
.sheet .sheet-title{position:sticky;top:-28px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-28px -28px 26px;padding:23px 28px;background:#fff;border-bottom:1px solid #eaf0f5}
.sheet .sheet-title h2{font-size:20px!important;font-weight:500;line-height:1.4;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}
.sheet .sheet-close{flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;border-radius:7px;background:#f4f7fa;color:#7b8c9e;font-size:21px;line-height:1;margin:0;padding:0}.sheet .sheet-close:hover{background:#eaf0f6;color:#344d66}
.sheet h2{font-size:15px;font-weight:500;line-height:1.5;margin:26px 0 16px;color:#384e64}.sheet h3{font-size:13px;line-height:1.5;font-weight:500;color:#4a6075;margin:0 0 14px}.sheet p{line-height:1.8;color:#748395;margin:12px 0 18px}
.sheet .kv{display:grid;grid-template-columns:115px minmax(0,1fr);gap:14px 18px;font-size:13px;line-height:1.55;padding:20px;background:#f8fafc;border:1px solid #edf1f5;border-radius:9px;margin:0 0 22px}.sheet .kv .k{font-size:12px;color:#8b98a7}.sheet .kv>span:nth-child(even){color:#4e647a;overflow-wrap:anywhere}
.sheet .field{margin:0 0 20px}.sheet .field label{display:block;font-size:12px;font-weight:500;color:#657a90;margin-bottom:8px}.sheet input:not([type="checkbox"]):not([type="radio"]),.sheet select,.sheet textarea{box-sizing:border-box;width:100%;min-height:42px;padding:10px 12px!important;border:1px solid #dfe7ee!important;border-radius:7px!important;background:#fff!important;color:#415a72!important;font:13px/1.5 var(--sans,Arial,sans-serif)}.sheet textarea{min-height:100px;resize:vertical}.sheet input:focus,.sheet select:focus,.sheet textarea:focus{outline:2px solid #2689ee22;border-color:#7bb3eb!important}.sheet input:disabled,.sheet select:disabled{background:#f7f9fb!important;color:#9aa6b3!important}.sheet input[type="checkbox"]{accent-color:#2685df;width:15px;height:15px;vertical-align:middle;margin-right:7px}
.sheet .primary{min-height:40px;padding:10px 17px;border-radius:7px;background:#2685df;border:1px solid #2685df;color:#fff;font-size:12px;font-weight:500}.sheet .primary:hover{background:#1776cc}.sheet .primary:disabled{opacity:.45;cursor:not-allowed}.sheet .ghost:not(.crud-action){padding:8px 13px;min-height:36px;border:1px solid #e1e8ee;border-radius:6px;background:#fff;color:#647c92;font-size:12px}.sheet .ghost:not(.crud-action):hover{background:#f5f9fc;border-color:#cbd9e6}.sheet .crud-action{margin-top:0!important}
.sheet .hint,.sheet .role-note{padding:14px 16px;border:1px solid #e5edf5;border-radius:8px;background:#f7faff;color:#7c8da0;font-size:12px;line-height:1.8;margin-top:18px}.sheet .hint:empty{display:none}.sheet .detail-section{margin:26px 0}.sheet .drawer-tabs{gap:22px;margin:0 0 26px}.sheet .drawer-tabs button{font-size:12px;padding:12px 0}.sheet .detail-hero{margin:8px 0 24px;gap:18px}.sheet .detail-hero .device-name{font-size:20px}.sheet .connection-path{padding:20px 0;margin:22px 0;line-height:1.7}.sheet ol{padding-left:22px;margin:18px 0 24px}.sheet ol li{padding-left:4px;margin-bottom:14px;color:#647b90;line-height:1.8}.sheet details{margin-top:24px;padding:16px;border:1px solid #e5ebf1;border-radius:8px}.sheet summary{cursor:pointer;color:#607991;font-size:12px}
.sheet .grant-card{display:block;padding:17px 18px;border:1px solid #e4ebf2;border-radius:9px;margin:0 0 12px;background:#fff}.sheet .grant-card .mid{width:100%;min-width:0}.sheet .grant-card .t,.sheet .grant-card .s{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.sheet .grant-card .t{font-size:13px;line-height:1.6;margin-bottom:5px}.sheet .grant-card .s{font-size:11px;line-height:1.7;color:#92a0af}.grant-actions{display:flex;align-items:center;gap:9px;margin-top:14px;padding-top:12px;border-top:1px solid #f0f3f6}.grant-actions>.crud-action{margin-left:auto}.detail-empty{padding:20px;border:1px dashed #dce6ef;background:#f9fbfd;border-radius:9px;color:#637b91}.detail-empty strong{font-size:13px;font-weight:500}.detail-empty p{font-size:12px;margin:8px 0 0;line-height:1.8}.sheet [role="alert"]:not(:empty){color:#b83d3d;padding:12px 14px;background:#fff5f5;border:1px solid #f4dede;border-radius:7px;font-size:12px;line-height:1.7}
@media(max-width:767px){.sheet .panel{width:100%;padding:22px 20px 30px}.sheet .sheet-title{top:-22px;margin:-22px -20px 22px;padding:20px}.sheet .kv{grid-template-columns:95px minmax(0,1fr);padding:16px;gap:12px}.sheet .sheet-title h2{font-size:19px!important}.grant-actions{flex-wrap:wrap}}
.list-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:20px 24px;border-bottom:1px solid var(--line);background:#fff}.table-panel .list-controls .table-search{max-width:360px;min-width:220px;flex:1;padding:10px 13px;border-radius:7px;font-size:13px}.list-controls select,.list-footer select{padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#475569;font-size:13px}.list-footer{display:flex;align-items:center;gap:14px;padding:18px 24px;font-size:12px;color:#64748b;border-top:1px solid var(--line);flex-wrap:wrap}.list-footer .grow{flex:1}.list-footer label{display:flex;align-items:center;gap:8px}.list-footer button{padding:8px 12px;border-radius:6px}.list-footer button:disabled{opacity:.4;cursor:default}.table-panel .fleet-table th{height:44px;background:#f8fafc;color:#64748b;font-size:11px;letter-spacing:.025em}.table-panel .fleet-table td{height:60px;font-size:13px;padding:10px 20px}.table-panel .fleet-table th{padding:0 20px}.table-panel .fleet-table .device-name{font-weight:500;color:#243447}.unit-status{display:inline-flex;padding:5px 10px;border-radius:6px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:600;text-transform:capitalize}.status-deployed{background:#eaf7ef;color:#25834d}.status-assigned{background:#edf4ff;color:#2563b9}.status-retired{background:#fff1f0;color:#bd5147}.unit-notes{max-width:240px}.list-guidance{font-size:12px;color:#8491a1;margin:18px 4px}.table-panel .empty{padding:48px 24px}.table-panel [hidden]{display:none!important}@media(max-width:767px){.list-controls,.list-footer{padding:16px;gap:10px}.table-panel .list-controls .table-search{max-width:none;min-width:100%;box-sizing:border-box}.list-footer .grow{display:none}.list-footer{justify-content:space-between}.list-footer>span:first-child{width:100%}}
.fleet-table th .sort-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:42px;text-align:left;cursor:pointer}.fleet-table th .sort-button:hover{color:var(--accent)}.fleet-table th .sort-button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.fleet-table th[aria-sort=ascending] .sort-arrow,.fleet-table th[aria-sort=descending] .sort-arrow{color:var(--accent)}
