/* data-table.css — C.dataTable (live SVC DataTable `.v-table-wrapper > .v-table`).
 *
 * Every value below is from docs/research/data-table/ (svc-data-table.md §1 resolved
 * theme vars; live-pas80.md "Resolved SVC v-table tokens" — identical on every
 * v-table probed; live-pas80-wizards.md; live-tiering.md). NOTE the project token
 * names are the reverse of SVC's: --border-tier2 = rgba(198,212,224,.4) (SVC
 * border-tier3) and --border-tier3 = rgba(198,212,224,.7) (SVC border-tier2).
 * Every rule is scoped under .dt, so the live class names it reuses (row,
 * row-hover, sorting, head-cell, inner-cell…) cannot collide with other screens.
 */

/* ——— Root: `.v-table` — top border only (no sides / bottom / radius), text tier1 ——— */
.dt {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
  border-top: 1px solid var(--border-tier3);          /* --v-table-border-top */
  color: var(--font-grey-tier1);
  font-size: var(--font-size-table);
  line-height: var(--line-height-body);
}
.dt.has-height { overflow: hidden; }
.dt.is-fill { flex: 1 1 auto; min-height: 0; }
/* --v-table-padding: 0 0 6px 0 on the wrapper — live Drives: wrapper 1167×753 holds a
 * 1167×747 .v-table (pas80-work/drives-tree.txt). The 6px sits UNDER the footer too:
 * live CAM Log / SAN Log / CP User & Group (pas80) and Tiering Logs (10.17.37.118) all
 * pad their v-table-wrapper 6px below the v-pagination, so with the panel body's own
 * 6px the pager ends 12px above the window content (QA round 3, 2026-10-03). Shown
 * only where the box is sized by its parent (fill). An ExtJS grid's paging bar keeps
 * its own page-measured gap (Log Center, Task Scheduler), so there only footer-less. */
.dt.is-fill:not(.has-footer),
.dt-svc.is-fill { padding-bottom: 6px; }
/* Columns wider than the table in total (fixed px > W, live SVC: no shrink) scroll
 * sideways in the body; the frozen header table follows by translateX (JS), clipped here. */
.dt-header { position: relative; flex: 0 0 auto; overflow: hidden; }
.dt-body-wrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dt-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: auto;
  /* no overscroll-behavior: a body that does not overflow must hand the wheel to
   * the page / card around it (Chrome swallows it under `contain`) */
}
.dt-scroll > * { flex: 0 0 auto; }
/* the shared synthetic bar (svc-scroll-overlay), inset inside the body only */
.dt .dt-scrollbar { top: var(--scrollbar-inset); z-index: 2; }
/* its horizontal twin (shown only while Σ columns > the body, JS): same tokens, along
 * the body's bottom edge (live v-scrollbar x rail) */
.dt .dt-scrollbar-x { top: auto; left: var(--scrollbar-inset); right: var(--scrollbar-inset); bottom: var(--scrollbar-inset); width: auto; height: var(--scrollbar-size); z-index: 2; }
.dt .dt-scrollbar-x span { width: 0; height: var(--scrollbar-size); transform: translateX(0); }
.dt-footer { flex: 0 0 auto; }

.dt-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.dt th,
.dt td {
  padding: 0;
  box-sizing: border-box;
  font-weight: var(--font-weight-regular);
  text-align: left;
  vertical-align: middle;
}
.dt .inner-cell { min-width: 0; padding: 0 var(--data-table-cell-pad-x); }
.dt th.last-th-cell .inner-cell,
.dt td.last-cell .inner-cell { padding-right: var(--data-table-last-cell-pad-right); }

/* ——— Header: 28px cell + 1px bottom rule = 29px, transparent bg, separators on
 * the header cells only (`border-visible`), 13px/400 rgba(65,75,85,.6) ——— */
.dt th {
  height: var(--data-table-row-height);
  border-bottom: 1px solid var(--border-tier2);        /* --v-table-header-border-bottom__th */
  border-right: 1px solid var(--border-tier2);         /* --v-table-border-right__th */
  color: var(--font-grey-tier2);
  background: transparent;
}
.dt th.last-th-cell { border-right: 0; }
.dt .head-cell {
  display: flex;
  align-items: center;
  height: 28px;
  line-height: 28px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}
