/* Aplikacioni UI za PU Milica Nozica Valjevo */
:root{
  --dfc-primary:#08756b;
  --dfc-primary-700:#075b53;
  --dfc-success:#059669;
  --dfc-warning:#d97706;
  --dfc-danger:#b91c1c;
  --dfc-text:#1f2937;
  --dfc-muted:#56616d;
  --dfc-bg:#f5f6f7;
  --dfc-panel:#ffffff;
  --dfc-soft:#f8fafc;
  --dfc-border:#dbe3ef;
  --dfc-border-strong:#cbd5e1;
  --dfc-radius:8px;
  --dfc-shadow:0 2px 8px rgba(15,23,42,.08);
  --dfc-sidebar:#ffffff;
  --sh-font:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sh-space:8px;
  --sh-control:44px;
  --sh-focus:#08756b;
}

*{ box-sizing:border-box; }

html{ background:var(--dfc-bg); scroll-padding-top:100px; }
*{ letter-spacing:0 !important; }
body.dfc-app,
body.toplevel_page_dfc_root,
body.toplevel_page_obracun-hrane,
body[class*="_page_dfc_"]{
  margin:0;
  background:var(--dfc-bg) !important;
  color:var(--dfc-text);
  font-family:var(--sh-font);
  font-size:14px;
  line-height:1.45;
}

a{ color:var(--dfc-primary); }
a:hover{ color:var(--dfc-primary-700); }

.sh-app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:248px minmax(0, 1fr);
}

.sh-app-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  padding:16px 12px;
  background:var(--dfc-sidebar);
  color:var(--dfc-text);
  border-right:1px solid var(--dfc-border);
}

.sh-brand{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 10px 14px;
  margin-bottom:10px;
  color:var(--dfc-text);
  text-decoration:none;
  border-bottom:1px solid var(--dfc-border);
}

.sh-brand strong{
  font-size:15px;
  line-height:1.25;
}

.sh-brand span{
  color:var(--dfc-muted);
  font-size:12px;
}

