/* ═══════════════════════════════════════════════════════════════
   APP-SETUP — in-product onboarding overlay (v3)
   Blur backdrop + skrbnik strip + 3 SETUP popups
   ═══════════════════════════════════════════════════════════════ */

html,
body {
  height: 100%;
}

.app-body {
  margin: 0;
  background: #2a2c2d;
  overflow: hidden;
}

.app-shell--fullscreen {
  height: 100vh;
  border-radius: 0;
  grid-template-rows: 40px 1fr;
}

.app-shell--fullscreen .app-shell__topbar {
  height: 44px;
}

.setup-trigger.is-done {
  background: rgba(128, 187, 100, 0.15);
  color: #cfeec0;
  border-color: rgba(128, 187, 100, 0.3);
}

.setup-trigger.is-pulse {
  animation: setup-pulse 2.2s ease-in-out infinite;
}

@keyframes setup-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(101, 172, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(101, 172, 255, 0);
  }
}

.setup-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.setup-overlay.is-open .setup-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}/* Done — green circle, muted label (no underline) */


.setup-stepper__step.is-done .setup-stepper__num {
  background: #80BB64;
  color: #fff;
}

.setup-stepper__step.is-done .setup-stepper__label {
  color: var(--c-ink-6);
}/* Current — green circle, green label with underline */


.setup-stepper__step.is-current .setup-stepper__num {
  background: #80BB64;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(128, 187, 100, 0.18);
}

.setup-stepper__step.is-current .setup-stepper__label {
  color: #4a7a34;
  font-weight: 600;
  border-bottom-color: #80BB64;
}

.setup-field>label .req {
  color: var(--c-status-err);
  margin-left: 2px;
}

.setup-tile.is-selected {
  border-color: #4a7a34;
  background: #f5faf2;
}

.setup-chip.is-selected {
  background: #f5faf2;
  border-color: #4a7a34;
  color: #4a7a34;
}

.setup-chip.is-selected .setup-chip__check {
  display: inline;
}

.setup-foot__actions .btn,
.setup-foot__actions .btn--primary {
  padding: 11px 26px;
  font-size: 14.5px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0;
  min-height: 42px;
}

.setup-foot__actions .btn--primary {
  background: #4a7a34 !important;
  border: 1px solid #4a7a34 !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(74, 122, 52, 0.18);
}

.setup-foot__actions .btn--primary:hover {
  background: #3e6a2a !important;
  border-color: #3e6a2a !important;
}

.setup-foot__actions .btn--primary[disabled],
.setup-foot__actions .btn--primary:disabled {
  opacity: 0.5;
  background: var(--c-ink-3) !important;
  border-color: var(--c-ink-3) !important;
  cursor: not-allowed;
  color: var(--c-ink-6) !important;
  box-shadow: none;
}

.setup-foot__actions .step-back {
  background: #fff;
  border: 1px solid var(--c-ink-3);
  color: var(--c-ink-8);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 11px 26px;
  border-radius: 6px;
  font-family: inherit;
  min-height: 42px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.setup-foot__actions .step-back:hover {
  background: var(--c-ink-1);
  border-color: var(--c-ink-5);
  color: var(--c-ink-9);
}

.setup-progress__dot.is-done {
  background: #80BB64;
}

.setup-progress__dot.is-current {
  background: #4a7a34;
}/* ─── APP TOASTS (live order banners + success) ───────────────── */



.app-toast-stack {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 280px;
}

.app-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--c-ink-8);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.04);
  animation: app-toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
}

.app-toast.is-exiting {
  animation: app-toast-out 0.35s ease-in forwards;
}

.app-toast__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.app-toast__icon--new {
  background: #E8F4FD;
}

.app-toast__icon--ok {
  background: #E8FAE8;
}

.app-toast__icon--ship {
  background: #FFF3E0;
}

.app-toast__body {
  flex: 1;
  min-width: 0;
}

.app-toast__title {
  font-weight: 600;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-toast__meta {
  font-size: 10px;
  color: var(--c-ink-5);
  margin-top: 1px;
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    translate: 40px 0;
    scale: 0.95;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes app-toast-out {
  from {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }

  to {
    opacity: 0;
    translate: 40px 0;
    scale: 0.95;
  }
}/* ─── Preview-mode tweaks (iframe in sign-up form) ────────────────
   The iframe is wider than the visual panel and clipped on the right,
   so absolute positions anchored to `right: ...` would land off-screen.
   In preview we re-anchor toasts to stay inside the visible region. */


body.is-preview {
  overflow: hidden !important;
  height: 100% !important;
  scroll-behavior: auto !important;
}

body.is-preview .app-toast-stack {
  top: 90px;
  right: 24px;
  /* sit close to the right edge inside the iframe viewport */
  width: 260px;
}/* Row activity pulse — subtle blue flash, calm decay */


.app-shell__row.is-preview-pulse {
  animation: row-preview-pulse 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

@keyframes row-preview-pulse {
  0% {
    background: rgba(101, 172, 255, 0.22);
  }

  40% {
    background: rgba(101, 172, 255, 0.12);
  }

  100% {
    background: transparent;
  }
}/* ═══════════════════════════════════════════════════════════════
   VAADIN-STYLE OM PLATFORM POLISH
   App-switcher dropdown · dark module bar · flat filters · table
   ═══════════════════════════════════════════════════════════════ *//* ── APP-SWITCHER (centred brand → dropdown) ─────────────────── */





.app-shell__topbar {
  position: relative;
  margin-bottom: 0px;
  /* anchor for absolutely-positioned switcher panel */
}

.app-switcher {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: #2a2c2d;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  z-index: 5;
}

.app-switcher:hover {
  background: rgba(255, 255, 255, 0.06);
}

.app-switcher__chev {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-switcher.is-open .app-switcher__chev {
  transform: rotate(180deg);
  opacity: 1;
}

.app-switcher__panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 10px);
}

.app-switcher__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 4px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  margin-left: -4px;
}

.app-switcher__item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.app-switcher__item.is-active {
  color: #fff;
}/* ── TOPBAR right user-role label (replaces avatar pill) ─────── */


.topbar-user-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
  font-weight: 500;
  margin-left: 4px;
}

