:root {
  --endmed-sidebar-width: 250px;
  --endmed-primary: #007f7b;
  --endmed-ink: #233b50;
}
#endmed-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--endmed-sidebar-width);
  z-index: 45;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  font:
    13px/1.5 'Segoe UI',
    Arial,
    sans-serif;
  color: var(--endmed-ink);
}
.endmed-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 21px 17px;
  text-decoration: none;
  color: var(--endmed-ink);
  border-bottom: 1px solid #eef2f6;
}
.endmed-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.endmed-brand strong {
  font-size: 20px;
  letter-spacing: 1px;
}
.endmed-brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: #789;
}
#endmed-sidebar nav {
  padding: 12px 10px;
  overflow: auto;
  flex: 1;
}
#endmed-sidebar nav > a,
#endmed-sidebar summary {
  display: block;
  padding: 10px 12px;
  color: #486174;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  margin: 3px 0;
  background: transparent;
  border: none;
  list-style: none;
}
#endmed-sidebar summary::-webkit-details-marker {
  display: none;
}
#endmed-sidebar summary::after {
  content: '⌄';
  float: right;
  color: #789;
}
#endmed-sidebar details[open] > summary {
  color: #006d73;
  background: #f1f8f9;
}
#endmed-sidebar details > div {
  margin: 0 5px 10px 12px;
  border-left: 1px solid #dce7ed;
  padding-left: 9px;
}
#endmed-sidebar details a {
  display: block;
  text-decoration: none;
  color: #587083;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
}
#endmed-sidebar a:hover,
#endmed-sidebar summary:hover {
  background: #f0f7fb;
}
#endmed-sidebar a.active {
  color: #007d8b;
  background: #e6f5fa;
  font-weight: 700;
}
#endmed-sidebar footer {
  padding: 13px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
#endmed-sidebar footer a {
  color: var(--endmed-ink);
  text-decoration: none;
}
#endmed-sidebar footer small {
  display: block;
  color: #789;
  font-size: 10px;
}
#endmed-sidebar footer button {
  background: #f5f8fa;
  border: 1px solid #dae4eb;
  border-radius: 6px;
  padding: 7px;
  color: #526b7d;
  font-size: 11px;
  cursor: pointer;
}
#endmed-mobile-menu {
  display: none;
}
#root {
  margin-left: var(--endmed-sidebar-width);
  width: calc(100% - var(--endmed-sidebar-width));
  min-width: 0;
}
#root [data-slot='sidebar'],
#root [data-slot='sidebar-container'],
#root [data-slot='sidebar-gap'],
#root [data-slot='sidebar-rail'],
#root [data-slot='sidebar-trigger'] {
  display: none !important;
  width: 0 !important;
}
#root [data-slot='sidebar-inset'] {
  margin: 0 !important;
  min-width: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
}
#root main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px !important;
}
#root [data-slot='sidebar-wrapper'] {
  width: 100%;
  min-width: 0;
}
#root header {
  max-width: none !important;
}
.local-ribbon {
  position: fixed;
  bottom: 8px;
  right: 12px;
  z-index: 44;
  background: #143c43;
  color: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  font:
    11px 'Segoe UI',
    sans-serif;
}
.local-ribbon a {
  color: #c8f6ef;
  margin-left: 10px;
}
@media (min-width: 1600px) {
  #root main {
    padding: 28px 32px !important;
  }
}
@media (max-width: 800px) {
  #endmed-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  #endmed-sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 50px #102e4540;
  }
  #root {
    margin-left: 0;
    width: 100%;
  }
  #root main {
    padding: 16px !important;
  }
  #endmed-mobile-menu {
    display: block;
    position: fixed;
    left: 8px;
    top: 15px;
    z-index: 46;
    border: 1px solid #dce6ec;
    background: #fff;
    border-radius: 6px;
    padding: 5px 9px;
    color: #31516b;
  }
  #root header {
    padding-left: 48px !important;
  }
  .local-ribbon {
    font-size: 10px;
    max-width: 90vw;
  }
}
@media print {
  #endmed-sidebar,
  #endmed-mobile-menu,
  .local-ribbon {
    display: none !important;
  }
  #root {
    margin: 0;
    width: 100%;
  }
}

