.cm-mip-shell,
.cm-mip-shell *,
.cm-mip-teams-app,
.cm-mip-teams-app * {
  box-sizing: border-box;
}

html:has(.cm-mip-teams-app),
body:has(.cm-mip-teams-app) {
  max-width: 100%;
  overflow-x: clip;
}

.cm-mip-shell {
  --cm-blue: #0b63f6;
  --cm-ink: #071846;
  --cm-text: #2a3c62;
  --cm-muted: #5f6f91;
  --cm-line: #dce6f5;
  --cm-soft: #f7fbff;
  --cm-green: #16a66a;
  --cm-red: #e5485d;
  --cm-shadow: 0 14px 34px rgba(34, 79, 135, .09);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  color: var(--cm-text);
  background: #f8fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cm-mip-shell-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 14px;
  color: #fff;
  background: linear-gradient(180deg, #08265a 0%, #061a3f 100%);
  overflow: auto;
}

.cm-mip-shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 14px;
  color: #fff;
  text-decoration: none;
}

.cm-mip-shell-logo {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 900;
}

.cm-mip-shell-brand strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
}

.cm-mip-shell-nav {
  display: grid;
  gap: 6px;
}

.cm-mip-shell-nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  color: rgba(255, 255, 255, .86);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.cm-mip-shell-nav-item:hover,
.cm-mip-shell-nav-item:focus,
.cm-mip-shell-nav-item.is-active {
  color: #fff;
  background: #0b63f6;
}

.cm-mip-shell-nav-item span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
}

.cm-mip-shell-user {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.cm-mip-shell-user span {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.cm-mip-shell-user a {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cm-mip-shell-main {
  min-width: 0;
}

.cm-inicio-app,
.cm-inicio-app * {
  box-sizing: border-box;
}

.cm-inicio-app {
  --cm-blue: #0b63f6;
  --cm-blue-2: #2a7dff;
  --cm-navy: #061844;
  --cm-navy-2: #08265e;
  --cm-ink: #071846;
  --cm-text: #26385f;
  --cm-muted: #5f6f91;
  --cm-line: #dce6f5;
  --cm-soft: #f6f9ff;
  --cm-green: #16a66a;
  --cm-violet: #7c4bf2;
  --cm-orange: #f58220;
  --cm-red: #ef4056;
  --cm-shadow: 0 14px 34px rgba(34, 79, 135, .09);
  --cm-sidebar-width: 270px;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  color: var(--cm-text);
  background: #f8fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-x: clip;
}

.cm-inicio-app a {
  color: inherit;
  text-decoration: none;
}

.cm-inicio-app button,
.cm-inicio-app input,
.cm-inicio-app select,
.cm-inicio-app textarea {
  max-width: 100%;
  font: inherit;
}

.cm-inicio-app input::placeholder,
.cm-inicio-app textarea::placeholder {
  color: #5f6f91;
  opacity: 1;
}

.cm-inicio-app :where(main, section, article, aside, header, footer, nav, div, form, fieldset, label) {
  min-width: 0;
}

.cm-inicio-app :where(fieldset) {
  max-width: 100%;
  min-inline-size: 0;
}

.cm-inicio-app :where(img, svg, video, canvas, iframe) {
  max-width: 100%;
}

.cm-inicio-app :where(h1, h2, h3, h4, p, li, label, small, strong, span, a, button) {
  overflow-wrap: anywhere;
}

.cm-app-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.cm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cm-sidebar-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cm-app-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  padding-left: var(--cm-sidebar-width);
}

.cm-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--cm-sidebar-width);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px 16px;
  color: #fff;
  background: linear-gradient(180deg, #071b47 0%, #082b66 55%, #061944 100%);
  box-shadow: 12px 0 28px rgba(5, 18, 45, .16);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.cm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 12px 26px;
}

.cm-sidebar-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
}

.cm-sidebar-mark .cm-app-icon {
  width: 36px;
  height: 36px;
}

.cm-sidebar-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
}

.cm-app-nav {
  display: grid;
  gap: 7px;
}

