/* MBus WMS PRO UI override – static cPanel patch */
:root{
  --wms-bg:#f4f7fb;
  --wms-panel:#ffffff;
  --wms-panel-2:#f8fafc;
  --wms-navy:#071225;
  --wms-navy-2:#0f1f3d;
  --wms-blue:#2563eb;
  --wms-sky:#0ea5e9;
  --wms-green:#16a34a;
  --wms-amber:#f59e0b;
  --wms-red:#dc2626;
  --wms-muted:#64748b;
  --wms-border:rgba(100,116,139,.22);
  --wms-shadow:0 14px 38px rgba(15,23,42,.10);
  --wms-shadow-soft:0 6px 18px rgba(15,23,42,.08);
}

html{scroll-behavior:smooth;background:var(--wms-bg)}
body{
  background:linear-gradient(180deg,#f8fafc 0%,#eef3f9 100%) !important;
  color:#0f172a;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.wms-pro #root{min-height:100vh;background:transparent!important;}
body.wms-pro ::selection{background:rgba(37,99,235,.18)}

/* global typography */
body.wms-pro h1{
  letter-spacing:-.045em!important;
  font-weight:900!important;
  color:#071225!important;
}
body.wms-pro h2,body.wms-pro h3{
  letter-spacing:-.025em!important;
  font-weight:850!important;
  color:#0f172a!important;
}
body.wms-pro p{line-height:1.55;}

/* professional cards/panels */
body.wms-pro [class*="rounded-xl"],
body.wms-pro [class*="rounded-2xl"],
body.wms-pro [class*="rounded-lg"]{
  border-radius:18px!important;
}
body.wms-pro [class*="border"]{
  border-color:var(--wms-border)!important;
}
body.wms-pro [class*="shadow"]{
  box-shadow:var(--wms-shadow-soft)!important;
}
body.wms-pro main [class*="border"],
body.wms-pro #root [class*="bg-card"],
body.wms-pro #root [class*="bg-white"]{
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:saturate(1.15) blur(4px);
}

/* sidebar */
body.wms-pro aside,
body.wms-pro nav[aria-label],
body.wms-pro [class*="w-64"]{
  border-right-color:rgba(100,116,139,.20)!important;
}
body.wms-pro a,
body.wms-pro button{ -webkit-tap-highlight-color:transparent; }

/* buttons */
body.wms-pro button{
  border-radius:14px!important;
  font-weight:800!important;
  letter-spacing:.005em;
  transition:transform .14s ease, box-shadow .14s ease, filter .14s ease, background-color .14s ease, border-color .14s ease!important;
}
body.wms-pro button:not(:disabled){
  box-shadow:0 2px 8px rgba(15,23,42,.07);
}
body.wms-pro button:not(:disabled):hover{
  transform:translateY(-1px);
  filter:saturate(1.12);
  box-shadow:0 10px 22px rgba(15,23,42,.14)!important;
}
body.wms-pro button:not(:disabled):active{
  transform:translateY(0) scale(.985);
  box-shadow:0 3px 8px rgba(15,23,42,.12)!important;
}
body.wms-pro button:disabled,
body.wms-pro [aria-disabled="true"]{
  opacity:.58!important;
  cursor:not-allowed!important;
  filter:grayscale(.2)!important;
}
body.wms-pro button:focus-visible,
body.wms-pro input:focus-visible,
body.wms-pro textarea:focus-visible,
body.wms-pro select:focus-visible{
  outline:3px solid rgba(37,99,235,.22)!important;
  outline-offset:2px!important;
}

/* inputs */
body.wms-pro input,
body.wms-pro select,
body.wms-pro textarea{
  border-radius:14px!important;
  border-color:rgba(100,116,139,.30)!important;
  background:#fff!important;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease!important;
}
body.wms-pro input:focus,
body.wms-pro select:focus,
body.wms-pro textarea:focus{
  border-color:rgba(37,99,235,.70)!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.12)!important;
}
body.wms-pro input::placeholder,body.wms-pro textarea::placeholder{color:#94a3b8!important;}

/* tables */
body.wms-pro table{
  border-collapse:separate!important;
  border-spacing:0!important;
}
body.wms-pro thead th{
  background:#f8fafc!important;
  color:#334155!important;
  font-weight:900!important;
  border-bottom:1px solid rgba(100,116,139,.18)!important;
}
body.wms-pro tbody tr{transition:background-color .12s ease, transform .12s ease;}
body.wms-pro tbody tr:hover{background:#f8fafc!important;}

/* status chips / badges */
body.wms-pro span[class*="rounded"],
body.wms-pro div[class*="rounded"][class*="text-xs"],
body.wms-pro [class*="badge"]{
  font-weight:850!important;
  letter-spacing:.01em;
}

/* scanner fields */
body.wms-pro input[placeholder*="Skeniraj"],
body.wms-pro input[placeholder*="skeniraj"],
body.wms-pro input[placeholder*="SKU/EAN"],
body.wms-pro input[placeholder*="SSCC"],
body.wms-pro input[placeholder*="lokacijo"],
body.wms-pro input[placeholder*="rampo"]{
  min-height:54px!important;
  font-size:1.03rem!important;
  font-weight:800!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;
  background:linear-gradient(180deg,#eff6ff,#fff)!important;
  border-color:rgba(37,99,235,.45)!important;
}
body.wms-pro input[placeholder*="Skeniraj"]:focus,
body.wms-pro input[placeholder*="skeniraj"]:focus,
body.wms-pro input[placeholder*="SKU/EAN"]:focus,
body.wms-pro input[placeholder*="SSCC"]:focus{
  box-shadow:0 0 0 5px rgba(37,99,235,.16)!important;
}

/* Komision / Prevzem / Vskladiscenje warehouse mode */
body.wms-pro[data-route*="/komision"],
body.wms-pro[data-route*="/prevzem"],
body.wms-pro[data-route*="/vskladiscenje"]{
  --wms-work-accent:#0ea5e9;
}
body.wms-pro[data-route*="/komision"] h1,
body.wms-pro[data-route*="/prevzem"] h1,
body.wms-pro[data-route*="/vskladiscenje"] h1{
  display:flex!important;
  align-items:center;
  gap:.75rem;
}
body.wms-pro[data-route*="/komision"] h1:after{
  content:"DELOVNI NAČIN";
  display:inline-flex;
  align-items:center;
  height:30px;
  padding:0 .75rem;
  border-radius:999px;
  background:#e0f2fe;
  color:#0369a1;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.08em;
}
body.wms-pro[data-route*="/komision"] button,
body.wms-pro[data-route*="/prevzem"] button,
body.wms-pro[data-route*="/vskladiscenje"] button{
  min-height:48px;
}
body.wms-pro[data-route*="/komision"] input,
body.wms-pro[data-route*="/prevzem"] input,
body.wms-pro[data-route*="/vskladiscenje"] input{
  min-height:48px;
}
body.wms-pro[data-route*="/komision"] [class*="font-mono"],
body.wms-pro[data-route*="/prevzem"] [class*="font-mono"],
body.wms-pro[data-route*="/vskladiscenje"] [class*="font-mono"]{
  font-weight:900!important;
  letter-spacing:.02em!important;
}
body.wms-pro[data-route*="/komision"] main [class*="border"],
body.wms-pro[data-route*="/prevzem"] main [class*="border"],
body.wms-pro[data-route*="/vskladiscenje"] main [class*="border"]{
  box-shadow:var(--wms-shadow)!important;
}

/* accent important numbers */
body.wms-pro strong,
body.wms-pro b{font-weight:900!important;}
body.wms-pro .text-red-600,body.wms-pro .text-destructive{font-weight:900!important;}
body.wms-pro .text-green-600{font-weight:900!important;}

/* sound toggle */
#wms-sound-toggle{
  position:fixed;
  z-index:2147483000;
  right:18px;
  bottom:18px;
  width:48px;
  height:48px;
  border-radius:999px;
  background:#071225;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 14px 35px rgba(15,23,42,.30);
  border:1px solid rgba(255,255,255,.18);
  font-size:21px;
  cursor:pointer;
  user-select:none;
}
#wms-sound-toggle[data-enabled="false"]{background:#64748b;opacity:.8;}
#wms-sound-toggle:hover{transform:translateY(-1px);}
#wms-sound-toast{
  position:fixed;
  right:18px;
  bottom:76px;
  z-index:2147483000;
  padding:10px 14px;
  border-radius:14px;
  background:#071225;
  color:#fff;
  font-size:13px;
  font-weight:800;
  box-shadow:0 10px 28px rgba(15,23,42,.24);
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
#wms-sound-toast.show{opacity:1;transform:translateY(0);}

/* mobile polish */
@media (max-width: 768px){
  body.wms-pro{background:#f8fafc!important;}
  body.wms-pro h1{font-size:2rem!important;}
  body.wms-pro button{min-height:48px!important;}
  body.wms-pro input,body.wms-pro select,body.wms-pro textarea{font-size:16px!important;min-height:48px!important;}
  body.wms-pro input[placeholder*="Skeniraj"],
  body.wms-pro input[placeholder*="skeniraj"],
  body.wms-pro input[placeholder*="SKU/EAN"],
  body.wms-pro input[placeholder*="SSCC"]{min-height:56px!important;}
  body.wms-pro table{font-size:.92rem;}
  body.wms-pro [class*="overflow-x-auto"]{-webkit-overflow-scrolling:touch;}
  #wms-sound-toggle{right:14px;bottom:78px;width:44px;height:44px;font-size:19px;}
  #wms-sound-toast{right:14px;bottom:128px;}
}

@media (prefers-reduced-motion: reduce){
  body.wms-pro *{transition:none!important;animation:none!important;}
}


/* MBus WMS Pro UI v2 - stronger warehouse terminal look */
body.wms-pro{--wms-focus:#2563eb;--wms-terminal:#071225;}
body.wms-pro main{background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%)!important;}
body.wms-pro [class*="rounded"][class*="border"]{border-width:1px!important;box-shadow:0 16px 42px rgba(15,23,42,.10)!important;}
body.wms-pro button[class*="bg-primary"],body.wms-pro .bg-primary{background:linear-gradient(135deg,#071225 0%,#0f172a 54%,#1e3a8a 100%)!important;color:#fff!important;}
body.wms-pro input[placeholder*="Skeniraj"],body.wms-pro input[placeholder*="skeniraj"],body.wms-pro input[placeholder*="EAN"],body.wms-pro input[placeholder*="SSCC"],body.wms-pro input[placeholder*="lokacijo"]{border:2px solid rgba(37,99,235,.45)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 4px 14px rgba(37,99,235,.06)!important;}
body.wms-pro[data-route*="/komision"] input[placeholder*="Skeniraj"],body.wms-pro[data-route*="/komision"] input[placeholder*="skeniraj"],body.wms-pro[data-route*="/komision"] input[placeholder*="SKU/EAN"],body.wms-pro[data-route*="/prevzem"] input[placeholder*="Skeniraj"],body.wms-pro[data-route*="/prevzem"] input[placeholder*="skeniraj"]{min-height:62px!important;font-size:1.12rem!important;}
body.wms-pro[data-route*="/komision"] button,body.wms-pro[data-route*="/prevzem"] button,body.wms-pro[data-route*="/vskladiscenje"] button{font-size:1rem!important;}
body.wms-pro[data-route*="/komision"] button[class*="bg-primary"],body.wms-pro[data-route*="/prevzem"] button[class*="bg-primary"],body.wms-pro[data-route*="/vskladiscenje"] button[class*="bg-primary"]{min-height:58px!important;font-size:1.06rem!important;text-transform:none;box-shadow:0 16px 34px rgba(15,23,42,.22)!important;}
body.wms-pro[data-route*="/komision"] [class*="font-mono"],body.wms-pro[data-route*="/prevzem"] [class*="font-mono"],body.wms-pro[data-route*="/vskladiscenje"] [class*="font-mono"]{font-size:1.05rem!important;color:#071225!important;}
body.wms-pro [data-sonner-toast]{border-radius:18px!important;font-size:15px!important;font-weight:850!important;}
#wms-sound-toggle{box-shadow:0 16px 38px rgba(15,23,42,.34)!important;}
@media (max-width:768px){body.wms-pro[data-route*="/komision"] button[class*="bg-primary"],body.wms-pro[data-route*="/prevzem"] button[class*="bg-primary"]{min-height:64px!important;font-size:1.1rem!important;}body.wms-pro[data-route*="/komision"] input,body.wms-pro[data-route*="/prevzem"] input{min-height:54px!important;}body.wms-pro h1{font-size:2.15rem!important;}}
