/* ==========================================================================
   B2B PORTAL - radni prostor (sidebar + komandna traka) i stranice portala
   Oslanja se na tokene iz kumric.css. Prefiksi: ws- (okvir), dash-, qk- (brza
   porudžbina), od-/otl- (porudžbina), lst- (liste), cl- (krojne liste).
   ========================================================================== */

.b2bp {
  --ws-side: 272px;
  --ws-pad: clamp(20px, 2.6vw, 40px);
  --ws-cmd: 64px;
  background: var(--paper);
}
.b2bp main {
  background: var(--paper);
}

/* ---------- Tastaturne oznake ---------- */
.ws kbd,
.kbds kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 2px;
}
.kbds {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

/* ==========================================================================
   OKVIR
   ========================================================================== */
.ws {
  display: grid;
  grid-template-columns: var(--ws-side) minmax(0, 1fr);
  min-height: calc(100dvh - var(--header-h));
}
.ws-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ws-body {
  flex: 1;
  width: 100%;
  max-width: 1480px;
  padding: 28px var(--ws-pad) 72px;
}
.ws-scrim {
  display: none;
}

/* ---------- Sidebar ---------- */
.ws-side {
  position: sticky;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink);
  color: rgba(246, 245, 242, 0.72);
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 245, 242, 0.16) transparent;
}
.ws-side__in {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 14px 68px;
}
.ws-side .ic {
  width: 18px;
  height: 18px;
}

.ws-firm {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 6px 16px;
  border-bottom: 1px solid var(--line-inv);
}
.ws-firm__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-stretch: 122%;
  letter-spacing: 0.02em;
  box-shadow: inset -4px 0 0 var(--wood);
  padding-right: 4px;
}
.ws-firm__mark--sm {
  width: 34px;
  height: 34px;
  font-size: 12.5px;
}
.ws-firm__name {
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  font-stretch: 104%;
  letter-spacing: -0.008em;
  line-height: 1.25;
}
.ws-firm__meta {
  font-size: 11px;
  color: rgba(246, 245, 242, 0.48);
  margin-top: 3px;
}
.ws-side__x {
  display: none;
  color: var(--paper);
}
.ws-side__x:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ws-terms {
  padding: 6px 6px 14px;
  border-bottom: 1px solid var(--line-inv);
}
.ws-terms__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-inv);
}
.ws-terms dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 245, 242, 0.42);
}
.ws-terms dd {
  font-size: 13.5px;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-rabat {
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 7px;
  background: var(--wood);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
}
.ws-terms__sub {
  font-size: 12px;
  color: rgba(246, 245, 242, 0.45);
}
.ws-terms__limit {
  padding-top: 12px;
}
.ws-terms__limit dd {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(246, 245, 242, 0.45);
}
.ws-terms__limit dd b {
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.ws-meter {
  display: block;
  height: 3px;
  margin-top: 10px;
  background: var(--wood);
  position: relative;
  overflow: hidden;
}
.ws-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(246, 245, 242, 0.2);
}

.ws-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 245, 242, 0.38);
  margin: 16px 10px 6px;
}
.ws-label--gap {
  margin-top: 18px;
}
.ws-nav {
  display: grid;
  gap: 1px;
}
.ws-nav__a {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r);
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  font-stretch: 104%;
  color: rgba(246, 245, 242, 0.72);
  transition:
    background-color var(--t-fast),
    color var(--t-fast);
}
.ws-nav__a .ic {
  opacity: 0.75;
  transition: opacity var(--t-fast);
}
.ws-nav__a:hover {
  background: rgba(246, 245, 242, 0.05);
  color: var(--paper);
}
.ws-nav__a:hover .ic {
  opacity: 1;
}
.ws-nav__a.is-on {
  background: rgba(246, 245, 242, 0.09);
  color: #fff;
}
.ws-nav__a.is-on .ic {
  opacity: 1;
  color: var(--wood-200);
}
.ws-nav__a.is-on::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--wood);
}
.ws-nav__l {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-nav__n {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(246, 245, 242, 0.09);
  color: rgba(246, 245, 242, 0.82);
  font-family: var(--f-mono);
  font-size: 11px;
}
.ws-nav__n.is-flag {
  background: var(--wood);
  color: #fff;
}
.ws-nav__k {
  font-size: 10px;
  color: rgba(246, 245, 242, 0.3);
  opacity: 0;
  transition: opacity var(--t-fast);
  letter-spacing: 0.06em;
}
.ws-nav__a:hover .ws-nav__k {
  opacity: 1;
}
.ws-nav__a:has(.ws-nav__n) .ws-nav__k {
  display: none;
}
.ws-nav__a--sub {
  height: 34px;
  font-size: 13.5px;
  color: rgba(246, 245, 242, 0.58);
}
.ws-nav__ext {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.45;
}

.ws-rep {
  margin-top: auto;
  padding: 16px 6px 12px;
  border-top: 1px solid var(--line-inv);
}
.ws-rep .ws-label {
  margin: 0 0 10px;
}
.ws-rep__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ws-rep__act {
  display: flex;
  gap: 4px;
}
.ws-rep__b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-inv);
  border-radius: var(--r);
  color: var(--wood-200);
  transition:
    background-color var(--t-fast),
    color var(--t-fast);
}
.ws-rep__b:hover {
  background: var(--paper);
  color: var(--ink);
}
.ws-rep__b .ic {
  width: 15px !important;
  height: 15px !important;
}
.ws-rep__line {
  display: grid;
  gap: 1px;
  margin: 8px 0 0 48px;
  font-size: 11.5px;
}
.ws-rep__line span {
  font-size: 10.5px;
  color: rgba(246, 245, 242, 0.38);
}
.ws-rep__line a {
  color: rgba(246, 245, 242, 0.6);
}
.ws-rep__line a:hover {
  color: #fff;
}
.ws-side__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 0;
  border-top: 1px solid var(--line-inv);
}
.ws-user {
  display: grid;
  font-size: 13px;
  color: var(--paper);
  line-height: 1.3;
}
.ws-user small {
  font-size: 11.5px;
  color: rgba(246, 245, 242, 0.45);
}
.ws-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(246, 245, 242, 0.6);
  padding: 6px 0;
}
.ws-out:hover {
  color: #fff;
}
.ws-out .ic {
  width: 16px;
  height: 16px;
}

/* Osoba (monogram + ime) */
.person {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.person__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  box-shadow: inset -3px 0 0 var(--wood);
  padding-right: 3px;
}
.person__t {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.person__t b {
  font-size: 14px;
  font-weight: 500;
}
.person__t span {
  font-size: 12.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person--inv .person__mark {
  background: rgba(246, 245, 242, 0.1);
  color: var(--paper);
}
.person--inv .person__t b {
  color: var(--paper);
}
.person--inv .person__t span {
  color: rgba(246, 245, 242, 0.5);
}

/* ---------- Mobilna traka portala (sakrivena na desktopu) ---------- */
.ws-mbar,
.ws-tabs {
  display: none;
}

/* ---------- Komandna traka ---------- */
.ws-cmd {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  border-bottom: 1px solid var(--line);
}
.ws-cmd__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 560px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: var(--ws-cmd);
  padding: 0 var(--ws-pad);
  max-width: 1480px;
}
.ws-cmd__crumb {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-cmd__crumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ws-cmd__crumb span {
  margin: 0 8px;
  color: var(--ink-4);
}
.ws-cmd__crumb b {
  color: var(--ink);
  font-weight: 500;
}
.ws-cmd__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ws-cmd__note {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.ws-cmd--nosearch .ws-cmd__in {
  grid-template-columns: minmax(0, 1fr) auto;
}
.ws-cmd--nosearch .ws-cmd__spacer {
  display: none;
}
.ws-cmd__cta .ic {
  width: 16px;
  height: 16px;
  color: var(--wood-200);
}

.ws-qs {
  position: relative;
}
.ws-qs__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: var(--r);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    background-color var(--t-fast);
}
.ws-qs__field:hover {
  border-color: var(--line-3);
}
.ws-qs__field:focus-within {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(165, 123, 85, 0.22);
}
.ws-qs__field > .ic {
  width: 18px;
  height: 18px;
  color: var(--ink);
  flex: none;
}
.ws-qs__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 15px;
}
.ws-qs__field input:focus {
  outline: none;
}
.ws-qs__field input::placeholder {
  color: var(--ink-4);
}
.ws-qs__field input::-webkit-search-cancel-button {
  display: none;
}
.ws-qs__field:focus-within .ws-qs__kbd {
  opacity: 0;
}

/* Padajući rezultati (zajedničko za sve pretrage u portalu) */
.ws-qs__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 640px);
  z-index: 40;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  box-shadow:
    0 24px 50px -24px rgba(23, 26, 28, 0.42),
    0 2px 6px rgba(23, 26, 28, 0.04);
  animation: rise 0.28s var(--ease-out);
  overflow: hidden;
}
.ws-qs__list {
  max-height: min(430px, 60dvh);
  overflow-y: auto;
  padding: 6px;
  overscroll-behavior: contain;
}
.ws-qs__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 11px;
  color: var(--ink-3);
}
.ws-qs__foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ws-qs__foot kbd {
  height: 19px;
  min-width: 19px;
  font-size: 10px;
}
.ws-qs__foot a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 500;
}
.ws-qs__foot a .ic {
  width: 14px;
  height: 14px;
}

