/* Zdravko.ai — liječnički kalkulatori
   Ovaj file je namjerno odvojen od app.css jer se odnosi samo na liječničke alate. */

@media (min-width: 641px){
  #doctorToolsModal{
    width:min(980px, calc(100vw - 32px));
  }
}

#doctorToolsModal .dt-calculators-screen{
  gap:14px;
}
#doctorToolsModal .dt-calc-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:100%;
}
#doctorToolsModal .dt-calc-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
#doctorToolsModal .dt-calc-title-wrap{
  min-width:0;
  flex:1 1 auto;
}
#doctorToolsModal .dt-calc-title{
  margin:0;
  font-weight:950;
  color:#0f172a;
  font-size:1.2rem;
  line-height:1.18;
}
#doctorToolsModal .dt-calc-subtitle{
  margin:6px 0 0;
  color:#64748b;
  font-size:.94rem;
  line-height:1.38;
}
#doctorToolsModal .dt-calc-back{
  flex:0 0 auto;
  min-height:34px;
  padding:7px 11px;
  border-radius:12px;
  font-size:.9rem;
  font-weight:900;
  white-space:nowrap;
}

#doctorToolsModal .dt-calc-searchbox{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:50px;
  padding:6px 10px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
#doctorToolsModal .dt-calc-searchbox:focus-within{
  border-color:rgba(13,148,136,.42);
  box-shadow:0 0 0 3px rgba(13,148,136,.12), 0 10px 24px rgba(15,23,42,.06);
}
#doctorToolsModal .dt-calc-search-icon{
  width:22px;
  height:22px;
  color:#64748b;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  font-size:1.05rem;
}
#doctorToolsModal .dt-calc-scope-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  padding:5px 8px 5px 10px;
  background:rgba(13,148,136,.10);
  color:#0f766e;
  font-weight:850;
  font-size:.82rem;
  max-width:44%;
  white-space:nowrap;
}
#doctorToolsModal .dt-calc-scope-chip[hidden]{ display:none !important; }
#doctorToolsModal .dt-calc-scope-label{
  overflow:hidden;
  text-overflow:ellipsis;
}
#doctorToolsModal .dt-calc-scope-clear{
  border:0;
  background:rgba(13,148,136,.12);
  color:#0f766e;
  width:20px;
  height:20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  line-height:1;
  padding:0;
}
#doctorToolsModal .dt-calc-search{
  flex:1 1 auto;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#0f172a;
  font-size:1rem;
  min-height:34px;
}
#doctorToolsModal .dt-calc-search::placeholder{ color:#94a3b8; }

#doctorToolsModal .dt-calc-section{
  display:flex;
  flex-direction:column;
  gap:9px;
}
#doctorToolsModal .dt-calc-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#0f172a;
  font-size:.95rem;
  font-weight:950;
  padding:0 2px;
}
#doctorToolsModal .dt-calc-section-meta{
  color:#64748b;
  font-size:.82rem;
  font-weight:750;
}
#doctorToolsModal .dt-calc-card-list{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
#doctorToolsModal .dt-calc-card{
  width:100%;
  text-align:left;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg,#fff,rgba(248,250,252,.92));
  border-radius:18px;
  padding:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#0f172a;
  cursor:pointer;
}
#doctorToolsModal .dt-calc-card:hover{
  border-color:rgba(13,148,136,.36);
  background:linear-gradient(180deg,#fff,rgba(240,253,250,.95));
  transform:translateY(-1px);
}
#doctorToolsModal .dt-calc-card:focus-visible{
  outline:3px solid rgba(13,148,136,.22);
  outline-offset:2px;
}
#doctorToolsModal .dt-calc-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
#doctorToolsModal .dt-calc-card-title{
  display:block;
  min-width:0;
  font-weight:950;
  line-height:1.22;
  color:#0f172a;
  font-size:1rem;
}
#doctorToolsModal .dt-calc-card-sub{
  display:block;
  color:#475569;
  font-size:.9rem;
  line-height:1.38;
}
#doctorToolsModal .dt-calc-card-meta{
  display:inline-flex;
  flex:0 0 auto;
  max-width:48%;
  color:#0f766e;
  background:rgba(13,148,136,.08);
  border:1px solid rgba(13,148,136,.12);
  border-radius:999px;
  padding:3px 8px;
  font-size:.76rem;
  font-weight:850;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#doctorToolsModal .dt-calc-category-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