.cm-app-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  color: rgba(255, 255, 255, .88);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 760;
}

.cm-app-nav a:hover {
  background: rgba(255, 255, 255, .08);
}

.cm-app-nav a.is-active {
  color: #fff;
  background: linear-gradient(180deg, #0b63f6 0%, #0b5be8 100%);
  box-shadow: 0 12px 24px rgba(0, 95, 255, .25);
}

.cm-feedback {
  margin-top: auto;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.cm-feedback-dot {
  float: right;
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  background: #36d778;
}

.cm-feedback strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
}

.cm-feedback p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
}

.cm-feedback a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.cm-mobile-overlay {
  display: none;
}

.cm-main {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-width: 0;
  overflow-x: clip;
}

.cm-mip-clinical-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.cm-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--cm-ink);
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.cm-mip-clinical-menu-button {
  margin: 16px 0 0 16px;
}

.cm-mip-teams-app {
  --cm-blue: #0b63f6;
  --cm-ink: #071846;
  --cm-text: #2a3c62;
  --cm-muted: #5f6f91;
  --cm-line: #dce6f5;
  --cm-soft: #f7fbff;
  --cm-green: #16a66a;
  --cm-red: #e5485d;
  --cm-shadow: 0 14px 34px rgba(34, 79, 135, .09);
  width: min(100%, 1760px);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(22px, 2.2vw, 42px) clamp(18px, 2.4vw, 44px) clamp(34px, 3vw, 56px);
  color: var(--cm-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cm-mip-step-label {
  display: inline-flex;
  margin-bottom: 7px;
  color: #0b63f6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cm-mip-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: #21345b;
  border: 1px solid #d8e3f3;
  border-radius: 8px;
  background: #fff;
}

.cm-mip-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 16px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(145deg, #071846, #0b56cd);
}

.cm-mip-next-step > div {
  display: grid;
  gap: 4px;
}

.cm-mip-next-step span {
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
}

.cm-mip-next-step .cm-mip-button {
  flex: 0 0 auto;
  color: #0b63f6;
  background: #fff;
}

.cm-mip-patient-taskbar {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(260px, 1.4fr) 120px minmax(180px, .8fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #c8dcf8;
  border-radius: 10px;
  background: #f1f7ff;
}

.cm-mip-patient-taskbar > div {
  display: grid;
}

.cm-mip-patient-taskbar > div span {
  color: #607295;
  font-size: 11px;
}

.cm-mip-patient-taskbar input,
.cm-mip-patient-taskbar select {
  min-width: 0;
  min-height: 44px;
  padding: 0 11px;
  color: #172b52;
  border: 1px solid #cedcf0;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 1620px) {
  .cm-mip-patient-taskbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-mip-patient-taskbar .cm-mip-button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .cm-mip-patient-taskbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cm-mip-next-step {
    align-items: stretch;
    flex-direction: column;
  }
}

.cm-mip-teams-app a {
  color: inherit;
  text-decoration: none;
}

.cm-mip-teams-head,
.cm-mip-patient-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cm-mip-teams-head span,
.cm-mip-patient-head a {
  color: var(--cm-blue);
  font-size: 13px;
  font-weight: 850;
}

.cm-mip-teams-head h1,
.cm-mip-patient-head h1 {
  margin: 3px 0 4px;
  color: var(--cm-ink);
  font-size: 32px;
  line-height: 1.15;
}

.cm-mip-teams-head p,
.cm-mip-patient-head p,
.cm-mip-muted {
  margin: 0;
  color: var(--cm-muted);
  font-size: 14px;
}

.cm-mip-teams-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cm-mip-patient-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px;
  align-items: start;
}

.cm-mip-panel,
.cm-mip-subpanel {
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--cm-shadow);
}

.cm-mip-panel {
  padding: 18px;
}

.cm-mip-panel h2,
.cm-mip-panel h3 {
  margin: 0 0 12px;
  color: var(--cm-ink);
  line-height: 1.2;
}

.cm-mip-panel h2 {
  font-size: 20px;
}

.cm-mip-panel h3 {
  font-size: 16px;
}

.cm-mip-form {
  display: grid;
  gap: 12px;
}

.cm-mip-form label {
  display: grid;
  gap: 6px;
  color: #26375e;
  font-size: 13px;
  font-weight: 800;
}

.cm-mip-form input,
.cm-mip-form select,
.cm-mip-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--cm-ink);
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: #fbfdff;
  outline: 0;
  font: inherit;
}

