/* Scan-IT Cloud for the product hero (Pages/Shared/Sections/HeroApps/_DataWindow.cshtml): the web app's data sheet –
   toolbar, the sheet's scan apps, the grid – laid out like the app. Builds on app-window.css and app-window-web.css
   (the web app's frame and tokens); loaded only by the partial. No Tailwind, no site tokens. */

.tec-appwin--data { --dt-red: #ce191f; }
.tec-appwin--data em, .tec-appwin--data i, .tec-appwin--data b { font-style: normal; }

/* ---- sheet header: project name and the eight menu buttons ---- */
.tec-appwin__dt-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--wa-line); white-space: nowrap; }
.tec-appwin__dt-project { font-size: 12.5px; font-weight: 600; color: var(--dt-red); }
.tec-appwin__dt-menu { margin-left: auto; display: flex; gap: 2px; overflow: hidden; }
.tec-appwin__dt-menu span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; font-size: 10.5px; color: var(--wa-ink); }
.tec-appwin__dt-menu b { font-weight: 500; }
.tec-appwin__dt-menu svg { width: 13px; height: 13px; flex: none; color: var(--wa-muted); }
.tec-appwin__dt-menu span.is-on { background: var(--wa-editor); }
.tec-appwin__dt-menu span.is-on svg { color: var(--dt-red); }

/* ---- the sheet's scan apps ---- */
.tec-appwin__dt-apps { flex: none; display: flex; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--wa-line); }
.tec-appwin__dt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--wa-line); border-radius: 999px; font-size: 10.5px; white-space: nowrap; }
.tec-appwin__dt-chip svg { width: 12px; height: 12px; }
.tec-appwin__dt-chip b { font-weight: 600; }
.tec-appwin__dt-chip small { font-size: 9px; color: var(--wa-muted); }
.tec-appwin__dt-chip--new { border-style: dashed; color: var(--wa-muted); }

/* ---- the grid ---- */
.tec-appwin__dt-grid { flex: 1; min-height: 0; overflow: hidden; margin: 6px 6px 0; border: 1px solid var(--wa-line); border-bottom: 0; border-radius: 8px 8px 0 0; }
.tec-appwin__dt-row { display: grid; grid-template-columns: 26px 26px 1.25fr 1.2fr .6fr 1.15fr 1fr; border-bottom: 1px solid var(--wa-line); }
.tec-appwin__dt-row > span { display: flex; align-items: center; gap: 5px; min-width: 0; height: 26px; padding: 0 7px; border-right: 1px solid var(--wa-line); font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.tec-appwin__dt-row > span:last-child { border-right: 0; }
.tec-appwin__dt-row--head > span { height: 28px; font-weight: 600; }
.tec-appwin__dt-row--head svg { width: 12px; height: 12px; flex: none; color: var(--wa-muted); }
.tec-appwin__dt-row--head em { color: var(--dt-red); }
.tec-appwin__dt-check i { width: 10px; height: 10px; border: 1px solid #9aa0aa; border-radius: 2px; }
.tec-appwin__dt-row > .tec-appwin__dt-num { justify-content: center; padding: 0; color: var(--wa-muted); }
.tec-appwin__dt-cell.tec-appwin__dt-col--barcode { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10px; }
.tec-appwin__dt-row > .tec-appwin__dt-cell.tec-appwin__dt-col--number { text-align: right; }
.tec-appwin__dt-cell.tec-appwin__dt-col--location { color: var(--dt-red); }
.tec-appwin__dt-row > .tec-appwin__dt-cell { display: block; line-height: 26px; text-overflow: ellipsis; }
.tec-appwin__dt-add { display: flex; justify-content: space-between; padding: 7px 10px; font-size: 10.5px; color: var(--wa-muted); }

/* ---- narrower windows: fewer menu labels and columns ---- */
@container (max-width: 680px) {
  .tec-appwin__dt-menu b { display: none; }
  .tec-appwin__dt-row { grid-template-columns: 22px 22px 1.3fr 1.2fr .6fr 1.1fr; }
  .tec-appwin__dt-row > span:nth-child(7) { display: none; }
}
@container (max-width: 520px) {
  .tec-appwin__dt-menu span:nth-child(-n+4), .tec-appwin__dt-menu span:nth-child(7), .tec-appwin__dt-menu span:nth-child(8) { display: none; }
  .tec-appwin__dt-row { grid-template-columns: 22px 1.45fr 1.35fr 54px; }
  .tec-appwin__dt-row--head svg { display: none; }
  .tec-appwin__dt-row > span:nth-child(2), .tec-appwin__dt-row > span:nth-child(6) { display: none; }
}

/* ---- animation: a scanned row arrives at the bottom of the sheet ---- */
.tec-appwin__dt-row--new { animation: tec-appwin-dtrow .5s ease-out calc(var(--aw-start) + .6s) both; }
@keyframes tec-appwin-dtrow { from { opacity: 0; transform: translateY(-6px); background: #fff5f5; } 70% { background: #fff5f5; } to { opacity: 1; } }