.pick {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 7px 10px 7px 7px;
  border-radius: var(--r);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast);
}
.pick + .pick {
  margin-top: 1px;
}
.pick:hover {
  background: var(--card);
}
.pick.is-active {
  background: var(--card);
  box-shadow:
    inset 2px 0 0 var(--wood),
    inset 0 0 0 1px var(--line);
}
.pick__img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: var(--paper-2);
}
.pick__t {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.pick__code {
  display: flex;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.pick__code b {
  font-weight: 500;
  color: var(--ink);
}
.pick__n {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick__m {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  font-size: 12px;
  color: var(--ink-3);
}
.pick__m .stock {
  font-size: 12px;
}
.pick__p {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pick__p b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pick__p small {
  font-size: 11px;
  color: var(--ink-3);
}
.pick mark {
  background: var(--wood-100);
  color: inherit;
  box-shadow: 0 1px 0 var(--wood);
  padding: 0 1px;
}
.pick--add {
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
}
.pick__add {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pick__q {
  width: 64px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #fff;
  font-family: var(--f-mono);
  font-size: 13px;
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}
.pick__q::-webkit-inner-spin-button,
.pick__q::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pick__q:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(165, 123, 85, 0.22);
}
.pick__u {
  font-size: 11.5px;
  color: var(--ink-3);
  min-width: 22px;
}
.pick__b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  transition: background-color var(--t-fast);
}
.pick__b:hover {
  background: var(--wood-600);
}
.pick__b .ic {
  width: 18px;
  height: 18px;
}
.pick--out {
  opacity: 0.55;
}
.pick-none {
  padding: 18px 14px;
  display: grid;
  gap: 8px;
}
.pick-none p {
  font-size: 14px;
  color: var(--ink-2);
}
.pick-none .mono {
  font-size: 12px;
  color: var(--ink-3);
}
.pick-none .chips {
  gap: 6px;
}

/* Prečice */
.ws-keys {
  position: relative;
}
.ws-keys__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 6px 0 10px;
  border-radius: var(--r);
  font-size: 13px;
  color: var(--ink-3);
  transition:
    background-color var(--t-fast),
    color var(--t-fast);
}
.ws-keys__btn:hover {
  color: var(--ink);
}
.ws-keys__btn:hover,
.ws-keys__btn[aria-expanded="true"] {
  background: var(--paper-2);
}
.ws-keys__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  width: 290px;
  padding: 14px 16px 10px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  box-shadow: 0 24px 50px -24px rgba(23, 26, 28, 0.42);
  animation: rise 0.28s var(--ease-out);
}
.ws-keys__pop .ws-label {
  color: var(--ink-3);
  margin: 0 0 8px;
}
.ws-keys__pop dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Zaglavlje stranice u portalu ---------- */
.ws-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  align-items: end;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.ws-head .eyebrow {
  margin-bottom: 12px;
}
.ws-head__t {
  font-size: clamp(30px, 2.9vw, 44px);
  font-weight: 500;
  letter-spacing: -0.034em;
  line-height: 1.02;
}
.ws-head__lead {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 66ch;
}
.ws-head__side {
  justify-self: end;
}
.ws-head__side .row {
  gap: 10px 16px;
  justify-content: flex-end;
}
.ws-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 16px;
  transition: color var(--t-fast);
}
.ws-back:hover {
  color: var(--ink);
}
.ws-back .ic {
  width: 16px;
  height: 16px;
  transition: transform var(--t) var(--ease-out);
}
.ws-back:hover .ic {
  transform: translateX(-3px);
}
.keys-legend {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 22px;
}
.keys-legend div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.keys-legend dt {
  min-width: 64px;
}

/* ---------- Panel ---------- */
.wpanel {
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.wpanel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.wpanel__t {
  font-size: 16.5px;
  font-weight: 500;
  font-stretch: 106%;
  letter-spacing: -0.012em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wpanel__n {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: var(--paper-2);
  font-size: 11px;
  color: var(--ink-2);
  border-radius: 1px;
}
.wpanel__link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.wpanel__link .ic {
  width: 16px;
  height: 16px;
  transition: transform var(--t) var(--ease-out);
}
.wpanel__link:hover {
  color: var(--wood-700);
}
.wpanel__link:hover .ic {
  transform: translateX(3px);
}
.wpanel__x {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 14px 0;
}

/* ---------- Tabele portala ---------- */
.table-wrap--flush {
  border: 0;
  background: transparent;
}
.table-wrap--ws {
  border: 1px solid var(--line);
  background: var(--card);
}
.dtable--ws {
  font-size: 14px;
}
.dtable--ws th {
  padding: 10px 16px;
  font-size: 10.5px;
}
.dtable--ws td {
  padding: 12px 16px;
}
.dtable--ws tbody tr:last-child td {
  border-bottom: 0;
}
.dtable--ws tfoot td {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper);
  border-top: 1px solid var(--line-2);
}
.ono {
  display: inline-grid;
  gap: 2px;
  line-height: 1.25;
}
.ono b {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.ono span {
  font-size: 11.5px;
  color: var(--ink-3);
}
a.ono:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--wood);
}
.t-proj {
  font-weight: 500;
  line-height: 1.35;
}
.t-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}
.t-sub .ic {
  width: 13px;
  height: 13px;
}
.t-date,
.t-by {
  color: var(--ink-2);
  white-space: nowrap;
}
.t-date {
  font-size: 12.5px;
}
.t-act {
  text-align: right;
  white-space: nowrap;
}
.t-act > * {
  vertical-align: middle;
}
.t-act > * + * {
  margin-left: 6px;
}
.t-sum {
  white-space: nowrap;
}
.t-na {
  color: var(--ink-4);
}
.t-link {
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-3);
}
.t-link:hover {
  text-decoration-color: var(--wood);
}
.t-no {
  color: var(--ink-4);
  font-size: 11.5px;
  width: 44px;
}
.t-strike {
  display: block;
  font-size: 11.5px;
  color: var(--ink-4);
}
.t-rab {
  color: var(--wood-700);
  font-size: 12.5px;
}
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.money small {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
}
.status--wood {
  color: var(--wood-600);
}
.dtable .status-dot {
  white-space: nowrap;
}
.dtable .btn--sm {
  --h: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.dtable .btn--sm .ic {
  width: 16px;
  height: 16px;
}
.dtable .btn--text.btn--sm {
  padding: 4px 2px;
  height: auto;
}

/* Proizvod u ćeliji */
.pthumb {
  display: block;
  flex: none;
  width: var(--s, 40px);
  height: var(--s, 40px);
  overflow: hidden;
  background: var(--paper-2);
}
.pthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pcell__t {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.pcell__sku {
  font-size: 11.5px;
  color: var(--ink-3);
}
.pcell__n {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcell__n:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--wood);
}
.pcell__m {
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dokumenti, fajlovi, usluge, koraci */
.doc-tags {
  display: inline-flex;
  gap: 4px;
}
.doc-tag {
  display: inline-grid;
  place-items: center;
  height: 22px;
  min-width: 28px;
  padding: 0 5px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 1px;
  transition:
    background-color var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}
a.doc-tag:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.doc-tag.is-off {
  color: var(--ink-4);
  border-style: dashed;
  background: transparent;
  cursor: default;
}
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  max-width: 230px;
  padding-right: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  transition: border-color var(--t-fast);
}
.fchip:hover {
  border-color: var(--ink);
}
.fchip__t {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 0 6px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 500;
  background: var(--paper-2);
  color: var(--ink-2);
}
.fchip__t[data-t="PDF"] {
  background: #f1e0db;
  color: #8e3b2a;
}
.fchip__t[data-t="XLSX"],
.fchip__t[data-t="XLS"],
.fchip__t[data-t="CSV"] {
  background: #e0eae2;
  color: #2f5b3e;
}
.fchip__n {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.svc-ics {
  display: inline-flex;
  gap: 4px;
}
.svc-ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: var(--paper);
}
.svc-ic .ic {
  width: 16px;
  height: 16px;
}
.steps6 {
  display: inline-flex;
  gap: 2px;
}
.steps6 i {
  width: 12px;
  height: 3px;
  background: var(--line-2);
}
.steps6 i.is-done {
  background: var(--ink-2);
}
.steps6 i.is-cur {
  background: var(--wood);
}
.cstat {
  display: grid;
  gap: 7px;
  justify-items: start;
}

/* ---------- Prazna stanja u portalu ---------- */
.empty--ws {
  padding: 48px 24px;
}
.empty--ws .empty__art {
  width: 96px;
  height: 96px;
}
.empty--ws .empty__art .ic {
  width: 30px;
  height: 30px;
}
.dtable__empty td {
  padding: 0 !important;
}
.dtable__empty:hover {
  background: transparent !important;
}

/* ==========================================================================
   PREGLED (dashboard)
   ========================================================================== */
.dash-hello {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  align-items: end;
  padding-bottom: 24px;
}
.dash-hello .eyebrow {
  margin-bottom: 14px;
}
.dash-hello__t {
  font-size: clamp(34px, 3.5vw, 54px);
  font-weight: 450;
  letter-spacing: -0.042em;
  line-height: 1;
}
.dash-hello__lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.dash-hello__lead a {
  color: var(--ink);
  font-size: 0.92em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--wood);
}
.dash-hello__act {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dq {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 24px 18px 28px;
  margin-bottom: 20px;
}
.dq::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 4px;
  background: linear-gradient(180deg, var(--wood) 0 60%, var(--wood-600) 60%);
}
.dq__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dq__t {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  font-stretch: 106%;
  letter-spacing: -0.01em;
}
.dq__t .ic {
  color: var(--wood-600);
}
.dq__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.dq__hint > span {
  color: var(--ink-4);
}
.qa {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 1.5fr) 170px auto;
  gap: 10px;
  align-items: end;
}
.qa__lbl {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.qa__sku {
  position: relative;
}
.qa__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line-3);
  background: #fff;
  border-radius: var(--r);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}
