/* TovarDosie Workspace 2026 — contextual explanations, data table ergonomics.
   No changes to server data, permissions, APIs, payments or business workflows. */

.premium-app .section-guide {
  position:relative;
  align-items:start;
}
.premium-app .section-guide.td-guide-collapsed {
  grid-template-columns:minmax(0,1fr);
  padding-block:15px;
}
.premium-app .section-guide.td-guide-collapsed .section-guide-main {
  align-items:center;
}
.premium-app .section-guide.td-guide-collapsed .section-guide-steps {
  display:none!important;
}
.premium-app .section-guide-main > div {min-width:0}
.premium-app .td-guide-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:8px 0 3px;
  padding:6px 10px;
  font-family:inherit;font-weight:700;font-size:11px;line-height:1.4;
  color:#335cbd;
  border:1px solid #d4e0f6;
  border-radius:10px;
  background:#f5f8ff;
  white-space:normal;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease;
}
.premium-app .td-guide-toggle svg {width:14px;height:14px;flex:none}
.premium-app .td-guide-toggle:hover {
  background:#e8f0ff;
  border-color:#aec3ef;
}
.premium-app :is(.td-guide-toggle,.td-density-switch,.td-table-scrollbar button,.td-product-reset):focus-visible {
  outline:3px solid #7794ef;
  outline-offset:3px;
}
.premium-app .td-workspace-glossary {
  grid-column:1/-1;
  min-width:0;
  padding:0;
  margin-top:2px;
  border-top:1px solid #e5eaf3;
}
.premium-app .td-workspace-glossary summary {
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:11px;
  padding:5px 3px;
  min-height:36px;
  color:#345ab0;
  font-family:inherit;font-weight:750;font-size:12px;line-height:1.45;
  cursor:pointer;
  border-radius:7px;
}
.premium-app .td-workspace-glossary summary::-webkit-details-marker {display:none}
.premium-app .td-workspace-glossary summary::after {
  content:'⌄';
  font-size:17px;
  margin-left:5px;
  transition:transform .2s ease;
}
.premium-app .td-workspace-glossary[open] summary::after {transform:rotate(180deg)}
.premium-app .td-workspace-glossary summary svg {width:17px;height:17px}
.premium-app .td-workspace-glossary summary:focus-visible {
  outline:3px solid #6485ee;
  outline-offset:3px;
}
.premium-app .td-workspace-glossary-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
  padding:12px 0 1px;
}
.premium-app .td-workspace-glossary-grid > div {
  background:#fff;
  padding:13px 15px 14px;
  border:1px solid #dfe8f6;
  border-radius:12px;
}
.premium-app .td-workspace-glossary-grid b {
  display:block;
  color:#213b60;
  font-size:12px;
  line-height:1.4;
}
.premium-app .td-workspace-glossary-grid p {
  color:#5c708a;
  font-size:12px;
  line-height:1.6;
  margin:7px 0 0;
}
.premium-app .td-workspace-glossary-note {
  color:#617993;
  font-size:11px;
  line-height:1.55;
  margin:11px 0 2px;
}