.topbar-user-role__sep {
  opacity: 0.4;
}/* ── DARK MODULE BAR (under topbar, before tabs) ─────────────── */



.app-shell__header-group {
  position: relative;
  overflow: hidden;
  background: #2a2c2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}/* Decorative graphic — spans full height of the combined header-group */


.app-shell__pagehead-graphic {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  z-index: 0;
}/* Ensure content inside the header-group renders above the graphic */


.app-shell__header-group>*:not(.app-shell__pagehead-graphic) {
  position: relative;
  z-index: 1;
}


.module-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  background: transparent;
  color: #fff;
  position: relative;
  margin: -1px;
}



.module-bar__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  /* keep native colours of the OM logo (blue + white M) */
}

.module-bar__icon img {
  width: 38px;
  height: 38px;
  display: block;
}

.module-bar__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}

.module-bar__crumb {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.module-bar__sep {
  opacity: 0.4;
  margin: 0 4px;
}

.module-bar__navodila {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  position: relative;
  z-index: 1;
}

.module-bar__navodila:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.module-bar__navodila svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}/* Flush pagehead — tabs row sitting directly under module bar */


.app-shell__pagehead--flush {
  padding-top: 0;
  background: transparent;
  overflow: hidden;
}

.app-shell__pagehead--flush .app-shell__pagehead-title {
  display: none;
}/* ── VAADIN-style FILTER ROW ─────────────────────────────────── */



.vaadin-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  flex-wrap: wrap;
}

.vaadin-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--c-ink-3);
  border-radius: 6px;
  font-size: 12px;
  color: var(--c-ink-7);
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.vaadin-filter:hover {
  border-color: var(--c-ink-4);
}

.vaadin-filter svg {
  width: 10px;
  height: 10px;
  opacity: 0.55;
}

.vaadin-filters__add,
.vaadin-filters__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}

.vaadin-filters__add {
  background: #4a7a34;
  border: 1px solid #4a7a34;
  color: #fff;
}

.vaadin-filters__add:hover {
  filter: brightness(1.08);
}

.vaadin-filters__add svg {
  width: 11px;
  height: 11px;
}

.vaadin-filters__reset {
  background: transparent;
  border: 0;
  color: #4a7a34;
}

.vaadin-filters__reset:hover {
  background: rgba(74, 122, 52, 0.08);
}

.vaadin-filters__reset svg {
  width: 11px;
  height: 11px;
}/* Vaadin toolbar tweaks */


.app-shell__toolbar--vaadin {
  padding: 8px 20px;
}

.app-shell__toolbar--vaadin .app-shell__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.app-shell__toolbar--vaadin .app-shell__btn svg {
  width: 11px;
  height: 11px;
  opacity: 0.7;
}

.app-shell__toolbar--vaadin .app-shell__btn--primary {
  background: #4a7a34 !important;
  border: 1px solid #4a7a34 !important;
  color: #fff !important;
}

.app-shell__toolbar--vaadin .app-shell__btn--primary svg {
  opacity: 1;
}/* ── 13-column Vaadin table grid ─────────────────────────────── */



.vaadin-table .app-shell__row {
  grid-template-columns:
    32px
    /* check */
    minmax(120px, 1.1fr)
    /* Številka */
    minmax(96px, 0.9fr)
    /* Status */
    minmax(86px, 0.8fr)
    /* Ustvar… */
    minmax(108px, 1fr)
    /* Naročilo k… */
    minmax(120px, 1.1fr)
    /* Kupec */
    minmax(86px, 0.8fr)
    /* Znesek */
    minmax(96px, 0.9fr)
    /* Način plačila */
    minmax(76px, 0.7fr)
    /* Plačano */
    minmax(110px, 1fr)
    /* Sledilna številka */
    minmax(100px, 0.9fr)
    /* Dostavna služba */
    minmax(90px, 0.8fr)
    /* Odpremlj… */
    minmax(140px, 1.2fr);
  /* Povezani dokumenti */
}/* ── PAGINATION — Vaadin pattern ─────────────────────────────── */



