/* Shared palette for the local portal and the compiled application shell.
   Customer-facing report sheets retain their white print background. */
:root {
  --endmed-canvas: #cdd8e1;
  --endmed-surface: #e6edf2;
  --endmed-border: #b1c4d0;
  --endmed-text: #193746;
  --endmed-muted: #4b6474;
  --endmed-accent: #006d73;
  --endmed-sidebar: #292f78;
  --background: #cdd8e1;
  --foreground: #193746;
  --card: #e6edf2;
  --card-foreground: #193746;
  --border: #b1c4d0;
  --primary: #006d73;
  --primary-foreground: #ffffff;
}
body,
body.endmed-portal {
  background: var(--endmed-canvas);
  color: var(--endmed-text);
}
body.endmed-portal .portal-card {
  background: var(--endmed-surface);
  border-color: var(--endmed-border);
  box-shadow: 0 4px 15px #1735440b;
}
body.endmed-portal p,
.portal-muted {
  color: var(--endmed-muted);
}
body.endmed-portal .portal-card h2 {
  color: #144854;
}
body.endmed-portal input,
body.endmed-portal select,
body.endmed-portal textarea {
  background: #f1f5f7;
  color: #183746;
  border-color: #9eb6c6;
}
body.endmed-portal input::placeholder,
body.endmed-portal textarea::placeholder {
  color: #536d7d;
  opacity: 1;
}
body.endmed-portal input[type='checkbox'] {
  accent-color: #006d73;
}
body.endmed-portal button,
body.endmed-portal .portal-button {
  background: #006d73;
  border-color: #005b62;
}
body.endmed-portal button:hover,
body.endmed-portal .portal-button:hover {
  background: #00565e;
}
body.endmed-portal button.secondary {
  background: #d4e2e9;
  color: #204451;
  border-color: #a5bdcc;
}
body.endmed-portal th {
  background: #c4d7e2;
  color: #234350;
}
body.endmed-portal td,
body.endmed-portal th {
  border-color: #bdced9;
}
body.endmed-portal tbody tr:nth-child(even) {
  background: #dbe6ed;
}
body.endmed-portal dialog {
  background: #e6edf2;
  border: 1px solid #aac0ce;
}
.portal-note {
  background: #d4e8e8;
  border-color: #27888c;
  color: #204b55;
}
body.endmed-portal .portal-message {
  background: #cee8dc;
  color: #14533e;
}
body.endmed-portal .portal-message.error {
  background: #f4d9d6;
  color: #822822;
}
.management-save {
  background: #d6e3ea;
  border-color: #a4bdcb;
  box-shadow: 0 -5px 18px #17354412;
}
.management-save span {
  color: #3a596b;
}
.management-tabs button[aria-selected='false'] {
  background: #c6d8e2 !important;
  color: #214655 !important;
  border-color: #a7bfce !important;
}
.access-group,
.access-team,
.check-item {
  background: #dde8ee;
  border-color: #adc4d1;
}
#endmed-sidebar {
  background: var(--endmed-sidebar);
  color: #fff;
  border-color: #ffffff33;
}
#endmed-sidebar .endmed-brand {
  border-color: #ffffff33;
  background: var(--endmed-sidebar);
  min-height: 78px;
  box-sizing: border-box;
}
#endmed-sidebar nav > a,
#endmed-sidebar summary {
  color: #fff;
}
#endmed-sidebar details a {
  color: #fff;
}
#endmed-sidebar summary::after {
  color: #fff;
}
#endmed-sidebar details > div {
  border-color: #ffffff4d;
}
#endmed-sidebar a:hover,
#endmed-sidebar summary:hover {
  background: #ffffff14;
  color: #ffffff;
}
#endmed-sidebar details[open] > summary {
  background: #ffffff14;
  color: #fff;
}
#endmed-sidebar a.active {
  background: #ffffff24;
  color: #ffffff;
  box-shadow: inset 3px 0 #fff;
}
#endmed-sidebar footer {
  background: var(--endmed-sidebar);
  border-color: #ffffff33;
}
#endmed-sidebar footer a {
  color: #fff;
}
#endmed-sidebar footer small {
  color: #fff;
}
#endmed-sidebar footer button {
  background: #ffffff14;
  color: #fff;
  border-color: #ffffff66;
}
#endmed-sidebar .endmed-menu-search input {
  background: #ffffff0d;
  color: #fff;
  border-color: #ffffff66;
}
#endmed-sidebar .endmed-menu-search input::placeholder {
  color: #fff;
  opacity: 1;
}
#endmed-sidebar :focus-visible {
  outline-color: #fff;
}
#endmed-menu-empty {
  color: #fff;
}
.service-checklist-entry-box {
  background: #bddfdc;
  border-color: #7ab6b6;
}
.service-checklist-entry-box a {
  color: #164f59;
  margin-right: 20px;
}
#root [data-slot='sidebar-inset'],
#root main {
  background-color: var(--endmed-canvas);
}
#root .bg-white {
  background-color: var(--endmed-surface) !important;
}
#root .bg-slate-50,
#root .bg-gray-50 {
  background-color: #d9e4ec !important;
}
#root .bg-slate-100 {
  background-color: #d0dfe8 !important;
}
#root .text-slate-400,
#root .text-gray-400,
#root .text-slate-500,
#root .text-gray-500 {
  color: #506979 !important;
}
#root .border-slate-100,
#root .border-slate-200,
#root .border-gray-200 {
  border-color: #b4c8d5 !important;
}
#root input:not([type='checkbox']),
#root textarea,
#root select {
  color: #183746;
  background-color: #edf3f6;
  border-color: #a8bece;
}
#root input::placeholder,
#root textarea::placeholder {
  color: #5b7281;
  opacity: 1;
}
#root th {
  color: #264b5a;
  background-color: #c8dbe5;
}
#root h1,
#root h2,
#root h3 {
  color: #153b4b;
}
#root .text-white h1,
#root .text-white h2,
#root .text-white h3 {
  color: #fff;
}
#root .text-white .text-slate-400,
#root .text-white .text-slate-500 {
  color: #c6dce7 !important;
}
#root h1.text-white,
#root h2.text-white,
#root h3.text-white {
  color: #fff;
}
#root [hidden] {
  display: none !important;
}
#endmed-sidebar .endmed-brand,
#endmed-sidebar .endmed-brand:hover,
#endmed-sidebar .endmed-brand.active,
#endmed-sidebar .endmed-brand:focus-visible {
  background: var(--endmed-sidebar);
  color: #fff;
  box-shadow: none;
}
#endmed-sidebar footer button:hover {
  background: #ffffff24;
}
#endmed-mobile-menu {
  background: var(--endmed-sidebar);
  color: #fff;
  border-color: #ffffff66;
}
body.endmed-portal .service-report-page {
  background: #fff;
  color: #172d3d;
}
body.endmed-portal .service-report-page p {
  color: #344b5b;
}
@media print {
  body,
  body.endmed-portal {
    background: #fff;
  }
}
