:root{--b:#1769e0;font-family:Arial,sans-serif;color:#172033}*{box-sizing:border-box}body{margin:0;background:#f1f4f8}header{position:sticky;top:0;background:#fff;border-bottom:1px solid #d8dee7;padding:14px;z-index:5}.w{max-width:980px;margin:auto}.h{display:flex;justify-content:space-between;align-items:center}h1{font-size:1.18rem;margin:0}header p{margin:3px 0;color:#667085;font-size:.82rem}.badge{background:#dce8f8;color:#174a8b;padding:6px 9px;border-radius:999px;font-size:.72rem;font-weight:bold}main{max-width:980px;margin:auto;padding:12px}.notice{background:#fff4d8;border:1px solid #efc45c;border-radius:12px;padding:11px;font-size:.86rem}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}.tabs.five{grid-template-columns:repeat(5,1fr)}.tabs.eight{grid-template-columns:repeat(4,1fr)}.tab{padding:10px;border:1px solid #cbd3df;background:#fff;border-radius:10px;font-weight:bold}.tab.active{background:var(--b);color:#fff}.hidden{display:none!important}.card{background:#fff;border:1px solid #d7dde5;border-radius:16px;padding:14px;margin-bottom:10px;box-shadow:0 6px 20px #00000010}textarea,input{width:100%;padding:12px;border:1px solid #b7c0cc;border-radius:10px;font:inherit}textarea{min-height:110px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.primary,.secondary,.topic,.option{padding:10px 13px;border-radius:10px;font-weight:bold;cursor:pointer}.primary{border:0;background:var(--b);color:#fff}.secondary{border:0;background:#e8ecf1}.match{margin-top:10px;background:#edf4ff;border:1px solid #b8d2ff;border-radius:12px;padding:11px}.topics{display:flex;flex-wrap:wrap;gap:7px;max-height:360px;overflow:auto;margin-top:10px}.topic{border:1px solid #ccd4df;background:#fff;font-size:.78rem}.pill{display:inline-block;background:#eef2f7;border-radius:999px;padding:5px 8px;font-size:.76rem;font-weight:bold;margin:2px;cursor:pointer}.chat{min-height:150px;max-height:28vh;overflow:auto;display:flex;flex-direction:column;gap:8px}.msg{max-width:88%;padding:10px 12px;border-radius:14px}.ai{align-self:flex-start;background:#eef2f7}.user{align-self:flex-end;background:var(--b);color:#fff}.bar{height:8px;background:#e7ebf0;border-radius:999px;overflow:hidden}.fill{height:100%;background:var(--b)}.progress{font-size:.8rem;color:#667085;margin:10px 0 5px}.options{display:grid;gap:8px}.option{text-align:left;background:#f7f9fc;border:1px solid #cfd7e3}@keyframes emergencyPulse{0%,100%{background:#fff1f0;border-color:#f3b4ae;box-shadow:0 0 0 0 rgba(217,45,32,.15)}50%{background:#ffd7d3;border-color:#d92d20;box-shadow:0 0 0 7px rgba(217,45,32,0)}}.flag{margin-top:10px;background:#fff1f0;border:2px solid #d92d20;color:#9f241a;padding:12px 14px;border-radius:10px;font-size:1.05rem;font-weight:800;animation:emergencyPulse 1.15s ease-in-out infinite}@media (prefers-reduced-motion:reduce){.flag{animation:none}}.urgency{display:inline-block;padding:8px 10px;border-radius:9px;font-weight:bold}.red{background:#fee4e2;color:#b42318}.yellow{background:#fef0c7;color:#b54708}.green{background:#dcfae6;color:#067647}h2{font-size:1.15rem}h3{font-size:.96rem;margin:13px 0 5px}ul{padding-left:20px}li{margin:6px 0}.grid{display:grid;gap:9px}.item{border:1px solid #d9dfe8;border-radius:12px;padding:11px}.price{font-weight:bold;color:#174a8b}.timegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}.timebox{background:#f4f6f9;border-radius:8px;padding:6px;text-align:center;font-size:.7rem}.timebox strong{display:block;font-size:.9rem}.small{text-align:center;font-size:.75rem;color:#6b7585;margin:12px}
@media(min-width:720px){.options{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr 1fr}}

.profilegrid{display:grid;gap:9px}.profile{border:1px solid #d9dfe8;border-radius:12px;padding:11px;background:#fff}.profile h3{margin:0 0 5px}
.infogrid{display:grid;gap:9px}.infoitem{border:1px solid #d9dfe8;border-radius:12px;padding:11px;background:#fff}
.priceTable{width:100%;border-collapse:collapse;font-size:.85rem}.priceTable td{border-bottom:1px solid #e3e8ef;padding:8px 5px;vertical-align:top}.priceTable td:first-child{font-weight:bold;width:58%}
.advicegrid{display:grid;gap:9px}.advicecard{border:1px solid #d9dfe8;border-radius:12px;padding:12px;background:#fff}.advicecard h3{margin:0 0 6px}.sourceNote{font-size:.77rem;color:#667085;margin-top:7px}
@media(max-width:650px){.tabs.five,.tabs.eight{grid-template-columns:repeat(2,1fr)}}
@media(min-width:720px){.profilegrid,.infogrid,.advicegrid{grid-template-columns:1fr 1fr}}

.toolrow{display:flex;gap:8px;flex-wrap:wrap}.linkbtn{display:inline-block;text-decoration:none;background:#174a8b;color:#fff;padding:9px 12px;border-radius:9px;font-weight:800;font-size:.84rem}
.linkbtn.alt{background:#475467}.analysisbox{background:#f7f9fc;border:1px solid #d5dce6;border-radius:12px;padding:12px;margin-top:10px}.analysisbox.red{background:#fff0ef;border-color:#f2b8b2}.analysisbox.yellow{background:#fff8e7;border-color:#f1d17e}.analysisbox.green{background:#edf9f1;border-color:#9dd8ae}
.labgrid{display:grid;gap:8px}.labcard{border:1px solid #d9dfe8;border-radius:12px;padding:11px;background:#fff}.labcard h3{margin:0 0 5px}.tag{display:inline-block;background:#eef2f7;border-radius:999px;padding:4px 7px;font-size:.74rem;font-weight:750;margin:2px}
.checklist label{display:block;padding:7px 0;border-bottom:1px solid #edf0f4}.checklist input{width:auto;margin-right:7px}.sourcebox{background:#eef4ff;border-left:4px solid #1769e0;padding:10px;border-radius:8px;margin-top:10px;font-size:.84rem}
@media(min-width:720px){.labgrid{grid-template-columns:1fr 1fr}}
.copyok{color:#067647;font-weight:800}.copyfail{color:#b42318;font-weight:800}
.dxcols{display:grid;gap:10px}.dxbox{border:1px solid #d8dee7;border-radius:12px;padding:11px;background:#fff}.dxbox h3{margin:0 0 7px}.dangerbox{background:#fff1f0;border-color:#f0b8b2}.likelybox{background:#f0f8f3;border-color:#aed9b8}
@media(min-width:760px){.dxcols{grid-template-columns:1fr 1fr}}

textarea{
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-family: Arial, Helvetica, sans-serif;
}


.journalarea{
  min-height:220px;
  background:#fffef7;
  border:2px solid #c9b458;
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.5;
}

.symptomSelect{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}
.symptomChip{border:1px solid #c7d0dc;background:#f7f9fc;color:#344054;border-radius:999px;padding:8px 11px;font-weight:700;cursor:pointer}
.symptomChip.selected{background:#1769e0;color:#fff;border-color:#1769e0}

.journalarea[contenteditable="true"]{
  min-height:220px;
  padding:12px;
  white-space:pre-wrap;
  overflow-wrap:break-word;
}

.ref-direct{display:grid;gap:10px;margin-bottom:12px}
.ref-card{border-radius:14px;padding:13px;border:1px solid}
.ref-card h3{margin:0 0 6px}
.ref-dsam{background:#eef6ff;border-color:#8eb9e8}
.ref-guidelines{background:#f3efff;border-color:#b5a0e6}
.ref-nbv{background:#fff4e8;border-color:#e8b17c}
.ref-other{background:#edf9f1;border-color:#99d2aa}.ref-region{background:#eef8f8;border-color:#8cc8c8}
.ref-result-dsam{border-left:5px solid #2f73b7}
.ref-result-guidelines{border-left:5px solid #7657b6}
.ref-result-nbv{border-left:5px solid #c9792b}
.ref-result-other{border-left:5px solid #3f8f5b}
@media(min-width:760px){.ref-direct{grid-template-columns:repeat(2,1fr)}}


.attest-card{border:1px solid #d8dee7;border-radius:16px;padding:14px;background:#fff;box-shadow:0 5px 16px rgba(31,48,70,.06)}
.attest-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}
.attest-top h3{margin:3px 0 0}
.attendance-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;font-size:.78rem;font-weight:900;white-space:nowrap}
.attendance-yes{background:#dcfae6;color:#067647;border:1px solid #86d59e}
.attendance-no{background:#eef2f7;color:#475467;border:1px solid #c7d0dc}
.attest-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.attest-meta-box{border-radius:10px;background:#f7f9fc;border:1px solid #e0e5ec;padding:9px;text-align:center}
.attest-meta-box span{display:block;font-size:.72rem;color:#667085;margin-bottom:3px}
.attest-meta-box strong{font-size:.93rem}
.attest-price{display:inline-block;background:#edf4ff;color:#174a8b;border-radius:9px;padding:7px 10px;font-weight:900}
.attest-note{margin:10px 0 0;padding-top:10px;border-top:1px solid #e7ebf0;color:#596579;font-size:.86rem;line-height:1.45}
@media(max-width:580px){.attest-top{display:block}.attendance-badge{margin-top:8px}.attest-meta{grid-template-columns:1fr}}


.main-five{grid-template-columns:repeat(5,1fr)}
.hub-grid{display:grid;gap:10px}
.hub-card{display:flex;flex-direction:column;gap:5px;text-align:left;text-decoration:none;border:1px solid #d8dee7;border-radius:15px;padding:15px;color:#172033;background:#fff;cursor:pointer}
.hub-card strong{font-size:1rem}.hub-card span{font-size:.82rem;color:#667085;line-height:1.35}
.hub-visitation{background:#edf4ff;border-color:#a9c8ef}.hub-advice{background:#edf9f1;border-color:#a6d7b4}.hub-external{background:#f3f0ff;border-color:#bdade7}
.hub-lab{background:#eef8fb;border-color:#9dcfd9}.hub-med{background:#fff4e8;border-color:#ecc08f}.hub-dx{background:#f4efff;border-color:#c1afe8}
.hub-clinic{background:#eef4ff;border-color:#a9c8ef}.hub-attest{background:#f5f5f5;border-color:#c9ced6}.hub-booking{background:#fff8e8;border-color:#e5c575}.hub-tutor{background:#f0f7ee;border-color:#aed0a6}.hub-education{background:#eef6fa;border-color:#9ec8da}
.booking-grid{display:grid;gap:10px;margin-top:12px}.booking-card{border:1px solid #d8dee7;border-radius:14px;padding:13px;background:#fff}.booking-top{display:flex;justify-content:space-between;gap:8px}.booking-color{border-radius:999px;padding:5px 8px;background:#eef2f7;font-size:.73rem;font-weight:800}.booking-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}.booking-meta div{background:#f7f9fc;border-radius:9px;padding:8px}.booking-meta span{display:block;font-size:.7rem;color:#667085}.booking-note{font-size:.82rem;color:#596579;line-height:1.4}
.reference-filter-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.filter-chip{border:1px solid #ccd4df;background:#fff;border-radius:999px;padding:8px 11px;font-weight:800;cursor:pointer}.filter-chip.active{outline:2px solid #1769e0}
.dsam-clinical{background:#e9f3ff;border-color:#8dbbe9}.dsam-tool{background:#dcecff;border-color:#669ed7}.dsam-fact{background:#cbdff5;border-color:#4d85be}
.reference-list,.guideline-list{display:grid;gap:8px}.reference-row,.guideline-row{border:1px solid #dbe1e9;border-radius:12px;padding:11px;background:#fff}.reference-row a,.guideline-row a{text-decoration:none;color:#174a8b;font-weight:800}.reference-type{display:inline-block;border-radius:999px;padding:4px 7px;font-size:.72rem;font-weight:800;margin-right:5px}.type-clinical{background:#e9f3ff;color:#235d91}.type-tool{background:#dcecff;color:#174a8b}.type-fact{background:#cbdff5;color:#123e68}.guideline-company{display:inline-block;background:#fff4e8;color:#9a4f0d;border-radius:999px;padding:4px 7px;font-size:.72rem;font-weight:800;margin-right:6px}
@media(min-width:720px){.hub-grid{grid-template-columns:repeat(3,1fr)}.booking-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.main-five{grid-template-columns:repeat(2,1fr)}.booking-meta{grid-template-columns:1fr}}


.access-meta{
  margin:6px 0 12px;
  font-size:.79rem;
  line-height:1.35;
  color:#596579;
  font-weight:700;
}
.ref-card p{
  margin:4px 0 0;
  font-weight:800;
}
.ref-card{
  position:relative;
  overflow:hidden;
}
.ref-card::after{
  content:'';
  position:absolute;
  inset:auto -20px -20px auto;
  width:70px;
  height:70px;
  border-radius:50%;
  background:rgba(255,255,255,.35);
}

.main-four{grid-template-columns:repeat(4,1fr)}
.global-search-wrap{position:relative;margin:10px 0 12px}
.global-search-wrap input{font-size:1rem;padding:14px 15px;border:2px solid #b8c7d9;background:#fff}
.global-search-results{position:absolute;z-index:30;top:calc(100% + 5px);left:0;right:0;background:#fff;border:1px solid #cfd7e3;border-radius:13px;box-shadow:0 12px 30px rgba(31,48,70,.18);max-height:420px;overflow:auto;padding:6px}
.global-result{width:100%;display:flex;justify-content:space-between;gap:10px;text-align:left;border:0;border-bottom:1px solid #edf0f4;background:#fff;padding:11px;border-radius:8px;cursor:pointer}
.global-result:hover{background:#f4f7fb}.global-result span{font-size:.78rem;color:#667085}
.hub-free{background:#f4f7ff;border-color:#b8c7eb}
.admin-title-only{justify-content:center;min-height:76px}.admin-title-only strong{font-size:1.05rem}
.ref-bottom-card{border-left:6px solid #c9792b}.ref-bottom-card:last-of-type{border-left-color:#3f8f5b}
.same-ref-button{min-width:170px;background:#1769e0}
.ref-region{grid-column:1/-1}
.ref-region .toolrow{margin-top:10px}
@media(max-width:650px){.main-four{grid-template-columns:repeat(2,1fr)}}


/* Fast versionsmærke – versionsnummeret udfyldes centralt fra js/config.js */
.persistent-version{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:100;
  padding:7px 10px;
  border:1px solid rgba(23,74,139,.22);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#174a8b;
  box-shadow:0 5px 18px rgba(31,48,70,.18);
  font-size:.72rem;
  font-weight:900;
  line-height:1;
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
  pointer-events:none;
}
@media(max-width:520px){
  .persistent-version{right:8px;bottom:8px;font-size:.68rem;padding:6px 8px}
}

/* Issue #006 – udviklerpanel. Kun aktivt i prototype-miljø. */
.developer-panel-trigger{
  pointer-events:auto;
  cursor:pointer;
  user-select:none;
}
.developer-panel-trigger:hover,
.developer-panel-trigger:focus-visible{
  border-color:#1769e0;
  box-shadow:0 7px 22px rgba(23,74,139,.25);
  outline:none;
}
.developer-panel{
  position:fixed;
  right:12px;
  bottom:52px;
  z-index:110;
  width:min(340px,calc(100vw - 24px));
  overflow:hidden;
  border:1px solid #cfd7e3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 48px rgba(31,48,70,.28);
}
.developer-panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 15px;
  background:#edf4ff;
  border-bottom:1px solid #d6e3f4;
}
.developer-panel-header strong,
.developer-panel-header span{display:block}
.developer-panel-header span{margin-top:2px;color:#596579;font-size:.76rem}
.developer-panel-close{
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#344054;
  font-size:1.45rem;
  line-height:1;
  cursor:pointer;
}
.developer-panel-close:hover{background:#dce9fa}
.developer-panel-body{padding:8px 15px}
.developer-panel-row{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:8px 0;
  border-bottom:1px solid #edf0f4;
  font-size:.82rem;
}
.developer-panel-row span{color:#667085}
.developer-panel-row strong{text-align:right;color:#172033}
.developer-panel-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:12px 15px 15px;
}
.developer-panel-action{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 10px;
  border:0;
  border-radius:9px;
  background:#1769e0;
  color:#fff;
  text-decoration:none;
  text-align:center;
  font:inherit;
  font-size:.78rem;
  font-weight:800;
  cursor:pointer;
}
.developer-panel-action.secondary{background:#eef2f7;color:#344054}
@media(max-width:520px){
  .developer-panel{right:8px;bottom:47px;width:calc(100vw - 16px)}
}


/* Issue #007 – Private ydelser */
.hub-private-services{background:#fff8e7;border-color:#ead29a}
.private-services-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.private-services-title h2{margin-top:0;margin-bottom:4px}
.private-services-title p{margin:0;color:#667085}
.private-services-grid{display:grid;gap:10px;margin-top:12px}
.private-service-card{border:1px solid #d9dfe8;border-radius:12px;padding:12px;background:#fff}
.private-service-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.private-service-heading h3{margin:6px 0 0;font-size:1rem}
.private-service-category{display:inline-block;background:#eef2f7;border-radius:999px;padding:4px 8px;font-size:.72rem;font-weight:800;color:#475467}
.private-service-price{white-space:nowrap;color:#174a8b;font-size:1rem;text-align:right}
.private-service-card p{margin:9px 0 0;color:#596579;font-size:.88rem;line-height:1.45}
.private-service-empty{padding:18px;border:1px dashed #b7c0cc;border-radius:12px;color:#667085;text-align:center}
@media(max-width:700px){.private-services-title,.private-service-heading{flex-direction:column}.private-service-price{white-space:normal;text-align:left}}


/* Issue #008 – tydelig universalsøgning og hjemlink */
.app-home-link{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:4px 6px;
  margin:-4px -6px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.app-home-link:hover,.app-home-link:focus-visible{background:#edf4ff;outline:none}
.app-home-title{font-size:1.18rem;font-weight:800;line-height:1.2}
.app-home-subtitle{color:#667085;font-size:.82rem;line-height:1.25}
.global-result{align-items:center}
.global-result-main{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.global-result-main strong{font-size:.92rem;color:#172033}
.global-result-main small{font-size:.75rem;color:#667085;white-space:normal;line-height:1.3}
.global-result-area{flex:0 0 auto;padding:5px 8px;border-radius:999px;font-size:.68rem;font-weight:800;letter-spacing:.01em}
.global-result-area-administration{background:#fff1d6;color:#8a4b08}
.global-result-area-reference{background:#eee9ff;color:#5c3a9e}
.global-result-area-decision{background:#e5f4f8;color:#176074}
.global-result-area-visitation{background:#e6f0ff;color:#174a8b}
.global-result-administration:hover{background:#fffbf1}
.global-result-reference:hover{background:#faf8ff}
.global-result-decision:hover{background:#f5fbfc}
.global-result-visitation:hover{background:#f4f8ff}
@media(max-width:600px){
  .global-result{align-items:flex-start}
  .global-result-area{margin-top:1px}
  .app-home-subtitle{display:none}
}


/* Issue #009 – ryd universalsøgning */
.global-search-input-wrap{position:relative}
.global-search-input-wrap input{padding-right:54px}
.clear-global-search{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:50%;background:#e8eef7;color:#173b67;font-size:1.65rem;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.clear-global-search:hover{background:#d9e4f3}
.clear-global-search:focus-visible{outline:3px solid rgba(23,105,224,.28);outline-offset:2px}
.clear-global-search.hidden{display:none}


/* Issue #010 – grupperet kommandosøgning */
.global-search-results{
  padding:8px;
  max-height:min(610px,72vh);
}
.global-search-group + .global-search-group{
  margin-top:9px;
  padding-top:9px;
  border-top:1px solid #e8edf3;
}
.global-search-group-heading{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:3px 7px 7px;
  color:#344054;
}
.global-search-group-heading strong{
  font-size:.79rem;
  letter-spacing:.01em;
  text-transform:uppercase;
}
.global-search-group-icon{font-size:1rem;line-height:1}
.global-search-group-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  margin-left:auto;
  padding:0 6px;
  border-radius:999px;
  background:#eef2f7;
  color:#596579;
  font-size:.68rem;
  font-weight:900;
}
.global-search-group-list{display:grid;gap:3px}
.global-result{
  position:relative;
  display:grid;
  grid-template-columns:4px minmax(0,1fr) 22px;
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:9px 10px 9px 7px;
  border-bottom:0;
}
.global-result:hover{transform:translateX(1px)}
.global-result-marker{
  align-self:stretch;
  width:4px;
  min-height:36px;
  border-radius:999px;
  background:#1769e0;
}
.global-result-marker-visitation{background:#1769e0}
.global-result-marker-decision{background:#23849b}
.global-result-marker-reference{background:#7355b7}
.global-result-marker-medication{background:#b94f6f}
.global-result-marker-administration{background:#c9792b}
.global-result-open{
  color:#98a2b3;
  font-size:1.1rem;
  font-weight:900;
  text-align:center;
}
.global-result:hover .global-result-open{color:#344054}
.global-result-medication:hover{background:#fff6f9}
.global-result-main small{max-width:100%}
.global-search-group-visitation .global-search-group-heading{color:#174a8b}
.global-search-group-decision .global-search-group-heading{color:#176074}
.global-search-group-reference .global-search-group-heading{color:#5c3a9e}
.global-search-group-medication .global-search-group-heading{color:#8c3652}
.global-search-group-administration .global-search-group-heading{color:#8a4b08}
@media(max-width:600px){
  .global-search-results{max-height:68vh}
  .global-result{grid-template-columns:4px minmax(0,1fr) 18px;gap:8px}
  .global-search-group-heading strong{font-size:.75rem}
}


/* v0.2 stabilisering – arbejdsspor, kontekst og rolleforberedelse */
.header-tools{display:flex;align-items:center;gap:10px;margin-left:auto}
.role-preview{display:flex;align-items:center;gap:6px;color:#667085;font-size:.72rem;font-weight:800}
.role-preview select{width:auto;min-width:112px;padding:7px 28px 7px 9px;border:1px solid #cfd7e3;border-radius:9px;background:#fff;color:#344054;font:inherit}
.app-breadcrumb{display:flex;align-items:center;gap:7px;min-height:34px;margin:0 0 10px;padding:4px 2px;color:#667085;font-size:.78rem;overflow-x:auto;white-space:nowrap}
.app-breadcrumb button{border:0;background:transparent;color:#1769e0;font:inherit;font-weight:800;cursor:pointer;padding:4px 0}
.app-breadcrumb strong{color:#344054}
.next-action-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 10px;padding:16px 18px;border:1px solid #cfd9e8;border-left:5px solid #1769e0;border-radius:14px;background:linear-gradient(135deg,#f7faff,#fff);box-shadow:0 5px 16px rgba(31,48,70,.06)}
.next-action-panel strong{display:block;margin:3px 0 4px;color:#172033;font-size:1rem}
.next-action-panel p{margin:0;color:#596579;font-size:.84rem;line-height:1.4}
.next-action-eyebrow{color:#1769e0;font-size:.7rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.next-action-buttons{display:flex;flex:0 0 auto;gap:8px}
.global-search-summary{padding:5px 8px 8px;color:#667085;font-size:.72rem;font-weight:800;text-align:right}
body[data-role="sekretaer"] .role-preview select{border-color:#d8a34c}
body[data-role="uddannelseslaege"] .role-preview select,body[data-role="studmed"] .role-preview select{border-color:#6e9ed8}
@media(max-width:760px){.header-tools{align-items:flex-end;flex-direction:column;gap:5px}.role-preview span{display:none}.role-preview select{min-width:105px}.next-action-panel{align-items:stretch;flex-direction:column}.next-action-buttons .primary{width:100%}}


/* Issue #014 – side-by-side visitationsmodeller */
.hub-triage-lab{border-color:#b9c9df;background:linear-gradient(135deg,#f8fbff,#eef5ff)}
.triage-lab-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.prototype-label{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0d7;color:#8a5300;font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.triage-case-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 14px}
.triage-case-grid label,.threshold-grid label,.editor-line{display:grid;gap:6px;color:#344054;font-size:.78rem;font-weight:850}
.triage-case-grid input,.triage-case-grid select,.threshold-grid input,.editor-line input{margin:0}
.triage-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 14px;padding:14px;border:1px solid #d9e1ec;border-radius:12px;background:#f8fafc}
.triage-check-grid label,.rule-editor-list label{display:flex;align-items:center;gap:8px;color:#344054;font-size:.82rem;font-weight:750}
.triage-check-grid input,.rule-editor-list input{width:auto;margin:0}
.triage-model-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.triage-model-card{border-top:5px solid #1769e0}
.score-model{border-top-color:#8056b3}
.triage-model-title>span{font-size:.69rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#1769e0}
.score-model .triage-model-title>span{color:#694097}
.triage-model-title h2{margin:4px 0}
.triage-model-title p{margin-top:0;color:#667085}
.triage-model-result{display:grid;gap:12px;margin:14px 0}
.model-outcome{padding:16px;border-radius:13px;border:1px solid #d6dfeb;background:#f8fafc}
.model-outcome[data-level="a"]{border-color:#e09a9a;background:#fff2f2}
.model-outcome[data-level="sameDay"]{border-color:#efc66c;background:#fff9e9}
.model-outcome[data-level="24h"]{border-color:#b9cee9;background:#f3f8ff}
.model-outcome[data-level="routine"]{border-color:#aed4bd;background:#f2fbf5}
.model-outcome strong{display:block;font-size:1.04rem;margin-bottom:4px}
.model-explanation{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.model-explanation li{padding:8px 10px;border-radius:9px;background:#f2f5f9;color:#344054;font-size:.8rem}
.model-explanation li.pass{background:#eef9f1;color:#24613a}
.model-explanation li.fail{background:#fff4f2;color:#8b3b32}
.calculation-box{padding:13px;border-radius:11px;background:#172033;color:#f7f9fc;font:700 .8rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.calculation-total{display:flex;justify-content:space-between;gap:12px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.22);font-size:.92rem}
.triage-editor{margin-top:16px;border-top:1px solid #e1e6ee;padding-top:12px}
.triage-editor summary{cursor:pointer;color:#1769e0;font-weight:900}
.rule-editor-list{display:grid;gap:9px;margin:13px 0}
.editor-line{margin:13px 0}
.score-weight-editor{display:grid;grid-template-columns:1fr 90px;gap:8px 12px;align-items:center;margin:14px 0}
.score-weight-editor label{display:contents}
.score-weight-editor span{font-size:.78rem;font-weight:750;color:#344054}
.score-weight-editor input{margin:0}
.threshold-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.triage-disagreement{margin:0 0 18px;padding:13px 15px;border:1px solid #edbd62;border-left:5px solid #d58a00;border-radius:12px;background:#fff8e8;color:#714600;font-weight:800}
.triage-lab-note{margin-top:18px}
@media(max-width:900px){.triage-case-grid,.triage-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.triage-model-columns{grid-template-columns:1fr}}
@media(max-width:560px){.triage-lab-heading{flex-direction:column}.triage-case-grid,.triage-check-grid,.threshold-grid{grid-template-columns:1fr}}


/* Issue #015 – Testlab 2 hybridmodel */
.hub-triage-lab-2{border-color:#a78bfa;background:#faf5ff}
.hybrid-lab-intro{border-top:5px solid #6d28d9}
.hybrid-model-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
.hybrid-rule-card{border-top:4px solid #2563eb}
.hybrid-score-card{border-top:4px solid #7c3aed}
.sensitivity-control{padding:14px;border:1px solid #d8dff0;border-radius:14px;background:#f8fafc;margin-bottom:14px}
.sensitivity-control input[type=range]{width:100%;accent-color:#6d28d9}
.sensitivity-labels{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;font-size:.82rem;color:#52627a;margin-bottom:8px}
.sensitivity-labels span:last-child{text-align:right}.sensitivity-labels strong{color:#3b1d78}
.threshold-summary{font-size:.86rem;color:#46556d;margin-top:8px;text-align:center}
.hybrid-weight-table{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hybrid-weight-table div{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e1e7f0;border-radius:10px;background:#fff}
.hybrid-weight-table strong{color:#5b21b6}
.hybrid-conclusion-card{border-left:6px solid #6d28d9}.hybrid-final{font-size:1.05rem}
.hybrid-origin{margin:12px 0 0;color:#43526a}
.hybrid-balance-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.hybrid-balance-grid>div{padding:14px;border-radius:14px;background:#f8fafc;border:1px solid #dce3ed}
.hybrid-balance-grid h3{margin-top:0}.hybrid-balance-grid ul{margin-bottom:0}
.hybrid-rule-list{padding-left:22px}.hybrid-rule-list li{margin:8px 0}
@media(max-width:850px){.hybrid-model-columns,.hybrid-balance-grid,.hybrid-weight-table{grid-template-columns:1fr}.sensitivity-labels{font-size:.72rem}}


/* Issue #016: Individual score weights and configurable safety-rule thresholds */
.hybrid-rule-editor{display:grid;gap:12px;margin-top:12px}
.rule-editor-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px;padding:12px;border:1px solid #dce3ed;border-radius:12px;background:#fff}
.rule-editor-copy strong{display:block;margin-bottom:6px;color:#17233b}
.rule-editor-copy span{font-size:.82rem;color:#5d6c82}
.rule-editor-copy ul{margin:5px 0 0;padding-left:20px;font-size:.86rem}
.rule-editor-row label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;font-weight:700}
.rule-editor-row select{width:100%}
.rule-editor-row small{font-weight:500;color:#65758b}
.hybrid-weight-editor{grid-template-columns:1fr}
.weight-editor-row{display:block!important;padding:12px!important}
.weight-editor-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}
.weight-editor-heading span{font-weight:700;color:#17233b}
.weight-editor-heading strong{white-space:nowrap}
.weight-editor-row input[type=range]{width:100%;accent-color:#6d28d9}
.weight-editor-meta{display:flex;justify-content:space-between;gap:12px;margin-top:5px;color:#65758b}
.compact-actions{margin-top:10px}
.compact-actions button{margin:0}
@media(max-width:700px){
  .rule-editor-row{grid-template-columns:1fr}
  .rule-editor-row label{max-width:180px}
  .weight-editor-meta{flex-direction:column;gap:2px}
}


/* Issue #017: Multi-condition hybrid triage laboratory */
.lab-condition-selector{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:18px;align-items:end;margin:20px 0}
.lab-condition-selector label{display:flex;flex-direction:column;gap:7px;font-weight:800}
.lab-condition-selector select{width:100%;font-size:1rem}
.condition-summary{padding:13px 15px;border:1px solid #d7e2f0;border-radius:12px;background:#f7faff}
.condition-summary strong,.condition-summary span{display:block}
.condition-summary strong{font-size:1.05rem;margin-bottom:4px}
.condition-summary span{color:#5e6d82}
.dynamic-case-fields{margin-top:14px}
.dynamic-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dynamic-case-option{display:flex;gap:9px;align-items:flex-start;padding:12px;border:1px solid #d7e0ec;border-radius:12px;background:#fff;cursor:pointer;font-weight:650}
.dynamic-case-option:hover{border-color:#8bb4f0;background:#f7fbff}
.dynamic-case-option input{margin-top:3px}
.lab-source-box{margin-top:15px;padding:13px 15px;border-left:4px solid #4d7ecb;background:#f5f8fc;border-radius:10px}
.lab-source-box strong,.lab-source-box small{display:block}
.lab-source-box div{display:flex;flex-wrap:wrap;gap:8px 16px;margin:6px 0}
.lab-source-box a{font-weight:700}
.clinical-warning{margin-top:18px;padding:14px 16px;border:1px solid #e6ad47;border-radius:12px;background:#fff8e8;color:#4b3714}
@media(max-width:900px){
  .dynamic-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lab-condition-selector{grid-template-columns:1fr}
}
@media(max-width:620px){
  .dynamic-check-grid{grid-template-columns:1fr}
}


/* Issue #018: Visitations-testcenter */
.hub-triage-test{border-color:#8b5cf6}
.triage-test-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.triage-test-actions{display:flex;gap:8px;flex-wrap:wrap}
.triage-test-summary{margin-top:14px}
.triage-test-progress-line{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:8px}
#triageTestFailText{font-weight:800;color:#64748b}
#triageTestFailText.has-fails{color:#b42318}
.triage-test-progressbar{height:9px}
.triage-test-filters{display:grid;grid-template-columns:220px 180px minmax(260px,1fr);gap:12px;margin-top:16px}
.triage-test-filters label{display:flex;flex-direction:column;gap:5px;font-weight:700}
.triage-test-group{margin-top:22px}
.triage-test-group-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding:0 2px}
.triage-test-group-title h2{margin:0}
.triage-test-group-title span{font-size:.82rem;color:#64748b;font-weight:800}
.triage-test-list{display:grid;gap:10px}
.triage-test-item{background:#fff;border:1px solid #d9e2ef;border-radius:14px;padding:15px}
.triage-test-item[data-status="pass"]{border-left:5px solid #168451}
.triage-test-item[data-status="fail"]{border-left:5px solid #c53030}
.triage-test-item-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.triage-test-item h3{margin:4px 0 0;font-size:1rem}
.triage-test-meta{display:flex;gap:6px;flex-wrap:wrap}
.triage-test-meta span{font-size:.72rem;font-weight:800;padding:3px 7px;border-radius:999px;background:#eef3f9;color:#4a5c73}
.triage-test-status-buttons{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.triage-test-status-buttons button{border:1px solid #d6deea;background:#fff;color:#4c5c70;padding:6px 9px;border-radius:8px;font-size:.78rem;font-weight:800;cursor:pointer}
.triage-test-status-buttons button.active{background:#e8eef6;border-color:#8fa0b7;color:#17233b}
.triage-test-status-buttons button.pass.active{background:#e7f7ef;border-color:#3fa570;color:#17623f}
.triage-test-status-buttons button.fail.active{background:#fff0ef;border-color:#dc6d67;color:#9e2924}
.triage-test-body{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}
.triage-test-body>div{padding:10px 12px;border-radius:10px;background:#f7f9fc}
.triage-test-body strong{font-size:.8rem;text-transform:uppercase;letter-spacing:.02em;color:#5b6b80}
.triage-test-body p{margin:5px 0 0}
.triage-test-note{display:flex;flex-direction:column;gap:5px;margin-top:12px;font-weight:700}
.triage-test-note textarea{min-height:64px;resize:vertical}
@media(max-width:850px){
  .triage-test-header,.triage-test-item-head{flex-direction:column}
  .triage-test-status-buttons{justify-content:flex-start}
  .triage-test-filters{grid-template-columns:1fr}
  .triage-test-body{grid-template-columns:1fr}
}