.dt .cell-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt th.ta-right .head-cell { justify-content: flex-end; }
.dt th.ta-center .head-cell { justify-content: center; }
/* sortable head-cell: hover rgb(5,127,235), :active rgb(0,109,204) (tokens.css --main-tier1-dark,
 * pas80 2026-08-20); non-sortable keeps tier2 + default cursor (th.disable-sort) */
.dt th:not(.disable-sort) .head-cell:hover { color: var(--main-tier1); }
.dt th:not(.disable-sort) .head-cell:active { color: var(--main-tier1-dark); }
.dt th.disable-sort .head-cell { cursor: default; }

/* Sorter: 8×20 svg set16, 4px after the title, display:none until the head-cell is
 * hovered/pressed or the column is sorted (th.sorting). Normal rgb(80,90,100) @ .6,
 * hover rgb(5,127,235) @ 1, active rgb(0,109,204) @ 1. Header text colour never changes when sorted. */
.dt .v-table-column-sorter {
  display: none;
  flex: 0 0 8px;
  width: 8px;
  height: 20px;
  margin: 0 0 0 4px;
  color: var(--icon-dark-grey-tier1);
  fill-opacity: var(--data-table-sorter-opacity);
  line-height: 0;
  font-style: normal;
}
.dt .v-table-column-sorter svg { display: block; }
.dt th.sorting .v-table-column-sorter,
.dt .head-cell:hover .v-table-column-sorter,
.dt .head-cell:active .v-table-column-sorter { display: block; }
.dt .head-cell:hover .v-table-column-sorter { color: var(--main-tier1); fill-opacity: 1; }
.dt .head-cell:active .v-table-column-sorter { color: var(--main-tier1-dark); fill-opacity: 1; }
/* resize hot zone (right 10px of a th): resizer.js sets th cursor col-resize */
.dt th.is-resize-hot,
.dt th.is-resize-hot .head-cell { cursor: col-resize; }
body.dt-col-resizing,
body.dt-col-resizing * { cursor: col-resize !important; user-select: none !important; }

/* ——— Header right-end box + ⋮ (column chooser) — div.hd-menu-btn-wrapper: 12px +
 * 0 2px = 16×28, parked top/right over the last th's 25px gutter; its 1px left rule is
 * the divider and its white fill covers the last column's edge (SAN vVols / FC Port
 * re-measure). SVC draws this box on EVERY border-visible header (live
 * `.v-table-header table::after`, svc-vtable-css.txt:101) — `.is-cover` = no ⋮ inside.
 * Icon rgb(80,90,100) @ .6 → hover rgb(5,127,235) @ 1, active rgb(0,109,204). ExtJS `.x-grid3-header-bwrap`
 * (Log Center) measures the same box. ——— */
.dt .dt-hdmenu {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 28px;
  padding: 0 2px;
  border-left: 1px solid var(--border-tier2);          /* --v-table-header-border-left__menu */
  background: var(--white);                            /* --v-table-header-bkg-color__menu */
}
.dt .dt-hdmenu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--icon-dark-grey-tier1);
  cursor: pointer;
}
.dt .dt-hdmenu-btn svg { display: block; fill-opacity: var(--data-table-sorter-opacity); }
.dt .dt-hdmenu-btn:hover svg,
.dt .dt-hdmenu-btn.is-active svg { color: var(--main-tier1); fill-opacity: 1; }
.dt .dt-hdmenu-btn:active svg { color: var(--main-tier1-dark); fill-opacity: 1; }

/* ——— Body rows: 28px + 1px td divider = 29px pitch, 13px rgb(65,75,85), single line +
 * ellipsis; row bg TRANSPARENT at rest (live SVC paints none — rgba(0,0,0,0) measured
 * on pas80, rowsel, san77; the theme's white bkg-color__row token is never applied);
 * hover / selected painted on the <tr> by JS classes (row-hover .04, row-selected .1 —
 * td stays transparent; selected beats hover). ——— */
.dt td {
  height: var(--data-table-row-height);
  border-bottom: 1px solid var(--border-tier2);        /* --v-table-cell-border-bottom */
}
.dt .content-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 28px;
}
.dt td.ta-right .content-cell { text-align: right; }
.dt td.ta-center .content-cell { text-align: center; }
.dt tr.row { background: transparent; }
.dt tr.row-hover { background: var(--main-hover); }
.dt tr.row-selected { background: var(--main-light); }
.dt tr.is-unselectable { cursor: default; }

