/* V63 modul: Statusi kupca, pozivanje, čekanje, zaštita i jezici. */
/* V38 — obaveštenje kupcu kada je porudžbina odbijena */
.customer-status-cancelled .panel-head,
.customer-status-cancelled .customer-status-card{
  background:linear-gradient(145deg,rgba(254,226,226,.98),rgba(255,250,250,.94)) !important;
  border-color:rgba(220,38,38,.35) !important;
}
.customer-cancelled-message{
  font-size:18px;
  font-weight:950;
  color:#7f1d1d;
  line-height:1.5;
}
.customer-cancelled-message a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:6px 3px 0;
  padding:9px 13px;
  border-radius:999px;
  background:linear-gradient(135deg,#b4232a,#7f1117);
  color:#fff !important;
  font-weight:1000;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(127,17,23,.18);
}
.customer-cancelled-message a:hover{
  filter:brightness(.98);
  transform:translateY(-1px);
}
/* V38 END */


/* =========================================================
   V39 — POZOVITE NAS
   Stalno vidljivo u meniju mušterije.
   ========================================================= */
body.screen-customer .topbar{
  position:sticky !important;
  top:0 !important;
  z-index:300 !important;
}
body.screen-customer .call-wrap{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  flex:0 0 auto !important;
}
body.screen-admin .call-wrap,
body.screen-grill .call-wrap{
  display:none !important;
}
body.screen-customer .call-btn{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  white-space:nowrap !important;
}
.call-list{
  max-height:min(70vh,430px);
  overflow-y:auto;
  overscroll-behavior:contain;
  z-index:320 !important;
}
.call-list a{
  width:100%;
  min-height:54px;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  background:linear-gradient(135deg,var(--red),var(--red2)) !important;
  border:1px solid rgba(70,48,40,.16) !important;
  color:#fffaf5 !important;
  border-radius:999px !important;
  box-shadow:0 10px 22px rgba(155,106,96,.10) !important;
}
.call-list a strong{
  color:#fffaf5 !important;
  font-size:14px;
  line-height:1.1;
  font-weight:1000;
}
.call-list a small{
  color:#fffaf5 !important;
  font-size:12px;
  line-height:1.1;
  font-weight:900;
  opacity:.94;
}
@media(max-width:760px){
  body.screen-customer .topbar-inner{
    flex-direction:row !important;
    align-items:center !important;
  }
  body.screen-customer .call-wrap{
    margin-left:auto !important;
  }
  body.screen-customer .call-btn{
    min-height:42px !important;
    padding:9px 11px !important;
    font-size:13px !important;
  }
  body.screen-customer .call-list{
    position:fixed !important;
    top:74px !important;
    right:12px !important;
    left:12px !important;
    width:auto !important;
    max-height:calc(100vh - 90px) !important;
  }
}
/* V39 END */


/* =========================================================
   V44 — statistička procena čekanja (poslednjih 30 dana)
   ========================================================= */