.cm-mip-form textarea {
  min-height: 220px;
  padding: 12px;
  resize: vertical;
}

.cm-mip-teams-app :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(11, 99, 246, .4);
  outline-offset: 2px;
}

.cm-mip-form input[type="checkbox"],
.cm-mip-form input[type="radio"] {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: var(--cm-blue);
  box-shadow: none;
}

.cm-mip-form input:focus,
.cm-mip-form select:focus,
.cm-mip-form textarea:focus {
  border-color: rgba(11, 99, 246, .6);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, .09);
}

.cm-mip-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  color: #fff;
  border: 1px solid var(--cm-blue);
  border-radius: 8px;
  background: linear-gradient(180deg, #0b63f6 0%, #0759e8 100%);
  box-shadow: 0 12px 22px rgba(11, 99, 246, .18);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.cm-mip-teams-app .cm-mip-button,
.cm-mip-teams-app .cm-mip-button:visited,
.cm-mip-teams-app .cm-mip-button:hover,
.cm-mip-teams-app .cm-mip-button:focus {
  color: #fff;
  text-decoration: none;
}

.cm-mip-button.is-light {
  color: var(--cm-blue);
  background: #fff;
  box-shadow: none;
}

.cm-mip-teams-app .cm-mip-button.is-light,
.cm-mip-teams-app .cm-mip-button.is-light:visited,
.cm-mip-teams-app .cm-mip-button.is-light:hover,
.cm-mip-teams-app .cm-mip-button.is-light:focus {
  color: var(--cm-blue);
}

.cm-mip-teams-app .cm-mip-next-step .cm-mip-button,
.cm-mip-teams-app .cm-mip-next-step .cm-mip-button:visited,
.cm-mip-teams-app .cm-mip-next-step .cm-mip-button:hover,
.cm-mip-teams-app .cm-mip-next-step .cm-mip-button:focus {
  color: #0849b8;
  border-color: #ffffff;
  background: #ffffff;
}

.cm-mip-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.cm-mip-team-link {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: #fbfdff;
}

.cm-mip-team-link.is-active {
  border-color: rgba(11, 99, 246, .5);
  background: #eef5ff;
}

.cm-mip-team-link strong {
  color: var(--cm-ink);
  font-size: 14px;
}

.cm-mip-team-link span {
  color: var(--cm-muted);
  font-size: 12px;
}

.cm-mip-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cm-mip-section-head h2 {
  margin-bottom: 4px;
}

.cm-mip-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.cm-mip-team-tools {
  max-width: 520px;
  margin-bottom: 18px;
}

.cm-mip-subpanel {
  padding: 14px;
}

.cm-mip-create-bed-layout {
  width: min(100%, 1280px);
}

.cm-mip-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cm-mip-age-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.cm-mip-patient-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cm-mip-patient-facts span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #26375e;
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.cm-mip-patient-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cm-mip-ai-workflow-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 15px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #6545e8 0%, #0b63f6 100%);
  box-shadow: 0 14px 28px rgba(62, 77, 190, .18);
}

.cm-mip-ai-workflow-callout > div {
  display: grid;
  gap: 4px;
}

.cm-mip-ai-workflow-callout strong {
  color: #fff;
  font-size: 14px;
}

.cm-mip-ai-workflow-callout span {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
}

.cm-mip-ai-workflow-callout .cm-mip-button {
  flex: 0 0 auto;
  color: #563bc0 !important;
  border-color: #fff;
  background: #fff;
  box-shadow: none;
}

.cm-mip-bed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.cm-mip-bed-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: #fff;
}