.sh-nav{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.sh-nav-group{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.sh-nav-title{
  padding:0 10px;
  color:var(--dfc-muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.sh-nav-link,
.sh-logout{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:var(--sh-control);
  color:var(--dfc-text);
  text-decoration:none;
  padding:8px 10px;
  border-radius:var(--dfc-radius);
  font-weight:600;
}

.sh-nav-link:hover,
.sh-logout:hover{
  background:#eef5f3;
  color:var(--dfc-primary-700);
}

.sh-nav-link.is-active{
  background:#e0f1eb;
  color:var(--dfc-primary-700);
  box-shadow:0 1px 0 rgba(255,255,255,.2);
}

.sh-logout{
  margin-top:18px;
}

.sh-app-content{
  min-width:0;
  padding:0 24px 28px;
}

.sh-topbar{
  position:sticky;
  top:0;
  z-index:20;
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  background:rgba(243,244,246,.92);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid rgba(203,213,225,.75);
}

.sh-eyebrow{
  color:var(--dfc-muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.sh-topbar-title{
  font-size:22px;
  font-weight:800;
}

.wrap{
  max-width:1500px;
  margin:18px auto 0;
}

.wrap h1{
  margin:0 0 6px;
  font-size:26px;
  line-height:1.2;
}

.sh-app-content > .wrap > h1:first-child,
.sh-app-content > .wrap > .dfc-page > h1:first-child{
  display:none;
}

.wrap h2,
.dfc-section h3{
  margin:0;
  font-size:17px;
  line-height:1.25;
}

.wrap h3{
  font-size:15px;
}

.dfc-subtle{
  color:var(--dfc-muted);
  margin-top:4px;
}

.dfc-box,
.dfc-card{
  border:0;
  border-top:1px solid var(--dfc-border);
  padding:16px;
  margin:14px 0;
  background:var(--dfc-panel);
  border-radius:0;
  box-shadow:none;
}

.dfc-grid{
  display:grid;
  grid-template-columns:repeat(12, minmax(0, 1fr));
  gap:14px;
}
.dfc-col-4{ grid-column:span 4; }
.dfc-col-6{ grid-column:span 6; }
.dfc-col-8{ grid-column:span 8; }
.dfc-col-12{ grid-column:span 12; }

.dfc-grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.dfc-flex{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
}

label{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
  font-weight:650;
  color:#334155;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="file"],
textarea,
select{
  min-height:var(--sh-control);
  max-width:100%;
  border:1px solid var(--dfc-border-strong) !important;
  border-radius:var(--dfc-radius) !important;
  padding:7px 9px !important;
  background:#fff;
  color:var(--dfc-text) !important;
  font:inherit !important;
}

textarea{ min-width:320px; }
select{ min-width:180px; }
input[type="number"]{ width:120px; }
.sh-field-wide{ width:min(520px, 100%); min-width:360px; }
.sh-field-medium{ width:260px; }
.sh-field-unit{ min-width:120px; }
.dfc-muted{ color:var(--dfc-muted); }

.sh-icon{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.dfc-stat-mark .sh-icon{
  width:22px;
  height:22px;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus{
  outline:2px solid var(--sh-focus);
  outline-offset:2px;
}

.button,
button.button,
input.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:var(--sh-control);
  padding:7px 12px;
  border:1px solid var(--dfc-border-strong);
  border-radius:var(--dfc-radius) !important;
  background:#fff;
  color:var(--dfc-text);
  text-decoration:none;
  cursor:pointer;
  font:inherit;
  font-weight:700;
  white-space:normal;
  overflow-wrap:anywhere;
}

.button:hover{
  background:var(--dfc-soft);
  border-color:#94a3b8;
}

.button.button-primary{
  background:var(--dfc-primary) !important;
  border-color:var(--dfc-primary) !important;
  color:#fff !important;
}

.button.button-primary:hover{
  background:var(--dfc-primary-700) !important;
}

.button.is-current{
  background:#172033;
  border-color:#172033;
  color:#fff;
}

.button-link-delete{
  display:inline-flex;
  align-items:center;
  min-height:var(--sh-control);
  padding:6px 8px;
  border:0;
  background:transparent;
  color:var(--dfc-danger);
  cursor:pointer;
  text-decoration:none;
  font-weight:750;
}

.button-link-delete:hover{
  color:#7f1d1d;
  background:#fef2f2;
  border-radius:var(--dfc-radius);
}

.widefat{
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:1px solid var(--dfc-border) !important;
  border-radius:var(--dfc-radius);
  overflow:hidden;
}

.widefat th,
.widefat td{
  text-align:left;
  padding:9px 10px !important;
  vertical-align:middle;
  border-bottom:1px solid var(--dfc-border);
}

.widefat thead th{
  background:#eef3f8;
  color:#334155;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.widefat tbody tr:hover td{
  background:#f8fbff;
}

.widefat tr:last-child td{
  border-bottom:0;
}

.dfc-table-scroll{
  width:100%;
  overflow:auto;
  border-radius:var(--dfc-radius);
}

.dfc-table-scroll.sh-freeze-scroll{
  max-height:calc(100vh - 170px);
}

.dfc-table-scroll.sh-freeze-scroll .widefat thead th{
  position:sticky;
  top:0;
  z-index:3;
}

.sh-ajax-select{
  position:relative;
  width:min(420px, 100%);
}

.sh-ajax-select input[type="text"]{
  width:100%;
  padding-right:34px !important;
}

.sh-ajax-select:after{
  content:"";
  position:absolute;
  right:12px;
  top:50%;
  width:8px;
  height:8px;
  border-right:2px solid var(--dfc-muted);
  border-bottom:2px solid var(--dfc-muted);
  transform:translateY(-65%) rotate(45deg);
  pointer-events:none;
}

.sh-ajax-select-menu{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 4px);
  z-index:40;
  max-height:260px;
  overflow:auto;
  background:#fff;
  border:1px solid var(--dfc-border-strong);
  border-radius:var(--dfc-radius);
  box-shadow:var(--dfc-shadow);
}

.sh-ajax-select.is-open .sh-ajax-select-menu{
  display:block;
}

.sh-ajax-select-option{
  min-height:var(--sh-control);
  width:100%;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  border:0;
  border-bottom:1px solid var(--dfc-border);
  background:#fff;
  color:var(--dfc-text);
  text-align:left;
  cursor:pointer;
  font:inherit;
}

.sh-ajax-select-option:hover,
.sh-ajax-select-option:focus,
.sh-ajax-select-option.is-active{
  background:#e0f1eb;
  color:#075b53;
}

.sh-ajax-select-option span,
.sh-ajax-select-empty{
  color:var(--dfc-muted);
  font-size:12px;
}

.sh-ajax-select-empty{
  padding:10px;
}

.dfc-edit-panel td{
  background:#f8fafc !important;
}

.sh-page-actions{
  display:flex;
  justify-content:flex-start;
  margin:8px 0 14px;
}

.sh-row-actions{ white-space:nowrap; }

.sh-ingredient-filter,
.sh-ingredient-map{
  display:block;
  width:min(420px, 100%);
  min-width:260px;
}
.sh-ingredient-filter{ margin-bottom:6px; }

.sh-dialog{
  width:min(460px, calc(100vw - 24px));
  max-height:min(90vh, 900px);
  padding:0;
  border:1px solid var(--dfc-border);
  border-radius:8px;
  background:#fff;
  color:var(--dfc-text);
  box-shadow:0 24px 70px rgba(0,0,0,.22);
}

.sh-dialog-wide{ width:min(720px, calc(100vw - 24px)); }
.sh-dialog::backdrop{ background:rgba(17,24,39,.58); }
.sh-dialog-head,
.sh-dialog-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 20px;
}
.sh-dialog-head{ border-bottom:1px solid var(--dfc-border); }
.sh-dialog-head h2{ margin:0; font-size:18px; }
.sh-dialog-close{
  border:0;
  background:transparent;
  color:var(--dfc-muted);
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.sh-dialog-body{ padding:20px; max-height:65vh; overflow:auto; }
.sh-dialog-body label{ width:100%; }
.sh-dialog-body input,
.sh-dialog-body select{ width:100%; }
.sh-dialog-actions{ justify-content:flex-end; border-top:1px solid var(--dfc-border); }
.sh-dialog-actions .dfc-ajax-status{ margin-right:auto; }
.sh-dialog-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.sh-dialog-span{ grid-column:1/-1; }
@media (max-width:600px){ .sh-dialog-grid{ grid-template-columns:1fr; } }

.dfc-stat{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.dfc-stat-title{
  margin:0 0 4px;
  color:var(--dfc-muted);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:12px;
}

.dfc-stat-value{
  margin:0;
  font-size:32px;
  font-weight:850;
  line-height:1.1;
}

.dfc-stat-mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:var(--dfc-radius);
  background:#dbeafe;
  color:#1d4ed8;
  font-weight:850;
}
.dfc-stat-mark.is-green{ background:#d1fae5; color:#047857; }
.dfc-stat-mark.is-amber{ background:#fef3c7; color:#b45309; }

.dfc-link{
  color:var(--dfc-primary);
  text-decoration:none;
  font-weight:750;
}
.dfc-link:hover{ text-decoration:underline; }

.dfc-day-head,
.dfc-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.dfc-day-date{
  font-size:18px;
  font-weight:750;
}

.dfc-pill,
.dfc-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:26px;
  padding:4px 8px;
  border-radius:999px;
  background:#eaf1ff;
  color:#1f2937;
  font-size:12px;
  font-weight:800;
}

.dfc-section{
  min-width:0;
  border:0;
  border-top:2px solid var(--dfc-border);
  border-radius:0;
  background:#fff;
  padding:12px;
}

.dfc-mini-card,
.dfc-report-summary{
  margin-top:12px;
  padding:12px;
  border:0;
  border-left:3px solid var(--dfc-border);
  border-radius:0;
  background:var(--dfc-soft);
  line-height:1.6;
}

.dfc-mini-title{
  font-weight:800;
  margin-bottom:6px;
}

.dfc-accordion .dfc-acc-item{
  border:1px solid var(--dfc-border);
  margin:10px 0;
  background:#fff;
  border-radius:var(--dfc-radius);
  overflow:hidden;
}

.dfc-acc-header{
  width:100%;
  min-height:40px;
  text-align:left;
  padding:10px 12px;
  background:#f1f5f9;
  border:none;
  cursor:pointer;
  color:#243044;
  font-size:14px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.dfc-acc-summary{
  padding:9px 12px;
  background:#fff;
  border-top:1px solid var(--dfc-border);
  color:var(--dfc-muted);
}

.dfc-acc-content{
  display:none;
  padding:12px;
  border-top:1px solid var(--dfc-border);
}

.dfc-acc-item.open .dfc-acc-content{ display:block; }

.dfc-meal-nutri{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.dfc-ajax-status{
  margin-left:4px;
  color:var(--dfc-muted);
  font-size:13px;
}
.dfc-ajax-status.is-error{
  color:var(--dfc-danger);
  font-weight:750;
}

.sh-app-login{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}
.sh-login-box{ width:min(420px, 100%); }

.sh-alert,
.sh-flash{
  padding:10px 12px;
  border-radius:var(--dfc-radius);
  font-weight:750;
}
.sh-alert,
.sh-flash-error{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
}
.sh-flash{
  max-width:1500px;
  margin:14px auto 0;
}
.sh-flash-success{
  background:#ecfdf5;
  color:#065f46;
  border:1px solid #a7f3d0;
}

.sh-week-list{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.sh-pagination{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:12px;
}

.sh-pagination span{
  color:var(--dfc-muted);
  padding:0 4px;
}

code{
  background:#eef2f7;
  padding:2px 5px;
  border-radius:5px;
}

@media (max-width:1200px){
  .dfc-col-4,.dfc-col-6,.dfc-col-8{ grid-column:span 12; }
  .dfc-grid-3{ grid-template-columns:1fr; }
}

@media (max-width:900px){
  .sh-app-shell{ grid-template-columns:1fr; }
  .sh-app-sidebar{
    position:static;
    height:auto;
    padding:12px;
  }
  .sh-nav{ gap:10px; }
  .sh-nav-group{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:6px;
  }
  .sh-nav-title{ grid-column:1 / -1; }
  .sh-app-content{ padding:0 14px 20px; }
  .sh-topbar{
    top:0;
    min-height:auto;
    align-items:flex-start;
    padding:12px 0;
  }
  .sh-topbar-title{ font-size:20px; }
  .dfc-day-head,
  .dfc-section-head{ flex-direction:column; }
  .dfc-meal-nutri{ grid-template-columns:1fr; }
}

@media (max-width:560px){
  .sh-nav-group{ grid-template-columns:1fr; }
  .sh-topbar{ flex-direction:column; }
  .wrap h1{ font-size:22px; }
  textarea{ min-width:100%; }
  label,
  input[type="text"],
  input[type="date"],
  input[type="password"],
  select{
    width:100%;
  }
  .sh-field-wide,
  .sh-field-medium{
    min-width:0;
    width:100%;
  }
  .button{ width:100%; }
}

/* Radne povrsine, statusi i prilagodjeni mobilni prikaz. */
.sh-work-band{ padding:24px 0; border-bottom:1px solid var(--dfc-border); }
.sh-work-band h2{ margin-bottom:12px; }
.sh-nav-toggle{ display:none; }
.sh-logout{ width:100%; border:0; background:transparent; font:inherit; cursor:pointer; }
.sh-user-box{ margin-top:20px; padding:10px; border-top:1px solid var(--dfc-border); }
.sh-sr-only,.sh-skip:not(:focus){ position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.sh-skip:focus{ position:fixed; top:8px; left:8px; z-index:100; background:white; padding:12px; }
.sh-save-status{ position:sticky; top:74px; z-index:15; background:var(--dfc-bg); color:var(--dfc-primary-700); font-weight:700; }
.sh-save-status:empty{ display:none; }
.sh-dirty-status{ display:block; flex-basis:100%; font-weight:700; color:#805000; margin:8px 0; }
[aria-invalid="true"]{ border-color:var(--dfc-danger) !important; }
small[role="alert"]{ display:block; color:var(--dfc-danger); max-width:240px; }
/* Zaključana akcija nije zahtev koji se još obrađuje. */
.button:disabled{ opacity:.65; cursor:not-allowed; }
.is-busy .button:disabled,
[aria-busy="true"] .button:disabled,
[data-sh-busy="1"] .button:disabled,
.button:disabled[aria-busy="true"]{ cursor:wait; }
.sh-dialog-close{ min-width:44px; min-height:44px; }
.sh-dialog-actions{ flex-wrap:wrap; }
.sh-dialog-body{ max-height:calc(100dvh - 210px); }
.wrap .sh-recipe-title{ display:block !important; font-size:22px; overflow-wrap:anywhere; }
.dfc-flex>label{ min-width:0; }
textarea{ min-width:0; width:min(520px,100%); }
.sh-brand{ min-width:0; }
.widefat td:last-child{ font-variant-numeric:tabular-nums; }
.dfc-section .widefat{ min-width:0; }
.dfc-section .widefat th,.dfc-section .widefat td{ overflow-wrap:anywhere; }
.dfc-section .widefat th[style]{ width:auto !important; }
.dfc-section .dfc-flex{ display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; }
.dfc-section .dfc-flex label,.dfc-section .sh-ajax-select{ width:100%; }
.dfc-day{ scroll-margin-top:90px; }
.sh-saved-weeks{ padding:12px 0; }
summary{ cursor:pointer; min-height:44px; padding:12px 0; font-weight:700; }
.sh-period-nav,.sh-day-links{ margin:12px 0; }
.dfc-ajax-status{ overflow-wrap:anywhere; }
.widefat th{ text-transform:none !important; }
.sh-login-box{ border:1px solid var(--dfc-border); border-radius:8px; }
.sh-norm-table{ min-width:600px; }
@media (max-width:900px){
  .sh-app-sidebar{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; border-bottom:1px solid var(--dfc-border); }
  .sh-brand{ flex:1; margin:0; padding:6px; border:0; }
  .sh-nav-toggle{ display:inline-flex; width:auto; }
  .sh-nav,.sh-user-box{ width:100%; }
  .sh-nav-ready:not(.sh-nav-open) .sh-nav,.sh-nav-ready:not(.sh-nav-open) .sh-user-box{ display:none; }
  .sh-nav-open .sh-nav{ display:flex; }
  .sh-topbar>a{ display:none; }
  .sh-topbar{ position:static; }
  .sh-save-status{ top:0; }
}
@media (max-width:560px){
  .dfc-flex{ align-items:stretch; }
  .dfc-flex>label{ flex-basis:100%; }
  .sh-week-list .button{ width:auto; flex:1 1 130px; }
  .sh-norm-table,.sh-norm-table tbody,.sh-norm-table tr,.sh-norm-table td{ display:block; width:100%; min-width:0; }
  .sh-norm-table thead{ display:none; }
  .sh-norm-table tr{ border-bottom:2px solid var(--dfc-border-strong); padding:8px 0; }
  .sh-norm-table td::before{ content:attr(data-label); display:block; font-weight:700; color:var(--dfc-muted); margin-bottom:4px; }
  .sh-norm-table input{ width:100% !important; }
  .sh-dialog-actions .button{ flex:1; width:auto; }
  .dfc-section .widefat .button{ width:auto; }
  .sh-row-actions{ white-space:normal; }
}
@page{ size:A4; margin:14mm; }
@media print{
  html,body.dfc-app{ background:white !important; color:black; }
  .sh-app-sidebar,.sh-topbar,.sh-save-status,.sh-page-actions,.sh-print-actions,.wrap>form,.sh-period-nav,.sh-day-links,.sh-saved-weeks{ display:none !important; }
  .sh-app-shell{ display:block; }
  .sh-app-content{ padding:0; }
  .widefat{ min-width:0 !important; width:100%; border-collapse:collapse; font-size:10pt; }
  .widefat th,.widefat td{ position:static !important; overflow-wrap:anywhere; padding:5px !important; }
  .dfc-table-scroll,.sh-freeze-scroll{ overflow:visible !important; max-height:none !important; }
  thead{ display:table-header-group; }
  tr{ break-inside:avoid; }
  h1,h2,h3{ break-after:avoid; }
  .dfc-box,.dfc-card{ box-shadow:none; margin:10px 0; padding:0; }
}

/* Wizard jelovnika — Saša Huremović / Orbilix. */
.sh-wizard{width:min(1040px,calc(100vw - 40px));max-width:1040px;max-height:90dvh;padding:0;overflow:auto;border:1px solid var(--sh-border,#d5dfe7);border-radius:12px}
.sh-wizard-form{padding:24px}.sh-wizard-header,.sh-wizard-footer{display:flex;gap:16px;align-items:center;justify-content:space-between}.sh-wizard-header h2{margin:0}.sh-wizard-header p{margin:8px 0;color:#475569}.sh-wizard-header .sh-dialog-close{flex-shrink:0;min-width:44px;min-height:44px}.sh-wizard-error:not(:empty){padding:14px;margin:12px 0;background:#fff1f2;color:#9f1239;border:1px solid #fecdd3;border-radius:8px}.sh-wizard fieldset{border:1px solid #d5dfe7;border-radius:8px;padding:16px;margin:20px 0}.sh-wizard fieldset label{display:inline-flex;align-items:center;gap:6px;margin:10px 20px 10px 0;min-height:44px}.sh-wizard fieldset input[type=radio]{width:20px;height:20px;min-height:20px}.sh-wizard-dates,.sh-wizard-counts{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sh-wizard label{display:block;font-weight:600}.sh-wizard label input{display:block;width:100%;box-sizing:border-box;margin-top:6px}.sh-wizard-meal-group{margin:20px 0;padding:16px;background:#f8fafc;border:1px solid #d5dfe7;border-radius:10px}.sh-wizard h3,.sh-wizard h4{margin:12px 0}.sh-wizard-recipe{background:white;padding:16px;border:1px solid #d5dfe7;border-radius:8px;margin-bottom:14px}.sh-wizard-recipe .sh-ajax-select{margin:8px 0 12px}.sh-wizard-recipe>button{margin-top:12px}.sh-wizard-defaults{padding:16px;margin:14px 0;border:1px solid #d5dfe7;display:grid;grid-template-columns:1fr 1fr;gap:12px}.sh-wizard-defaults strong{grid-column:1/-1}.sh-wizard-footer{flex-wrap:wrap;margin-top:24px;border-top:1px solid #d5dfe7;padding-top:16px}.sh-wizard-summary-day{padding:16px;margin:14px 0;border:1px solid #d5dfe7;border-radius:8px}.sh-wizard-summary-day p{overflow-wrap:anywhere}.sh-wizard-removal{color:#9f1239}.sh-wizard-totals{font-weight:700}.sh-wizard-status{flex-basis:100%}.sh-wizard [hidden]{display:none!important}.sh-open-wizard{margin-bottom:16px}.sh-wizard :focus-visible{outline:3px solid #0f766e;outline-offset:3px}
@media(max-width:560px){.sh-wizard{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.sh-wizard-form{padding:16px}.sh-wizard-dates,.sh-wizard-counts,.sh-wizard-defaults{grid-template-columns:1fr}.sh-wizard-footer .button{flex:1 1 44%}.sh-wizard-meal-group,.sh-wizard-recipe{padding:12px}.sh-wizard fieldset label{display:flex;margin-right:0}}
.sh-wizard-recipe-name{overflow-wrap:anywhere;margin:8px 0;color:#334155}

/* Provera sastojaka — Saša Huremović / Orbilix. */
.sh-review-stats{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}
.sh-review-stats span{background:var(--dfc-soft);padding:12px;border:1px solid var(--dfc-border);border-radius:8px}
.sh-review-group{margin-top:18px;overflow-wrap:anywhere}
.sh-review-ingredient{padding:10px 0;border-bottom:1px solid var(--dfc-border)}
.sh-review-warning{padding:10px;border-left:4px solid var(--dfc-warning);background:#fffbeb}
.sh-merge-dialog{width:min(1000px,96vw);max-height:94vh;box-sizing:border-box;padding:18px}
.sh-merge-dialog header{display:flex;align-items:center;justify-content:space-between}
.sh-merge-content{overflow-wrap:anywhere}.sh-merge-content label{display:block;margin:12px 0}
.sh-merge-content select{max-width:100%;width:100%}.sh-merge-content input[type=text]{width:100%;box-sizing:border-box}
.sh-merge-recipe{padding:12px 0;border-bottom:1px solid var(--dfc-border)}
.sh-merge-dialog footer{position:sticky;bottom:0;background:var(--dfc-panel);padding:12px 0;border-top:1px solid var(--dfc-border)}
.sh-review-audit{white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto}
@media(max-width:560px){.sh-merge-dialog{width:100%;max-width:100%;max-height:100dvh;margin:0;padding:14px}.sh-review-group select{width:100%;max-width:100%}.sh-review-group .sh-page-actions{display:grid;gap:8px}}

/* Nutritivni pregled — Orbilix. */
.sh-nut-entry { padding: 12px; margin: 12px 0; border: 1px solid var(--sh-border, #d5ddd7); border-radius: 6px; }
.sh-nut-entry summary { cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
.sh-nut-entry table { min-width: 0; width: 100%; }
.sh-nut-entry th, .sh-nut-entry td { overflow-wrap: anywhere; }
.sh-nutrition-review input[type=checkbox] { width: 22px; height: 22px; vertical-align: middle; margin: 11px; }
.sh-nutrition-review label { line-height: 1.6; }

/* Semantičke akcije — Saša Huremović / Orbilix. Tekst ostaje glavni signal. */
:root{
  --sh-action-positive:var(--dfc-primary); --sh-action-positive-hover:var(--dfc-primary-700);
  --sh-action-info:#1d4ed8; --sh-action-info-hover:#1e40af;
  --sh-action-danger:#b91c1c; --sh-action-danger-hover:#991b1b;
  --sh-action-neutral:#475569; --sh-action-neutral-hover:#334155;
  --sh-warning-text:#854d0e; --sh-warning-bg:#fffbeb; --sh-warning-border:#d97706;
}
.button.button-info,
.button.sh-open-ingredient:not(.button-primary),.button.sh-open-meal:not(.button-primary),
.button.dfc-edit-toggle:not(.sh-action-secondary),.button.sh-review-preview,.button.sh-nut-select,
.button.sh-review-decision[data-status="distinct"]{
  color:#fff!important;background:var(--sh-action-info)!important;border-color:var(--sh-action-info)!important;
}
.button.button-info:hover,.button.sh-open-ingredient:not(.button-primary):hover,.button.sh-open-meal:not(.button-primary):hover,
.button.dfc-edit-toggle:not(.sh-action-secondary):hover,.button.sh-review-preview:hover,.button.sh-nut-select:hover,
.button.sh-review-decision[data-status="distinct"]:hover{background:var(--sh-action-info-hover)!important;border-color:var(--sh-action-info-hover)!important;}
.button.sh-review-add,.button.sh-action-positive{background:var(--sh-action-positive);border-color:var(--sh-action-positive);color:#fff;}
.button.sh-review-add:hover,.button.sh-action-positive:hover{background:var(--sh-action-positive-hover);}
.button-link-delete,.button.button-danger{border:1px solid var(--sh-action-danger);border-radius:var(--dfc-radius);color:#fff;background:var(--sh-action-danger);padding:7px 12px;font:inherit;font-weight:700;justify-content:center;}
.button-link-delete:hover,.button.button-danger:hover{color:#fff;background:var(--sh-action-danger-hover);border-color:var(--sh-action-danger-hover);}
.button.sh-dialog-cancel,.button.sh-wizard-back,.button.sh-wizard-skip,.button.sh-nut-clear,.button.sh-action-secondary{
  color:#fff;background:var(--sh-action-neutral);border-color:var(--sh-action-neutral);
}
.button.sh-dialog-cancel:hover,.button.sh-wizard-back:hover,.button.sh-wizard-skip:hover,.button.sh-nut-clear:hover,.button.sh-action-secondary:hover{background:var(--sh-action-neutral-hover);border-color:var(--sh-action-neutral-hover);}
.sh-review-warning,.sh-alert,.notice-warning{color:var(--sh-warning-text);background:var(--sh-warning-bg);border-left:4px solid var(--sh-warning-border);padding:12px;}
.button:focus-visible,.button-link-delete:focus-visible,.sh-users summary:focus-visible{outline:3px solid var(--sh-focus);outline-offset:3px;}
.button:disabled,.button-link-delete:disabled{cursor:not-allowed;opacity:.65;}
[data-sh-busy="1"] .button:disabled,[aria-busy="true"] .button:disabled{cursor:wait;}
.sh-users-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;align-items:start;}
.sh-user-card{padding:20px;margin:16px 0;min-width:0;overflow-wrap:anywhere;}
.sh-user-card h2{margin-top:0;}.sh-user-card details{margin-top:20px;border-top:1px solid var(--dfc-border);padding-top:16px;}
.sh-user-card summary{cursor:pointer;font-weight:700;min-height:44px;padding:10px 0;color:var(--sh-action-info);}
.sh-user-form{display:grid;gap:14px;max-width:540px;margin-top:16px;}
.sh-user-form label{display:grid;gap:6px;font-weight:600;}
.sh-user-form input:not([type=checkbox]),.sh-user-form select{width:100%;min-width:0;min-height:44px;padding:10px 12px;box-sizing:border-box;border:1px solid var(--dfc-border);border-radius:var(--dfc-radius);font:inherit;background:#fff;color:var(--dfc-text);}
.sh-user-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;}
@media(max-width:560px){.sh-user-card{padding:14px;}.sh-user-form .button{width:100%;}}

/* Završna nutritivna potvrda ostaje uz svoje objašnjenje. */
.sh-nutrition-review .sh-nut-confirm{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:700;}
.sh-nutrition-review .sh-nut-confirm input{flex:0 0 22px;margin:0;}
.sh-nut-validation{scroll-margin-top:24px;}