/* auto-row-height (Item/Value confirm tables): content-cell lh 20px, pad 4px 0,
 * wraps — a one-line row still measures 29px; cells top-aligned so a one-line Item
 * starts on the first line of a wrapped Value (svc-vtable-css.txt:159). */
.dt.auto-row-height td { height: var(--data-table-row-height); vertical-align: top; }
.dt.auto-row-height .content-cell {
  padding: 4px 0;
  line-height: var(--line-height-body);
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

/* ——— Selection checkbox column: 44px (or configured) centred, head padding 0 4px,
 * 20×20 SVC sprite — normal 0 / hover -20 / disabled -40 / checked -60 / hover -80 /
 * disabled-checked -100 / indeterminate -120 / hover -140 / disabled -160. ——— */
.dt .selection-mode .inner-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 4px;                                      /* --v-table-head-cell-padding__checkbox */
}
.dt-cbx {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: var(--data-table-checkbox-sprite) 0 0 / 20px 180px no-repeat;
  cursor: pointer;
}
.dt-cbx:hover { background-position: 0 -20px; }
.dt-cbx.checked { background-position: 0 -60px; }
.dt-cbx.checked:hover { background-position: 0 -80px; }
.dt-cbx.indeterminate { background-position: 0 -120px; }
.dt-cbx.indeterminate:hover { background-position: 0 -140px; }
.dt-cbx.disabled { background-position: 0 -40px; cursor: default; }
.dt-cbx.disabled.checked { background-position: 0 -100px; }
.dt-cbx.disabled.indeterminate { background-position: 0 -160px; }
/* selection.locked: the boxes keep the enabled checked look (live CAM group-table: not
 * disabled, cursor default) — only the click is inert (data-table.js) */
.dt.is-sel-locked .dt-cbx { cursor: default; }

/* ——— Status text in a cell: live SVC `span.green-status` (rgb(0,158,5), weight 400, text
 * only — the cell keeps its own background). pas80 SM › Drives › Drive Status
 * "Healthy" (QA round 3 #1). Opt-in per column render; other tables' Healthy inks are
 * page-chosen (--status-healthy-banner) pending a user decision. ——— */
.dt .green-status { color: var(--status-green-text); font-weight: var(--font-weight-regular); }

/* ——— Grouped mode: the shared .svc-tgroup look (components.css) inside the body.
 * Rows indent the first DATA cell's text to 32px (live td.group-indent, inner-cell
 * 0 8px 0 32px) — never the checkbox cell — so the shared td:first-child padding is
 * cancelled here. ——— */
.dt .svc-tgroup-body table td:first-child { padding-left: 0; }
.dt .svc-tgroup-body td.group-indent .inner-cell { padding-left: var(--data-table-group-indent); }
/* the group wrapper clips only while it slides (rows are unmounted when collapsed):
 * at rest Σ columns > W must reach .dt-scroll and scroll sideways, not be cut off */
.dt .svc-tgroup-body:not(.is-sliding) { overflow: visible; }

/* ——— Advance-mode expand (the .svc-advexp-* look from components.css). Live
 * `.v-table-content.expandable` (svc-vtable-css.txt:142-150): every content cell wraps
 * at lh 20px with 4px 0 padding, cells top-aligned; the caret cell's inner-cell is
 * 0 0 0 4px (--v-table-cell-padding--has-expand). Scoped with `>` to this table's own
 * rows so a table nested in a detail keeps its single-line look. ——— */
.dt .inner-cell.has-expand { padding: 0 0 0 4px; }
.dt .svc-advexp-cell-inner .content-cell { flex: 1 1 auto; min-width: 0; }
.dt .dt-body-table.is-expandable > tbody > tr.row > td { vertical-align: top; }
.dt .dt-body-table.is-expandable > tbody > tr.row > td > .inner-cell > .svc-advexp-cell-inner { height: auto; }
.dt .dt-body-table.is-expandable > tbody > tr.row > td > .inner-cell > .content-cell,
.dt .dt-body-table.is-expandable > tbody > tr.row > td > .inner-cell > .svc-advexp-cell-inner > .content-cell {
  padding: 4px 0;
  line-height: var(--line-height-body);
  white-space: normal;                                 /* live: no overflow-wrap — a long token clips */
}

/* ——— Empty view: .v-table-empty-body flex-centred in the body (no padding);
 * .empty-wrapper max-width 400, min-height 20, pad 17px 19px, 1px rgba(198,212,224,.7),
 * radius 3, 13/20, overflow-wrap break-word, text start-aligned inside the centred box
 * (no shadow: its theme token is the `rggba(` typo, so none renders). ——— */