.cm-mip-bed-card:hover {
  border-color: rgba(11, 99, 246, .42);
  box-shadow: var(--cm-shadow);
}

.cm-mip-bed-card span {
  color: var(--cm-blue);
  font-size: 13px;
  font-weight: 850;
}

.cm-mip-bed-card strong {
  color: var(--cm-ink);
  font-size: 17px;
  line-height: 1.2;
}

.cm-mip-bed-card small {
  margin-top: auto;
  color: var(--cm-muted);
  font-size: 12px;
}

.cm-mip-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cm-mip-member-list span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #26375e;
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: var(--cm-soft);
  font-size: 13px;
  font-weight: 800;
}

.cm-mip-member-list small {
  color: var(--cm-muted);
}

.cm-mip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cm-mip-history-builder {
  margin-bottom: 22px;
}

.cm-mip-history-option-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 14px;
  align-items: stretch;
}

.cm-mip-history-option {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(34, 79, 135, .05);
}

.cm-mip-history-option.is-wide {
  grid-row: span 2;
}

.cm-mip-history-option strong {
  color: var(--cm-ink);
  font-size: 16px;
  line-height: 1.2;
}

.cm-mip-history-option small {
  color: var(--cm-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.cm-mip-option-step {
  width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--cm-blue);
  border: 1px solid rgba(11, 99, 246, .18);
  border-radius: 8px;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 900;
}

.cm-mip-history-option textarea {
  min-height: 300px;
  margin-top: 4px;
}

.cm-mip-history-option input[type="file"] {
  min-height: auto;
  padding: 12px;
  border-style: dashed;
  background: #fff;
}

.cm-mip-history {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: #fff;
}

.cm-mip-history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--cm-muted);
  font-size: 12px;
  font-weight: 800;
}

.cm-mip-history-text {
  color: #26375e;
  font-size: 14px;
}

.cm-mip-clean-link {
  color: var(--cm-blue);
  font-size: 13px;
  font-weight: 850;
}

.cm-mip-diagnosis-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cm-mip-diagnosis-list article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--cm-line);
  border-radius: 8px;
  background: #fbfdff;
}

.cm-mip-diagnosis-card {
  background: #fff;
}

.cm-mip-diagnosis-card details {
  display: grid;
  gap: 10px;
}

.cm-mip-diagnosis-card summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.cm-mip-diagnosis-card summary::-webkit-details-marker {
  display: none;
}

.cm-mip-diagnosis-priority {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--cm-blue);
  border: 1px solid rgba(11, 99, 246, .22);
  border-radius: 8px;
  background: #eef5ff;
  font-size: 13px;
  font-weight: 900;
}

.cm-mip-diagnosis-edit-hint {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--cm-blue);
  border: 1px solid rgba(11, 99, 246, .2);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.cm-mip-diagnosis-list strong {
  color: var(--cm-ink);
  font-size: 14px;
}

.cm-mip-diagnosis-list span {
  color: var(--cm-blue);
  font-size: 13px;
  font-weight: 850;
}

.cm-mip-diagnosis-list small {
  display: block;
  margin-top: 3px;
  color: var(--cm-muted);
  font-size: 12px;
}

.cm-mip-diagnosis-codes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f7fbff;
}

.cm-mip-diagnosis-edit-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cm-line);
}

.cm-mip-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(7, 24, 70, .58);
  backdrop-filter: blur(12px);
}

.cm-mip-loading-overlay.is-visible {
  display: grid;
}

.cm-mip-loading-card {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(220, 230, 245, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(6, 24, 70, .28);
}

.cm-mip-loading-card strong {
  color: var(--cm-ink);
  font-size: 20px;
}

.cm-mip-loading-card p {
  margin: 0;
  color: var(--cm-muted);
  font-size: 14px;
  font-weight: 750;
}

.cm-mip-loading-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #e4eefc;
  border-top-color: var(--cm-blue);
  border-radius: 50%;
  animation: cm-mip-spin .8s linear infinite;
}

@keyframes cm-mip-spin {
  to {
    transform: rotate(360deg);
  }
}