#endmed-sidebar .endmed-brand img {
  width: 180px;
  height: 46px;
}
#endmed-sidebar .endmed-brand strong {
  display: none;
}

.endmed-menu-search {
  padding: 12px 12px 0;
}
.endmed-menu-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce7ed;
  border-radius: 7px;
  padding: 9px 10px;
  font:
    12px Segoe UI,
    Arial,
    sans-serif;
  color: #233b50;
  background: #f8fafc;
}
#endmed-sidebar [hidden] {
  display: none !important;
}
#endmed-sidebar :focus-visible {
  outline: 2px solid #007f7b;
  outline-offset: 2px;
}
#endmed-menu-empty {
  padding: 10px;
  color: #64748b;
  font-size: 12px;
}
.service-checklist-entry-box {
  padding: 12px 16px;
  margin-bottom: 18px;
  background: #eaf7f3;
  border: 1px solid #cde8df;
  border-radius: 8px;
}
.service-checklist-entry-box a {
  color: #006d68;
  font-weight: 600;
  text-decoration: none;
}
.service-team-summary {
  display: block;
  flex-basis: 100%;
  font-size: 12px;
  margin-top: 8px;
  color: #2a5362;
}
.new-order-team {
  border: 1px solid #a8bece;
  border-radius: 12px;
  padding: 12px;
}
.new-order-team legend {
  padding: 0 6px;
  font-weight: 700;
  color: #193746;
}
.new-order-team > label {
  display: block;
  font-weight: 600;
}
.new-order-team select {
  width: 100%;
  padding: 9px;
  border: 1px solid #a8bece;
  border-radius: 8px;
  margin-top: 5px;
}
.new-order-team-members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 150px;
  overflow: auto;
  margin-top: 8px;
}
.new-order-team-members label {
  display: flex;
  gap: 7px;
  align-items: center;
}
.new-order-team input[type='checkbox'] {
  width: 15px !important;
  height: 15px;
}
.new-order-team p {
  margin-top: 8px;
  font-size: 11px;
}
.new-order-assignment-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 4px 0;
}
.new-order-assignment-mode label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.new-order-assignment-mode input[type='radio'] {
  width: 15px !important;
  height: 15px;
  accent-color: #292f78;
}
.new-order-team details {
  margin-top: 8px;
}
.new-order-team details summary {
  font-weight: 600;
  cursor: pointer;
}
.new-order-primary {
  margin-bottom: 4px;
}
.new-order-team-note {
  color: #6c5b22;
}
#endmed-team-dialog {
  color: #193746;
  background: #e6edf2;
  border: 1px solid #a8bece;
  border-radius: 14px;
  width: min(560px, calc(100vw - 30px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  box-sizing: border-box;
  padding: 24px;
}
#endmed-team-dialog::backdrop {
  background: #1238;
}
#endmed-team-dialog h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
#endmed-team-dialog p {
  margin: 12px 0;
}
#endmed-team-dialog select {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #a8bece;
  border-radius: 7px;
  margin: 6px 0 12px;
}
#endmed-team-dialog [data-team-members] {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  margin: 15px 0;
}
#endmed-team-dialog [data-team-members] label {
  display: flex;
  align-items: center;
  gap: 9px;
}
#endmed-team-dialog [data-team-message] {
  color: #a52c2c;
}
.team-dialog-actions {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}
.team-dialog-actions button {
  padding: 10px 14px;
  border-radius: 8px;
  background: #00767a;
  color: white;
  font-weight: 600;
}
.team-dialog-actions button:disabled {
  opacity: 0.5;
}
.service-team-row-button {
  border: 1px solid #82abb9;
  border-radius: 9px;
  padding: 7px 10px;
  color: #006d73;
  background: #eff8fa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.service-team-row-button:disabled {
  opacity: 0.5;
  cursor: default;
}
