/* Loaded after the legacy styles. Their .app-nav min-height:100% stretched it
   to the entire content row and defeated sticky travel on long pages. */
@media (min-width: 961px) {
  /* overflow-x:hidden on body implicitly made overflow-y:auto: a second,
     non-scrolling sticky ancestor while the root document actually scrolls. */
  html body { overflow-x: clip; overflow-y: visible; }
  .app-shell > .shell-body { align-items: start; overflow: visible; }
  .app-shell > .shell-body > .app-nav {
    position: sticky; top: var(--ldm-header-height,var(--header-h)); align-self: start;
    height: calc(100dvh - var(--ldm-header-height,var(--header-h)));
    min-height: 0; max-height: calc(100dvh - var(--ldm-header-height,var(--header-h)));
    overflow: hidden; box-sizing: border-box;
  }
  .app-nav > .nav-inner { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}
.nav-inner { display: flex; flex-direction: column; gap: 0; }
a.nav-item,a.v17-tab,a.brand-button,.metric-label a,.dashboard-action-item,.ldm-breadcrumbs a { text-decoration: none; color: inherit; }
a.nav-item:focus-visible,a.v17-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-info summary { cursor: pointer; padding: 8px 0; }
.nav-info[open] .nav-footer-row { overflow-wrap: anywhere; }
.login-preview-indicator { font-size: .75rem; color: var(--muted); }
.ta-detail .ta-badge { color: #334155; background: #e2e8f0; opacity: 1; font-weight: 700; }
.ta-detail .ta-badge[data-status="POTRJENO"] { color: #153e2c; background: #daf4e4; }
.ta-detail .ta-badge[data-status="OSNUTEK"] { color: #174778; background: #dfecff; }
.ta-detail .ta-badge[data-status="POPRAVEK"] { color: #593217; background: #ffedd5; }
.ta-detail .ta-badge[data-status="ARHIVIRANO"] { color: #334155; background: #e2e8f0; }
.ta-correction { display: grid; gap: 1rem; color: var(--text); }
.ta-correction-table th,.ta-correction-table td { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; overflow-wrap: anywhere; }
.ta-correction-table td { vertical-align: top; padding: .5rem; }
.ta-correction-table label { display: block; }
.ta-correction-table input,.ta-correction-table select { display: block; box-sizing: border-box; width: 100%; min-width: 0; margin-top: .35rem; }
.ta-correction-table .ta-warning { color: #ffb86b; font-weight: 700; }
.ta-customer-discount { padding: .65rem; border: 1px solid var(--border); border-radius: .5rem; }
.ta-correction-summary { display: grid; grid-template-columns: auto auto; gap: .4rem 1rem; max-width: 34rem; }
.ta-correction-summary strong { text-align: right; font-variant-numeric: tabular-nums; }
.ta-correction-table { width: 100%; min-width: 920px; table-layout: fixed; }
.ta-correction-table th:nth-child(1) { width: 10%; }
.ta-correction-table th:nth-child(2) { width: 20%; }
.ta-correction-table th:nth-child(3) { width: 12%; }
.ta-correction-table th:nth-child(4),.ta-correction-table th:nth-child(5) { width: 13%; }
.ta-correction-table th:nth-child(6),.ta-correction-table th:nth-child(7) { width: 16%; }
.ta-correction-table textarea { display: block; box-sizing: border-box; width: 100%; min-height: 4rem; resize: vertical; }
[data-overall-discount] { display: grid; gap: .5rem; max-width: 34rem; }