.wait-estimate-panel{
  margin-top:12px;
  border:1px solid rgba(102,141,165,.30);
  border-radius:18px;
  padding:13px 14px;
  background:linear-gradient(145deg,rgba(231,244,252,.92),rgba(255,253,249,.96));
  color:#31566d;
}
.wait-estimate-panel[hidden]{display:none!important}
.wait-estimate-panel.loading{opacity:.72}
.wait-estimate-panel.warning{
  border-color:rgba(199,164,106,.48);
  background:linear-gradient(145deg,rgba(255,247,220,.96),rgba(255,253,247,.95));
  color:#72572f;
}
.wait-estimate-panel.danger{
  border-color:rgba(185,28,28,.38);
  background:linear-gradient(145deg,rgba(254,226,226,.96),rgba(255,250,247,.96));
  color:#991b1b;
  box-shadow:0 12px 26px rgba(185,28,28,.08);
}
.wait-estimate-main{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:950;line-height:1.35}
.wait-estimate-main svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wait-estimate-sub{margin-top:6px;font-size:12px;font-weight:800;line-height:1.4;color:inherit;opacity:.84}
.item-title-block{min-width:0;display:grid;gap:7px}
.item-wait-estimate{
  display:inline-flex;
  align-items:center;
  gap:7px;
  width:max-content;
  max-width:100%;
  padding:7px 10px;
  border:1px solid rgba(102,141,165,.28);
  border-radius:999px;
  background:rgba(231,244,252,.78);
  color:#315f7b;
  font-size:12px;
  font-weight:900;
  line-height:1.25;
}
.item-wait-estimate.warning{border-color:rgba(199,164,106,.44);background:rgba(255,247,220,.92);color:#765b32}
.item-wait-estimate.danger{border-color:rgba(185,28,28,.34);background:rgba(254,226,226,.90);color:#991b1b}
.item-wait-estimate.no-data{border-color:rgba(70,48,40,.12);background:rgba(112,83,70,.045);color:var(--muted)}
.item-wait-estimate svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.item-wait-estimate small{font-size:10px;font-weight:800;opacity:.78}
@media(max-width:520px){
  .item-main{align-items:flex-start}
  .item-wait-estimate{width:fit-content;border-radius:13px;align-items:flex-start}
}
/* V44 END */


/* =========================================================
   V47 — radno vreme u gornjoj zoni, između logotipa i poziva
   ========================================================= */
.working-hours-top{
  flex:1 1 auto;
  min-width:220px;
  padding:8px 16px;
  text-align:center;
  color:var(--text);
  line-height:1.3;
}
.working-hours-top strong{
  display:block;
  margin-bottom:2px;
  font-size:13px;
  font-weight:1000;
}
.working-hours-top span{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:850;
}
body.screen-admin .working-hours-top,
body.screen-grill .working-hours-top{
  display:none !important;
}
@media (max-width:760px){
  body.screen-customer .topbar-inner{
    flex-wrap:wrap;
  }
  body.screen-customer .brand{
    order:1;
  }
  body.screen-customer .call-wrap{
    order:2;
    margin-left:auto;
  }
  body.screen-customer .working-hours-top{
    order:3;
    flex:0 0 100%;
    min-width:0;
    padding:5px 4px 1px;
  }
  body.screen-customer .working-hours-top strong,
  body.screen-customer .working-hours-top span{
    font-size:12px;
  }
}
/* V47 END */


/* =========================================================
   V49 — porudžbina i status ostaju na uređaju do PREUZETA
   ========================================================= */
body.screen-customer .active-order-bar{
  width:100%;
  margin:18px 0 0;
  padding:13px 16px;
  border:1px solid rgba(155,106,96,.32);
  border-radius:18px;
  background:linear-gradient(135deg,#fff7ef,#f7e7db);
  color:var(--text);
  box-shadow:0 10px 24px rgba(73,52,43,.10);
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  text-align:left;
  cursor:pointer;
}
body.screen-customer .active-order-bar[hidden]{
  display:none !important;
}
body.screen-customer .active-order-bar-label{
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#7c4f43;
}
body.screen-customer .active-order-bar strong{
  font-size:14px;
  font-weight:1000;
}
body.screen-customer .active-order-bar-action{
  padding:7px 10px;
  border-radius:999px;
  background:#ffffff;
  font-size:12px;
  font-weight:1000;
  white-space:nowrap;
}
body.screen-customer .active-order-bar.ready{
  border-color:rgba(34,197,94,.48);
  background:linear-gradient(135deg,#ecfdf5,#dcfce7);
  color:#14532d;
}
body.screen-customer .active-order-bar.cancelled{
  border-color:rgba(220,38,38,.42);
  background:linear-gradient(135deg,#fef2f2,#fee2e2);
  color:#7f1d1d;
}
body.screen-grill .active-order-bar,
body.screen-admin .active-order-bar{
  display:none !important;
}
@media(max-width:680px){
  body.screen-customer .active-order-bar{
    grid-template-columns:1fr auto;
    gap:6px 10px;
    padding:12px;
  }
  body.screen-customer .active-order-bar-label{
    grid-column:1 / -1;
  }
  body.screen-customer .active-order-bar strong{
    font-size:13px;
  }
  body.screen-customer .active-order-bar-action{
    font-size:11px;
  }
}
/* V49 END */


/* =========================================================
   V50 — stvarna evidencija nepreuzetih porudžbina i zaštita
   ========================================================= */
.status-uncollected{border-color:rgba(220,38,38,.48)!important;background:rgba(254,242,242,.94)!important;}
body.screen-grill #grill .order-card.status-uncollected .order-head{background:linear-gradient(135deg,#b91c1c,#7f1d1d)!important;}
body.screen-grill #grill .order-actions .btn[data-status$=':uncollected']{background:linear-gradient(135deg,#dc2626,#991b1b)!important;color:#fff!important;border-color:transparent!important;}
.security-review-tag{animation:securityReviewPulse 1.6s ease-in-out infinite;}
@keyframes securityReviewPulse{50%{transform:scale(1.04);box-shadow:0 0 0 5px rgba(220,38,38,.12)}}
.security-order-message{display:grid;gap:6px;margin:14px 0;padding:14px 16px;border:1px solid #ef4444;border-radius:16px;background:#fef2f2;color:#7f1d1d;line-height:1.4;}
.security-order-message[hidden]{display:none!important;}
.security-order-message strong{font-size:14px;font-weight:1000;}
.security-order-message span{font-size:13px;font-weight:800;}
.security-order-message a{color:#991b1b;font-weight:1000;text-decoration:underline;}
.security-rules{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;}
.security-rules span{padding:8px 10px;border:1px solid rgba(148,163,184,.35);border-radius:999px;background:#fff;font-size:12px;font-weight:850;}
.security-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.security-profile{display:grid;gap:12px;padding:16px;border:1px solid rgba(148,163,184,.35);border-radius:18px;background:#fff;}
.security-profile-review{border-color:#f59e0b;background:#fffbeb;}
.security-profile-block{border-color:#ef4444;background:#fef2f2;}
.security-profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.security-profile-head h4{margin:0 0 4px;font-size:16px;}
.security-profile-head p{margin:0;color:var(--muted);font-size:12px;font-weight:750;}
.security-profile-count{display:flex;align-items:baseline;gap:9px;}
.security-profile-count b{font-size:30px;line-height:1;font-weight:1000;}
.security-profile-count span{font-size:13px;font-weight:850;}
.security-profile-meta{font-size:12px;color:var(--muted);font-weight:750;}
@media(max-width:760px){.security-profiles{grid-template-columns:1fr}.security-profile-head{align-items:flex-start}}
/* V50 END */


/* =========================================================
   V51 — upozorenje posle dve nepreuzete porudžbine
   ========================================================= */
body.screen-customer .security-customer-warning{
  margin-top:14px;
  padding:14px 16px;
  border:1px solid #f59e0b;
  border-radius:16px;
  background:#fffbeb;
  color:#78350f;
  box-shadow:0 8px 20px rgba(146,64,14,.08);
  line-height:1.45;
}
body.screen-customer .security-customer-warning[hidden]{
  display:none !important;
}
body.screen-customer .security-customer-warning strong{
  display:block;
  margin-bottom:4px;
  font-size:14px;
  font-weight:1000;
}
body.screen-customer .security-customer-warning span{
  display:block;
  font-size:13px;
  font-weight:850;
}
body.screen-grill .security-customer-warning,
body.screen-admin .security-customer-warning{
  display:none !important;
}
/* V51 END */


/* =========================================================
   V53 — isti font kao opis iznad, samo boldovan
   ========================================================= */
.start-notice .technical-data-note{
  font-family:inherit;
  font-size:15px;
  line-height:1.5;
  font-weight:800;
  letter-spacing:normal;
  color:#6f2e35;
  margin-top:7px;
}
/* V53 END */


/* =========================================================
   V60 — izbor jezika samo za mušteriju
   ========================================================= */
.header-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}
.header-actions .call-wrap{margin-left:0}
.language-wrap{
  position:relative;
  display:none;
  align-items:center;
  flex:0 0 auto;
}
body.screen-customer .language-wrap{display:flex}
body.screen-grill .language-wrap,
body.screen-admin .language-wrap{display:none!important}
.header-actions .call-btn,
.header-actions .language-btn{
  width:auto;
  min-width:0;
  min-height:42px;
  padding:9px 11px;
  font-size:13px;
  justify-content:center;
  box-sizing:border-box;
}
.language-btn{
  max-width:152px;
  border:1px solid rgba(70,48,40,.16);
  background:#fffdf9;
  color:#2b1a14;
  border-radius:999px;
  font-weight:950;
  display:inline-flex;
  align-items:center;
  gap:5px;
  box-shadow:0 12px 24px rgba(70,48,40,.10);
  white-space:nowrap;
  overflow:hidden;
}
.language-btn:hover{transform:translateY(-1px);filter:brightness(.99)}
.language-current-flag,
.language-option-flag{
  flex:0 0 auto;
  width:19px;
  height:13px;
  line-height:0;
  border-radius:3px;
  overflow:hidden;
  box-shadow:0 0 0 1px rgba(43,26,20,.16);
  background:#fff;
}
.language-current-flag svg,
.language-option-flag svg{
  display:block;
  width:100%;
  height:100%;
}
.language-current-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.language-chevron{font-size:10px;opacity:.58;flex:0 0 auto}
.language-list{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:325;
  display:grid;
  gap:4px;
  width:max-content;
  min-width:0;
  max-width:calc(100vw - 24px);
  max-height:min(70vh,430px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  scrollbar-gutter:auto;
  padding:6px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,253,249,.99);
  box-shadow:0 18px 38px rgba(70,48,40,.15);
}
.language-list[hidden]{display:none}
.language-option{
  width:auto;
  min-width:100%;
  min-height:38px;
  padding:7px 9px;
  border:1px solid rgba(70,48,40,.12);
  border-radius:11px;
  background:#fff;
  color:#2b1a14;
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.language-option:hover,.language-option.active{background:#fff1e6;border-color:rgba(155,106,96,.34)}
.language-option-check{margin-left:auto;color:var(--red2);font-weight:1000}
body.screen-admin .header-actions,body.screen-grill .header-actions{display:none!important}
body.screen-customer .header-actions{display:flex!important}
@media(max-width:760px){
  body.screen-customer .topbar-inner{flex-wrap:wrap!important}
  body.screen-customer .brand{order:1}
  body.screen-customer .header-actions{
    order:2;
    flex:0 0 100%;
    width:100%;
    margin-left:0;
    justify-content:stretch;
  }
  body.screen-customer .header-actions{
    justify-content:flex-end;
    gap:7px;
  }
  body.screen-customer .header-actions .call-wrap,
  body.screen-customer .header-actions .language-wrap{flex:0 0 auto}
  body.screen-customer .call-btn,
  body.screen-customer .language-btn{
    width:auto;
    min-width:0;
    min-height:42px!important;
    padding:9px 11px!important;
    font-size:13px!important;
  }
  body.screen-customer .working-hours-top{order:3}
  body.screen-customer .language-list{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    right:0!important;
    left:auto!important;
    width:max-content!important;
    min-width:0!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100vh - 150px)!important;
  }
  body.screen-customer .call-list{top:126px!important}
}
/* V62 — modularna struktura, faza 1 */
/* V60 END */