.cm-mip-flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #bce7ce;
  border-radius: 8px;
  color: #0f7048;
  background: #edf9f2;
  font-weight: 800;
}

.cm-mip-flash.is-error {
  color: #9f2035;
  border-color: #f3c2cb;
  background: #fff0f3;
}

@media (min-width: 1680px) {
  .cm-inicio-app {
    --cm-sidebar-width: 288px;
  }

  .cm-mip-teams-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
  }

  .cm-mip-patient-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    gap: 22px;
  }

  .cm-mip-bed-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-height: 860px) {
  .cm-sidebar {
    padding: 18px 12px;
  }

  .cm-sidebar-brand {
    padding-bottom: 16px;
  }

  .cm-app-nav {
    gap: 5px;
  }

  .cm-app-nav a {
    min-height: 42px;
    font-size: 14px;
  }

  .cm-feedback {
    margin-top: 14px;
    padding: 14px;
  }

  .cm-feedback p {
    margin-bottom: 10px;
  }
}

@media (max-width: 1380px) {
  .cm-mip-teams-app {
    width: min(100%, 1480px);
  }

  .cm-mip-bed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .cm-mip-shell {
    grid-template-columns: 1fr;
  }

  .cm-mip-shell-sidebar {
    position: static;
    height: auto;
  }

  .cm-mip-shell-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .cm-mip-shell-nav-item {
    flex: 0 0 auto;
  }

  .cm-mip-shell-user {
    display: none;
  }

  .cm-mip-teams-layout,
  .cm-mip-patient-grid {
    grid-template-columns: 1fr;
  }

  .cm-mip-bed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-mip-create-bed-layout {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .cm-app-shell {
    padding-left: 0;
  }

  .cm-sidebar {
    width: min(86vw, 300px);
    transform: translateX(-102%);
    transition: transform .22s ease;
  }

  .cm-sidebar-toggle:checked ~ .cm-inicio-app .cm-sidebar {
    transform: translateX(0);
  }

  .cm-sidebar-toggle:checked ~ .cm-inicio-app .cm-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(6, 16, 39, .35);
  }

  .cm-menu-button {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .cm-mip-teams-app {
    padding: 20px 16px 30px;
  }

  .cm-mip-panel {
    padding: 16px;
  }

  .cm-mip-teams-head,
  .cm-mip-patient-head,
  .cm-mip-section-head,
  .cm-mip-next-step {
    align-items: flex-start;
    flex-direction: column;
  }

  .cm-mip-teams-head > .cm-mip-button,
  .cm-mip-section-head > .cm-mip-button,
  .cm-mip-next-step > .cm-mip-button,
  .cm-mip-patient-head-actions,
  .cm-mip-patient-head-actions .cm-mip-button,
  .cm-mip-ai-workflow-callout .cm-mip-button {
    width: 100%;
  }

  .cm-mip-ai-workflow-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .cm-mip-teams-head h1,
  .cm-mip-patient-head h1 {
    font-size: 28px;
  }

  .cm-mip-inline-grid,
  .cm-mip-form-grid,
  .cm-mip-history-option-grid,
  .cm-mip-age-field,
  .cm-mip-bed-grid,
  .cm-mip-actions {
    grid-template-columns: 1fr;
  }

  .cm-mip-history-option.is-wide {
    grid-row: auto;
  }

  .cm-mip-history-option textarea {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .cm-mip-teams-app {
    padding: 16px 12px 26px;
  }

  .cm-mip-teams-head h1,
  .cm-mip-patient-head h1 {
    font-size: 25px;
  }

  .cm-mip-panel {
    padding: 14px;
  }

  .cm-mip-form input,
  .cm-mip-form select,
  .cm-mip-form textarea {
    min-height: 42px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .cm-mip-form input[type="checkbox"],
  .cm-mip-form input[type="radio"] {
    width: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 0;
  }

  .cm-mip-patient-facts span,
  .cm-mip-member-list span {
    width: 100%;
  }

  .cm-mip-diagnosis-card summary {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .cm-mip-diagnosis-edit-hint {
    display: none;
  }
}
