
/* WordPress integration / app-like shell */
.laegebils-app {
  font-family: Arial, sans-serif;
  background: #f1f5f9;
  margin: 0;
  padding: 0 0 calc(5.25rem + env(safe-area-inset-bottom)) 0; /* space for bottom nav + safe area */
}

.laegebils-app-shell{
  max-width: 980px;
  margin: 0 auto;
}

.laegebils-app-shell header{
  position: sticky;
  top: 0;
  z-index: 50;
}

.laegebils-app-shell nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

/* === Bottom navigation: square, connected "app-like" tabs with line icons === */
.laegebils-app-shell .laegebils-bottom-nav{
  display: flex !important;
  width: 100% !important;
  background: #e5e7eb !important; /* light grey */
  border-top: 1px solid #cbd5e1 !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

.laegebils-app-shell .laegebils-tab{
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 10px 6px 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: #e5e7eb !important;
  color: #4b5563 !important; /* gray */
  font: inherit !important;
  line-height: 1.1 !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.laegebils-app-shell .laegebils-tab:last-child{ border-right: 0 !important; }

.laegebils-app-shell .laegebils-tab.is-active{
  background: #ffffff !important;
  color: var(--blue) !important;
  font-weight: 700 !important;
}

.laegebils-app-shell .laegebils-tab:active{
  transform: translateY(0.5px);
}

.laegebils-app-shell .laegebils-tab-icon{
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.laegebils-app-shell .laegebils-tab-icon .laegebils-tab-img{
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}
.laegebils-app-shell .laegebils-tab:not(.is-active) .laegebils-tab-img{
  filter: grayscale(1) brightness(0.55) !important;
  opacity: 0.9 !important;
}
.laegebils-app-shell .laegebils-tab.is-active .laegebils-tab-img{
  /* Tint black line-art to app blue */
  filter: brightness(0) saturate(100%) invert(27%) sepia(94%) saturate(1385%) hue-rotate(175deg) brightness(95%) contrast(101%) !important;
}

.laegebils-app-shell .laegebils-tab-icon svg{
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

/* Fine-tune the custom ambulance icon so it optically matches the other 24px line-icons */
.laegebils-app-shell #tab-overview .laegebils-tab-icon svg{
  transform: scale(1.12) translateY(0.15px);
  transform-origin: center;
}

.laegebils-app-shell .laegebils-tab-label{
  font-size: 12px !important;
  margin-top: 2px !important;
}

/* Keep nav within same max width on large screens */
@media (min-width: 981px){
  .laegebils-app-shell nav{
    left: 50%;
    transform: translateX(-50%);
    width: 980px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
  }
}

/* Prevent theme styles from breaking layout inside app */
.laegebils-app-shell *{
  box-sizing: border-box;
}



/* Inserted Tailwind CSS here, or custom styles to replace Tailwind */
.laegebils-app{
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
}

.button:hover {
    background-color: #0056b3;
}

.laegebils-app table{
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.laegebils-app table, th, td{
    border: 1px solid #ddd;
}

.laegebils-app th, td{
    padding: 8px;
    text-align: left;
}

.laegebils-app th{
    background-color: #007bff;
    color: white;
}

.laegebils-app input[type="text"], .laegebils-app input[type="number"], .laegebils-app textarea{
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.laegebils-app input[type="text"]:focus, .laegebils-app input[type="number"]:focus, .laegebils-app textarea:focus{
    outline: none;
    border-color: #007bff;
}



/* Shared table system for guidance/medication content */
.laegebils-app .lb-table{
  width:100%;
  border-collapse:collapse;
  margin-top:20px;
  font-size:14px;
  background:#fff;
}
.laegebils-app .lb-table th,
.laegebils-app .lb-table td{
  border:1px solid #d8dde6;
  padding:8px 10px;
}
.laegebils-app .lb-table td{
  color:#1f2937;
}
.laegebils-app .lb-table .lb-header-row th,
.laegebils-app .lb-table .lb-header-cell,
.laegebils-app .lb-table .lb-merged-header,
.laegebils-app .lb-dose-table .lb-dose-merged,
.laegebils-app .lb-dose-table .lb-dose-header-cell{
  background:#2f6fa5;
  color:#fff;
  text-align:center;
  font-weight:700;
}
.laegebils-app .lb-dose-table .lb-dose-empty,
.laegebils-app .lb-dose-table .lb-dose-header-first,
.laegebils-app .lb-standard-table .lb-empty-header{
  background:#fff;
  color:#111827;
  font-weight:700;
}
.laegebils-app .lb-dose-table .lb-dose-header-first{
  text-align:left;
}
.laegebils-app .lb-row-base td{ background:#fff; }
.laegebils-app .lb-row-alt td{ background:#f3f4f6; }
.laegebils-app .lb-first-col{ font-weight:600; }
.laegebils-app .lb-center{ text-align:center; }

/* Medication cards */
.laegebils-app .lb-med-card,
.laegebils-app .lb-mix-card{
  border:2px solid #4b5563;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

/* Standard medicin-tabeller */
.laegebils-app .lb-med-table{
  display:grid;
  grid-template-columns:minmax(0, 2.2fr) minmax(72px, auto) minmax(0, 1.8fr);
}
.laegebils-app .lb-med-head{
  background:#2f6fa5;
  color:#fff;
  font-weight:700;
  padding:10px 12px;
  border-bottom:1px solid #cfd7e3;
}
.laegebils-app .lb-med-head-span{ grid-column:1 / span 2; }
.laegebils-app .lb-med-head-right{ border-left:1px solid #cfd7e3; }
.laegebils-app .lb-med-cell{
  padding:10px 12px;
  background:#fff;
}
.laegebils-app .lb-med-amount{ text-align:right; }
.laegebils-app .lb-med-dose{ border-left:1px solid #d8dde6; }
.laegebils-app .lb-med-divider{ border-bottom:1px solid #e5e7eb; }

/* Special design for standard blandinger */
.laegebils-app .lb-mix-table{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
}
.laegebils-app .lb-mix-head{
  background:#2f6fa5;
  color:#ffffff;
  font-weight:700;
  padding:10px 12px;
  border-bottom:1px solid #cfd7e3;
}
.laegebils-app .lb-mix-head-right{ border-left:1px solid #cfd7e3; }
.laegebils-app .lb-mix-left,
.laegebils-app .lb-mix-dose{
  background:#fff;
}
.laegebils-app .lb-mix-cell{
  padding:10px 12px;
}
.laegebils-app .lb-mix-divider{
  border-bottom:1px solid #e5e7eb;
}
.laegebils-app .lb-mix-dose{
  border-left:1px solid #d8dde6;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  background:#fafcff;
}
.laegebils-app .lb-mix-dose-line{
  color:#1f2937;
}

/* Noradrenalin dosage table */
.laegebils-app .lb-dose-table .lb-dose-superheader th{
  border-bottom:1px solid #d8dde6;
}
.laegebils-app .lb-dose-table .lb-dose-merged{
  letter-spacing:0.2px;
}

@media (max-width: 640px){
  .laegebils-app .lb-med-table{
    grid-template-columns:minmax(0, 1.5fr) minmax(64px, auto) minmax(0, 1.2fr);
    font-size:13px;
  }
  .laegebils-app .lb-mix-table{
    font-size:13px;
  }
  .laegebils-app .lb-table{
    font-size:13px;
  }
}

/* Ensure all checkboxes have a consistent minimum size across the app.
   In the checklist we use a dedicated grid row so the main checkbox stays
   visually centered against wrapped multi-line text. */
.laegebils-app input[type="checkbox"]{
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex: 0 0 20px !important;
  flex-shrink: 0 !important;
  align-self: center;
  margin: 0 !important;
  accent-color: #15803d;
  box-sizing: border-box;
}

.laegebils-app #isl-checklist .isl-item-row{
  display:grid;
  grid-template-columns: 20px minmax(0,1fr);
  column-gap: 12px;
  align-items: center;
  margin: 8px 0;
}

.laegebils-app #isl-checklist .isl-item-row.has-extra{
  grid-template-columns: 20px minmax(0,1fr) auto;
}

.laegebils-app #isl-checklist .isl-item-checkbox{
  justify-self: start;
  align-self: center;
}

.laegebils-app #isl-checklist .isl-item-label{
  display:block;
  align-self:center;
  line-height:1.22;
  min-width:0;
}

.laegebils-app #isl-checklist .isl-item-extra{
  align-self:center;
}

.laegebils-app #isl-checklist .isl-item-row > input[type="checkbox"],
.laegebils-app #isl-checklist .isl-item-row .isl-item-extra input[type="checkbox"]{
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
}

.laegebils-app #isl-checklist .isl-item-row.has-number-input{
  display: grid !important;
  grid-template-columns: 18px minmax(0,1fr) !important;
  column-gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}

.laegebils-app #isl-checklist .isl-item-row.has-number-input .isl-item-checkbox{
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  justify-self: start !important;
  align-self: center !important;
}

.laegebils-app #isl-checklist .isl-number-row-content{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.laegebils-app #isl-checklist .isl-item-row.has-number-input .isl-item-label{
  flex: 0 0 auto !important;
  align-self: center !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.laegebils-app #isl-checklist .isl-item-row.has-number-input .isl-number-input{
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 120px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
}



    @keyframes pulseGreen { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
    @keyframes pulseRed   { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
    @keyframes pulseYellow{ 0%,100% { opacity: 1; } 50% { opacity: .65; } }
    .animate-pulse-green { animation: pulseGreen 1.1s ease-in-out infinite; }
    .animate-pulse-red { animation: pulseRed 1.1s ease-in-out infinite; }
    .animate-pulse-yellow { animation: pulseYellow 1.1s ease-in-out infinite; }
    body { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
  


/* Minimal Tailwind-like utility layer for offline use (subset used in this app) */

/* Preflight-ish reset (Tailwind normally resets default margins) */
.laegebils-app{margin:0;}
.laegebils-app h1,h2,h3,h4,h5,h6{margin:0;}
.laegebils-app p{margin:0;}
.laegebils-app ul{margin:0; padding-left:1.25rem;}
:root{ --blue:#007acc; --blue2:#005f99; }
*{ box-sizing:border-box; }
.laegebils-app{ padding-bottom:5.25rem; }

.bg-white{background:#fff;}
.bg-black{background:#000;}
.bg-slate-100{background:#f1f5f9;}
.bg-gray-50{background:#f9fafb;}
.bg-gray-100{background:#f3f4f6;}
.bg-gray-200{background:#e5e7eb;}
.bg-gray-300{background:#d1d5db;}
.bg-gray-400{background:#9ca3af;}
.bg-gray-500{background:#6b7280;}
.bg-green-100{background:#dcfce7;}
.bg-green-500{background:#22c55e;}
.bg-green-600{background:#16a34a;}
.bg-amber-100{background:#fef3c7;}
.bg-amber-400{background:#fbbf24;}
.bg-red-600{background:#dc2626;}

.text-white{color:#fff;}
.text-black{color:#000;}
.text-gray-400{color:#9ca3af;}
.text-gray-500{color:#6b7280;}
.text-gray-600{color:#4b5563;}
.text-gray-700{color:#374151;}
.text-gray-800{color:#1f2937;}
.text-green-600{color:#16a34a;}
.text-green-800{color:#166534;}
.text-amber-600{color:#d97706;}
.text-amber-800{color:#92400e;}
.text-red-600{color:#dc2626;}
.text-red-800{color:#991b1b;}
.text-\[\#007acc\]{color:var(--blue);}
.bg-\[\#007acc\]{background:var(--blue);}
.hover\:bg-\[\#005f99\]:hover{background:var(--blue2);}

.font-sans{font-family:Arial,sans-serif;}
.font-bold{font-weight:700;}
.font-semibold{font-weight:600;}
.font-extrabold{font-weight:800;}
.font-normal{font-weight:400;}
.font-mono{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;}

.text-xs{font-size:12px;}
.text-sm{font-size:14px;}
.text-lg{font-size:18px;}
.text-xl{font-size:20px;}
.text-2xl{font-size:24px;}
.text-5xl{font-size:48px;}

.p-1{padding:4px;}
.p-1\.5{padding:6px;}
.p-2{padding:8px;}
.p-3{padding:12px;}
.p-4{padding:16px;}
.p-6{padding:24px;}
.px-1{padding-left:4px;padding-right:4px;}
.px-3{padding-left:12px;padding-right:12px;}
.px-4{padding-left:16px;padding-right:16px;}
.py-1{padding-top:4px;padding-bottom:4px;}
.py-2{padding-top:8px;padding-bottom:8px;}
.py-3{padding-top:12px;padding-bottom:12px;}
.py-4{padding-top:16px;padding-bottom:16px;}
.pt-2{padding-top:8px;}
.pb-1{padding-bottom:4px;}
.mt-1{margin-top:4px;}
.mt-2{margin-top:8px;}
.mt-4{margin-top:16px;}
.mt-6{margin-top:24px;}
.mb-1{margin-bottom:4px;}
.mb-2{margin-bottom:8px;}
.mb-4{margin-bottom:16px;}
.mb-6{margin-bottom:24px;}
.ml-2{margin-left:8px;}
.ml-3{margin-left:12px;}
.ml-4{margin-left:16px;}
.ml-8{margin-left:32px;}
.mr-3{margin-right:12px;}
.mr-4{margin-right:16px;}
.gap-2{gap:8px;}
.gap-3{gap:12px;}
.gap-4{gap:16px;}

.w-full{width:100%;}
.w-16{width:64px;}
.w-20{width:80px;}
.w-6{width:24px;}
.h-6{height:24px;}
.h-5{height:20px;}
.w-5{width:20px;}
.min-h-\[40px\]{min-height:40px;}
.min-h-\[60px\]{min-height:60px;}
.max-w-md{max-width:28rem;}
.max-w-full{max-width:100%;}
.rounded-md{border-radius:6px;}
.rounded-lg{border-radius:10px;}
.rounded-b-lg{border-bottom-left-radius:10px;border-bottom-right-radius:10px;}
.rounded-full{border-radius:9999px;}
.border{border:1px solid #d1d5db;}
.border-2{border:2px solid #d1d5db;}
.border-t{border-top:1px solid #d1d5db;}
.border-b-2{border-bottom:2px solid #000;}
.border-l-2{border-left:2px solid #000;}
.border-gray-200{border-color:#e5e7eb;}
.border-gray-300{border-color:#d1d5db;}
.border-gray-400{border-color:#9ca3af;}
.border-green-300{border-color:#86efac;}
.border-green-600{border-color:#16a34a;}
.border-amber-300{border-color:#fcd34d;}
.border-red-300{border-color:#fca5a5;}
.border-\[\#007acc\]{border-color:var(--blue);}

.shadow-sm{box-shadow:0 1px 2px rgba(0,0,0,.06);}
.shadow-md{box-shadow:0 4px 10px rgba(0,0,0,.12);}
.shadow-lg{box-shadow:0 10px 18px rgba(0,0,0,.14);}
.shadow-xl{box-shadow:0 18px 30px rgba(0,0,0,.18);}
.overflow-hidden{overflow:hidden;}
.overflow-x-auto{overflow-x:auto;}
.break-words{word-break:break-word;}
.whitespace-pre-wrap{white-space:pre-wrap;}
.text-center{text-align:center;}
.text-left{text-align:left;}
.items-center{align-items:center;}
.items-start{align-items:flex-start;}
.justify-between{justify-content:space-between;}
.justify-center{justify-content:center;}
.justify-end{justify-content:flex-end;}
.flex{display:flex;}
.grid{display:grid;}
.inline-block{display:inline-block;}
.hidden{display:none;}
.fixed{position:fixed;}
.sticky{position:sticky;}
.absolute{position:absolute;}
.inset-0{top:0;right:0;bottom:0;left:0;}
.top-0{top:0;}
.bottom-0{bottom:0;}
.left-0{left:0;}
.right-0{right:0;}
.z-10{z-index:10;}
.z-50{z-index:50;}
.select-none{-webkit-user-select:none;user-select:none;}
.cursor-pointer{cursor:pointer;}
.transition-colors{transition:background-color .2s, color .2s, border-color .2s;}
.transition-all{transition:all .2s;}
.duration-200{transition-duration:.2s;}
.duration-300{transition-duration:.3s;}
.transform{transform:translateZ(0);}
.hover\:scale-105:hover{transform:scale(1.05);}
.rotate-180{transform:rotate(180deg);}
.bg-opacity-60{background-color:rgba(0,0,0,.6);}
.p-2{padding:8px;}
.p-4{padding:16px;}
.p-6{padding:24px;}

.min-h-screen{min-height:100vh;}
.flex-col{flex-direction:column;}
.flex-wrap{flex-wrap:wrap;}
.flex-shrink-0{flex-shrink:0;}
.space-y-1 > * + *{margin-top:4px;}
.space-y-3 > * + *{margin-top:12px;}
.space-y-4 > * + *{margin-top:16px;}
.space-y-6 > * + *{margin-top:24px;}

.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr));}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr));}
.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr));}

/* Responsive approximations */
@media (min-width: 768px){
  .md\:p-4{padding:16px;}
  .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (min-width: 640px){
  .sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
  .sm\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr));}
}
.focus\:outline-none:focus{outline:none;}
.hover\:underline:hover{text-decoration:underline;}



/* SectionCard header corner fix */
.border-2.rounded-lg > h3{border-top-left-radius:8px;border-top-right-radius:8px;}



@media (max-width: 480px){
  .guideline-image-row { flex-direction:column !important; }
}



/* === WordPress theme override guard ===
   Many WP themes apply strong button/background styles that can override our utility classes.
   This block scopes the most-used utilities to the app container and marks them !important.
*/
.laegebils-app .bg-\[\#007acc\]{background:var(--blue) !important;}
.laegebils-app .hover\:bg-\[\#005f99\]:hover{background:var(--blue2) !important;}
.laegebils-app .text-\[\#007acc\]{color:var(--blue) !important;}

.laegebils-app .bg-gray-50{background:#f9fafb !important;}
.laegebils-app .bg-gray-100{background:#f3f4f6 !important;}
.laegebils-app .bg-gray-200{background:#e5e7eb !important;}
.laegebils-app .bg-gray-300{background:#d1d5db !important;}
.laegebils-app .bg-gray-400{background:#9ca3af !important;}
.laegebils-app .bg-gray-500{background:#6b7280 !important;}

.laegebils-app .bg-green-100{background:#dcfce7 !important;}
.laegebils-app .bg-green-500{background:#22c55e !important;}
.laegebils-app .bg-green-600{background:#16a34a !important;}

.laegebils-app .bg-amber-100{background:#fef3c7 !important;}
.laegebils-app .bg-amber-400{background:#fbbf24 !important;}

.laegebils-app .bg-red-600{background:#dc2626 !important;}
.laegebils-app .hover\:bg-red-700:hover{background:#b91c1c !important;}

.laegebils-app .text-white{color:#fff !important;}
.laegebils-app .text-black{color:#000 !important;}
.laegebils-app .text-gray-400{color:#9ca3af !important;}
.laegebils-app .text-gray-500{color:#6b7280 !important;}
.laegebils-app .text-gray-600{color:#4b5563 !important;}
.laegebils-app .text-gray-700{color:#374151 !important;}
.laegebils-app .text-gray-800{color:#1f2937 !important;}
.laegebils-app .text-green-600{color:#16a34a !important;}

.laegebils-app .border-gray-200{border-color:#e5e7eb !important;}
.laegebils-app .border-gray-300{border-color:#d1d5db !important;}
.laegebils-app .border-green-600{border-color:#16a34a !important;}
.laegebils-app .border-\[\#007acc\]{border-color:var(--blue) !important;}

.laegebils-app button{background-image:none !important;}


/* Make the custom 'Styrker' (ambulance) icon slightly larger to match the other line-icons optically */
.laegebils-app-shell #tab-overview .laegebils-tab-icon{
  width: 28px !important;
  height: 28px !important;
}
.laegebils-app-shell #tab-overview .laegebils-tab-icon .laegebils-tab-img{
  width: 28px !important;
  height: 28px !important;
}


/* Infusion mix tables for Adrenalin / Isoprenalin */
.laegebils-app .lb-infusion-wrap{
  background:#fff;
}
.laegebils-app .lb-infusion-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:18px;
}
.laegebils-app .lb-infusion-top{
  background:#ffffff;
  color:#111827;
  font-weight:700;
  text-align:center;
  padding:10px 12px;
  border:1px solid #6b7280;
}
.laegebils-app .lb-infusion-head{
  background:#2f6fa5;
  color:#fff;
  font-weight:700;
  text-align:left;
  padding:8px 10px;
  border:1px solid #6b7280;
  vertical-align:top;
}
.laegebils-app .lb-infusion-head-left{ width:24%; }
.laegebils-app .lb-infusion-head-drug{ width:42%; }
.laegebils-app .lb-infusion-head-right{ width:34%; }
.laegebils-app .lb-infusion-drug-name{
  color:#fff;
  font-weight:700;
  line-height:1.2;
}
.laegebils-app .lb-infusion-cell{
  border:1px solid #7c7c7c;
  padding:8px 10px;
  font-weight:600;
  line-height:1.1;
}
.laegebils-app .lb-infusion-row-even .lb-infusion-cell{ background:#ffffff; }
.laegebils-app .lb-infusion-row-odd .lb-infusion-cell{ background:#f3f3f3; }
.laegebils-app .lb-infusion-weight{ color:#111827; }
.laegebils-app .lb-infusion-value-red{ color:#111827; }
.laegebils-app .lb-infusion-footnote{
  padding:10px 12px 14px;
  font-size:14px;
  line-height:1.35;
  color:#1f2937;
  background:#fff;
}
@media (max-width: 640px){
  .laegebils-app .lb-infusion-table{ font-size:14px; }
  .laegebils-app .lb-infusion-top{ padding:8px 8px; }
  .laegebils-app .lb-infusion-head,
  .laegebils-app .lb-infusion-cell{ padding:6px 7px; }
  .laegebils-app .lb-infusion-footnote{ font-size:12px; }
}


/* Force medication table headers to match Noradrenalin dark blue */
.laegebils-app .lb-infusion-head,
.laegebils-app .lb-mix-head{
  background:#2f6fa5 !important;
  color:#ffffff !important;
}
.laegebils-app .lb-infusion-top{
  background:#ffffff !important;
  color:#111827 !important;
}
.laegebils-app .lb-mix-head-right,
.laegebils-app .lb-infusion-head-right{
  border-left:1px solid #cfd7e3 !important;
}


/* FISH guideline */
.laegebils-app .lb-fish-wrap{
  margin-top:4px;
}
.laegebils-app .lb-fish-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.laegebils-app .lb-fish-btn{
  background:var(--blue) !important;
  color:#fff !important;
  border:none !important;
  border-radius:8px !important;
  padding:10px 14px !important;
  font-weight:700 !important;
  cursor:pointer;
}
.laegebils-app .lb-fish-btn:hover{ background:var(--blue2) !important; }
.laegebils-app .lb-fish-btn-muted{ background:#6b7280 !important; }
.laegebils-app .lb-fish-btn-muted:hover{ background:#4b5563 !important; }
.laegebils-app .lb-fish-section{
  border:1px solid #bfd8ef;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  box-shadow:none;
}
.laegebils-app .lb-fish-section + .lb-fish-section{
  margin-top:10px;
}
.laegebils-app button.lb-fish-section-header,
.laegebils-app .lb-fish-section-header{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:var(--blue) !important;
  background-color:var(--blue) !important;
  background-image:none !important;
  color:#fff !important;
  font-weight:700;
  padding:12px 14px;
  font-size:16px;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-align:left;
  cursor:pointer;
  -webkit-appearance:none !important;
  appearance:none !important;
}
.laegebils-app .lb-fish-section.is-done button.lb-fish-section-header,
.laegebils-app .lb-fish-section.is-done .lb-fish-section-header{
  background:#16a34a !important;
  background-color:#16a34a !important;
}
.laegebils-app .lb-fish-section-title{
  flex:1;
}
.laegebils-app .lb-fish-section-meta{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  font-size:13px;
}
.laegebils-app .lb-fish-section-count{
  background:rgba(255,255,255,.18);
  padding:2px 8px;
  border-radius:999px;
}
.laegebils-app .lb-fish-chevron{
  display:inline-block;
  transition:transform .2s ease;
}
.laegebils-app .lb-fish-section.is-open .lb-fish-chevron{
  transform:rotate(180deg);
}
.laegebils-app .lb-fish-section-body{
  padding:10px 12px;
}
.laegebils-app .lb-fish-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:6px 0;
  color:#1f2937;
}
.laegebils-app .lb-fish-checkbox{
  width:20px;
  height:20px;
  min-width:20px;
  margin-top:2px;
  accent-color:var(--blue);
}
.laegebils-app .lb-fish-item-text{
  flex:1;
  line-height:1.45;
}


/* Medication box component */
.laegebils-app .lb-medbox{
  border:2px solid #2f6fa5;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  margin:10px 0 12px;
}
.laegebils-app .lb-medbox-header{
  background:#2f6fa5;
  color:#fff;
  font-weight:700;
  text-align:center;
  padding:10px 12px;
}
.laegebils-app .lb-medbox-body{
  padding:12px 14px;
  text-align:center;
}
.laegebils-app .lb-medbox-line{
  margin:0 0 8px 0;
  color:#111827;
  line-height:1.45;
}
.laegebils-app .lb-medbox-line:last-child{ margin-bottom:0; }
.laegebils-app .lb-medbox-warning{
  font-weight:700;
}


/* === Theme/browser color hardening === */
.laegebils-app,
.laegebils-app *{
  forced-color-adjust:none;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}

.laegebils-app{
  color-scheme:light !important;
  background:#f4f4f4 !important;
  color:#111827 !important;
}

.laegebils-app-shell,
.laegebils-app-shell main,
.laegebils-app-shell section,
.laegebils-app-shell article,
.laegebils-app-shell div{
  border-color:inherit;
}

.laegebils-app h1,
.laegebils-app h2,
.laegebils-app h3,
.laegebils-app h4,
.laegebils-app h5,
.laegebils-app h6,
.laegebils-app p,
.laegebils-app li,
.laegebils-app label,
.laegebils-app span,
.laegebils-app strong,
.laegebils-app small,
.laegebils-app td,
.laegebils-app th{
  color:inherit;
}

.laegebils-app button,
.laegebils-app [role="button"],
.laegebils-app summary{
  -webkit-appearance:none !important;
  appearance:none !important;
  background-image:none !important;
  text-shadow:none !important;
}

.laegebils-app input:not([type="checkbox"]):not([type="radio"]),
.laegebils-app select,
.laegebils-app textarea{
  background:#ffffff !important;
  color:#111827 !important;
  border:1px solid #d1d5db !important;
}

.laegebils-app input[type="checkbox"],
.laegebils-app input[type="radio"]{
  background:#ffffff !important;
  border:1px solid #9ca3af !important;
  accent-color:var(--blue) !important;
}

.laegebils-app .border-2.rounded-lg.mb-6.bg-white.overflow-hidden.shadow-sm.transition-colors.duration-300{
  background:#ffffff !important;
  border-color:var(--blue) !important;
}
.laegebils-app .border-2.border-green-600.rounded-lg.mb-6.bg-white.overflow-hidden.shadow-sm.transition-colors.duration-300{
  border-color:#16a34a !important;
}

.laegebils-app .border-2.rounded-lg.mb-6.bg-white.overflow-hidden.shadow-sm.transition-colors.duration-300 > h3,
.laegebils-app .bg-\[\#007acc\].text-white.p-2.text-lg.font-semibold.transition-colors.duration-300.flex.justify-between.items-center.cursor-pointer.select-none{
  background:var(--blue) !important;
  background-color:var(--blue) !important;
  color:#ffffff !important;
}
.laegebils-app .bg-green-600.text-white.p-2.text-lg.font-semibold.transition-colors.duration-300.flex.justify-between.items-center.cursor-pointer.select-none{
  background:#16a34a !important;
  background-color:#16a34a !important;
  color:#ffffff !important;
}

.laegebils-app .lb-fish-section,
.laegebils-app .lb-med-card,
.laegebils-app .lb-mix-card,
.laegebils-app .lb-medbox,
.laegebils-app .section,
.laegebils-app .card{
  background:#ffffff !important;
}

.laegebils-app .lb-fish-section-header,
.laegebils-app button.lb-fish-section-header,
.laegebils-app .lb-medbox-header,
.laegebils-app .lb-med-head,
.laegebils-app .lb-mix-head,
.laegebils-app .lb-table .lb-header-row th,
.laegebils-app .lb-table .lb-header-cell,
.laegebils-app .lb-table .lb-merged-header,
.laegebils-app .lb-dose-table .lb-dose-merged,
.laegebils-app .lb-dose-table .lb-dose-header-cell,
.laegebils-app .lb-infusion-head{
  background:#2f6fa5 !important;
  background-color:#2f6fa5 !important;
  color:#ffffff !important;
}

.laegebils-app .lb-fish-section.is-done .lb-fish-section-header,
.laegebils-app .lb-fish-section.is-done button.lb-fish-section-header{
  background:#16a34a !important;
  background-color:#16a34a !important;
  color:#ffffff !important;
}

.laegebils-app .lb-fish-section-count,
.laegebils-app .pill,
.laegebils-app .rounded-full.border.text-xs.font-semibold.px-3.py-1{
  color:inherit;
}

.laegebils-app table,
.laegebils-app table *{
  color:#111827;
}

.laegebils-app .lb-row-alt td,
.laegebils-app .lb-infusion-row-odd .lb-infusion-cell,
.laegebils-app .bg-gray-100{
  background:#f3f4f6 !important;
}

.laegebils-app .lb-row-base td,
.laegebils-app .lb-infusion-row-even .lb-infusion-cell,
.laegebils-app .bg-white{
  background:#ffffff !important;
}

.laegebils-app .text-white,
.laegebils-app .lb-medbox-header *,
.laegebils-app .lb-fish-section-header *,
.laegebils-app .laegebils-tab.is-active *,
.laegebils-app .bg-\[\#007acc\] *,
.laegebils-app .bg-green-600 *{
  color:inherit !important;
}

/* Popup color fix only (based on v1.4.9) */
body > .fixed.inset-0.bg-black.bg-opacity-60.z-50 .bg-gray-50 button,
body > .fixed.inset-0.bg-black.bg-opacity-60.z-50 .bg-gray-50 button *{
  opacity:1 !important;
}

body > .fixed.inset-0.bg-black.bg-opacity-60.z-50 .bg-gray-50 button:first-child{
  background:#e5e7eb !important;
  color:#111827 !important;
  border:1px solid #cbd5e1 !important;
}
body > .fixed.inset-0.bg-black.bg-opacity-60.z-50 .bg-gray-50 button:first-child *{
  color:#111827 !important;
}

body > .fixed.inset-0.bg-black.bg-opacity-60.z-50 .bg-gray-50 button:last-child{
  background:#dc2626 !important;
  color:#ffffff !important;
  border:1px solid #b91c1c !important;
}
body > .fixed.inset-0.bg-black.bg-opacity-60.z-50 .bg-gray-50 button:last-child *{
  color:#ffffff !important;
}