.dt .v-table-empty-body {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--data-table-empty-min-height);
  box-sizing: border-box;
}
.dt.has-height .v-table-empty-body,
.dt.is-fill .v-table-empty-body { min-height: 0; }
.dt .empty-wrapper {
  max-width: 400px;
  min-height: 20px;
  box-sizing: border-box;
  padding: 17px 19px;
  border: 1px solid var(--border-tier3);
  border-radius: 3px;
  font-size: var(--font-size-table);
  line-height: var(--line-height-body);
  color: var(--font-grey-tier1);
  overflow-wrap: break-word;
}
.dt .empty-wrapper a { color: var(--main-tier1); text-decoration: none; cursor: pointer; }
/* App empty-area slots (`empty` kinds, tt-empty/live.md §B). All plain text, no box:
 *   empty-text      SM Hot Spare: .empty-text rgba(65,75,85,.6) 13px, lh 14.95 (58×15)
 *   empty-area      SM Data Scrubbing: .hotspare-empty-area 100px > .empty-text h/lh 50, mt 25, .6
 *   empty-container CP Notification recipients: .empty-container 145px flex > .empty-text .4 */
.dt .v-table-empty-body .empty-text {
  font-size: var(--font-size-table);
  line-height: 1.15;                                   /* 13px → 14.95px (live) */
  color: var(--font-grey-tier2);
}
.dt .dt-empty-area { height: 100px; }
.dt .dt-empty-area > .empty-text { height: 50px; margin-top: 25px; line-height: 50px; }
.dt .dt-empty-container { display: flex; align-items: center; height: 145px; }
.dt .dt-empty-container > .empty-text { color: var(--font-grey-tier3); }
/* SVC EmptyView in the empty-area slot (CAM Log hideIcon; SAN vVols with the icon):
 * .v-empty-view flex 100%×100%, box centred, optional 120px empty-view-default icon,
 * p.v-empty-view-text 13/20 rgba(65,75,85,.6), margin-top 20 under the icon. */
.dt .v-empty-view { display: flex; width: 100%; height: 100%; }
.dt .v-empty-view-box { margin: auto; text-align: center; }
.dt .dt-empty-view-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: url("../assets/icons/9be13549966adcb79e31-120x120.svg") center / 120px 120px no-repeat;
}
.dt .v-empty-view-text {
  margin: 0;
  font-size: var(--font-size-table);
  line-height: var(--line-height-body);
  color: var(--font-grey-tier2);
  text-align: center;
}
.dt .v-empty-view-text.has-icon { margin-top: 20px; }
/* ExtJS grid empty view (Log Center "No logs available", .x-grid-empty pad 10 >
 * .syno-dataview > .empty-text-wrap absolute inset 0 10px, ::before 100% v-align
 * middle > .empty-text-inner-wrap > 120px icn_empty_default (margin 0 auto 20) +
 * .empty-text w330 13/20 .6 centred). Live asset: scripts/ext-3/ux/images/2x. */
.dt .v-table-empty-body.dt-empty-extjs-icon { position: relative; min-height: 180px; }
.dt.has-height .v-table-empty-body.dt-empty-extjs-icon,
.dt.is-fill .v-table-empty-body.dt-empty-extjs-icon { min-height: 0; }
.dt .dt-empty-extjs { position: absolute; inset: 0; padding: 10px; }
.dt .dt-empty-extjs .empty-text-wrap { position: absolute; inset: 0 10px; text-align: center; }
.dt .dt-empty-extjs .empty-text-wrap::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; }
.dt .dt-empty-extjs .empty-text-inner-wrap { display: inline-block; width: 100%; vertical-align: middle; }
.dt .dt-empty-extjs .empty-text-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: url("../assets/img/icn_empty_default.png") center / 120px 120px no-repeat;
}
.dt .dt-empty-extjs .empty-text {
  width: 330px;
  margin: 0 auto;
  font-size: var(--font-size-table);
  line-height: var(--line-height-body);
  color: var(--font-grey-tier2);
  text-align: center;
  overflow-wrap: break-word;
}

/* ——— Cell / header tooltip (data-table.js tooltip engine) — live SVC
 * `.v-tooltip-directive.hint` and the ExtJS `.x-tip` QuickTip: identical look —
 * rgba(30,32,34,.8), white text, 13/20 Verdana, 1px rgb(150,150,150), radius 4, shadow
 * 0 1px 4px rgba(0,0,0,.3), no arrow, wraps; hint pad 2px 11px / max 600, x-tip
 * body pad 2px 11px / max 500 (border-box). In #overlay-layer, pointer-events none. ——— */