#doctorToolsModal .dt-calc-category-card{
  position:relative;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:18px;
  padding:13px 58px 13px 12px;
  text-align:left;
  color:#0f172a;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  cursor:pointer;
}
#doctorToolsModal .dt-calc-category-card:hover{
  border-color:rgba(13,148,136,.34);
  background:rgba(240,253,250,.62);
}
#doctorToolsModal .dt-calc-category-title{
  font-weight:950;
  line-height:1.22;
}
#doctorToolsModal .dt-calc-category-count{
  margin-top:4px;
  color:#64748b;
  font-size:.84rem;
  font-weight:750;
}
#doctorToolsModal .dt-calc-category-badge{
  position:absolute;
  top:10px;
  right:10px;
  min-width:34px;
  height:26px;
  padding:0 9px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(13,148,136,.10);
  border:1px solid rgba(13,148,136,.20);
  color:#0f766e;
  font-size:.82rem;
  font-weight:950;
  line-height:1;
}
#doctorToolsModal .dt-calc-empty{
  border:1px dashed rgba(100,116,139,.35);
  border-radius:18px;
  padding:18px 14px;
  color:#64748b;
  background:rgba(248,250,252,.75);
  text-align:center;
  line-height:1.4;
}

#doctorToolsModal .dt-calc-form-card{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:18px;
  padding:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
#doctorToolsModal .dt-calc-field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px 12px;
}
#doctorToolsModal .dt-calc-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}
#doctorToolsModal .dt-calc-field-label{
  color:#334155;
  font-size:.88rem;
  font-weight:900;
  line-height:1.25;
}
#doctorToolsModal .dt-calc-input-wrap{
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:14px;
  background:#fff;
  padding:0 10px;
  min-height:46px;
}
#doctorToolsModal .dt-calc-input-wrap:focus-within{
  border-color:rgba(13,148,136,.42);
  box-shadow:0 0 0 3px rgba(13,148,136,.10);
}
#doctorToolsModal .dt-calc-input,
#doctorToolsModal .dt-calc-select{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#0f172a;
  font-size:1rem;
  min-height:44px;
}
#doctorToolsModal .dt-calc-select{
  border:1px solid rgba(15,23,42,.12);
  border-radius:14px;
  padding:0 10px;
  background:#fff;
}
#doctorToolsModal .dt-calc-unit{
  color:#64748b;
  font-size:.86rem;
  font-weight:850;
  white-space:nowrap;
}

#doctorToolsModal .dt-calc-segmented{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:1fr;
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  min-height:46px;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
}
#doctorToolsModal .dt-calc-segment{
  border:0;
  border-left:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#334155;
  min-height:44px;
  padding:9px 10px;
  font-size:.92rem;
  font-weight:900;
  line-height:1.18;
  cursor:pointer;
}
#doctorToolsModal .dt-calc-segment:first-of-type{ border-left:0; }
#doctorToolsModal .dt-calc-segment:hover{ background:rgba(240,253,250,.65); }
#doctorToolsModal .dt-calc-segment.is-active{
  background:#0f766e;
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
#doctorToolsModal .dt-calc-segmented[data-empty="1"] .dt-calc-segment:not(.is-active){
  color:#64748b;
}
#doctorToolsModal .dt-calc-segmented-boolean .dt-calc-segment{ min-height:42px; }

