/* Studio360 — jedinstveni header modula i kartice. Ne dira bazu ni poslovnu logiku. */
.context-bar{display:none!important}

.module-shell{
  margin:0 0 18px;
  padding:0;
}
.module-headline{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 14px;
}
.module-inline-back{
  min-height:46px;
  padding:0 16px;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  font-weight:900;
  color:#fff;
  background:#111214;
  box-shadow:0 14px 30px rgba(17,18,20,.18);
  flex:0 0 auto;
}
.module-inline-back svg{width:18px;height:18px;fill:currentColor}
.module-icon-box{
  width:58px;
  height:58px;
  border-radius:21px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#e9c766,#cda044);
  color:#15110a;
  box-shadow:0 16px 35px rgba(205,160,68,.22);
  flex:0 0 auto;
}
.module-icon-box svg{width:24px;height:24px;fill:currentColor}
.module-name{min-width:0;flex:1 1 auto}
.module-name h1{
  margin:0;
  font-size:42px;
  line-height:1;
  letter-spacing:-.055em;
  color:#17191d;
}
.module-name p{
  margin:7px 0 0;
  color:#6f665b;
  font-size:16px;
  line-height:1.35;
}

.workflow-rail{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:stretch;
  margin:0 0 14px;
  padding:10px;
  border:1px solid rgba(221,230,238,.96);
  background:#f8fafc;
  border-radius:22px;
  box-shadow:0 12px 34px rgba(24,32,42,.055);
}
.workflow-rail-head{
  min-width:165px;
  display:grid;
  align-content:center;
  gap:3px;
  border:1px solid rgba(207,216,224,.9);
  background:#fff;
  border-radius:16px;
  padding:11px 13px;
}
.workflow-rail-head span{
  display:block;
  color:#526170;
  font-size:.74rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.workflow-rail-head strong{
  display:block;
  font-size:.94rem;
  line-height:1.16;
  color:#1f252b;
}
.workflow-rail-track{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
  gap:7px;
}
.workflow-step{
  min-width:0;
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:8px;
  row-gap:2px;
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(207,216,224,.94);
  background:#fff;
  border-radius:15px;
  padding:10px;
}
.workflow-step b{
  grid-row:1/3;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#eef2f6;
  color:#526170;
  font-size:.78rem;
  font-weight:950;
}
.workflow-step span,
.workflow-step small{
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}
.workflow-step span{
  font-size:.9rem;
  line-height:1.1;
  font-weight:950;
}
.workflow-step small{
  color:#6f7884;
  font-size:.74rem;
  line-height:1.15;
  font-weight:850;
}
.workflow-step.active{
  background:#111214;
  border-color:#111214;
  color:#fff;
  box-shadow:0 12px 26px rgba(17,18,20,.16);
}
.workflow-step.active b{
  background:rgba(255,255,255,.15);
  color:#fff;
}
.workflow-step.active small{color:rgba(255,255,255,.68)}
.workflow-step:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(24,32,42,.075);
}