.qa__field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(165, 123, 85, 0.22);
}
.qa__field .ic {
  width: 18px;
  height: 18px;
  flex: none;
}
.qa__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 15.5px;
}
.qa__field input:focus {
  outline: none;
}
.qa__field input::placeholder {
  font-family: var(--f-sans);
  color: var(--ink-4);
  font-size: 14.5px;
}
.qa__field:focus-within kbd {
  opacity: 0;
}
.qa__drop {
  width: max(100%, 600px);
}
.qa__prev {
  height: 52px;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 14px;
  border: 1px dashed var(--line-2);
  background: var(--paper);
  border-radius: var(--r);
}
.qa__prev.is-on {
  border-style: solid;
  border-color: var(--line);
  background: #fff;
  padding: 0 14px 0 6px;
}
.qa__ph {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.35;
  min-width: 0;
}
.qa__ph > span:last-child {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.qa__ph-box {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--ink-4);
}
.qa__ph-box .crop {
  transform: scale(0.6);
  color: var(--ink-4);
}
.qa__ph-box .ic {
  width: 18px;
  height: 18px;
}
.qa-p {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  animation: rise 0.35s var(--ease-out);
}
.qa-p img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}
.qa-p__t {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.qa-p__t b {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qa-p__t .stock {
  font-size: 12px;
}
.qa-p__pr {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qa-p__pr b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.qa-p__pr small {
  font-size: 11px;
  color: var(--ink-3);
}
.qa-p--err {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--err);
  font-size: 13.5px;
}
.qa-p--err .ic {
  width: 18px;
  height: 18px;
}
.qa__qty .qty {
  width: 100%;
  height: 52px;
  background: #fff;
}
.qa__add {
  height: 52px;
}
.qa__often {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  min-width: 0;
}
.qa__often .chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  padding: 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.qa__often .chips::-webkit-scrollbar {
  display: none;
}
.qa__often > .mono,
.qk-often > .mono {
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.qa__often .chip,
.qk-often .chip {
  gap: 7px;
  background: var(--paper);
}
.qa__often .chip b,
.qk-often .chip b {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.qa__often .chip span,
.qk-often .chip span {
  font-size: 12.5px;
  color: var(--ink-3);
}
.qa__often .chip:hover span,
.qk-often .chip:hover span {
  color: var(--ink-2);
}
.qk-often .chip .ic {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

.kpis {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.25fr 1.1fr;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 20px;
}
.kpi {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 20px 20px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.kpi:first-child {
  border-left: 0;
}
.kpi__l {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kpi__v {
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 500;
  font-stretch: 106%;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  white-space: nowrap;
}
.kpi__v small {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}
.kpi__s {
  font-size: 12.5px;
  color: var(--ink-3);
}
.kpi__up {
  color: var(--ok);
  font-weight: 600;
}
.kpi__meter {
  display: block;
  height: 3px;
  background: var(--paper-3);
  margin: 6px 0 2px;
  overflow: hidden;
}
.kpi__meter i {
  display: block;
  height: 100%;
  background: var(--ink);
}
.kpi__go {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--ink-4);
  transition:
    color var(--t-fast),
    transform var(--t) var(--ease-out);
}
.kpi__go .ic {
  width: 16px;
  height: 16px;
}
a.kpi {
  transition: background-color var(--t-fast);
}
a.kpi:hover {
  background: #fff;
}
a.kpi:hover .kpi__go {
  color: var(--ink);
  transform: translate(2px, -2px);
}
.kpi__bars {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 96px;
  height: auto;
  overflow: visible;
}
.kpi__bars rect {
  fill: var(--paper-3);
  transition: fill var(--t-fast);
}
.kpi__bars rect.is-cur {
  fill: var(--wood);
}
.kpi__bars rect:hover {
  fill: var(--ink-3);
}
.kpi__bars text {
  font-family: var(--f-mono);
  font-size: 8.5px;
  fill: var(--ink-4);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.dash-main,
.dash-side {
  min-width: 0;
}
.dtable--recent .ono {
  white-space: nowrap;
}
.dtable--recent .t-act {
  width: 64px;
}
.dtable--recent .ibtn .ic {
  width: 16px;
  height: 16px;
}
.dtable--recent th.num:last-child {
  text-align: right;
}

.klmini__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(150px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.klmini__row:last-child {
  border-bottom: 0;
}
.klmini__row.is-flag {
  background: var(--wood-50);
  box-shadow: inset 3px 0 0 var(--wood);
}
.klmini__id {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.klmini__id b {
  font-size: 12.5px;
  font-weight: 500;
}
.klmini__id span {
  font-size: 14px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.klmini__st {
  display: grid;
  gap: 7px;
  justify-items: start;
}
.klmini__act {
  justify-self: end;
}
.klmini__link {
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-3);
}
.klmini__eta {
  font-size: 11.5px;
  color: var(--ink-3);
}

.inbox__i {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.inbox__i:last-child {
  border-bottom: 0;
}
.inbox__ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.inbox__ic .ic {
  width: 18px;
  height: 18px;
}
.inbox__i--wood .inbox__ic {
  background: var(--wood-100);
  color: var(--wood-700);
}
.inbox__i--ok .inbox__ic {
  background: var(--ok-bg);
  color: var(--ok);
}
.inbox__t {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.35;
}
.inbox__t b {
  font-size: 14px;
  font-weight: 500;
}
.inbox__t .mono {
  font-size: 11.5px;
  color: var(--ink-2);
}
.inbox__t span:last-child {
  font-size: 12.5px;
  color: var(--ink-3);
}
.inbox__go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast),
    color var(--t-fast);
}
.inbox__go:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.inbox__go .ic {
  width: 16px;
  height: 16px;
}

.slmini li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.slmini li:last-child {
  border-bottom: 0;
}
.slmini__a {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.35;
}
.slmini__a b {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slmini__a:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--wood);
}
.slmini__a .mono {
  font-size: 11.5px;
  color: var(--ink-3);
}
.slmini__type {
  font-size: 10px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-700) !important;
}

.promo {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.promo__img {
  position: relative;
  overflow: hidden;
}
.promo__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.promo:hover .promo__img img {
  transform: scale(1.06);
}
.promo__body {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 16px 16px 14px;
}
.promo__t {
  font-size: 15.5px;
  font-weight: 500;
  font-stretch: 104%;
  line-height: 1.28;
  letter-spacing: -0.008em;
}
.promo__x {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}
.promo .link-arrow {
  font-size: 14px;
}
.news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast);
}
.news:hover {
  border-color: var(--ink);
  background: var(--card);
}
.news .mono {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.news b {
  grid-column: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.news .ic {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.firm {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + var(--ws-cmd) + 16px);
}
.firm__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.firm__head .eyebrow {
  margin-bottom: 10px;
}
.firm__t {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.026em;
}
.firm__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1.15fr;
  border: 1px solid var(--line);
  background: var(--card);
}
.firm__cell {
  padding: 20px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.firm__cell:first-child {
  border-left: 0;
}
.firm__l {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}
.firm__l span {
  color: var(--ink-4);
}
.kv--ws {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 16px;
  font-size: 13.5px;
}
.kv--ws dd {
  font-weight: 500;
}
.kv--ws dd.mono {
  font-weight: 400;
  font-size: 13px;
}
.addr li {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.addr li:first-child {
  padding-top: 0;
}
.addr__k {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13.5px;
  font-weight: 500;
}
.addr__k .badge {
  height: 20px;
  font-size: 9.5px;
  padding: 0 6px;
}
.addr__v {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}
.addr__add {
  margin-top: 12px;
  font-size: 13.5px;
}
.addr__add .ic {
  width: 16px;
  height: 16px;
}
.usr li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.usr li:first-child {
  padding-top: 0;
}
.usr .person__mark {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.usr .person__t b {
  font-size: 13.5px;
}
.usr .person__t span {
  font-size: 11.5px;
}
.usr__r {
  grid-column: 1;
  font-size: 12px;
  color: var(--ink-3);
  padding-left: 44px;
}
.usr .badge {
  grid-column: 2;
  grid-row: 1;
  height: 20px;
  font-size: 9.5px;
}
.contacts li {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contacts li:first-child {
  padding-top: 0;
}
.contacts li:last-child {
  border-bottom: 0;
}
.contacts .person__mark {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.contacts .person__t b {
  font-size: 13.5px;
}
.contacts .person__t span {
  font-size: 11.5px;
  white-space: normal;
}
.contacts__l {
  display: grid;
  gap: 1px;
  padding-left: 44px;
  font-size: 12.5px;
}
.contacts__l a {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contacts__l a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contacts__l .mono {
  font-size: 12px;
}

/* ==========================================================================
   BRZA PORUDŽBINA
   ========================================================================== */
.qk-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.qk-tools__l {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qk-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  font-stretch: 104%;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast),
    color var(--t-fast);
}
.qk-tool:hover {
  border-color: var(--ink);
}
.qk-tool .ic {
  width: 17px;
  height: 17px;
}
.qk-tool .ic:last-child:not(:first-child) {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  transition: transform var(--t) var(--ease-out);
}
.qk-tool[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.qk-tool[aria-expanded="true"] .ic:last-child:not(:first-child) {
  color: var(--paper);
  transform: rotate(180deg);
}
.qk-tool:focus-within {
  outline: 2px solid var(--wood);
  outline-offset: 3px;
}
.qk-clear {
  font-size: 13.5px;
  color: var(--ink-3);
}
.qk-clear .ic {
  width: 16px;
  height: 16px;
}
.qk-clear:hover {
  color: var(--err);
}
.qk-menu {
  position: relative;
}
.qk-menu__pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 35;
  width: 340px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  box-shadow: 0 24px 50px -24px rgba(23, 26, 28, 0.42);
  animation: rise 0.28s var(--ease-out);
}
.qk-menu__l {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 10px 6px;
}
.qk-menu__pop > button {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border-radius: var(--r);
  line-height: 1.35;
  transition: background-color var(--t-fast);
}
.qk-menu__pop > button:hover,
.qk-menu__pop > button:focus-visible {
  background: var(--card);
  box-shadow: inset 2px 0 0 var(--wood);
  outline: none;
}
.qk-menu__pop > button b {
  font-size: 14px;
  font-weight: 500;
}
.qk-menu__pop > button b.mono {
  font-size: 13px;
}
.qk-menu__pop > button span {
  font-size: 12.5px;
  color: var(--ink-3);
}
.qk-menu__pop > button span.mono {
  font-size: 11px;
}
.qk-menu__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
}
.qk-menu__all .ic {
  width: 16px;
  height: 16px;
}

.qk-paste {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  animation: rise 0.4s var(--ease-out);
}
.qk-paste__l {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.qk-paste textarea {
  width: 100%;
  min-height: 154px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 26px;
  background:
    repeating-linear-gradient(180deg, transparent 0 25px, var(--line) 25px 26px)
      0 12px / 100% 26px local,
    #fff;
}
.qk-paste textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(165, 123, 85, 0.22);
}
.qk-paste__side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 28px;
}
.qk-paste__fmt {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.qk-paste__fmt .mono {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.qk-paste__res {
  font-size: 13px;
}
.qk-paste__res:empty {
  display: none;
}
.qk-paste__res.is-ok {
  color: var(--ok);
}
.qk-paste__res.is-warn {
  color: var(--warn);
}

.qk-often {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 16px;
  min-width: 0;
}
.qk-often .chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
  mask-image: linear-gradient(90deg, #000 94%, transparent);
}
.qk-often .chips::-webkit-scrollbar {
  display: none;
}
.qk-often .chip.is-added {
  border-color: var(--ok);
  color: var(--ok);
}

.qk-done {
  margin-bottom: 14px;
  animation: rise 0.45s var(--ease-out);
}
.qk-done > span {
  display: block;
  color: var(--ink-2);
}
.qk-done__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 8px;
}
.qk-done__act .link-arrow {
  font-size: 14px;
}
.qk-done .btn--text {
  font-size: 13.5px;
}

.qk {
  position: relative;
  border: 1px solid var(--line);
  background: var(--card);
}
.qk-table {
  table-layout: fixed;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.qk-table col.c-no {
  width: 52px;
}
.qk-table col.c-sku {
  width: 232px;
}
.qk-table col.c-qty {
  width: 156px;
}
.qk-table col.c-price {
  width: 112px;
}
.qk-table col.c-sum {
  width: 128px;
}
.qk-table col.c-x {
  width: 52px;
}
.qk-table th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.qk-table th:first-child {
  text-align: center;
}
.qk-table .num {
  text-align: right;
}
.qk-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.qk-row {
  transition: background-color var(--t-fast);
}
.qk-row:hover {
  background: #fff;
}
.qk-row.is-flash {
  animation: qkflash 1.2s var(--ease-out);
}
@keyframes qkflash {
  0% {
    background: var(--wood-100);
  }
  100% {
    background: transparent;
  }
}
.qk-row.is-enter {
  animation: rise 0.4s var(--ease-out) both;
}
.qk-no {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-4);
}
.qk-row.is-ok .qk-no {
  color: var(--ink-3);
}
.qk-in {
  position: relative;
}
.qk-in__i {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    background-color var(--t-fast);
}
.qk-in__i::placeholder {
  font-family: var(--f-sans);
  color: var(--ink-4);
}
.qk-in__i:hover {
  border-color: var(--line-3);
}
.qk-in__i:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(165, 123, 85, 0.22);
}
.qk-in__ok {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  opacity: 0;
  color: var(--ok);
  transition:
    opacity var(--t-fast),
    transform var(--t) var(--ease-out);
  pointer-events: none;
}
.qk-in__ok .ic {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.qk-row.is-ok .qk-in__ok {
  opacity: 1;
  transform: translateY(-50%);
}
.qk-row.is-new .qk-in__i {
  border-style: dashed;
  background: transparent;
}
.qk-row.is-new .qk-in__i:focus {
  border-style: solid;
  background: #fff;
}
.qk-row.is-err .qk-in__i {
  border-color: var(--err);
  background: #fff;
}
.qk-row.is-err {
  background: color-mix(in srgb, var(--err-bg) 45%, transparent);
}
.qk-ph {
  font-size: 11.5px;
  color: var(--ink-4);
}
.qk-row:not(:focus-within) .qk-ph {
  opacity: 0;
}
.qk-st {
  display: block;
  padding-left: 52px;
  margin-top: 4px;
}
.qk-st .stock {
  font-size: 12px;
}
.qk-st .qk-warn {
  display: block;
  font-size: 11.5px;
  color: var(--warn);
  margin-top: 1px;
}
.qk-err {
  display: grid;
  gap: 6px;
}
.qk-err__t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--err);
}
.qk-err__t .ic {
  width: 16px;
  height: 16px;
}
.qk-err__s {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.qk-sug {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink);
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast),
    color var(--t-fast);
}
.qk-sug:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.qk-sug span {
  font-family: var(--f-sans);
  font-size: 11.5px;
  color: var(--ink-3);
}
.qk-sug:hover span {
  color: rgba(246, 245, 242, 0.7);
}
.qk-qty .qty {
  width: 100%;
  background: #fff;
}
.qk-row.is-new .qk-qty .qty {
  opacity: 0.45;
}
.qk-row.is-new:focus-within .qk-qty .qty {
  opacity: 1;
}
.qk-price b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.qk-price s {
  display: block;
  font-size: 11.5px;
  color: var(--ink-4);
}
.qk-sum b {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qk-sum__u {
  display: none;
}
.qk-x {
  text-align: center;
}
.qk-x .ibtn {
  color: var(--ink-4);
}
.qk-x .ibtn:hover {
  color: var(--err);
  background: var(--err-bg);
}
.qk-row.is-new .qk-x .ibtn {
  visibility: hidden;
}
.qk-add {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
}
.qk-add__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px dashed var(--line-3);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast);
}
.qk-add__btn:hover {
  border-color: var(--ink);
  border-style: solid;
  background: #fff;
}
.qk-add__btn .ic {
  width: 16px;
  height: 16px;
}
.qk-add__hint {
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.qk-ac {
  position: absolute;
  z-index: 40;
  width: min(600px, calc(100% - 24px));
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  box-shadow: 0 24px 50px -24px rgba(23, 26, 28, 0.42);
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
  animation: rise 0.22s var(--ease-out);
}

.qk-after {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.qk-after .fine {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qk-after .fine .ic {
  width: 16px;
  height: 16px;
  flex: none;
}
.qk-after__inq {
  display: none;
}

.qk-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  margin: 28px calc(var(--ws-pad) * -1) -72px;
  background: var(--ink);
  color: var(--paper);
}
.qk-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 4px;
  background: linear-gradient(180deg, var(--wood) 0 60%, var(--wood-600) 60%);
}
.qk-bar__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: center;
  padding: 14px var(--ws-pad) calc(14px + env(safe-area-inset-bottom));
}
.qk-bar__sum {
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 2.4vw, 36px);
}
.qk-bar__sum dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 245, 242, 0.5);
  margin-bottom: 2px;
}
.qk-bar__sum dd {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.qk-bar__sum .is-total dd {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.qk-bar__sum .is-total small {
  font-size: 12px;
  font-weight: 400;
  color: rgba(246, 245, 242, 0.55);
}
.qk-bar__meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 11px;
  color: rgba(246, 245, 242, 0.5);
}
.qk-bar__meta b {
  color: var(--wood-200);
  font-weight: 500;
}
.qk-bar__meta .is-over {
  color: #e7b9a9;
}
.qk-bar__act {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qk-bar .btn--outline {
  border-color: rgba(246, 245, 242, 0.28);
  color: var(--paper);
}
.qk-bar .btn--outline:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.qk-bar__go[disabled] {
  opacity: 0.35;
}
.has-qkbar .toasts {
  bottom: 108px;
}
@media (min-width: 901px) {
  .b2bp:has(.drawer.is-open) .toasts {
    right: calc(min(480px, 100%) + 24px);
    bottom: 24px;
  }
}
@media (max-width: 900px) {
  .b2bp:has(.drawer.is-open) .toasts {
    top: 76px;
    bottom: auto !important;
  }
}
.has-qkbar .dock {
  bottom: 100px;
}

/* ==========================================================================
   PORUDŽBINE
   ========================================================================== */
.ofilters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ofilters__search {
  flex: 1 1 260px;
}
.ofilters__search .ic {
  width: 18px;
  height: 18px;
  left: 14px;
}
.ofilters__search .input {
  height: 40px;
  font-size: 14px;
  padding-left: 42px;
}
.ofilters__seg button .mono {
  font-size: 11px;
  color: var(--ink-4);
  margin-left: 2px;
}
.ofilters__seg button[aria-pressed="true"] .mono {
  color: var(--wood-700);
}
.ofilters__sel select {
  min-width: 180px;
  background-color: var(--card);
}
.dtable--orders td {
  padding-top: 13px;
  padding-bottom: 13px;
}
.dtable--orders .ono,
.dtable--cuts .ono {
  white-space: nowrap;
}
.dtable--orders tbody tr[data-o] {
  cursor: default;
}
.ofoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ofoot__n {
  font-size: 12px;
  color: var(--ink-3);
}
.ofoot__n b {
  color: var(--ink);
  font-weight: 500;
}
.ofoot__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.ofoot__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   POJEDINAČNA PORUDŽBINA
   ========================================================================== */
.od-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.od-head .eyebrow {
  margin-bottom: 12px;
}
.od-head__no {
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.od-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.od-head__meta .status-dot {
  font-size: 14px;
}
.od-head__meta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--wood);
}
.od-head__act {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.otl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  padding: 28px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.otl__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.otl__list::before,
.otl__list::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 11px;
  height: 2px;
}
.otl__list::before {
  right: calc(20% - 11px);
  background: repeating-linear-gradient(
    90deg,
    var(--line-3) 0 4px,
    transparent 4px 8px
  );
}
.otl__list::after {
  width: calc(var(--p) * 0.8);
  background: var(--ink);
}
.otl__s {
  position: relative;
  display: grid;
  gap: 3px;
  align-content: start;
  padding-right: 16px;
}
.otl__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--line-3);
  background: var(--paper);
  color: var(--paper);
}
.otl__dot .ic {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}
.otl__s.is-done .otl__dot {
  background: var(--ink);
  border-color: var(--ink);
}
.otl__s.is-cur .otl__dot {
  border-color: var(--wood);
  box-shadow: 0 0 0 4px var(--wood-100);
}
.otl__s.is-cur .otl__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wood);
  animation: otlpulse 1.8s var(--ease-io) infinite;
}
@keyframes otlpulse {
  50% {
    transform: scale(0.6);
    opacity: 0.6;
  }
}
.otl__t {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
}
.otl__d {
  font-size: 11.5px;
  color: var(--ink-2);
}
.otl__x {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.otl__s:not(.is-done):not(.is-cur) .otl__t {
  color: var(--ink-3);
}
.otl__s:not(.is-done):not(.is-cur) .otl__d {
  color: var(--ink-3);
}
.otl__now {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.otl__now-l {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.otl__now li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
.otl__now li .ic {
  width: 16px;
  height: 16px;
}
.otl__now li.is-done {
  color: var(--ink-2);
}
.otl__now li.is-done .ic {
  color: var(--ok);
  stroke-width: 2;
}
.otl__now li.is-cur {
  color: var(--ink);
  font-weight: 500;
}
.otl__spin {
  width: 14px;
  height: 14px;
  margin: 1px;
  border-radius: 50%;
  border: 2px solid var(--wood-200);
  border-top-color: var(--wood);
  animation: spin 0.9s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.od-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.od-main,
.od-side {
  min-width: 0;
}
.dtable--items td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.od-cut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--wood-50);
}
.od-cut__ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--wood-100);
  color: var(--wood-700);
}
.od-cut__ic .ic {
  width: 18px;
  height: 18px;
}
.od-cut__t {
  display: grid;
  line-height: 1.35;
}
.od-cut__t b {
  font-size: 13px;
  font-weight: 500;
}
.od-cut__t span {
  font-size: 12.5px;
  color: var(--ink-3);
}
.od-cut .btn {
  margin-left: auto;
}
.od-cut .btn .ic {
  width: 16px;
  height: 16px;
}
.svc-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.svc-row .ic {
  width: 18px;
  height: 18px;
  color: var(--wood-700);
}
.alog li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.alog li:last-child {
  border-bottom: 0;
}
.alog li:first-child .alog__t {
  font-weight: 500;
}
.alog__d {
  font-size: 11.5px;
  color: var(--ink-3);
}
.alog__w {
  font-size: 12.5px;
  color: var(--ink-3);
}