.dt-hint,
.dt-qtip {
  position: absolute;
  z-index: 20001;
  display: block;
  box-sizing: border-box;
  pointer-events: none;
  border: 1px solid rgb(150, 150, 150);
  border-radius: 4px;
  background: rgba(30, 32, 34, 0.8);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.3);
  color: var(--font-white-tier1);
  font: 400 13px/20px var(--font-family-base);
  text-align: start;
  white-space: normal;
  overflow-wrap: break-word;
}
.dt-hint { max-width: 600px; padding: 2px 11px; }
.dt-qtip { min-width: 40px; max-width: 500px; padding: 0; }   /* QuickTips minWidth 40 / maxWidth 500; JS sets the doAutoWidth px */
.dt-qtip .x-tip-body { padding: 2px 11px; }
/* ext:qwidth=auto (tooltip {width:'auto'}): no doAutoWidth → no 40/500 clamp, content width */
.dt-qtip.is-qwidth-auto { min-width: 0; max-width: none; }

/* ——— Resize / move indicator: 1px rgb(80,90,100) line (.col-resizable-indicator) ——— */
.dt .dt-indicator {
  position: absolute;
  top: 0;
  width: 0;
  border-left: 1px solid var(--icon-dark-grey-tier1);
  z-index: 4;
  pointer-events: none;
}
.dt .dt-indicator[hidden] { display: none; }

/* ——— Column-move ghost (.v-table-dd-ghost.col-moveable-ghost): opacity .7, bg
 * rgba(5,127,235,.04), radius 4, shadow 0 2px 4px rgba(0,0,0,.08), pad 6px 12px 6px 0,
 * desc 14px / 24px, 8px left. Lives in #overlay-layer (fixed). ——— */
.dt-dd-ghost {
  position: fixed;
  z-index: 16001;
  pointer-events: none;
  display: flex;
  align-items: center;
  padding: 6px 12px 6px 0;
  border-radius: 4px;
  background: var(--main-hover);
  box-shadow: var(--data-table-ghost-shadow);
  opacity: 0.7;
}
.dt-dd-ghost .col-desc {
  max-width: 120px;
  height: 24px;
  margin-left: 8px;
  overflow: hidden;
  font-size: var(--font-size-body-l);
  line-height: 24px;
  color: var(--font-grey-tier1);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ——— Column chooser menu (.v-table__menu.v-menu): the shared .menu-popup shell
 * (white, 1px rgba(198,212,224,.7), radius 4, shadow 0 1px 4px rgba(0,0,0,.16), pad 7)
 * with checkbox items: 28px, pad 0 20px 0 8px, radius 3, 20px box margin 0 8px 0 0,
 * hover rgba(5,127,235,.1); disabled (ExtJS min-3 only) tier3 text, no hover. ——— */
.dt-menu { width: auto; min-width: 0; }
/* ExtJS x-menu.syno-ux-menu (Log Center): 9px inset per side = 1px border + 8px pad
 * (pas80-work/raw.jsonl LC-Logs-hdmenu 138×158 for 5 items) vs SVC's 1 + 7. */
.dt-menu.dt-menu-extjs { padding: 8px; }
.dt-menu .v-menu-item {
  display: flex;
  align-items: center;
  height: 28px;
  line-height: 28px;
  padding: 0 20px 0 8px;                               /* --v-table-menu-padding__menu-item */
  border-radius: 3px;
  font-size: var(--font-size-table);
  color: var(--font-grey-tier1);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.dt-menu .v-menu-item:hover { background: var(--main-light); }
.dt-menu .dt-menu-cbx {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  background: var(--data-table-checkbox-sprite) 0 0 / 20px 180px no-repeat;
}
.dt-menu .v-menu-item.checked .dt-menu-cbx { background-position: 0 -60px; }
.dt-menu .v-menu-item.disabled { color: var(--font-grey-tier3); cursor: default; }
.dt-menu .v-menu-item.disabled:hover { background: transparent; }
.dt-menu .v-menu-item.disabled .dt-menu-cbx { background-position: 0 -40px; }
.dt-menu .v-menu-item.disabled.checked .dt-menu-cbx { background-position: 0 -100px; }