#doctorToolsModal .dt-calc-segmented-many{
  grid-auto-flow:row;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#doctorToolsModal .dt-calc-segmented-many .dt-calc-segment{
  border-left:1px solid rgba(15,23,42,.12);
  border-top:1px solid rgba(15,23,42,.12);
}
#doctorToolsModal .dt-calc-segmented-many .dt-calc-segment:nth-of-type(1),
#doctorToolsModal .dt-calc-segmented-many .dt-calc-segment:nth-of-type(2){
  border-top:0;
}
#doctorToolsModal .dt-calc-segmented-many .dt-calc-segment:nth-of-type(2n+1){
  border-left:0;
}
#doctorToolsModal .dt-calc-segmented-many[data-count="5"] .dt-calc-segment:last-of-type{
  grid-column:1 / -1;
}

#doctorToolsModal .dt-calc-check-label{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(248,250,252,.72);
  cursor:pointer;
  color:#0f172a;
  font-weight:820;
  line-height:1.25;
}
#doctorToolsModal .dt-calc-check-label input{
  width:18px;
  height:18px;
  accent-color:#0f766e;
  flex:0 0 auto;
}
#doctorToolsModal .dt-calc-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:12px;
}
#doctorToolsModal .dt-calc-actions .btn{
  flex:1 1 180px;
}
#doctorToolsModal .dt-calc-inline-note{
  margin-top:10px;
  color:#64748b;
  font-size:.86rem;
  line-height:1.38;
}
#doctorToolsModal .dt-calc-inline-note.is-warning{
  color:#92400e;
  background:#fffbeb;
  border:1px solid #fde68a;
  border-radius:14px;
  padding:10px 12px;
}
#doctorToolsModal .dt-calc-inline-note[hidden]{ display:none !important; }

#doctorToolsModal .dt-calc-result-card[hidden]{ display:none !important; }
#doctorToolsModal .dt-calc-result-sticky{
  position:sticky;
  bottom:0;
  z-index:4;
  margin-top:auto;
  border:0;
  background:#0f766e;
  color:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow:0 -6px 22px rgba(15,23,42,.16), 0 10px 24px rgba(15,118,110,.18);
}
#doctorToolsModal .dt-calc-result-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
#doctorToolsModal .dt-calc-result-label{
  color:#fff;
  font-size:1.35rem;
  font-weight:950;
  line-height:1.1;
  letter-spacing:-.02em;
  white-space:nowrap;
}
#doctorToolsModal .dt-calc-result-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  min-width:74px;
  padding:8px 13px;
  border-radius:14px;
  background:rgba(255,255,255,.96);
  color:#0f766e;
  border:1px solid rgba(255,255,255,.74);
  box-shadow:0 8px 18px rgba(15,23,42,.16), inset 0 0 0 1px rgba(13,148,136,.06);
  font-size:1.7rem;
  line-height:1.05;
  font-weight:1000;
  text-align:center;
  letter-spacing:-.03em;
  overflow-wrap:anywhere;
}
#doctorToolsModal .dt-calc-result-placeholder{
  color:rgba(255,255,255,.72);
  font-size:.95rem;
  line-height:1.25;
  font-weight:850;
  text-align:right;
}
#doctorToolsModal .dt-calc-result-interpretation{
  margin-top:9px;
  color:rgba(255,255,255,.88);
  line-height:1.38;
  font-weight:760;
}
#doctorToolsModal .dt-calc-result-details{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:7px;
}
#doctorToolsModal .dt-calc-result-details li{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid rgba(255,255,255,.18);
  padding-top:7px;
  color:#fff;
  line-height:1.35;
}
#doctorToolsModal .dt-calc-result-details span:first-child{
  color:rgba(255,255,255,.72);
  font-weight:780;
}
#doctorToolsModal .dt-calc-result-details span:last-child{
  text-align:right;
  font-weight:850;
}
#doctorToolsModal .dt-calc-warning-list{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(254,243,199,.45);
  background:rgba(255,251,235,.14);
  color:#fffbeb;
  font-size:.86rem;
  line-height:1.38;
}
#doctorToolsModal .dt-calc-warning-list div + div{ margin-top:4px; }
#doctorToolsModal .dt-calc-result-sticky .dt-calc-actions{
  margin-top:10px;
}
#doctorToolsModal .dt-calc-result-sticky .btn{
  background:rgba(255,255,255,.14);
  color:#fff;
  border-color:rgba(255,255,255,.24);
}
#doctorToolsModal .dt-calc-result-actions{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);
  gap:9px;
}
#doctorToolsModal .dt-calc-result-actions .btn{
  flex:none;
  min-height:42px;
  border-radius:13px;
  font-weight:900;
}
#doctorToolsModal .dt-calc-result-actions .dt-calc-ask-ai{
  background:linear-gradient(135deg, #ffffff 0%, #f0fdfa 56%, #ccfbf1 100%);
  color:#064e49;
  border-color:rgba(255,255,255,.92);
  box-shadow:0 14px 30px rgba(2,44,34,.22), 0 0 0 3px rgba(204,251,241,.18), inset 0 1px 0 rgba(255,255,255,.92);
}
#doctorToolsModal .dt-calc-result-actions .dt-calc-ask-ai:hover,
#doctorToolsModal .dt-calc-result-actions .dt-calc-ask-ai:focus-visible{
  background:linear-gradient(135deg, #ffffff 0%, #e6fffb 52%, #99f6e4 100%);
  color:#042f2e;
  box-shadow:0 16px 34px rgba(2,44,34,.26), 0 0 0 4px rgba(204,251,241,.22), inset 0 1px 0 rgba(255,255,255,.95);
}
#doctorToolsModal .dt-calc-result-actions .dt-calc-copy-result{
  background:rgba(255,255,255,.14);
  color:#fff;
}