.sum {
  padding: 10px 18px 4px;
}
.sum > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
}
.sum dt {
  font-size: 13.5px;
  color: var(--ink-3);
}
.sum dd {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sum__sub {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px !important;
}
.sum__sub dt {
  color: var(--ink-2);
}
.sum__total {
  border-top: 1px solid var(--ink);
  margin-top: 8px;
  padding-top: 14px !important;
}
.sum__total dt {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}
.sum__total dd {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.sum__total small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}
.sum__save {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 18px 0;
  padding: 9px 12px;
  background: var(--wood-50);
  color: var(--wood-700);
  font-size: 11.5px;
}
.sum__save .ic {
  width: 15px;
  height: 15px;
}
.sum__pay {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  margin: 14px 18px 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.sum__pay .ic {
  width: 17px;
  height: 17px;
  color: var(--ink-2);
  margin-top: 1px;
}
.sum__pay b {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.ship {
  padding: 16px 18px 12px;
}
.ship__k {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}
.ship__k .ic {
  color: var(--wood-700);
}
.ship__k > span {
  display: grid;
  line-height: 1.35;
}
.ship__k b {
  font-size: 14px;
  font-weight: 500;
}
.ship__k .mono {
  font-size: 12px;
  color: var(--ink-2);
}
.ship__a {
  margin: 12px 0 10px 32px;
  font-size: 14px;
  line-height: 1.45;
}
.ship__n {
  margin-left: 32px;
  display: grid;
  gap: 3px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.ship__n li {
  position: relative;
  padding-left: 14px;
}
.ship__n li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: var(--wood);
}
.ship .btn--text {
  margin: 12px 0 0 32px;
  font-size: 13.5px;
}
.docs-ws {
  padding: 6px;
}
.docrow {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 7px 10px 7px 7px;
  border-radius: var(--r);
  transition: background-color var(--t-fast);
}
a.docrow:hover {
  background: var(--paper);
}
.docrow .file-row__type {
  height: 36px;
  font-size: 9.5px;
}
.docrow__t {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.docrow__t b {
  font-size: 13.5px;
  font-weight: 500;
}
.docrow__t .mono {
  font-size: 11px;
  color: var(--ink-3);
}
.docrow > .ic {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  transition:
    transform var(--t) var(--ease-out),
    color var(--t-fast);
}
a.docrow:hover > .ic {
  color: var(--ink);
  transform: translateY(2px);
}
.docrow.is-off {
  opacity: 0.55;
}
.wpanel--rep > .person,
.wpanel--rep > .wpanel__x,
.wpanel--rep > .row {
  margin-left: 18px;
  margin-right: 18px;
}
.wpanel--rep > .person {
  margin-top: 16px;
}
.wpanel--rep > .row {
  margin-bottom: 18px;
  gap: 8px;
}

/* ==========================================================================
   SAČUVANE LISTE
   ========================================================================== */
.lst {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 640px;
}
.lst-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--paper);
  min-width: 0;
}
.lst-nav__search {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.lst-nav__search .ic {
  left: 26px;
  width: 17px;
  height: 17px;
}
.lst-nav__search .input {
  height: 38px !important;
  padding-left: 40px;
  font-size: 14px !important;
}
.lst-nav__list {
  display: grid;
  align-content: start;
}
.lst-tab {
  position: relative;
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background-color var(--t-fast);
}
.lst-tab:hover {
  background: var(--card);
}
.lst-tab[aria-selected="true"] {
  background: var(--card);
}
.lst-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 4px;
  background: var(--wood);
}
.lst-tab__type {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-700);
}
.lst-tab__name {
  font-size: 15px;
  font-weight: 500;
  font-stretch: 104%;
  line-height: 1.3;
  letter-spacing: -0.006em;
}
.lst-tab__meta {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.lst-tab__up {
  font-size: 10.5px;
  color: var(--ink-4);
}
.lst-tab.is-new-list {
  animation: rise 0.45s var(--ease-out);
}
.lst-nav__new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin: 12px;
  border: 1px dashed var(--line-3);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast);
}
.lst-nav__new:hover {
  border-color: var(--ink);
  border-style: solid;
  background: var(--card);
}
.lst-nav__new .ic {
  width: 16px;
  height: 16px;
}
.lst-detail {
  min-width: 0;
}
.lst-d {
  padding: 24px 28px 20px;
  animation: rise 0.4s var(--ease-out);
}
.lst-d__head {
  display: grid;
  gap: 18px;
}
.lst-d__type {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lst-d__type .ic {
  width: 14px;
  height: 14px;
  color: var(--wood-600);
}
.lst-d__name {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 8px 0 6px;
}
.lst-d__client {
  font-size: 14px;
  color: var(--ink-3);
}
.lst-d__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lst-d__more {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.lst-st {
  display: block;
  padding-left: 52px;
  margin-top: 3px;
}
.lst-st .stock {
  font-size: 12px;
}
.lst-d__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 20px 0 16px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
  font-size: 12px;
}
.lst-d__meta dt {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.lst-d__meta dd {
  color: var(--ink-2);
  margin-top: 2px;
}
.lst-note {
  position: relative;
  margin-bottom: 18px;
}
.lst-note__l {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.lst-note__l .ic {
  width: 14px;
  height: 14px;
}
.lst-note textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast);
}
.lst-note textarea:hover {
  border-color: var(--line-3);
}
.lst-note textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(165, 123, 85, 0.22);
}
.lst-note__s {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 10.5px;
  color: var(--ok);
}
.lst-items {
  border: 1px solid var(--line);
  background: var(--paper);
}
.dtable--list td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.dtable--list .t-qty {
  width: 150px;
}
.dtable--list .t-qty .qty {
  width: 138px;
  background: #fff;
}
.dtable--list .t-x {
  width: 52px;
  text-align: center;
}
.dtable--list .t-x .ibtn {
  color: var(--ink-4);
}
.dtable--list .t-x .ibtn:hover {
  color: var(--err);
  background: var(--err-bg);
}
.dtable--list tr.is-leaving {
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.lst-empty {
  border: 1px dashed var(--line-2);
  background: var(--paper);
}
.lst-empty .empty__art {
  color: var(--ink-3);
}
.lst-add {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 140px auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  margin-top: 10px;
  border: 1px dashed var(--line-2);
  background: var(--paper);
}
.lst-add__ic {
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.lst-add__ic .ic {
  width: 18px;
  height: 18px;
}
.lst-add__in {
  position: relative;
}
.lst-add__in input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #fff;
  font-size: 14px;
}
.lst-add__in input::placeholder {
  font-family: var(--f-sans);
  color: var(--ink-4);
}
.lst-add__in input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(165, 123, 85, 0.22);
}
.lst-add__drop {
  width: max(100%, 560px);
}
.lst-add .qty {
  width: 100%;
  background: #fff;
}
.lst-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.lst-sum dl {
  display: flex;
  gap: 28px;
}
.lst-sum dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.lst-sum dd {
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.lst-sum .is-total dd {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.lst-sum .is-total small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}
.lst-sum__save {
  font-size: 12px;
  color: var(--wood-700);
}
.lst-d__danger {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.lst-d__danger .btn {
  font-size: 13px;
  color: var(--ink-3);
}
.lst-d__danger .btn .ic {
  width: 16px;
  height: 16px;
}
.lst-d__danger .btn:hover {
  color: var(--err);
}
.modal__panel--sm {
  width: min(560px, 100%);
}
.nl-form {
  gap: 20px;
}
.nl-start {
  display: grid;
  gap: 2px;
}
.seg[data-nl-type] button {
  justify-content: center;
}

/* ==========================================================================
   KROJNE LISTE
   ========================================================================== */
.cl-new {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--header-h) + var(--ws-cmd) + 16px);
}
.cl-new__drop {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px 24px 20px;
  border-right: 1px solid var(--line);
}
.cl-new__head {
  display: grid;
  gap: 4px;
}
.cl-new__t {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-stretch: 108%;
}
.cl-new__head .mono {
  font-size: 11.5px;
  color: var(--ink-3);
}
.cl-new__drop .dropzone__target {
  min-height: 236px;
  align-content: center;
}
.cl-new__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.cl-new__facts li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cl-new__facts .ic {
  width: 15px;
  height: 15px;
  color: var(--wood-600);
}
.cl-new__form {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px 24px 20px;
}
.cl-new__form .form-grid {
  gap: 16px;
}
.cl-new__form .field input,
.cl-new__form .select select {
  height: 46px;
}
.cl-new__form .check--chip {
  background: var(--paper);
}
.cl-new__form .check--chip:has(input:checked) {
  background: #fff;
}
.cl-new__form .check__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cl-new__form .check__label .ic {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}
.cl-new__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cl-new__foot .fine {
  max-width: 32ch;
}
.cl-new__ok {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px 28px;
}
.cl-new__ok p:not(.h4) {
  color: var(--ink-2);
  max-width: 70ch;
  margin-top: 6px;
  font-size: 15px;
}
.cl-new.is-sent .cl-new__drop,
.cl-new.is-sent .cl-new__form {
  display: none;
}

