/* Devices: compact controls, with product images above the device data. */
.page-content[data-ui-route="devices"] .page-head { margin-bottom:14px; gap:12px; }
.page-content[data-ui-route="devices"] .page-head h1 { font-size:30px; letter-spacing:-.035em; }
.page-content[data-ui-route="devices"] .page-head p { max-width:66ch; margin-top:6px; font-size:13px; line-height:1.5; }
.page-content[data-ui-route="devices"] .device-summary-strip { gap:8px; margin-bottom:12px; }
.page-content[data-ui-route="devices"] .summary-filter { min-height:48px; padding:10px 14px; border-radius:9px; background:var(--surface); box-shadow:none; }
.page-content[data-ui-route="devices"] .summary-filter > span { font-size:12px; font-weight:600; letter-spacing:0; text-transform:none; }
.page-content[data-ui-route="devices"] .summary-filter > strong { font-size:22px; font-weight:600; line-height:1.1; }
.page-content[data-ui-route="devices"] .summary-filter.selected { border-color:var(--accent); background:var(--accent-dim); }
.devices-simulation-note { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 18px; }
.devices-simulation-note[hidden] { display:none; }
.devices-simulation-note p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.page-content[data-ui-route="devices"] .fleet-workspace { padding:0; border:1px solid var(--stroke-strong); border-radius:16px; background:var(--surface); box-shadow:none; backdrop-filter:none; overflow:visible; }
.page-content[data-ui-route="devices"] .fleet-toolbar { display:block; padding:12px 14px; margin:0; border-bottom:1px solid var(--stroke); }
.fleet-search-row { display:flex; align-items:center; gap:10px; }
.fleet-search-group { flex:1; min-width:0; }
.page-content[data-ui-route="devices"] .search-input { width:100%; min-width:0; height:40px; min-height:40px; }
.page-content[data-ui-route="devices"] .search-input input { min-width:0; font-size:13px; }
.page-content[data-ui-route="devices"] .device-filters-toggle { flex:none; gap:7px; height:40px; min-height:40px; padding:0 12px; font-size:12px; }
.device-filters-toggle[aria-expanded="true"], .device-filters-toggle.has-filters { border-color:var(--accent); color:var(--accent); background:var(--accent-dim); }
[data-device-filter-count] { display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 4px; border-radius:5px; background:var(--accent-dim); font-size:11px; font-variant-numeric:tabular-nums; }
[data-device-filter-count][hidden] { display:none; }
.fleet-sort-control { display:block; flex:0 0 132px; min-width:0; }
.page-content[data-ui-route="devices"] .fleet-sort-control select { width:100%; min-width:0; height:40px; min-height:40px; padding:0 28px 0 11px; font-size:12px; }
.page-content[data-ui-route="devices"] .view-toggle { display:flex; flex:none; height:40px; padding:3px; border:1px solid var(--stroke-strong); border-radius:9px; background:var(--input); }
.page-content[data-ui-route="devices"] .view-toggle .icon-btn { display:inline-flex; width:auto; height:32px; padding:0 10px; gap:6px; border-radius:6px; font-size:12px; }
.page-content[data-ui-route="devices"] .view-toggle .icon-btn.active { color:var(--text); background:var(--surface-raised); box-shadow:0 1px 4px rgba(0,0,0,.12); }
.fleet-filter-row { display:grid; grid-template-columns:minmax(100px,1fr) minmax(150px,1.6fr) minmax(100px,1fr) auto; align-items:end; gap:10px; margin-top:12px; padding-top:12px; border-top:1px solid var(--stroke); }
.fleet-filter-row[hidden] { display:none; }
.fleet-filter-row > label { display:flex; flex-direction:column; gap:7px; min-width:0; color:var(--muted); font-size:12px; }
.page-content[data-ui-route="devices"] .fleet-filter-row select { width:100%; min-width:0; max-width:100%; height:40px; padding:0 30px 0 11px; font-size:13px; }
.page-content[data-ui-route="devices"] .devices-reset { min-height:40px; padding:0 5px; font-size:12px; }
.device-active-filters { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.device-active-filters[hidden] { display:none; }
.device-filter-chip { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-height:30px; padding:5px 9px; border:1px solid var(--stroke-strong); border-radius:7px; background:var(--input); color:var(--muted); font-size:12px; text-align:left; cursor:pointer; }
.device-filter-chip > span { min-width:0; overflow-wrap:anywhere; }
.device-filter-chip b { color:var(--text); font-weight:500; }
.device-filter-chip svg { flex:none; }
.page-content[data-ui-route="devices"] .fleet-selection-bar { position:relative; z-index:4; align-items:center; gap:12px; min-height:44px; padding:10px 14px; margin:0; border-bottom:1px solid var(--stroke); background:var(--surface); }
.page-content[data-ui-route="devices"] .fleet-selection-bar.has-selection { position:sticky; top:76px; background:color-mix(in srgb,var(--surface) 91%,var(--accent) 9%); border-bottom-color:color-mix(in srgb,var(--accent) 35%,transparent); }
.page-content[data-ui-route="devices"] .fleet-selection-bar:not(.has-selection) #device-selection-hint,
.page-content[data-ui-route="devices"] .fleet-selection-bar:not(.has-selection) .device-selection-actions { display:none; }
.page-content[data-ui-route="devices"] .device-selection-info { display:flex; align-items:flex-start; flex-direction:column; gap:5px; min-width:0; }
.device-selection-info > div { font-size:13px; }
.device-selection-info > small { font-size:12px; line-height:1.5; color:var(--muted); }
.page-content[data-ui-route="devices"] .device-selection-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.page-content[data-ui-route="devices"] .device-selection-actions #selected-count { color:var(--text); font-size:13px; font-weight:600; }
.page-content[data-ui-route="devices"] .device-selection-actions .btn { min-height:40px; font-size:12px; }
.page-content[data-ui-route="devices"] #devices-results { padding:12px; }
.page-content[data-ui-route="devices"] #devices-results:has(.devices-table) { padding:0; }
.page-content[data-ui-route="devices"] .devices-table-wrap { border:0; border-radius:0; box-shadow:none; background:transparent; }
.page-content[data-ui-route="devices"] .devices-table { width:100%; min-width:0; table-layout:fixed; }
.page-content[data-ui-route="devices"] .devices-table th { padding:13px 10px; font-size:11px; letter-spacing:.025em; text-transform:none; }
.page-content[data-ui-route="devices"] .devices-table th:first-child { width:38px; padding-left:18px; }
.page-content[data-ui-route="devices"] .devices-table th:nth-child(2) { width:24%; }
.page-content[data-ui-route="devices"] .devices-table th:nth-child(3) { width:15%; }
.page-content[data-ui-route="devices"] .devices-table th:nth-child(4) { width:23%; }
.page-content[data-ui-route="devices"] .devices-table th:nth-child(5) { width:17%; }
.page-content[data-ui-route="devices"] .devices-table th:nth-child(6) { width:13%; }
.page-content[data-ui-route="devices"] .devices-table th:last-child { width:44px; }
.page-content[data-ui-route="devices"] .devices-table td { max-width:0; padding:16px 10px; white-space:normal; overflow-wrap:anywhere; font-size:13px; vertical-align:middle; }
.page-content[data-ui-route="devices"] .devices-table td:first-child { padding-left:18px; }
.devices-table input[type="checkbox"] { width:17px; height:17px; accent-color:var(--accent); cursor:pointer; }
.device-row-identity { display:flex; align-items:center; gap:10px; min-width:0; }
.device-row-identity > .device-product-visual { flex:none; }
.device-row-identity > div:last-child { display:flex; flex-direction:column; gap:4px; min-width:0; }
.device-identity-name { display:block; min-width:0; max-width:100%; padding:0; background:none; border:0; color:var(--text); font-size:13px; font-weight:600; text-align:left; overflow-wrap:anywhere; cursor:pointer; }
.device-identity-name:hover { color:var(--accent); }
.device-row-identity code { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.device-status-stack { display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.page-content[data-ui-route="devices"] .device-status-stack .status { font-size:12px; }
.device-row-model { display:block; margin-bottom:5px; font-size:12px; line-height:1.5; color:var(--text); }
.page-content[data-ui-route="devices"] .device-model-cell .apollo-tier { margin:0; font-size:10px; }
.page-content[data-ui-route="devices"] .device-location-cell { color:var(--muted); line-height:1.5; font-size:12px; }
.page-content[data-ui-route="devices"] .devices-grid { gap:12px; }
.page-content[data-ui-route="devices"] .device-card { border:1px solid var(--stroke-strong); box-shadow:none; }
.page-content[data-ui-route="devices"] .device-card.selected { border-color:var(--accent); }
.page-content[data-ui-route="devices"] .device-card-top { padding:8px 12px 0; }
.page-content[data-ui-route="devices"] .device-card-top > .icon-btn { min-width:24px; width:24px; height:24px; }
.page-content[data-ui-route="devices"] .device-card-art { height:clamp(120px,18vh,138px); }
.page-content[data-ui-route="devices"] .device-card-art .device-product-visual { height:calc(clamp(120px,18vh,138px) - 12px); }
.page-content[data-ui-route="devices"] .device-card-art .device-product-visual > svg { max-height:100%; }
.page-content[data-ui-route="devices"] .device-card-art .apollo-card-frame { padding:2px 30px 24px; }
.page-content[data-ui-route="devices"] .device-card-art .apollo-card-frame img { height:clamp(94px,14.6vh,112px); max-height:100%; }
.page-content[data-ui-route="devices"] .device-card-content { padding:2px 12px 9px; }
.page-content[data-ui-route="devices"] .device-card-content > .device-source-badge { margin-bottom:9px; }
.page-content[data-ui-route="devices"] .device-card-title { font-size:15px; line-height:1.3; }
.page-content[data-ui-route="devices"] .device-model-tier { margin:3px 0 4px; font-size:12px; line-height:1.5; }
.page-content[data-ui-route="devices"] .device-card-meta { min-height:22px; margin-bottom:5px; }
.page-content[data-ui-route="devices"] .device-card-meta > code { font-size:11px; }
.page-content[data-ui-route="devices"] .device-card-bottom { padding-top:6px; font-size:12px; }
.page-content[data-ui-route="devices"] .device-card-top input { width:17px; height:17px; accent-color:var(--accent); }
.page-content[data-ui-route="devices"] .pagination { gap:12px; padding:12px 14px; margin:0; border-top:1px solid var(--stroke); font-size:12px; }
.page-content[data-ui-route="devices"] .devices-empty-reset { display:flex; margin:0 auto 24px; }
@media (max-width:1100px) {
  .fleet-search-row { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .fleet-sort-control { width:100%; }
  .page-content[data-ui-route="devices"] .fleet-sort-control select { max-width:none; }
  .page-content[data-ui-route="devices"] .view-toggle { margin-left:0; }
  .page-content[data-ui-route="devices"] .fleet-selection-bar { flex-wrap:wrap; }
  .page-content[data-ui-route="devices"] .device-selection-actions { margin-left:0; }
}
@media (min-width:701px) and (max-width:1100px) {
  .page-content[data-ui-route="devices"] .device-summary-strip { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .page-content[data-ui-route="devices"] .page-head { align-items:flex-start; }
  .page-content[data-ui-route="devices"] .page-head h1 { font-size:27px; }
  .page-content[data-ui-route="devices"] .page-head p { font-size:13px; }
  .page-content[data-ui-route="devices"] .device-summary-strip { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .page-content[data-ui-route="devices"] .summary-filter { min-height:40px; padding:8px 11px; }
  .page-content[data-ui-route="devices"] .summary-filter > span { font-size:12px; }
  .page-content[data-ui-route="devices"] .summary-filter > strong { font-size:19px; }
  .page-content[data-ui-route="devices"] .fleet-toolbar { padding:10px; }
  .fleet-search-row { gap:8px; }
  .fleet-filter-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fleet-filter-row > label:nth-child(2) { grid-column:1 / -1; grid-row:1; }
  .page-content[data-ui-route="devices"] .devices-reset { justify-self:start; }
  .page-content[data-ui-route="devices"] .view-toggle { width:auto; }
  .page-content[data-ui-route="devices"] .view-toggle .icon-btn { flex:1; justify-content:center; }
  .page-content[data-ui-route="devices"] .fleet-selection-bar,
  .page-content[data-ui-route="devices"] .fleet-selection-bar.has-selection { position:relative; top:auto; padding:10px 12px; }
  .page-content[data-ui-route="devices"] .device-selection-actions { width:100%; gap:10px; }
  .page-content[data-ui-route="devices"] .device-selection-actions .btn { flex:1; min-width:160px; justify-content:center; }
  .page-content[data-ui-route="devices"] .devices-grid { grid-template-columns:1fr; }
  .page-content[data-ui-route="devices"] .devices-table-wrap { overflow:visible; }
  .page-content[data-ui-route="devices"] .devices-table { display:block; }
  .page-content[data-ui-route="devices"] .devices-table thead { display:block; }
  .page-content[data-ui-route="devices"] .devices-table thead tr { display:flex; padding:12px 16px 0; }
  .page-content[data-ui-route="devices"] .devices-table th { display:none; }
  .page-content[data-ui-route="devices"] .devices-table th:first-child { display:flex; align-items:center; gap:8px; width:auto; padding:0; }
  .page-content[data-ui-route="devices"] .devices-table th:first-child::after { content:attr(data-label); }
  .page-content[data-ui-route="devices"] .devices-table tbody { display:grid; gap:12px; padding:12px; }
  .page-content[data-ui-route="devices"] .devices-table tbody tr { display:grid; grid-template-columns:22px minmax(0,1fr) 30px; gap:10px; padding:14px; border:1px solid var(--stroke-strong); border-radius:11px; }
  .page-content[data-ui-route="devices"] .devices-table td { display:block; max-width:none; padding:0; border:0; }
  .page-content[data-ui-route="devices"] .devices-table td:first-child { padding:0; }
  .device-select-cell { grid-column:1; grid-row:1; align-self:center; }
  .device-identity-cell { grid-column:2; grid-row:1; }
  .device-detail-cell { grid-column:3; grid-row:1; }
  .device-status-cell { grid-column:2 / 4; grid-row:2; }
  .device-model-cell, .device-location-cell, .device-power-cell { grid-column:2 / 4; }
  .device-model-cell::before, .device-location-cell::before, .device-power-cell::before { content:attr(data-label); display:block; margin-bottom:4px; color:var(--muted); font-size:11px; }
  .device-status-stack { flex-direction:row; flex-wrap:wrap; align-items:center; }
  .device-identity-name { font-size:14px; }
  .page-content[data-ui-route="devices"] .pagination { flex-wrap:wrap; padding:16px; }
  .page-content[data-ui-route="devices"] .pagination > div { justify-content:space-between; width:100%; }
}