@media (max-width: 620px){
  #doctorToolsModal .dt-calc-topbar{
    flex-direction:row;
    align-items:flex-start;
  }
  #doctorToolsModal .dt-calc-back{
    min-height:32px;
    padding:6px 10px;
    border-radius:11px;
  }
  #doctorToolsModal .dt-calc-category-grid,
  #doctorToolsModal .dt-calc-field-grid{
    grid-template-columns:1fr;
  }
  #doctorToolsModal .dt-calc-scope-chip{
    max-width:52%;
    font-size:.78rem;
  }
  #doctorToolsModal .dt-calc-card{
    border-radius:17px;
    padding:13px;
  }
  #doctorToolsModal .dt-calc-card-head{
    gap:8px;
  }
  #doctorToolsModal .dt-calc-card-meta{
    max-width:42%;
    font-size:.72rem;
  }
  #doctorToolsModal .dt-calc-segmented{
    min-height:44px;
  }
  #doctorToolsModal .dt-calc-segment{
    min-height:42px;
    padding:8px 8px;
    font-size:.88rem;
  }
  #doctorToolsModal .dt-calc-result-sticky{
    border-radius:14px;
    padding:13px;
  }
  #doctorToolsModal .dt-calc-result-label{
    font-size:1.18rem;
  }
  #doctorToolsModal .dt-calc-result-primary{
    min-width:60px;
    padding:7px 10px;
    border-radius:12px;
    font-size:1.35rem;
  }
  #doctorToolsModal .dt-calc-segmented-many{
    grid-template-columns:1fr;
  }
  #doctorToolsModal .dt-calc-segmented-many .dt-calc-segment{
    border-left:0;
    border-top:1px solid rgba(15,23,42,.12);
  }
  #doctorToolsModal .dt-calc-segmented-many .dt-calc-segment:nth-of-type(1){
    border-top:0;
  }
  #doctorToolsModal .dt-calc-segmented-many[data-count="5"] .dt-calc-segment:last-of-type{
    grid-column:auto;
  }
  #doctorToolsModal .dt-calc-category-card{
    padding-right:54px;
  }
  #doctorToolsModal .dt-calc-category-badge{
    min-width:30px;
    height:24px;
    font-size:.78rem;
  }
  #doctorToolsModal .dt-calc-result-actions{
    grid-template-columns:1fr;
  }
}