.cl-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cl-list__head .wpanel__t {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.cl-pipe {
  display: flex;
  border: 1px solid var(--line);
  background: var(--card);
  overflow-x: auto;
  scrollbar-width: none;
}
.cl-pipe::-webkit-scrollbar {
  display: none;
}
.cl-pipe__s {
  display: grid;
  gap: 1px;
  min-width: 88px;
  padding: 8px 14px;
  border-left: 1px solid var(--line);
  text-align: left;
  transition:
    background-color var(--t-fast),
    color var(--t-fast);
}
.cl-pipe__s:first-child {
  border-left: 0;
}
.cl-pipe__s .mono {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.cl-pipe__s b {
  font-size: 19px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.cl-pipe__s:hover:not([disabled]) {
  background: #fff;
}
.cl-pipe__s.is-flag b {
  color: var(--wood-600);
}
.cl-pipe__s[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.cl-pipe__s[aria-pressed="true"] .mono {
  color: rgba(246, 245, 242, 0.6);
}
.cl-pipe__s[aria-pressed="true"].is-flag b {
  color: var(--wood-200);
}
.cl-pipe__s[disabled] {
  opacity: 0.4;
  cursor: default;
}
.dtable--cuts td {
  padding-top: 14px;
  padding-bottom: 14px;
  vertical-align: top;
}
.dtable--cuts td.t-act,
.dtable--cuts td.num {
  vertical-align: top;
}
.dtable--cuts tr.is-flag {
  background: var(--wood-50);
  box-shadow: inset 3px 0 0 var(--wood);
}
.dtable--cuts tr.is-flag:hover {
  background: var(--wood-100);
}
.dtable--cuts tr.is-enter {
  animation: qkflash 2s var(--ease-out);
}
.dtable--cuts .fchips {
  max-width: 260px;
}
.cl-list__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink-3);
}
.cl-list__legend b {
  font-weight: 500;
  color: var(--wood-700);
  margin-right: 6px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1440px) {
  .ws-cmd__note {
    display: none;
  }
}
@media (max-width: 1320px) {
  .b2bp {
    --ws-side: 248px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi:nth-child(3) {
    border-left: 0;
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .dash-grid,
  .od-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .firm__grid {
    grid-template-columns: 1fr 1fr;
  }
  .firm__cell:nth-child(3) {
    border-left: 0;
  }
  .firm__cell:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .qa {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 1.3fr) 150px auto;
  }
  .qk-table col.c-sku {
    width: 200px;
  }
  .otl {
    grid-template-columns: 1fr;
  }
  .otl__now {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .otl__now ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
  }
}
@media (max-width: 1180px) {
  .dash-grid,
  .od-grid {
    grid-template-columns: 1fr;
  }
  .dash-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    align-items: start;
  }
  .dash-side .wpanel--inbox {
    grid-column: 1 / -1;
  }
  .od-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    align-items: start;
  }
  .qa {
    grid-template-columns: minmax(0, 1fr) 150px auto;
  }
  .qa__prev {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lst {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .cl-new {
    grid-template-columns: 1fr;
  }
  .cl-new__drop {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .keys-legend {
    display: none;
  }
}

/* ---------- Mobilni okvir: sidebar postaje fioka ---------- */
@media (max-width: 1000px) {
  .ws {
    grid-template-columns: 1fr;
  }
  .ws-side {
    position: fixed;
    z-index: 86;
    top: 0;
    left: 0;
    bottom: 0;
    height: auto;
    width: min(340px, 88vw);
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.5s var(--ease-out),
      visibility 0s 0.5s;
  }
  .ws-side__in {
    padding-bottom: 28px;
  }
  .ws.is-side-open .ws-side {
    transform: none;
    visibility: visible;
    transition: transform 0.5s var(--ease-out);
  }
  .ws-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(23, 26, 28, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .ws.is-side-open .ws-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .ws-side__x {
    display: inline-grid;
  }
  .ws-nav__a.is-on::before {
    left: -14px;
  }
  .ws-nav__k {
    display: none;
  }

  .ws-mbar {
    display: block;
    background: var(--ink);
  }
  .ws-mbar__firm {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 10px var(--gutter);
    text-align: left;
    color: var(--paper);
  }
  .ws-mbar__t {
    display: grid;
    min-width: 0;
    line-height: 1.3;
  }
  .ws-mbar__t b {
    font-size: 14.5px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ws-mbar__t .mono {
    font-size: 11px;
    color: rgba(246, 245, 242, 0.55);
  }
  .ws-mbar__menu {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-inv);
    border-radius: var(--r);
  }
  .ws-mbar__menu .ic {
    width: 20px;
    height: 20px;
  }
  .ws-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    padding: 0 calc(var(--gutter) - 12px);
  }
  .ws-tabs::-webkit-scrollbar {
    display: none;
  }
  .ws-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-3);
    white-space: nowrap;
  }
  .ws-tabs a .ic {
    width: 16px;
    height: 16px;
  }
  .ws-tabs a.is-on {
    color: var(--ink);
  }
  .ws-tabs a.is-on::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    background: var(--ink);
  }
  .ws-tabs__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wood);
  }

  .ws-cmd--nosearch {
    display: none;
  }
  .ws-cmd__in {
    grid-template-columns: 1fr;
    height: auto;
    padding: 8px var(--gutter);
  }
  .ws-cmd__crumb,
  .ws-cmd__end {
    display: none;
  }
  .ws-qs__kbd {
    display: none !important;
  }
  .ws-qs__drop {
    width: auto;
    left: calc(var(--gutter) * -1 + 8px);
    right: calc(var(--gutter) * -1 + 8px);
  }
  .ws-qs__foot a {
    margin-left: 0;
  }
  .ws-body {
    padding: 22px var(--gutter) 56px;
  }
  .ws-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ws-head__side {
    justify-self: start;
  }
  .ws-head__side .row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  /* Tabele postaju kartice */
  .dtable--cards thead {
    display: none;
  }
  .dtable--cards,
  .dtable--cards tbody,
  .dtable--cards tfoot {
    display: block;
  }
  .dtable--cards tr {
    display: grid;
  }
  .dtable--cards td {
    border: 0;
    padding: 0;
  }
  .table-wrap--ws {
    background: transparent;
    border: 0;
  }
  .table-wrap--ws .dtable--cards tbody {
    display: grid;
    gap: 10px;
  }
  .table-wrap--ws .dtable--cards tbody tr {
    border: 1px solid var(--line);
    background: var(--card);
    padding: 14px;
  }
  .dtable--cards tbody tr:hover {
    background: var(--card);
  }

  /* Porudžbine (kartica) */
  .dtable--orders tbody tr[data-o] {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .dtable--orders td[data-l="Porudžbina"] {
    grid-column: 1;
    grid-row: 1;
  }
  .dtable--orders td[data-l="Status"] {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .dtable--orders td[data-l="Projekat"] {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 15px;
  }
  .dtable--orders td[data-l="Stavki"] {
    display: none;
  }
  .dtable--orders td[data-l="Ukupno"] {
    grid-column: 1;
    grid-row: 3;
    font-size: 18px;
    padding-top: 4px;
  }
  .dtable--orders td[data-l="Dokumenti"] {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
  }
  .dtable--orders .t-act {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }
  .dtable--orders .t-act > * {
    flex: 1;
    margin: 0 !important;
    justify-content: center;
  }
  .dtable--orders .t-act .btn--text {
    border: 1px solid var(--line-2);
    height: 34px;
    border-radius: var(--r);
  }
  .dtable__empty td {
    display: block;
  }

  /* Dashboard: poslednje porudžbine */
  .wpanel .dtable--cards tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }
  .wpanel .dtable--cards tbody tr:last-child {
    border-bottom: 0;
  }
  .wpanel .dtable--cards td[data-l="Porudžbina"] {
    grid-column: 1;
  }
  .wpanel .dtable--cards td[data-l="Status"] {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .wpanel .dtable--cards td[data-l="Projekat"] {
    grid-column: 1 / -1;
  }
  .wpanel .dtable--cards td[data-l="Stavki"] {
    display: none;
  }
  .wpanel .dtable--cards td[data-l="Ukupno"] {
    grid-column: 1;
    align-self: center;
  }
  .wpanel .dtable--cards .t-act {
    grid-column: 2;
    justify-self: end;
  }

  /* Stavke porudžbine, usluge, liste */
  .dtable--items tbody tr,
  .dtable--list tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .dtable--items .t-no {
    display: none;
  }
  .dtable--items td[data-l="Proizvod"],
  .dtable--list td[data-l="Proizvod"] {
    grid-column: 1 / -1;
  }
  .dtable--items td[data-l="Količina"] {
    grid-column: 1;
    text-align: left;
    font-size: 13px;
  }
  .dtable--items td[data-l="Cena / jed."] {
    grid-column: 1;
    text-align: left;
    font-size: 12.5px;
    color: var(--ink-3);
  }
  .dtable--items td[data-l="Cena / jed."] .t-strike {
    display: inline;
    margin-left: 6px;
  }
  .dtable--items td[data-l="Rabat"] {
    display: none;
  }
  .dtable--items td[data-l="Ukupno"] {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    font-size: 16px;
  }
  .dtable--cards tfoot tr {
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
    background: var(--paper);
    border-top: 1px solid var(--line-2);
  }
  .dtable--cards tfoot td {
    background: transparent;
    border: 0;
    padding: 0;
  }
  .dtable--svc tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }
  .dtable--svc td[data-l="Usluga"] {
    grid-column: 1 / -1;
  }
  .dtable--svc td[data-l="Obim"] {
    text-align: left;
    font-size: 12.5px;
    color: var(--ink-3);
  }
  .dtable--svc td[data-l="Cena / jed."] {
    display: none;
  }
  .dtable--svc td[data-l="Ukupno"] {
    grid-column: 2;
    grid-row: 2;
  }
  .wpanel .dtable--items tbody tr,
  .wpanel .dtable--svc tbody tr {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
  }
  .dtable--list tbody tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .dtable--list td.t-qty {
    grid-column: 1;
    width: auto;
  }
  .dtable--list td[data-l="Cena / jed."] {
    display: none;
  }
  .dtable--list td[data-l="Ukupno"] {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    font-size: 16px;
  }
  .dtable--list .t-x {
    position: absolute;
    right: 8px;
    top: 8px;
    width: auto;
  }
  .dtable--list tbody tr {
    position: relative;
  }
  .dtable--list td[data-l="Proizvod"] {
    padding-right: 36px;
  }

  /* Krojne liste (kartica) */
  .dtable--cuts tbody tr[data-cut] {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }
  .dtable--cuts td[data-l="Zahtev"] {
    grid-column: 1;
  }
  .dtable--cuts td[data-l="Ponuda"] {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
  }
  .dtable--cuts td[data-l="Projekat"] {
    grid-column: 1 / -1;
    font-size: 15px;
  }
  .dtable--cuts td[data-l="Fajlovi"] {
    grid-column: 1 / -1;
  }
  .dtable--cuts td[data-l="Usluge"] {
    grid-column: 1;
  }
  .dtable--cuts td[data-l="Porudžbina"] {
    grid-column: 2;
    align-self: center;
  }
  .dtable--cuts td.t-st {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .dtable--cuts .t-act {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
  }
  .dtable--cuts .t-act > * {
    margin: 0 !important;
  }
  .dtable--cuts .t-act .btn--wood {
    flex: 1;
    justify-content: center;
  }
  .dtable--cuts tr.is-flag {
    background: var(--wood-50);
  }

  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi {
    padding: 14px 16px 16px;
  }
  .kpi__bars {
    position: static;
    width: 100%;
    max-width: 132px;
    margin-top: 8px;
  }
  .dash-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .dash-main,
  .dash-side {
    display: contents;
  }
  .wpanel--inbox {
    order: -1;
  }
  .dtable--cards td.num {
    text-align: left;
  }
  .dtable--cards td.num.t-sum {
    text-align: left;
  }
  .dash-side,
  .od-side {
    grid-template-columns: 1fr;
  }
  .firm__grid {
    grid-template-columns: 1fr;
  }
  .firm__cell {
    border-left: 0 !important;
  }
  .firm__cell + .firm__cell {
    border-top: 1px solid var(--line);
  }
  .klmini__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }
  .klmini__row .svc-ics {
    grid-column: 2;
    grid-row: 1;
  }
  .klmini__st {
    grid-column: 1;
  }
  .klmini__act {
    grid-column: 2;
    align-self: end;
  }
  .alog li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .od-head {
    grid-template-columns: 1fr;
  }
  .od-head__act {
    justify-content: flex-start;
  }
  .od-head__act .btn {
    flex: 1 1 auto;
  }
  .otl__list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .otl__list::before,
  .otl__list::after {
    top: 11px;
    left: 10px;
    bottom: 30px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .otl__list::before {
    background: repeating-linear-gradient(
      180deg,
      var(--line-3) 0 4px,
      transparent 4px 8px
    );
  }
  .otl__list::after {
    height: calc(var(--p) * 0.8 + 20px);
    bottom: auto;
  }
  .otl__s {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 0 14px;
    padding: 0 0 18px;
  }
  .otl__dot {
    grid-row: 1 / span 2;
    margin: 0;
  }
  .otl__t {
    grid-column: 2;
  }
  .otl__d {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }
  .otl__x {
    grid-column: 2 / -1;
  }
  .otl__now ul {
    display: grid;
  }

  .lst {
    grid-template-columns: 1fr;
    border: 0;
    background: transparent;
    min-height: 0;
  }
  .lst-nav {
    border: 0;
    background: transparent;
    margin: 0 calc(var(--gutter) * -1);
  }
  .lst-nav__search {
    display: none;
  }
  .lst-nav__list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .lst-nav__list::-webkit-scrollbar {
    display: none;
  }
  .lst-tab {
    flex: none;
    width: 220px;
    border: 1px solid var(--line);
    background: var(--card);
    scroll-snap-align: start;
    padding: 12px 14px 12px 16px;
  }
  .lst-tab__up {
    display: none;
  }
  .lst-tab[aria-selected="true"] {
    border-color: var(--ink);
  }
  .lst-tab[aria-selected="true"]::before {
    top: -1px;
    bottom: -1px;
    left: -1px;
  }
  .lst-nav__new {
    margin: 10px var(--gutter) 16px;
  }
  .lst-detail {
    border: 1px solid var(--line);
    background: var(--card);
  }
  .lst-d {
    padding: 18px 16px;
  }
  .lst-d__act > .btn {
    flex: 1 1 100%;
  }
  .lst-d__more {
    flex: 1;
    justify-content: flex-end;
  }
  .lst-d__meta {
    gap: 10px 20px;
  }
  .lst-add {
    grid-template-columns: minmax(0, 1fr) 128px;
  }
  .lst-add__ic {
    display: none;
  }
  .lst-add__in {
    grid-column: 1 / -1;
  }
  .lst-add__drop {
    width: auto;
    right: 0;
  }
  .lst-add .btn {
    justify-content: center;
  }
  .lst-sum {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .lst-sum dl {
    justify-content: space-between;
    gap: 12px;
  }

  .cl-list__head {
    align-items: stretch;
    flex-direction: column;
  }
  .cl-pipe {
    margin: 0 calc(var(--gutter) * -1);
    border-inline: 0;
  }
  .cl-new__drop,
  .cl-new__form {
    padding: 18px 16px;
  }
  .cl-new__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .cl-new__foot .btn {
    width: 100%;
  }
  .cl-new__ok {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 18px;
  }
  .cl-new__drop .dropzone__target {
    min-height: 0;
    padding: 28px 18px;
  }

  .ofilters__search {
    flex-basis: 100%;
  }
  .ofilters__seg {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ofilters__seg button {
    flex: 1;
    justify-content: center;
    padding: 0 10px;
  }
  .ofilters__sel {
    flex: 1;
  }
  .ofilters__sel select {
    min-width: 0;
  }
  .ofoot__legend {
    display: none;
  }
}

/* ---------- Brza porudžbina: mobilni raspored (redovi = kartice) ---------- */
@media (max-width: 900px) {
  .qk {
    border: 0;
    background: transparent;
  }
  .qk-table,
  .qk-table tbody {
    display: block;
  }
  .qk-table colgroup,
  .qk-table thead {
    display: none;
  }
  .qk-table tbody {
    display: grid;
    gap: 10px;
  }
  .qk-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 40px;
    grid-template-areas: "no sku x" "prod prod prod" "qty qty sum";
    gap: 10px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--card);
  }
  .qk-row:hover {
    background: var(--card);
  }
  .qk-row.is-new {
    border-style: dashed;
    border-color: var(--line-3);
    background: transparent;
    grid-template-areas: "no sku x" "prod prod prod" "qty qty qty";
  }
  .qk-row.is-err {
    border-color: color-mix(in srgb, var(--err) 45%, transparent);
  }
  .qk-row td {
    padding: 0;
    border: 0;
  }
  .qk-no {
    grid-area: no;
    text-align: left;
  }
  .qk-sku {
    grid-area: sku;
  }
  .qk-prod {
    grid-area: prod;
  }
  .qk-row.is-new .qk-prod {
    display: none;
  }
  .qk-row.is-new.is-err .qk-prod {
    display: block;
  }
  .qk-qty {
    grid-area: qty;
  }
  .qk-qty .qty {
    max-width: 170px;
    height: 44px;
  }
  .qk-price {
    display: none;
  }
  .qk-sum {
    grid-area: sum;
  }
  .qk-sum b {
    font-size: 17px;
    display: block;
  }
  .qk-sum__u {
    display: block;
    font-size: 11px;
    color: var(--ink-3);
    white-space: nowrap;
  }
  .qk-x {
    grid-area: x;
  }
  .qk-in__i {
    height: 46px;
    font-size: 16px;
  }
  .qk-st {
    padding-left: 52px;
  }
  .qk-add {
    padding: 12px 0;
  }
  .qk-add__hint {
    display: none;
  }
  .qk-add__btn {
    width: 100%;
    justify-content: center;
    height: 46px;
  }
  .qk-ac {
    left: 0 !important;
    right: 0;
    width: auto;
  }
  .qk-ac .pick {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .qk-ac .pick__img {
    width: 40px;
    height: 40px;
  }
  .qk-ac .pick__p {
    grid-column: 2;
    text-align: left;
    display: flex;
    gap: 6px;
    align-items: baseline;
  }
  .qk-ac .pick__p b {
    display: inline;
    font-size: 14px;
  }
  .qk-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .qk-tools__l {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .qk-tool {
    justify-content: center;
    padding: 0 10px;
    font-size: 13.5px;
  }
  .qk-menu .qk-tool {
    width: 100%;
  }
  .qk-menu__pop {
    width: min(340px, calc(100vw - 32px));
  }
  .qk-menu:nth-child(4) .qk-menu__pop {
    left: auto;
    right: 0;
  }
  .qk-clear {
    align-self: flex-end;
  }
  .qk-paste {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .qk-paste__side {
    padding-top: 0;
  }
  .qk-often {
    margin-right: calc(var(--gutter) * -1);
  }
  .qk-often > .mono {
    display: none;
  }
  .qk-after {
    flex-direction: column;
    align-items: stretch;
  }
  .qk-after .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .qk-after__inq {
    display: inline-flex;
  }

  .qk-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
  }
  .qk-bar__in {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    gap: 0 12px;
  }
  .qk-bar__sum > div:not(.is-total) {
    display: none;
  }
  .qk-bar__sum .is-total dt {
    font-size: 0;
  }
  .qk-bar__sum .is-total dt::after {
    content: "Sa PDV-om · " attr(data-n);
    font-size: 10px;
  }
  .qk-bar__sum .is-total dd {
    font-size: 21px;
  }
  .qk-bar__meta {
    display: none;
  }
  .qk-bar__act {
    grid-row: 1;
  }
  .qk-bar__inq {
    display: none;
  }
  .qk-bar__go {
    --h: 50px;
    padding-left: 16px;
    gap: 12px;
    font-size: 15px;
  }
  .has-qkbar .ws-body {
    padding-bottom: 110px;
  }
  .has-qkbar .toasts {
    bottom: 92px;
  }
  .has-qkbar .dock {
    bottom: 86px;
  }
  .has-qkbar .ftr--minimal {
    padding-bottom: 76px;
  }
}

@media (max-width: 560px) {
  .klmini__row .svc-ics {
    display: none;
  }
  .klmini__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .dash-hello {
    grid-template-columns: 1fr;
  }
  .dash-hello__act {
    display: grid;
    grid-template-columns: 1fr;
  }
  .dash-hello__act .btn {
    width: 100%;
  }
  .dq {
    padding: 16px 14px 14px 18px;
  }
  .dq__hint {
    display: none;
  }
  .qa {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .qa__sku,
  .qa__prev {
    grid-column: 1 / -1;
  }
  .qa__qty {
    grid-column: 1;
  }
  .qa__add {
    grid-column: 2;
    padding: 0 16px;
  }
  .qa__add span {
    display: none;
  }
  .qa__add .ic {
    width: 22px;
    height: 22px;
  }
  .qa__drop {
    width: auto;
    right: 0;
  }
  .qa__often {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .qa__often .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: -14px;
  }
  .kpi__v {
    font-size: 22px;
  }
  .kpi__v small {
    font-size: 11px;
  }
  .kpi__go {
    display: none;
  }
  .promo {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .ws-qs__drop .pick--add {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .ws-qs__drop .pick__img {
    width: 40px;
    height: 40px;
  }
  .ws-qs__drop .pick--add .pick__p {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
  .ws-qs__drop .pick--add .pick__p b {
    display: inline;
    font-size: 14px;
    margin-right: 4px;
  }
  .ws-qs__drop .pick--add .pick__add {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .ws-qs__foot > span {
    display: none;
  }
  .od-head__act .btn {
    flex: 1 1 100%;
  }
  .od-head__act .ibtn {
    display: none;
  }
  .od-cut .btn {
    margin-left: 0;
    width: 100%;
  }
  .lst-d__meta div:nth-child(3) {
    display: none;
  }
  .lst-sum .is-total dd {
    font-size: 22px;
  }
  .modal .nl-start .check {
    font-size: 14px;
  }
  .cl-pipe__s {
    min-width: 76px;
    padding: 8px 10px;
  }
}

@media print {
  .ws-side,
  .ws-cmd,
  .ws-mbar,
  .ws-tabs,
  .hdr,
  .topbar,
  .ftr,
  .qk-bar {
    display: none !important;
  }
  .ws {
    display: block;
  }
}

/* Ispravke horizontalnog prelivanja na mobilnom */
.cl-pipe,
.ws-tabs,
.ws-main,
.wpanel {
  min-width: 0;
}
.ws-side {
  max-width: 100vw;
}
@media (max-width: 1100px) {
  .ws-side__in {
    max-width: 100%;
    overflow-x: hidden;
  }
}
.wpanel, .wpanel__head, .wpanel__t { min-width: 0; }
.wpanel__head { flex-wrap: wrap; }
.wpanel__t { flex-wrap: wrap; }
.cl-pipe { max-width: 100%; }
.ws, .ws-main, .ws-side { min-width: 0; max-width: 100%; }