.module-tabs-unified{
  margin:0 0 18px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
}
.module-tabs-unified .module-tabs{
  display:flex!important;
  align-items:center;
  gap:9px!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  margin:0!important;
  padding:0!important;
}
.module-tabs-unified .module-tab,
.module-tabs-unified button.module-tab{
  appearance:none;
  border:1px solid rgba(216,199,171,.95)!important;
  background:rgba(255,248,235,.84)!important;
  color:#201910!important;
  min-height:46px;
  padding:0 17px!important;
  border-radius:999px!important;
  font-weight:900!important;
  text-decoration:none!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  white-space:nowrap!important;
  line-height:1.1!important;
  cursor:pointer;
  box-shadow:none!important;
  font-family:inherit;
  font-size:14px;
}
.module-tabs-unified .module-tab:hover,
.module-tabs-unified button.module-tab:hover{background:#fff0d1!important;transform:none!important}
.module-tabs-unified .module-tab.active,
.module-tabs-unified button.module-tab.active{
  background:#111214!important;
  color:#fff!important;
  border-color:#111214!important;
}
.module-tabs-unified .module-tab.download-tab{
  background:#eef7ff!important;
  border-color:#c9e3ff!important;
  color:#1c496b!important;
}

/* Unutrašnje duple kartice se kriju: top kartice u headeru su glavni izvor navigacije. */
.section-tabs[data-section-tabs]{display:none!important}

/* Sadržaj ispod modula ostaje, ali bez velike praznine. */
.module-shell + .page-head,
.module-shell + form,
.module-shell + .card{
  margin-top:0!important;
}
.module-shell + .page-head h1{font-size:28px!important;letter-spacing:-.035em!important}
.module-shell + .page-head p{font-size:14px!important;max-width:760px}

@media(max-width:1200px){
  .module-shell{margin-bottom:12px}
  .module-headline{gap:10px;margin-bottom:10px;align-items:flex-start}
  .module-inline-back{min-height:42px;min-width:42px;padding:0 12px;border-radius:15px}
  .module-inline-back span{display:none}
  .module-icon-box{width:46px;height:46px;border-radius:17px}
  .module-icon-box svg{width:20px;height:20px}
  .module-name h1{font-size:28px;line-height:1.05;white-space:normal}
  .module-name p{font-size:13px;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .workflow-rail{
    display:block;
    margin:0 0 10px;
    padding:8px 0 8px 8px;
    border-radius:0;
    border-left:0;
    border-right:0;
    background:rgba(248,250,252,.96);
    backdrop-filter:blur(12px);
  }
  .workflow-rail-head{
    display:flex;
    align-items:center;
    gap:7px;
    border:0;
    background:transparent;
    padding:0 8px 7px 2px;
    min-width:0;
  }
  .workflow-rail-head strong{font-size:.82rem}
  .workflow-rail-track{
    display:flex;
    overflow-x:auto;
    padding:0 8px 1px 0;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .workflow-rail-track::-webkit-scrollbar{display:none}
  .workflow-step{
    flex:0 0 132px;
    scroll-snap-align:start;
    padding:9px;
  }
  .workflow-step b{width:25px;height:25px}
  .workflow-step span{font-size:.84rem}
  .workflow-step small{font-size:.7rem}
  .module-tabs-unified{margin-bottom:12px!important;position:sticky;top:var(--mobile-topbar-h,56px);z-index:48;background:rgba(245,239,230,.94)!important;backdrop-filter:blur(12px);padding:7px 0!important;border-bottom:1px solid rgba(231,220,203,.65)!important}
  .module-tabs-unified .module-tabs{overflow-x:auto!important;flex-wrap:nowrap!important;scroll-snap-type:x proximity;padding-bottom:2px!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .module-tabs-unified .module-tabs::-webkit-scrollbar{display:none}
  .module-tabs-unified .module-tab,
  .module-tabs-unified button.module-tab{min-height:39px;padding:0 13px!important;font-size:12.5px;flex:0 0 auto;scroll-snap-align:start}
}
@media(max-width:480px){
  .module-headline{gap:8px}
  .module-name h1{font-size:24px}
  .module-name p{display:none}
  .module-icon-box{width:42px;height:42px;border-radius:15px}
  .module-inline-back{width:42px;height:42px;padding:0;justify-content:center}
}
@media print{.module-shell{display:none!important}}

.settings-tabs.settings-tabs-stable{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:0 0 16px!important;
  padding:10px!important;
  background:rgba(255,253,248,.86)!important;
  border:1px solid rgba(231,220,203,.92)!important;
  border-radius:22px!important;
  box-shadow:0 14px 38px rgba(20,18,14,.06)!important;
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
  backdrop-filter:none!important;
}
.settings-tabs.settings-tabs-stable button{
  min-width:0!important;
  width:100%!important;
  min-height:42px;
  white-space:normal!important;
  line-height:1.12!important;
  text-align:center!important;
  padding:9px 10px!important;
}
@media(max-width:1200px){
  .settings-tabs.settings-tabs-stable{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .settings-tabs.settings-tabs-stable{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){
  .settings-tabs.settings-tabs-stable{grid-template-columns:1fr}
}