.vaadin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-top: 1px solid var(--c-ink-2);
  font-size: 12px;
  color: var(--c-ink-7);
}

.vaadin-pagination__left,
.vaadin-pagination__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vaadin-pagination__select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--c-ink-3);
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.vaadin-pagination__count {
  color: var(--c-ink-6);
}

.vaadin-pagination__btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-ink-3);
  background: #fff;
  border-radius: 5px;
  font-size: 14px;
  color: var(--c-ink-7);
  cursor: pointer;
}

.vaadin-pagination__btn:hover {
  border-color: var(--c-ink-5);
  color: var(--c-ink-9);
}

.vaadin-pagination__page {
  color: var(--c-ink-7);
}

.vaadin-pagination__current {
  color: var(--c-ink-9);
  font-weight: 600;
}/* Disabled state on the connect button until a platform is chosen */


.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

#courierSearchInput {
  width: 100%;
  font-family: inherit;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--c-ink-3);
  border-radius: 4px;
  padding: 9px 12px 9px 34px;
  color: var(--c-ink-9);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#courierSearchInput::placeholder {
  color: var(--c-ink-5);
}

#courierSearchInput:focus {
  outline: none;
  border-color: #4a7a34;
  box-shadow: 0 0 0 3px rgba(74, 122, 52, 0.12);
}

@keyframes search-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chip-added-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cred-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stock-method.is-selected {
  background: #f5f9fd;
}

.stock-method.is-selected::before {
  border-color: #4a7a34;
  background:
    radial-gradient(circle, #4a7a34 0%, #4a7a34 35%, transparent 38%);
}

.stock-method.is-selected .stock-method__title {
  font-weight: 600;
}/* ═══════════════════════════════════════════════════════════════
   APP-SHELL — 3-column grid (rail + sub-nav + main) for app.html
   ═══════════════════════════════════════════════════════════════ */



.app-shell--fullscreen {
  grid-template-columns: 60px 200px 1fr;
  grid-template-areas:
    "topbar topbar topbar"
    "rail   subnav main";
}

.app-subnav {
  grid-area: subnav;
  background: #f3f4f6;
  border-right: 1px solid #e2e4e6;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 0;
}

.app-subnav__list {
  display: flex;
  flex-direction: column;
}

.app-subnav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 14px 7px 18px;
  color: #2a2c2d;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.app-subnav__item:hover {
  background: #e9ebee;
  color: #1a1c1d;
}

.app-subnav__item.is-active {
  color: #BD55D7;
  border-left-color: #BD55D7;
  font-weight: 600;
}

.app-subnav__chev {
  width: 10px;
  height: 10px;
  opacity: 0.5;
  flex-shrink: 0;
}/* Support block at the bottom of the sub-nav */


.app-subnav__support {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid #e2e4e6;
  font-size: 11.5px;
  color: var(--c-ink-7);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-subnav__support-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-ink-6);
  margin-bottom: 4px;
}

.app-subnav__support-head svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.app-subnav__support-link {
  color: var(--c-ink-7);
  text-decoration: none;
  font-size: 11.5px;
  line-height: 1.5;
  transition: color 0.12s;
}

.app-subnav__support-link:hover {
  color: #65ACFF;
}

.s1-sync__icon.is-done {
  background: #80BB64;
}

@keyframes s1-spin {
  to {
    transform: rotate(360deg);
  }
}

.setup-reveal__cta .btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: #4a7a34;
  border: 1px solid #4a7a34;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 6px;
  min-height: 42px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(74, 122, 52, 0.18);
  transition: background 0.15s, border-color 0.15s, transform 0.1s, opacity 0.15s;
}

.setup-reveal__cta .btn--primary:hover {
  background: #3e6a2a;
  border-color: #3e6a2a;
}

.setup-reveal__cta .btn--primary:active {
  transform: translateY(1px);
}

.setup-reveal__cta .btn--primary[disabled],
.setup-reveal__cta .btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.setup-reveal__cta .btn--primary.is-done {
  background: #fff;
  border-color: rgba(74, 122, 52, 0.45);
  color: #4a7a34;
  box-shadow: none;
  opacity: 1;
  cursor: default;
}

.setup-reveal__cta .btn--primary.is-done svg {
  width: 16px;
  height: 16px;
}/* ─── Footer "Naprej" — gentle highlight once it becomes available ─
   Cue to the user that the next step is unlocked. Subtle, not pulsing
   loudly — Vaadin would do the same after postMessage. */


.setup-foot__actions .btn--primary.is-ready {
  animation: s1-next-ready 1.2s ease-out;
}

@keyframes s1-next-ready {
  0% {
    box-shadow: 0 0 0 0 rgba(128, 187, 100, 0.55);
  }

  60% {
    box-shadow: 0 0 0 8px rgba(128, 187, 100, 0);
  }

  100% {
    box-shadow: 0 1px 2px rgba(74, 122, 52, 0.18);
  }
}

.courier-cred__connect.is-loading {
  background: #4a7a34;
  pointer-events: none;
}

.courier-cred__connect.is-loading .courier-cred__spinner {
  width: 14px;
  height: 14px;
  animation: s1-spin 0.9s linear infinite;
}