/* Density is a user preference on the current browser tab, not a database change. */
.premium-app .td-table-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px 18px;
  flex-wrap:wrap;
  min-height:47px;
  padding:7px 17px;
  background:#fbfcff;
  border-bottom:1px solid #e3e9f3;
}
.premium-app .td-table-density {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.premium-app .td-table-density > span {
  font-size:11px;
  font-weight:700;
  color:#64768e;
}
.premium-app .td-density-switch {
  font-family:inherit;font-weight:750;font-size:11px;line-height:1.4;
  min-height:31px;
  padding:5px 11px;
  color:#3a5aa4;
  background:#fff;
  border:1px solid #d5e2f5;
  border-radius:9px;
  cursor:pointer;
}
.premium-app .td-density-switch[aria-pressed=true] {
  color:#1e5799;
  background:#eaf3ff;
  border-color:#b7d0ee;
}
.premium-app .td-table-scrollbar {
  display:flex;
  align-items:center;
  gap:7px;
  font-family:inherit;font-weight:650;font-size:11px;line-height:1.5;
  color:#5f728c;
}
.premium-app .td-table-scrollbar[hidden] {display:none!important}
.premium-app .td-table-scrollbar > span {margin-right:4px}
.premium-app .td-table-scrollbar button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border:1px solid #d3e0f0;
  border-radius:9px;
  background:#fff;
  color:#315bb7;
  cursor:pointer;
}
.premium-app .td-table-scrollbar button:disabled {
  opacity:.42;
  cursor:default;
}
.premium-app .td-table-scrollbar button:hover:not(:disabled) {
  background:#eaf2ff;
}
.premium-app .td-table-scrollbar svg {width:17px;height:17px;flex:none}
.premium-app .td-table-scrollbar button span {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.premium-app.td-table-compact .data-table .tr:not(.th) {
  min-height:40px;
  padding-top:8px;
  padding-bottom:8px;
}
.premium-app.td-table-compact .data-table .tr:not(.th) > span {
  line-height:1.38;
}
.premium-app.td-table-compact .data-table .tr:not(.th) small {
  line-height:1.3;
}
.premium-app .data-table .tr[hidden] {display:none!important}

/* Product live-search feedback: only reflects already loaded rows. */
.premium-app .td-product-match-count {
  align-self:center;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding-inline:8px;
  font-size:11px;
  font-weight:750;
  color:#37629e;
}
.premium-app .td-product-match-count:empty {display:none}
.premium-app .td-product-no-matches[hidden] {display:none!important}
.premium-app .td-product-no-matches {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-align:center;
  padding:42px 24px 46px;
  color:#29445f;
  background:linear-gradient(160deg,#fcfdff,#f5f9ff);
}
.premium-app .td-product-no-matches strong {
  font-size:15px;
  line-height:1.4;
}
.premium-app .td-product-no-matches p {
  font-size:12px;
  line-height:1.6;
  color:#687c94;
  margin:0;
}
.premium-app .td-product-reset {
  appearance:none;
  cursor:pointer;
  font-size:12px;
  font-weight:750;
  color:#2b57b6;
  padding:9px 13px;
  margin-top:6px;
  background:#ecf3ff;
  border:1px solid #cce0ff;
  border-radius:10px;
}
.premium-app .td-product-reset:hover {background:#e3eeff}

/* Large tables must not cause lateral scrolling of the entire workspace. */
.premium-app .table-panel {max-width:100%;min-width:0}
.premium-app .data-table {
  max-width:100%;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#b5c8e5 #eef3f9;
}
.premium-app .td-table-tools + .data-table .tr.th {
  background:#f6f9fe;
}
.premium-app .td-table-tools + .data-table .tr.th>span {
  font-weight:800;
}
@media(max-width:800px) {
  .premium-app .section-guide {
    gap:10px;
  }
  .premium-app .td-workspace-glossary-grid {grid-template-columns:1fr}
  .premium-app .td-table-tools {padding:8px 13px}
  .premium-app .td-table-scrollbar > span {
    max-width:100px;
    line-height:1.25;
  }
  .premium-app .td-table-density > span {display:none}
}
@media(max-width:500px) {
  .premium-app .td-table-tools {gap:8px}
  .premium-app .td-table-scrollbar > span {font-size:10px;max-width:83px}
  .premium-app .td-table-scrollbar button {width:32px;height:34px}
  .premium-app .td-density-switch {font-size:11px}
  .premium-app .td-workspace-glossary summary {font-size:11px}
  .premium-app .section-guide.td-guide-collapsed {padding:13px}
}
@media(prefers-reduced-motion:reduce),(prefers-contrast:more) {
  .premium-app .td-guide-toggle,
  .premium-app .td-workspace-glossary summary::after {transition:none!important}
}
@media print {
  .premium-app .td-table-tools,.premium-app .td-guide-toggle {display:none!important}
  .premium-app .section-guide-steps {display:grid!important}
}