/* Variables declaration */
.rdp-root {
  --rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
  --rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */

  --rdp-day-height: 44px; /* The height of the day cells. */
  --rdp-day-width: 44px; /* The width of the day cells. */

  --rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
  --rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
  --rdp-day_button-height: 42px; /* The height of the day cells. */
  --rdp-day_button-width: 42px; /* The width of the day cells. */

  --rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
  --rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
  --rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
  --rdp-today-color: var(--rdp-accent-color); /* The color of the today's date. */

  --rdp-dropdown-gap: 0.5rem; /* The gap between the dropdowns used in the month captons. */

  --rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */

  --rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
  --rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
  --rdp-nav_button-width: 2.25rem; /* The width of the navigation buttons. */
  --rdp-nav-height: 2.75rem; /* The height of the navigation bar. */

  --rdp-range_middle-background-color: var(--rdp-accent-background-color); /* The color of the background for days in the middle of a range. */
  --rdp-range_middle-color: inherit; /* The color of the range text. */

  --rdp-range_start-color: white; /* The color of the range text. */
  --rdp-range_start-background: linear-gradient(
    var(--rdp-gradient-direction),
    transparent 50%,
    var(--rdp-range_middle-background-color) 50%
  ); /* Used for the background of the start of the selected range. */
  --rdp-range_start-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the start of the selected range. */

  --rdp-range_end-background: linear-gradient(
    var(--rdp-gradient-direction),
    var(--rdp-range_middle-background-color) 50%,
    transparent 50%
  ); /* Used for the background of the end of the selected range. */
  --rdp-range_end-color: white; /* The color of the range text. */
  --rdp-range_end-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the end of the selected range. */

  --rdp-week_number-border-radius: 100%; /* The border radius of the week number. */
  --rdp-week_number-border: 2px solid transparent; /* The border of the week number. */

  --rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
  --rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
  --rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */
  --rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */

  --rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
  --rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
  --rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */

  --rdp-gradient-direction: 90deg;

  --rdp-animation_duration: 0.3s;
  --rdp-animation_timing: cubic-bezier(0.4, 0, 0.2, 1);
}

.rdp-root[dir="rtl"] {
  --rdp-gradient-direction: -90deg;
}

.rdp-root[data-broadcast-calendar="true"] {
  --rdp-outside-opacity: unset;
}

/* Root of the component. */
.rdp-root {
  position: relative; /* Required to position the navigation toolbar. */
  box-sizing: border-box;
}

.rdp-root * {
  box-sizing: border-box;
}

.rdp-day {
  width: var(--rdp-day-width);
  height: var(--rdp-day-height);
  text-align: center;
}

.rdp-day_button {
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  justify-content: center;
  align-items: center;
  display: flex;

  width: var(--rdp-day_button-width);
  height: var(--rdp-day_button-height);
  border: var(--rdp-day_button-border);
  border-radius: var(--rdp-day_button-border-radius);
}

.rdp-day_button:disabled {
  cursor: revert;
}

.rdp-caption_label {
  z-index: 1;

  position: relative;
  display: inline-flex;
  align-items: center;

  white-space: nowrap;
  border: 0;
}

.rdp-dropdown:focus-visible ~ .rdp-caption_label {
  outline: 5px auto Highlight;
  /* biome-ignore lint/suspicious/noDuplicateProperties: backward compatibility */
  outline: 5px auto -webkit-focus-ring-color;
}

.rdp-button_next,
.rdp-button_previous {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -moz-appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  appearance: none;

  width: var(--rdp-nav_button-width);
  height: var(--rdp-nav_button-height);
}

.rdp-button_next:disabled,
.rdp-button_next[aria-disabled="true"],
.rdp-button_previous:disabled,
.rdp-button_previous[aria-disabled="true"] {
  cursor: revert;

  opacity: var(--rdp-nav_button-disabled-opacity);
}

.rdp-chevron {
  display: inline-block;
  fill: var(--rdp-accent-color);
}

.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
  transform: rotate(180deg);
  transform-origin: 50%;
}

.rdp-dropdowns {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--rdp-dropdown-gap);
}
.rdp-dropdown {
  z-index: 2;

  /* Reset */
  opacity: 0;
  appearance: none;
  position: absolute;
  inset-block-start: 0;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: inherit;
  border: none;
  line-height: inherit;
}

.rdp-dropdown_root {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.rdp-dropdown_root[data-disabled="true"] .rdp-chevron {
  opacity: var(--rdp-disabled-opacity);
}

.rdp-month_caption {
  display: flex;
  align-content: center;
  height: var(--rdp-nav-height);
  font-weight: bold;
  font-size: large;
}

.rdp-root[data-nav-layout="around"] .rdp-month,
.rdp-root[data-nav-layout="after"] .rdp-month {
  position: relative;
}

.rdp-root[data-nav-layout="around"] .rdp-month_caption {
  justify-content: center;
  margin-inline-start: var(--rdp-nav_button-width);
  margin-inline-end: var(--rdp-nav_button-width);
  position: relative;
}

.rdp-root[data-nav-layout="around"] .rdp-button_previous {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: var(--rdp-nav-height);
  display: inline-flex;
}

.rdp-root[data-nav-layout="around"] .rdp-button_next {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  height: var(--rdp-nav-height);
  display: inline-flex;
  justify-content: center;
}

.rdp-months {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--rdp-months-gap);
  max-width: fit-content;
}

.rdp-month_grid {
  border-collapse: collapse;
}

.rdp-nav {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;

  display: flex;
  align-items: center;

  height: var(--rdp-nav-height);
}

.rdp-weekday {
  opacity: var(--rdp-weekday-opacity);
  padding: var(--rdp-weekday-padding);
  font-weight: 500;
  font-size: smaller;
  text-align: var(--rdp-weekday-text-align);
  text-transform: var(--rdp-weekday-text-transform);
}

.rdp-week_number {
  opacity: var(--rdp-week_number-opacity);
  font-weight: 400;
  font-size: small;
  height: var(--rdp-week_number-height);
  width: var(--rdp-week_number-width);
  border: var(--rdp-week_number-border);
  border-radius: var(--rdp-week_number-border-radius);
  text-align: var(--rdp-weeknumber-text-align);
}

/* DAY MODIFIERS */
.rdp-today:not(.rdp-outside) {
  color: var(--rdp-today-color);
}

.rdp-selected {
  font-weight: bold;
  font-size: large;
}

.rdp-selected .rdp-day_button {
  border: var(--rdp-selected-border);
}

.rdp-outside {
  opacity: var(--rdp-outside-opacity);
}

.rdp-disabled:not(.rdp-selected) {
  opacity: var(--rdp-disabled-opacity);
}

.rdp-hidden {
  visibility: hidden;
  color: var(--rdp-range_start-color);
}

.rdp-range_start {
  background: var(--rdp-range_start-background);
}

.rdp-range_start .rdp-day_button {
  background-color: var(--rdp-range_start-date-background-color);
  color: var(--rdp-range_start-color);
}

.rdp-range_middle {
  background-color: var(--rdp-range_middle-background-color);
}

.rdp-range_middle .rdp-day_button {
  border: unset;
  border-radius: unset;
  color: var(--rdp-range_middle-color);
}

.rdp-range_end {
  background: var(--rdp-range_end-background);
  color: var(--rdp-range_end-color);
}

.rdp-range_end .rdp-day_button {
  color: var(--rdp-range_start-color);
  background-color: var(--rdp-range_end-date-background-color);
}

.rdp-range_start.rdp-range_end {
  background: revert;
}

.rdp-focusable {
  cursor: pointer;
}

@keyframes rdp-slide_in_left {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes rdp-slide_in_right {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes rdp-slide_out_left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes rdp-slide_out_right {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.rdp-weeks_before_enter {
  animation: rdp-slide_in_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_before_exit {
  animation: rdp-slide_out_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_after_enter {
  animation: rdp-slide_in_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_after_exit {
  animation: rdp-slide_out_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_after_enter {
  animation: rdp-slide_in_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_before_exit {
  animation: rdp-slide_out_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_before_enter {
  animation: rdp-slide_in_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_after_exit {
  animation: rdp-slide_out_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

@keyframes rdp-fade_in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rdp-fade_out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.rdp-caption_after_enter {
  animation: rdp-fade_in var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_after_exit {
  animation: rdp-fade_out var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_before_enter {
  animation: rdp-fade_in var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_before_exit {
  animation: rdp-fade_out var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}
@font-face {
  font-family: "Work Sans";
  src: url("/dentalome-assets/WorkSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("/dentalome-assets/WorkSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("/dentalome-assets/WorkSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans Tight";
  src: url("/dentalome-assets/WorkSans-SemiBold-Tight.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("/dentalome-assets/WorkSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #005fe5;
  --blue-dark: #064eb8;
  --accent: #075fe5;
  --green: #589363;
  --green-bright: #2f8d36;
  --red: #c73535;
  --yellow-soft: #f7f2d7;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --page: #f4f5f7;
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  overflow-wrap: break-word;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: oklch(0.141 0.005 285.823);
  background: oklch(1 0 0);
  line-height: 24px;
  border: 0 solid oklch(0.92 0.004 286.32);
}

* {
  box-sizing: border-box;
  border: 0 solid oklch(0.92 0.004 286.32);
}

body {
  margin: 0;
  min-width: 1280px;
  line-height: 24px;
  background: oklch(1 0 0);
  border: 0 solid oklch(0.92 0.004 286.32);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  grid-template-rows: 60px minmax(0, 1fr);
  background: var(--page);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  grid-column: 2;
  grid-row: 1;
  height: 60px;
  display: grid;
  grid-template-columns: minmax(420px, 500px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 24px 0 64px;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.brand {
  display: none;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 27px;
}

.brand span {
  display: block;
  color: #fff;
}

.shell-logo,
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7ed2bc, #315d91);
  color: #fff;
  font-weight: 900;
  border: 4px solid rgba(255, 255, 255, 0.35);
}

.global-search {
  position: relative;
  display: block;
  width: calc(100% - 1px);
  max-width: 500px;
  justify-self: start;
}

.global-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  padding: 0 44px 0 36px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.global-search svg {
  position: absolute;
  left: 12px;
  right: auto;
  color: #6b7280;
  width: 17px;
  height: 17px;
}

.global-search::after {
  display: none;
}

.search-results {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 8.4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  overflow: hidden;
  border: 1px solid #e4e4e7;
  z-index: 60;
}

.search-results-list {
  display: block;
  height: 40px;
  overflow: hidden;
  padding: 0;
  color: oklch(0.141 0.005 285.823);
}

.search-result-option {
  display: flex;
  align-items: center;
  width: calc(100% - 8px);
  height: 32px;
  margin: 4px;
  gap: 8px;
  text-align: left;
  padding: 6px 8px;
  background: oklch(0.967 0.001 286.375);
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 6.4px;
  color: oklch(0.21 0.006 285.885);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.search-result-option:hover,
.search-result-option.active {
  background: #f4f4f5;
}

.search-result-option .search-result-meta {
  margin-left: 8px;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  line-height: 16px;
}

.user-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  min-width: 88px;
}

.user-zone span {
  display: inline-block;
  color: #fff;
  white-space: nowrap;
}

.topbar-action {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.topbar-action svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.topbar-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid #0a0a0a;
  background: #fff;
  color: #0a0a0a;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  border: 4px solid #111;
}

.app-body {
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  display: grid;
  min-height: 100vh;
}

.app-body.with-rail {
  grid-template-columns: 256px minmax(0, 1fr);
}

.app-body.no-rail {
  grid-template-columns: 256px minmax(0, 1fr);
}

.app-body.patient-detail-mode {
  grid-template-columns: 256px minmax(0, 1fr);
}

.primary-nav,
.patient-side-nav,
.utility-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 45;
  border-right: 1px solid #e5e7eb;
}

.patient-side-nav,
.utility-rail {
  right: 0;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 0;
  width: 80px;
  top: 60px;
  height: calc(100vh - 60px);
}

.primary-nav {
  padding: 0;
  overflow: hidden;
  width: 256px;
}

.primary-nav-brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  border-bottom: 1px solid #e5e7eb;
  color: #005fe5;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.primary-nav-brand .shell-logo {
  width: 34px;
  height: 34px;
  border-width: 0;
  border-radius: 8px;
  font-size: 0;
  background: #005fe5;
}

.primary-nav-brand .shell-logo::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.primary-nav-scroll {
  overflow: auto;
  min-height: 0;
  padding: 14px 8px 12px;
  scrollbar-width: none;
}

.primary-nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-section {
  padding: 0 0 18px;
}

.nav-section-label {
  display: block;
  padding: 0 8px 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.nav-section + .nav-section {
  border-top: 1px solid transparent;
}

.primary-nav button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-weight: 500;
  text-align: left;
}

.patient-side-nav button,
.utility-rail button {
  min-height: 82px;
  border: 0;
  background: transparent;
  color: #111;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px 5px;
  font-weight: 800;
}

.patient-side-nav button {
  color: #111;
  border-left: 0;
  border-radius: 22px 0 0 22px;
  margin: 3px 0 3px 0;
}

.utility-rail button {
  color: #111;
  border-left: 0;
}

.primary-nav button.active,
.primary-nav button:hover {
  background: #dfe7f0;
  color: #075fe5;
}

.patient-side-nav button.active,
.patient-side-nav button:hover {
  background: var(--green);
  color: #fff;
}

.utility-rail button.active,
.utility-rail button:hover {
  background: transparent;
  color: #111;
}

.primary-nav span {
  display: block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: left;
}

.patient-side-nav span {
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.primary-nav-user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f6f8;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f6;
  color: #344054;
  font-weight: 800;
  font-size: 13px;
}

.primary-nav-user strong,
.primary-nav-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-nav-user strong {
  font-size: 13px;
}

.primary-nav-user span {
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}

.nav-logout {
  justify-content: center;
  padding: 0 !important;
  min-height: 28px !important;
}

.main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-top: 60px;
  background: var(--page);
  overflow: auto;
  min-height: 100vh;
}

.workspace {
  padding: 28px 24px 32px;
}

.workspace h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.05;
}

.admin-source-workspace {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
}

.admin-source-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  text-align: center;
}

.admin-source-fallback h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 650;
}

.admin-source-fallback p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.45;
}

.admin-source-workspace.admin-medecins-workspace,
.admin-source-workspace.admin-demandes-workspace,
.admin-source-workspace.admin-abonnements-statistiques-workspace,
.admin-source-workspace.admin-abonnements-workspace {
  display: block;
  min-height: auto;
}

.admin-source-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-source-header h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.admin-source-header p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.admin-medecins-status-filter {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

.admin-medecins-status-filter .secondary-button {
  min-height: 36px;
  border-radius: 8px;
  font-size: 14px;
}

.admin-medecins-status-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 104px;
  z-index: 20;
  min-width: 138px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.admin-medecins-status-filter:focus-within .admin-medecins-status-menu,
.admin-medecins-status-filter:hover .admin-medecins-status-menu,
.admin-medecins-status-menu.open {
  display: grid;
}

.admin-medecins-status-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f2937;
  font-size: 14px;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.admin-medecins-status-menu button:hover,
.admin-medecins-status-menu button.active {
  background: #eff6ff;
  color: #075ee8;
}

.admin-medecins-search {
  width: min(100%, 420px);
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  padding: 0 13px;
  outline: none;
}

.admin-medecins-search:focus {
  border-color: #93b5f8;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, 0.12);
}

.admin-medecins-workspace .dentalome-table-wrap {
  border-radius: 6px 6px 0 0;
}

.admin-medecins-workspace table {
  min-width: 1080px;
}

.admin-demandes-workspace table {
  min-width: 720px;
}

.admin-demandes-status-filter {
  display: inline-flex;
  margin-top: 0;
}

.admin-demandes-status-filter .secondary-button {
  min-width: 206px;
  justify-content: space-between;
}

.admin-demandes-status-filter .admin-medecins-status-menu {
  left: 0;
  min-width: 100%;
}

.admin-abonnements-workspace table {
  min-width: 760px;
}

.admin-medecins-workspace th,
.admin-medecins-workspace td,
.admin-demandes-workspace th,
.admin-demandes-workspace td,
.admin-abonnements-workspace th,
.admin-abonnements-workspace td {
  padding: 14px 16px;
  font-size: 14px;
}

.admin-medecin-name,
.admin-medecin-subscription {
  color: #111827;
  font-weight: 600;
}

.admin-source-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-source-badge.premium {
  background: #eafaf0;
  border-color: #b9ebcb;
  color: #15803d;
}

.admin-source-badge.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.admin-source-badge.destructive {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-source-badge.outline {
  background: #fff;
  border-color: #d0d5dd;
  color: #344054;
  font-weight: 500;
}

.admin-medecin-actions {
  gap: 6px;
}

.admin-demande-actions {
  gap: 8px;
  align-items: center;
}

.admin-demande-actions .plain-icon.success {
  color: #15803d;
}

.admin-demande-actions .plain-icon.success:hover {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
}

.admin-demande-actions .plain-icon.destructive {
  color: #b91c1c;
}

.admin-demande-actions .plain-icon.destructive:hover {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
}

.admin-abonnement-actions {
  gap: 8px;
  align-items: center;
}

.admin-abonnement-received,
.admin-abonnement-remaining {
  color: #111827;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.admin-abonnement-received,
.admin-abonnement-remaining.paid {
  color: #16a34a;
}

.admin-abonnement-remaining.due {
  color: #dc2626;
}

.admin-abonnement-detail-link {
  color: #111827;
}

.admin-abonnement-detail-link:hover {
  color: #075ee8;
  background: #eff6ff;
}

.admin-abonnements-statistiques-workspace {
  min-height: calc(100vh - 60px);
}

.admin-subscription-current-page {
  display: block;
  color: #0f172a;
}

.admin-subscription-current-header {
  margin-bottom: 24px;
}

.admin-subscription-current-header h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
}

.admin-subscription-current-header p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.admin-subscription-current-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px 0;
  margin-bottom: 24px;
}

.admin-subscription-date-range {
  position: relative;
}

.admin-subscription-date-range > button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-subscription-date-range strong {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.admin-subscription-preset-control {
  width: 142px;
}

.admin-subscription-date-menu {
  display: grid;
  gap: 6px;
  width: 242px;
  padding: 10px 12px;
}

.admin-subscription-date-menu span {
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.admin-subscription-revenue-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.admin-subscription-card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-subscription-card-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}

.admin-subscription-card-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.admin-subscription-current-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-subscription-pie-shell,
.admin-subscription-detail-panel,
.admin-subscription-empty-state {
  min-height: 400px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-subscription-pie-shell {
  position: relative;
  height: 400px;
  padding: 8px;
}

.admin-subscription-chart-canvas-host {
  height: 100%;
  width: 100%;
}

.admin-subscription-empty-chart,
.admin-subscription-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  padding: 24px;
}

.admin-subscription-detail-panel {
  padding: 16px;
}

.admin-subscription-detail-panel > p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
}

.admin-subscription-detail-panel ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-subscription-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.admin-subscription-detail-row span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #334155;
  font-size: 14px;
}

.admin-subscription-detail-row i {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.admin-subscription-detail-row strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-subscription-detail-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.8);
}

.admin-subscription-detail-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.admin-subscription-detail-panel small {
  display: block;
  margin-top: 16px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.admin-source-pagination {
  margin-top: 12px;
}

.admin-medecins-pagination {
  justify-content: space-between;
  margin-top: 0;
  border: 1px solid #e4e7ec;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  padding: 16px;
  color: #667085;
}

.admin-abonnements-pagination {
  justify-content: space-between;
  margin-top: 0;
  border: 1px solid #e4e7ec;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  padding: 16px;
  color: #667085;
}

.admin-source-workspace.admin-medecin-detail-workspace {
  display: block;
  min-height: auto;
}

.admin-source-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 18px;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

.admin-source-breadcrumb button {
  border: 0;
  background: transparent;
  color: #075ee8;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.admin-source-breadcrumb strong {
  color: #111827;
  font-weight: 650;
}

.admin-medecin-detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-medecin-profile-card,
.admin-medecin-current-section {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.admin-medecin-profile-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.admin-medecin-detail-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #eff6ff;
  color: #075ee8;
  font-size: 18px;
  font-weight: 650;
}

.admin-medecin-profile-main {
  flex: 1;
  min-width: 0;
}

.admin-medecin-profile-main h1 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 650;
  letter-spacing: 0;
}

.admin-medecin-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.admin-medecin-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-medecin-profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.admin-medecin-echance {
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}

.admin-medecin-renew-button {
  min-height: 40px;
  flex: 0 0 auto;
  gap: 8px;
  white-space: nowrap;
}

.admin-medecin-current-section {
  margin-top: 24px;
  overflow: hidden;
}

.admin-medecin-current-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7ec;
}

.admin-medecin-section-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #075ee8;
}

.admin-medecin-current-section h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.admin-medecin-current-section .dentalome-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-medecin-current-section table {
  min-width: 760px;
}

.admin-medecin-current-section th,
.admin-medecin-current-section td {
  padding: 13px 16px;
  font-size: 14px;
}

.admin-medecin-subscriptions-section th:nth-child(3),
.admin-medecin-subscriptions-section th:nth-child(4),
.admin-medecin-subscriptions-section th:nth-child(5),
.admin-medecin-subscriptions-section td:nth-child(3),
.admin-medecin-subscriptions-section td:nth-child(4),
.admin-medecin-subscriptions-section td:nth-child(5) {
  text-align: right;
}

.admin-medecin-amount {
  color: #475569;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-medecin-amount.total {
  color: #075ee8;
}

.admin-medecin-amount.received {
  color: #16a34a;
}

.admin-medecin-amount.due {
  color: #dc2626;
}

.admin-medecin-subscription-actions {
  gap: 2px;
}

.admin-medecin-block-button {
  min-height: 32px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: #fee2e2;
  color: #b91c1c;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.admin-medecin-block-button.unblock {
  border-color: #16a34a;
  background: #fff;
  color: #16a34a;
}

.admin-medecin-credit-body {
  display: grid;
  gap: 24px;
  padding: 20px;
}

.admin-medecin-credit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-medecin-credit-card,
.admin-medecin-credit-form {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.55);
  padding: 20px;
}

.admin-medecin-credit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-medecin-credit-card-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-medecin-credit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #075ee8;
  background: #eff6ff;
}

.admin-medecin-credit-icon.whatsapp {
  color: #16a34a;
  background: #eafaf0;
}

.admin-medecin-credit-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
}

.admin-medecin-credit-card small {
  color: #64748b;
  font-size: 12px;
}

.admin-medecin-credit-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.admin-medecin-credit-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7ec;
}

.admin-medecin-credit-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #075ee8;
}

.admin-medecin-credit-card.whatsapp .admin-medecin-credit-track i {
  background: #16a34a;
}

.admin-medecin-credit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.admin-medecin-credit-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.admin-medecin-credit-form label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

.admin-medecin-credit-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

@media (max-width: 700px) {
  .admin-source-header {
    display: grid;
  }

  .admin-source-header .primary-button {
    justify-self: start;
  }

  .admin-medecins-status-filter {
    align-items: flex-start;
  }

  .admin-medecins-status-menu {
    left: 0;
  }

  .admin-source-breadcrumb {
    margin-bottom: 14px;
  }

  .admin-medecin-detail-topline,
  .admin-medecin-profile-card,
  .admin-medecin-credit-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-medecin-profile-badges {
    justify-content: flex-start;
  }

  .admin-medecin-profile-main h1 {
    font-size: 22px;
  }

  .admin-medecin-credit-grid {
    grid-template-columns: 1fr;
  }

  .admin-medecin-renew-button {
    justify-content: center;
    width: 100%;
  }
}

.agenda-workspace {
  padding: 24px 24px 8px;
}

.agenda-workspace h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.agenda-title-copy {
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.025em;
}

.agenda-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 58px;
  margin-bottom: 16px;
}

.agenda-page-head > div {
  display: grid;
  gap: 2px;
}

.agenda-page-head p {
  margin: 0;
  color: #71717a;
  font-size: 16px;
  line-height: 24px;
}

.agenda-page-head select {
  width: 256px;
  height: 36px;
  border: 1px solid #e2e6ee;
  border-radius: 8.4px;
  padding: 8px 12px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.agenda-practitioner-select {
  transform: translate(-1px, 7px);
}

.workspace h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.section-title-row,
.panel-head,
.agenda-toolbar,
.finance-row,
.period-bar,
.stats-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legend-row,
.period-bar,
.stats-filter {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.08);
}

.legend-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  height: calc(100% - 356.2px);
  margin: 16px 0 0;
  overflow-y: auto;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.legend-row span {
  box-sizing: border-box;
  flex: 0 0 38px;
  width: calc(100% - 8px);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px dashed rgba(228, 228, 231, 0.6);
  border-radius: 8.4px;
  padding: 8px;
  font-weight: 400;
  color: #71717a;
  font-size: 14px;
  line-height: 20px;
  font-style: italic;
  background: rgba(244, 244, 245, 0.3);
}

.legend-row i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.7;
}

.category-heading {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin-bottom: 4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
}

.category-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.category-heading button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.appointment-category-source-modal {
  position: relative;
  display: grid;
  width: min(500px, calc(100vw - 32px));
  gap: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  padding: 24px 24px 16px;
}

.appointment-category-source-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  opacity: 0.72;
}

.appointment-category-source-close:hover {
  opacity: 1;
}

.appointment-category-source-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 28px;
  text-align: center;
}

.appointment-category-source-head h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.appointment-category-source-form {
  display: grid;
  gap: 24px;
}

.appointment-category-source-form label {
  display: grid;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.appointment-category-source-form input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.appointment-category-source-form label.invalid input[type="text"] {
  border-color: #ef4444;
}

.appointment-category-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.appointment-category-color-row input[type="color"] {
  width: 80px;
  min-width: 80px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
}

.appointment-category-color-row input[type="text"] {
  flex: 1 1 auto;
}

.appointment-category-source-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin: 0 -24px;
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px 0;
}

.appointment-category-source-footer button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.appointment-category-source-footer .primary-button {
  border-color: #025ce2;
  background: #025ce2;
  color: #fff;
}

@media (min-width: 640px) {
  .appointment-category-source-head {
    text-align: left;
  }

  .appointment-category-source-footer {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.agenda-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 0;
  height: calc(100vh - 166px);
  overflow: hidden;
  padding: 16px;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  box-shadow: none;
}

.agenda-practitioner-combobox {
  position: relative;
  width: 256px;
}

.agenda-practitioner-select {
  width: 256px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  transform: none;
}

.agenda-practitioner-select svg {
  flex: 0 0 auto;
  color: #667085;
}

.agenda-practitioner-selected-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agenda-practitioner-selected-value > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-practitioner-select .agenda-practitioner-selected-icon {
  flex: 0 0 16px;
  color: #025ce2;
  fill: #025ce2;
  stroke: #025ce2;
}

.agenda-practitioner-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 4px);
  left: 0;
  width: 256px;
  max-height: 300px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.agenda-practitioner-search {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e4e4e7;
  padding: 0 12px;
  color: #18181b;
}

.agenda-practitioner-search svg {
  flex: 0 0 16px;
  opacity: 0.5;
}

.agenda-practitioner-search input {
  width: 100%;
  height: 40px;
  min-width: 0;
  border: 0;
  border-radius: 8.4px;
  padding: 12px 0;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  line-height: 20px;
  outline: none;
}

.agenda-practitioner-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
}

.agenda-practitioner-list button {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6.4px;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.agenda-practitioner-list button:hover,
.agenda-practitioner-list button[aria-selected="true"] {
  background: #f4f4f5;
}

.agenda-practitioner-list button svg,
.agenda-practitioner-option-spacer {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.agenda-side {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.add-appointment {
  height: 32px;
  border: 0;
  border-radius: 8.4px;
  background: #025ce2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mini-calendar {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10.4px;
  background: #fff;
}

.mini-calendar-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  margin-bottom: 16px;
  text-align: center;
}

.mini-calendar-head button {
  position: absolute;
  top: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #27272a;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mini-calendar-head button:first-child {
  left: 0;
}

.mini-calendar-head button:last-child {
  right: 0;
}

.mini-calendar-dropdown {
  position: relative;
  height: 34px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mini-calendar-dropdown.month {
  width: 53.07px;
}

.mini-calendar-dropdown.year {
  width: 65.79px;
}

.mini-calendar-dropdown select,
.mini-calendar-caption {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 8.4px;
  color: #27272a;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mini-calendar-dropdown select {
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

.mini-calendar-caption {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  pointer-events: none;
}

.mini-calendar-caption svg {
  width: 14px;
  height: 14px;
  color: #71717a;
}

.mini-calendar-grid {
  width: 224px;
  min-width: 224px;
  height: 219.2px;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
  color: #667085;
  font-size: 12.8px;
  line-height: 19.2px;
}

.mini-calendar-grid thead tr,
.mini-calendar-grid th {
  height: 19.2px;
}

.mini-calendar-grid th {
  width: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: center;
}

.mini-calendar-grid tbody tr,
.mini-calendar-grid td {
  height: 40px;
}

.mini-calendar-grid td {
  width: 32px;
  padding: 8px 0 0;
  border: 0;
  font-size: 12.8px;
  line-height: 19.2px;
  text-align: center;
  vertical-align: top;
}

.mini-calendar-grid button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  padding: 0;
  color: #27272a;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

.mini-calendar-grid button.outside {
  color: #71717a;
}

.mini-calendar-grid button.today {
  background: #f4f4f5;
  color: #27272a;
}

.mini-calendar-grid button.selected {
  background: #025ce2;
  color: #f4f7ff;
}

.agenda-main-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.agenda-calendar-surface {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.agenda-calendar-surface::after {
  content: "";
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: #ddd;
  pointer-events: none;
}

.agenda-toolbar {
  position: relative;
  z-index: 20;
  flex: 0 0 40px;
  height: 40px;
  align-items: flex-end;
  margin-bottom: 8px;
  padding: 0;
  gap: 0;
}

.agenda-actions,
.agenda-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.agenda-filters {
  justify-content: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agenda-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.agenda-filters select {
  min-width: 190px;
}

.agenda-filters span {
  margin-left: auto;
  color: var(--muted);
  font-weight: 900;
}

.agenda-toolbar-toggle-group,
.agenda-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agenda-toolbar-toggle-group {
  flex: 0 0 32px;
  height: 32px;
}

.agenda-range {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  height: 24px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.agenda-range span:not([aria-hidden="true"]) {
  font-weight: 500;
}

.agenda-range-mobile,
.agenda-mobile-add,
.agenda-today-mobile,
.agenda-week-mobile {
  display: none;
}

@media (max-width: 1280px) {
  .agenda-range {
    width: 101.38px;
    flex: 0 0 101.38px;
    white-space: normal;
  }
}

.agenda-toolbar-toggle-group .calendar-toggle {
  box-sizing: border-box;
}

.agenda-toolbar-toggle-group .calendar-toggle svg {
  width: 16px;
  height: 16px;
}

.segmented {
  display: flex;
  gap: 0;
  padding: 4px;
  border-radius: 8px;
  background: #f2f4f7;
}

.segmented button,
.dark-button,
.muted-button,
.filter-button,
.calendar-toggle,
.row-action,
.primary-button {
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid #e1e6ef;
  padding: 0 13px;
  font-weight: 800;
}

.segmented button {
  min-height: 31px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
}

.dark-button,
.filter-button,
.calendar-toggle {
  background: #fff;
  color: #111827;
}

.segmented button.active,
.primary-button {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  background: var(--green);
}

.primary-button.compact {
  min-height: 40px;
  font-size: 16px;
}

.primary-button.full {
  width: 100%;
  margin-bottom: 20px;
}

.muted-button {
  background: #fff;
  color: #111827;
}

.agenda-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
}

.agenda-navigation-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
}

.agenda-filter-shell {
  position: relative;
  display: inline-flex;
}

.agenda-toolbar .filter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.agenda-toolbar .filter-button.active {
  border-color: #b8cef3;
  background: #eaf2ff;
  color: #025ce2;
}

.agenda-filter-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #025ce2;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.agenda-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  width: 224px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
}

.agenda-weekend-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 20px;
}

.agenda-weekend-switch {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 18.4px;
  min-height: 18.4px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #e5e7eb;
  transition: background-color 0.15s ease;
}

.agenda-weekend-switch i {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
  transition: transform 0.15s ease;
}

.agenda-weekend-switch[aria-checked="true"] {
  background: #025ce2;
}

.agenda-weekend-switch[aria-checked="true"] i {
  transform: translateX(14px);
}

.agenda-weekend-control label {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.agenda-presence-popover,
.agenda-cancelled-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
}

.agenda-presence-popover {
  width: min(680px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
}

.agenda-presence-popover > strong,
.agenda-cancelled-popover > strong {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.agenda-presence-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agenda-presence-column {
  height: 400px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: rgba(239, 246, 255, 0.7);
}

.agenda-presence-column.present {
  border-color: #a7f3d0;
  background: rgba(236, 253, 245, 0.7);
}

.agenda-presence-column.absent {
  border-color: #fecdd3;
  background: rgba(255, 241, 242, 0.7);
}

.agenda-presence-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
}

.agenda-presence-column header b {
  font-weight: 600;
}

.agenda-presence-column header span {
  color: #64748b;
  font-size: 12px;
}

.agenda-presence-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-presence-list article,
.agenda-cancelled-list article {
  display: grid;
  gap: 0;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #93c5fd;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: move;
  user-select: none;
}

.agenda-presence-column.present article {
  border-left-color: #6ee7b7;
}

.agenda-presence-column.absent article {
  border-left-color: #fda4af;
}

.agenda-presence-list article b,
.agenda-cancelled-list article b {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-presence-list article span,
.agenda-cancelled-list article span {
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
}

.agenda-cancelled-popover {
  width: 360px;
  display: grid;
  gap: 12px;
}

.agenda-cancelled-list {
  max-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.agenda-cancelled-list em {
  color: #64748b;
  font-size: 14px;
  font-style: italic;
  line-height: 20px;
}

.agenda-cancelled-list article {
  cursor: default;
}

.agenda-filter-group {
  display: grid;
  gap: 4px;
}

.agenda-filter-group + .agenda-filter-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}

.agenda-filter-group strong {
  margin-bottom: 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-filter-group button {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
  padding: 0 9px;
}

.agenda-filter-group button.active {
  background: #eaf2ff;
  color: #075fe5;
}

.agenda-filter-group i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.agenda-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}

.agenda-filter-footer span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.agenda-filter-footer button {
  height: 30px;
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 850;
  padding: 0 10px;
}

.agenda-arrows button {
  box-sizing: border-box;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.agenda-arrows .agenda-weekend-switch {
  width: 32px;
  min-width: 32px;
  height: 18.4px;
  min-height: 18.4px;
  padding: 0;
  border-radius: 999px;
}

.agenda-toolbar .calendar-toggle,
.agenda-toolbar .filter-button,
.agenda-toolbar .dark-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
}

.agenda-toolbar .calendar-toggle,
.agenda-toolbar .filter-button,
.agenda-toolbar .dark-button,
.agenda-toolbar .muted-button {
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.agenda-toolbar .muted-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.agenda-toolbar .segmented {
  height: 40px;
  gap: 8px;
  padding: 4px;
  border-radius: 8.4px;
  background: oklch(0.967 0.003 264.542);
  color: oklch(0.141 0.005 285.823);
}

.agenda-toolbar .segmented button {
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: oklch(0.141 0.005 285.823);
  white-space: nowrap;
  box-shadow: none;
}

.agenda-toolbar .segmented button.active {
  background: #fff;
  box-shadow: none;
}

.agenda-toolbar .agenda-today-desktop,
.agenda-toolbar .agenda-week-desktop {
  display: contents;
}

.calendar-scroll-viewport {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 -1px #ddd;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.calendar-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.week-grid {
  display: grid;
  grid-template-columns: 48px repeat(var(--agenda-day-count, 7), minmax(0, 1fr));
  grid-template-rows: 38.5px 1568px;
  width: calc(100% - 1px);
  min-width: 0;
  position: relative;
  background: #fff;
}

.week-grid[data-agenda-day-count="5"] {
  width: calc(100% - 1.25px);
}

.week-grid[data-agenda-day-count="5"] .appointment-block {
  right: calc(3.375px - var(--appointment-column-border-width, 0px));
}

.day-head,
.time-head {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 38.5px;
  display: grid;
  place-items: center;
  border-right: 1px solid #ddd;
  border-top: 0;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.day-head.today {
  position: sticky;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.day-head.today::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #025ce2;
  pointer-events: none;
}

.agenda-day-head-label {
  box-sizing: border-box;
  position: relative;
  top: 0;
  left: -0.5px;
  width: 100%;
  height: 36px;
  display: inline-block;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}

.agenda-day-head-wrap {
  width: 100%;
  height: 38px;
  text-align: center;
}

.day-head.today .agenda-day-head-label {
  height: 38px;
}

.agenda-day-head-content {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.agenda-day-head-content > span {
  position: static;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

.agenda-day-head-content > span:first-child {
  text-transform: uppercase;
}

.time-label {
  position: absolute;
  left: 0;
  width: 48px;
  height: 98px;
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
  padding: 0 0 0 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 48px;
  color: #09090b;
}

.time-label::after {
  content: "";
  position: absolute;
  left: -4px;
  right: 0;
  top: 48px;
  height: 0;
  border-top: 1px dotted #ddd;
  pointer-events: none;
}

.week-grid .time-label {
  border-top: 0;
}

.week-grid .time-label::after {
  display: none;
}

.agenda-week-slot-lines {
  position: absolute;
  z-index: 1;
  top: 38.5px;
  left: 0;
  right: 0;
  height: 1568px;
  pointer-events: none;
}

.agenda-week-slot-lines > span {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #ddd;
}

.agenda-week-slot-lines > span.minor {
  height: 1px;
  border-top: 0;
}

.agenda-week-slot-lines > span.minor::before,
.agenda-week-slot-lines > span.minor::after {
  content: "";
  position: absolute;
  top: 0;
  height: 1px;
}

.agenda-week-slot-lines > span.minor::before {
  left: 0;
  width: 49px;
  background: repeating-linear-gradient(90deg, transparent 0 1px, #ddd 1px 2px);
}

.agenda-week-slot-lines > span.minor::after {
  left: 50px;
  right: 0;
  background: repeating-linear-gradient(90deg, #ddd 0 1px, transparent 1px 2px);
}

.week-grid .day-column {
  z-index: auto;
  background: transparent;
}

@media (min-width: 1280px) {
  .day-head[data-agenda-day-index="0"] .agenda-day-head-label,
  .day-head[data-agenda-day-index="2"] .agenda-day-head-label,
  .day-head[data-agenda-day-index="4"] .agenda-day-head-label {
    width: calc(100% - 1px);
  }

  .day-head[data-agenda-day-index="6"] .agenda-day-head-label {
    width: calc(100% + 0.75px);
  }

  .day-head[data-agenda-day-index="0"],
  .day-head[data-agenda-day-index="2"],
  .day-head[data-agenda-day-index="4"],
  .day-column[data-agenda-day-index="0"],
  .day-column[data-agenda-day-index="2"],
  .day-column[data-agenda-day-index="4"] {
    --appointment-column-border-width: 0px;
    border-right: 0;
    box-shadow: none;
  }

  .day-head[data-agenda-day-index="0"]::before,
  .day-head[data-agenda-day-index="2"]::before,
  .day-head[data-agenda-day-index="4"]::before,
  .day-column[data-agenda-day-index="0"]::before,
  .day-column[data-agenda-day-index="2"]::before,
  .day-column[data-agenda-day-index="4"]::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 1px;
    bottom: 0;
    width: 1px;
    background: #ddd;
    pointer-events: none;
  }
}

.day-column {
  --appointment-column-border-width: 1px;
  grid-row: 2;
  position: relative;
  min-width: 0;
  border-right: 1px solid #ddd;
  background: #fff;
}

.day-column.today {
  background-color: #fff;
}

.agenda-now-line {
  position: absolute;
  z-index: 5;
  left: 0.5px;
  right: 0.5px;
  height: 0;
  border-top: 2px solid #fd2f2f;
  pointer-events: none;
}

.agenda-slot-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.agenda-slot-lines > span {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #ddd;
  transform: none;
}

.agenda-slot-lines > span.minor {
  border-top-style: dotted;
}

.agenda-loading {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(21, 37, 54, 0.08);
  font-weight: 800;
}

.appointment-block {
  position: absolute;
  z-index: 2;
  left: 2.5px;
  right: calc(3.25px - var(--appointment-column-border-width, 0px));
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 13.6px;
  font-weight: 400;
  line-height: 20.4px;
  box-shadow: 0 0 0 1px #fff;
  text-align: left;
  cursor: pointer;
}

.appointment-block.dragging {
  z-index: 8;
  cursor: grabbing;
  opacity: 0.88;
  box-shadow: 0 0 0 1px #fff, 0 7px 18px rgba(15, 23, 42, 0.16);
}

.appointment-block.status-reported .appointment-block-content {
  width: calc(100% - 2px);
  height: calc(100% - 1px);
  opacity: 0.8;
  filter: grayscale(60%);
  color: #fff;
  line-height: 16px;
  background-color: var(--appointment-soft, #edf2ff);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.85) 0,
    rgba(255, 255, 255, 0.85) 4px,
    transparent 4px,
    transparent 9px
  );
}

.appointment-block.status-reported .appointment-block-title {
  text-decoration: line-through;
}

.appointment-block:hover,
.appointment-block:focus-within {
  z-index: 7;
}

.appointment-block-content {
  position: relative;
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 1px);
  display: block;
  overflow: hidden;
  border-radius: 8.4px;
  padding: 8px;
  background: var(--appointment-soft, #edf2ff);
  color: #fff;
  line-height: 16px;
}

.appointment-color-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8.4px 0 0 8.4px;
  background: var(--appointment-color, #4f65bc);
}

.appointment-block-copy {
  width: 100%;
  min-width: 0;
  display: block;
  overflow: hidden;
}

.appointment-block:not(.compact) .appointment-block-copy {
  overflow: visible;
}

.appointment-block-copy .appointment-block-title,
.appointment-block-copy .appointment-block-category,
.appointment-block-copy .appointment-block-time {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-block-copy .appointment-block-title {
  font-size: 14px;
  line-height: 20px;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.appointment-block-copy .appointment-block-category {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.appointment-block-copy .appointment-block-time {
  margin: 2px 0 1px;
  color: #6b7280;
  font-size: 11.56px;
  font-weight: 400;
  line-height: 17.34px;
}

.appointment-block-practitioner {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.appointment-block .appointment-block-practitioner > svg {
  flex: 0 1 12px;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  align-self: flex-start;
}

.appointment-block-practitioner > span {
  flex: 0 1 auto;
  width: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.appointment-block.compact .appointment-block-content {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
}

.appointment-block.compact .appointment-block-copy .appointment-block-title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.appointment-block.compact .appointment-block-copy .appointment-block-time {
  margin: 0;
  width: max-content;
  min-width: max-content;
  max-width: none;
  font-size: 10.2px;
  line-height: 13.6px;
}

.appointment-block svg {
  align-self: center;
}

.appointment-tools {
  position: absolute;
  right: 4.75px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.15s ease;
}

.appointment-block:hover .appointment-tools,
.appointment-block:focus-within .appointment-tools {
  opacity: 1;
}

.appointment-block.suppress-tools-after-resize .appointment-tools {
  opacity: 0;
}

.appointment-tools button {
  min-width: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  white-space: normal;
  padding: 0;
  border: 1px solid var(--appointment-color, #025ce2);
  border-radius: 8.4px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.appointment-tools button:hover,
.appointment-tools button:focus-visible {
  color: #000;
  outline: none;
}

.day-agenda {
  position: relative;
  background: #fff;
  min-width: 0;
}

.day-time-head {
  position: sticky;
  top: 0;
  z-index: 7;
  width: 48px;
  height: 38.5px;
  margin-bottom: -38.5px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.day-head.wide {
  margin-left: 48px;
  margin-right: 1.5px;
  border-right: 0;
  position: sticky;
  top: 0;
  z-index: 6;
}

.day-grid-column {
  position: relative;
  height: 1568px;
  margin-left: 48px;
  margin-right: 1px;
  border-left: 1px solid #ddd;
  background: #fff;
}

.day-grid-column .appointment-block {
  left: 1.5px;
  right: 19.5px;
}

.day-time-slot {
  position: relative;
  left: -48px;
  width: 48px;
  height: 98px;
  padding: 0;
  text-align: center;
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 14px;
  font-weight: 500;
  line-height: 48px;
}

.month-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns:
    minmax(0, 119fr)
    minmax(0, 118.25fr)
    minmax(0, 118.5fr)
    minmax(0, 118.5fr)
    minmax(0, 118.25fr)
    minmax(0, 118.5fr)
    minmax(0, 119fr);
  grid-template-rows: 36.5px repeat(6, minmax(78px, max-content));
  height: auto;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 0;
  background: #fff;
  scrollbar-width: none;
}

.month-grid::-webkit-scrollbar {
  display: none;
}

.month-grid.weekdays-only {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.month-grid > strong {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  padding: 0;
  text-align: center;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.month-grid > strong > a {
  display: inline-block;
  width: 100%;
  height: 36px;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.month-grid > strong > a span {
  position: relative;
  top: 6px;
  font-size: 14px;
  line-height: 20px;
}

.month-grid > strong > a span:first-child {
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.month-grid:not(.weekdays-only) > strong:nth-child(2) > a,
.month-grid:not(.weekdays-only) > strong:nth-child(5) > a {
  width: calc(100% + 0.25px);
}

.month-cell {
  position: relative;
  min-height: 0;
  padding: 0 0 0;
  transform: translateY(0.5px);
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.month-cell.outside {
  background: #fff;
  color: #27272a;
}

.month-cell > b {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.month-cell > b > a {
  width: 44px;
  height: 44px;
  display: block;
  padding: 4px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.month-cell > b > a > span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: 999px;
  transform: translate(-4px, 4px);
}

.month-cell.today > b > a > span {
  background: #025ce2;
  color: #f4f7ff;
}

.month-cell.outside > b {
  opacity: 0.3;
}

.month-chip {
  position: relative;
  display: flex;
  width: calc(100% - 4px);
  height: 36px;
  min-height: 36px;
  margin: 2px 3px 0 2px;
  padding: 0;
  border: 0 none oklch(0.141 0.005 285.823);
  border-radius: 8px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  text-align: left;
  font-size: 13.6px;
  font-weight: 400;
  line-height: 20.4px;
  overflow: hidden;
  white-space: nowrap;
}

.month-chip + .month-chip {
  margin-top: 3px;
}

.month-grid:not(.weekdays-only) > .month-cell:nth-child(7n + 2) .month-chip,
.month-grid:not(.weekdays-only) > .month-cell:nth-child(7n + 5) .month-chip {
  width: calc(100% - 3.75px);
}

.month-chip-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  padding: 8px 40px 8px 8px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: var(--month-chip-soft, #edf2ff);
}

.month-chip-color-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--month-chip-color, #4f65bc);
}

.month-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-0.5px);
}

.month-chip-time {
  flex: 0 1 auto;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.month-chip-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-transform: capitalize;
}

.month-chip.postponed .month-chip-content {
  opacity: 0.8;
  filter: grayscale(60%);
  background-color: var(--month-chip-soft, #edf2ff);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.85) 0,
    rgba(255, 255, 255, 0.85) 4px,
    transparent 4px,
    transparent 9px
  );
}

.month-chip.postponed .month-chip-title {
  text-decoration: line-through;
}

.month-chip-tools {
  position: absolute;
  top: 8px;
  right: 4.25px;
  display: flex;
  gap: 2px;
  opacity: 0;
}

.month-chip:hover .month-chip-tools,
.month-chip:focus-within .month-chip-tools {
  opacity: 1;
}

.month-chip-tools button {
  width: 24px;
  height: 24px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--month-chip-color, #025ce2);
  border-radius: 8.4px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.month-cell-add {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  margin: 3px 2px 0 auto;
  padding: 2px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 3px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 13.6px;
  font-weight: 400;
  line-height: 13.6px;
  text-align: left;
}

.month-cell-add > button {
  width: 24px;
  height: 24px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 6.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.month-cell-add > button > svg {
  transform: translateY(-0.5px);
}

.month-cell-add:hover,
.month-cell-add:focus-visible {
  border-color: #aeb7c5;
  outline: none;
}

.patient-header {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 18px 16px;
  border-radius: 8px;
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.patient-title h1 {
  font-size: 29px;
  margin: 0;
}

.plain-icon,
.icon-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: inherit;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-warning {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #855f12;
  font-weight: 800;
}

.financial-strip {
  display: flex;
  gap: 50px;
  align-items: center;
}

.metric {
  display: grid;
  grid-template-columns: auto;
  gap: 2px;
  font-size: 27px;
  font-weight: 800;
}

.metric span {
  color: var(--ink);
}

.metric strong,
.metric b {
  font-size: 31px;
}

.metric.green strong,
.metric.green b,
.green-text {
  color: var(--green-bright);
}

.metric.red strong,
.metric.red b,
.red-text {
  color: var(--red);
}

.tab-strip {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
}

.tab-strip button {
  border: 0;
  border-bottom: 4px solid transparent;
  background: #fff;
  padding: 14px 24px;
  font-size: 22px;
  font-weight: 900;
  color: #5c626b;
}

.tab-strip button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.patient-grid {
  display: grid;
  grid-template-columns: minmax(680px, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.odontogram-panel,
.side-panel,
.simple-section,
.chart-panel,
.chart-large,
.settings-band {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.08);
}

.odontogram-panel,
.side-panel,
.simple-section,
.chart-panel,
.chart-large,
.settings-band {
  padding: 22px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--muted);
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  width: 64px;
  height: 32px;
  background: #cfcfcf;
  border-radius: 20px;
  display: inline-block;
  position: relative;
  transition: background 0.16s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease;
}

.switch input:checked + span {
  background: #70a971;
}

.switch input:checked + span::after {
  transform: translateX(32px);
}

.switch input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.odontogram {
  margin: 28px auto 12px;
  max-width: 1120px;
  padding: 20px 30px;
}

.tooth-row {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 10px;
  align-items: end;
}

.odontogram.child .tooth-row {
  grid-template-columns: repeat(10, 1fr);
  max-width: 780px;
  margin-inline: auto;
}

.tooth-row.lower {
  align-items: start;
}

.tooth {
  min-height: 152px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-rows: 108px 30px;
  place-items: center;
  padding: 0;
  color: var(--ink);
}

.tooth-shape {
  width: 52px;
  height: 102px;
  display: grid;
  place-items: center;
  border-radius: 44% 44% 38% 38%;
  background: linear-gradient(#fff7df 0 48%, #fcfcfc 49% 100%);
  border: 2px solid #c8d2d7;
  box-shadow: inset 0 -7px 12px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tooth.molar .tooth-shape {
  width: 66px;
  border-radius: 30% 30% 38% 38%;
}

.tooth.premolar .tooth-shape {
  width: 56px;
  border-radius: 42% 42% 40% 40%;
}

.tooth.canine .tooth-shape {
  width: 48px;
  border-radius: 52% 52% 42% 42%;
}

.tooth.incisor .tooth-shape {
  width: 42px;
  border-radius: 46% 46% 34% 34%;
}

.lower .tooth-shape {
  background: linear-gradient(#fcfcfc 0 48%, #fff0c9 49% 100%);
  border-radius: 38% 38% 44% 44%;
}

.tooth-shape i {
  width: 28px;
  height: 38px;
  border: 2px solid #d6e8e4;
  border-radius: 48%;
  display: block;
  background: rgba(255, 255, 255, 0.65);
}

.tooth.molar .tooth-shape i {
  width: 42px;
  height: 32px;
  border-radius: 36%;
  background:
    linear-gradient(90deg, transparent 47%, #d6e8e4 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #d6e8e4 48% 52%, transparent 53%),
    rgba(255, 255, 255, 0.72);
}

.tooth.premolar .tooth-shape i {
  width: 34px;
  height: 34px;
  border-radius: 44%;
  background:
    linear-gradient(120deg, transparent 46%, #d6e8e4 47% 53%, transparent 54%),
    rgba(255, 255, 255, 0.72);
}

.tooth.canine .tooth-shape i {
  width: 26px;
  height: 42px;
  border-radius: 50% 50% 42% 42%;
}

.tooth.incisor .tooth-shape i {
  width: 22px;
  height: 50px;
  border-radius: 42%;
}

.tooth strong {
  font-size: 22px;
}

.tooth.treated .tooth-shape i {
  background: #69d389;
  border-color: #69d389;
}

.tooth.selected .tooth-shape {
  outline: 7px solid #cfe1ff;
  border-color: var(--accent);
}

.tooth.selected strong {
  color: var(--accent);
}

.mouth-labels {
  margin: 8px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.mouth-labels span:last-child {
  text-align: right;
}

.mouth-gap {
  height: 18px;
  border-bottom: 1px solid #dfe6ed;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 19px;
}

th {
  font-weight: 900;
  font-size: 20px;
  background: #fff;
}

.empty-cell {
  color: #444;
}

.link-button {
  border: 0;
  background: transparent;
  color: #4146d6;
  font-weight: 800;
  padding: 0;
}

.row-action {
  background: #fff;
  color: #2d3b4d;
  border: 1px solid var(--line);
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}

.documents-workspace {
  padding: 26px 24px 44px;
  background: #fff;
}

.documents-workspace .section-title-row {
  align-items: flex-start;
  margin-bottom: 28px;
}

.documents-workspace h1 {
  font-size: 34px;
  font-weight: 900;
}

.document-period-bar {
  justify-content: flex-start;
  gap: 12px;
}

.document-period-bar span {
  margin-left: auto;
  color: #6f7681;
  font-size: 20px;
}

.document-type-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.document-type-tabs button {
  border: 0;
  border-bottom: 4px solid transparent;
  background: #fff;
  padding: 13px 12px;
  color: #59616d;
  font-weight: 900;
  font-size: 17px;
}

.document-type-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.document-form-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.nested-modal-content {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.nested-modal-content label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: var(--muted);
}

.image-upload {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.image-upload input:not([type="file"]) {
  width: min(420px, 100%);
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font-weight: 800;
}

.image-upload input[type="file"] {
  display: none;
}

.image-section {
  min-height: 500px;
  padding: 22px 14px 28px;
}

.image-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 42px;
}

.dentalome-green-action {
  border: 0;
  border-radius: 9px;
  background: #589363;
  color: #fff;
  font-weight: 850;
  box-shadow: none;
}

.image-add-button {
  display: inline-flex;
  min-height: 43px;
  min-width: 342px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 7px 14px 8px 18px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.image-add-button.disabled {
  cursor: wait;
  opacity: 0.7;
}

.image-add-button input[type="file"] {
  display: none;
}

.image-add-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-tabs {
  display: flex;
  min-height: 62px;
  align-items: flex-end;
  border-bottom: 1px solid #dfe4ec;
  margin-bottom: 36px;
}

.image-tabs button {
  min-width: 215px;
  height: 62px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #3b82f6;
  font-size: 22px;
  font-weight: 850;
}

.image-tabs button.active {
  border-bottom-color: #3b82f6;
  background: #fff;
}

.image-table-shell {
  width: 100%;
  overflow: hidden;
  border: 1px solid #d9dee6;
  background: #fff;
}

.image-table {
  width: 100%;
  border-collapse: collapse;
}

.image-table th,
.image-table td {
  height: 57px;
  padding: 9px 12px;
  border-bottom: 1px solid #d9dee6;
  color: #20242b;
  font-size: 21px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

.image-table th {
  font-weight: 850;
}

.image-table th:nth-child(1),
.image-table td:nth-child(1) {
  width: 170px;
}

.image-table th:nth-child(3),
.image-table td:nth-child(3) {
  width: 180px;
}

.image-preview-link,
.image-preview-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #2f50d8;
  font-weight: 800;
  text-decoration: none;
}

.image-preview-link img {
  width: 70px;
  height: 52px;
  border: 1px solid #d9dee6;
  border-radius: 4px;
  object-fit: cover;
}

.image-preview-link span {
  overflow: hidden;
  max-width: 620px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-table-cell {
  height: 44px !important;
  padding: 5px 12px !important;
  color: #444 !important;
  font-weight: 500 !important;
}

.primary-button.disabled {
  opacity: 0.65;
  cursor: wait;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.image-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.image-card img,
.image-placeholder {
  width: 100%;
  height: 170px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: #eef4fa;
  color: var(--muted);
}

.image-card > div:not(.image-placeholder) {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.image-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.image-card .row-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
}

.empty-panel {
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #444;
  background: #fff;
}

.catalog-color-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.catalog-color-cell i {
  width: 22px;
  height: 22px;
  display: inline-block;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-link {
  display: block;
  width: fit-content;
  border: 0;
  padding: 2px 0 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.compact-form {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.toggle-line input {
  width: 18px;
  height: 18px;
}

.plain-icon.small {
  width: 32px;
  height: 32px;
}

.plain-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.status-pill,
.green-pill,
.green-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 34px;
  border-radius: 18px;
  padding: 0 13px;
  background: #72a4f6;
  color: #fff;
  font-weight: 800;
}

.green-pill,
.green-badge {
  background: #62a36d;
}

.teeth-pills {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}

.teeth-pills b {
  min-width: 42px;
  text-align: center;
  padding: 8px 10px;
  background: #dcebe0;
  border-radius: 6px;
}

.period-bar,
.stats-filter {
  min-height: 60px;
  margin-bottom: 24px;
  padding: 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.period-bar input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.stats-filter button {
  min-height: 48px;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #4f5358;
  font-weight: 900;
}

.chart-large {
  margin-bottom: 24px;
}

.chart-large strong {
  display: block;
  text-align: center;
  font-size: 24px;
  margin: 10px 0;
}

.chart-grid,
.kpi-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.metric-card {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: inline-block;
  margin-top: 8px;
  font-size: 30px;
}

.metric-card b {
  margin-left: 6px;
}

.metric-card.danger strong,
.metric-card.danger b {
  color: var(--red);
}

.finance-row {
  align-items: flex-start;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  font-size: 20px;
}

.settings-band {
  display: flex;
  gap: 16px;
}

.settings-band.wide-band {
  grid-column: 1 / -1;
}

.settings-band p {
  margin: 0 0 12px;
  color: var(--muted);
}

.parity-score-band {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.score-ring {
  --score: 0%;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(var(--red) var(--score), #e7edf5 0);
  color: var(--red);
}

.score-ring.complete {
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(var(--green) var(--score), #e7edf5 0);
  color: var(--green);
}

.score-ring strong {
  font-size: 32px;
  line-height: 1;
}

.score-ring span {
  margin-top: -34px;
  color: var(--muted);
  font-weight: 900;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fidelity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.fidelity-strip span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.fidelity-strip strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.admin-access-panel {
  align-items: flex-start;
  border-color: #f4b4b4;
  background: #fffafa;
}

.admin-access-panel > svg {
  color: var(--red);
  flex: 0 0 auto;
}

.admin-access-content {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.admin-access-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-access-heading h2 {
  margin-bottom: 4px;
}

.admin-access-stats,
.admin-access-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-access-stats span,
.admin-access-artifacts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #f2cccc;
  border-radius: 999px;
  padding: 3px 10px;
  background: #fff;
  color: #7a2530;
  font-size: 13px;
  font-weight: 900;
}

.admin-access-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.admin-access-routes span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #f2cccc;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.admin-access-routes strong,
.admin-access-routes code,
.admin-access-command code,
.admin-access-artifacts code {
  overflow-wrap: anywhere;
}

.admin-access-routes code,
.admin-access-command code,
.admin-access-artifacts code {
  color: #414956;
  font-size: 12px;
}

.admin-access-routes em {
  color: var(--red);
  font-style: normal;
  font-weight: 900;
}

.admin-access-command {
  display: grid;
  gap: 5px;
  border: 1px dashed #e6a3a3;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: #7a2530;
  font-weight: 900;
}

.admin-access-next {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.parity-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 30px;
  border-radius: 999px;
  padding: 3px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: #8a93a3;
}

.parity-status.verified {
  background: var(--green);
}

.parity-status.implemented {
  background: var(--accent);
}

.parity-status.blocked {
  background: var(--red);
}

.parity-status.warning {
  background: #f59e0b;
}

.parity-status.not-started {
  background: #7b8492;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  border-radius: 999px;
  padding: 3px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--red);
}

.score-pill.partial {
  background: #e0a300;
}

.score-pill.complete {
  background: var(--green);
}

.search-line {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.notes-workspace {
  min-height: calc(100vh - 68px);
  padding: 26px 24px 96px;
  background: #fff;
}

.notes-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: 96px;
}

.notes-title-row h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}

.notes-category-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.notes-category-search {
  width: 320px;
  border-bottom: 2px solid #d6d6d6;
}

.notes-category-search input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #69707b;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.notes-category-search input::placeholder {
  color: #7d828b;
  opacity: 1;
}

.blue-pill-button {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 23px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #347cf6;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.notes-filter-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.notes-filter-tabs button {
  align-self: stretch;
  border: 0;
  border-bottom: 4px solid transparent;
  background: #fff;
  color: #5a606b;
  font-size: 18px;
  font-weight: 900;
}

.notes-filter-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.notes-empty-state {
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
  color: #343a43;
  font-size: 20px;
}

.table-search {
  width: 100%;
  height: 48px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 48px));
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  padding: 22px;
}

.modal.appointment-category-source-modal {
  width: min(500px, calc(100vw - 32px));
  padding: 24px 24px 16px;
}

.appointment-form-modal {
  width: min(700px, calc(100vw - 48px));
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.appointment-form-modal .modal-head {
  height: 28px;
  min-height: 28px;
  margin: 0;
}

.appointment-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.appointment-form-modal .modal-head .icon-button,
.appointment-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  display: block;
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
  box-shadow: none;
}

.appointment-note-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.appointment-note-modal .modal-head h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
}

.modal-head button {
  font-size: 30px;
}

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

.modal-subtitle {
  margin: -4px 0 20px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.appointment-form-modal > .modal-subtitle {
  height: 20px;
  margin: 8px 0 16px;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.appointment-form-patient-link {
  color: #025ce2;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.appointment-note-text {
  min-height: 20px;
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
  white-space: pre-wrap;
}

.appointment-note-modal .modal-head .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  opacity: .7;
  box-shadow: none;
}

.appointment-note-modal .modal-head .modal-close-button:hover {
  opacity: 1;
}

.appointment-note-modal .modal-head .modal-close-button:focus-visible {
  opacity: .7;
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #025ce2;
}

.appointment-note-modal .modal-head .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.appointment-form-grid {
  gap: 24px;
}

.appointment-form-grid.creating {
  height: auto;
  grid-template-columns: 313px 313px;
  column-gap: 24px;
  row-gap: 24px;
}

.appointment-form-grid.creating > .appointment-form-field,
.appointment-form-grid.editing > .appointment-form-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 20px 36px;
  align-content: start;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] {
  position: relative;
  display: block;
  height: 94px;
  color: oklch(0.577 0.245 27.325);
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .field-label,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .appointment-source-combobox,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .patient-source-dropdown,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .appointment-field-error,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .patient-field-error {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .field-label { top: 0; }
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .appointment-source-combobox,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .patient-source-dropdown { top: 32px; }
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .appointment-field-error,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .patient-field-error { top: 74px; }

.appointment-form-grid.creating > .appointment-form-field.wide,
.appointment-form-grid.editing > .appointment-form-field.wide {
  grid-template-rows: 20px 100px;
}

.appointment-form-grid.editing {
  height: 469px;
  grid-template-columns: 313px 313px;
  grid-template-rows: 68px 24px 68px 24px 68px 24px 132px 8px 53px;
  column-gap: 24px;
  row-gap: 0;
}

.appointment-form-grid.editing > .appointment-form-patient-field { grid-column: 1; grid-row: 1; }
.appointment-form-grid.editing > .appointment-form-practitioner-field { grid-column: 2; grid-row: 1; }
.appointment-form-grid.editing > .appointment-form-start-field { grid-column: 1; grid-row: 3; }
.appointment-form-grid.editing > .appointment-form-end-field { grid-column: 2; grid-row: 3; }
.appointment-form-grid.editing > .appointment-form-category-field { grid-column: 1; grid-row: 5; }
.appointment-form-grid.editing > .appointment-form-status-field { grid-column: 2; grid-row: 5; }
.appointment-form-grid.editing > .appointment-form-note-field { grid-column: 1 / -1; grid-row: 7; }

.form-grid label {
  min-width: 0;
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #3f4651;
}

.required-mark {
  color: #e03131;
  font-weight: 900;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-shell {
  position: relative;
  display: block;
}

.field-shell input {
  width: 100%;
}

.field-placeholder-overlay {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a919d;
  pointer-events: none;
  font-weight: 800;
}

.dentalome-operation-form {
  gap: 18px 20px;
}

.dentalome-operation-form label {
  color: #242932;
}

.form-grid .wide,
.modal-actions {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.login-panel input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.appointment-form-grid input,
.appointment-form-grid select,
.appointment-form-grid textarea {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 12px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-form-grid .combobox-trigger {
  height: 36px;
  min-height: 36px;
  gap: 8px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  text-align: center;
}

.appointment-form-grid .appointment-form-patient-field .combobox-trigger {
  width: 313px;
}

.appointment-form-grid .combobox-trigger.placeholder {
  color: oklch(0.141 0.005 285.823);
}

.appointment-form-grid .patient-source-dropdown .combobox-trigger.placeholder .patient-source-dropdown-value {
  color: oklch(0.552 0.016 285.938);
}

.appointment-form-grid .appointment-combobox-field:first-child .combobox-trigger:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-form-grid input[inputmode="numeric"] {
  font-weight: 400;
  letter-spacing: 0;
}

.appointment-time-field {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 36px;
  overflow: hidden;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-time-field:focus-within {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-form-grid .appointment-time-field input[inputmode="numeric"] {
  width: 22px;
  min-width: 22px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.appointment-field-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.appointment-form-grid .patient-field-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] .combobox-trigger {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.577 0.245 27.325);
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] .combobox-trigger svg {
  color: currentColor;
  opacity: .5;
}

.appointment-category-select {
  position: relative;
  display: block;
}

.appointment-category-select i {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.appointment-category-select i + select {
  padding-left: 34px;
}

.appointment-form-status-field select {
  font-weight: 500;
}

.appointment-form-grid textarea {
  display: flex;
  height: 100px;
  min-height: 100px;
  background: transparent;
  font-weight: 400;
  resize: none;
}

.appointment-form-grid textarea:focus {
  border-color: #025ce2;
  outline: none;
}

.appointment-form-note-field > label {
  display: block;
  gap: 0;
  color: inherit;
  font: inherit;
}

.form-grid textarea {
  min-height: 88px;
}

.ordonnance-medication-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #d9e7ff;
  border-radius: 7px;
  background: #f8fbff;
  color: #3f4651;
  font-size: 13px;
  line-height: 1.45;
}

.ordonnance-medication-summary strong {
  color: #111827;
  font-size: 14px;
}

.ordonnance-medication-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.appointment-form-grid .modal-actions {
  grid-column: 1 / -1;
  grid-row: 9;
  width: calc(100% + 48px);
  height: 53px;
  margin: 0 -24px;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.appointment-form-grid.creating .modal-actions {
  grid-row: auto;
  margin: -16px -24px 0;
}

.appointment-form-actions {
  align-items: normal;
  gap: 16px;
}

.appointment-form-submit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appointment-form-submit-actions > button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.appointment-form-submit-actions > button.primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
}

.appointment-form-submit-actions > button:not(.primary-button) {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.modal-actions.appointment-form-actions .appointment-form-submit-actions > button:not(.primary-button) {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action img {
  display: block;
  width: 16px;
  height: 16px;
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.danger {
  border-color: oklch(0.577 0.245 27.325);
  color: oklch(0.577 0.245 27.325);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.print {
  border-color: oklch(0.704 0.04 256.788);
  color: oklch(0.446 0.043 257.281);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp {
  border-color: oklch(0.696 0.17 162.48);
  color: oklch(0.696 0.17 162.48);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp img {
  display: none;
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp::before {
  width: 16px;
  height: 16px;
  content: "";
  background: currentColor;
  -webkit-mask: url("/dentalome-assets/whatsapp.svg") center / contain no-repeat;
  mask: url("/dentalome-assets/whatsapp.svg") center / contain no-repeat;
}

.appointment-form-icon-action:disabled,
.appointment-form-submit-actions > button:disabled {
  cursor: wait;
  opacity: .62;
}

.appointment-form-submit-error {
  grid-column: 1 / -1;
  grid-row: 8;
  align-self: end;
  color: oklch(0.577 0.245 27.325);
  font-size: 12px;
  line-height: 16px;
}

.appointment-combobox-field {
  position: relative;
  z-index: 6;
}

.appointment-combobox-field:focus-within {
  z-index: 8;
}

.appointment-source-combobox {
  position: relative;
}

.appointment-source-combobox.open .combobox-trigger svg {
  transform: rotate(180deg);
}

.act-catalog-menu.appointment-source-combobox-menu {
  z-index: 90;
  top: calc(100% + 4px);
  right: auto;
  display: flex;
  width: min(350.3359375px, calc(100vw - 64px));
  height: 387px;
  max-height: none;
  flex-direction: column;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

.act-catalog-menu.appointment-source-combobox-menu .combobox-search-row {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  gap: 8px;
  padding: 0 12px;
  color: oklch(0.552 0.016 285.938);
}

.appointment-form-grid .appointment-source-combobox-menu .combobox-search-row input {
  height: 40px;
  min-height: 40px;
  padding: 12px 0;
  font-weight: 400;
}

.act-catalog-menu.appointment-source-combobox-menu .combobox-search-row svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.appointment-source-combobox-options {
  box-sizing: border-box;
  height: 300px;
  max-height: 300px;
  flex: 0 0 300px;
  overflow-y: auto;
  padding: 4px;
}

.act-catalog-menu.appointment-source-combobox-menu .combobox-option-row {
  width: 100%;
  height: 32px;
  min-height: 32px;
  gap: 0;
  padding: 6px 8px;
  font-weight: 400;
}

.act-catalog-menu.appointment-source-combobox-menu .combobox-option-row svg {
  display: none;
}

.appointment-source-combobox-footer {
  box-sizing: border-box;
  width: calc(100% - 16px);
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  justify-content: center;
  gap: 8px;
  margin: 9px 8px 8px;
  border: 1px solid rgba(60, 121, 212, .2);
  border-radius: 8.4px;
  background: rgba(60, 121, 212, .1);
  color: #025ce2;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.appointment-source-combobox-footer:hover {
  background: #f8fbff;
}

.act-catalog-menu.appointment-source-combobox-menu.practitioner {
  width: 100%;
  height: auto;
  max-height: 346px;
}

.appointment-source-combobox-menu.practitioner .appointment-source-combobox-options {
  height: auto;
  max-height: 300px;
  flex: 0 1 auto;
}

.patient-source-dropdown-field {
  position: relative;
  z-index: 4;
}

.patient-source-dropdown-field:focus-within {
  z-index: 7;
}

.patient-source-dropdown {
  position: relative;
  display: block;
  width: 100%;
}

.patient-source-dropdown.open .combobox-trigger svg {
  transform: rotate(180deg);
}

.patient-source-dropdown-menu {
  z-index: 95;
  display: block;
  max-height: none;
  padding: 4px;
}

.patient-source-dropdown-option {
  display: flex;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.patient-source-dropdown-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.patient-source-dropdown-color {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.patient-source-dropdown-option:hover,
.patient-source-dropdown-option:focus-visible {
  background: #f4f4f5;
  outline: none;
}

.patient-source-dropdown-menu.payment-radio-menu {
  top: calc(100% + 4px);
  right: auto;
  box-sizing: border-box;
  width: 175.4140625px;
  height: 138px;
  padding: 4px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  outline: none;
}

.payment-radio-menu .patient-source-dropdown-option {
  height: 32px;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  font-weight: 400;
  line-height: 20px;
}

.payment-radio-indicator {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
}

.payment-radio-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.141 0.005 285.823);
}

.appointment-category-dropdown-field .patient-source-dropdown-menu {
  top: auto;
  bottom: calc(100% + 4px);
  width: 100%;
  max-height: min(362px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 4px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

.appointment-category-dropdown-field .patient-source-dropdown-option {
  height: 32px;
  min-height: 32px;
  padding: 6px 8px;
  font-weight: 400;
}

.dentalome-patient-form label[data-invalid="true"] {
  color: #dc2626;
}

.dentalome-patient-form label[data-invalid="true"] input,
.dentalome-patient-form label[data-invalid="true"] .combobox-trigger,
.dentalome-patient-form label[data-invalid="true"] .patient-phone-country-button,
.dentalome-patient-form label[data-invalid="true"] .patient-phone-number-input,
.dentalome-patient-form input[aria-invalid="true"] {
  border-color: #dc2626;
}

.dentalome-patient-form label[data-invalid="true"] input,
.dentalome-patient-form label[data-invalid="true"] .combobox-trigger,
.dentalome-patient-form label[data-invalid="true"] .patient-phone-number-input,
.dentalome-patient-form input[aria-invalid="true"] {
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.patient-field-error {
  color: #dc2626;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.patient-phone-field {
  position: relative;
  z-index: 5;
}

.patient-phone-field:focus-within {
  z-index: 8;
}

.patient-source-phone-input {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  width: 100%;
  min-height: 38px;
}

.patient-phone-country-button {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e5e7eb;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: #111827;
  padding: 8px 9px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.patient-phone-country-button:focus-visible,
.patient-source-phone-input:focus-within .patient-phone-number-input {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-phone-country-button svg {
  flex: 0 0 auto;
  color: #6b7280;
  opacity: 0.75;
}

.patient-phone-flag {
  display: block;
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.patient-phone-country-button .patient-phone-flag {
  color: initial;
  opacity: 1;
}

.dentalome-patient-form .patient-phone-number-input {
  min-height: 38px;
  border-radius: 0 8px 8px 0;
  border-left: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.dentalome-patient-form .patient-phone-number-input::placeholder,
.dentalome-patient-form .patient-phone-country-search::placeholder {
  color: #6b7280;
  opacity: 1;
}

.patient-phone-country-menu {
  position: absolute;
  z-index: 98;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: min(300px, calc(100vw - 72px));
  overflow: hidden;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 0;
}

.dentalome-patient-form .patient-phone-country-search {
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  box-shadow: none;
}

.dentalome-patient-form .patient-phone-country-search:focus {
  border-bottom-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-phone-country-list {
  display: grid;
  max-height: 288px;
  overflow-y: auto;
  padding: 4px;
}

.patient-phone-country-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 16px;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.patient-phone-country-option:hover,
.patient-phone-country-option:focus-visible {
  background: #f4f4f5;
  outline: none;
}

.patient-phone-country-option > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-phone-country-dial {
  color: rgba(17, 24, 39, 0.52);
  font-size: 13px;
}

.patient-phone-country-option svg {
  color: #111827;
  opacity: 0;
}

.patient-phone-country-option svg.visible {
  opacity: 1;
}

.patient-phone-country-empty {
  min-height: 36px;
  color: #6b7280;
  padding: 9px 10px;
  font-size: 14px;
}

.patient-birth-date-field {
  position: relative;
  z-index: 3;
}

.patient-birth-date-field:focus-within {
  z-index: 7;
}

.patient-birth-date-picker {
  position: relative;
  display: block;
  width: 100%;
}

.patient-birth-date-button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.patient-birth-date-button.placeholder span {
  color: #6b7280;
}

.patient-birth-date-button:focus-visible {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-birth-date-button svg {
  flex: 0 0 auto;
  color: #6b7280;
  opacity: 0.65;
}

.dentalome-date-input {
  position: relative;
  display: block;
  width: 100%;
}

.dentalome-date-input > button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.dentalome-date-input > button:focus-visible {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.dentalome-date-input > button svg {
  flex: 0 0 auto;
  color: #6b7280;
  opacity: 0.65;
}

.dentalome-date-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 4px);
  left: 0;
  display: block;
  width: 288px;
}

.dentalome-date-calendar {
  box-sizing: border-box;
  display: block;
  width: 288px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1),
    0 2px 4px -2px rgba(0, 0, 0, .1);
}

.dentalome-date-calendar-inner {
  position: relative;
  box-sizing: border-box;
  width: 248px;
  padding: 12px;
}

.dentalome-date-calendar-nav {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  width: 224px;
  height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.dentalome-date-calendar-nav button {
  display: flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.dentalome-date-calendar-nav button:hover,
.dentalome-date-calendar-grid button:hover {
  background: oklch(0.967 0.001 286.375);
}

.dentalome-date-calendar-caption {
  position: absolute;
  top: 11px;
  left: 50%;
  display: flex;
  height: 34px;
  align-items: flex-start;
  gap: 6px;
  transform: translateX(-50%);
}

.dentalome-date-calendar-dropdown {
  position: relative;
  display: block;
  height: 34px;
  padding: 1px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.dentalome-date-calendar-dropdown > select {
  position: absolute;
  z-index: 1;
  inset: 1px;
  width: calc(100% - 2px);
  height: 32px;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.dentalome-date-calendar-dropdown > span {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  white-space: nowrap;
}

.dentalome-date-calendar-grid {
  display: table;
  width: 224px;
  min-width: 224px;
  max-width: 224px;
  margin: 48px 0 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
}

.dentalome-date-calendar-grid tr {
  display: flex;
  width: 224px;
  margin: 0;
}

.dentalome-date-calendar-grid tbody tr {
  height: 32px;
  margin-top: 8px;
}

.dentalome-date-calendar-grid th,
.dentalome-date-calendar-grid td {
  display: block;
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  padding: 0;
  border: 0;
}

.dentalome-date-calendar-grid th {
  height: 19.1953125px;
  border-radius: 8.4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: center;
}

.dentalome-date-calendar-grid td {
  position: relative;
  height: 32px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.dentalome-date-calendar-grid td.outside button {
  color: oklch(0.552 0.016 285.938);
}

.dentalome-date-calendar-grid td.selected {
  background: oklch(0.967 0.001 286.375);
}

.dentalome-date-calendar-grid td button {
  display: flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

.dentalome-date-calendar-grid td.selected button {
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.patient-birth-date-popover {
  position: absolute;
  z-index: 96;
  top: calc(100% + 8px);
  left: 0;
  min-width: 278px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.patient-birth-calendar,
.patient-birth-calendar-head,
.patient-birth-calendar-grid {
  display: grid;
}

.patient-birth-calendar {
  gap: 10px;
}

.patient-birth-calendar-head {
  grid-template-columns: 32px minmax(0, 1fr) 78px 32px;
  gap: 6px;
  align-items: center;
}

.patient-birth-calendar-head button,
.patient-birth-calendar-head select {
  min-height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.patient-birth-calendar-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.patient-birth-calendar-head select {
  padding: 0 7px;
}

.patient-birth-calendar-grid {
  grid-template-columns: repeat(7, 32px);
  gap: 4px;
  justify-content: center;
}

.patient-birth-calendar-grid span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.patient-birth-calendar-grid button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.patient-birth-calendar-grid button.outside {
  color: #c4c9d2;
}

.patient-birth-calendar-grid button.selected {
  background: #025ce2;
  color: #fff;
}

.patient-birth-calendar-grid button:disabled {
  color: #c4c9d2;
  cursor: not-allowed;
}

.appointment-form-footer-actions {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  margin-right: auto;
}

.appointment-form-icon-action {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 8.4px;
  background: #fff;
  color: #475569;
  padding: 0;
}

.appointment-form-icon-action.danger {
  border-color: oklch(0.577 0.245 27.325);
  color: oklch(0.577 0.245 27.325);
}

.appointment-form-icon-action.print {
  border-color: oklch(0.704 0.04 256.788);
  color: oklch(0.446 0.043 257.281);
}

.appointment-form-icon-action.whatsapp {
  border-color: oklch(0.696 0.17 162.48);
  color: oklch(0.696 0.17 162.48);
}

.appointment-form-icon-action:hover {
  background: #f8fafc;
}

.appointment-form-icon-action.whatsapp:hover {
  background: #ecfdf5;
}

.appointment-form-grid .primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8.4px;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.operation-form-modal {
  width: min(672px, calc(100vw - 48px));
  padding: 24px 24px 16px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.operation-sessions-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.session-delete-alert-modal {
  width: min(512px, calc(100vw - 48px));
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.operation-session-form-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.payment-form-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  display: grid;
  gap: 16px;
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.patient-form-modal {
  width: min(600px, calc(100vw - 48px));
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.prothese-form-modal {
  width: min(672px, calc(100vw - 48px));
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.charge-form-modal {
  width: min(512px, calc(100vw - 48px));
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.operation-form-modal .modal-head,
.operation-sessions-modal .modal-head,
.session-delete-alert-modal .modal-head,
.payment-form-modal .modal-head,
.patient-form-modal .modal-head,
.prothese-form-modal .modal-head,
.charge-form-modal .modal-head {
  margin: -4px -24px 18px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #eef0f3;
}

.payment-form-modal .modal-head {
  position: relative;
  width: calc(100% + 48px);
  min-height: 37px;
  margin: 0 -24px;
  padding: 0 24px 16px;
  border-bottom-color: oklch(0.92 0.004 286.32);
}

.operation-form-modal .modal-head h2,
.operation-sessions-modal .modal-head h2,
.session-delete-alert-modal .modal-head h2,
.payment-form-modal .modal-head h2,
.patient-form-modal .modal-head h2,
.prothese-form-modal .modal-head h2,
.charge-form-modal .modal-head h2 {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.payment-form-modal .modal-head h2 {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.payment-form-modal .modal-head h2 svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.payment-form-modal .modal-head > button {
  position: absolute;
  top: -8px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.payment-form-modal .modal-head > button:hover,
.payment-form-modal .modal-head > button:focus-visible {
  opacity: 1;
}

.payment-form-modal .modal-head > button svg {
  width: 16px;
  height: 16px;
}

.payment-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.payment-form-modal > .modal-close-button:hover,
.payment-form-modal > .modal-close-button:focus-visible {
  opacity: 1;
}

.payment-form-modal > .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.operation-sessions-modal > .modal-head {
  min-height: 60px;
  margin: 0;
  padding: 16px 24px;
}

.operation-sessions-modal > .modal-head h2 {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.operation-session-form-modal > .modal-head {
  box-sizing: border-box;
  width: 100%;
  height: 35px;
  min-height: 35px;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.operation-session-form-modal > .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.operation-session-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  padding: 0;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.operation-session-form-modal > .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.operation-sessions-modal > .modal-head > button,
.operation-sessions-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  padding: 0;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.operation-sessions-modal > .modal-head > button svg {
  width: 16px;
  height: 16px;
}

.operation-sessions-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 24px;
}

.operation-session-summary-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f4f4f5;
  padding: 12px;
  min-height: 78px;
}

.operation-session-summary-card.received {
  background: #ecfdf5;
}

.operation-session-summary-card p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.operation-session-summary-card div {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.operation-session-summary-card span {
  min-width: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.operation-session-summary-card.received span {
  color: #047857;
}

.operation-session-summary-card small {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
}

.operation-sessions-scroll {
  min-height: 188px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px;
}

.operation-session-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operation-session-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.operation-session-card-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
}

.operation-session-date-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #6b7280;
}

.operation-session-date-chip svg {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.operation-session-date-chip span {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.operation-session-date-chip small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.operation-session-date-chip em {
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
}

.operation-session-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.operation-session-card-actions .plain-icon {
  color: #111827;
}

.operation-session-card-actions .plain-icon.destructive {
  color: #dc2626;
}

.operation-session-card > p {
  min-width: 0;
  margin: 0;
  padding: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.operation-session-empty {
  padding: 64px 16px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.operation-sessions-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #eef0f3;
}

.operation-sessions-modal .operation-sessions-footer .primary-button {
  width: 176.328125px;
  min-width: 176.328125px;
  min-height: 32px;
  height: 32px;
  gap: 8px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.dentalome-operation-form,
.dentalome-payment-form,
.dentalome-patient-form,
.dentalome-prothese-form,
.dentalome-charge-form {
  gap: 20px 16px;
}

.dentalome-payment-form {
  grid-template-columns: 1fr;
  gap: 16px;
}

.payment-form-modal .dentalome-payment-form {
  width: 100%;
}

.payment-form-modal .dentalome-payment-form > label,
.payment-form-modal .dentalome-payment-form > .payment-source-field,
.payment-form-modal .dentalome-payment-form > .patient-source-dropdown-field {
  display: grid;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.payment-form-modal .dentalome-payment-form .field-label {
  gap: 8px;
  font-weight: 500;
  line-height: 19.25px;
}

.payment-form-modal .dentalome-payment-form .required-mark {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.payment-amount-field-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 20px;
}

.payment-field-error {
  min-height: 20px;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.payment-form-modal .payment-amount-field.invalid > .field-label {
  color: oklch(0.577 0.245 27.325);
}

.payment-form-modal .payment-amount-field.invalid input {
  color: oklch(0.577 0.245 27.325);
  transform: translateY(.5px);
}

.dentalome-operation-form label,
.dentalome-payment-form label,
.dentalome-patient-form label,
.dentalome-prothese-form label,
.dentalome-charge-form label {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.dentalome-operation-form .field-label,
.dentalome-payment-form .field-label,
.dentalome-patient-form .field-label,
.dentalome-prothese-form .field-label,
.dentalome-charge-form .field-label {
  gap: 8px;
}

.dentalome-operation-form .field-label svg {
  color: #6b7280;
  stroke-width: 1.8;
}

.dentalome-prothese-form .appointment-source-combobox {
  width: 100%;
}

.dentalome-charge-form .field-label svg {
  color: #6b7280;
  stroke-width: 1.8;
}

.dentalome-operation-form input,
.dentalome-operation-form select,
.dentalome-payment-form input,
.dentalome-payment-form select,
.dentalome-payment-form textarea,
.operation-session-form input,
.operation-session-form select,
.operation-session-form textarea,
.dentalome-patient-form input,
.dentalome-patient-form select,
.dentalome-patient-form textarea,
.dentalome-prothese-form input,
.dentalome-prothese-form select,
.dentalome-prothese-form textarea,
.dentalome-charge-form input,
.dentalome-charge-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.dentalome-operation-form input:focus,
.dentalome-operation-form select:focus,
.dentalome-payment-form input:focus,
.dentalome-payment-form select:focus,
.dentalome-payment-form textarea:focus {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.dentalome-payment-form textarea {
  min-height: 84px;
  resize: none;
}

.payment-form-modal .dentalome-payment-form input,
.payment-form-modal .dentalome-payment-form .dentalome-date-input > button,
.payment-form-modal .dentalome-payment-form .patient-source-dropdown .combobox-trigger {
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 4px 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.payment-form-modal .dentalome-payment-form .dentalome-date-input > button,
.payment-form-modal .dentalome-payment-form .patient-source-dropdown .combobox-trigger {
  padding: 8px 12px;
}

.payment-form-modal .dentalome-payment-form .dentalome-date-input > button:focus-visible,
.payment-form-modal .dentalome-payment-form .patient-source-dropdown .combobox-trigger:focus-visible,
.payment-form-modal .dentalome-payment-form input:focus-visible,
.payment-form-modal .dentalome-payment-form textarea:focus-visible {
  border-color: #025ce2;
  outline: none;
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.payment-form-modal .dentalome-payment-form textarea {
  height: 80px;
  min-height: 80px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.dentalome-patient-form textarea,
.dentalome-charge-form textarea {
  min-height: 80px;
  resize: none;
}

.dentalome-charge-form label[data-invalid="true"] input {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.dentalome-charge-form label[data-invalid="true"] .charge-date-button {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.charge-date-picker {
  position: relative;
  display: block;
}

.charge-date-button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.charge-date-button svg {
  color: #6b7280;
  opacity: 0.65;
}

.charge-date-placeholder {
  color: #6b7280;
}

.charge-date-popover {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  min-width: 278px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.charge-calendar,
.charge-calendar-head,
.charge-calendar-grid {
  display: grid;
}

.charge-calendar {
  gap: 10px;
}

.charge-calendar-head {
  grid-template-columns: 32px minmax(0, 1fr) 78px 32px;
  gap: 6px;
  align-items: center;
}

.charge-calendar-head button,
.charge-calendar-head select {
  min-height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.charge-calendar-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.charge-calendar-head select {
  padding: 0 7px;
}

.charge-calendar-grid {
  grid-template-columns: repeat(7, 32px);
  gap: 4px;
  justify-content: center;
}

.charge-calendar-grid span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.charge-calendar-grid button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.charge-calendar-grid button.outside {
  color: #c4c9d2;
}

.charge-calendar-grid button.today,
.charge-calendar-grid button.selected {
  background: #025ce2;
  color: #fff;
}

.charge-form-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.operation-session-form {
  gap: 18px 16px;
  margin-bottom: 18px;
}

.operation-session-form label {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.operation-session-form textarea {
  min-height: 86px;
  resize: vertical;
}

.operation-session-source-form {
  display: grid;
  gap: 16px;
}

.operation-session-source-field {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.operation-session-source-label {
  display: flex;
  height: 19.25px;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.operation-session-source-label svg {
  color: #6b7280;
  stroke-width: 1.8;
}

.operation-session-source-form strong {
  color: #dc2626;
}

.operation-session-source-form .dentalome-date-input > button,
.operation-session-source-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding: 4px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-source-form textarea {
  height: 80px;
  min-height: 80px;
  padding: 8px 12px;
  resize: none;
}

.operation-session-source-form .dentalome-date-input > button:focus {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-detail-control {
  display: grid;
  gap: 4px;
}

.operation-session-detail-control small {
  width: 100%;
  height: 16px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: right;
}

.operation-session-form-modal .operation-session-source-form > .modal-actions {
  box-sizing: border-box;
  width: calc(100% + 48px);
  height: 53px;
  margin: 0 -24px;
  gap: 8px;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.operation-session-form-modal .modal-actions button,
.operation-session-form-modal .modal-actions .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.operation-session-form-modal .modal-actions button:not(.primary-button) {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-form-modal .modal-actions .primary-button {
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.session-delete-alert-modal .delete-confirm-copy {
  margin: 0 0 16px;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.dentalome-operation-form .field-placeholder-overlay {
  color: #6b7280;
  font-weight: 500;
}

.combobox-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.combobox-trigger:focus-visible {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.combobox-trigger.placeholder {
  color: #6b7280;
}

.combobox-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combobox-trigger svg {
  flex: 0 0 auto;
  color: #9ca3af;
  opacity: 0.65;
  transition: transform 140ms ease;
}

.act-catalog-combobox.open .combobox-trigger svg,
.teeth-selector-combobox.open .combobox-trigger svg {
  transform: rotate(180deg);
}

.operation-act-field {
  position: relative;
  z-index: 4;
}

.operation-teeth-field {
  position: relative;
  z-index: 3;
}

.operation-teeth-field:focus-within {
  z-index: 5;
}

.act-catalog-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 300px;
  overflow: hidden;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 0;
}

.combobox-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eef0f3;
  padding: 9px 10px;
  color: #9ca3af;
}

.combobox-search-row input {
  min-height: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.combobox-search-row input:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

.act-catalog-menu .combobox-option-row {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.act-catalog-menu .combobox-option-row svg {
  flex: 0 0 auto;
  color: #111827;
  opacity: 0;
}

.act-catalog-menu .combobox-option-row[aria-selected="true"] svg {
  opacity: 1;
}

.act-catalog-menu .combobox-option-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-catalog-menu .combobox-option-row:hover,
.act-catalog-menu .combobox-option-row[aria-selected="true"] {
  background: #f4f4f5;
}

.act-catalog-menu em {
  padding: 12px;
  color: #667085;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.teeth-selector-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  display: grid;
  width: min(400px, calc(100vw - 64px));
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 8px;
}

.teeth-selector-list {
  display: grid;
  gap: 2px;
}

.teeth-selector-option {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.teeth-selector-option:hover,
.teeth-selector-option[aria-selected="true"] {
  background: #f4f4f5;
}

.teeth-selector-checkbox {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #fff;
}

.teeth-selector-checkbox.checked {
  border-color: #025ce2;
  background: #025ce2;
}

.dentalome-patient-form .phone-field {
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.patient-phone-field i {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #16a34a 0 31%, transparent 32%),
    #c1121f;
}

.patient-history-button {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #0b63e5 !important;
}

.modal-action-spacer {
  flex: 1 1 auto;
}

.operation-form-modal .modal-actions,
.operation-sessions-modal .modal-actions,
.session-delete-alert-modal .modal-actions,
.payment-form-modal .modal-actions,
.patient-form-modal .modal-actions,
.prothese-form-modal .modal-actions,
.charge-form-modal .modal-actions {
  align-items: center;
  margin: 4px -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid #eef0f3;
}

.payment-form-modal .modal-actions {
  height: 53px;
  margin: 0 -24px;
  gap: 8px;
  padding: 16px 24px 0;
  border-top-color: oklch(0.92 0.004 286.32);
}

.payment-form-modal .modal-actions button,
.payment-form-modal .modal-actions .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payment-form-modal .modal-actions button:not(.primary-button) {
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  min-height: 36px;
  height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.payment-form-modal .modal-actions .primary-button {
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.patient-form-modal .modal-actions {
  width: calc(100% + 48px);
  height: 53px;
  min-height: 53px;
  flex: 0 0 53px;
  gap: 8px;
  margin: 0 -24px;
  padding: 16px 24px 0;
  border-top-color: oklch(0.92 0.004 286.32);
}

.patient-form-modal {
  position: relative;
  display: flex;
  width: min(600px, calc(100vw - 48px));
  max-height: 90vh;
  flex-direction: column;
  overflow: visible;
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
}

.patient-form-modal .modal-head {
  width: 100%;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.patient-form-modal .modal-head h2 {
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.patient-form-modal .modal-close-button {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: oklch(0.552 0.016 285.938);
  box-shadow: none;
}

.patient-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: block;
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.patient-form-modal .dentalome-patient-form {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
}

.patient-form-modal .patient-form-scroll {
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 16px;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.patient-form-modal .patient-form-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.patient-form-modal .patient-form-scroll > label,
.patient-form-modal .patient-form-scroll > .patient-source-dropdown-field,
.patient-form-modal .patient-form-scroll > .patient-phone-field {
  display: grid;
  align-content: start;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.patient-form-modal .patient-form-scroll .field-label {
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.patient-form-modal .patient-form-scroll input,
.patient-form-modal .patient-form-scroll textarea,
.patient-form-modal .patient-form-scroll .combobox-trigger,
.patient-form-modal .patient-form-scroll .patient-birth-date-button,
.patient-form-modal .patient-form-scroll .patient-phone-country-button,
.patient-form-modal .patient-form-scroll .patient-phone-number-input {
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.patient-form-modal .patient-form-scroll .combobox-trigger,
.patient-form-modal .patient-form-scroll .patient-birth-date-button,
.patient-form-modal .patient-form-scroll .patient-phone-country-button {
  background: oklch(1 0 0);
  font-weight: 500;
}

.patient-form-modal .patient-form-scroll .combobox-trigger {
  gap: 8px;
  text-align: center;
}

.patient-form-modal .patient-form-scroll .patient-birth-date-button {
  gap: 8px;
  font-weight: 400;
}

.patient-form-modal .patient-form-scroll input {
  padding: 4px 12px;
}

.patient-form-modal .patient-form-scroll textarea {
  height: 80px;
  min-height: 80px;
  padding: 8px 12px;
}

.patient-form-modal .patient-form-scroll .combobox-trigger,
.patient-form-modal .patient-form-scroll .patient-birth-date-button {
  padding: 8px 12px;
}

.patient-form-modal .patient-source-phone-input {
  grid-template-columns: 61px minmax(0, 1fr);
  min-height: 36px;
}

.patient-form-modal .patient-form-scroll .patient-phone-country-button {
  border-right: 0;
  border-radius: 10.4px 0 0 10.4px;
  padding: 8px 12px;
}

.patient-form-modal .patient-form-scroll .patient-phone-number-input {
  border-left: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 0 10.4px 10.4px 0;
  padding: 4px 12px;
}

.patient-form-modal .patient-field-error {
  margin-top: -6px;
  font-size: 14px;
  line-height: 20px;
}

.patient-form-modal .patient-form-scroll > [data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.patient-form-modal .dentalome-patient-form [data-invalid="true"] input,
.patient-form-modal .dentalome-patient-form [data-invalid="true"] .combobox-trigger,
.patient-form-modal .dentalome-patient-form [data-invalid="true"] .patient-phone-country-button,
.patient-form-modal .dentalome-patient-form [data-invalid="true"] .patient-phone-number-input,
.patient-form-modal .dentalome-patient-form input[aria-invalid="true"] {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.577 0.245 27.325);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.patient-form-modal .dentalome-patient-form [data-invalid="true"] .patient-phone-country-button {
  border-right: 0;
}

.patient-form-modal .dentalome-patient-form input:focus {
  border-color: rgb(2 92 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.patient-form-modal .dentalome-patient-form [data-invalid="true"] input:focus {
  border-color: rgb(2 92 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.operation-form-modal .primary-button,
.operation-sessions-modal .primary-button,
.operation-session-form-modal .primary-button,
.payment-form-modal .primary-button,
.patient-form-modal .primary-button,
.prothese-form-modal .primary-button,
.charge-form-modal .primary-button,
.note-form-modal .primary-button,
.note-category-modal .primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #075fe5;
  color: #fff;
  padding: 0 17px;
}

.operation-form-modal {
  position: relative;
  display: flex;
  width: min(672px, calc(100vw - 48px));
  flex-direction: column;
  overflow: visible;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .1), 0 4px 6px -4px rgba(15, 23, 42, .1);
}

.operation-form-modal .modal-head {
  box-sizing: border-box;
  width: calc(100% + 48px);
  height: 35px;
  min-height: 35px;
  flex: 0 0 35px;
  margin: 0 -24px 20px;
  padding: 0 24px 16px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.operation-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.operation-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: block;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  box-shadow: none;
}

.operation-form-modal > .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.dentalome-operation-form {
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 20px;
}

.dentalome-operation-form > .operation-form-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 19.25px 36px;
  align-content: start;
  gap: 12px;
}

.dentalome-operation-form > .operation-act-field {
  grid-template-rows: 19.25px auto;
}

.operation-act-field-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 20px;
}

.operation-field-error {
  min-height: 20px;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.dentalome-operation-form > .operation-form-field > label.field-label,
.dentalome-operation-form > .operation-status-field > .patient-source-dropdown-field > .field-label {
  min-width: 0;
  height: 19.25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.dentalome-operation-form > .operation-status-field > .patient-source-dropdown-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 19.25px 36px;
  gap: 12px;
}

.operation-status-field .patient-source-dropdown-menu {
  top: calc(100% + 4.25px);
  padding: 4px;
}

.operation-status-field .patient-source-dropdown-option {
  height: 32px;
  min-height: 32px;
  padding: 6px 8px;
  font-weight: 400;
}

.dentalome-operation-form .required-mark {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.dentalome-operation-form > .operation-form-field > label.field-label svg,
.dentalome-operation-form > .operation-status-field > .patient-source-dropdown-field > .field-label svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: oklch(0.552 0.016 285.938);
  stroke-width: 1.8;
}

.operation-form-modal .dentalome-operation-form input,
.operation-form-modal .dentalome-operation-form .dentalome-date-input > button,
.operation-form-modal .dentalome-operation-form .appointment-source-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .teeth-selector-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .patient-source-dropdown > .combobox-trigger {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 12px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-form-modal .dentalome-operation-form .combobox-trigger.placeholder {
  color: oklch(0.552 0.016 285.938);
}

.operation-form-modal .dentalome-operation-form .appointment-combobox-field .combobox-trigger,
.operation-form-modal .dentalome-operation-form .operation-status-field .combobox-trigger {
  font-weight: 500;
}

.operation-form-modal .dentalome-operation-form input[type="number"] {
  padding: 4px 12px;
}

.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"] > label.field-label,
.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"] .combobox-trigger {
  color: oklch(0.577 0.245 27.325);
}

.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"] .combobox-trigger {
  font-weight: 500;
}

.operation-form-modal .dentalome-operation-form input:focus,
.operation-form-modal .dentalome-operation-form .dentalome-date-input > button:focus-visible,
.operation-form-modal .dentalome-operation-form .combobox-trigger:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-form-modal .modal-actions {
  box-sizing: border-box;
  width: calc(100% + 50px);
  height: 69px;
  min-height: 69px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 -25px -16px;
  padding: 16px 25px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.operation-form-modal .modal-actions button,
.operation-form-modal .modal-actions .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.operation-form-modal .modal-actions button:not(.primary-button) {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-form-modal .modal-actions .primary-button {
  border: 0;
  border-color: #025ce2;
  background: #025ce2;
  color: #eff6ff;
  box-shadow: none;
}

.operation-form-modal .modal-actions .primary-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5);
}

.operation-form-modal .modal-actions .primary-button:disabled {
  opacity: .5;
}

.operation-edit-impact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .34);
}

.operation-edit-impact-dialog {
  box-sizing: border-box;
  width: min(512px, calc(100vw - 48px));
  min-height: 186px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .14), 0 4px 6px -4px rgba(0, 0, 0, .14);
}

.operation-edit-impact-copy {
  display: grid;
  gap: 8px;
}

.operation-edit-impact-dialog h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.operation-edit-impact-dialog p {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
}

.operation-edit-impact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.operation-edit-impact-actions button {
  box-sizing: border-box;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-edit-impact-actions .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.operation-act-command-dialog,
.operation-teeth-command-dialog {
  position: fixed;
  z-index: 90;
  box-sizing: border-box;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .1), 0 4px 6px -4px rgba(15, 23, 42, .1);
}

.operation-act-command-dialog {
  height: 338px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.operation-act-command-search {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
  padding: 0 12px;
  color: oklch(0.552 0.016 285.938);
}

.operation-act-command-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.operation-act-command-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  outline: 0;
}

.operation-act-command-search input::placeholder {
  color: oklch(0.552 0.016 285.938);
  opacity: 1;
}

.operation-act-command-options {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px;
}

.operation-act-command-option {
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  white-space: normal;
}

.operation-act-command-option svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-right: 8px;
  opacity: 0;
}

.operation-act-command-option svg.selected {
  opacity: 1;
}

.operation-act-command-option span {
  min-width: 0;
  white-space: normal;
}

.operation-act-command-option:hover,
.operation-act-command-option[aria-selected="true"] {
  background: oklch(0.97 0.001 286.375);
}

.operation-act-command-options em {
  display: block;
  padding: 12px;
  color: oklch(0.552 0.016 285.938);
  font-size: 13px;
  font-style: normal;
}

.operation-teeth-command-dialog {
  height: 302px;
  overflow: hidden;
  padding: 0;
}

.operation-teeth-command-scroll {
  box-sizing: border-box;
  height: 300px;
  overflow-y: auto;
  padding: 8px;
}

.operation-teeth-command-scroll > p {
  height: 24px;
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
}

.operation-tooth-choice-list {
  display: grid;
  gap: 4px;
}

.operation-tooth-choice {
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  padding: 6px 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.operation-tooth-choice:hover {
  background: oklch(0.97 0.001 286.375);
}

.operation-tooth-choice > button {
  box-sizing: border-box;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid oklch(0.87 0.006 286.286);
  border-radius: 4px;
  padding: 0;
  background: #fff;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-tooth-choice > button[aria-checked="true"] {
  border-color: #025ce2;
  background: #025ce2;
}

.operation-tooth-choice > button:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5);
}

.operation-tooth-choice > label {
  flex: 1 1 auto;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
}

.charge-form-modal .primary-button {
  background: #025ce2;
}

.charge-form-modal {
  position: relative;
  display: grid;
  width: min(512px, calc(100vw - 32px));
  gap: 16px;
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.charge-form-modal > .modal-head {
  width: calc(100% + 48px);
  min-height: 35px;
  margin: 0 -24px;
  padding: 0 24px 16px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.charge-form-modal > .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.charge-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.charge-form-modal > .modal-close-button:hover,
.charge-form-modal > .modal-close-button:focus-visible {
  opacity: 1;
}

.charge-form-modal > .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.charge-form-modal .dentalome-charge-form {
  display: block;
  width: 100%;
}

.charge-source-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.charge-form-modal .dentalome-charge-form .charge-source-label {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.charge-form-modal .dentalome-charge-form .charge-source-label .required-mark {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.charge-form-modal .dentalome-charge-form .charge-source-label svg {
  width: 16px;
  height: 16px;
  color: oklch(0.552 0.016 285.938);
}

.charge-source-field-content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  line-height: 19.25px;
}

.charge-source-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.charge-form-modal .dentalome-charge-form input,
.charge-form-modal .charge-date-button {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .charge-date-button {
  padding: 8px 12px;
}

.charge-form-modal .dentalome-charge-form input:focus-visible,
.charge-form-modal .charge-date-button:focus-visible {
  border-color: #025ce2;
  outline: 1px solid #025ce2;
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .charge-source-field[data-invalid="true"] input,
.charge-form-modal .charge-source-field[data-invalid="true"] .charge-date-button {
  border-color: oklch(0.92 0.004 286.32);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .charge-source-field[data-invalid="true"] .charge-source-label,
.charge-form-modal .charge-source-field[data-invalid="true"] input {
  color: oklch(0.577 0.245 27.325);
}

.charge-form-modal .dentalome-charge-form input[data-modal-autofocus="true"]:focus {
  border-color: oklch(0.92 0.004 286.32);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .charge-form-error {
  min-height: 20px;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.charge-form-modal .charge-source-footer {
  display: flex;
  height: 53px;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  margin: 16px -24px 0;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.charge-source-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.charge-form-modal .charge-source-action-row > button,
.charge-form-modal .charge-source-action-row > .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.charge-form-modal .charge-source-footer .charge-source-action-row > button:not(.primary-button) {
  width: 87.5546875px;
  min-width: 87.5546875px;
  height: 36px;
  min-height: 36px;
}

.charge-form-modal .dentalome-charge-form .charge-source-action-row > button:not(.primary-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .dentalome-charge-form .charge-source-action-row > .primary-button {
  border: 0;
  color: oklch(0.97 0.014 254.604);
  font-weight: 500;
  box-shadow: none;
}

.patient-form-modal .modal-actions .patient-history-button {
  width: 209px;
  min-width: 209px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(60, 121, 212, .2) !important;
  border-radius: 8.4px;
  background: rgba(60, 121, 212, .1) !important;
  color: #025ce2 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.patient-form-modal .modal-actions > button:not(.patient-history-button),
.patient-form-modal .modal-actions > .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-form-modal .modal-actions > button:not(.primary-button, .patient-history-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patient-form-modal .modal-actions > .primary-button {
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.document-source-dialog-modal {
  width: min(896px, calc(100vw - 48px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 24px 16px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.document-source-dialog-modal .modal-head {
  margin: -4px -24px 18px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #eef0f3;
}

.document-source-dialog-modal .modal-head h2 {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.document-source-dialog-form {
  display: grid;
  gap: 20px;
}

.document-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-source-grid .wide {
  grid-column: 1 / -1;
}

.document-source-dialog-form label,
.document-source-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.document-source-dialog-form .field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.document-source-dialog-form .field-label svg {
  color: #6b7280;
}

.document-source-dialog-form input {
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.document-source-dialog-form input:focus {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-certificate-source-modal {
  width: min(672px, calc(100vw - 48px));
}

.patient-letter-source-modal {
  width: min(768px, calc(100vw - 48px));
}

.ordonnance-source-dialog-modal {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(600px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.ordonnance-source-dialog-modal:has(.ordonnance-source-table) {
  height: 386px;
}

.ordonnance-source-form {
  display: block;
}

.ordonnance-source-date-field {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.document-source-dialog-form .ordonnance-source-date-field > label {
  display: block;
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.ordonnance-source-medications {
  display: grid;
  gap: 0;
}

.ordonnance-source-section-label {
  display: block;
  height: 19.25px;
  margin: 0 0 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.ordonnance-source-table-wrap {
  margin-top: 8px;
  max-height: 300px;
  overflow: auto;
}

.ordonnance-source-table {
  min-width: 0;
  table-layout: fixed;
}

.ordonnance-source-table th:first-child,
.ordonnance-source-table td:first-child {
  width: 33.333%;
  max-width: 200px;
}

.ordonnance-source-table th:nth-child(2),
.ordonnance-source-table td:nth-child(2) {
  width: calc(66.667% - 50px);
}

.ordonnance-source-table th:last-child,
.ordonnance-source-table td:last-child {
  width: 50px;
  text-align: center;
}

.ordonnance-source-table input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 4px 12px;
  font-weight: 400;
}

.ordonnance-source-medication-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: oklch(0.141 0.005 285.823);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ordonnance-source-remove {
  margin: 0 auto;
  color: #ef2027;
}

.patient-letter-content textarea {
  min-height: 200px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 12px;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.patient-letter-content textarea:focus {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-letter-content .simple-editor-wrapper {
  min-height: 340px;
  max-height: 340px;
  border-radius: 14px;
  box-shadow: none;
}

.patient-letter-content .simple-editor-content {
  min-height: 294px;
}

.patient-letter-content .simple-editor {
  min-height: 294px;
  padding: 14px 20px 20px;
  color: #17191d;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.patient-letter-content .tiptap-toolbar {
  min-height: 44px;
  padding: 5px 68px;
}

.patient-letter-content .tiptap-button {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.patient-certificate-duration-summary {
  justify-content: space-between;
}

.document-source-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.document-source-summary strong,
.document-source-summary .document-source-summary-value {
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.document-source-summary-card {
  flex-wrap: wrap;
  gap: 12px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
}

.document-source-summary-card-inner {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
}

.document-source-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.document-source-summary-item-value {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.document-source-summary-separator {
  display: none;
}

.document-source-summary-card .document-source-total {
  color: #16a34a;
  font-size: 18px;
}

.document-source-table-wrap {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.document-source-table {
  width: 100%;
  border-collapse: collapse;
}

.document-source-table th,
.document-source-table td {
  border-bottom: 1px solid #eef0f3;
  padding: 12px 14px;
  color: #111827;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.document-source-table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 800;
}

.document-source-table td:nth-child(2),
.document-source-table td:nth-child(3) {
  max-width: 220px;
  overflow-wrap: anywhere;
}

.document-source-table tr:last-child td {
  border-bottom: 0;
}

.document-source-table.ordonnance-source-table th,
.document-source-table.ordonnance-source-table td {
  padding: 8px;
  font-weight: 500;
}

.document-source-table.ordonnance-source-table th {
  background: #fff;
  color: oklch(0.141 0.005 285.823);
}

.document-source-multiselect-trigger {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.document-source-multiselect-trigger.placeholder {
  color: #6b7280;
}

.document-source-multiselect-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-source-checkbox-list {
  position: absolute;
  z-index: 95;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 8px;
}

.document-source-field {
  position: relative;
  z-index: 6;
}

.document-source-field:focus-within {
  z-index: 9;
}

.document-source-checkbox-option {
  display: flex;
  min-height: 36px;
  align-items: center;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}

.document-source-checkbox-option:hover {
  background: #f4f4f5;
}

.document-source-checkbox-option input {
  min-height: 16px;
  width: 16px;
  height: 16px;
  padding: 0;
  box-shadow: none;
}

.document-source-dialog-modal .modal-actions {
  align-items: center;
  margin: 4px -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid #eef0f3;
}

.document-source-dialog-modal .primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #075fe5;
  color: #fff;
  padding: 0 17px;
}

.modal-actions button:not(.primary-button) {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 0 16px;
  min-height: 42px;
  font-weight: 800;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head {
  width: 550px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  opacity: .7;
  box-shadow: none;
  display: block;
  gap: normal;
  font-weight: 400;
  line-height: 24px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head .modal-close-button:hover {
  opacity: 1;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head .modal-close-button:focus-visible {
  opacity: .7;
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #025ce2;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.ordonnance-source-date-field .dentalome-date-input > button,
.ordonnance-source-medications .combobox-trigger {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.ordonnance-source-date-field .dentalome-date-input > button {
  justify-content: flex-start;
  gap: 8px;
  font-weight: 400;
}

.ordonnance-source-date-field .dentalome-date-input > button svg {
  order: -1;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: currentColor;
  opacity: 1;
}

.ordonnance-source-date-field .dentalome-date-input > button:focus-visible {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.ordonnance-source-medications .combobox-trigger {
  justify-content: space-between;
  gap: 8px;
  font-weight: 500;
  text-align: center;
}

.ordonnance-source-medications .combobox-trigger.placeholder {
  color: oklch(0.141 0.005 285.823);
}

.ordonnance-source-medications .combobox-trigger svg {
  width: 16px;
  height: 16px;
  color: oklch(0.141 0.005 285.823);
  opacity: .5;
}

.ordonnance-source-medications .act-catalog-menu.appointment-source-combobox-menu {
  width: 100%;
}

.ordonnance-source-medications .appointment-source-combobox-options {
  padding: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.ordonnance-source-medications .act-catalog-menu.appointment-source-combobox-menu .combobox-option-row {
  width: calc(100% - 8px);
  margin-left: 4px;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  border-radius: 6.4px;
}

.ordonnance-source-medications .act-catalog-menu.appointment-source-combobox-menu .combobox-option-row:first-child {
  margin-top: 4px;
}

.ordonnance-source-medications .act-catalog-menu.appointment-source-combobox-menu .combobox-option-row svg {
  display: block;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions {
  display: flex;
  height: 45px;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  margin: 16px -24px 0;
  padding: 8px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions > button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions > button:not(.primary-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions > .primary-button {
  border: 0;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table input {
  display: block;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  line-height: 20px;
  box-shadow: none;
  text-indent: 0;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table input:not(:focus) {
  text-indent: 5px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table input:focus {
  border-color: #025ce2;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table td:nth-child(2) input {
  width: 100%;
  transform: none;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table td:nth-child(2) {
  padding-top: 7.5px;
  padding-left: 8.5px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-remove {
  transform: translate(-1px, 1.5px);
  color: oklch(0.577 0.245 27.325);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table-wrap {
  border-color: oklch(0.92 0.004 286.32);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table th,
.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table td {
  border-bottom: 0;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table thead tr {
  position: relative;
  top: -1px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table th:nth-child(2) {
  padding-left: 9px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table td:first-child {
  vertical-align: middle;
}

.delete-confirm-modal {
  width: min(520px, calc(100vw - 48px));
  border: 1px solid rgba(220, 38, 38, 0.45);
  box-shadow: 0 24px 70px rgba(127, 29, 29, 0.18);
}

.delete-confirm-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.delete-confirm-heading h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.delete-confirm-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.delete-confirm-modal p {
  margin: 14px 0 20px;
  color: #667085;
  line-height: 1.55;
  text-align: left;
}

.dentalome-delete-alert-modal {
  width: min(512px, calc(100vw - 48px));
  display: grid;
  gap: 16px;
  padding: 24px;
  border-color: rgba(220, 38, 38, 0.5);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.15), 0 4px 6px -4px rgba(220, 38, 38, 0.15);
}

.dentalome-delete-alert-body {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;
}

.payment-delete-alert-modal .delete-confirm-heading {
  align-items: flex-start;
  gap: 12px;
}

.dentalome-delete-alert-modal .delete-confirm-heading h2 {
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.dentalome-delete-alert-modal .delete-confirm-icon {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.1);
}

.dentalome-delete-alert-modal p {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
}

.document-delete-alert-date {
  font-weight: 600;
}

.appointment-cancel-alert-modal {
  width: min(512px, calc(100vw - 48px));
  min-height: 194px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(220, 38, 38, .5);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, .15), 0 4px 6px -4px rgba(220, 38, 38, .15);
}

.appointment-cancel-alert-modal .modal-head {
  height: 36px;
  min-height: 36px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 16px;
}

.appointment-cancel-alert-modal .modal-head h2 {
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
}

.appointment-cancel-alert-icon {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, .3);
  border-radius: 999px;
  background: rgba(220, 38, 38, .1);
  color: oklch(0.577 0.245 27.325);
}

.appointment-cancel-alert-modal > p {
  min-height: 40px;
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.appointment-cancel-alert-modal .modal-actions {
  width: 100%;
  height: 36px;
  gap: 8px;
  margin-top: 16px;
}

.appointment-cancel-alert-modal .modal-actions button,
.appointment-cancel-alert-modal .modal-actions button:not(.primary-button),
.appointment-cancel-alert-modal .modal-actions button.danger-button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.appointment-cancel-alert-modal .modal-actions button:not(.primary-button):not(.danger-button) {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-cancel-alert-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.dentalome-delete-alert-modal .modal-actions {
  width: 100%;
  height: 36px;
  gap: 8px;
  margin-top: 0;
}

.patient-archive-alert-modal {
  border-color: oklch(0.577 0.245 27.325 / 50%);
  background: oklch(1 0 0);
}

.patient-archive-alert-modal .modal-actions button,
.patient-archive-alert-modal .modal-actions button:not(.primary-button),
.patient-archive-alert-modal .modal-actions button.danger-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-archive-alert-modal .modal-actions button:not(.danger-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patient-archive-alert-modal .modal-actions button.danger-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.document-delete-plain-modal {
  width: min(512px, calc(100vw - 48px));
  display: block;
  padding: 24px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.document-delete-plain-body {
  width: 100%;
}

.document-delete-plain-modal .delete-confirm-heading {
  display: block;
}

.document-delete-plain-modal .delete-confirm-heading h2 {
  width: 100%;
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
}

.document-delete-plain-modal p {
  margin: 8px 0 16px;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.document-delete-plain-modal .modal-actions {
  width: 100%;
  height: 36px;
  gap: 8px;
  margin: 0;
}

.document-delete-plain-modal .modal-actions button,
.document-delete-plain-modal .modal-actions button:not(.primary-button),
.document-delete-plain-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.document-delete-plain-modal .modal-actions button:not(.danger-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.document-delete-plain-modal .modal-actions button:not(.danger-button):focus-visible {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.document-delete-plain-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.operation-delete-confirm-modal .modal-actions button,
.operation-delete-confirm-modal .modal-actions button:not(.primary-button),
.operation-delete-confirm-modal .modal-actions button.danger-button,
.payment-delete-alert-modal .modal-actions button,
.payment-delete-alert-modal .modal-actions button:not(.primary-button),
.payment-delete-alert-modal .modal-actions button.danger-button,
.notes-delete-alert-modal .modal-actions button,
.notes-delete-alert-modal .modal-actions button:not(.primary-button),
.notes-delete-alert-modal .modal-actions button.danger-button,
.patient-image-delete-alert-modal .modal-actions button,
.patient-image-delete-alert-modal .modal-actions button:not(.primary-button),
.patient-image-delete-alert-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.operation-delete-confirm-modal .modal-actions button:not(.danger-button):focus-visible {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-delete-confirm-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.payment-delete-alert-modal .modal-actions button:not(.primary-button) {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  outline: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.notes-delete-alert-modal .modal-actions button:not(.primary-button):focus-visible,
.patient-image-delete-alert-modal .modal-actions button:not(.primary-button):focus-visible {
  border-color: #025ce2;
  color: oklch(0.141 0.005 285.823);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.payment-delete-alert-modal .modal-actions button.danger-button,
.patient-image-delete-alert-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.catalog-medication-delete-modal {
  display: grid;
  width: min(512px, calc(100vw - 32px));
  gap: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(1 0 0);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.catalog-medication-delete-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.catalog-medication-delete-header h2 {
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.catalog-medication-delete-modal p {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-medication-delete-name {
  color: #111827;
  font-weight: 600;
}

.catalog-medication-delete-actions {
  flex-direction: column-reverse;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
  margin-top: 0;
}

.catalog-medication-delete-modal .catalog-medication-delete-actions button {
  display: inline-flex;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  color: oklch(0.141 0.005 285.823);
  background: oklch(1 0 0);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-medication-delete-modal .catalog-medication-delete-actions button.catalog-medication-delete-action {
  height: 36px;
  min-height: 36px;
  gap: 8px;
  border: 0;
  border-radius: 8.4px;
  padding: 8px 16px;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}

@media (min-width: 640px) {
  .catalog-medication-delete-header {
    text-align: left;
  }

  .catalog-medication-delete-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

.modal-actions button.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
}

.modal-actions button.danger-button:disabled {
  opacity: 0.7;
}

.charge-delete-confirm-modal,
.prothese-delete-confirm-modal {
  width: min(512px, calc(100vw - 48px));
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.charge-delete-confirm-modal .delete-confirm-heading h2,
.prothese-delete-confirm-modal .delete-confirm-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.charge-delete-confirm-modal p,
.prothese-delete-confirm-modal p {
  color: #6b7280;
  font-size: 14px;
}

.charge-delete-confirm-modal {
  display: grid;
  width: min(512px, calc(100vw - 32px));
  gap: 16px;
  padding: 24px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.charge-delete-confirm-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.charge-delete-confirm-modal .charge-delete-confirm-header h2 {
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.charge-delete-confirm-modal .charge-delete-confirm-header p {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.charge-delete-confirm-modal .modal-actions {
  width: 100%;
  height: 36px;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.charge-delete-confirm-modal .modal-actions button,
.charge-delete-confirm-modal .modal-actions button:not(.primary-button),
.charge-delete-confirm-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.charge-delete-confirm-modal .modal-actions button:not(.danger-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-delete-confirm-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.font-semibold {
  font-weight: 700;
}

.medical-history-modal {
  position: relative;
  width: min(1024px, calc(100vw - 48px));
  max-height: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 10.4px;
  background: #f8fafc;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.medical-history-modal .modal-head {
  box-sizing: border-box;
  display: block;
  height: 101px;
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.medical-history-modal .modal-head-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.medical-history-modal .modal-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.medical-history-modal .modal-head h2 svg {
  color: #319b95;
}

.medical-history-modal .modal-head-subtitle {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-history-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: #09090b;
  opacity: .7;
}

.medical-history-form {
  display: block;
  background: #f8fafc;
}

.medical-history-scroll {
  max-height: min(70vh, calc(100vh - 190px));
  overflow-y: auto;
  padding: 16px 24px 24px;
}

.medical-history-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.medical-history-source-wide {
  grid-column: 1 / -1;
}

.medical-history-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.medical-history-intro-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #0b63e5;
}

.medical-history-intro h3,
.medical-important-panel h4,
.medical-section-head h4 {
  margin: 0;
  color: #111827;
  letter-spacing: 0;
}

.medical-history-intro h3 {
  font-size: 16px;
  font-weight: 850;
}

.medical-history-intro p,
.medical-important-panel p,
.medical-section-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.medical-important-panel,
.medical-history-section {
  box-sizing: border-box;
  border: 1px solid rgba(226, 232, 240, .7);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.medical-important-panel {
  display: block;
  margin-bottom: 24px;
  padding: 12px 16px;
  border-color: #ffe4e6;
  background: #fff1f2;
}

.medical-alert-copy,
.medical-section-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.medical-alert-copy svg {
  margin-top: 2px;
  color: #e11d48;
}

.medical-section-head svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: #0f766e;
}

.medical-alert-copy {
  gap: 12px;
}

.medical-alert-copy .medical-alert-title {
  margin: 0 0 4px;
  color: #881337;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.medical-alert-copy p:not(.medical-alert-title) {
  margin: 0;
  color: rgba(136, 19, 55, .8);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-important-panel > .medical-textarea-field {
  margin-top: 12px;
}

.medical-history-section {
  align-self: start;
}

.medical-section-head .medical-section-title {
  margin: 0;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.treatment-plan-tabs {
  color: oklch(0.552 0.016 285.938);
}

@media (min-width: 901px) {
  .patient-rdv-card .patient-rdv-table th:nth-child(1),
  .patient-rdv-card .patient-rdv-table td:nth-child(1) { width: 19.263357401%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(2),
  .patient-rdv-card .patient-rdv-table td:nth-child(2) { width: 20.660830325%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(3),
  .patient-rdv-card .patient-rdv-table td:nth-child(3) { width: 27.402978339%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(4),
  .patient-rdv-card .patient-rdv-table td:nth-child(4) { width: 15.024277978%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(5),
  .patient-rdv-card .patient-rdv-table td:nth-child(5) { width: 17.648646209%; }

  .patient-rdv-card .dentalome-pagination button:disabled {
    gap: 8px;
    color: oklch(0.141 0.005 285.823);
    opacity: .5;
  }
}

.medical-section-head p:not(.medical-section-title) {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.medical-question-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.medical-question-row p {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medical-question-row span {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
}

.medical-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.medical-choice-row button {
  height: 36px;
  min-height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medical-choice-row button.active {
  border-color: #0d9488;
  background: #0d9488;
  color: #fff;
}

.medical-yes-no {
  flex: 0 0 auto;
  gap: 8px;
}

.medical-dependent-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.medical-lifestyle-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}

.medical-flag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.medical-checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-checkbox-line button {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  border: 1px solid #cbd5e1;
  border-radius: 8.4px;
  padding: 0;
  background: transparent;
  color: #fff;
}

.medical-checkbox-line button[data-state="checked"] {
  border-color: #18181b;
  background: #18181b;
}

.medical-checkbox-line span {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-textarea-field {
  display: block;
}

.medical-textarea-field span {
  display: block;
  margin: 0 0 4px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medical-textarea-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 80px;
  min-height: 80px;
  resize: none;
  border: 1px solid #e2e8f0;
  border-radius: 14.4px;
  background: rgba(248, 250, 252, .7);
  color: #111827;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.medical-textarea-field textarea:focus {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 3px rgba(16, 24, 40, 0.08);
}

.medical-textarea-field small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

.medical-history-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.patient-form-modal .medical-history-modal .medical-history-actions {
  box-sizing: border-box;
  width: 100%;
  height: 69px;
  gap: 12px;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
}

.medical-history-actions button {
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-form-modal .medical-history-modal .medical-history-actions > button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medical-history-actions .primary-button,
.archive-confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.archive-confirm-modal {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 24px 70px rgba(154, 52, 18, 0.18);
}

.archive-confirm-icon {
  border-color: rgba(234, 88, 12, 0.35);
  background: #fff7ed;
  color: #ea580c;
}

.modal-actions button.archive-confirm-button {
  background: #ea580c;
}

.center-screen,
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f7fafc, #e6eff8);
}

.center-screen {
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.spin {
  animation: spin 0.8s linear infinite;
}

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

.login-panel {
  width: 420px;
  display: grid;
  gap: 16px;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(37, 70, 111, 0.2);
}

.login-panel h1,
.login-panel p {
  margin: 0;
}

.login-panel p {
  color: var(--muted);
}

.login-panel label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.form-error {
  padding: 10px 12px;
  background: #fff0f0;
  color: var(--red);
  border-radius: 6px;
  font-weight: 800;
}

.floating-button {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.offline-ribbon {
  position: fixed;
  left: 96px;
  bottom: 18px;
  z-index: 70;
  background: #111827;
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 800;
}

/* Dentalome-parity patient detail shell */
.patient-workspace {
  padding: 26px 34px 48px;
  background: #f5f7fa;
}

.patient-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px 24px;
  min-height: 148px;
  margin: 0 0 22px;
  padding: 18px 22px 0;
  border-radius: 18px;
  border: 1px solid #e1e6ee;
  background: #fff;
  box-shadow: 0 7px 22px rgba(33, 43, 54, 0.08);
}

.patient-profile-main {
  display: flex;
  min-width: 0;
  gap: 18px;
  align-items: center;
}

.patient-initials-tile {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #315d91;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08);
}

.patient-profile-text {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.patient-profile-text p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  font-weight: 800;
}

.patient-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.patient-title h1 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.patient-alert-icon {
  color: #68717c;
  flex: 0 0 auto;
}

.patient-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-contact-line svg {
  color: #315d91;
  flex: 0 0 auto;
}

.patient-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

.patient-action-button,
.patient-more-button {
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid #dce3ec;
  background: #fff;
  color: #252a31;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.patient-action-button.archive {
  color: #5f6b7a;
}

.patient-more-button {
  width: 40px;
  padding: 0;
}

.patient-warning {
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin: -4px 0 2px 100px;
  color: #855f12;
  font-weight: 800;
}

.patient-profile-tabs {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 2px;
  min-height: 46px;
  border-top: 1px solid #edf1f5;
  overflow-x: auto;
  scrollbar-width: thin;
}

.patient-profile-tabs button {
  height: 46px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4f5865;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.patient-profile-tabs button.active {
  color: #347cf6;
  border-bottom-color: #347cf6;
  background: #fff;
}

.financial-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  white-space: nowrap;
}

.metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 22px;
  font-weight: 900;
}

.metric span::after {
  content: " :";
}

.metric strong,
.metric b {
  font-size: 22px;
  line-height: 1;
}

.patient-treatment-card {
  min-height: 640px;
  margin: 0;
  padding: 18px 18px 26px;
  border-radius: 18px;
  border: 1px solid #e1e6ee;
  background: #fff;
  box-shadow: 0 7px 22px rgba(33, 43, 54, 0.08);
}

.treatment-card-top {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 22px;
}

.treatment-tabs {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 40px;
  padding: 3px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #f7f9fc;
  overflow-x: auto;
}

.treatment-tabs button {
  min-height: 32px;
  min-width: 94px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5a606b;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.treatment-tabs button.active {
  color: #347cf6;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.treatment-financials {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 28px;
  white-space: nowrap;
}

.treatment-financials .metric {
  display: grid;
  gap: 4px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  color: #798397;
  letter-spacing: 0.04em;
}

.treatment-financials .metric span::after {
  content: "";
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.patient-workspace {
  padding: 26px 30px 48px;
  background: #f7f8fb;
}

.patient-header.dentalome-patient-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 34px;
  min-height: 64px;
  margin: 0 0 14px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid #e7eaf0;
  background: #fff;
  box-shadow: 0 4px 18px rgba(33, 43, 54, 0.08);
}

.dentalome-patient-header .patient-title {
  gap: 18px;
}

.dentalome-patient-header .patient-title h1 {
  font-size: 25px;
  line-height: 1.15;
}

.patient-edit-icon {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #20252c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.patient-header-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 42px;
  white-space: nowrap;
}

.patient-header-financials .metric {
  color: #20252c;
  font-size: 22px;
  font-weight: 900;
}

.patient-header-financials .metric strong,
.patient-header-financials .metric b {
  font-size: 22px;
  line-height: 1.05;
}

.dentalome-patient-header .patient-warning {
  margin: 0;
}

.patient-treatment-card {
  padding: 0 14px 26px;
  border-radius: 10px;
  border-color: #e7eaf0;
  box-shadow: 0 4px 18px rgba(33, 43, 54, 0.08);
}

.treatment-card-top {
  grid-template-columns: minmax(320px, 1fr);
  margin-bottom: 22px;
  border-bottom: 1px solid #dfe5ee;
}

.treatment-tabs {
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.treatment-tabs button {
  min-height: 58px;
  min-width: 112px;
  padding: 0 20px;
  border-radius: 0;
  border-bottom: 4px solid transparent;
  color: #454b54;
  font-size: 18px;
}

.treatment-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: #fff;
  box-shadow: none;
}

.patient-treatment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.odontogram-column {
  min-width: 0;
}

.odontogram-panel.dentalome-odontogram-card {
  position: relative;
  min-height: 510px;
  padding: 28px clamp(20px, 2.1vw, 42px) 28px;
  border-radius: 20px;
  border: 0;
  background: #fff;
  box-shadow: 0 0 9px -2px #ccc;
  overflow: visible;
}

.odontogram-control-row {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.odontogram-control-row.bottom {
  justify-content: flex-start;
  margin-top: 10px;
}

.inline-control {
  gap: 10px;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.inline-control span {
  width: 58px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d1d1d1;
}

.inline-control span::after {
  top: 5px;
  left: 6px;
  width: 21px;
  height: 21px;
}

.inline-control input:checked + span::after {
  transform: translateX(25px);
}

.act-status-card {
  min-height: 560px;
  padding: 29px 44px 34px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.12);
}

.add-act-button {
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 900;
}

.act-status-divider {
  height: 1px;
  margin: 27px 0 18px;
  background: var(--line);
}

.act-status-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  font-size: 21px;
  font-weight: 900;
}

.act-status-empty {
  min-height: 255px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #667085;
  text-align: center;
  line-height: 1.35;
}

.act-status-empty strong {
  color: #1f2937;
  font-size: 17px;
}

.act-status-empty span {
  max-width: 210px;
  font-size: 14px;
}

.act-status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  max-height: 264px;
  overflow-y: auto;
  padding-right: 2px;
}

.act-status-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 18px;
  font-weight: 600;
}

.act-status-list button span {
  overflow: hidden;
  line-height: 1.25;
}

.act-status-list button strong {
  min-width: 108px;
  padding: 9px 18px;
  border-radius: 22px;
  background: #6ea1f6;
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.act-status-list button.active span {
  color: #111827;
  font-weight: 900;
}

.patient-document-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 22px 12px 18px;
}

.patient-document-actions button {
  min-width: 136px;
  min-height: 43px;
  padding: 7px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  text-align: left;
  font-size: 18px;
  font-weight: 900;
}

.patient-document-actions button:last-child {
  min-width: 166px;
}

.patient-document-actions strong {
  display: inline;
  margin-left: 5px;
  margin-top: 0;
}

.odontogram {
  width: 100%;
  min-width: 0;
  max-width: 1040px;
  margin: 6px auto 0;
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.odontogram-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: clamp(8px, 1.1vw, 20px);
  align-items: center;
  min-width: 0;
  width: 100%;
}

.tooth-group {
  display: grid;
  grid-template-columns: repeat(8, minmax(34px, 1fr));
  gap: clamp(6px, 0.75vw, 14px);
  align-items: center;
  min-width: 0;
}

.odontogram.child .tooth-group {
  grid-template-columns: repeat(5, minmax(34px, 1fr));
}

.tooth.dentalome-tooth {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 174px;
  display: grid;
  grid-template-rows: minmax(142px, 1fr) 24px;
  gap: 5px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #212529;
  cursor: pointer;
  font-family: inherit;
}

.tooth.dentalome-tooth.lower {
  min-height: 174px;
  grid-template-rows: 24px minmax(142px, 1fr);
  align-content: start;
}

.tooth-art {
  width: clamp(38px, 3.2vw, 61px);
  height: 142px;
  min-height: 142px;
  display: grid;
  place-items: center;
  padding: 2px 4px;
  border-radius: 14px;
  transition: background 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  user-select: none;
  pointer-events: none;
}

.tooth-svg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.tooth-svg svg,
.tooth-svg span,
.tooth-svg span > svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.tooth.dentalome-tooth.treated .tooth-svg svg .cls-2,
.tooth.dentalome-tooth.treated .tooth-svg svg .cls-3 {
  fill: #49d889;
}

.tooth.dentalome-tooth:hover .tooth-art {
  background: rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
}

.tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(0, 123, 255, 0.2);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
}

.tooth.dentalome-tooth.selected:hover .tooth-art {
  filter: brightness(0.98) saturate(1.15);
}

.tooth.dentalome-tooth.selected strong {
  color: #212529;
}

.tooth strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.mouth-labels {
  display: none;
  margin: 0;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.mouth-labels strong {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.mouth-labels span:last-child {
  text-align: right;
}

.odontogram-divider {
  height: 1px;
  margin: 0;
  background: #e5e7eb;
}

.odontogram-midline {
  width: 1px;
  min-height: 178px;
  background: transparent;
}

.patient-operations-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  background: #fff;
}

.patient-operations-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 20px;
}

.patient-operations-table th {
  color: #343a42;
  font-size: 19px;
  font-weight: 900;
}

.patient-operations-table th:first-child,
.patient-operations-table td:first-child {
  width: 50px;
  text-align: center;
}

.patient-operations-table input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--green);
}

.operation-name {
  display: block;
  max-width: 470px;
  font-weight: 400;
}

.sessions-link {
  font-size: 20px;
}

.money-cell {
  font-weight: 900;
}

.dentalome-status {
  min-width: 150px;
  min-height: 42px;
  gap: 10px;
  border-radius: 24px;
  background: #6d9ff4;
  font-size: 20px;
}

.check-pill {
  min-width: 64px;
  min-height: 36px;
  font-size: 22px;
}

.dentalome-actions {
  gap: 16px;
}

.dentalome-actions .plain-icon.small {
  width: 34px;
  height: 34px;
  color: #171b21;
}

.dentalome-action-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.simple-section {
  min-height: 620px;
  padding: 20px 14px 24px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.1);
}

.simple-section .section-title-row {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.simple-section .section-title-row h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.simple-section .primary-button.compact {
  display: none;
}

.simple-section .table-wrap {
  border-color: var(--line);
}

.simple-section th,
.simple-section td {
  padding: 16px 14px;
  font-size: 22px;
}

.simple-section th {
  font-size: 20px;
}

.simple-section.image-section .image-table th,
.simple-section.image-section .image-table td {
  height: 57px;
  padding: 9px 12px;
  font-size: 21px;
}

.simple-section.image-section .image-table th {
  font-size: 21px;
}

.mutuelle-patient-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mutuelle-title-row {
  align-items: flex-start;
}

.mutuelle-workflow-grid,
.mutuelle-admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.4fr);
  gap: 18px;
}

.mutuelle-coverage-panel,
.mutuelle-generation-panel,
.mutuelle-admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(33, 43, 54, 0.06);
}

.mutuelle-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.mutuelle-form-grid .wide,
.mutuelle-form-grid .mutuelle-panel-heading,
.mutuelle-form-grid .mutuelle-form-actions {
  grid-column: 1 / -1;
}

.mutuelle-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mutuelle-panel-heading strong {
  font-size: 18px;
  color: #111827;
}

.mutuelle-heading-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.mutuelle-generation-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 12px;
}

.mutuelle-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.mutuelle-inline-check input {
  width: auto;
}

.mutuelle-total-pill,
.mutuelle-admin-notice,
.mutuelle-message {
  border-radius: 7px;
  padding: 8px 11px;
  background: #eaf8f0;
  color: #17663a;
  font-weight: 800;
}

.mutuelle-warning,
.mutuelle-inline-warning,
.mutuelle-missing-panel {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #f5c2c7;
  background: #fff5f5;
  color: #9f1239;
  padding: 10px 12px;
  font-weight: 700;
}

.mutuelle-appointment-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #334155;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 800;
}

.mutuelle-appointment-sync.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-appointment-sync.warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.mutuelle-inline-warning.wide {
  grid-column: 1 / -1;
}

.mutuelle-source-hints {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.mutuelle-source-hints span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mutuelle-source-hints small {
  color: #475569;
  font-weight: 700;
}

.mutuelle-readiness-panel {
  margin-top: 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 11px 12px;
  color: #334155;
}

.mutuelle-readiness-panel.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.mutuelle-quality-panel {
  margin: 18px 0;
}

.mutuelle-quality-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.mutuelle-quality-summary span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.mutuelle-quality-summary strong {
  font-size: 20px;
  color: #0f172a;
}

.mutuelle-quality-summary small {
  color: #64748b;
  font-weight: 800;
}

.mutuelle-quality-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mutuelle-readiness-panel strong {
  display: block;
  margin-bottom: 7px;
  color: #111827;
}

.mutuelle-readiness-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.mutuelle-readiness-panel li.done {
  color: #166534;
  font-weight: 800;
}

.mutuelle-guidance-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #d7e5f8;
  border-radius: 8px;
  background: #f7fbff;
  color: #16325c;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.42;
}

.mutuelle-guidance-panel strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  font-size: 13px;
}

.mutuelle-guidance-panel ul {
  margin: 0;
  padding-left: 18px;
}

.mutuelle-missing-panel {
  display: block;
}

.mutuelle-missing-panel ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.mutuelle-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mutuelle-table-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.mutuelle-code-select,
.mutuelle-documents-table select,
.mutuelle-mapping-table-wrap input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  background: #fff;
}

.mutuelle-code-cell {
  display: grid;
  gap: 6px;
  min-width: 320px;
}

.mutuelle-auto-code-card {
  display: grid;
  gap: 2px;
  min-height: 34px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #f8fbff;
  color: #0f172a;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.25;
}

.mutuelle-auto-code-card strong {
  font-size: 13px;
  color: #175cd3;
}

.mutuelle-auto-code-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mutuelle-auto-code-card.non_remboursable,
.mutuelle-auto-code-card.source_missing {
  border-color: #fedf89;
  background: #fffbeb;
}

.mutuelle-auto-code-card.non_remboursable strong,
.mutuelle-auto-code-card.source_missing strong {
  color: #b54708;
}

.mutuelle-auto-code-card.unresolved {
  border-color: #fecdca;
  background: #fff7f5;
}

.mutuelle-auto-code-card.unresolved strong {
  color: #b42318;
}

.mutuelle-auto-code-card.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.mutuelle-auto-code-card.muted strong {
  color: #64748b;
}

.mutuelle-code-override-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #475569;
  padding: 0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.mutuelle-code-override-button:hover {
  color: var(--brand);
}

.mutuelle-code-warning {
  display: block;
  margin-top: 4px;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
}

.mutuelle-code-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef6ff;
  color: #175cd3;
  font-size: 11px;
  font-weight: 800;
}

.mutuelle-code-status.non_remboursable,
.mutuelle-code-status.source_missing {
  background: #fffaeb;
  color: #b54708;
}

.mutuelle-code-status.unresolved {
  background: #fef3f2;
  color: #b42318;
}

.mutuelle-checklist-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 5px 9px;
  font-weight: 900;
  cursor: pointer;
}

.mutuelle-checklist-toggle.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-document-details-row td {
  position: sticky;
  left: 0;
  background: #f8fafc;
  padding: 0;
}

.mutuelle-document-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid #dbe3ee;
  padding: 14px;
  min-width: min(720px, calc(100vw - 64px));
  max-width: calc(100vw - 64px);
}

.mutuelle-document-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mutuelle-document-details-head strong,
.mutuelle-submission-notes label {
  display: block;
  color: #111827;
  font-weight: 900;
}

.mutuelle-document-details-head span,
.mutuelle-status-history {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mutuelle-attachment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.mutuelle-attachment-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.mutuelle-attachment-list label.checked {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-attachment-list input {
  margin-top: 2px;
}

.mutuelle-submission-notes {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.mutuelle-submission-notes textarea {
  width: 100%;
  min-height: 72px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  resize: vertical;
  font: inherit;
}

.mutuelle-admin-workspace {
  gap: 18px;
}

.mutuelle-admin-panel .dentalome-table-wrap {
  max-height: 420px;
  overflow: auto;
}

.mutuelle-ngap-coverage-panel {
  grid-column: 1 / -1;
}

.mutuelle-ngap-coverage-panel .mutuelle-panel-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
}

.mutuelle-upload-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.8fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mutuelle-upload-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: #374151;
}

.mutuelle-upload-form input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
}

.mutuelle-sheet-import-panel .mutuelle-panel-heading p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.mutuelle-sheet-import-form {
  display: grid;
  gap: 12px;
}

.mutuelle-sheet-file-row {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.mutuelle-sheet-file-row > span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.mutuelle-sheet-import-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.mutuelle-sheet-import-form textarea {
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mutuelle-sheet-import-actions,
.mutuelle-sheet-import-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mutuelle-sheet-import-result {
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #d7e5f8;
  background: #f7fbff;
  padding: 10px;
}

.mutuelle-sheet-import-result span {
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe3ee;
  padding: 5px 9px;
  color: #16325c;
  font-size: 12px;
  font-weight: 900;
}

.mutuelle-sheet-import-result span.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-sheet-import-result span.pending {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.mutuelle-sheet-import-review {
  display: grid;
  gap: 12px;
}

.mutuelle-sheet-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #111827;
}

.mutuelle-sheet-review-heading span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mutuelle-sheet-review-table {
  max-height: 420px;
  overflow: auto;
}

.mutuelle-sheet-review-table table {
  min-width: 1040px;
}

.mutuelle-sheet-review-table td strong,
.mutuelle-sheet-review-table td span {
  display: block;
}

.mutuelle-sheet-review-table td span {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.mutuelle-sheet-review-row.skip {
  background: #fff7ed;
}

.mutuelle-sheet-review-row.create,
.mutuelle-sheet-review-row.update,
.mutuelle-sheet-review-row.cin_only {
  background: #f8fffb;
}

.mutuelle-review-action {
  display: inline-flex !important;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #fff;
  padding: 0 9px;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.mutuelle-review-action.create,
.mutuelle-review-action.update,
.mutuelle-review-action.cin_only {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534 !important;
}

.mutuelle-review-action.skip {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c !important;
}

.mutuelle-file-field input {
  padding-top: 8px;
}

.mutuelle-mapping-panel {
  margin: 18px 0;
}

.mutuelle-mapping-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.mutuelle-mapping-summary span {
  border: 1px solid #dbe7ee;
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
}

.mutuelle-mapping-summary .warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.mutuelle-mapping-summary .ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-visual-mapping {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.mutuelle-visual-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.mutuelle-nudge-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #dbe7ee;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.mutuelle-nudge-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mutuelle-nudge-toolbar input {
  width: 68px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 7px;
  font-weight: 800;
}

.mutuelle-nudge-buttons {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.mutuelle-nudge-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #0f766e;
  font-weight: 900;
  cursor: pointer;
}

.mutuelle-nudge-buttons button:last-child {
  border-right: 0;
}

.mutuelle-nudge-buttons button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.mutuelle-page-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.mutuelle-page-switcher button {
  min-width: 38px;
  height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mutuelle-page-switcher button:last-child {
  border-right: 0;
}

.mutuelle-page-switcher button.active {
  background: #0f766e;
  color: #fff;
}

.mutuelle-visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.mutuelle-visual-meta span {
  border: 1px solid #dbe7ee;
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
}

.mutuelle-pdf-canvas {
  position: relative;
  width: min(100%, 1120px);
  max-height: 72vh;
  aspect-ratio: var(--mutuelle-pdf-ratio, 1.414 / 1);
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  overflow: hidden;
  background: #e5e7eb;
  justify-self: center;
}

.mutuelle-pdf-canvas iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.mutuelle-pdf-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.mutuelle-pdf-click-layer {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.mutuelle-field-marker {
  position: absolute;
  min-height: 18px;
  transform: translateY(-50%);
  border: 1px solid rgba(15, 118, 110, 0.55);
  border-radius: 4px;
  background: rgba(15, 118, 110, 0.16);
  color: #064e3b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
}

.mutuelle-field-marker.active {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.18);
  color: #991b1b;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.mutuelle-mapping-table-wrap table {
  min-width: 1220px;
}

.mutuelle-mapping-table-wrap th,
.mutuelle-mapping-table-wrap td {
  padding: 9px;
}

.mutuelle-mapping-table-wrap tr.selected td {
  background: #eff6ff;
}

.mutuelle-status-draft,
.mutuelle-status-outdated {
  background: #fff7ed;
  color: #9a3412;
}

.mutuelle-status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.mutuelle-status-reimbursed {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 1200px) {
  .mutuelle-workflow-grid,
  .mutuelle-admin-grid,
  .mutuelle-upload-form,
  .mutuelle-generation-controls,
  .mutuelle-visual-toolbar,
  .mutuelle-submission-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) {
  .patient-treatment-layout {
    grid-template-columns: minmax(700px, 1fr) 290px;
    gap: 24px;
  }

  .odontogram-panel.dentalome-odontogram-card,
  .act-status-card {
    min-height: 460px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    padding: 22px 20px 26px;
  }

  .act-status-card {
    padding: 24px 30px 28px;
  }

  .tooth.dentalome-tooth {
    width: 100%;
    min-width: 0;
    min-height: 154px;
    grid-template-rows: minmax(125px, 1fr) 22px;
  }

  .tooth.dentalome-tooth.lower {
    min-height: 154px;
    grid-template-rows: 22px minmax(125px, 1fr);
  }

  .tooth-art {
    width: clamp(35px, 3vw, 52px);
    height: 125px;
    min-height: 125px;
  }

  .tooth strong {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
    padding: 10px;
  }

  .brand span,
  .user-zone span {
    display: none;
  }

  .global-search input {
    font-size: 16px;
  }

  .app-body {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .patient-side-nav {
    display: none;
  }

  .primary-nav {
    top: 126px;
    height: calc(100vh - 126px);
  }

  .primary-nav span {
    display: none;
  }

  .workspace {
    padding: 14px;
  }

  .workspace h1 {
    font-size: 28px;
  }

  .agenda-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }

  .agenda-page-head select {
    width: 100%;
  }

  .agenda-practitioner-select {
    transform: none;
  }

  .agenda-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
  }

  .agenda-side {
    display: none;
    order: 4;
  }

  .agenda-card.mobile-side-open .agenda-side {
    display: grid;
    gap: 12px;
  }

  .agenda-side .add-appointment {
    width: max-content;
  }

  .agenda-side .mini-calendar {
    margin-top: 0;
  }

  .agenda-main-panel {
    order: 1;
  }

  .agenda-side .legend-row {
    margin-top: 0;
  }

  .agenda-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .agenda-toolbar h2 {
    order: initial;
    min-width: 0;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
  }

  .agenda-arrows {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: visible;
    padding-bottom: 0;
    gap: 6px;
  }

  .agenda-arrows .muted-button {
    font-size: 0;
    padding: 0 9px;
  }

  .agenda-arrows .muted-button::after {
    content: "Auj.";
    font-size: 13px;
  }

  .agenda-arrows .segmented button {
    min-width: 0;
    padding: 0 9px;
  }

  .agenda-arrows .segmented button:nth-child(2) {
    font-size: 0;
  }

  .agenda-arrows .segmented button:nth-child(2)::after {
    content: "Sem.";
    font-size: 13px;
  }

  .agenda-filter-menu {
    left: 50%;
    right: auto;
    width: min(318px, calc(100vw - 48px));
    transform: translateX(-50%);
  }

  .calendar-toggle {
    order: initial;
  }

  .calendar-scroll-viewport {
    width: 100%;
    height: min(650px, calc(100vh - 250px));
    min-height: 520px;
  }

  .week-grid,
  .day-agenda {
    min-width: 900px;
  }

  .patient-header,
  .patient-grid,
  .chart-grid,
  .kpi-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .fidelity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financial-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .week-grid {
    overflow-x: auto;
    grid-template-columns: 56px repeat(7, 170px);
  }

  .tooth-row {
    flex-wrap: wrap;
  }
}

/* Current Dentalome patient-detail parity overrides */
.app-body.patient-detail-mode {
  grid-template-columns: 255px minmax(0, 1fr);
}

.patient-workspace {
  padding: 24px 32px 46px;
  background: #f7f8fb;
}

.patient-header.dentalome-patient-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 24px;
  min-height: 154px;
  margin: 0 0 22px;
  padding: 20px 22px 0;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.08);
}

.dentalome-patient-header .patient-profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.dentalome-patient-header .patient-initials-tile {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 12px;
  background: #2f5f94;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.dentalome-patient-header .patient-profile-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dentalome-patient-header .patient-title {
  gap: 10px;
}

.dentalome-patient-header .patient-title h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
  color: #20252c;
  letter-spacing: 0;
}

.dentalome-patient-header .patient-alert-icon {
  color: #6b7280;
}

.dentalome-patient-header .patient-profile-text p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.dentalome-patient-header .patient-contact-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dentalome-patient-header .patient-contact-line svg {
  color: #6b7280;
}

.patient-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.patient-action-button,
.patient-more-button {
  height: 38px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  color: #20252c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.patient-action-button.archive {
  color: #5f6673;
}

.patient-more-button {
  width: 40px;
  padding: 0;
}

.dentalome-patient-header .patient-warning {
  grid-column: 1 / -1;
  margin: 8px 0 0 96px;
  color: #8a610e;
  font-weight: 750;
}

.patient-profile-tabs {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 0;
  min-height: 50px;
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  overflow-x: auto;
}

.patient-profile-tabs button {
  height: 50px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #424852;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.patient-profile-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: #fff;
}

.patient-treatment-card {
  padding: 0 14px 26px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.08);
}

.patient-treatment-card .treatment-card-top {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 28px 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.patient-treatment-card .treatment-tabs {
  width: max-content;
  min-height: 36px;
  padding: 3px;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: #f7f8fb;
}

.patient-treatment-card .treatment-tabs button {
  min-height: 30px;
  min-width: 78px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.patient-treatment-card .treatment-tabs button.active {
  color: #111827;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

.treatment-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  padding-right: 4px;
  white-space: nowrap;
}

.treatment-financials .metric {
  display: grid;
  gap: 4px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.treatment-financials .metric span::after {
  content: "";
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.patient-treatment-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 480px;
  padding: 20px 28px 20px;
  border-radius: 18px;
  box-shadow: 0 0 9px -2px #ccc;
}

.act-status-card {
  min-height: 480px;
  padding: 24px 36px 30px;
  border-radius: 16px;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.1);
}

.add-act-button {
  min-height: 42px;
  border-radius: 10px;
  background: #1677ff;
  font-size: 17px;
  font-weight: 850;
}

.act-status-head {
  font-size: 18px;
}

.act-status-list button {
  font-size: 15px;
}

.act-status-list button strong {
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 22px;
  background: #6d9ff4;
  font-size: 14px;
}

.empty-search-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f3f7;
  color: #667085;
}

.odontogram {
  max-width: 1030px;
  margin: 4px auto 0;
  gap: 16px;
}

.tooth-group {
  grid-template-columns: repeat(8, minmax(30px, 1fr));
  gap: clamp(5px, 0.55vw, 10px);
}

.tooth.dentalome-tooth,
.tooth.dentalome-tooth.lower {
  min-height: 118px;
  grid-template-rows: 20px minmax(88px, 1fr);
  gap: 4px;
}

.tooth.dentalome-tooth.lower {
  grid-template-rows: minmax(88px, 1fr) 20px;
}

.tooth-art {
  width: clamp(32px, 2.55vw, 56px);
  height: 88px;
  min-height: 88px;
  padding: 1px 3px;
  border-radius: 12px;
}

.tooth strong {
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.tooth.dentalome-tooth.treated .tooth-svg svg .cls-2,
.tooth.dentalome-tooth.treated .tooth-svg svg .cls-3 {
  fill: var(--dent-acte-color, #49d889);
}

.odontogram-midline {
  min-height: 118px;
}

.patient-document-actions {
  margin: 18px 0 18px;
}

.patient-document-actions button {
  min-height: 40px;
  min-width: 132px;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.patient-document-actions button:first-child {
  background: #ebf3ff;
  color: #1677ff;
  border: 1px solid #c6dcff;
}

.patient-operations-wrap {
  border: 1px solid #d9dee7;
  border-top: 5px solid #1677ff;
  border-radius: 14px;
  overflow: hidden;
}

.patient-operations-toolbar {
  margin: 0 0 18px;
}

.patient-operations-toolbar select {
  width: 240px;
  height: 36px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 650;
}

.patient-operations-table {
  min-width: 1040px;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 13px 14px;
  font-size: 15px;
}

.patient-operations-table th {
  background: #dce9fb;
  font-size: 15px;
  font-weight: 850;
}

.patient-operations-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.sessions-link {
  font-size: 15px;
}

.dentalome-status {
  min-width: 118px;
  min-height: 34px;
  border-radius: 20px;
  background: #6d9ff4;
  font-size: 15px;
}

.check-pill {
  min-width: 52px;
  min-height: 30px;
  font-size: 18px;
}

.dentalome-actions {
  gap: 10px;
}

.dentalome-actions .plain-icon.small {
  width: 28px;
  height: 28px;
}

.dentalome-action-img {
  width: 20px;
  height: 20px;
}

.patient-operations-table .teeth-pills b {
  min-width: 30px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #0b66e4;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.patient-operations-table .teeth-pills.empty b {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
}

.patient-operations-table .teeth-pills:empty::after {
  content: "--";
  min-width: 30px;
  display: inline-grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1500px) {
  .patient-treatment-layout {
    grid-template-columns: minmax(650px, 1fr) 270px;
    gap: 20px;
  }

  .tooth.dentalome-tooth,
  .tooth.dentalome-tooth.lower {
    min-height: 108px;
  }

  .tooth-art {
    width: clamp(30px, 2.45vw, 50px);
    height: 80px;
    min-height: 80px;
  }
}

/* Dentalome current UI parity pass: patient acts and odontogram ordering. */
.dentalome-patient-header .patient-initials-tile {
  background: #0b66e4;
}

.tooth.dentalome-tooth,
.tooth.dentalome-tooth.lower {
  grid-template-rows: 20px minmax(88px, 1fr);
}

.tooth.dentalome-tooth.lower {
  grid-template-rows: minmax(88px, 1fr) 20px;
}

.operation-select-cell {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 70px;
  background: #f9f9fa;
}

.patient-operations-table .dentalome-checkbox-control {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: block;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patient-operations-table .dentalome-checkbox-control[data-state="checked"] {
  border-color: #025ce2;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.patient-operations-table .dentalome-checkbox-control svg {
  width: 12px;
  height: 12px;
}

.operation-select-cell .session-shortcut {
  width: 24px;
  height: 24px;
  color: #171b21;
}

.dentalome-actions {
  gap: 12px;
}

.dentalome-actions .plain-icon.small {
  width: 28px;
  height: 28px;
  color: #171b21;
}

.dentalome-actions .plain-icon.small svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.6;
}

.dentalome-actions .plain-icon.small[title="Supprimer"] {
  color: #ff2b2b;
}

.dentalome-inline-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.patient-document-actions button {
  background: #0068df;
  color: #fff;
}

.patient-document-actions button:first-child {
  background: #ebf3ff;
  color: #1677ff;
  border: 1px solid #c6dcff;
}

.patient-treatment-layout {
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr) 550px;
}

.patient-treatment-card .treatment-card-top {
  padding-right: 590px;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 392px;
}

.act-status-card {
  min-height: 502px;
  margin-top: -110px;
}

.patient-document-actions {
  margin: 54px 0 18px;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 9px 12px;
  font-size: 13px;
}

.patient-operations-table th {
  font-size: 13px;
  font-weight: 750;
}

.dentalome-status {
  min-width: 74px;
  min-height: 24px;
  padding: 2px 8px;
  gap: 3px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Dentalome current UI parity pass: split treatment and operation cards. */
.patient-treatment-card {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.patient-treatment-layout {
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr) 573px;
  gap: 28px;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 502px;
  padding: 0 28px 20px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 20px;
  padding: 28px 8px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.odontogram-panel.dentalome-odontogram-card .treatment-financials {
  gap: 34px;
  padding-right: 0;
}

.act-status-card {
  min-height: 502px;
  margin-top: 0;
}

.patient-operations-card {
  margin-top: 40px;
  padding: 12px 14px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.08);
}

.patient-document-actions {
  margin: 0 0 18px;
}

.topbar {
  padding-left: 64px;
}

.patient-action-button.archive {
  color: #f04438;
  border-color: #fed7aa;
  background: #fff7ed;
}

.add-act-button {
  color: #fff;
}

.dentalome-status svg {
  width: 16px;
  height: 16px;
}

/* Dentalome current global list parity pass. */
.global-list-workspace {
  min-height: calc(100vh - 60px);
  padding: 30px 32px 44px;
  background: #f6f7f9;
}

.charges-workspace {
  padding-right: 24px;
  padding-left: 24px;
}

.acts-workspace {
  padding-top: 24px;
  padding-right: 24px;
  padding-left: 24px;
}

.payments-workspace {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 24px;
  padding-right: 24px;
  padding-left: 24px;
}

.app-shell[data-screen="payments"] > .app-body > .main {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.app-shell[data-screen="payments"] > .app-body > .main > .topbar {
  flex: 0 0 60px;
}

.global-list-workspace.payments-workspace .page-header {
  margin-bottom: 24px;
}

.global-list-workspace.payments-workspace .page-header h1 {
  width: 100%;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.6px;
  transform: none;
  transform-origin: left center;
}

.global-list-workspace.payments-workspace .page-header > div:first-child {
  width: 100%;
}

.global-list-workspace.payments-workspace .page-header h1 > span {
  transform: none;
}

.global-list-workspace.payments-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.global-list-workspace.charges-workspace .page-header {
  margin-bottom: 40px;
}

.global-list-workspace.acts-workspace .page-header {
  margin-bottom: 40px;
}

.global-list-workspace.acts-workspace .page-header h1 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
  transform: none;
}

.global-list-workspace.acts-workspace .page-header > div:first-child {
  width: 100%;
}

.global-list-workspace.acts-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.global-list-workspace .page-header,
.dentalome-notes-workspace .page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
}

.global-list-workspace .page-header h1,
.dentalome-notes-workspace .page-header h1 {
  margin: 0;
  color: #101114;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.global-list-workspace .page-header p,
.dentalome-notes-workspace .page-header p {
  margin: 11px 0 0;
  color: #6d7280;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
}

.page-header-actions,
.filter-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Dentalome invoice list contract. */
.global-list-workspace.documents-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.global-list-workspace.documents-workspace .page-header {
  height: 60px;
  margin: 0;
}

.global-list-workspace.documents-workspace .page-header > div:first-child {
  width: 100%;
}

.global-list-workspace.documents-workspace .page-header h1 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.6px;
}

.global-list-workspace.documents-workspace .page-header h1 > span {
  transform: none;
}

.global-list-workspace.documents-workspace .page-header p {
  margin: 4px 0 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.global-list-workspace.documents-workspace .document-filter-row {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 16px;
  overflow: visible;
}

.global-list-workspace.documents-workspace .document-filter-primary {
  display: flex;
  height: 36px;
  flex: 1 1 0%;
  align-items: center;
  gap: 16px;
}

.global-list-workspace.documents-workspace .document-filter-primary .dentalome-search-input {
  width: 100%;
  max-width: 384px;
  min-width: 0;
  height: 36px;
  flex: 1 1 auto;
  padding: 4px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.global-list-workspace.documents-workspace .document-filter-primary .payments-date-range-picker,
.global-list-workspace.documents-workspace .document-filter-primary .payments-date-range-trigger {
  width: 221.921875px;
  min-width: 221.921875px;
  max-width: 221.921875px;
  flex: 0 0 221.921875px;
}

.global-list-workspace.documents-workspace .document-filter-primary .payments-date-range-trigger {
  height: 36px;
  padding: 8px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.global-list-workspace.documents-workspace .document-filter-row .filter-row-actions {
  width: auto;
  flex: 0 0 auto;
  margin-left: 0;
}

.global-list-workspace.documents-workspace .document-filter-row .dentalome-download-button {
  width: 135.21875px;
  min-width: 135.21875px;
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.global-list-workspace.documents-workspace .dentalome-table-shell.footer-outside {
  width: 100%;
}

.global-list-workspace.documents-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
  background: #fff;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap table {
  width: 756.90625px;
  min-width: 756.90625px;
  table-layout: fixed;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.global-list-workspace.documents-workspace .dentalome-table-wrap th,
.global-list-workspace.documents-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-weight: 400;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(1),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(1) { width: 176.0625px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(2),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(2) { width: 103.78125px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(3),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(3) { width: 139.453125px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(4),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(4) { width: 136.0546875px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(5),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(5) { width: 73.5546875px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(6),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(6) { width: 128px; }

.global-list-workspace.documents-workspace .dentalome-table-wrap thead tr,
.global-list-workspace.documents-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.global-list-workspace.documents-workspace .dentalome-table-wrap tbody tr:last-child {
  height: 48.5px;
  border-bottom: 0;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.global-list-workspace.documents-workspace .document-cell-block {
  display: block;
}

.global-list-workspace.documents-workspace .document-value-medium {
  font-weight: 500;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap .link-button {
  color: rgb(2, 92, 226);
  font-weight: 400;
}

.global-list-workspace.documents-workspace .dentalome-table-outside-footer {
  width: 100%;
  height: 69px;
  min-height: 69px;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
}

.global-list-workspace.documents-workspace .documents-table-footer {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: space-between;
}

.global-list-workspace.documents-workspace .documents-table-footer > span:first-child {
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .global-list-workspace.documents-workspace .dentalome-table-wrap table {
    width: 100%;
    min-width: 100%;
    table-layout: auto;
  }

  .global-list-workspace.documents-workspace .documents-table-footer {
    min-height: 36px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer > span:first-child {
    position: static;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination {
    width: 100%;
    height: 36px;
    flex: 1 1 auto;
    justify-content: center;
    gap: 4px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-list {
    gap: 4px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-link,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-ellipsis {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:first-child,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:last-child,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-previous,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-next {
    width: auto;
    min-width: 0;
    gap: 4px;
    padding: 8px 12px;
  }
}

.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap th:nth-child(1),
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap td:nth-child(1) { width: 216.265625px; }
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap th:nth-child(2),
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap td:nth-child(2) { width: 220.0625px; }
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap th:nth-child(3),
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap td:nth-child(3) { width: 270.921875px; }
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap th:nth-child(4),
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap td:nth-child(4) { width: 266.75px; }

.global-list-workspace.documents-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) {
  height: 53px;
  min-height: 53px;
}

.global-list-workspace.documents-workspace .documents-table-footer:not(:has(.patients-pagination)) {
  height: 20px;
  min-height: 20px;
}

.global-list-workspace.documents-workspace .dentalome-sort-header {
  height: 36px;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8.4px;
}

.global-list-workspace.documents-workspace .dentalome-sort-header svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  color: inherit;
  stroke-width: 2;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap .row-actions {
  gap: 8px;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap .row-actions .plain-icon.small {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap .row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.dentalome-segmented-tabs {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 40px;
  padding: 2px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background: #f8fafc;
}

.dentalome-segmented-tabs button {
  height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.dentalome-segmented-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.1);
}

.dentalome-segmented-tabs.single-tab {
  margin-bottom: 18px;
}

.dentalome-pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.dentalome-pagination-row button,
.dentalome-pagination-row strong {
  min-width: 34px;
  height: 34px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
}

.dentalome-pagination-row button:disabled {
  color: #98a2b3;
}

.dentalome-pagination-row strong {
  border-color: #005fd8;
  background: #005fd8;
  color: #fff;
}

.global-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.global-period-control {
  position: relative;
  display: inline-flex;
}

.global-period-trigger.dentalome-select-button {
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8.4px;
  line-height: 20px;
}

.global-period-trigger.dentalome-select-button:focus {
  border-color: rgb(2, 92, 226);
  outline: 0;
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    oklab(0.519343 -0.0356103 -0.213735 / 0.5) 0 0 0 3px,
    rgba(0, 0, 0, 0.05) 0 1px 2px 0;
}

.global-period-trigger.dentalome-select-button > svg {
  margin-left: 8px;
}

.global-period-menu {
  position: absolute;
  z-index: 80;
  top: 40px;
  left: 0;
  display: block;
  width: 128px;
  padding: 4px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.global-period-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

.global-period-menu button:hover,
.global-period-menu button:focus-visible {
  background: oklch(0.967 0.001 286.375);
}

.charges-filter-row {
  justify-content: flex-start;
}

.acts-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  overflow-x: auto;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 14.4px 14.4px 0 0;
}

.acts-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.acts-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.acts-workspace .dentalome-table-wrap th,
.acts-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.acts-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.acts-workspace .dentalome-table-wrap td {
  height: auto;
  padding: 8px;
  font-weight: 400;
}

.acts-workspace .dentalome-table-wrap thead tr,
.acts-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.acts-workspace .dentalome-table-wrap tbody tr:last-child {
  border-bottom: 0;
}

.acts-workspace .dentalome-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.acts-workspace .dentalome-table-wrap .link-button {
  color: rgb(2, 92, 226);
  font-weight: 400;
}

.acts-workspace .dentalome-table-wrap .teeth-pills {
  display: flex;
  width: 40.1px;
  flex-wrap: wrap;
  gap: 4px;
}

.global-list-workspace.acts-workspace .dentalome-table-wrap .teeth-pills {
  width: auto;
}

.acts-workspace .dentalome-table-wrap .teeth-pills b {
  display: flex;
  min-width: 0;
  min-height: 22px;
  height: 22px;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid rgb(220, 252, 231);
  border-radius: 999px;
  background: rgb(240, 253, 244);
  color: rgb(22, 163, 74);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.acts-workspace .dentalome-table-wrap .teeth-pills.empty b {
  min-height: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 20px;
}

.acts-workspace .dentalome-table-wrap .green-text {
  color: oklch(0.627 0.194 149.214);
  font-weight: 500;
}

.acts-workspace .dentalome-table-wrap .red-text {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.acts-workspace .dentalome-table-wrap .operation-zero-remaining {
  font-weight: 500;
}

.acts-workspace .dentalome-table-outside-footer {
  display: flex;
  height: 69px;
  align-items: center;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.acts-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) {
  height: 53px;
  min-height: 53px;
}

.operations-table-footer {
  display: flex;
  width: 100%;
  align-items: center;
}

.operations-table-footer .patients-pagination {
  flex: 1;
  width: auto;
  height: 36px;
  margin-left: 0;
}

.payments-date-range-picker {
  position: relative;
  display: inline-flex;
}

.payments-tabs.dentalome-segmented-tabs {
  display: flex;
  align-self: flex-start;
  width: max-content;
  min-height: 36px;
  margin-bottom: 24px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.552 0.016 285.938);
}

.payments-tabs.dentalome-segmented-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 27px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payments-tabs.dentalome-segmented-tabs button.active {
  background: oklch(1 0 0);
}

.payments-tab-panel {
  width: 100%;
  min-width: 0;
  outline: 0;
}

.payments-tab-panel-all {
  padding-top: 0;
}

.payments-tab-panel-all::before {
  display: table;
  content: "";
}

.payments-tab-panel-all .payments-filter-row {
  margin-top: 16px;
}

.payments-date-range-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 36px;
  padding: 8px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
}

.payments-date-range-trigger svg {
  margin-right: 8px;
}

.payments-date-range-popover {
  position: absolute;
  z-index: 80;
  top: 40px;
  left: 0;
  display: grid;
  grid-template-columns: 224px 224px;
  align-items: start;
  gap: 16px;
  box-sizing: border-box;
  width: 490px;
  padding: 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  outline: 0;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.payments-calendar-nav {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payments-calendar-nav.previous {
  left: 12px;
}

.payments-calendar-nav.next {
  right: 12px;
}

.payments-range-calendar-month {
  display: grid;
  grid-template-rows: 32px auto;
  gap: 16px;
  width: 224px;
}

.payments-range-calendar-caption {
  position: relative;
  display: flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
}

.payments-range-calendar-caption .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payments-range-calendar-caption select {
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
}

.payments-range-calendar-caption .payments-calendar-month-select.offset-0 {
  width: 51.07px;
}

.payments-range-calendar-caption .payments-calendar-month-select.offset-1 {
  width: 55.43px;
}

.payments-range-calendar-caption .payments-calendar-year-select {
  width: 63.79px;
}

.payments-range-calendar-grid {
  width: 224px;
  min-width: 224px;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: oklch(0.141 0.005 285.823);
}

.payments-range-calendar-grid thead,
.payments-range-calendar-grid tbody,
.payments-range-calendar-grid tr,
.payments-range-calendar-grid th,
.payments-range-calendar-grid td {
  border: 0;
}

.payments-range-calendar-grid th {
  width: 32px;
  height: 19.2px;
  padding: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: center;
}

.payments-range-calendar-grid td {
  box-sizing: border-box;
  width: 32px;
  height: 40px;
  padding: 8px 0 0;
  text-align: center;
}

.payments-range-calendar-grid button {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.payments-range-calendar-grid button.outside {
  color: oklch(0.552 0.016 285.938);
}

.payments-range-calendar-grid td.range-middle button {
  border-radius: 0;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.21 0.006 285.885);
}

.payments-range-calendar-grid td.range-start button,
.payments-range-calendar-grid td.range-end button {
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
}

.payments-filter-row .dentalome-download-button {
  min-width: 135px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-weight: 500;
  line-height: 20px;
}

.payments-filter-row .dentalome-download-button:hover,
.payments-filter-row .dentalome-download-button:active {
  background: oklab(0.519343 -0.0356103 -0.213735 / 0.9);
}

.dentalome-table-shell {
  width: 100%;
}

.payments-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  overflow-x: auto;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.payments-tab-all .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.payments-tab-all .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.payments-tab-all .dentalome-table-wrap th,
.payments-tab-all .dentalome-table-wrap td {
  border-bottom: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.payments-tab-all .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  background: transparent;
  font-weight: 500;
}

.payments-tab-all .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-weight: 400;
}

.payments-tab-all .dentalome-table-wrap thead tr,
.payments-tab-all .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.payments-tab-all .dentalome-table-wrap tbody tr:last-child {
  border-bottom: 0;
}

.payments-tab-all .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.global-list-workspace.payments-tab-all .row-actions {
  display: flex;
  gap: 8px;
}

.payments-tab-all .row-actions .plain-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.payments-workspace .dentalome-table-outside-footer {
  display: flex;
  height: 69px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.payments-workspace .dentalome-table-outside-footer:not(:has(.payments-pagination)) {
  height: 53px;
  min-height: 53px;
}

.payments-tab-unpaid .dentalome-table-outside-footer {
  height: 69px;
}

.payments-tab-unpaid .payments-tabs {
  margin-bottom: 24px;
}

.payments-total-label {
  flex: 0 0 auto;
  color: #6b7280;
}

.payments-pagination {
  display: flex;
  flex: 1;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: oklch(0.141 0.005 285.823);
}

.payments-workspace .dentalome-table-outside-footer > .payments-pagination {
  flex: 1;
  width: auto;
  margin-left: 0;
}

.payments-pagination button,
.payments-pagination-ellipsis {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payments-pagination button:first-child,
.payments-pagination button:last-child {
  gap: 4px;
  padding: 8px 12px;
}

.payments-pagination button:first-child {
  width: 102px;
}

.payments-pagination button:last-child {
  width: 76px;
}

.payments-pagination button.active {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: #fff;
}

.payments-pagination button:disabled {
  opacity: 0.5;
}

.payments-pagination-ellipsis svg {
  width: 16px;
  height: 16px;
}

.payments-tab-unpaid .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payments-tab-unpaid .dentalome-table-wrap td {
  height: 37px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.payments-tab-unpaid .dentalome-table-wrap tbody tr:last-child td {
  height: 36px;
}

.payments-tab-unpaid .dentalome-table-wrap .link-button {
  color: rgb(2, 92, 226);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.payments-tab-unpaid .dentalome-table-wrap tfoot td {
  height: 64px;
}

.document-filter-row {
  justify-content: flex-start;
  margin-top: 42px;
}

.document-filter-row .date-range-pill {
  gap: 8px;
}

.document-filter-row .date-range-pill input {
  width: 86px;
}

.document-filter-row .filter-row-actions,
.payments-workspace .filter-row-actions,
.acts-workspace .filter-row-actions,
.charges-workspace .filter-row-actions {
  margin-left: auto;
}

.charges-add-button {
  min-width: 186px;
  margin-left: auto;
}

.prothese-workspace {
  padding-right: 24px;
  padding-left: 24px;
}

.prothese-workspace .page-header {
  margin-bottom: 24px;
}

.prothese-toolbar-card {
  min-height: 84px;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.prothese-toolbar-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.prothese-search-control {
  display: grid;
  gap: 4px;
  min-width: 400px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 400;
}

.prothese-search-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.prothese-search-shell svg {
  position: absolute;
  left: 14px;
  color: #7c8594;
}

.prothese-search-shell input {
  width: 400px;
  height: 36px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 0 14px 0 38px;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}

.prothese-search-shell input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.prothese-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prothese-filter-shell {
  position: relative;
}

.prothese-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 120px;
  padding: 0 13px;
  border: 1px dashed #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.prothese-filter-button.active {
  border-color: #b9cff6;
  background: #f8fbff;
  color: #075fe5;
}

.prothese-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 188px;
  padding: 8px;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.prothese-filter-menu button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3f4651;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}

.prothese-filter-menu button.active {
  background: #e6f0ff;
  color: #075fe5;
}

.prothese-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(2, 92, 226, 0.3);
  border-radius: 8px;
  background: rgba(2, 92, 226, 0.08);
  padding: 8px 10px;
}

.prothese-active-filters > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 4px;
  color: #075fe5;
  font-size: 12px;
  font-weight: 800;
}

.prothese-active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid rgba(2, 92, 226, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
}

.prothese-active-filters small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.prothese-filter-panel {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1fr) minmax(190px, 1fr);
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid #eef0f3;
  padding: 12px 4px 1px;
}

.prothese-filter-panel label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.prothese-filter-panel input,
.prothese-filter-panel select {
  width: 100%;
  height: 36px;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.prothese-filter-panel .appointment-source-combobox {
  width: 100%;
}

.prothese-filter-panel .appointment-source-combobox .combobox-trigger {
  min-height: 36px;
  border-color: #dfe4ec;
  padding: 0 12px;
  box-shadow: none;
}

.prothese-filter-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.prothese-filter-input-shell svg {
  position: absolute;
  left: 12px;
  color: #7c8594;
}

.prothese-filter-input-shell input {
  padding-left: 35px;
}

.prothese-date-range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.prothese-add-button {
  height: 36px;
  min-width: 164px;
}

.prothese-row-actions {
  gap: 8px;
}

.prothese-paye-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #d9dee7;
  padding: 2px;
  vertical-align: middle;
}

.prothese-paye-switch span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.16s ease;
}

.prothese-paye-switch.checked {
  background: #075fe5;
}

.prothese-paye-switch.checked span {
  transform: translateX(16px);
}

.prothese-paye-switch:disabled {
  opacity: 0.65;
}

.delete-confirm-strong {
  font-weight: 800;
  color: #111827;
}

.prothese-workspace .dentalome-table-wrap {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.prothese-workspace .dentalome-table-wrap table {
  min-width: 1320px;
}

.prothese-workspace .dentalome-table-wrap th,
.prothese-workspace .dentalome-table-wrap td {
  height: 40px;
}

.prothese-workspace .dentalome-table-wrap tfoot td {
  height: 52px;
}

.date-range-pill,
.dentalome-search-input,
.dentalome-select-button,
.dentalome-download-button,
.dentalome-secondary-button,
.dentalome-outline-button {
  height: 36px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.date-range-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.date-range-pill input {
  width: 96px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.date-range-pill input::-webkit-calendar-picker-indicator {
  display: none;
  opacity: 0;
}

.date-range-pill input::-webkit-inner-spin-button,
.date-range-pill input::-webkit-clear-button {
  display: none;
}

.date-range-pill span {
  white-space: nowrap;
  margin: 0 -3px;
}

.dentalome-search-input {
  width: 384px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.dentalome-select-button,
.dentalome-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 156px;
  padding: 0 16px;
  background: #fff;
  color: #111827;
}

.dentalome-download-button,
.dentalome-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 136px;
  padding: 0 16px;
  text-decoration: none;
}

.dentalome-download-button {
  border-color: #0062df;
  background: #005fd8;
  color: #fff;
  font-weight: 600;
}

.dentalome-secondary-button {
  border-color: #5a9a65;
  background: #5a9a65;
  color: #fff;
  font-weight: 600;
}

.dentalome-blue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 136px;
  padding: 0 16px;
  border: 1px solid #0062df;
  border-radius: 8px;
  background: #005fd8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.dentalome-outline-button {
  min-width: auto;
}

.users-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
}

.users-controls-row .dentalome-segmented-tabs {
  margin: 0;
}

.users-add-button {
  min-width: 230px;
  height: 37px;
  border-radius: 9px;
  background: #005fe5;
  border-color: #005fe5;
  font-weight: 600;
}

.users-workspace .dentalome-table-wrap th,
.users-workspace .dentalome-table-wrap td {
  height: 51px;
}

.users-row-actions {
  justify-content: flex-start;
  gap: 20px;
}

.users-row-actions .plain-icon:first-child {
  color: #0f172a;
}

.users-action-modal {
  position: relative;
  width: min(672px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.users-action-modal ::selection {
  background: #025ce2;
  color: #fff;
}

.users-action-modal .modal-head,
.users-permissions-modal .modal-head {
  min-height: 18px;
  margin-bottom: 16px;
}

.users-action-modal .modal-head h2,
.users-permissions-modal .modal-head h2 {
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.users-action-modal .modal-head h2 {
  flex: 1;
  width: 100%;
}

.users-action-modal .modal-close-button,
.users-permissions-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.users-form-grid {
  row-gap: 24px;
  column-gap: 24px;
}

.users-form-grid label {
  position: relative;
  display: grid;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.users-form-grid input,
.users-form-grid textarea {
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.users-form-grid textarea {
  height: 80px;
  min-height: 80px;
  background: transparent;
  padding: 8px 12px;
  resize: none;
}

.users-form-grid input:disabled {
  cursor: not-allowed;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  opacity: .5;
}

.users-form-grid label[data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.users-form-grid label[data-invalid="true"] input,
.users-form-grid label[data-invalid="true"] .users-phone-input {
  border-color: oklch(0.577 0.245 27.325);
}

.users-form-grid label[data-invalid="true"] input:focus {
  border-color: oklch(0.577 0.245 27.325);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, .2);
}

.users-field-error {
  position: static;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
}

.users-form-grid label[data-invalid="true"] {
  margin-bottom: 0;
}

.users-action-modal .modal-actions {
  width: calc(100% + 48px);
  height: 69px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.users-action-modal .modal-actions button,
.users-permissions-modal .modal-actions button {
  min-height: 36px;
  height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-action-modal .primary-button,
.users-permissions-modal .primary-button {
  border: 0;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.password-field-shell {
  position: relative;
  display: block;
}

.users-password-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
}

.users-phone-input {
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr);
  height: 36px;
  border: 0;
  border-radius: 8.4px;
  box-shadow: none;
}

.users-phone-input > button {
  display: flex;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-right: 0;
  border-radius: 8.4px 0 0 8.4px;
  padding: 0 8px;
  background: #fff;
  color: #71717a;
}

.users-phone-input .patient-phone-flag {
  width: 24px;
  height: 16px;
}

.users-form-grid .users-phone-input > input {
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-left: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 0 8.4px 8.4px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  padding: 4px 12px;
}

.password-field-shell input {
  padding: 4px 40px 4px 12px;
}

.password-visibility-button {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-grid;
  width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8.4px;
  padding: 8px 12px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.password-visibility-button:hover {
  background: #f2f4f7;
  color: #101828;
}

.users-password-edit-button {
  display: flex;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 0;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  line-height: 20px;
  gap: 8px;
}

.users-password-confirm-modal {
  display: grid;
  gap: 0;
  width: min(512px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px;
  background: oklch(1 0 0);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.users-password-confirm-modal .modal-head {
  min-height: 28px;
  margin-bottom: 8px;
}

.users-password-confirm-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
}

.users-password-confirm-modal > p {
  min-height: 40px;
  margin: 0 0 16px;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.users-password-confirm-modal .modal-actions {
  height: 36px;
  gap: 8px;
  margin: 0;
}

.users-password-confirm-modal .modal-actions button,
.users-password-confirm-modal .modal-actions button:not(.primary-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  background: oklch(1 0 0);
  border-color: oklch(0.92 0.004 286.32);
}

.users-password-confirm-modal .modal-actions .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.users-permissions-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.users-permissions-modal .modal-head h2 {
  display: block;
  flex: 1;
  width: 100%;
}

.users-permissions-title-name {
  margin-left: 6px;
  color: #71717a;
  font-weight: 400;
}

.users-permissions-form {
  display: grid;
  gap: 16px;
  padding: 16px 0 0;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  height: 32px;
  min-height: 32px;
}

.permission-copy {
  display: grid;
  height: 32px;
  gap: 4px;
}

.permission-label {
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.permission-description {
  color: #71717a;
  font-size: 12.5px;
  line-height: 14px;
}

.permission-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 32px;
  height: 18.4px;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: calc(infinity * 1px);
  background: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  outline: none;
  padding: 0;
  transition: background 150ms ease, box-shadow 150ms ease;
  margin-right: 8px;
}

.permission-switch span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  transition: transform 120ms ease;
}

.permission-switch[data-state="checked"] {
  background: #025ce2;
}

.permission-switch[data-state="checked"] span {
  transform: translateX(14px);
}

.permission-switch:focus-visible {
  box-shadow: 0 0 0 3px rgba(7, 95, 229, 0.18);
}

.permission-switch-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.users-permissions-modal .modal-actions {
  width: calc(100% + 48px);
  height: 85px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.users-permissions-modal .modal-actions button,
.users-permissions-modal .modal-actions button:not(.primary-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.141 0.005 285.823);
  background: oklch(1 0 0);
  border: 1px solid oklch(0.92 0.004 286.32);
  gap: 8px;
}

.users-permissions-modal .modal-actions .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  gap: 8px;
}

.patient-toast-region.users-toast-region {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: auto;
  width: 356px;
  z-index: 90;
}

.patient-toast-message.users-toast-message {
  display: flex;
  width: 356px;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #fee2e2;
  border-radius: 8.4px;
  background: #fff1f2;
  color: #dc0000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-transform: none;
}

.patient-toast-message.users-toast-message span {
  white-space: nowrap;
}

.users-toast-icon {
  flex: 0 0 16px;
  fill: currentColor;
  stroke: #fff;
  stroke-width: 2.5;
}

.users-delete-modal .modal-actions button,
.users-delete-modal .modal-actions button:not(.primary-button),
.users-delete-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.dentalome-table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
}

.dentalome-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.dentalome-table-wrap th,
.dentalome-table-wrap td {
  height: 48px;
  padding: 9px 10px;
  border-bottom: 1px solid #dde3eb;
  color: #0f172a;
  font-size: 13.5px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

.dentalome-table-wrap th {
  background: #e6f0ff;
  color: #111827;
  font-weight: 600;
}

.dentalome-sort-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.dentalome-sort-header svg {
  color: #6b7280;
}

.dentalome-table-wrap tbody tr:last-child td {
  border-bottom: 1px solid #dde3eb;
}

.dentalome-table-wrap tfoot td {
  height: 52px;
  padding: 0 16px;
  border-bottom: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.dentalome-empty-cell {
  height: 96px !important;
  text-align: center !important;
  color: #111827 !important;
}

.dentalome-empty-text {
  display: inline-block;
}

.global-list-workspace .link-button {
  color: #005fd8;
  font-weight: 500;
  text-decoration: none;
}

.global-list-workspace .row-actions {
  gap: 14px;
}

.global-list-workspace .plain-icon {
  width: auto;
  height: auto;
  border: 0 solid oklch(0.92 0.004 286.32);
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.global-list-workspace .plain-icon:last-child {
  color: oklch(0.577 0.245 27.325);
}

.global-list-workspace.acts-workspace .operations-row-actions .plain-icon,
.global-list-workspace.acts-workspace .operations-row-actions .plain-icon:last-child,
.global-list-workspace.acts-workspace .operations-row-actions .session-shortcut {
  color: #111827;
  opacity: 1;
}

.global-list-workspace.acts-workspace .operations-row-actions .plain-icon.danger {
  color: oklch(0.577 0.245 27.325);
}

.global-list-workspace .money-green,
.global-list-workspace .green-text {
  color: #00a842;
  font-weight: 600;
}

.global-list-workspace.payments-workspace .money-green {
  font-weight: 500;
}

.global-list-workspace .red-text {
  color: #ff0000;
  font-weight: 600;
}

/* Dentalome charges list contract. */
.global-list-workspace.charges-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.global-list-workspace.charges-workspace .page-header {
  margin-bottom: 40px;
}

.global-list-workspace.charges-workspace .page-header > div,
.global-list-workspace.charges-workspace .page-header h1,
.global-list-workspace.charges-workspace .page-header p {
  width: 100%;
}

.global-list-workspace.charges-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.global-list-workspace.charges-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.charges-filter-row {
  gap: 16px;
  margin-bottom: 16px;
}

.charges-filter-row .payments-date-range-trigger {
  width: 221.648px;
}

.charges-period-control {
  position: relative;
  display: inline-flex;
}

.charges-filter-row .charges-period-trigger {
  width: 140.727px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8.4px;
  font-weight: 500;
  line-height: 20px;
}

.charges-period-trigger svg {
  margin-left: 8px;
}

.charges-period-menu {
  position: absolute;
  z-index: 80;
  top: 40px;
  left: 0;
  display: grid;
  width: 140.727px;
  padding: 4px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.charges-period-menu button {
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

.charges-period-menu button:hover,
.charges-period-menu button.active {
  background: oklch(0.967 0.001 286.375);
}

.charges-workspace .charges-add-button {
  width: 185.906px;
  min-width: 0;
  margin-left: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.charges-add-button svg {
  margin-right: 8px;
}

.charges-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  overflow-x: auto;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.charges-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  font-size: 14px;
  line-height: 20px;
}

.charges-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.charges-workspace .dentalome-table-wrap th,
.charges-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.charges-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.charges-workspace .dentalome-table-wrap td {
  height: auto;
  padding: 8px;
  font-weight: 400;
}

.charges-workspace .dentalome-table-wrap thead tr,
.charges-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.charges-workspace .dentalome-table-wrap tbody tr:last-child,
.charges-workspace .dentalome-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.charge-amount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8.4px;
  background: oklab(0.577 0.217662 0.112464 / 0.1);
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.global-list-workspace.charges-workspace .charges-row-actions {
  display: flex;
  width: 100%;
  gap: 8px;
}

.global-list-workspace.charges-workspace .charges-row-actions .plain-icon,
.global-list-workspace.charges-workspace .charges-row-actions .plain-icon:last-child {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
}

.global-list-workspace.charges-workspace .charges-row-actions .plain-icon.danger {
  color: oklch(0.577 0.245 27.325);
}

.charges-workspace .dentalome-table-outside-footer {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.charges-total-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.charges-pagination {
  flex: 1;
}

/* Dentalome prosthesis list contract. */
.global-list-workspace.prothese-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.global-list-workspace.prothese-workspace .page-header {
  margin-bottom: 24px;
}

.global-list-workspace.prothese-workspace .page-header > div,
.global-list-workspace.prothese-workspace .page-header h1,
.global-list-workspace.prothese-workspace .page-header p {
  width: 100%;
}

.global-list-workspace.prothese-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.global-list-workspace.prothese-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.global-list-workspace.prothese-workspace .prothese-toolbar-card {
  min-height: 86px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 14.4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.global-list-workspace.prothese-workspace .prothese-toolbar-top {
  height: 56px;
  align-items: flex-end;
}

.global-list-workspace.prothese-workspace .prothese-search-control {
  height: 56px;
  gap: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.global-list-workspace.prothese-workspace .prothese-search-shell input {
  height: 36px;
  padding: 4px 12px 4px 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  font-size: 14px;
  line-height: 20px;
}

.global-list-workspace.prothese-workspace .prothese-search-shell svg {
  left: 12px;
}

.global-list-workspace.prothese-workspace .prothese-filter-button {
  width: 117.555px;
  min-width: 0;
  padding: 8px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.global-list-workspace.prothese-workspace .prothese-add-button {
  width: 163.211px;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.global-list-workspace.prothese-workspace .prothese-filter-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.global-list-workspace.prothese-workspace .prothese-filter-panel .payments-date-range-picker,
.global-list-workspace.prothese-workspace .prothese-filter-panel .payments-date-range-trigger {
  width: 100%;
}

.prothese-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  overflow-x: auto;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.prothese-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 1110.578px;
  table-layout: auto;
  font-size: 14px;
  line-height: 20px;
}

.prothese-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.prothese-workspace .dentalome-table-wrap th,
.prothese-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.prothese-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.prothese-workspace .dentalome-table-wrap td {
  height: auto;
  padding: 8px;
  font-weight: 400;
}

.prothese-workspace .dentalome-table-wrap thead tr,
.prothese-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.prothese-workspace .dentalome-table-wrap tbody tr:last-child,
.prothese-workspace .dentalome-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.global-list-workspace.prothese-workspace .prothese-row-actions {
  display: flex;
  width: 152px;
  align-items: center;
  gap: 8px;
}

.global-list-workspace.prothese-workspace .prothese-row-actions .plain-icon,
.global-list-workspace.prothese-workspace .prothese-row-actions .plain-icon:last-child {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
}

.global-list-workspace.prothese-workspace .prothese-row-actions .plain-icon.danger {
  color: oklch(0.577 0.245 27.325);
}

.global-list-workspace.prothese-workspace .prothese-row-actions .prothese-row-pdf-button {
  background: oklch(0.967 0.001 286.375);
}

.global-list-workspace.prothese-workspace .prothese-paye-switch {
  width: 32px;
  height: 18.4px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 33554400px;
  background: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
}

.global-list-workspace.prothese-workspace .prothese-paye-switch span {
  width: 16px;
  height: 16px;
}

.global-list-workspace.prothese-workspace .prothese-paye-switch.checked span {
  transform: translateX(14px);
}

.global-list-workspace.prothese-workspace .prothese-paye-switch.checked {
  background: rgb(2, 92, 226);
}

.prothese-workspace .dentalome-table-outside-footer {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.prothese-total-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.prothese-pagination {
  flex: 1;
}

.global-list-workspace .teeth-pills {
  display: inline-flex;
  gap: 6px;
}

.global-list-workspace .teeth-pills b {
  min-width: 28px;
  padding: 3px 8px;
  border: 1px solid #c8f5d8;
  border-radius: 999px;
  background: #e9fff1;
  color: #008b3a;
  font-size: 12px;
  font-weight: 500;
}

.global-list-workspace .teeth-pills.empty b {
  border-color: transparent;
  background: transparent;
  color: #111827;
}

.patients-workspace .page-header {
  margin-bottom: 12px;
}

.patients-workspace {
  padding-top: 24px;
  padding-right: 24px;
  padding-bottom: 8px;
  padding-left: 24px;
  background: rgb(246, 247, 248);
}

.patients-workspace .page-header > div:first-child {
  width: 300px;
}

.patients-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.patients-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.patients-tabs {
  display: flex;
  width: fit-content;
  min-height: 36px;
  margin-bottom: 16px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.552 0.016 285.938);
  line-height: 24px;
}

.patients-tabs.dentalome-segmented-tabs button {
  height: 27px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patients-tabs.dentalome-segmented-tabs button.active {
  background: oklch(1 0 0);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.patients-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.patients-search-input {
  width: 300px;
  padding: 4px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.patients-filter-row .dentalome-blue-button {
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patients-workspace .dentalome-table-wrap table {
  min-width: 0;
}

.patients-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.patients-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.patients-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patients-workspace .dentalome-table-wrap tbody tr,
.patients-workspace .dentalome-table-wrap tbody td {
  height: 49px;
}

.patients-workspace .dentalome-table-wrap thead tr,
.patients-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.patients-workspace #patients-directory-table tbody tr {
  border: 0 solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.patients-workspace .dentalome-table-wrap tbody tr:last-child {
  border-bottom: 0;
}

.patients-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.patients-workspace .dentalome-table-wrap tbody tr:last-child {
  height: 48.5px;
}

.patients-workspace .dentalome-table-wrap tbody td {
  padding: 8px;
  border-bottom: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.patients-workspace .dentalome-table-outside-footer {
  width: 100%;
  height: 69px;
  min-height: 69px;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.patients-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) {
  display: flex;
  height: 53px;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 0 0 14.4px 14.4px;
}

.patients-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) .patients-table-footer {
  display: flex;
  width: 100%;
  height: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
}

.patients-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) .patients-table-footer > span {
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.patients-workspace .dentalome-table-outside-footer .patients-table-footer {
  height: 36px;
  min-height: 36px;
}

.patients-workspace .dentalome-table-wrap tfoot td {
  height: 64px;
  padding: 0 16px;
}

.patients-workspace .dentalome-table-wrap tbody tr[id^="patient-directory-row-"] {
  cursor: pointer;
}

.patients-workspace .dentalome-table-wrap tbody tr[id^="patient-directory-row-"]:hover td {
  background: #f4f8ff;
}

.patients-workspace .dentalome-table-wrap tbody tr.patient-directory-row-active td {
  background: #f4f8ff;
}

.patients-workspace .dentalome-table-wrap tbody tr.patient-directory-row-active td:first-child {
  box-shadow: inset 3px 0 0 #075ee8;
}

.patients-table-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  width: 100%;
}

.patients-table-footer > span:first-child {
  position: absolute;
  left: 0;
  color: #6b7280;
}

.patients-page-loading {
  position: absolute;
  left: 96px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.patient-toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  pointer-events: none;
}

.patient-toast-region:has(.document-generation-toast) {
  width: 356px;
  min-width: 356px;
  height: 54px;
  min-height: 54px;
}

.patient-toast-message {
  min-width: 280px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  color: #111827;
  font-size: 14px;
  line-height: 20px;
}

.patient-toast-message.document-generation-toast {
  width: 356px;
  min-width: 356px;
  max-width: 356px;
  height: 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgb(191, 252, 217);
  border-radius: 8px;
  background: rgb(236, 253, 243);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: rgb(0, 138, 46);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
}

.agenda-toast-region {
  top: 24px;
  bottom: auto;
}

.patient-toast-message.agenda-success-toast {
  display: flex;
  align-items: center;
  gap: 9px;
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #008a2e;
  font-size: 13px;
  font-weight: 500;
}

.patient-toast-message.agenda-success-toast svg {
  flex: 0 0 auto;
}

.document-generation-toast-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(0, 138, 46);
  color: rgb(236, 253, 243);
}

.document-generation-toast-text {
  min-width: 0;
  font: inherit;
  color: inherit;
}

.account-profile-toast-region {
  top: 24px;
  right: 24px;
  bottom: auto;
}

.operation-toast-region {
  top: 24px;
  right: 24px;
  bottom: auto;
  width: 356px;
  min-width: 356px;
  height: 53.5px;
  min-height: 53.5px;
}

.operation-toast-list {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.patient-toast-message.operation-success-toast {
  box-sizing: border-box;
  width: 356px;
  min-width: 356px;
  max-width: 356px;
  height: 53.5px;
  min-height: 53.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgb(191, 252, 217);
  border-radius: 8px;
  background: rgb(236, 253, 243);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: rgb(0, 138, 46);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  text-align: start;
}

.operation-success-toast-icon {
  box-sizing: border-box;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  margin: 0 4px 0 -3px;
  color: rgb(0, 138, 46);
}

.operation-success-toast-icon svg {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 auto;
  margin-left: -1px;
}

.operation-success-toast-content {
  min-width: 0;
  display: flex;
  flex: 0 1 auto;
  gap: 2px;
}

.operation-success-toast-content .document-generation-toast-text {
  font-weight: 500;
}

.account-profile-toast-message {
  min-width: 356px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
}

.account-profile-toast-message svg {
  flex: 0 0 auto;
}

.account-profile-toast-message.success {
  border-color: #dcfce7;
  background: #ecfdf3;
  color: #3f7f4b;
}

.account-profile-toast-message.success svg circle {
  fill: #4f9c5f;
  stroke: #4f9c5f;
}

.account-profile-toast-message.success svg path {
  stroke: #fff;
}

.account-profile-toast-message.error {
  border-color: #fee2e2;
  background: #fef2f2;
  color: #b42318;
}

@media (max-width: 640px) {
  .patient-toast-region {
    right: 16px;
    bottom: 16px;
  }
}

.patients-pagination {
  display: inline-flex;
  width: calc(100% - 74px);
  margin-left: 74px;
  align-items: center;
  justify-content: center;
  color: oklch(0.141 0.005 285.823);
}

.patients-pagination-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.patients-pagination-list > li {
  display: list-item;
}

.patients-pagination button,
.patients-pagination-link,
.patients-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
  text-decoration: none;
}

.patients-pagination button:first-child,
.patients-pagination button:last-child,
.patients-pagination-previous,
.patients-pagination-next {
  width: auto;
  min-width: 0;
  gap: 4px;
  padding: 8px 12px;
  color: oklch(0.141 0.005 285.823);
}

.patients-pagination button.active,
.patients-pagination-link.active {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patients-pagination-link:hover:not(.disabled) {
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.21 0.006 285.885);
}

.patients-pagination button:disabled {
  color: #9aa3b2;
}

.patients-pagination-link.disabled {
  opacity: 0.5;
  cursor: default;
}

.patient-directory-actions {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-directory-actions .plain-icon.small {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: oklch(0.141 0.005 285.823);
}

.patient-directory-actions .plain-icon.small.danger-icon {
  color: oklch(0.577 0.245 27.325);
}

.patient-directory-actions .plain-icon.small.restore-icon {
  color: #22c55e;
}

.catalog-acts-workspace .dentalome-table-wrap table {
  min-width: 920px;
}

.catalog-acts-workspace .page-header {
  margin-bottom: 12px;
}

.catalog-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.catalog-search-input {
  width: 448px;
}

.catalog-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.catalog-toolbar-row .dentalome-segmented-tabs {
  margin: 0;
}

.catalog-acts-workspace .row-actions {
  opacity: 1;
}

.global-list-workspace.catalog-acts-workspace {
  padding: 24px 24px 44px;
}

.global-list-workspace.catalog-acts-workspace .page-header > div:first-child {
  width: calc(100% - 156.25px);
}

.global-list-workspace.catalog-acts-workspace .page-header h1,
.global-list-workspace.catalog-acts-workspace .page-header p {
  width: 100%;
}

.global-list-workspace.catalog-acts-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.6px;
}

.global-list-workspace.catalog-acts-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.catalog-acts-workspace .catalog-filter-row {
  height: 36px;
  margin-bottom: 24px;
}

.catalog-acts-workspace .catalog-search-input {
  width: 448px;
  height: 36px;
  padding: 4px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.catalog-acts-workspace .dentalome-blue-button {
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.catalog-acts-workspace .dentalome-blue-button svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.catalog-acts-workspace .dentalome-table-shell {
  width: 100%;
}

.catalog-acts-workspace .dentalome-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.catalog-acts-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  font-size: 14px;
  line-height: 20px;
}

.catalog-acts-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.catalog-acts-workspace .dentalome-table-wrap th,
.catalog-acts-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  padding: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  text-align: start;
}

.catalog-acts-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.catalog-acts-workspace .dentalome-table-wrap td {
  height: 37px;
}

.catalog-acts-workspace .dentalome-table-wrap thead tr,
.catalog-acts-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.catalog-acts-workspace .dentalome-table-wrap tbody tr:last-child,
.catalog-acts-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 36.5px;
  border-bottom: 0 solid oklch(0.92 0.004 286.32);
}

.catalog-acts-workspace .catalog-color-only {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

.catalog-acts-workspace .catalog-color-only i {
  width: 32px;
  height: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 6.4px;
}

.catalog-acts-workspace .catalog-act-name-cell {
  font-weight: 500;
}

.catalog-acts-workspace .catalog-act-price-cell {
  font-variant-numeric: tabular-nums;
}

.catalog-acts-workspace .row-actions .plain-icon.small {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.catalog-acts-workspace .row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.catalog-acts-workspace .dentalome-table-outside-footer {
  display: flex;
  width: 100%;
  height: 69px;
  align-items: center;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
}

.catalog-acts-total-label {
  flex: 0 0 auto;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.catalog-acts-pagination {
  display: flex;
  flex: 1;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.medication-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.global-list-workspace.medications-workspace {
  padding: 24px 24px 44px;
}

.global-list-workspace.medications-workspace .page-header {
  margin-bottom: 24px;
}

.global-list-workspace.medications-workspace .page-header > div:first-child,
.global-list-workspace.medications-workspace .page-header h1,
.global-list-workspace.medications-workspace .page-header p {
  width: 100%;
}

.global-list-workspace.medications-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.6px;
}

.global-list-workspace.medications-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.medications-workspace .dentalome-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.medications-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.medications-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.medications-workspace .dentalome-table-wrap th,
.medications-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.medications-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.medications-workspace .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-weight: 400;
}

.medications-workspace .dentalome-table-wrap thead tr,
.medications-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.medications-workspace .dentalome-table-wrap tbody tr:last-child {
  height: 48.5px;
  border-bottom: 0;
}

.medications-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.medications-workspace .dentalome-table-outside-footer {
  display: flex;
  width: 100%;
  height: 69px;
  align-items: center;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
}

.medications-total-label {
  flex: 0 0 auto;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.medications-pagination {
  display: flex;
  flex: 1;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.medications-workspace .row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.medications-workspace .row-actions .plain-icon.small {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.medications-workspace .row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.medication-scope-tabs {
  flex: 0 0 auto;
  height: 34px;
  padding: 0;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
}

.medication-scope-tabs button {
  height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  background: oklch(1 0 0);
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medication-scope-tabs button + button {
  border-left: 1px solid oklch(0.92 0.004 286.32);
}

.medication-scope-tabs button.active {
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.medications-workspace .dentalome-segmented-tabs.single-tab {
  height: 36px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
}

.medications-workspace .dentalome-segmented-tabs.single-tab button {
  height: 27px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.medication-search-input {
  width: 256px;
  height: 36px;
  padding: 4px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.medications-workspace .dentalome-blue-button {
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medications-workspace .dentalome-blue-button svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* Dentalome keeps these directories on the compact catalog contract, even
   when their fixed-width controls extend beyond a phone viewport. */
.global-list-workspace.users-workspace,
.global-list-workspace.laboratories-workspace {
  padding: 24px 24px 44px;
}

.users-workspace .page-header,
.laboratories-workspace .page-header {
  margin-bottom: 24px;
}

.users-workspace .page-header > div:first-child,
.users-workspace .page-header h1,
.users-workspace .page-header p,
.laboratories-workspace .page-header > div:first-child,
.laboratories-workspace .page-header h1,
.laboratories-workspace .page-header p {
  width: 100%;
}

.users-workspace .page-header h1,
.laboratories-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.users-workspace .page-header p,
.laboratories-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.users-workspace .users-tabs {
  height: 36px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
}

.users-workspace .users-tabs button {
  display: flex;
  height: 27px;
  padding: 4px 8px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-workspace .users-tabs button.active {
  background: oklch(1 0 0);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.users-workspace .users-add-button {
  width: 228.75px;
  min-width: 228.75px;
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 519.5px;
}

.users-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-workspace .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.users-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.users-workspace .users-row-actions {
  gap: 8px;
}

.users-workspace .users-row-actions .plain-icon.small {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
}

.users-workspace .users-row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.users-workspace .dentalome-table-outside-footer,
.laboratories-workspace .dentalome-table-outside-footer {
  min-height: 54px;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratories-workspace .page-header p {
  white-space: nowrap;
}

.laboratories-workspace .dentalome-segmented-tabs {
  height: 36px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
}

.laboratories-workspace .dentalome-segmented-tabs button {
  display: flex;
  height: 27px;
  padding: 4px 8px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.laboratories-workspace .dentalome-segmented-tabs button.active {
  background: oklch(1 0 0);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.laboratories-workspace .dentalome-blue-button {
  width: auto;
  min-width: 0;
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.laboratories-workspace .dentalome-blue-button svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.laboratories-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
}

.laboratories-workspace .dentalome-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.laboratories-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.laboratories-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratories-workspace .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratories-workspace .dentalome-table-wrap th,
.laboratories-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  white-space: nowrap;
}

.laboratories-workspace .dentalome-table-wrap thead tr,
.laboratories-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.laboratories-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.laboratories-workspace .dentalome-table-wrap tbody tr:last-child {
  height: 48.5px;
  border-bottom: 0;
}

.laboratories-workspace .row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.laboratories-workspace .row-actions .plain-icon.small {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.laboratories-workspace .row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.catalog-color-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
}

.catalog-color-only i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
}

.catalog-form-modal {
  width: min(760px, calc(100vw - 48px));
}

.catalog-acte-form-modal {
  position: relative;
  display: grid;
  width: min(448px, calc(100vw - 48px));
  gap: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.catalog-acte-form-modal .modal-head {
  width: calc(100% + 48px);
  height: 35px;
  min-height: 35px;
  align-items: flex-start;
  margin: 0 -24px;
  padding: 0 24px 16px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.catalog-acte-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.catalog-acte-form-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.7;
  gap: normal;
  box-shadow: none;
}

.catalog-acte-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.catalog-medication-form-modal,
.catalog-laboratory-form-modal,
.laboratory-nature-form-modal {
  width: min(512px, calc(100vw - 48px));
}

.catalog-medication-form-modal {
  position: relative;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.laboratory-nature-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.catalog-laboratory-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  gap: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.catalog-medication-form-modal .modal-head {
  align-items: flex-start;
  height: 18px;
  min-height: 18px;
  margin-bottom: 33px;
}

.laboratory-nature-form-modal .modal-head {
  align-items: flex-start;
  height: 18px;
  min-height: 18px;
  margin-bottom: 17px;
}

.catalog-laboratory-form-modal .modal-head {
  align-items: flex-start;
  height: 18px;
  min-height: 18px;
  margin-bottom: 17px;
}

.catalog-medication-form-modal .modal-head h2 {
  width: 100%;
  color: #171717;
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.laboratory-nature-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
}

.catalog-laboratory-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
}

.catalog-medication-form-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: #171717;
  box-shadow: none;
}

.laboratory-nature-form-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.7;
  gap: normal;
  box-shadow: none;
}

.catalog-laboratory-form-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.7;
  gap: normal;
  box-shadow: none;
}

.catalog-medication-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.laboratory-nature-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.catalog-laboratory-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.catalog-source-form-grid,
.laboratory-form-grid,
.laboratory-nature-form-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.catalog-combobox-field {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #3f4651;
  font-weight: 800;
}

.catalog-source-form-grid label,
.catalog-source-form-grid .catalog-combobox-field {
  color: #242932;
}

.catalog-medication-form-modal .catalog-source-form-grid label,
.catalog-medication-form-modal .catalog-source-form-grid .catalog-combobox-field {
  gap: 12px;
  color: #171717;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-laboratory-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-laboratory-field[data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.catalog-laboratory-form-modal .catalog-laboratory-field-label,
.laboratory-nature-form-modal .catalog-laboratory-field-label {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-laboratory-field-content {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 6px;
  line-height: 20px;
}

.catalog-source-form-grid input {
  height: 36px;
  min-height: 40px;
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.catalog-medication-form-modal .catalog-source-form-grid input,
.catalog-medication-form-modal .catalog-source-form-grid .combobox-trigger {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: #e5e7eb;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: #171717;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.laboratory-nature-form-modal .catalog-laboratory-field input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: #e5e7eb;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-laboratory-form-modal .catalog-laboratory-field input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: #e5e7eb;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-laboratory-form-modal .catalog-laboratory-field .catalog-field-error,
.laboratory-nature-form-modal .catalog-laboratory-field .catalog-field-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-laboratory-form-modal .catalog-laboratory-field input:focus,
.laboratory-nature-form-modal .catalog-laboratory-field input:focus {
  border-color: rgb(2, 92, 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-acte-form-modal .catalog-source-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.catalog-acte-form-modal .catalog-source-form-grid .catalog-form-field,
.catalog-acte-form-modal .catalog-source-form-grid .catalog-combobox-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  color: oklch(0.141 0.005 285.823);
}

.catalog-acte-form-modal .catalog-source-form-grid .field-label {
  height: 19.25px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-acte-form-modal .catalog-source-form-grid input,
.catalog-acte-form-modal .catalog-source-form-grid .combobox-trigger {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 4px 12px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.catalog-acte-form-modal .catalog-source-form-grid .combobox-trigger {
  padding: 8px 12px;
  gap: 8px;
  font-weight: 500;
  text-align: center;
}

.catalog-acte-form-modal .catalog-source-form-grid .modal-actions {
  width: calc(100% + 48px);
  height: 53px;
  gap: 8px;
  margin: 0 -24px;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.catalog-acte-form-modal .catalog-source-form-grid .modal-actions button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.catalog-acte-form-modal .catalog-source-form-grid input:focus,
.catalog-acte-form-modal .catalog-source-form-grid .combobox-trigger:focus-visible {
  outline: 0;
  border-color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.catalog-source-form-grid .modal-actions {
  margin: 4px -24px -12px;
  padding: 16px 24px 0;
  border-top: 1px solid #eef0f3;
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions {
  height: 53px;
  gap: 8px;
  margin: 0 -24px;
  padding: 16px 24px 0;
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions button,
.catalog-medication-form-modal .catalog-source-form-grid .modal-actions .primary-button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions {
  gap: 8px;
  margin: 4px -24px 0;
  padding: 12px 24px 0;
  border-top: 1px solid #eef0f3;
}

.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions button,
.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions .primary-button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions button:not(.primary-button),
.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions button:not(.primary-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions {
  gap: 8px;
  margin: 4px -24px 0;
  padding: 12px 24px 0;
  border-top: 1px solid #eef0f3;
}

.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions button,
.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions .primary-button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions .primary-button {
  gap: 8px;
  padding-right: 16px;
  padding-left: 16px;
  border: 0 solid oklch(0.92 0.004 286.32);
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions .primary-button {
  gap: 8px;
  padding-right: 16px;
  padding-left: 16px;
  border: 0 solid oklch(0.92 0.004 286.32);
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions .primary-button:hover,
.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions .primary-button:hover {
  background: oklab(0.519343 -0.0356103 -0.213735 / 0.9);
}

.catalog-source-form-grid .primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #025ce2;
  color: #fff;
  padding: 0 17px;
}

.catalog-category-combobox {
  position: relative;
  z-index: 4;
}

.catalog-category-combobox.open .combobox-trigger svg {
  transform: rotate(180deg);
}

.catalog-category-menu {
  max-height: 260px;
}

.catalog-category-swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

.laboratory-nature-form-modal .primary-button {
  border-color: #025ce2;
  background: #025ce2;
  color: #fff;
}

.catalog-form-error {
  grid-column: 1 / -1;
}

.catalog-field-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.catalog-form-grid textarea {
  min-height: 96px;
}

.dentalome-notes-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow: hidden;
  background: #f6f7f8;
}

.dentalome-notes-workspace .page-header {
  height: 56px;
  gap: 16px;
  margin-bottom: 20px;
}

.dentalome-notes-workspace .page-header h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.dentalome-notes-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}

.dentalome-notes-workspace .page-header-actions {
  gap: 8px;
}

.dentalome-notes-workspace .page-header-actions button {
  height: 32px;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.dentalome-notes-workspace .page-header-actions button:first-child {
  width: 137.133px;
}

.notes-parity-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 224px;
  gap: 16px;
  height: calc(100vh - 168px);
  min-height: 0;
}

.notes-list-panel,
.notes-main-panel,
.notes-category-panel {
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}

.notes-list-panel,
.notes-category-panel {
  display: flex;
  flex-direction: column;
}

.notes-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  box-sizing: border-box;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.notes-list-panel > .notes-panel-title {
  justify-content: flex-start;
  gap: 8px;
}

.notes-category-panel > .notes-panel-title {
  height: 46px;
  min-height: 46px;
  flex-basis: 46px;
  padding: 16px 16px 12px;
}

.notes-panel-title span {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 999px;
  color: oklch(0.141 0.005 285.823);
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0;
  background: transparent;
}

.notes-panel-heading {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit !important;
}

.notes-search-box {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 12px 12px 8px;
}

.notes-search-box svg {
  position: absolute;
  left: 11px;
  color: #8a93a3;
}

.notes-search-box input {
  display: inline-block;
  width: 100%;
  height: 32px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 4px 12px 4px 32px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
}

.notes-search-box input::placeholder {
  color: #71717a;
}

.notes-search-box input:focus {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notes-active-category-filter {
  flex: 0 0 32.75px;
  height: 32.75px;
  padding: 0 12px 8.25px;
}

.notes-active-category-filter button {
  display: inline-flex;
  height: 24.5px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
  transition: opacity 0.15s ease;
}

.notes-active-category-filter button:hover {
  opacity: 0.8;
}

.notes-mini-empty {
  display: grid;
  place-items: center;
  gap: 4px;
  margin: 0 12px;
  min-height: 114px;
  border: 1px dashed #dfe4ec;
  border-radius: 12px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.notes-mini-empty strong,
.notes-main-empty strong {
  color: #111827;
}

.notes-mini-list-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.notes-mini-list-viewport::-webkit-scrollbar {
  display: none;
}

.notes-mini-list {
  display: grid;
  width: max-content;
  min-width: 100%;
  grid-auto-rows: 69px;
  gap: 4px;
  padding: 0 8px 12px;
}

.notes-mini-row {
  position: relative;
  display: flex;
  width: max-content;
  min-width: 100%;
  min-height: 69px;
  align-items: stretch;
  overflow: hidden;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 14.4px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.notes-mini-row.active {
  background: transparent;
  box-shadow: 0 0 0 1px #e4e4e7, 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.notes-mini-row > button:first-child {
  width: auto;
  flex: 1 0 auto;
  min-width: 0;
  min-height: 69px;
  border: 0;
  padding: 12px 8px 12px 12px;
  background: transparent;
  text-align: left;
}

.notes-mini-row > button:first-child:focus {
  outline: 1px auto rgba(2, 92, 226, 0.5);
}

.notes-mini-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.notes-mini-row strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-mini-category {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
}

.notes-mini-category i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.notes-mini-delete {
  position: static;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 30px;
  height: 28px;
  margin: auto 4px auto 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  opacity: 0;
  transform: none;
  transition: opacity .15s ease, color .15s ease;
}

.notes-mini-row:hover .notes-mini-delete,
.notes-mini-delete:focus-visible {
  opacity: 1;
}

.notes-mini-delete:hover {
  color: #ef4444;
}

.notes-main-panel {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.notes-main-detail-panel {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 20px;
}

.notes-main-empty,
.notes-select-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  color: #6b7280;
  text-align: center;
}

.notes-select-empty {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
}

.notes-empty-icon-stack {
  position: relative;
}

.notes-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: #eaf2ff;
  color: #2f80ed;
}

.notes-select-empty .notes-empty-icon {
  width: 80px;
  height: 80px;
  border-color: oklab(0.92 0.00112401 -0.00383883 / 0.5);
  border-radius: 16px;
  background: linear-gradient(to right bottom, oklab(0.967 0.000281923 -0.000959437 / 0.8), oklab(0.967 0.000281923 -0.000959437 / 0.4));
  color: oklab(0.552 0.00439355 -0.015385 / 0.5);
}

.notes-empty-icon-note {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: #fff;
  color: oklab(0.552 0.00439355 -0.015385 / 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.notes-select-empty-copy {
  display: grid;
  width: 240px;
  gap: 6px;
}

.notes-main-empty p {
  margin: 0;
  line-height: 1.6;
}

.notes-select-empty p {
  max-width: 260px;
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  line-height: 19.5px;
}

.notes-select-empty strong {
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.notes-detail-card {
  display: flex;
  min-width: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.notes-detail-header {
  display: flex;
  width: 100%;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.notes-detail-leading {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
}

.notes-detail-navigation {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.notes-detail-navigation button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  padding: 0;
  background: #fff;
  color: #09090b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notes-detail-navigation button:disabled {
  cursor: default;
  opacity: 0.5;
}

.notes-detail-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.notes-detail-header h2 {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #09090b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-detail-category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
}

.notes-detail-category i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.notes-detail-header .dentalome-download-button {
  width: auto;
  min-width: 0;
  height: 36px;
  flex: 0 0 auto;
  align-self: flex-start;
  border: 0;
  border-radius: 8.4px;
  padding: 8px 12px;
  background: #025ce2;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.notes-detail-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  padding: 20px;
}

.notes-detail-body h3 {
  margin: 0 0 16px;
  color: #09090b;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.notes-detail-body p {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.notes-category-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 28px;
  color: #8a93a3;
  font-size: 12px;
}

.notes-category-empty button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.notes-category-list-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.notes-category-list-viewport::-webkit-scrollbar {
  display: none;
}

.notes-category-list {
  display: grid;
  width: max-content;
  min-width: 100%;
  gap: 6px;
  padding: 8px;
}

.notes-category-list > button,
.notes-category-select {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  text-align: left;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.notes-category-row {
  position: relative;
  width: max-content;
  min-width: 100%;
  min-height: 64px;
  overflow: hidden;
  border-left: 4px solid transparent;
  border-radius: 14.4px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.notes-category-row.active {
  background: transparent;
  box-shadow: none;
}

.notes-category-row.active .notes-category-copy {
  padding-right: 30px;
}

.notes-category-select {
  width: max-content;
  min-width: 100%;
  gap: 10px;
  border: 0 solid oklch(0.92 0.004 286.32);
  padding: 10px 12px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.notes-category-row:not(.active) .notes-category-select:hover {
  opacity: 0.9;
}

.notes-category-initial {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 10.4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.notes-category-copy {
  display: block;
  min-width: 0;
  flex: 1;
}

.notes-category-name {
  display: block;
  overflow: hidden;
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-category-count {
  display: inline;
  color: #71717a;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.notes-category-actions {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s ease;
}

.notes-category-row:hover .notes-category-actions,
.notes-category-row:focus-within .notes-category-actions,
.notes-category-row.active .notes-category-actions {
  opacity: 1;
}

.notes-category-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 0;
  background: oklab(1 0 0 / 0.8);
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
  box-shadow: none;
}

.notes-category-actions button:hover {
  color: #111827;
}

.notes-category-actions button:last-child:hover {
  color: #dc2626;
}

.note-form-modal {
  width: min(768px, calc(100vw - 48px));
  max-height: min(90vh, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.note-category-modal {
  position: relative;
  width: min(500px, calc(100vw - 48px));
  display: grid;
  gap: 16px;
  border: 1px solid #e4e4e7;
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  color: #09090b;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.note-category-modal .modal-head {
  height: 35px;
  margin: 0 -24px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #e4e4e7;
}

.note-category-modal .modal-head h2 {
  width: 100%;
  color: #09090b;
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.note-category-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: #09090b;
  font-size: 16px;
  opacity: 0.7;
  box-shadow: none;
}

.note-category-modal .modal-close-button:hover,
.note-category-modal .modal-close-button:focus-visible {
  opacity: 1;
}

.note-category-modal > .form-grid {
  display: block;
  padding-top: 16px;
}

.note-category-modal > .form-grid > label {
  display: grid;
  grid-template-rows: 19.25px auto;
  gap: 12px;
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.note-category-modal > .form-grid > label + label {
  margin-top: 24px;
}

.note-category-modal .field-label {
  height: 19.25px;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.note-category-modal input:not([type="color"]) {
  height: 36px;
  min-height: 36px;
  border-color: #e4e4e7;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: #09090b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-category-modal input:not([type="color"]):focus {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-category-modal .note-color-field input[type="color"] {
  width: 80px;
  min-width: 80px;
  height: 40px;
  min-height: 40px;
  border-color: #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-category-modal .modal-actions {
  width: calc(100% + 48px);
  height: 53px;
  margin: 24px -24px 0;
  align-items: flex-end;
  gap: 8px;
  padding: 16px 24px 0;
  border-top: 1px solid #e4e4e7;
}

.note-category-modal .modal-actions button,
.note-category-modal .modal-actions .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.note-category-modal .modal-actions button:not(.primary-button) {
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #09090b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-category-modal .modal-actions .primary-button {
  border: 0;
  background: #025ce2;
  color: #f4f8ff;
  box-shadow: none;
}

.note-form-modal .modal-head {
  margin: -4px -24px 16px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #eef0f3;
}

.note-form-modal .modal-head h2 {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.note-form-grid {
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  gap: 16px;
}

.note-form-grid label {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.note-form-grid input {
  min-height: 40px;
  border-color: #e5e7eb;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.note-category-combobox-field {
  position: relative;
  z-index: 3;
}

.note-category-combobox {
  position: relative;
}

.note-category-combobox-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.note-category-combobox-trigger.placeholder {
  color: #8a919d;
}

.note-category-combobox-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-category-combobox-trigger svg {
  flex: 0 0 auto;
  color: #6b7280;
}

.note-category-combobox-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.note-category-combobox-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eef0f3;
  padding: 8px 10px;
  color: #6b7280;
}

.note-category-combobox-search input {
  min-height: 30px;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.note-category-combobox-search input:focus {
  outline: none;
}

.note-category-combobox-options {
  max-height: 190px;
  overflow-y: auto;
  padding: 5px;
}

.note-category-combobox-options button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111827;
  padding: 0 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.note-category-combobox-options button:hover,
.note-category-combobox-options button.selected {
  background: #f5f7fb;
}

.note-category-combobox-options button svg {
  color: #075fe5;
  opacity: 0;
}

.note-category-combobox-options button.selected svg {
  opacity: 1;
}

.note-category-combobox-empty {
  padding: 10px 8px;
  color: #6b7280;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.note-rich-editor-field {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.simple-editor-wrapper {
  width: 100%;
  overflow: auto;
  background: #fff;
}

.simple-editor-wrapper--embedded {
  min-height: 200px;
  max-height: 65vh;
  border: 1px solid #eaeaeb;
  border-radius: 12px;
}

.simple-editor-content {
  display: flex;
  min-height: 160px;
  flex: 1;
  flex-direction: column;
}

.tiptap-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #eaeaeb;
  background: #fff;
  padding: 6px 8px;
  scrollbar-width: none;
}

.tiptap-toolbar::-webkit-scrollbar {
  display: none;
}

.tiptap-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tiptap-toolbar-group + .tiptap-toolbar-group {
  margin-left: 4px;
  padding-left: 6px;
  border-left: 1px solid #eaeaeb;
}

.tiptap-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #53565a;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tiptap-button:hover:not(:disabled),
.tiptap-button:focus-visible {
  background: #f4f4f5;
  color: #222325;
  outline: none;
}

.tiptap-button[data-active-state="on"] {
  background: #efeeff;
  color: #4b00cc;
}

.tiptap-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tiptap.ProseMirror.simple-editor {
  min-height: 160px;
  flex: 1;
  padding: 16px 20px 24px;
  color: #111827;
  line-height: 1.6;
  outline: none;
  word-break: break-word;
}

.tiptap.ProseMirror.simple-editor p,
.notes-detail-html p {
  margin: 0 0 10px;
}

.tiptap.ProseMirror.simple-editor h1,
.tiptap.ProseMirror.simple-editor h2,
.tiptap.ProseMirror.simple-editor h3,
.notes-detail-html h1,
.notes-detail-html h2,
.notes-detail-html h3 {
  margin: 0 0 12px;
  color: #111827;
  font-weight: 800;
  line-height: 1.25;
}

.tiptap.ProseMirror.simple-editor h1,
.notes-detail-html h1 {
  font-size: 24px;
}

.tiptap.ProseMirror.simple-editor h2,
.notes-detail-html h2 {
  font-size: 21px;
}

.tiptap.ProseMirror.simple-editor h3,
.notes-detail-html h3 {
  font-size: 18px;
}

.tiptap.ProseMirror.simple-editor ul,
.tiptap.ProseMirror.simple-editor ol,
.notes-detail-html ul,
.notes-detail-html ol {
  margin: 0 0 12px 20px;
}

.tiptap.ProseMirror.simple-editor ul,
.notes-detail-html ul {
  list-style: disc;
}

.tiptap.ProseMirror.simple-editor ol,
.notes-detail-html ol {
  list-style: decimal;
}

.tiptap.ProseMirror.simple-editor blockquote,
.notes-detail-html blockquote {
  margin: 0 0 12px;
  border-left: 3px solid #d5d6d7;
  padding-left: 12px;
  color: #53565a;
}

.notes-detail-html {
  color: #111827;
  line-height: 1.6;
}

.notes-detail-html > :last-child,
.tiptap.ProseMirror.simple-editor > :last-child {
  margin-bottom: 0;
}

.note-editor-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
}

.note-form-actions {
  margin: 0 -24px;
  padding: 16px 24px;
  border-top: 1px solid #eef0f3;
}

.note-color-field > span:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.note-color-field input[type="color"] {
  width: 80px;
  min-width: 80px;
  padding: 4px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .dentalome-notes-workspace {
    padding: 30px 24px 32px;
  }

  .dentalome-notes-workspace .page-header {
    flex-direction: row;
    gap: 16px;
  }

  .dentalome-notes-workspace .page-header-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .dentalome-notes-workspace .page-header-actions button {
    flex: 0 0 auto;
    min-width: 0;
  }

  .notes-parity-layout {
    grid-template-columns: 288px 592px 224px;
    height: calc(100vh - 168px);
    min-height: 0;
  }

  .notes-list-panel,
  .notes-main-panel,
  .notes-category-panel {
    width: auto;
  }

  .notes-main-panel {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .dentalome-notes-workspace {
    padding: 26px 24px 32px;
  }

  .notes-main-panel {
    min-height: 0;
  }

  .notes-main-empty {
    padding: 34px 20px;
  }

  .notes-main-empty p {
    font-size: 14px;
  }
}

/* Dentalome patient-detail parity pass: compact header, right rail, clear odontogram. */
.app-body.patient-detail-mode {
  grid-template-columns: 80px minmax(0, 1fr) 80px;
}

.app-body.patient-detail-mode .main {
  grid-column: 2;
}

.app-body.patient-detail-mode .patient-side-nav {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  top: 70px;
  height: calc(100vh - 70px);
}

.app-body.patient-detail-mode .primary-nav {
  width: 80px;
}

.app-body.patient-detail-mode .primary-nav span {
  display: block;
}

.patient-workspace {
  padding: 24px 28px 58px;
  background: #f5f6f8;
}

.patient-header.dentalome-patient-header {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  gap: 18px 42px;
  min-height: 56px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #eceff3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.08);
}

.dentalome-patient-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.dentalome-patient-identity .patient-display-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #20242b;
  font-size: clamp(21px, 1.35vw, 27px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dentalome-patient-header .patient-alert-icon {
  flex: 0 0 auto;
  color: #6b7280;
}

.patient-edit-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #20242b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.patient-header-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(28px, 3vw, 58px);
  white-space: nowrap;
}

.patient-header-financials .metric {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #20242b;
  font-size: clamp(19px, 1.2vw, 24px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.patient-header-financials .metric span::after {
  content: " :";
}

.patient-header-financials .metric strong,
.patient-header-financials .metric b {
  color: inherit;
  font-size: inherit;
  line-height: 1.05;
  font-weight: 850;
}

.patient-header-financials .metric.green strong,
.patient-header-financials .metric.green b {
  color: #39a369;
}

.patient-header-financials .metric.red strong,
.patient-header-financials .metric.red b {
  color: #d8222a;
}

.patient-header.dentalome-patient-header .patient-warning {
  display: none;
}

.patient-treatment-card {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.patient-treatment-layout {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 350px;
  gap: 28px;
  align-items: flex-start;
}

.odontogram-panel.dentalome-odontogram-card {
  position: relative;
  min-height: 650px;
  padding: 0 34px 24px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 9px -2px #ccc;
  overflow: hidden;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: block;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid #dfe3ea;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  display: flex;
  width: max-content;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  min-width: 112px;
  min-height: 62px;
  padding: 0 20px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #424852;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: #fff;
  box-shadow: none;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row {
  position: absolute;
  right: 30px;
  z-index: 4;
  display: flex;
  width: auto;
  margin: 0;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top {
  top: 32px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
  bottom: 22px;
}

.odontogram-panel.dentalome-odontogram-card .all-teeth-control {
  font-size: 0;
}

.dentalome-child-schema-row {
  width: max-content;
  margin: 11px 0 0 12px;
  color: #20242b;
  font-size: 17px;
  font-weight: 850;
}

.odontogram {
  max-width: none;
  margin: 0 auto;
  padding-top: 0;
  gap: 18px;
}

.odontogram-row {
  gap: clamp(8px, 0.8vw, 18px);
}

.tooth-group {
  gap: clamp(4px, 0.55vw, 12px);
}

.tooth.dentalome-tooth,
.tooth.dentalome-tooth.lower {
  min-height: 206px;
}

.tooth.dentalome-tooth {
  grid-template-rows: minmax(174px, 1fr) 24px;
}

.tooth.dentalome-tooth.lower {
  grid-template-rows: 24px minmax(174px, 1fr);
}

.tooth-art {
  width: clamp(38px, 2.85vw, 64px);
  height: 174px;
  min-height: 174px;
}

.dentalome-tooth-sprite.tooth-svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(33, 37, 41, 0.16));
}

.tooth-number {
  font-size: 19px;
  font-weight: 850;
}

.tooth.selected .tooth-art {
  background: #d9e7ff;
  box-shadow: none;
}

.act-status-card {
  min-height: 650px;
  padding: 28px 44px 32px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.11);
}

.add-act-button {
  min-height: 42px;
  border-radius: 12px;
  background: var(--green);
  font-size: 19px;
  font-weight: 850;
}

.act-status-head {
  grid-template-columns: 1fr 1fr;
  font-size: 20px;
}

.act-status-list button {
  font-size: 17px;
}

.act-status-list button strong {
  min-width: 112px;
  background: #68a0fb;
  font-size: 16px;
  font-weight: 700;
}

.patient-document-actions {
  margin: 8px 0 14px;
}

.patient-document-actions button {
  min-width: 132px;
  min-height: 38px;
  border-radius: 10px;
  background: var(--green);
  font-size: 17px;
  font-weight: 850;
}

.patient-document-actions button:first-child {
  background: var(--green);
  color: #fff;
  border: 0;
}

.patient-operations-card {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.patient-operations-toolbar {
  display: none;
}

.patient-operations-wrap {
  border: 1px solid #d9dee7;
  border-radius: 0;
  background: #fff;
  overflow: visible;
  position: relative;
  margin-top: 58px;
}

.patient-operations-wrap::before {
  content: "";
  position: absolute;
  top: -43px;
  left: 0;
  right: 26px;
  height: 6px;
  border-radius: 999px;
  background: #0d82ff;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 16px 14px;
  font-size: 18px;
}

.patient-operations-table th {
  background: #fff;
  color: #252a31;
  font-weight: 750;
}

.patient-operations-table td {
  border-top: 1px solid #d9dee7;
}

.patient-operations-table .operation-name {
  color: #252a31;
  font-size: 18px;
  font-weight: 500;
}

.patient-operations-table .sessions-link {
  color: var(--green);
  font-size: 17px;
  font-weight: 800;
}

.patient-operations-table .money-cell,
.patient-operations-table .green-text,
.patient-operations-table .red-text {
  font-size: 18px;
  font-weight: 850;
}

.dentalome-status {
  min-width: 132px;
  min-height: 46px;
  border-radius: 999px;
  background: #69a2fb;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

.dentalome-actions {
  gap: 18px;
}

.dentalome-actions .plain-icon.small {
  width: 28px;
  height: 28px;
  color: #15191f;
}

/* Current Dentalome patient-detail parity pass: white shell, patient dossier card, SVG odontogram. */
.topbar {
  height: 60px;
  grid-template-columns: 255px minmax(420px, 560px) minmax(260px, 1fr);
  padding: 0 22px 0 0;
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
  box-shadow: none;
}

.topbar .brand {
  height: 60px;
  padding: 0 20px 0 24px;
  color: #235b91;
}

.topbar .shell-logo {
  width: 42px;
  height: 42px;
  border: 3px solid #8ec8cd;
  background: #235b91;
  color: #fff;
  font-size: 17px;
  box-shadow: none;
}

.topbar .brand span {
  color: #235b91;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.global-search {
  height: 40px;
  width: min(100%, 560px);
  max-width: 560px;
  align-self: center;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.global-search input {
  height: 38px;
  padding: 0 45px 0 38px;
  color: #3b3f47;
  font-size: 16px;
  font-weight: 650;
  background: #f9fafb;
  box-shadow: none;
}

.global-search svg {
  color: #1a73e8;
}

.global-search .global-search-icon {
  left: 12px;
  right: auto;
  width: 16px;
  height: 16px;
  color: #667085;
}

.global-search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #f2f4f7;
  color: #667085;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  transform: translateY(-50%);
  pointer-events: none;
}

.user-zone {
  height: 60px;
  gap: 16px;
  color: #1f2937;
}

.topbar-user-name {
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
}

.topbar-action {
  color: #667085;
}

.topbar-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid #111827;
  background: #fff;
  color: #111827;
}

.app-body.no-rail,
.app-body.patient-detail-mode {
  grid-template-columns: 255px minmax(0, 1fr);
  background: #f6f7f9;
}

.app-body.patient-detail-mode .main,
.app-body.no-rail .main {
  grid-column: 2;
}

.app-body.patient-detail-mode .patient-side-nav {
  display: none !important;
}

.primary-nav,
.app-body.patient-detail-mode .primary-nav {
  width: 255px;
  padding: 72px 10px 16px;
  background: #fff;
  border-right: 1px solid #e4e7ec;
  color: #344054;
}

.primary-nav-brand {
  display: none;
}

.primary-nav-scroll {
  gap: 4px;
}

.nav-section {
  margin: 0 0 10px;
}

.nav-section-label {
  display: block;
  margin: 16px 10px 7px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: none;
}

.primary-nav button,
.app-body.patient-detail-mode .primary-nav button {
  min-height: 38px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 13px;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.primary-nav button svg {
  width: 18px;
  height: 18px;
}

.primary-nav button.active {
  background: #e8f1ff;
  color: #1264e3;
}

.primary-nav-user {
  margin: 16px 0 0;
  padding: 10px;
  border-top: 1px solid #eaecf0;
  color: #344054;
}

.main {
  padding-top: 60px;
  background: #f6f7f9;
}

.patient-workspace {
  padding: 24px 30px 56px;
  background: #f6f7f9;
}

.patient-header.dentalome-patient-header {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(16, 24, 40, .06);
  overflow: hidden;
}

.dentalome-patient-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 16px 18px 13px;
}

.patient-avatar-tile {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1d72d8;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
}

.patient-profile-copy {
  min-width: 0;
}

.patient-title-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.dentalome-patient-identity .patient-display-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #20242b;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.patient-fiche-chip {
  flex: 0 0 auto;
  color: #667085;
  font-size: 15px;
  font-weight: 800;
}

.dentalome-patient-header .patient-alert-icon {
  flex: 0 0 auto;
  color: #667085;
}

.patient-subline,
.patient-contact-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.patient-contact-line svg {
  color: #98a2b3;
}

.patient-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-profile-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.patient-profile-actions button.archive-action {
  border-color: oklch(0.901 0.076 70.697);
  background: oklch(0.98 0.016 73.684);
  color: oklch(0.553 0.195 38.402);
}

.patient-profile-actions button.archive-action svg {
  color: oklch(0.646 0.222 41.116);
}

.patient-header-financials {
  display: none;
}

.patient-header.dentalome-patient-header .patient-warning {
  display: none;
}

.patient-header-tabs {
  display: flex;
  gap: 0;
  padding: 0 18px;
  border-top: 1px solid #eaecf0;
  overflow-x: auto;
}

.patient-header-tabs :is(button, a) {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.patient-header-tabs :is(button, a).active {
  color: #1677ff;
  border-bottom-color: #1677ff;
}

.dentalome-patient-list-card {
  min-height: 0;
  padding: 23px 14px 14px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(16, 24, 40, .05);
}

.dentalome-list-title {
  margin: 0 0 28px;
}

.dentalome-list-title h2,
.patient-payments-card .dentalome-list-title h1 {
  margin: 0;
  color: #20242b;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.patient-rdv-card .dentalome-list-title h1 {
  margin: 0;
  color: #20242b;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.dentalome-list-title p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 16px;
  font-weight: 650;
}

.dentalome-patient-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.dentalome-patient-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dbe2ea;
  background: #fff;
}

.patient-rdv-table {
  min-width: 760px;
}

.patient-payments-table {
  min-width: 880px;
}

.dentalome-patient-table th {
  height: 42px;
  padding: 8px 10px;
  border-bottom: 2px solid #dbe2ea;
  background: #dcecff;
  color: #29303a;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.dentalome-patient-table td {
  height: 48px;
  padding: 8px 10px;
  border-top: 1px solid #dde2e8;
  color: #333941;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

.patient-rdv-table th:nth-child(1),
.patient-rdv-table td:nth-child(1) {
  width: 17%;
}

.patient-rdv-table th:nth-child(2),
.patient-rdv-table td:nth-child(2) {
  width: 18%;
}

.patient-rdv-table th:nth-child(3),
.patient-rdv-table td:nth-child(3) {
  width: 25%;
}

.patient-rdv-table th:nth-child(4),
.patient-rdv-table td:nth-child(4) {
  width: 15%;
}

.patient-rdv-table th:nth-child(5),
.patient-rdv-table td:nth-child(5) {
  width: 16%;
  text-align: center;
}

.patient-payments-table th:nth-child(1),
.patient-payments-table td:nth-child(1) {
  width: 13%;
}

.patient-payments-table th:nth-child(2),
.patient-payments-table td:nth-child(2) {
  width: 12%;
}

.patient-payments-table th:nth-child(3),
.patient-payments-table td:nth-child(3) {
  width: 30%;
}

.patient-payments-table th:nth-child(4),
.patient-payments-table td:nth-child(4) {
  width: 15%;
}

.patient-payments-table th:nth-child(5),
.patient-payments-table td:nth-child(5) {
  width: 16%;
}

.patient-payments-table th:nth-child(6),
.patient-payments-table td:nth-child(6) {
  width: 14%;
  text-align: center;
}

.dentalome-status-pill {
  min-width: 43px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #dbeafe;
  color: #1677ff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.dentalome-row-actions {
  justify-content: center;
  gap: 17px;
}

.dentalome-row-actions .plain-icon.small {
  width: 22px;
  height: 22px;
  color: oklch(0.141 0.005 285.823);
}

.dentalome-row-actions .plain-icon.danger {
  color: oklch(0.577 0.245 27.325);
}

.dentalome-empty-row {
  color: #667085;
  text-align: left !important;
}

.dentalome-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 49px;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
}

.dentalome-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dentalome-pagination button,
.dentalome-pagination strong,
.dentalome-pagination span {
  min-width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #344054;
}

.dentalome-pagination button {
  border: 1px solid #d6dbe3;
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.dentalome-pagination button:disabled {
  color: #aab2bd;
}

.dentalome-pagination strong {
  min-width: auto;
  background: transparent;
  color: #111827;
  font-weight: 650;
}

.patient-treatment-card {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(16, 24, 40, .05);
}

.patient-treatment-layout {
  grid-template-columns: minmax(720px, 1fr) minmax(300px, 360px);
  gap: 18px;
  padding: 18px;
  align-items: stretch;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 498px;
  padding: 16px 22px 26px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  box-shadow: none;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 17px;
  padding: 0 0 12px;
  border-bottom: 1px solid #eaecf0;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  display: inline-flex;
  width: max-content;
  min-height: 38px;
  padding: 3px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #f8fafc;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  min-width: 0;
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  color: #1677ff;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .12);
}

.treatment-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  white-space: nowrap;
}

.treatment-financials .metric {
  display: grid;
  gap: 2px;
  color: #20242b;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: .04em;
}

.treatment-financials .metric span {
  color: #667085;
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  display: inline;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.treatment-financials .metric b {
  margin-left: 4px;
}

.treatment-financials .metric.green strong,
.treatment-financials .metric.green b {
  color: #229a55;
}

.treatment-financials .metric.red strong,
.treatment-financials .metric.red b {
  color: #d62828;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top {
  top: 82px;
  right: 26px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
  right: 26px;
  bottom: 24px;
}

.odontogram {
  max-width: 900px;
  margin: 0 auto;
  gap: 12px;
}

.odontogram-row {
  gap: 11px;
}

.tooth-group {
  gap: 6px;
}

.tooth.dentalome-tooth,
.tooth.dentalome-tooth.lower {
  min-height: 150px;
}

.tooth.dentalome-tooth {
  grid-template-rows: 22px minmax(120px, 1fr);
}

.tooth.dentalome-tooth.lower {
  grid-template-rows: minmax(120px, 1fr) 22px;
}

.tooth-art {
  width: 54px;
  height: 118px;
  min-height: 118px;
  padding: 0;
  background: transparent;
  border-radius: 13px;
}

.tooth.selected .tooth-art {
  background: #dcebff;
}

.dentalome-tooth-sprite.tooth-svg,
.dentalome-tooth-sprite.tooth-svg svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.dentalome-tooth-sprite.tooth-svg [class*="fill-"],
.dentalome-tooth-sprite.tooth-svg svg .cls-2,
.dentalome-tooth-sprite.tooth-svg svg .cls-3 {
  transition: fill .12s ease;
}

.tooth.dentalome-tooth strong {
  color: #1f2937;
  font-size: 17px;
  line-height: 20px;
  font-weight: 850;
}

.odontogram-divider {
  margin: 2px auto 6px;
  background: #eaecf0;
}

.dentalome-child-schema-row {
  margin: 0 0 0 20px;
  padding-bottom: 16px;
  color: #20242b;
  font-size: 14px;
  font-weight: 850;
}

.act-status-card {
  min-height: 498px;
  padding: 24px 28px 28px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  box-shadow: none;
}

.add-act-button {
  min-height: 38px;
  border-radius: 10px;
  background: #1d72d8;
  font-size: 15px;
  font-weight: 850;
}

.act-status-divider {
  margin: 18px 0;
  background: #eaecf0;
}

.act-status-head {
  color: #20242b;
  font-size: 15px;
}

.act-status-empty {
  min-height: 270px;
  color: #667085;
}

.patient-document-actions {
  justify-content: flex-end;
  margin: 4px 18px 10px;
}

.patient-document-actions button {
  min-width: 112px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  background: #2c955c;
  font-size: 14px;
  font-weight: 850;
}

.patient-operations-card {
  margin: 4px 18px 22px;
}

.patient-operations-toolbar {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 8px;
}

.patient-operations-toolbar .appointment-source-combobox {
  z-index: 20;
  width: 240px;
  min-width: 240px;
}

.patient-operations-toolbar .combobox-trigger {
  width: 240px;
  min-width: 240px;
  height: 36px;
  min-height: 36px;
  border-color: #d0d5dd;
  border-radius: 8px;
  color: #344054;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-operations-toolbar select {
  min-width: 190px;
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-weight: 700;
}

.patient-operations-wrap {
  margin-top: 0;
  border: 1px solid #d7e0ee;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}

.patient-operations-wrap::before {
  display: none;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.25;
}

.patient-operations-table th {
  background: #dbe9fb;
  color: #20242b;
  font-weight: 850;
}

.patient-operations-table td {
  border-top: 1px solid #d7e0ee;
}

.patient-operations-table .operation-name {
  color: #20242b;
  font-size: 14px;
  font-weight: 600;
}

.patient-operations-table .sessions-link {
  color: #2d8f57;
  font-size: 14px;
  font-weight: 850;
}

.patient-operations-table .money-cell,
.patient-operations-table .green-text,
.patient-operations-table .red-text {
  font-size: 14px;
  font-weight: 850;
}

.patient-document-actions {
  justify-content: flex-end;
  gap: 8px;
  margin: 0 18px 12px;
}

.patient-document-actions button {
  min-width: 118px;
  min-height: 35px;
  padding: 0 15px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eef6ff;
  color: #2563eb;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

.patient-document-actions button:first-child {
  border: 1px solid #bfdbfe;
  background: #eef6ff;
  color: #2563eb;
}

.patient-document-actions button:last-child {
  border-color: #0f66e8;
  background: #0f66e8;
  color: #fff;
}

.patient-operations-table .dentalome-status {
  min-width: 68px;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid #bcd7ff;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d64d8;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.patient-operations-table .dentalome-status svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.operation-status-control {
  display: inline-flex;
  justify-content: center;
}

.patient-operations-table .operation-status-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.patient-operations-table .operation-status-trigger:hover {
  background: #f8fafc;
}

.patient-operations-table .operation-status-trigger:disabled {
  cursor: wait;
  opacity: 0.8;
}

.patient-operations-table .operation-status-badge {
  pointer-events: none;
}

.operation-status-menu {
  position: fixed;
  z-index: 1000;
  display: grid;
  min-width: 112px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.operation-status-menu button {
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #172033;
  padding: 7px 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.operation-status-menu button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Dentalome current statistics layout parity. */
.stats-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.stats-workspace .page-header {
  margin: 0 0 24px;
}

.stats-workspace .page-header h1 {
  margin: 0;
  color: #09090b;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
}

.page-header h1 > span {
  display: inline-block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

.stats-workspace .page-header p {
  margin: 4px 0 0;
  color: #71717a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.stats-period-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 14.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.stats-date-chip,
.stats-filter-control > button {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  gap: 8px;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stats-date-chip {
  width: auto;
  justify-content: flex-start;
  font-weight: 400;
}

.stats-date-control {
  flex: 0 0 auto;
  width: auto;
}

.stats-preset-control {
  flex: 0 0 auto;
  width: auto;
}

.stats-group-control {
  flex: 0 0 89.7421875px;
  width: 89.7421875px;
}

.stats-date-chip span {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.stats-filter-control {
  position: relative;
  height: 36px;
  min-width: 0;
}

.stats-practitioner-control {
  margin-left: auto;
  width: 240px;
}

.stats-filter-control > button {
  justify-content: center;
  width: auto;
}

.stats-date-control > .stats-date-chip {
  display: flex;
  justify-content: flex-start;
  font-weight: 400;
  text-align: left;
}

.stats-date-control > .stats-date-chip svg {
  margin-right: 8px;
}

.stats-preset-control > button svg,
.stats-group-control > button svg,
.stats-practitioner-control > button svg {
  margin-left: 8px;
}

.stats-practitioner-control > button {
  justify-content: space-between;
  justify-self: end;
  width: 100%;
  min-width: 240px;
}

.stats-filter-control > button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.stats-filter-control > button:focus-visible,
.stats-filter-control > button.filter-returned-focus {
  outline: none;
  border-color: rgb(2, 92, 226);
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stats-practitioner-control > button svg {
  opacity: 0.5;
}

.stats-filter-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  padding: 6px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.14);
}

.stats-date-range-menu {
  width: 490px;
  display: block;
  padding: 0;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

.stats-filter-menu-small {
  width: 178px;
}

.stats-filter-menu button,
.stats-filter-menu [role="menuitem"] {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.stats-filter-menu button:hover,
.stats-filter-menu button.active,
.stats-filter-menu button[aria-selected="true"],
.stats-filter-menu [role="menuitem"]:hover,
.stats-filter-menu [role="menuitem"]:focus,
.stats-filter-menu [role="menuitem"].active {
  outline: none;
  background: #eff6ff;
  color: #005fe5;
}

.stats-range-calendar {
  --rdp-accent-color: #025ce2;
  --rdp-accent-background-color: #f4f4f5;
  --rdp-day-height: 32px;
  --rdp-day-width: 32px;
  --rdp-day_button-height: 32px;
  --rdp-day_button-width: 32px;
  --rdp-day_button-border: 0;
  --rdp-day_button-border-radius: 8.4px;
  --rdp-selected-border: 0;
  --rdp-dropdown-gap: 6px;
  --rdp-months-gap: 16px;
  --rdp-nav_button-height: 32px;
  --rdp-nav_button-width: 32px;
  --rdp-nav-height: 32px;
  --rdp-outside-opacity: 1;
  width: 488px;
  margin: 0;
  padding: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  line-height: 24px;
}

.stats-range-calendar .rdp-months {
  width: 464px;
  display: flex;
  flex-flow: row nowrap;
  gap: 16px;
  position: relative;
  margin: 0;
}

.stats-range-calendar .rdp-month {
  width: 224px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.stats-range-calendar .rdp-nav {
  width: 464px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
}

.stats-date-range-menu .rdp-button_previous,
.stats-date-range-menu .rdp-button_next {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: #18181b;
  font-weight: 500;
}

.stats-date-range-menu .rdp-button_previous:hover,
.stats-date-range-menu .rdp-button_next:hover {
  background: #f4f4f5;
  color: #18181b;
}

.stats-date-range-menu .rdp-button_previous:focus-visible,
.stats-date-range-menu .rdp-button_next:focus-visible {
  outline: none;
  border-color: rgb(2, 92, 226);
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5);
}

.stats-range-calendar .rdp-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  color: currentColor;
}

.stats-range-calendar .rdp-month_caption {
  width: 224px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  margin: 0;
}

.stats-range-calendar .rdp-dropdowns {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.stats-range-calendar .rdp-dropdown_root {
  height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stats-range-calendar .rdp-caption_label {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  border-radius: 8.4px;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.stats-range-calendar .rdp-caption_label .rdp-chevron {
  width: 14px;
  height: 14px;
  color: #71717a;
}

.stats-range-calendar .rdp-month_grid {
  width: 224px;
  min-width: 224px;
  margin: 0;
  border-collapse: collapse;
}

.stats-range-calendar .rdp-weekdays,
.stats-range-calendar .rdp-week {
  width: 224px;
  display: flex;
}

.stats-range-calendar .rdp-weekdays {
  height: 19.1953125px;
}

.stats-range-calendar .rdp-week {
  height: 32px;
  margin-top: 8px;
}

.stats-range-calendar .rdp-weekday {
  width: 32px;
  height: 19.1953125px;
  flex: 1 0 32px;
  padding: 0;
  border-radius: 8.4px;
  color: #71717a;
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
  opacity: 1;
  border-bottom: 0;
}

.stats-range-calendar .rdp-day {
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  color: #18181b;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  border-bottom: 0;
}

.stats-date-range-menu .rdp-day_button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  text-align: center;
}

.stats-date-range-menu .rdp-day_button:hover {
  background: #f4f4f5;
  color: #18181b;
}

.stats-range-calendar .rdp-outside {
  color: #71717a;
  opacity: 1;
}

.stats-range-calendar .rdp-selected {
  font-size: 14px;
  font-weight: 400;
}

.stats-range-calendar .rdp-range_middle {
  background: transparent;
}

.stats-range-calendar .rdp-range_middle .rdp-day_button {
  border-radius: 0;
  background: #f4f4f5;
  color: #18181b;
}

.stats-range-calendar .rdp-range_start {
  border-radius: 8.4px 0 0 8.4px;
  background: #f4f4f5;
}

.stats-range-calendar .rdp-range_end {
  border-radius: 0 8.4px 8.4px 0;
  background: #f4f4f5;
}

.stats-range-calendar .rdp-week > .rdp-range_middle:first-child .rdp-day_button {
  border-radius: 8.4px 0 0 8.4px;
}

.stats-range-calendar .rdp-week > .rdp-range_middle:last-child .rdp-day_button {
  border-radius: 0 8.4px 8.4px 0;
}

.stats-range-calendar .rdp-range_start .rdp-day_button,
.stats-range-calendar .rdp-range_end .rdp-day_button {
  border-radius: 8.4px;
  background: #025ce2;
  color: #fff;
}

.stats-range-calendar .rdp-range_start.rdp-range_end {
  border-radius: 8.4px;
  background: transparent;
}

@media (max-width: 767px) {
  .stats-date-range-menu {
    width: 250px;
  }

  .stats-range-calendar {
    width: 248px;
  }

  .stats-range-calendar .rdp-months {
    width: 224px;
    flex-direction: column;
  }

  .stats-range-calendar .rdp-nav {
    width: 224px;
  }
}

.stats-practitioner-menu {
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  width: 240px;
  padding: 0;
  border-radius: 8.4px;
}

.stats-practitioner-search {
  display: flex;
  width: 238px;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.stats-practitioner-search > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: .5;
}

.stats-practitioner-search input {
  width: 190px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}

.stats-practitioner-options {
  width: 238px;
  height: 104px;
  padding: 4px;
  overflow-y: auto;
}

.stats-practitioner-options [role="option"] {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 230px;
  min-height: 32px;
  height: 32px;
  padding: 6px 8px;
  border-radius: 6.4px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.stats-practitioner-options [role="option"][aria-selected="true"] {
  background: #f4f4f5;
}

.stats-practitioner-options [role="option"] > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0;
}

.stats-practitioner-options [role="option"] > svg.selected {
  opacity: 1;
}

.stats-practitioner-options > span {
  display: block;
  padding: 8px 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.stats-revenue-card,
.stats-metric-panel {
  border: 1px solid oklch(0.929 0.013 255.508);
  border-radius: 16px;
  background: linear-gradient(to bottom right, rgb(255, 255, 255), oklch(0.984 0.003 247.858));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.stats-revenue-card {
  margin: 0 0 24px;
  padding: 20px;
}

.stats-panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.stats-panel-title-row h2,
.stats-metric-panel h2 {
  margin: 0;
  color: oklch(0.208 0.042 265.755);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.stats-panel-title-row p,
.stats-metric-panel p {
  margin: 0;
  color: oklch(0.554 0.046 257.417);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}

.stats-panel-title-row > span {
  align-self: end;
  color: oklch(0.554 0.046 257.417);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.stats-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.stats-summary-card,
.stats-mini-card {
  min-height: 64px;
  border-radius: 14.4px;
  border: 0;
  padding: 12px;
  background: oklch(0.97 0.014 254.604 / 0.7);
  box-shadow: 0 0 0 1px oklch(0.882 0.059 254.128 / 0.7);
}

.stats-summary-card {
  border: 0;
  box-shadow: 0 0 0 1px oklch(0.882 0.059 254.128 / 0.7);
}

.stats-summary-card .stats-summary-label,
.stats-mini-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: oklch(0.488 0.243 264.376);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stats-summary-card .stats-summary-value,
.stats-mini-card strong {
  display: block;
  margin: 0;
  color: oklch(0.208 0.042 265.755);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.stats-summary-card .stats-summary-label > span {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 9999px;
  background: oklch(0.546 0.245 262.881);
}

.stats-summary-card.cyan,
.stats-mini-card.cyan {
  background: oklch(0.977 0.013 236.62 / 0.7);
  box-shadow: 0 0 0 1px oklch(0.901 0.058 230.902 / 0.7);
}

.stats-summary-card.cyan {
  border: 0;
  box-shadow: 0 0 0 1px oklch(0.901 0.058 230.902 / 0.7);
}

.stats-summary-card.cyan .stats-summary-label,
.stats-mini-card.cyan span {
  color: oklch(0.5 0.134 242.749);
}

.stats-summary-card.cyan .stats-summary-label > span {
  background: oklch(0.588 0.158 241.966);
}

.stats-summary-card.orange {
  border: 0;
  background: oklch(0.98 0.016 73.684 / 0.7);
  box-shadow: 0 0 0 1px oklch(0.901 0.076 70.697 / 0.8);
}

.stats-summary-card.orange .stats-summary-label {
  color: oklch(0.553 0.195 38.402);
}

.stats-summary-card.orange .stats-summary-label > span {
  background: oklch(0.646 0.222 41.116);
}

.stats-mini-card.green {
  background: rgba(236, 253, 245, 0.7);
  box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.7);
}

.stats-mini-card.green span {
  color: #15803d;
}

.stats-mini-card.violet {
  background: rgba(245, 243, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(221, 214, 254, 0.7);
}

.stats-mini-card.violet span {
  color: #4f46e5;
}

.stats-mini-card.red {
  background: rgba(254, 242, 242, 0.7);
  box-shadow: 0 0 0 1px rgba(254, 202, 202, 0.7);
}

.stats-mini-card.red span {
  color: #b91c1c;
}

.stats-mini-card.amber {
  background: rgba(255, 251, 235, 0.7);
  box-shadow: 0 0 0 1px rgba(253, 230, 138, 0.7);
}

.stats-mini-card.amber span {
  color: #b45309;
}

.stats-chart-shell {
  border: 0;
  border-radius: 14.4px;
  background: oklch(1 0 0 / 0.7);
  padding: 8px;
  box-shadow: 0 0 0 1px oklch(0.929 0.013 255.508 / 0.7);
}

.stats-chart-shell.revenue {
  width: 100%;
  height: 420px;
  min-height: 420px;
}

.stats-chart-shell.revenue.empty {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stats-chart-shell.revenue.empty .stats-panel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 14.4px;
  background: oklch(1 0 0 / 0.7);
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  box-shadow: 0 0 0 1px oklch(0.929 0.013 255.508 / 0.7);
}

.stats-echart {
  width: 100%;
  height: 100%;
}

.stats-chart-shell.compact {
  min-height: 286px;
}

.stats-current-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.stats-metric-panel {
  padding: 20px;
}

.stats-panel-heading {
  height: 68px;
  margin-bottom: 16px;
}

.stats-panel-heading h2,
.stats-panel-heading p {
  margin: 0;
}

.stats-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: 84px;
  margin: 0 0 16px;
}

.stats-mini-metrics.single {
  grid-template-columns: minmax(0, 268px);
}

.stats-legacy-grid {
  margin-top: 0;
  gap: 16px;
}

.stats-chart-panel-current {
  height: 446px;
}

.stats-chart-panel-current h2 {
  margin-bottom: 16px;
}

.stats-ranked-panel {
  min-height: 506px;
}

.stats-ranked-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.stats-ranked-heading {
  display: flex;
  min-height: 48px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.stats-ranked-heading > div {
  min-width: 0;
}

.stats-ranked-heading h2,
.stats-ranked-heading p {
  margin: 0;
}

.stats-ranked-heading > strong {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.stats-ranked-chart {
  height: 400px;
}

.stats-ranked-list {
  min-height: 400px;
  padding: 16px;
  border: 0;
  border-radius: 14.4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.stats-ranked-list h3 {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.stats-ranked-summary {
  min-height: 72px;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 10.4px;
  background: rgba(241, 245, 249, 0.8);
}

.stats-ranked-summary span,
.stats-ranked-summary strong {
  display: block;
}

.stats-ranked-summary span {
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.stats-ranked-summary strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.stats-ranked-scroll {
  max-height: 256px;
  padding-right: 4px;
  overflow-y: auto;
}

.stats-ranked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0;
  color: #334155;
  font-size: 13px;
  border: 0;
}

.stats-ranked-row + .stats-ranked-row {
  margin-top: 12px;
}

.stats-ranked-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stats-ranked-row i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.stats-ranked-row strong {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.stats-current-grid > .stats-metric-panel {
  height: 704px;
}

.stats-current-chart,
.stats-status-chart {
  height: 380px;
}

.stats-status-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  height: 84px;
  margin-bottom: 12px;
}

.stats-attendance-card {
  height: 86px;
  margin-bottom: 16px;
  padding: 12px;
  border: 0;
  border-radius: 14.4px;
  background: rgba(239, 246, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.7);
}

.stats-attendance-card span,
.stats-attendance-card strong,
.stats-attendance-card b {
  display: block;
}

.stats-attendance-card span {
  color: #005dcc;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.stats-attendance-card strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.stats-attendance-card b {
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

.stats-appointment-type-panel,
.stats-top-acts-panel,
.stats-sex-distribution-panel,
.stats-acquisition-panel {
  height: 534px;
}

.stats-new-patients-chart {
  height: 360px;
}

.stats-patient-sex-chart {
  height: 320px;
}

.stats-acquisition-panel .stats-panel-empty {
  height: 400px;
  min-height: 400px;
  margin-top: 16px;
  border: 0;
  border-radius: 14.4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.stats-clinic-finance-panel {
  grid-column: 1 / -1;
  height: 506px;
}

@media (max-width: 1180px) {
  .stats-practitioner-control {
    flex: 1 1 auto;
    width: auto;
    margin-left: 0;
  }

  .stats-practitioner-control > button {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .dashboard-summary-grid,
  .dashboard-panel-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-greeting-card {
    width: auto;
  }

  .dashboard-panel {
    min-height: 0;
  }

  .stats-period-card,
  .stats-current-grid,
  .stats-legacy-grid,
  .stats-ranked-body {
    grid-template-columns: 1fr;
  }

  .stats-period-card {
    padding: 16px;
  }

  .admin-subscription-current-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-subscription-date-range > button,
  .admin-subscription-preset-control {
    width: 100%;
  }

  .admin-subscription-date-range > button {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-subscription-current-grid {
    grid-template-columns: 1fr;
  }

  .admin-subscription-pie-shell,
  .admin-subscription-detail-panel,
  .admin-subscription-empty-state {
    min-height: 300px;
  }

  .stats-date-chip,
  .stats-filter-control > button,
  .stats-practitioner-control > button {
    width: 100%;
    min-width: 0;
  }

  .stats-filter-menu,
  .stats-filter-menu-small,
  .stats-practitioner-menu {
    right: auto;
    left: 0;
    width: 100%;
  }

  .stats-mini-metrics.single {
    grid-template-columns: 1fr;
  }

  .stats-mini-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-summary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-current-grid > .stats-metric-panel,
  .stats-chart-panel-current,
  .stats-appointment-type-panel,
  .stats-top-acts-panel,
  .stats-sex-distribution-panel,
  .stats-acquisition-panel,
  .stats-clinic-finance-panel {
    height: auto;
  }

  .stats-panel-heading,
  .stats-mini-metrics,
  .stats-status-metrics {
    height: auto;
  }

  .stats-status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-ranked-list {
    min-height: 0;
  }
}

@media (max-width: 639px) {
  .stats-summary-row,
  .stats-mini-metrics,
  .stats-status-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dashboard-workspace {
    padding: 30px 32px 44px;
  }

  .dashboard-greeting-card {
    padding: 22px 24px;
  }

  .dashboard-panel {
    padding: 20px;
  }

  .dashboard-panel-head {
    align-items: flex-start;
  }

  .dashboard-panel-head h2 {
    font-size: 22px;
  }

  .dashboard-summary-value {
    font-size: 22px;
  }

  .dashboard-unpaid-row {
    align-items: flex-start;
  }

  .stats-workspace {
    padding: 24px 24px 8px;
  }

  .stats-revenue-card,
  .stats-metric-panel {
    padding: 20px;
  }

  .stats-panel-title-row {
    flex-direction: column;
    gap: 6px;
  }

  .stats-panel-title-row h2,
  .stats-metric-panel h2 {
    font-size: 20px;
  }

  .stats-chart-shell.revenue {
    min-height: 420px;
  }

  .stats-chart-shell.compact {
    min-height: 240px;
  }

  .stats-ranked-list {
    min-height: 0;
  }
}

.teeth-pills {
  gap: 4px;
}

.teeth-pills b {
  min-width: 34px;
  min-height: 28px;
  border-radius: 6px;
  background: #dceee4;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.dentalome-status {
  min-width: 108px;
  min-height: 36px;
  border-radius: 999px;
  background: #68a0fb;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.dentalome-actions {
  gap: 13px;
}

.dentalome-actions .plain-icon.small {
  width: 24px;
  height: 24px;
  color: #121417;
}

/* Current Dentalome patient odontogram controls: inline select-all switches, no external child toggle. */
.odontogram-panel.dentalome-odontogram-card .odontogram-control-row,
.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top,
.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
  position: static;
  inset: auto;
  width: 100%;
  display: flex;
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top {
  justify-content: space-between;
  padding: 20px 0 4px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
  justify-content: flex-start;
  padding: 8px 0 0;
}

.odontogram-panel.dentalome-odontogram-card .all-teeth-control {
  font-size: 14px;
}

.odontogram-panel.dentalome-odontogram-card .child-schema-inline {
  margin-left: auto;
}

.dentalome-child-schema-row {
  display: none;
}

.odontogram-panel.dentalome-odontogram-card .odontogram {
  margin-top: 8px;
}

/* Current Dentalome daily dashboard parity. */
.dashboard-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.dashboard-greeting-card {
  width: fit-content;
  min-width: 0;
  margin: 0 0 24px;
  padding: 20px 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  background: linear-gradient(to bottom right, #fff, rgba(248, 250, 252, 0.8));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.dashboard-greeting-card h1 {
  margin: 0;
  color: #1e293b;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-greeting-card p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}

.dashboard-summary-card {
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-radius: 14.4px;
  background: linear-gradient(to bottom right, rgba(239, 246, 255, 0.9), rgba(239, 246, 255, 0.5));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(219, 234, 254, 0.8);
}

.dashboard-summary-label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-summary-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-summary-value {
  margin-bottom: 0;
  display: block;
  margin-top: 4px;
  color: #1e293b;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.dashboard-summary-card.green {
  border-color: rgba(167, 243, 208, 0.6);
  background: linear-gradient(to bottom right, rgba(236, 253, 245, 0.9), rgba(236, 253, 245, 0.5));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(209, 250, 229, 0.8);
}

.dashboard-summary-card.green .dashboard-summary-label {
  color: #047857;
}

.dashboard-summary-card.blue {
  border-color: rgba(191, 219, 254, 0.6);
}

.dashboard-summary-card.violet {
  min-height: 0;
  border-color: rgba(221, 214, 254, 0.6);
  background: linear-gradient(to bottom right, rgba(245, 243, 255, 0.9), rgba(245, 243, 255, 0.5));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(237, 233, 254, 0.8);
}

.dashboard-summary-card.violet .dashboard-summary-label {
  color: #6d28d9;
}

.dashboard-summary-card.violet .dashboard-summary-value {
  font-size: 18px;
  line-height: 28px;
}

.dashboard-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.dashboard-panel {
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(to bottom right, #fff, #f8fafc);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-panel-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.dashboard-panel-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.dashboard-panel-head p strong {
  color: #475569;
  font-weight: 850;
}

.dashboard-panel-head a {
  color: #005fe5;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}

.dashboard-panel-head a:hover {
  text-decoration: underline;
}

.dashboard-appointment-list,
.dashboard-payment-list,
.dashboard-unpaid-list {
  display: grid;
  gap: 8px;
}

.dashboard-unpaid-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-appointment-list {
  max-height: 432px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-appointment-row,
.dashboard-payment-row,
.dashboard-unpaid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  border: 1px solid #f1f5f9;
  border-radius: 10.4px;
  background: #fff;
  color: #1f2937;
}

.dashboard-appointment-row {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
}

.dashboard-appointment-row:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.dashboard-appointment-row span,
.dashboard-payment-row span,
.dashboard-unpaid-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.dashboard-appointment-row strong,
.dashboard-payment-row strong,
.dashboard-unpaid-name {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.dashboard-appointment-row small,
.dashboard-payment-row small,
.dashboard-unpaid-phone {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.dashboard-appointment-row svg {
  flex: 0 0 auto;
  color: #667085;
}

.dashboard-appointment-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  color: #71717a;
  cursor: pointer;
}

.dashboard-appointment-row strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dashboard-appointment-delete:hover {
  color: #dc2626;
}

.dashboard-appointment-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  color: inherit;
  text-decoration: none;
}

.dashboard-appointment-color {
  width: 4px;
  height: 40px;
  flex: 0 0 4px;
  border-radius: 999px;
  background: var(--appointment-color, #94a3b8);
}

.dashboard-appointment-link:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.dashboard-empty-appointment-card,
.dashboard-empty-payment-card {
  min-height: 200px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  padding: 32px;
  border: 1px dashed rgba(0, 95, 229, 0.15);
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  text-align: center;
}

.dashboard-empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f4f4f5;
  color: #71717a;
}

.dashboard-empty-title {
  margin-top: 16px;
  margin-bottom: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.dashboard-empty-appointment-card p,
.dashboard-empty-payment-card p {
  margin: 0;
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
}

.dashboard-empty-appointment-card a,
.dashboard-empty-payment-card a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.dashboard-payment-row,
.dashboard-unpaid-row {
  gap: 0;
  padding: 12px 16px;
}

.dashboard-payment-total {
  display: grid;
  gap: 0;
  margin-bottom: 16px;
  padding: 12px;
  border: 0;
  border-radius: 14.4px;
  background: rgba(236, 253, 245, 0.7);
  box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.7);
}

.dashboard-payment-total span {
  color: #047857;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.dashboard-payment-total strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

a.dashboard-unpaid-row,
a.dashboard-payment-row {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

a.dashboard-unpaid-row:hover,
a.dashboard-payment-row:hover {
  background: #f8fbff;
}

a.dashboard-unpaid-row:focus-visible,
a.dashboard-payment-row:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.dashboard-payment-row b,
.dashboard-unpaid-amount {
  margin: 0;
  flex: 0 1 auto;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.dashboard-unpaid-amount {
  color: #a16207;
}

.dashboard-muted-empty {
  margin: 0;
  padding: 22px;
  color: #667085;
  border: 1px dashed #d9dee8;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 1279px) {
  .dashboard-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .dashboard-summary-grid,
  .dashboard-panel-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .dashboard-workspace {
    padding: 24px 24px 36px;
  }

  .dashboard-summary-grid,
  .dashboard-panel-grid {
    gap: 16px;
  }

  .dashboard-greeting-card {
    width: 100%;
    padding: 20px 24px;
  }

  .dashboard-panel {
    padding: 20px;
  }

  .dashboard-panel-head {
    align-items: flex-start;
  }

  .dashboard-panel-head h2 {
    font-size: 20px;
  }

  .dashboard-summary-value {
    font-size: 24px;
  }

  .dashboard-unpaid-row {
    align-items: flex-start;
  }
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: 210px minmax(320px, 1fr) auto;
  }

  .app-body.no-rail,
  .app-body.patient-detail-mode {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .primary-nav,
  .app-body.patient-detail-mode .primary-nav {
    width: 210px;
  }

  .patient-treatment-layout {
    grid-template-columns: minmax(620px, 1fr);
  }

  .act-status-card {
    min-height: 260px;
  }
}

/* 2026-05-30 live Dentalome shell parity pass. */
.topbar {
  grid-template-columns: 255px minmax(420px, 520px) minmax(120px, 1fr);
  gap: 24px;
  padding-right: 26px;
}

.topbar .brand {
  justify-content: flex-start;
  gap: 12px;
  padding-right: 10px;
  border-right: 1px solid #e4e7ec;
}

.topbar-sidebar-toggle {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
}

.topbar-sidebar-toggle:hover {
  background: #f2f4f7;
}

.topbar-mobile-menu-toggle {
  display: none;
}

.global-search {
  width: min(100%, 520px);
  max-width: 520px;
  height: 36px;
  padding: 0;
  border-color: #d9dee8;
  border-radius: 8px;
}

.global-search input {
  height: 34px;
  padding-left: 37px;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}

.global-search input::placeholder {
  color: #667085;
  font-weight: 500;
}

.global-search .global-search-icon {
  width: 17px;
  height: 17px;
  color: #667085;
}

.global-search-shortcut {
  right: 10px;
  min-width: 20px;
  height: 20px;
  background: #f8fafc;
  color: #111827;
}

.user-zone {
  min-width: 0;
  gap: 10px;
}

.topbar-action {
  width: 36px;
  height: 36px;
  border: 1px solid #d9dee8;
  border-radius: 9px;
  background: #fff;
  color: #111827;
}

.topbar-action:hover {
  background: #f8fafc;
}

.topbar-action.has-notification::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
}

.topbar-logout {
  display: none;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: 210px minmax(320px, 1fr) auto;
  }
}

/* 2026-05-30 Dentalome odontogram PNG asset parity pass. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  width: 100%;
  max-width: min(100%, 1080px);
  gap: 10px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  width: 100%;
  gap: clamp(4px, .55vw, 10px);
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  gap: clamp(1px, .28vw, 5px);
  min-width: 0;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  min-width: 0;
  min-height: 145px;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth {
  grid-template-rows: 22px minmax(118px, 1fr);
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  grid-template-rows: minmax(118px, 1fr) 22px;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art {
  width: clamp(36px, 3.2vw, 54px);
  height: 122px;
  min-height: 122px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.dentalome-tooth-png.tooth-svg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.dentalome-tooth-png.tooth-svg img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(210, 227, 255, .96);
  box-shadow: 0 0 0 1px rgba(53, 132, 243, .08);
}

/* 2026-05-30 Dentalome screenshot shell correction: compact blue shell + right patient rail. */
.app-shell {
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  background: #fff;
}

.topbar {
  height: 70px;
  grid-template-columns: 80px minmax(520px, 1fr) auto;
  gap: 18px;
  padding: 0 18px 0 0;
  background: #315d91;
  color: #fff;
  border-bottom: 0;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
}

.topbar .brand {
  height: 70px;
  width: 80px;
  justify-content: center;
  padding: 0;
  border-right: 0;
  color: #fff;
}

.topbar .shell-logo {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, .34);
  background: linear-gradient(135deg, #7ed2bc, #315d91);
  color: #fff;
  font-size: 18px;
  box-shadow: none;
}

.topbar .brand span,
.topbar-sidebar-toggle,
.global-search-shortcut,
.topbar-action,
.topbar-action.has-notification {
  display: none;
}

.global-search {
  justify-self: start;
  width: min(100%, 980px);
  max-width: 980px;
  height: 52px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.global-search input {
  height: 52px;
  padding: 0 58px 0 17px;
  background: #fff;
  color: #252a31;
  font-size: 22px;
  font-weight: 800;
  border: 0;
  box-shadow: none;
}

.global-search input::placeholder {
  color: #252a31;
  font-weight: 800;
}

.global-search .global-search-icon {
  left: auto;
  right: 15px;
  width: 34px;
  height: 34px;
  color: #347cf6;
}

.user-zone {
  height: 70px;
  min-width: 300px;
  justify-content: flex-end;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
}

.topbar-user-name {
  display: inline-block;
  color: #fff;
  font-size: 27px;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-avatar {
  width: 58px;
  height: 58px;
  border: 5px solid #0a0a0a;
  background: #fff;
  color: #0a0a0a;
}

.app-body.no-rail {
  grid-template-columns: 80px minmax(0, 1fr);
  background: #fff;
}

.app-body.patient-detail-mode {
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  background: #fff;
}

.app-body.no-rail .main,
.app-body.patient-detail-mode .main {
  grid-column: 2;
}

.main {
  padding-top: 70px;
  background: #fff;
}

.primary-nav,
.app-body.patient-detail-mode .primary-nav {
  width: 80px;
  padding: 70px 0 0;
  background: #315d91;
  border-right: 0;
  color: #fff;
}

.primary-nav-brand,
.nav-section-label,
.primary-nav-user {
  display: none;
}

.primary-nav button,
.app-body.patient-detail-mode .primary-nav button {
  width: 100%;
  min-height: 82px;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 8px 5px;
  border-radius: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.primary-nav button svg {
  width: 28px;
  height: 28px;
}

.primary-nav span,
.app-body.patient-detail-mode .primary-nav span {
  display: block;
  font-size: 11px;
  line-height: 1.12;
}

.primary-nav button.active,
.primary-nav button:hover {
  background: #fff;
  color: #111;
}

.app-body.patient-detail-mode .patient-side-nav {
  grid-column: 3;
  grid-row: 1;
  display: flex !important;
  width: 80px;
  top: 70px;
  height: calc(100vh - 70px);
  background: #fff;
  border-left: 1px solid #d9dee6;
}

.patient-side-nav button {
  min-height: 82px;
  margin: 3px 0;
  border-radius: 22px 0 0 22px;
  color: #111;
  font-weight: 850;
}

.patient-side-nav button svg {
  width: 30px;
  height: 30px;
}

.patient-side-nav button.active,
.patient-side-nav button:hover {
  background: #589363;
  color: #fff;
}

.patient-side-nav span {
  font-size: 11px;
  line-height: 1.08;
}

.patient-workspace {
  padding: 18px 18px 58px;
  background: #fff;
}

.patient-header.dentalome-patient-header {
  display: block;
  min-height: 62px;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid #eceff3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, .08);
  overflow: hidden;
}

.patient-title-strip {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(410px, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}

.patient-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-title-line h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #20242b;
  font-size: clamp(20px, 1.26vw, 25px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.patient-title-line .patient-alert-icon {
  flex: 0 0 auto;
  color: #6b7280;
}

.patient-edit-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20242b;
}

.patient-header-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.45vw, 24px);
  min-width: 0;
  white-space: nowrap;
}

.patient-header-financials .metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #20242b;
  font-size: clamp(16px, 1.02vw, 20px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.patient-header-financials .metric span::after {
  content: " :";
}

.patient-header-financials .metric strong,
.patient-header-financials .metric b {
  color: inherit;
  font-size: inherit;
  line-height: 1.05;
  font-weight: 850;
}

.patient-header-financials .metric.green strong,
.patient-header-financials .metric.green b {
  color: #39a369;
}

.patient-header-financials .metric.red strong,
.patient-header-financials .metric.red b {
  color: #d8222a;
}

.patient-header-tabs,
.patient-header.dentalome-patient-header .patient-warning {
  display: none;
}

.patient-treatment-card {
  border: 1px solid #eceff3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, .06);
}

.patient-treatment-layout {
  grid-template-columns: minmax(720px, 1fr) 320px;
  gap: 18px;
  padding: 22px 18px 0;
  align-items: flex-start;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 560px;
  padding: 0 34px 24px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 9px -2px #ccc;
  overflow: hidden;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid #dfe3ea;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  display: flex;
  width: max-content;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  min-width: 112px;
  min-height: 62px;
  padding: 0 20px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #424852;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: #fff;
  box-shadow: none;
}

.act-status-card {
  min-height: 560px;
  min-width: 0;
  padding: 28px 32px 32px;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, .11);
  overflow: hidden;
}

.act-status-card .add-act-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #589363;
  color: #fff;
  box-shadow: none;
  font-size: 18px;
  font-weight: 850;
}

.act-status-card .add-act-button:hover {
  background: #4f8759;
}

.patient-operations-card {
  padding: 0 24px 28px;
}

.patient-document-actions {
  justify-content: flex-end;
  margin: 8px 0 14px;
}

.patient-operations-wrap {
  margin-top: 58px;
}

/* 2026-05-30 Dentalome odontogram asset parity pass.
   Keep this after older compatibility rules so the extracted Dentalome SVG teeth win over PNG-era sizing. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  max-width: 100%;
  gap: 20px;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  gap: clamp(18px, 1.8vw, 34px);
  align-items: flex-start;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  gap: clamp(12px, 1.15vw, 24px);
  align-items: flex-start;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  min-width: clamp(36px, 3.15vw, 66px);
  min-height: 112px;
  display: grid;
  grid-template-rows: 20px 88px;
  gap: 4px;
  align-items: start;
  justify-items: center;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  order: 0;
  color: #20242b;
  font-size: clamp(13px, .9vw, 18px);
  line-height: 20px;
  font-weight: 850;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  order: 1;
  width: clamp(38px, 3.5vw, 72px);
  height: 88px;
  min-height: 88px;
  display: grid;
  place-items: start center;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg {
  width: 100%;
  height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg .dentalome-tooth-vector,
.dentalome-tooth-vector-wrap.tooth-svg svg {
  width: auto;
  max-width: 76px;
  height: 86px;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg svg .cls-1 {
  fill: none !important;
  stroke: #010101 !important;
}

.dentalome-tooth-vector-wrap.tooth-svg svg .cls-2,
.dentalome-tooth-vector-wrap.tooth-svg svg .cls-3 {
  fill: #fff !important;
  stroke: #000 !important;
}

.dentalome-tooth-vector-wrap.treated.tooth-svg:not([data-dent="31"]):not([data-dent="32"]):not([data-dent="33"]):not([data-dent="36"]):not([data-dent="41"]):not([data-dent="42"]):not([data-dent="43"]):not([data-dent="46"]) svg .cls-2,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="31"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="32"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="33"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="36"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="41"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="42"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="43"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="46"] svg .cls-3 {
  fill: var(--dent-acte-color, #49d889) !important;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(210, 227, 255, .96);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(43, 126, 255, .08);
}

.odontogram-panel.dentalome-odontogram-card .odontogram-divider {
  margin: 0;
  border-color: #d9dce3;
}

/* 2026-05-30 Dentalome PNG asset pass.
   The authenticated Dentalome frontend ships per-tooth PNGs; use them directly so roots,
   occlusal surfaces, treatment fills, and proportions match the reference screenshots. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  gap: 18px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  gap: clamp(12px, 1vw, 24px);
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  gap: clamp(8px, .72vw, 18px);
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth {
  width: clamp(42px, 3.15vw, 66px);
  min-width: clamp(42px, 3.15vw, 66px);
  min-height: 190px;
  gap: 5px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth {
  grid-template-rows: 158px 25px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth {
  grid-template-rows: 25px 158px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth .tooth-art {
  order: 0;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth strong {
  order: 1;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth strong {
  order: 0;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth .tooth-art {
  order: 1;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  width: clamp(43px, 3.35vw, 70px);
  height: 158px;
  min-height: 158px;
  place-items: center;
}

.dentalome-tooth-png.tooth-svg {
  width: 100%;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.dentalome-tooth-png.tooth-svg img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(210, 227, 255, .96);
  border-radius: 13px;
}

/* 2026-05-31 live Dentalome v3 overrides.
   These rules intentionally come last: previous parity passes still contain the
   old narrow-nav Dentalome layout and would otherwise override the new capture. */
.topbar {
  height: 60px;
  grid-template-columns: 255px minmax(420px, 560px) minmax(0, 1fr) auto;
  gap: 16px;
  padding: 0 16px 0 0;
  background: #fff;
  color: #101828;
  border-bottom: 1px solid #e4e7ec;
  box-shadow: none;
}

.topbar .brand {
  width: 255px;
  height: 60px;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 18px 0 28px;
  border-right: 1px solid #e4e7ec;
  color: #101828;
}

.topbar .shell-logo {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #0b63d8;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.topbar .brand span {
  display: inline;
  color: #101828;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}

.topbar-sidebar-toggle,
.global-search-shortcut,
.topbar-action,
.topbar-action.has-notification {
  display: inline-flex;
}

.topbar-sidebar-toggle {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #344054;
}

.global-search {
  justify-self: start;
  width: min(100%, 500px);
  max-width: 500px;
  height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.global-search input {
  height: 38px;
  padding: 0 42px 0 36px;
  background: transparent;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  box-shadow: none;
}

.global-search input::placeholder {
  color: #667085;
  font-weight: 500;
}

.global-search .global-search-icon {
  left: 12px;
  right: auto;
  width: 18px;
  height: 18px;
  color: #667085;
}

.global-search-shortcut {
  right: 12px;
  color: #667085;
  background: #f8fafc;
  border: 1px solid #d0d5dd;
}

.user-zone {
  min-width: 0;
  height: 60px;
  gap: 10px;
  justify-content: flex-end;
  color: #344054;
}

.topbar-action {
  width: 38px;
  height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
}

.topbar-logout {
  display: none;
}

.app-body.no-rail,
.app-body.patient-detail-mode {
  grid-template-columns: 255px minmax(0, 1fr);
  background: #f5f6f8;
}

.app-body.no-rail .main,
.app-body.patient-detail-mode .main {
  grid-column: 2;
}

.main {
  padding-top: 60px;
  background: #f5f6f8;
}

.primary-nav,
.app-body.patient-detail-mode .primary-nav {
  width: 255px;
  padding: 60px 8px 0;
  background: #fff;
  border-right: 1px solid #e4e7ec;
  color: #344054;
}

.primary-nav-brand {
  display: none;
}

.nav-section-label,
.primary-nav-user {
  display: flex;
}

.primary-nav-scroll {
  padding: 14px 0 84px;
}

.nav-section {
  margin: 0 0 22px;
}

.nav-section-label {
  padding: 0 8px 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.primary-nav button,
.app-body.patient-detail-mode .primary-nav button {
  width: 100%;
  min-height: 36px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 12px;
  border-radius: 7px;
  color: #344054;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.primary-nav button svg {
  width: 17px;
  height: 17px;
}

.primary-nav span,
.app-body.patient-detail-mode .primary-nav span {
  display: inline;
  font-size: 14px;
  line-height: 1;
}

.primary-nav button.active,
.primary-nav button:hover {
  background: #e8eef6;
  color: #0b63d8;
}

.primary-nav-user {
  left: 8px;
  right: 8px;
  bottom: 12px;
  min-height: 48px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
}

.app-body.patient-detail-mode .patient-side-nav {
  display: none !important;
}

.patient-workspace {
  padding: 24px 24px 48px;
  background: #f5f6f8;
}

.patient-header.dentalome-patient-header {
  display: block;
  margin: 0 0 36px;
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 14.4px;
  background: oklch(1 0 0);
  box-shadow: none;
  overflow: visible;
}

.dentalome-patient-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 109px;
  padding: 16px 24px 12px;
}

.dentalome-patient-identity > .patient-profile-main {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.dentalome-patient-identity .patient-profile-copy {
  min-width: 0;
}

.dentalome-patient-identity .patient-profile-copy,
.dentalome-patient-identity .patient-profile-copy * {
  overflow-wrap: break-word;
}

.dentalome-patient-identity > .patient-profile-actions {
  flex: 0 0 auto;
}

.patient-avatar-tile {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border: 1px solid oklab(0.92 0.00112401 -0.00383883 / 0.7);
  border-radius: 10.4px;
  display: grid;
  place-items: center;
  background: rgb(2, 92, 226);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.dentalome-patient-identity .patient-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dentalome-patient-identity .patient-display-name {
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: capitalize;
}

.patient-subline,
.patient-contact-line {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.patient-subline {
  gap: 4px;
}

.patient-contact-line {
  gap: 16px;
}

.patient-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.patient-contact-line svg {
  color: oklch(0.552 0.016 285.938);
}

.patient-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0;
}

.patient-profile-actions button {
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid oklab(0.92 0.00112401 -0.00383883 / 0.6);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-profile-actions button svg {
  width: 16px;
  height: 16px;
}

.patient-profile-actions .archive-action {
  border-color: oklch(0.901 0.076 70.697);
  background: oklch(0.98 0.016 73.684);
  color: oklch(0.553 0.195 38.402);
}

.patient-profile-actions .archive-action.restore-action {
  border-color: oklch(0.905 0.093 164.15);
  background: oklch(0.979 0.021 166.113);
  color: oklch(0.508 0.118 165.612);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patient-profile-actions .archive-action.restore-action svg {
  color: oklch(0.508 0.118 165.612);
}

.patient-profile-action-menu {
  width: 36px;
  padding: 0 !important;
  justify-content: center;
}

.patient-actions-menu {
  position: relative;
}

.patient-actions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 25;
  min-width: 188px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.patient-actions-dropdown button {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}

.patient-actions-dropdown button:hover,
.patient-actions-dropdown button:focus-visible {
  background: #f2f4f7;
  color: #101828;
}

.patient-whatsapp-dialog {
  width: min(620px, calc(100vw - 48px));
  padding: 24px 24px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.patient-whatsapp-dialog .modal-head {
  margin-bottom: 18px;
}

.patient-whatsapp-dialog .modal-head h2 {
  color: #101828;
  font-size: 18px;
  font-weight: 800;
}

.patient-whatsapp-dialog .modal-head p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.patient-whatsapp-dialog .modal-close-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 0;
}

.patient-whatsapp-dialog .modal-close-button:hover {
  background: #f2f4f7;
  color: #101828;
}

.patient-whatsapp-field {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.patient-whatsapp-template-field {
  margin-bottom: 16px;
}

.patient-whatsapp-template-field .appointment-source-combobox,
.patient-whatsapp-template-field .combobox-trigger {
  width: 100%;
}

.patient-whatsapp-template-field .appointment-source-combobox-menu {
  z-index: 10;
}

.patient-whatsapp-field textarea {
  min-height: 152px;
  resize: vertical;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px;
  color: #101828;
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
}

.patient-whatsapp-field textarea:focus {
  border-color: #1677ff;
  outline: 3px solid rgba(22, 119, 255, 0.14);
}

.patient-whatsapp-warning {
  margin: 10px 0 0;
  color: #d9480f;
  font-size: 12px;
  font-weight: 650;
}

.patient-header-tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
  overflow-x: auto;
}

.patient-header-tabs :is(button, a) {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #101828;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-header-tabs :is(button, a).active {
  color: #0b63d8;
  border-bottom-color: #0b63d8;
}

.patient-treatment-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.patient-treatment-layout {
  grid-template-columns: minmax(680px, 1fr) minmax(300px, 36%);
  gap: 16px;
  padding: 0;
  align-items: stretch;
}

.odontogram-panel.dentalome-odontogram-card,
.act-status-card,
.patient-operations-card {
  border: 1px solid #d8dde5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 504px;
  padding: 28px 28px 24px;
  overflow: hidden;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d8dde5;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  display: inline-flex;
  width: max-content;
  min-height: 34px;
  padding: 3px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  background: #f7f8fa;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  min-height: 28px;
  min-width: 0;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #101828;
  font-size: 13px;
  font-weight: 650;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  color: #101828;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.treatment-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  white-space: nowrap;
}

.treatment-financials .metric {
  display: grid;
  gap: 7px;
  color: #101828;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.treatment-financials .metric span {
  color: #98a2b3;
}

.treatment-financials .metric p {
  margin: 0;
  white-space: nowrap;
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  display: inline;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.treatment-financials .metric b {
  margin-left: 0;
}

.treatment-financials .metric.green strong,
.treatment-financials .metric.green b {
  color: #00a54f;
}

.treatment-financials .metric.red strong,
.treatment-financials .metric.red b {
  color: #f71d2a;
}

.act-status-card {
  min-height: 504px;
  padding: 28px;
}

.act-status-card .primary-button,
.add-act-button {
  width: 100%;
  height: 36px;
  justify-content: center;
  border-radius: 7px;
  background: #0b63d8;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.patient-operations-card {
  margin-top: 40px;
  padding: 12px;
}

.patient-document-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.patient-document-actions button {
  height: 36px;
  border-radius: 7px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #0b63d8;
  font-weight: 650;
}

.patient-document-actions button:last-child {
  background: #0b63d8;
  color: #fff;
}

.patient-operations-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d8dde5;
  border-radius: 10px;
  overflow: hidden;
}

.patient-operations-table th {
  height: 40px;
  background: #e8f1ff;
  color: #101828;
  font-size: 13px;
  font-weight: 650;
}

/* 2026-05-31 current Dentalome recapture: line-art odontogram assets. */
.odontogram-panel.dentalome-odontogram-card {
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .odontogram {
  min-width: 1040px;
  gap: 18px;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  min-height: 188px;
  gap: 0;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  display: grid;
  grid-template-columns: repeat(8, 62px);
  column-gap: 12px;
  align-items: end;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  width: 62px;
  min-width: 62px;
  height: 166px;
  padding: 0;
  gap: 5px;
  overflow: visible;
  color: #1e1e1e;
  font-size: 19px;
  font-weight: 850;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  justify-content: flex-start;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  width: 62px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg {
  width: 58px;
  height: 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dentalome-tooth-vector-wrap.tooth-svg .dentalome-tooth-vector {
  width: 58px;
  height: 108px;
  display: block;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg .cls-1 {
  fill: none;
  stroke: #111827;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dentalome-tooth-vector-wrap.tooth-svg .cls-2,
.dentalome-tooth-vector-wrap.tooth-svg .cls-3 {
  fill: #fff;
  stroke: #111827;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dentalome-tooth-vector-wrap.tooth-svg .tooth-root .cls-1 {
  fill: #fff;
}

.dentalome-tooth-vector-wrap.tooth-svg .fissure,
.dentalome-tooth-vector-wrap.tooth-svg .root-line {
  stroke: #111827;
  stroke-width: 1.35;
  opacity: .9;
}

.dentalome-tooth-vector-wrap.treated.tooth-svg:not([data-special-fill="true"]) .cls-2,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-special-fill="true"] .cls-3 {
  fill: var(--dent-acte-color, #8a1cc2);
  stroke: #111827;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(59, 130, 246, .18);
  border-radius: 18px;
  box-shadow: none;
  transform: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:hover .tooth-art {
  transform: none;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-divider {
  margin: 2px 48px 0;
  border-top: 1px solid #d8dde5;
}

/* Current Dentalome 2026-05-31 exact SVG tooth assets. */
.dentalome-tooth-exact.tooth-svg {
  width: 58px;
  height: 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.dentalome-tooth-exact-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dentalome-tooth-exact.tooth-svg svg {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
}

/* Dentalome's production stylesheet normalizes the translucent crown layer
   globally. The archived SVGs retain their source opacity declarations, so
   this override is required for the same rendered odontogram. */
.dentalome-odontogram-card .cls-2 {
  opacity: 1 !important;
}

.tooth.dentalome-tooth.treated .dentalome-tooth-exact.tooth-svg svg .cls-2,
.tooth.dentalome-tooth.treated .dentalome-tooth-exact.tooth-svg svg .cls-3 {
  fill: #fff !important;
}

.tooth.dentalome-tooth.treated .dentalome-tooth-exact.treated.tooth-svg:not([data-special-fill="true"]) svg .cls-2,
.tooth.dentalome-tooth.treated .dentalome-tooth-exact.treated.tooth-svg[data-special-fill="true"] svg .cls-3 {
  fill: var(--dent-acte-color, #8a1cc2) !important;
  opacity: 1 !important;
}

.tooth.dentalome-tooth.treated .dentalome-tooth-exact.treated.tooth-svg[data-fill-target="special"]:not([data-special-fill="true"]) svg .cls-3,
.tooth.dentalome-tooth.treated .dentalome-tooth-exact.treated.tooth-svg[data-fill-target="special"][data-special-fill="true"] svg .cls-2 {
  fill: var(--dent-special-color, #49d889) !important;
}

/* 2026-05-31 authoritative Dentalome refresh: keep exact teeth visible without
   letting fixed half-arch widths collide around the 11/21 and 41/31 midline. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  width: 100%;
  min-width: 0;
  max-width: 1096px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  column-gap: clamp(18px, 1.6vw, 28px);
  row-gap: 0;
  min-width: 0;
  width: 100%;
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  min-width: 0;
  width: 100%;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: clamp(4px, .42vw, 8px);
  justify-items: center;
}

.odontogram-panel.dentalome-odontogram-card .odontogram.child .tooth-group {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  width: 58px;
  min-width: 0;
  max-width: 58px;
}

/* 2026-05-31 new Dentalome parity pass: compact the odontogram stack.
   Earlier overrides accidentally reversed the tooth grid rows, which pushed
   labels away from the tooth art and made the patient detail card much taller
   than the current Dentalome screen. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  gap: 10px;
  margin-top: 8px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  min-height: 126px;
  align-items: center;
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  column-gap: clamp(6px, .56vw, 10px);
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 116px;
  min-height: 116px;
  max-width: 56px;
  gap: 4px;
  grid-template-rows: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth {
  grid-template-rows: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  grid-template-rows: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  order: 1;
  flex: 0 0 20px;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  order: 2;
  flex: 0 0 88px;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  width: 56px;
  height: 88px;
  min-height: 0;
}

.odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg,
.odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact-inner {
  width: 56px;
  height: 88px;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  font-size: 15px;
  line-height: 20px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-divider {
  margin: 8px 48px 4px;
}

/* 2026-05-31 new Dentalome visual baseline refinement.
   The current Dentalome UI is lighter and denser than the earlier staging
   approximation; keep these overrides last so older parity blocks cannot make
   patient pages look heavier than the live reference. */
.primary-nav button,
.app-body.patient-detail-mode .primary-nav button {
  font-weight: 560;
}

.nav-section-label {
  font-weight: 560;
}

.primary-nav-user {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 8px;
  min-height: 50px;
  padding: 7px 8px;
}

.primary-nav-user .mini-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
}

.primary-nav-user strong {
  display: block;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 580;
}

.primary-nav-user span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1;
  font-weight: 450;
}

.primary-nav-user .nav-logout {
  width: 28px;
  height: 28px;
  min-height: 28px !important;
}

.topbar .brand span {
  font-weight: 760;
}

.dentalome-patient-identity .patient-display-name {
  font-size: 20px;
  font-weight: 600;
}

.patient-avatar-tile {
  font-weight: 600;
}

.patient-profile-actions button,
.odontogram-panel.dentalome-odontogram-card .treatment-tabs button,
.act-status-card .primary-button,
.add-act-button {
  font-weight: 570;
}

.patient-profile-actions button {
  font-weight: 500;
}

.patient-subline,
.patient-contact-line {
  font-weight: 400;
}

.dentalome-patient-header .patient-contact-line {
  gap: 16px;
}

.patient-treatment-layout {
  grid-template-columns: minmax(760px, 1fr) minmax(300px, 33%);
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  margin-bottom: 14px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch {
  gap: 8px;
  font-weight: 500;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span {
  width: 32px;
  height: 18px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span::after {
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span::after {
  transform: translateX(14px);
}

.odontogram-panel.dentalome-odontogram-card .patient-receipt-download-button {
  width: auto;
  min-width: 158px;
}

.dashboard-appointment-row,
.dashboard-payment-row,
.dashboard-unpaid-row {
  color: inherit;
  text-decoration: none;
}

.treatment-financials .metric {
  font-weight: 700;
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  font-weight: 740;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  font-weight: 660;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:not(.lower) strong {
  order: 1;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:not(.lower) .tooth-art {
  order: 2;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  order: 1;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  order: 2;
}

.act-status-head strong,
.act-status-empty strong {
  font-weight: 650;
}

.patient-operations-card {
  margin-top: 28px;
}

.patient-document-actions {
  margin-bottom: 10px;
}

.patient-document-actions button,
.patient-operations-toolbar select {
  font-weight: 560;
}

.patient-operations-toolbar {
  margin-bottom: 6px;
}

.patient-operations-table th {
  height: 38px;
  font-weight: 560;
}

.patient-operations-table th,
.patient-operations-table td {
  font-size: 13px;
}

.patient-operations-table .operation-name {
  font-weight: 520;
}

.patient-operations-table .sessions-link {
  font-weight: 650;
}

.patient-operations-table .money-cell,
.patient-operations-table .green-text,
.patient-operations-table .red-text,
.patient-operations-table .dentalome-status {
  font-weight: 620;
}

.patient-operations-table .row-actions button,
.patient-operations-table .plain-icon {
  color: #101828;
}

.patient-operations-table .row-actions button svg,
.patient-operations-table .plain-icon svg,
.patient-operations-table .dentalome-inline-svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

.patient-operations-table .plain-icon.plan-add-as-acte.treated {
  color: #00a63e;
}

.treatment-plan-tabs {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 3px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  background: #f7f8fa;
  overflow-x: auto;
}

.treatment-plan-tabs button {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #101828;
  font-size: 13px;
  font-weight: 570;
  white-space: nowrap;
}

.treatment-plan-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.patient-operation-empty-state > span {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #667085;
}

.patient-operation-empty-state svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
}

.patient-operation-empty-state strong {
  color: #101828;
  font-size: 14px;
  font-weight: 650;
}

.patient-operation-empty-state small {
  color: #667085;
  font-size: 13px;
  font-weight: 430;
}

.patient-operations-card .treatment-plan-tabs + .patient-operations-toolbar {
  margin-top: 0;
}

/* 2026-05-31 current Dentalome shell correction.
   The live reference now has the identity inside the left sidebar and the
   topbar starts directly with search/actions. Keep this last because older
   Dentalome passes still force a hidden sidebar brand and a topbar brand slot. */
.topbar {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(420px, 500px) minmax(0, 1fr) auto;
  padding: 0 16px 0 24px;
}

.app-shell {
  grid-template-columns: 256px minmax(0, 1fr);
  grid-template-rows: 60px minmax(0, 1fr);
  background: #f5f6f8;
}

.app-body.no-rail,
.app-body.patient-detail-mode {
  grid-template-columns: 256px minmax(0, 1fr);
  background: #f5f6f8;
}

.topbar .brand {
  display: none;
}

.primary-nav,
.app-body.patient-detail-mode .primary-nav {
  width: 256px;
  padding: 0;
}

.primary-nav-brand {
  display: flex;
  height: 60px;
  flex: 0 0 60px;
  align-items: center;
  gap: 9px;
  padding: 0 28px;
  margin: 0;
  border-bottom: 1px solid #e4e7ec;
  color: #0b63d8;
  background: #fff;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.primary-nav-brand .shell-logo {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #0b63d8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.primary-nav-brand .shell-logo::before {
  content: none;
}

.primary-nav-scroll {
  padding: 14px 8px 84px;
}

/* 2026-06-01 current Dentalome shell: standalone sidebar toggle before search. */
.topbar {
  grid-template-columns: 28px minmax(420px, 500px) minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 16px 0 24px;
}

.topbar .brand .topbar-sidebar-toggle {
  display: none;
}

.topbar-sidebar-toggle-standalone {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 0;
  align-self: center;
  justify-self: start;
  gap: 8px;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.topbar-sidebar-toggle-standalone:hover {
  background: #f2f4f7;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .topbar {
  grid-column: 2;
}

.app-shell.sidebar-collapsed .app-body.no-rail,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .primary-nav,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
  width: 72px;
  padding-left: 8px;
  padding-right: 8px;
}

.app-shell.sidebar-collapsed .primary-nav button,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav button {
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .primary-nav span,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav span,
.app-shell.sidebar-collapsed .nav-section-label,
.app-shell.sidebar-collapsed .primary-nav-user {
  display: none;
}

/* 2026-06-01 current Dentalome patient images tab parity. */
.simple-section.image-section {
  position: relative;
  min-height: 0;
  padding: 14px 12px 12px;
  border: 1px solid #d9dee6;
  border-radius: 13px;
  box-shadow: none;
}

.simple-section.image-section .image-section-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 133px;
  margin: 0 0 10px;
}

.simple-section.image-section .image-section-title > div {
  width: 100%;
}

.simple-section.image-section .image-section-title h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
  color: #101113;
}

.simple-section.image-section.image-viewer-open .image-section-title h1 {
  visibility: hidden;
}

.simple-section.image-section .image-section-title p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  font-weight: 450;
}

.simple-section.image-section .image-import-button {
  position: absolute;
  right: 0;
  bottom: 14px;
  display: inline-flex;
  min-height: 36px;
  min-width: 193px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-end;
  margin-bottom: 14px;
  padding: 0 14px;
  border-radius: 6px;
  background: #075ee8;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.simple-section.image-section .image-import-button.disabled {
  cursor: wait;
  opacity: 0.72;
}

.simple-section.image-section .image-import-button input[type="file"],
.simple-section.image-section .patient-image-file-input {
  display: none;
}

.patient-image-upload-toast {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 80;
  max-width: min(360px, 100%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #fee4e2;
  border-radius: 8px;
  background: #fff;
  color: #b42318;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.16);
  font-size: 13px;
  font-weight: 650;
}

.patient-image-upload-toast svg {
  flex: 0 0 auto;
}

.patient-image-upload-toast button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-left: 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b42318;
  padding: 0;
}

.patient-image-upload-toast button:hover,
.patient-image-upload-toast button:focus-visible {
  background: #fee4e2;
}

@media (max-width: 640px) {
  .patient-image-upload-toast {
    top: 72px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

.simple-section.image-section .image-add-text {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.simple-section.image-section .image-table-shell {
  border: 1px solid #d9dee6;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}

.simple-section.image-section .image-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.simple-section.image-section .image-table th,
.simple-section.image-section .image-table td {
  height: 40px;
  padding: 10px 14px;
  border-bottom: 1px solid #e0e4eb;
  color: #20242b;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
}

.simple-section.image-section .image-table th {
  background: #eaf4ff;
  font-size: 13px;
  font-weight: 650;
}

.simple-section.image-section .image-table th:nth-child(1),
.simple-section.image-section .image-table td:nth-child(1) {
  width: 42%;
}

.simple-section.image-section .image-table th:nth-child(2),
.simple-section.image-section .image-table td:nth-child(2) {
  width: 36%;
}

.simple-section.image-section .image-table th:nth-child(3),
.simple-section.image-section .image-table td:nth-child(3) {
  width: 22%;
  text-align: center;
}

.simple-section.image-section .image-table td.empty-table-cell {
  width: auto;
  height: 94px !important;
  padding: 0 14px !important;
  color: #101113 !important;
  text-align: center !important;
  font-size: 13px;
  font-weight: 450 !important;
}

.simple-section.image-section .image-preview-link,
.simple-section.image-section .image-preview-placeholder {
  max-width: 100%;
}

.patient-image-thumbnail-shell {
  position: relative;
  width: 64px;
  height: 64px;
}

.patient-image-thumbnail-overlay {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8.4px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.patient-image-thumbnail-shell:hover .patient-image-thumbnail-overlay {
  opacity: 1;
}

.patient-image-viewer-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.patient-image-viewer-dialog {
  position: relative;
  width: 70vw;
  max-width: 70vw;
  display: grid;
  margin: auto;
  padding: 0;
  gap: 0;
  border: 0 solid #025ce2;
  border-radius: 10.4px;
  background: transparent;
  box-shadow: none;
}

.patient-image-viewer-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.patient-image-viewer-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.patient-image-viewer-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  display: block;
  object-fit: contain;
}

.patient-image-viewer-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
}

.patient-image-viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 56;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0 solid #025ce2;
  border-radius: 33554432px;
  background: rgba(255, 255, 255, 0.8);
  color: oklch(0.21 0.034 264.665);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-image-viewer-close:hover,
.patient-image-viewer-close:focus-visible {
  background: #fff;
}

.patient-image-viewer-close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.patient-image-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.patient-image-viewer-nav.previous {
  left: 16px;
}

.patient-image-viewer-nav.next {
  right: 16px;
}

.patient-image-viewer-nav:hover:not(:disabled),
.patient-image-viewer-nav:focus-visible:not(:disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.patient-image-viewer-nav:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.patient-image-viewer-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 56;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.patient-image-viewer-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.patient-image-viewer-dots button.active,
.patient-image-viewer-dots button:hover,
.patient-image-viewer-dots button:focus-visible {
  background: #fff;
  transform: scale(1.2);
}

.patient-image-viewer-missing {
  width: min(720px, calc(100vw - 48px));
  height: min(90vh, 520px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.95);
  border-radius: 24px;
}

.patient-image-viewer-missing span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.patient-image-viewer-missing p {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

@media (max-width: 640px) {
  .patient-image-viewer-dialog {
    width: 70vw;
    max-width: 70vw;
    padding: 0;
  }
}

/* 2026-06-01 current Dentalome patient Documents tab parity. */
.patient-documents-section {
  min-height: 380px;
  padding: 20px 14px 22px;
}

.patient-documents-section .patient-documents-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
}

.patient-documents-section .patient-documents-title h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 850;
  color: #20242b;
}

.patient-documents-section .patient-documents-title p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.document-subtabs {
  display: inline-flex;
  align-items: flex-end;
  margin-bottom: 0;
  border: 1px solid #d9dee6;
  border-bottom: 0;
  background: #fff;
}

.document-subtabs button {
  min-height: 37px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #d9dee6;
  border-bottom: 3px solid transparent;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 750;
}

.document-subtabs button:last-child {
  border-right: 0;
}

.document-subtabs button.active {
  color: #0b78f0;
  border-bottom-color: #0b78f0;
}

.document-generate-menu {
  position: relative;
}

.document-generate-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 6px;
  background: #0b78f0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.document-generate-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 20;
  width: 190px;
  border: 1px solid #d9dee6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.document-generate-dropdown button,
.document-generate-dropdown [role="menuitem"] {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
  color: #20242b;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}

.document-generate-dropdown button:last-child,
.document-generate-dropdown [role="menuitem"]:last-child {
  border-bottom: 0;
}

.document-generate-dropdown button:hover,
.document-generate-dropdown [role="menuitem"]:hover,
.document-generate-dropdown [role="menuitem"]:focus-visible {
  background: #f7faff;
}

.patient-documents-card,
.patient-notes-card {
  min-height: 312px;
}

.patient-documents-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 54px;
}

.patient-documents-title-row .dentalome-list-title {
  margin: 0;
}

.patient-documents-title-row .dentalome-list-title h2,
.patient-documents-title-row .dentalome-list-title h1 {
  font-size: 24px;
}

.patient-documents-title-row .dentalome-list-title p {
  margin-top: 9px;
  font-size: 15px;
  font-weight: 500;
}

.patient-document-action,
.patient-documents-card .document-generate-button {
  min-width: 164px;
  min-height: 36px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.patient-documents-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}

.patient-documents-certificate .patient-documents-title-row,
.patient-documents-letter .patient-documents-title-row {
  margin-bottom: 24px;
}

.patient-document-table {
  min-width: 760px;
}

.patient-documents-facture-table {
  min-width: 860px;
}

.patient-documents-care_sheet-table {
  min-width: 1020px;
}

.patient-notes-table {
  min-width: 860px;
}

.patient-notes-groups {
  display: grid;
  gap: 24px;
}

.patient-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.patient-note-card {
  min-width: 0;
  min-height: 178px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.patient-note-card-inner {
  padding: 16px;
}

.patient-note-card:hover {
  border-color: #cfe0ff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.patient-note-card.archived {
  border-color: #e5e7eb;
  opacity: 0.76;
}

.patient-note-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.patient-note-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.patient-note-title-line h3 {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #20242b;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.patient-note-archive-badge,
.patient-note-category {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 750;
}

.patient-note-archive-badge {
  border: 1px solid #d9dee7;
  color: #667085;
  background: #fff;
}

.patient-note-category {
  margin-bottom: 10px;
  color: #047857;
  background: #dcfce7;
}

.patient-note-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
}

.patient-note-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-note-meta span:nth-last-child(-n + 2) {
  flex: 0 0 auto;
}

.patient-note-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.patient-note-actions [data-tooltip] {
  position: relative;
}

.patient-note-actions [data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 10;
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 5px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
}

.patient-note-html {
  max-height: 96px;
  overflow: hidden;
  color: #20242b;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.patient-note-html p,
.patient-note-html ul,
.patient-note-html ol {
  margin: 0 0 8px;
}

.patient-note-html > :last-child {
  margin-bottom: 0;
}

.patient-notes-archive-section {
  border: 1px dashed #d9dee7;
  border-radius: 10px;
  background: #f8fafc;
}

.patient-notes-archive-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: #667085;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
}

.patient-notes-archive-toggle:hover {
  color: #20242b;
  background: #f7faff;
}

.patient-notes-archived-grid {
  padding: 0 16px 16px;
}

.patient-document-table td,
.patient-document-table th,
.patient-notes-table td,
.patient-notes-table th {
  height: 48px;
}

.patient-document-table .dentalome-patient-empty-row {
  height: 94px;
  color: #111827;
  text-align: center !important;
  font-size: 13.5px;
  font-weight: 450;
}

.patient-document-table th:last-child,
.patient-document-table td:last-child {
  text-align: center;
}

.patient-notes-table th:last-child,
.patient-notes-table td:last-child {
  width: 112px;
  text-align: center;
}

.patient-documents-facture-table th:nth-child(1),
.patient-documents-facture-table td:nth-child(1) {
  width: 25%;
}

.patient-documents-facture-table th:nth-child(2),
.patient-documents-facture-table td:nth-child(2) {
  width: 20%;
}

.patient-documents-facture-table th:nth-child(3),
.patient-documents-facture-table td:nth-child(3) {
  width: 25%;
}

.patient-documents-facture-table th:nth-child(4),
.patient-documents-facture-table td:nth-child(4) {
  width: 16%;
}

.patient-documents-ordonnance-table th:nth-child(1),
.patient-documents-ordonnance-table td:nth-child(1),
.patient-documents-devis-table th:nth-child(1),
.patient-documents-devis-table td:nth-child(1) {
  width: 26%;
}

.patient-documents-ordonnance-table th:nth-child(2),
.patient-documents-ordonnance-table td:nth-child(2),
.patient-documents-devis-table th:nth-child(2),
.patient-documents-devis-table td:nth-child(2) {
  width: 28%;
}

.patient-documents-ordonnance-table th:nth-child(3),
.patient-documents-ordonnance-table td:nth-child(3),
.patient-documents-devis-table th:nth-child(3),
.patient-documents-devis-table td:nth-child(3) {
  width: 30%;
}

.patient-documents-care_sheet-table th:nth-child(1),
.patient-documents-care_sheet-table td:nth-child(1) {
  width: 13%;
}

.patient-documents-care_sheet-table th:nth-child(2),
.patient-documents-care_sheet-table td:nth-child(2) {
  width: 12%;
}

.patient-documents-care_sheet-table th:nth-child(3),
.patient-documents-care_sheet-table td:nth-child(3) {
  width: 26%;
}

.patient-documents-care_sheet-table th:nth-child(4),
.patient-documents-care_sheet-table td:nth-child(4) {
  width: 22%;
}

.patient-documents-care_sheet-table th:nth-child(5),
.patient-documents-care_sheet-table td:nth-child(5) {
  width: 14%;
}

.patient-documents-certificate-table th:nth-child(1),
.patient-documents-certificate-table td:nth-child(1),
.patient-documents-letter-table th:nth-child(1),
.patient-documents-letter-table td:nth-child(1) {
  width: 22%;
}

.patient-documents-certificate-table th:nth-child(2),
.patient-documents-certificate-table td:nth-child(2),
.patient-documents-letter-table th:nth-child(2),
.patient-documents-letter-table td:nth-child(2) {
  width: 25%;
}

.patient-documents-certificate-table th:nth-child(3),
.patient-documents-certificate-table td:nth-child(3) {
  width: 35%;
}

.patient-notes-empty-card {
  min-height: 139px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed #c8dfff;
  border-radius: 11px;
  background: #fff;
  color: #6b7280;
  text-align: center;
}

.patient-notes-empty-card strong {
  color: #6b7280;
  font-size: 14px;
  font-weight: 750;
}

.patient-notes-empty-card p {
  margin: -4px 0 4px;
  color: #6b7280;
  font-size: 13px;
}

.patient-note-empty-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #d9dee7;
  border-radius: 7px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
}

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

@media (max-width: 520px) {
  .patient-documents-title-row,
  .patient-documents-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .patient-documents-title-row {
    margin-bottom: 28px;
  }

  .patient-document-action,
  .patient-documents-card .document-generate-button {
    width: 100%;
  }

  .document-generate-menu {
    width: 100%;
  }

  .patient-notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .patient-note-card-header {
    flex-direction: column;
  }

  .patient-note-actions {
    align-self: flex-end;
  }

  .document-subtabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .patient-document-table .dentalome-patient-empty-row {
    padding-left: 68px;
    text-align: left !important;
  }
}

/* 2026-06-02 current Dentalome settings/account parity. */
.dentalome-settings-workspace,
.message-templates-workspace {
  min-height: calc(100vh - 60px);
  padding: 24px 24px 32px;
  background: #f5f6f8;
}

.dentalome-settings-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding-bottom: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  background: #f6f7f8;
}

.dentalome-settings-workspace::-webkit-scrollbar {
  display: none;
}

.dentalome-settings-workspace.subscription-settings-workspace {
  scrollbar-width: thin;
}

.dentalome-settings-workspace.subscription-settings-workspace::-webkit-scrollbar {
  display: block;
  width: 8px;
}

.dentalome-settings-workspace.subscription-settings-workspace::-webkit-scrollbar-track {
  background: transparent;
}

.dentalome-settings-workspace.subscription-settings-workspace::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8b8b8;
}

.dentalome-settings-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: calc(100vh - 92px);
  min-height: 0;
  overflow: visible;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  box-shadow: none;
}

.account-settings-nav {
  height: 100%;
  min-height: 0;
  padding: 20px 16px;
  border-right: 1px solid #e4e4e7;
  background: #fff;
}

.account-settings-title {
  display: block;
  height: 20px;
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.account-settings-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.account-settings-nav nav > a {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 10.4px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
}

.account-settings-nav nav > a.active {
  background: #e7f0ff;
}

.account-settings-nav nav > a svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.account-settings-content {
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 20px 16px 20px 24px;
  background: #fff;
}

.account-settings-panel {
  min-height: 0;
  position: relative;
}

.account-breadcrumb,
.template-page-breadcrumb {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 20px;
}

.account-breadcrumb {
  height: 22px;
  gap: 0;
  color: #71717a;
}

.account-breadcrumb > :not(:last-child) {
  margin-right: 4px;
}

.account-breadcrumb-current,
.template-page-breadcrumb-current {
  color: #09090b;
  font-weight: 500;
}

.template-page-breadcrumb {
  gap: 4px;
  color: #667085;
}

.account-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.account-profile-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.account-profile-heading-row .account-breadcrumb {
  flex: 0 0 auto;
}

.account-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #edf9ef;
  color: #4b9a5c;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
}

.account-avatar-large {
  width: 128px;
  height: 128px;
  position: relative;
  margin: 0 0 31px;
  border: 0;
  border-radius: 999px;
  background: #fff;
}

.account-avatar-trigger {
  width: 128px;
  height: 128px;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  cursor: pointer;
}

.account-avatar-large img {
  width: 128px;
  height: 128px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
}

.account-avatar-edit-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(0 0 0 / 35%);
  color: #fff;
  opacity: 0;
  transition: opacity 120ms ease;
}

.account-avatar-delete {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: #dc2626;
  color: #fff;
  opacity: 0;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.account-avatar-trigger:hover .account-avatar-edit-overlay,
.account-avatar-trigger:focus-visible .account-avatar-edit-overlay,
.account-avatar-large:hover .account-avatar-delete,
.account-avatar-large:focus-within .account-avatar-delete {
  opacity: 1;
}

.account-avatar-empty {
  width: 128px;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px dashed #98a2b3;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.account-avatar-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: #1d4ed8;
}

.account-avatar-file-input {
  display: none;
}

.account-profile-form {
  position: relative;
  top: .5px;
  display: block;
}

.account-profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
}

.account-profile-fields-grid label,
.password-settings-form label,
.reminder-template-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.account-profile-fields-grid label.wide {
  grid-column: 1 / -1;
}

.account-profile-form input,
.account-profile-form textarea,
.password-settings-form input,
.reminder-template-card textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: #09090b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.account-profile-form textarea {
  height: 80px;
  min-height: 80px;
  padding: 8px 12px;
  resize: none;
}

.account-profile-form .muted-input {
  color: #09090b;
  background: #fff;
  opacity: .5;
  -webkit-text-fill-color: #09090b;
}

.phone-field {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 38px;
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.phone-field i {
  display: block;
  width: 23px;
  height: 16px;
  align-self: center;
  justify-self: center;
  border-radius: 5px;
  background: #d5d7dc;
}

.phone-field input {
  min-height: 36px;
  border: 0;
  border-left: 1px solid #d9dee7;
  border-radius: 0;
  box-shadow: none;
}

.account-profile-form .account-phone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 6;
}

.account-profile-form .account-phone-field > .field-label {
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.account-profile-form .account-phone-field:focus-within {
  z-index: 9;
}

.account-profile-form .patient-phone-number-input {
  height: 36px;
  min-height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 0 10.4px 10.4px 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.account-profile-form .patient-source-phone-input {
  grid-template-columns: 61px minmax(0, 1fr);
  min-height: 36px;
}

.account-profile-form .patient-phone-country-button {
  height: 36px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10.4px 0 0 10.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.account-profile-form .patient-phone-country-button .patient-phone-flag {
  color: #d5d7dc;
  background: currentColor;
}

.account-profile-form .patient-phone-country-button .patient-phone-flag > * {
  visibility: hidden;
}

.account-profile-form .patient-phone-number-input::placeholder,
.account-profile-form .patient-phone-country-search::placeholder {
  color: #6b7280;
  opacity: 1;
}

.account-profile-form .patient-phone-country-search {
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  box-shadow: none;
}

.account-profile-form .patient-phone-country-search:focus {
  border-bottom-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.dentalome-settings-workspace .primary-button,
.message-templates-workspace .primary-button {
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 8.4px;
  background: #025ce2;
  color: #eff6ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: none;
}

.account-save-button {
  gap: 8px;
  justify-self: end;
  align-self: start;
  min-width: 123.5px;
  margin-top: 0;
  padding: 8px 12px;
}

.account-save-button:disabled {
  cursor: progress;
  opacity: .72;
}

.account-form-status {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: #5c6675;
  font-size: 13px;
  font-weight: 500;
}

.account-profile-form .account-save-button {
  grid-column: 1 / -1;
}

.account-profile-form textarea,
.default-reminder-template-form textarea {
  display: flex;
}

.password-settings-form {
  width: 100%;
  display: block;
}

.password-settings-form input::placeholder,
.reminder-template-card textarea::placeholder {
  color: #8a8f98;
}

.password-settings-form input:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.password-settings-panel .account-breadcrumb {
  height: 20px;
}

.password-fields-grid {
  width: min(448px, 100%);
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.password-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-field > label {
  margin: 0;
}

.password-field.invalid > label {
  color: #e7000b;
}

.password-field-error {
  margin: 0;
  color: #e7000b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.password-field input[aria-invalid="true"] {
  border-color: #e7000b;
}

.password-field input[aria-invalid="true"]:focus-visible {
  border-color: #e7000b;
  box-shadow: 0 0 0 3px rgba(231, 0, 11, .22), 0 1px 2px rgba(0, 0, 0, .05);
}

.password-checklist {
  display: block;
  margin: 16px 0 0;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.password-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  margin-bottom: 8px;
}

.password-check-row:last-child {
  margin-bottom: 0;
}

.password-check-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #c9c9c9;
}

.password-check-row.met .password-check-icon {
  color: #0a8f55;
}

.password-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.password-settings-form .account-save-button {
  position: static;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 8px 16px;
  white-space: nowrap;
}

.subscription-settings-panel {
  display: grid;
  align-content: start;
  gap: 24px;
}

.subscription-settings-panel .account-breadcrumb {
  height: 20px;
  margin-bottom: 0;
}

.reminder-template-card {
  display: block;
  padding: 16px;
  border: 1px solid rgba(2, 92, 226, .2);
  border-radius: 14.4px;
  background: linear-gradient(90deg, rgba(2, 92, 226, .1) 0%, rgba(2, 92, 226, .05) 50%, rgba(2, 92, 226, 0) 100%);
}

.default-reminder-template-form {
  display: block;
  margin-top: 16px;
}

.default-reminder-template-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.default-reminder-template-field label {
  display: block;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.default-reminder-template-field p {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.default-reminder-template-actions {
  display: flex;
  justify-content: flex-end;
}

.template-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.template-head .template-title {
  margin: 0;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.template-head .template-description {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.info-dot {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(2, 92, 226, .15);
  color: #025ce2;
}

.reminder-template-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 2px 4px;
  border-radius: 4px;
  background: #f4f4f5;
  color: #71717a;
  font-size: 12px;
  line-height: 16px;
}

.reminder-template-card textarea {
  height: 120px;
  min-height: 120px;
  padding: 8px 12px;
  border-color: #e4e4e7;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  resize: none;
}

.reminder-template-card textarea:disabled {
  color: #8a8f98;
  background: #f8fafc;
  cursor: not-allowed;
}

.reminder-template-card .account-save-button {
  min-width: 0;
  margin: 0;
  padding: 8px 16px;
  background: #025ce2;
}

.reminder-template-card .account-save-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.subscription-form-error {
  margin: -4px 0 0;
  color: #d92d20;
  font-size: 13px;
  line-height: 1.35;
}

.subscription-status {
  margin-top: -10px;
}

.quota-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quota-card {
  height: 134px;
  padding: 20px;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.quota-card-heading {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.quota-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 10.4px;
  color: #025ce2;
  background: rgba(2, 92, 226, .1);
}

.quota-icon.whatsapp {
  color: #059669;
  background: rgba(16, 185, 129, .1);
}

.quota-card-title-text {
  margin: 0;
  color: #18181b;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.quota-percent {
  color: #71717a;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.quota-card p {
  margin: 0 0 12px;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.quota-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4f4f5;
}

.quota-track i {
  display: block;
  width: 0;
  height: 100%;
  background: #025ce2;
  transition: width .2s ease;
}

.quota-track.whatsapp i {
  background: #059669;
}

.subscription-skeleton-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.subscription-skeleton-stack span {
  height: 11px;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
}

.subscription-skeleton-stack span:last-child {
  width: 100%;
  height: 8px;
}

.automation-card {
  display: block;
  padding: 20px;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.automation-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #18181b;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.automation-card-heading p {
  margin: 0;
  font-weight: 500;
}

.automation-card-heading svg {
  color: #025ce2;
}

.automation-row {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid rgba(228, 228, 231, .7);
  border-radius: 10.4px;
  background: rgba(244, 244, 245, .3);
  margin-bottom: 16px;
}

.automation-row:last-child {
  margin-bottom: 0;
}

.automation-row label {
  display: inline;
  margin: 0 0 4px;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.automation-row p {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.source-switch {
  width: 32px;
  height: 18.4px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #e4e4e7;
  cursor: pointer;
  transition: background .15s ease;
}

.source-switch i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  transform: translateX(0);
  transition: transform .15s ease;
}

.source-switch.checked {
  background: #025ce2;
}

.source-switch.checked i {
  transform: translateX(14px);
}

.source-switch:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.message-templates-workspace .page-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
}

.message-templates-workspace .page-header h1 {
  margin: 0;
  color: #18181b;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.message-templates-workspace .page-header p {
  margin: 4px 0 0;
  color: #71717a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.template-page-breadcrumb {
  height: 20px;
  margin-bottom: 16px;
  color: #71717a;
  font-size: 14px;
  line-height: 20px;
}

.message-templates-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow: hidden;
  background: #f6f7f8;
}

.message-templates-workspace .page-header .primary-button.compact {
  height: 32px;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.template-settings-shell {
  height: calc(100vh - 212px);
  min-height: 0;
  display: flex;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
}

.template-list-pane {
  width: 288px;
  min-width: 0;
  min-height: 0;
  flex: 0 0 288px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
}

.template-list-pane h2 {
  width: 271px;
  margin: 0 0 8px;
  color: #18181b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.template-load-error {
  margin: -4px 0 12px;
  color: #d92d20;
  font-size: 13px;
  line-height: 1.4;
}

.template-list-empty,
.template-detail-empty {
  display: grid;
  place-items: center;
  text-align: center;
}

.template-list-empty {
  width: 278px;
  min-height: 116px;
  border: 1px dashed #d9dee7;
  border-radius: 10px;
}

.template-list-empty svg,
.template-detail-empty svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  color: #667085;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.template-list-empty strong,
.template-detail-empty h2 {
  margin: 10px 0 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.template-list-empty span,
.template-detail-empty p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.template-detail-empty {
  align-self: center;
  justify-self: center;
  width: 460px;
  min-height: 236px;
  padding: 28px;
  border: 1px dashed #d9dee7;
  border-radius: 12px;
}

.template-detail-empty .primary-button {
  margin-top: 18px;
}

.template-list-scroll {
  width: calc(100% - 9px);
  min-height: 0;
  flex: 1;
  margin-left: -4px;
  overflow: hidden scroll;
  border-radius: inherit;
}

.template-list-table {
  min-width: 100%;
  display: table;
}

.template-list-stack {
  width: max-content;
  min-width: 100%;
  padding-right: 8px;
}

.template-list-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  color: #27272a;
  transition: background .16s ease, border-color .16s ease;
}

.template-list-row:last-child {
  margin-bottom: 0;
}

.template-list-row.active {
  border-color: #e4e4e7;
  background: #f4f4f5;
}

.template-list-row:hover {
  background: rgba(244, 244, 245, .5);
}

.template-list-row > button:first-child {
  min-width: 0;
  flex: 1;
  min-height: 64px;
  padding: 12px 8px 12px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.template-list-row-content {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-list-active-indicator {
  width: 2px;
  height: 48px;
  flex: 0 0 2px;
  border-radius: 999px;
  background: #025ce2;
}

.template-list-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-list-title {
  display: block;
  color: #27272a;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-list-preview {
  max-width: 200px;
  color: #71717a;
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-delete-button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.account-profile-toast-message span {
  color: rgb(0, 138, 46);
  font-family: ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
}

.template-delete-button:hover {
  background: #fee9e9;
  color: #d92d20;
}

.template-detail-panel {
  width: 638px;
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.template-detail-toolbar {
  height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.template-detail-toolbar h2 {
  margin: 6px 0 0;
  color: #18181b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.template-detail-toolbar .primary-button.compact {
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.message-template-form {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.template-form-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-form-field > label {
  width: fit-content;
  display: flex;
  gap: 8px;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.template-form-field > label span {
  color: #dc2626;
}

.template-field-content {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  line-height: 22px;
}

.message-template-form input,
.message-template-form textarea {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.message-template-form input {
  height: 36px;
  min-height: 36px;
  padding: 4px 12px;
}

.message-template-form input[aria-invalid="true"],
.message-template-form textarea[aria-invalid="true"] {
  border-color: #f97066;
}

.template-body-field {
  min-height: 0;
  flex: 1;
}

.template-body-content {
  min-height: 0;
  flex: 1;
}

.message-template-form textarea {
  display: flex;
  flex: 1;
  min-height: 280px;
  padding: 8px 12px;
  background: transparent;
  resize: none;
  line-height: 20px;
}

.default-reminder-template-form textarea:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-template-form input::placeholder,
.message-template-form textarea::placeholder {
  color: #8a8f98;
}

.template-placeholder-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #fcd34d;
  border-radius: 8.4px;
  background: #fffbeb;
  color: #78350f;
}

.template-placeholder-warning svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
}

.template-placeholder-warning p {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.template-placeholder-warning code {
  color: #78350f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
}

.template-form-status,
.template-form-error {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.template-form-status {
  color: #0a8f55;
}

.template-form-error {
  color: #d92d20;
}

.template-detail-select-empty {
  min-height: 236px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #667085;
  text-align: center;
}

.template-detail-select-empty svg {
  color: rgba(102, 112, 133, .6);
}

.template-detail-select-empty p {
  margin: 0;
  font-size: 14px;
}

/* Centre Dentaire Benabad brand and login shell. */
.dentalome-logo {
  display: inline-flex;
  align-items: center;
  color: #025ce2;
  line-height: 1;
}

.dentalome-logo-wordmark {
  display: block;
  width: 288px;
  height: auto;
  color: currentColor;
}

.dentalome-logo-symbol {
  display: none;
  width: 32px;
  height: auto;
  color: currentColor;
}

.dentalome-logo-white {
  color: #fff;
}

.dentalome-login-screen.login-screen {
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  display: grid;
  grid-template-columns: minmax(0, 48.333333%) minmax(0, 51.666667%);
  place-items: stretch;
  align-items: stretch;
  justify-content: stretch;
  overflow-x: hidden;
  background: #fff;
}

.dentalome-login-cover {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: #2f5de5;
  color: #fff;
}

.dentalome-login-brand-lockup {
  display: grid;
  justify-items: center;
  width: min(520px, calc(100% - 48px));
  margin-top: 14px;
}

.dentalome-login-brand-lockup .dentalome-logo {
  transform: translate(68px, -3px);
}

.dentalome-login-brand-lockup .dentalome-logo-wordmark {
  width: 360px;
}

.dentalome-login-brand-lockup p {
  margin: 16px 0 0;
  transform: translateY(-6px);
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.dentalome-login-panel.login-panel {
  width: 380px;
  min-width: 0;
  gap: 0;
  align-self: center;
  justify-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dentalome-login-panel h1 {
  margin: 0;
  color: #1c1c1e;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.dentalome-login-panel p {
  margin: 4px 0 32px;
  color: #8e8e93;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.dentalome-login-panel .login-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.dentalome-login-panel .login-field + .login-field {
  margin-bottom: 20px;
}

.dentalome-login-panel .login-field > label {
  display: inline;
  margin: 0;
  color: #1c1c1e;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
}

.dentalome-login-panel .login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

.dentalome-login-panel .login-input-wrap svg {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #8a8f98;
}

.dentalome-login-panel input[type="email"],
.dentalome-login-panel input[type="password"],
.dentalome-login-panel .login-input-wrap input[type="text"] {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  color: #111827;
  background: transparent;
  font-size: 14px;
  box-shadow: none;
  outline: 0;
}

.dentalome-login-panel input::placeholder {
  color: #8a8f98;
}

.login-password-toggle {
  display: inline-grid;
  flex: 0 0 40px;
  height: 42px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #8a8f98;
  cursor: pointer;
}

.dentalome-login-panel .login-password-toggle svg {
  margin: 0;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  color: #222;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -2px 0 22px;
}

.login-options label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #1c1c1e;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.login-checkbox {
  display: block;
  width: 16px;
  height: 16px;
  place-items: center;
  flex: 0 0 16px;
  border: 1px solid #e5e5ea;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: #1c1c1e;
  cursor: pointer;
}

.login-checkbox[aria-checked="true"] {
  border-color: #2f5de5;
  background: #2f5de5;
}

.login-checkbox-input {
  position: absolute;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.login-options a {
  color: #0b63e5;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.forgot-password-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0b63e5;
  font: inherit;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.dentalome-login-panel .primary-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2f5de5;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  padding: 8px 16px;
  box-shadow: none;
}

.dentalome-login-panel .form-error {
  box-sizing: border-box;
  margin: 0 0 20px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.login-reset-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 24px;
}

.login-reset-dialog {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  color: #1c1c1e;
}

.login-reset-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #666;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.login-reset-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
}

.login-reset-header > span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9efff;
  color: #025ce2;
}

.login-reset-header h2 {
  margin: 0;
  color: #1f1f23;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.login-reset-stepper {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  align-items: center;
  gap: 0;
}

.login-reset-step {
  display: contents;
}

.login-reset-step-card {
  display: grid;
  min-width: 0;
  min-height: 68px;
  place-items: center;
  border-radius: 10px;
  color: #8a8f98;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.login-reset-step-card i {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-style: normal;
}

.login-reset-step-card b {
  margin-top: 6px;
  font-weight: 600;
}

.login-reset-step.active .login-reset-step-card {
  background: #e8eeff;
  color: #2556e3;
}

.login-reset-step.complete .login-reset-step-card {
  background: #e2f7ef;
  color: #00b884;
}

.login-reset-step-line {
  display: block;
  width: 24px;
  height: 2px;
  justify-self: center;
  background: #e5e7eb;
}

.login-reset-step-line.complete {
  background: #00b884;
}

.login-reset-form {
  display: grid;
  gap: 14px;
}

.login-reset-form label {
  display: grid;
  gap: 10px;
  color: #1c1c1e;
  font-size: 14px;
  font-weight: 650;
}

.login-reset-input-wrap {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.login-reset-input-wrap:focus-within {
  border-color: #2556e3;
  box-shadow: 0 0 0 3px rgba(37, 86, 227, 0.26);
}

.login-reset-input-wrap svg {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #8a8f98;
}

.login-reset-input-wrap input {
  min-width: 0;
  flex: 1;
  height: 46px;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: #1c1c1e;
  font-size: 14px;
  outline: 0;
}

.login-reset-form .primary-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2556e3;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.login-reset-form .primary-button:disabled {
  background: #8da7ef;
  cursor: not-allowed;
}

.login-reset-error {
  margin-top: -4px;
  color: #dc2626;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

.login-reset-sent {
  margin: -2px 0 8px;
  color: #8a8f98;
  font-size: 14px;
  line-height: 1.45;
}

.login-reset-sent strong {
  display: block;
  margin-top: 2px;
  color: #1c1c1e;
  font-weight: 700;
}

.login-reset-otp-row {
  display: grid;
  grid-template-columns: repeat(3, 46px) 14px repeat(3, 46px);
  gap: 6px;
  align-items: center;
}

.login-reset-otp-row::before {
  grid-column: 4;
  grid-row: 1;
  content: "–";
  justify-self: center;
  color: #8a8f98;
  font-size: 20px;
}

.login-reset-otp-row input {
  width: 46px;
  height: 48px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
  color: #1c1c1e;
  font-size: 22px;
  font-weight: 650;
  text-align: center;
  outline: 0;
}

.login-reset-otp-row input:focus {
  border-color: #2556e3;
  box-shadow: 0 0 0 3px rgba(37, 86, 227, 0.26);
}

.primary-nav-brand {
  color: #025ce2;
}

.primary-nav-brand .dentalome-logo {
  transform: translateX(-3px);
}

.primary-nav-brand .dentalome-logo-wordmark {
  width: 232px;
}

.primary-nav-user .mini-avatar,
.mini-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  object-fit: cover;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.primary-nav-initials {
  font-family: inherit;
}

body {
  min-width: 0;
}

@media (max-width: 900px) {
  .dentalome-login-screen.login-screen {
    grid-template-columns: 1fr;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .dentalome-login-cover {
    min-height: 280px;
    padding: 0;
  }

  .dentalome-login-panel.login-panel {
    width: min(380px, calc(100vw - 48px));
    margin: 48px auto 64px;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-body.no-rail,
  .app-body.patient-detail-mode,
  .app-shell.sidebar-collapsed .app-body.no-rail,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .primary-nav,
  .app-body.patient-detail-mode .primary-nav,
  .app-shell.sidebar-collapsed .primary-nav,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
    width: 72px;
  }

  .primary-nav-brand {
    justify-content: center;
    padding: 0 10px;
  }

  .primary-nav-brand .dentalome-logo-wordmark,
  .primary-nav span,
  .nav-section-label,
  .primary-nav-user div,
  .primary-nav-user .nav-logout {
    display: none;
  }

  .topbar-sidebar-toggle-standalone {
    display: none !important;
  }

  .topbar-mobile-menu-toggle {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #344054;
  }

  .patient-treatment-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .patient-treatment-layout > *,
  .odontogram-column,
  .act-status-card {
    min-width: 0;
    max-width: 100%;
  }

  .act-status-card {
    width: 100%;
    min-height: 240px;
    margin-top: 0;
    padding: 18px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram {
    width: 1020px;
    min-width: 1020px;
    max-width: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-row {
    column-gap: 18px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group {
    grid-template-columns: repeat(8, 56px);
    column-gap: 6px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram.child .tooth-group {
    grid-template-columns: repeat(5, 56px);
  }

  .primary-nav-brand .dentalome-logo-symbol {
    display: block;
  }

  .primary-nav-scroll {
    padding: 14px 8px 84px;
  }

  .primary-nav button {
    justify-content: center;
    padding: 0;
  }

  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-column: 2;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }

  .global-search {
    max-width: none;
  }

  .user-zone {
    gap: 6px;
  }

  .topbar-action {
    width: 34px;
    height: 34px;
  }

  .dentalome-settings-workspace,
  .message-templates-workspace {
    padding: 16px;
  }

  .dentalome-settings-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 92px);
    overflow: visible;
  }

  .account-settings-nav {
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid #d9dee7;
  }

  .account-settings-title {
    width: 100%;
  }

  .account-settings-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }

  .account-settings-nav nav > a {
    width: auto;
    min-width: 152px;
    margin: 0;
  }

  .account-settings-content {
    height: auto;
    padding: 18px;
  }

  .account-settings-panel {
    min-height: auto;
  }

  .account-profile-fields-grid {
    grid-template-columns: 1fr;
  }

  .password-settings-form .account-save-button {
    position: static;
    justify-self: start;
  }

  .quota-grid {
    grid-template-columns: 1fr;
  }

  .template-settings-shell {
    grid-template-columns: 1fr;
    min-height: 560px;
  }

  .template-list-pane {
    border-right: 0;
    border-bottom: 1px solid #d9dee7;
  }

  .template-list-empty {
    width: 100%;
  }

  .template-list-row small {
    max-width: min(520px, 100%);
  }

  .template-detail-panel {
    padding: 0;
  }

  .template-detail-empty {
    width: min(460px, calc(100% - 32px));
  }
}

@media (max-width: 520px) {
  .login-reset-dialog {
    gap: 24px;
    padding: 24px;
  }

  .login-reset-header {
    padding-right: 28px;
  }

  .login-reset-header h2 {
    white-space: normal;
  }

  .dentalome-login-cover {
    display: none;
  }

  .dentalome-login-panel.login-panel {
    width: auto;
    margin: auto 24px;
  }

  .dentalome-login-panel h1 {
    font-size: 20px;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-body.no-rail,
  .app-body.patient-detail-mode,
  .app-shell.sidebar-collapsed .app-body.no-rail,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode {
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-nav,
  .app-body.patient-detail-mode .primary-nav,
  .app-shell.sidebar-collapsed .primary-nav,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
    display: none;
  }

  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-column: 1;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .appointment-form-modal {
    width: calc(100vw - 48px);
    padding: 24px 24px 0;
  }

  .appointment-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .appointment-form-grid.creating,
  .appointment-form-grid.editing {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 22px;
  }

  .appointment-form-grid.creating > label,
  .appointment-form-grid.editing > label,
  .appointment-form-grid.creating > label:nth-of-type(n),
  .appointment-form-grid.editing > label:nth-of-type(n),
  .appointment-form-grid.creating .modal-actions,
  .appointment-form-grid.editing .modal-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .appointment-form-grid.creating .modal-actions,
  .appointment-form-grid.editing .modal-actions {
    width: calc(100% + 48px);
    margin: 0 -24px;
  }

  .appointment-form-actions {
    flex-wrap: wrap;
  }

  .appointment-form-footer-actions {
    flex: 0 0 100%;
  }

  .modal {
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .document-source-dialog-modal {
    width: calc(100vw - 32px);
    padding: 20px 16px 0;
  }

  .document-source-dialog-modal .modal-head {
    margin: -2px -16px 16px;
    padding: 0 16px 14px;
  }

  .document-source-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .document-source-summary {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .document-source-summary-card {
    justify-content: flex-start;
  }

  .document-source-table-wrap {
    overflow-x: auto;
  }

  .document-source-table {
    min-width: 560px;
  }

  .ordonnance-source-table {
    min-width: 100%;
  }

  .ordonnance-source-table th,
  .ordonnance-source-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .ordonnance-source-table th:first-child,
  .ordonnance-source-table td:first-child {
    width: 40%;
  }

  .ordonnance-source-table th:nth-child(2),
  .ordonnance-source-table td:nth-child(2) {
    width: calc(60% - 38px);
  }

  .ordonnance-source-table th:last-child,
  .ordonnance-source-table td:last-child {
    width: 38px;
  }

  .ordonnance-source-table input {
    min-width: 0;
    padding: 7px 8px;
    font-size: 13px;
  }

  .document-source-checkbox-list {
    position: static;
    margin-top: 4px;
  }

  .document-source-dialog-modal .modal-actions {
    flex-wrap: wrap;
    margin: 4px -16px 0;
    padding: 14px 16px;
  }

  .document-source-dialog-modal .modal-actions button {
    flex: 1 1 140px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .users-action-modal,
  .users-permissions-modal {
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .appointment-form-grid .modal-actions {
    margin-bottom: 0;
  }

  .operation-form-modal,
  .operation-sessions-modal,
  .operation-session-form-modal,
  .session-delete-alert-modal,
  .payment-form-modal,
  .patient-form-modal,
  .prothese-form-modal,
  .charge-form-modal {
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px 24px 0;
  }

  .operation-sessions-modal {
    width: calc(100vw - 32px);
    padding: 0;
  }

  .operation-sessions-summary-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .operation-sessions-scroll {
    max-height: calc(100vh - 280px);
    padding: 16px;
  }

  .operation-sessions-footer {
    padding: 16px;
  }

  .operation-session-card-header {
    align-items: flex-start;
  }

  .operation-session-date-chip {
    flex-wrap: wrap;
  }

  .medical-history-modal {
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    padding: 0;
  }

  .medical-history-scroll {
    max-height: calc(100vh - 190px);
    padding: 16px;
  }

  .medical-history-source-grid,
  .medical-lifestyle-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .medical-important-panel,
  .medical-history-section {
    padding: 16px;
  }

  .dentalome-operation-form,
  .dentalome-payment-form,
  .operation-session-form,
  .operation-session-source-form,
  .dentalome-patient-form,
  .dentalome-prothese-form,
  .dentalome-charge-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .operation-form-modal .modal-actions,
  .operation-sessions-modal .modal-actions,
  .operation-session-form-modal .modal-actions,
  .session-delete-alert-modal .modal-actions,
  .payment-form-modal .modal-actions,
  .patient-form-modal .modal-actions,
  .prothese-form-modal .modal-actions,
  .charge-form-modal .modal-actions {
    margin-bottom: 0;
  }

  .patient-form-modal .modal-actions {
    flex-wrap: wrap;
  }

  .patient-form-modal .patient-history-button,
  .patient-form-modal .modal-action-spacer {
    flex: 0 0 100%;
  }

  .patient-form-modal .patient-history-button {
    justify-content: center;
  }

  .medical-history-intro,
  .medical-alert-copy,
  .medical-section-head,
  .medical-question-row {
    align-items: stretch;
  }

  .medical-question-row {
    flex-direction: column;
  }

  .medical-yes-no {
    align-self: flex-start;
  }

  .medical-flag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .medical-history-actions {
    flex-wrap: wrap;
  }

  .medical-history-actions button {
    flex: 1 1 140px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .topbar-sidebar-toggle-standalone {
    display: none !important;
  }

  .topbar-mobile-menu-toggle {
    display: inline-grid;
    width: 28px;
    height: 28px;
    min-width: 28px;
    place-items: center;
    align-self: center;
    justify-self: start;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #111827;
  }

  .topbar-mobile-menu-toggle:hover {
    background: #f2f4f7;
  }

  .main,
  .app-body.no-rail .main,
  .app-body.patient-detail-mode .main {
    grid-column: 1;
  }

  .patient-workspace {
    padding: 24px 24px 40px;
    background: #f6f7f8;
  }

  .patient-header.dentalome-patient-header {
    overflow: visible;
  }

  .dentalome-patient-identity {
    grid-template-columns: 80px 127px auto;
    align-items: start;
    gap: 16px;
    padding: 16px 24px 12px;
  }

  .dentalome-patient-identity .patient-display-name {
    font-size: 20px;
    line-height: 25px;
    overflow: visible;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: normal;
    text-transform: capitalize;
  }

  .dentalome-patient-identity .patient-title-line {
    align-items: center;
    gap: 12px;
  }

  .patient-subline,
  .patient-contact-line {
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 20px;
  }

  .patient-subline {
    gap: 4px;
  }

  .patient-contact-line {
    gap: 16px;
  }

  .patient-profile-actions {
    grid-column: 3;
    width: auto;
    align-items: center;
    overflow: visible;
    padding-top: 0;
  }

  .patient-profile-actions button {
    flex: 0 0 auto;
  }

  .patient-header-tabs {
    padding: 0 24px;
  }

  .patient-header-tabs :is(button, a) {
    padding: 0 12px;
  }

  .patient-header-tabs :is(button, a).active {
    color: #101828;
  }

  .patient-treatment-layout {
    display: grid;
    width: 1067.015625px;
    min-width: 1067.015625px;
    max-width: none;
    grid-template-columns: 831px 220.015625px;
    gap: 16px;
  }

  .odontogram-column {
    width: 831px;
    min-width: 831px;
    max-width: none;
  }

  .patient-treatment-layout .act-status-card {
    width: 220.015625px;
    min-width: 220.015625px;
    max-width: none;
    height: 504px;
    min-height: 504px;
    padding: 28px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    width: 831px;
    min-width: 831px;
    max-width: none;
    height: 504px;
    min-height: 504px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    width: 899.34375px;
    height: 53px;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 16px;
    padding: 0 0 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    width: 273.78125px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 273.78125px;
    padding: 3px;
    border-radius: 8.4px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    height: 27px;
    min-height: 27px;
    padding: 4px 8px;
    border-radius: 6.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transform: translateX(4px);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions {
    width: 500.078125px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 500.078125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials {
    width: 318.3828125px;
    height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    flex: 0 0 318.3828125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: .3px;
    text-align: left;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric p,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric strong,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric b {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
    width: 100%;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .all-teeth-control {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span {
    width: 32px;
    height: 18.4px;
    border: 1px solid transparent;
    background: #e4e4e7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram {
    width: 100%;
    height: 289px;
    min-height: 289px;
    flex: 0 0 289px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-row {
    width: 100%;
    height: 128px;
    min-height: 128px;
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    transform: translateX(-61px);
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group {
    width: auto;
    min-width: 0;
    height: 128px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.right {
    margin-right: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.left {
    margin-left: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-midline {
    width: 1px;
    height: 104px;
    flex: 0 0 1px;
    align-self: center;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 128px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 6.4px;
    background: transparent;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
    flex: 0 0 16px;
    height: 16px;
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
    width: auto;
    height: 96px;
    min-height: 96px;
    flex: 0 0 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg,
  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact-inner {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg svg {
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    margin: 0;
  }

  .global-list-workspace .dentalome-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .global-list-workspace .dentalome-empty-cell {
    padding: 0 !important;
    text-align: left !important;
  }

  .global-list-workspace .dentalome-empty-text {
    position: sticky;
    left: 0;
    display: inline-flex;
    width: calc(100vw - 64px);
    min-height: 96px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    white-space: normal;
  }

  .users-controls-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
  }

  .users-controls-row .dentalome-segmented-tabs {
    flex: 0 0 auto;
  }

  .users-add-button {
    flex: 0 0 228.75px;
    width: 228.75px;
    min-width: 228.75px;
    max-width: none;
    white-space: nowrap;
  }

  .catalog-toolbar-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1px;
  }

  .catalog-filter-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
  }

  .charges-filter-row {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .operations-filter-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .operations-filter-row .payments-date-range-picker,
  .operations-filter-row .global-period-control,
  .operations-filter-row .dentalome-select-button {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 48px);
  }

  .operations-filter-row .payments-date-range-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .acts-workspace .dentalome-table-outside-footer {
    height: auto;
    min-height: 69px;
  }

  .operations-table-footer {
    min-width: 520px;
  }

  .payments-filter-row {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .payments-tabs.dentalome-segmented-tabs {
    width: 344.3125px;
    min-width: 344.3125px;
  }

  .payments-tabs.dentalome-segmented-tabs button {
    padding: 4px 8px;
    border: 1px solid transparent;
    white-space: nowrap;
  }

  .payments-filter-row .payments-date-range-picker,
  .payments-filter-row .payments-date-range-trigger {
    flex: 0 0 222.6953125px;
    width: 222.6953125px;
    min-width: 222.6953125px;
    max-width: none;
  }

  .payments-filter-row .global-period-control,
  .payments-filter-row .dentalome-select-button {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
    max-width: none;
  }

  .payments-filter-row .dentalome-download-button {
    flex: 0 0 135px;
    width: 135px;
    min-width: 135px;
    max-width: none;
  }

  .payments-filter-row .filter-row-actions {
    width: auto;
    margin-left: 0;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .payments-date-range-popover {
    grid-template-columns: 224px;
    width: 250px;
  }

  .payments-date-range-popover .payments-range-calendar-month:nth-of-type(2) {
    display: none;
  }

  .payments-filter-row .dentalome-download-button {
    justify-content: center;
  }

  .payments-workspace .dentalome-table-outside-footer {
    position: sticky;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: calc(100vw - 80px);
    min-height: 72px;
  }

  .payments-total-label {
    align-self: flex-start;
  }

  .patients-filter-row {
    flex-wrap: nowrap;
    gap: 0;
  }

  .patients-search-input {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-width: none;
  }

  .patients-filter-row .dentalome-blue-button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    max-width: none;
    white-space: nowrap;
  }

  .patients-workspace .dentalome-table-wrap tfoot td {
    height: auto;
    padding: 12px 16px;
  }

  .patients-workspace .dentalome-table-wrap table {
    width: 587px;
    min-width: 587px;
    table-layout: fixed;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(1),
  .patients-workspace .dentalome-table-wrap td:nth-child(1) {
    width: 71px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(2),
  .patients-workspace .dentalome-table-wrap td:nth-child(2) {
    width: 92px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(3),
  .patients-workspace .dentalome-table-wrap td:nth-child(3) {
    width: 100px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(4),
  .patients-workspace .dentalome-table-wrap td:nth-child(4) {
    width: 154px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(5),
  .patients-workspace .dentalome-table-wrap td:nth-child(5) {
    width: 170px;
  }

  .patient-directory-actions {
    gap: 10px;
  }

  .patients-table-footer {
    position: sticky;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: calc(100vw - 80px);
    min-height: 72px;
  }

  .patients-table-footer > span:first-child {
    position: static;
  }

  .patients-page-loading {
    position: static;
  }

  .patients-pagination {
    width: auto;
    margin-left: 0;
    gap: 4px;
  }

  .patients-pagination button,
  .patients-pagination-ellipsis {
    min-width: 28px;
    height: 30px;
    border-radius: 7px;
    font-size: 12px;
  }

  .patients-pagination button:first-child,
  .patients-pagination button:last-child {
    min-width: 60px;
  }

  .prothese-toolbar-card {
    padding: 14px 12px;
    min-height: 124px;
  }

  .prothese-toolbar-top {
    flex-direction: column;
    align-items: stretch;
    height: auto !important;
    gap: 8px;
  }

  .prothese-search-control {
    min-width: 0;
    width: 100%;
  }

  .prothese-search-shell input {
    width: 100%;
  }

  .prothese-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .prothese-filter-button {
    width: 117.5px;
    min-width: 117.5px;
  }

  .prothese-add-button {
    width: 163.25px;
    min-width: 163.25px;
  }

  .prothese-filter-button,
  .prothese-add-button {
    flex: 0 0 auto;
  }

  .prothese-filter-panel {
    grid-template-columns: 1fr;
  }

  .prothese-date-range-fields {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar-row .dentalome-blue-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .catalog-filter-row .dentalome-blue-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 136px;
    max-width: none;
  }

  .catalog-filter-row .dentalome-search-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .medications-workspace .medication-toolbar-actions {
    flex: 0 0 auto;
  }

  .medications-workspace .medication-search-input {
    width: 228px;
  }

  .medications-workspace .medication-scope-tabs {
    height: 54px;
  }

  .medications-workspace .medication-scope-tabs button {
    height: 52px;
    white-space: normal;
  }

  .medications-workspace .medication-scope-tabs button:first-child {
    width: 84px;
  }

  .medications-workspace .medication-scope-tabs button:last-child {
    width: 130.75px;
  }

  .charges-filter-row .date-range-pill,
  .charges-filter-row .payments-date-range-picker,
  .charges-filter-row .payments-date-range-trigger,
  .charges-filter-row .charges-period-control,
  .charges-filter-row .dentalome-select-button,
  .charges-filter-row .charges-add-button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    max-width: none;
    margin-left: 0;
  }

  .charges-filter-row .payments-date-range-picker,
  .charges-filter-row .payments-date-range-trigger,
  .charges-filter-row .date-range-pill {
    width: 221.75px;
    min-width: 221.75px;
  }

  .charges-filter-row .charges-period-control,
  .charges-filter-row .dentalome-select-button {
    width: 140.75px;
    min-width: 140.75px;
  }

  .charges-filter-row .charges-add-button {
    width: 186px;
    min-width: 186px;
  }

  .charges-filter-row .payments-date-range-trigger,
  .charges-filter-row .charges-period-trigger {
    justify-content: flex-start;
  }

  .charges-period-menu {
    width: max-content;
  }

  .global-list-workspace.documents-workspace .document-filter-primary .dentalome-search-input {
    font-size: 16px;
    line-height: 24px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer {
    position: static;
    width: 100%;
    height: 36px;
    min-height: 36px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .global-list-workspace.documents-workspace .documents-table-footer > span:first-child {
    position: static;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination {
    width: 100%;
    flex: 1 1 auto;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-list {
    gap: 4px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-link,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-ellipsis {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:first-child,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:last-child,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-previous,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-next {
    width: 40px;
    min-width: 40px;
    padding: 8px 12px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:first-child span,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:last-child span,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-previous span,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-next span {
    display: none;
  }

  .dentalome-settings-workspace,
  .message-templates-workspace {
    padding: 24px 24px 8px;
  }

  .account-settings-nav nav > a {
    flex: 1 1 100%;
  }

  .account-breadcrumb,
  .template-page-breadcrumb {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .account-avatar-large {
    width: 108px;
    height: 108px;
  }

  .account-avatar-large img {
    width: 108px;
    height: 108px;
  }

  .account-avatar-trigger,
  .account-avatar-empty {
    width: 108px;
    height: 108px;
  }

  .phone-field {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .reminder-template-card,
  .automation-card,
  .quota-card {
    border-radius: 10px;
  }

  .quota-card {
    padding-left: 58px;
  }

  .message-templates-workspace .page-header {
    display: grid;
    height: 128px;
    margin-bottom: 24px;
  }

  .message-templates-workspace .page-header p {
    width: 288px;
  }

  .message-templates-workspace .page-header-actions {
    justify-content: flex-start;
  }

  .template-settings-shell {
    min-height: 620px;
  }

  .template-detail-toolbar {
    display: grid;
    gap: 10px;
  }

  .template-detail-toolbar .primary-button {
    justify-self: start;
  }

  .message-template-form textarea {
    min-height: 260px;
  }
}

/* 2026-06-04 shell topbar popover parity pass. */
.user-zone {
  position: relative;
}

.topbar-action.active,
.topbar-action[aria-expanded="true"] {
  border-color: #b9cdf9;
  background: #eef5ff;
  color: #075ee8;
}

.topbar-popover {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 95;
  width: min(326px, calc(100vw - 32px));
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.topbar-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #eef0f4;
}

.topbar-popover-head strong {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.topbar-popover-head span {
  display: block;
  max-width: 158px;
  color: #667085;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.35;
  text-align: right;
}

.topbar-account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f4;
}

.topbar-account-avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  background: #f4f7fb;
  color: #344054;
}

.topbar-account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.topbar-account-identity > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-account-identity strong {
  overflow: hidden;
  color: #101828;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-account-identity small {
  color: #667085;
  font-size: 12px;
  line-height: 16px;
}

.topbar-account-menu {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.topbar-account-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

.topbar-account-menu button:hover,
.topbar-account-menu button:focus-visible {
  outline: none;
  background: #f4f8ff;
  color: #075ee8;
}

.topbar-account-menu button.danger {
  margin-top: 3px;
  border-top: 1px solid #eef0f4;
  border-radius: 0 0 6px 6px;
  color: #b42318;
}

.topbar-account-menu button.danger:hover,
.topbar-account-menu button.danger:focus-visible {
  background: #fff4f2;
  color: #b42318;
}

.topbar-popover-list,
.topbar-notification-list {
  display: grid;
  gap: 0;
}

.topbar-popover-list button,
.topbar-notification-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f1f3f6;
  background: #fff;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
}

.topbar-popover-list button:hover,
.topbar-popover-list button.active,
.topbar-notification-row:hover {
  background: #f4f8ff;
}

.topbar-popover-list button.active {
  box-shadow: inset 3px 0 0 #075ee8;
}

.topbar-popover-list button span,
.topbar-notification-row strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.topbar-popover-list button small,
.topbar-notification-row small {
  color: #667085;
  font-size: 12px;
  font-weight: 460;
  line-height: 1.25;
}

.topbar-notification-row {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.topbar-notification-list {
  max-height: min(440px, calc(100vh - 150px));
  overflow-y: auto;
}

.topbar-notification-icon {
  width: 30px;
  height: 30px;
  display: inline-grid !important;
  place-items: center;
  border-radius: 50%;
  background: #f2f4f7;
  color: #475467;
}

.topbar-notification-row.cancelled .topbar-notification-icon {
  background: #fff1f0;
  color: #d92d20;
}

.topbar-notification-row.postponed .topbar-notification-icon {
  background: #fffaeb;
  color: #b54708;
}

.topbar-notification-row.absent .topbar-notification-icon {
  background: #f2f4f7;
  color: #475467;
}

.topbar-notification-status {
  width: max-content;
  display: inline-flex !important;
  color: #475467;
  font-size: 10px;
  font-weight: 750;
  line-height: 14px;
  text-transform: uppercase;
}

.topbar-notification-status.cancelled {
  color: #b42318;
}

.topbar-notification-status.postponed {
  color: #93370d;
}

.topbar-notification-time {
  display: inline-flex !important;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #075ee8;
  font-size: 12px;
  font-weight: 700;
}

.topbar-notification-row > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.topbar-notification-row strong,
.topbar-notification-row small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.topbar-popover-empty {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  color: #667085;
  font-size: 13px;
}

.topbar-popover-empty svg {
  color: #98a2b3;
}

.topbar-popover-link {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-top: 1px solid #eef0f4;
  background: #fff;
  color: #075ee8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.topbar-popover-link:hover {
  background: #f4f8ff;
}

@media (max-width: 900px) {
  .topbar-popover {
    top: 40px;
    right: 0;
    width: min(326px, calc(100vw - 24px));
  }

  .topbar-popover-head {
    padding: 13px 14px 11px;
  }

  .topbar-popover-list button,
  .topbar-notification-row {
    padding: 11px 14px;
  }
}

/* Strict doctor-parity shell: Dentalome keeps the document at viewport height
   and scrolls the active workspace instead of extending the page. */
html,
body,
#root {
  height: 100%;
  overflow: hidden;
}

.app-shell,
.app-body {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.main,
.app-body.no-rail .main,
.app-body.patient-detail-mode .main {
  height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.primary-nav .primary-nav-link,
.app-body.patient-detail-mode .primary-nav .primary-nav-link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}

.patient-header-tabs a {
  color: inherit;
  text-decoration: none;
}

.patient-receipt-download-button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.patient-receipt-download-button:disabled {
  cursor: wait;
  opacity: .65;
}

.dashboard-practitioner-note {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.notes-panel-title {
  margin: 0;
}

.notes-panel-title h2 {
  margin: 0;
  color: inherit;
  font: inherit;
}

.stats-panel-empty {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #667085;
  font-size: 14px;
  text-align: center;
}

.primary-nav .primary-nav-link.active,
.primary-nav .primary-nav-link:hover,
.primary-nav .primary-nav-link:focus-visible {
  background: #dfe7f0;
  color: #075fe5;
  outline: 0;
}

@media (min-width: 901px) {
  .app-shell,
  .app-body.no-rail,
  .app-body.patient-detail-mode,
  .main,
  .patient-workspace {
    background: #f6f7f8;
  }

  .primary-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 8px 0;
  }

  .nav-section {
    margin: 0 0 24px;
    padding: 0;
    border-top: 0;
  }

  .nav-section:last-child {
    margin-bottom: 8px;
  }

  .nav-section + .nav-section {
    border-top: 0;
  }

  .nav-section-label {
    height: 32px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 8px;
    color: rgba(75, 85, 99, .7);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0;
  }

  .primary-nav .primary-nav-link,
  .app-body.patient-detail-mode .primary-nav .primary-nav-link {
    height: 32px;
    min-height: 32px;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8.4px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .nav-section .primary-nav-link + .primary-nav-link {
    margin-top: 4px;
  }

  .primary-nav .primary-nav-link svg {
    width: 16px;
    height: 16px;
  }

  .primary-nav .primary-nav-link > span,
  .app-body.patient-detail-mode .primary-nav .primary-nav-link > span {
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.025em;
  }

  .primary-nav .primary-nav-link.active,
  .primary-nav .primary-nav-link:hover,
  .primary-nav .primary-nav-link:focus-visible {
    background: rgba(32, 85, 138, .15);
    color: rgb(2, 92, 226);
    font-weight: 500;
  }

  .primary-nav-user {
    width: 255px;
    height: 93px;
    min-height: 93px;
    flex: 0 0 93px;
    display: flex;
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid #e4e7ec;
    border-radius: 0;
    background: #fff;
    color: #4b5563;
  }

  .primary-nav-user-card {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(245, 245, 246, .6);
  }

  .primary-nav-user-main {
    width: 159px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .primary-nav-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0;
    border-radius: 999px;
    background: oklch(0.967 0.001 286.375);
    color: #4b5563;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .primary-nav-user .primary-nav-avatar {
    display: grid;
    place-items: center;
    margin: 0;
    background: oklch(0.967 0.001 286.375);
    color: #4b5563;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .primary-nav-avatar img {
    width: 32px;
    height: 32px;
    display: block;
  }

  .primary-nav-user-copy {
    width: 119px;
    height: 56px;
    display: flex;
    flex-direction: column;
  }

  .primary-nav-user strong {
    width: 119px;
    height: 40px;
    overflow: visible;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: normal;
  }

  .primary-nav-user span:not(.primary-nav-avatar) {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-transform: capitalize;
  }

  .primary-nav-user .nav-logout {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px !important;
    padding: 0;
    gap: 8px;
    justify-content: center;
    border: 0 solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
  }
}

/* Dentalome patient header structure: bordered shell plus intrinsic-width tablist. */
.patient-header-tabs-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 24px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
  overflow: visible;
}

.patient-header-tabs-shell > .patient-header-tabs {
  width: fit-content;
  min-width: max-content;
  height: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

@media (min-width: 521px) and (max-width: 800px) {
  .dentalome-patient-identity .patient-subline {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    column-gap: 4px;
    row-gap: 4px;
  }

  .dentalome-patient-identity .patient-subline > span:last-child {
    grid-column: 1 / -1;
  }

  .dentalome-patient-identity .patient-contact-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 16px;
  }

  .dentalome-patient-identity .patient-contact-item:first-child {
    justify-self: start;
  }

  .dentalome-patient-identity .patient-contact-item:last-child {
    width: 100%;
  }
}

.app-shell.sidebar-collapsed .primary-nav .primary-nav-link,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav .primary-nav-link {
  justify-content: center;
  padding: 0;
}

@media (max-width: 900px) {
  .primary-nav .primary-nav-link,
  .app-body.patient-detail-mode .primary-nav .primary-nav-link {
    justify-content: center;
    padding: 0;
  }
}

.patient-documents-card .patient-document-care-sheet-total {
  color: #16a34a;
}

.patient-documents-card .dentalome-row-actions .plain-icon.small:not(.danger) {
  color: oklch(0.21 0.006 285.885);
}

@media (min-width: 901px) {
  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    position: relative;
    display: block;
    height: 60px;
    padding: 12px 24px;
  }

  .topbar .topbar-sidebar-toggle-standalone {
    position: absolute;
    top: 50%;
    left: 12px;
    margin: 0;
    transform: translateY(-50%);
  }

  .topbar .global-search {
    position: absolute;
    top: 12px;
    left: 64px;
    width: 500px;
    max-width: 500px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar .global-search input {
    width: 500px;
    height: 36px;
    padding: 4px 48px 4px 36px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(0.985 0.002 247.839);
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .topbar .global-search input::placeholder {
    color: #6b7280;
    font-weight: 400;
  }

  .topbar .global-search .global-search-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  .topbar .global-search-shortcut {
    right: 12px;
    width: 21.2265625px;
    height: 20px;
  }

  .topbar .user-zone {
    position: absolute;
    top: 12px;
    right: 24px;
    width: 80px;
    min-width: 80px;
    height: 36px;
    gap: 8px;
  }

  .topbar .topbar-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .primary-nav-user .nav-logout svg {
    width: 16px;
    height: 16px;
  }

  .topbar .topbar-logout {
    display: none;
  }

  .topbar .topbar-action svg {
    width: 16px;
    height: 16px;
  }

  .dentalome-patient-header .patient-header-tabs a:focus-visible {
    outline: 0;
    box-shadow: none;
  }

  .dentalome-patient-header .patient-header-tabs a.active {
    border-bottom-color: #025ce2;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-payments-card.dentalome-patient-list-card {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .patient-payments-card .dentalome-list-title {
    margin: 0 0 24px;
  }

  .patient-payments-card .dentalome-list-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-payments-card .dentalome-list-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-payments-card .dentalome-patient-table-scroll {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .patient-payments-card .dentalome-patient-table {
    width: 100%;
    min-width: 0;
    border: 0;
  }

  .patient-payments-card .dentalome-patient-table thead {
    background: rgba(2, 92, 226, .1);
  }

  .patient-payments-card .dentalome-patient-table thead tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-payments-card .dentalome-patient-table th {
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-patient-table td {
    height: 48px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-patient-table tbody tr,
  .patient-rdv-card .dentalome-patient-table tbody tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-payments-card .dentalome-patient-table tbody tr:last-child,
  .patient-rdv-card .dentalome-patient-table tbody tr:last-child {
    border-bottom: 0;
  }

  .patient-payments-card .patient-payments-table th:nth-child(1),
  .patient-payments-card .patient-payments-table td:nth-child(1) { width: 11.170721%; }
  .patient-payments-card .patient-payments-table th:nth-child(2),
  .patient-payments-card .patient-payments-table td:nth-child(2) { width: 17.196565%; }
  .patient-payments-card .patient-payments-table th:nth-child(3),
  .patient-payments-card .patient-payments-table td:nth-child(3) { width: 11.000956%; }
  .patient-payments-card .patient-payments-table th:nth-child(4),
  .patient-payments-card .patient-payments-table td:nth-child(4) { width: 27.361056%; }
  .patient-payments-card .patient-payments-table th:nth-child(5),
  .patient-payments-card .patient-payments-table td:nth-child(5) { width: 17.541864%; }
  .patient-payments-card .patient-payments-table th:nth-child(6),
  .patient-payments-card .patient-payments-table td:nth-child(6) { width: 15.728837%; }

  .patient-payments-card .patient-payments-table .dentalome-empty-row {
    height: 96px;
    text-align: center !important;
  }

  .patient-payments-card .patient-payments-table td .money-green {
    display: block;
    height: 20px;
    color: #16a34a;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-payments-card .patient-payments-table th:nth-child(6),
  .patient-payments-card .patient-payments-table td:nth-child(6) {
    text-align: left;
  }

  .patient-payments-card .dentalome-row-actions {
    gap: 8px;
    justify-content: flex-start;
  }

.patient-payments-card .dentalome-row-actions .plain-icon.small {
    width: 32px;
    height: 32px;
    color: oklch(0.141 0.005 285.823);
    font-weight: 500;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-row-actions .plain-icon.small.danger {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-payments-card .dentalome-row-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .patient-rdv-card.dentalome-patient-list-card {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .patient-rdv-card .dentalome-list-title {
    margin: 0 0 24px;
  }

  .patient-rdv-card .dentalome-list-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-rdv-card .dentalome-list-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-rdv-card .dentalome-patient-table-scroll {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .patient-rdv-card .dentalome-patient-table {
    width: 100%;
    min-width: 0;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-rdv-card .dentalome-patient-table thead {
    background: rgba(2, 92, 226, .1);
  }

  .patient-rdv-card .dentalome-patient-table thead tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-rdv-card .dentalome-patient-table th {
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-rdv-card .dentalome-patient-table td {
    height: 48px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-rdv-card .patient-rdv-table .dentalome-empty-row {
    height: 96px;
    text-align: center !important;
  }

  .patient-payments-card .dentalome-table-footer,
  .patient-rdv-card .dentalome-table-footer {
    width: 100%;
    height: 57px;
    min-height: 57px;
    padding: 12px 16px;
    border-top: 1px solid oklch(0.92 0.004 286.32);
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-pagination,
  .patient-rdv-card .dentalome-pagination {
    height: 32px;
    gap: 4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-pagination > span,
  .patient-rdv-card .dentalome-pagination > span {
    display: block;
    width: auto;
    min-width: 0;
    height: 20px;
    padding: 0 8px;
    border-radius: 0;
  }

  .patient-payments-card .dentalome-pagination button,
  .patient-rdv-card .dentalome-pagination button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-pagination button:disabled,
  .patient-rdv-card .dentalome-pagination button:disabled {
    color: oklch(0.704 0.04 256.788);
  }

  .patient-rdv-card .patient-rdv-table th:nth-child(1),
  .patient-rdv-card .patient-rdv-table td:nth-child(1) { width: 19.263357401%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(2),
  .patient-rdv-card .patient-rdv-table td:nth-child(2) { width: 20.660830325%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(3),
  .patient-rdv-card .patient-rdv-table td:nth-child(3) { width: 27.402978339%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(4),
  .patient-rdv-card .patient-rdv-table td:nth-child(4) { width: 15.024277978%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(5),
  .patient-rdv-card .patient-rdv-table td:nth-child(5) {
    width: 17.648646209%;
    text-align: left;
  }

  .patient-rdv-card .patient-rdv-table thead th:nth-child(2),
  .patient-rdv-card .patient-rdv-table tbody td:nth-child(2) { padding-left: 12px; }
  .patient-rdv-card .patient-rdv-table thead th:nth-child(3),
  .patient-rdv-card .patient-rdv-table tbody td:nth-child(3) { padding-left: 14px; }
  .patient-rdv-card .patient-rdv-table thead th:nth-child(4),
  .patient-rdv-card .patient-rdv-table tbody td:nth-child(4) { padding-left: 11px; }
  .patient-rdv-card .patient-rdv-table thead th:nth-child(5),
  .patient-rdv-card .patient-rdv-table tbody td:nth-child(5) { padding-left: 9px; }

  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(1),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(1) { width: 18.374887184%; }
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(2),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(2) { width: 20.828632671%; }
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(3),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(3) { width: 26.108416065%; }
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(4),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(4) { width: 17.872856498%; }
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(5),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(5) { width: 16.815207581%; }

  .patient-rdv-card .dentalome-status-pill {
    width: fit-content;
    min-width: 0;
    height: 22px;
    padding: 2px 8px;
    border: 1px solid rgba(60, 121, 212, .2);
    border-radius: 999px;
    background: rgba(60, 121, 212, .1);
    color: #025ce2;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .patient-rdv-card .dentalome-status-pill.realise {
    border-color: #dcfce7;
    background: #f0fdf4;
    color: #16a34a;
  }

  .patient-rdv-card .dentalome-status-pill.absent,
  .patient-rdv-card .dentalome-status-pill.annule {
    border-color: rgba(220, 38, 38, .2);
    background: #fef2f2;
    color: #dc2626;
  }

  .patient-rdv-card .dentalome-status-pill.reporte {
    border-color: rgba(245, 158, 11, .2);
    background: rgba(245, 158, 11, .1);
    color: #b45309;
  }

  .patient-rdv-card .dentalome-row-actions {
    gap: 8px;
    justify-content: flex-start;
  }

  .patient-rdv-card .dentalome-row-actions .plain-icon.small {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    font-weight: 500;
    line-height: 20px;
  }

  .patient-rdv-card .dentalome-row-actions .plain-icon.small.danger {
    display: inline-flex;
    color: oklch(0.577 0.245 27.325);
  }

  .patient-rdv-card .dentalome-row-actions .plain-icon.small.danger:disabled {
    opacity: .4;
  }

  .patient-rdv-card .dentalome-row-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .patient-documents-card.dentalome-patient-list-card {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .patient-documents-card .patient-documents-title-row {
    margin: 0 0 24px;
  }

  .patient-documents-card .dentalome-list-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-documents-card .dentalome-list-title p {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-documents-card.patient-documents-certificate,
  .patient-documents-card.patient-documents-letter {
    padding-bottom: 28px;
  }

  .patient-documents-card.patient-documents-letter {
    padding-bottom: 12px;
  }

  .patient-documents-card .patient-documents-toolbar {
    height: 36px;
    align-items: center;
    margin: 0 0 24px;
  }

  .patient-documents-card .document-subtabs {
    width: 294.109375px;
    height: 36px;
    min-height: 36px;
    align-items: flex-end;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
    background: #fff;
  }

  .patient-documents-card .document-subtabs button {
    height: 34px;
    min-height: 34px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .document-subtabs button:first-child {
    width: 87.21875px;
  }

  .patient-documents-card .document-subtabs button:last-child {
    width: 204.890625px;
  }

  .patient-documents-card .document-subtabs button.active {
    border-bottom-color: #025ce2;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-documents-card .document-subtabs button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 0;
  }

  .patient-documents-card .document-generate-menu {
    width: 238.2109375px;
    height: 36px;
  }

  .patient-documents-card .document-generate-menu > .document-generate-button {
    width: 238.2109375px;
    min-width: 238.2109375px;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
  }

  .patient-documents-card .document-generate-menu > .document-generate-button:focus-visible {
    outline: 0;
  }

  .patient-documents-card .document-generate-dropdown {
    top: calc(100% + 4px);
    right: auto;
    left: 0;
    width: 206.796875px;
    padding: 4px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1),
      0 2px 4px -2px rgba(0, 0, 0, .1);
  }

  .patient-documents-card .document-generate-dropdown button,
  .patient-documents-card .document-generate-dropdown [role="menuitem"] {
    display: flex;
    align-items: center;
    width: 100%;
    height: 32px;
    min-height: 32px;
    padding: 6px 8px;
    border: 0 solid oklch(0.92 0.004 286.32);
    border-radius: 6.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    gap: 8px;
    text-align: start;
  }

  .patient-certificate-source-modal.document-source-dialog-modal {
    position: relative;
    width: 672px;
    display: grid;
    gap: 20px;
    padding: 24px 24px 16px;
    overflow: visible;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1),
      0 4px 6px -4px rgba(0, 0, 0, .1);
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-head {
    height: 35px;
    margin: 0 -24px;
    padding: 0 24px 16px;
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-head h2 {
    width: 100%;
    color: #09090b;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-head > button,
  .patient-certificate-source-modal.document-source-dialog-modal > .modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    opacity: .7;
    display: block;
    gap: normal;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-head > button svg,
  .patient-certificate-source-modal.document-source-dialog-modal > .modal-close-button svg {
    width: 16px;
    height: 16px;
  }

  .patient-certificate-source-modal .document-source-dialog-form {
    display: block;
  }

  .patient-certificate-source-modal .document-source-grid {
    gap: 16px;
    margin-bottom: 20px;
  }

  .patient-certificate-source-modal .document-source-grid > label {
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .patient-certificate-source-modal .document-source-grid .field-label {
    height: 19.25px;
    gap: 8px;
    line-height: 19.25px;
  }

  .patient-certificate-source-modal .dentalome-date-input > button,
  .patient-certificate-source-modal .appointment-source-combobox > .combobox-trigger {
    width: 100%;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-certificate-source-modal .appointment-source-combobox > .combobox-trigger {
    font-weight: 500;
    text-align: center;
  }

  .patient-certificate-source-modal .dentalome-date-input > button:focus {
    border-color: #025ce2;
    outline: 0;
    box-shadow:
      0 0 0 1px rgba(2, 92, 226, .5),
      0 0 0 3px rgba(2, 92, 226, .25);
  }

  .patient-certificate-source-modal .patient-certificate-duration-summary {
    min-height: 58px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklab(0.967 0.000282 -0.000959 / .5);
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
  }

  .patient-certificate-source-modal .patient-certificate-duration-summary > span {
    display: block;
  }

  .patient-certificate-source-modal .patient-certificate-duration-summary > strong {
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-actions {
    height: 53px;
    gap: 8px;
    margin: 0 -24px;
    padding: 16px 24px 0;
    border-top: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-actions button,
  .patient-certificate-source-modal.document-source-dialog-modal .modal-actions .primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    gap: 8px;
    color: oklch(0.141 0.005 285.823);
    background: oklch(1 0 0);
    border: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-actions .primary-button {
    padding: 8px 12px;
    border: 0;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    box-shadow: none;
  }

  .patient-letter-source-modal.document-source-dialog-modal {
    position: relative;
    width: 768px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 16px;
    overflow: visible;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1),
      0 4px 6px -4px rgba(0, 0, 0, .1);
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-head {
    width: calc(100% + 48px);
    height: 35px;
    flex: 0 0 35px;
    margin: 0 -24px;
    padding: 0 24px 16px;
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-head h2 {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-head > button,
  .patient-letter-source-modal.document-source-dialog-modal > .modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    opacity: .7;
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-head > button svg,
  .patient-letter-source-modal.document-source-dialog-modal > .modal-close-button svg {
    width: 16px;
    height: 16px;
  }

  .patient-letter-source-modal .document-source-dialog-form {
    height: auto;
    min-height: 0;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
  }

  .patient-letter-source-modal .document-source-grid {
    height: auto;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .patient-letter-source-modal .document-source-grid > label {
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .patient-letter-source-modal .document-source-grid .field-label {
    height: 19.25px;
    gap: 8px;
    line-height: 19.25px;
  }

  .patient-letter-source-modal .dentalome-date-input > button,
  .patient-letter-source-modal .appointment-source-combobox > .combobox-trigger {
    width: 100%;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-letter-source-modal .dentalome-date-input > button {
    text-align: left;
  }

  .patient-letter-source-modal .appointment-source-combobox > .combobox-trigger {
    text-align: center;
  }

  .patient-letter-source-modal .document-source-grid > label.wide > input {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 4px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor-wrapper {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 65vh;
    border: 1px solid rgba(37, 39, 45, .1);
    border-radius: 12px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    color: rgba(36, 39, 46, .78);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-toolbar-group {
    gap: 2px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-toolbar-group + .tiptap-toolbar-group {
    margin-left: 5px;
    padding-left: 0;
    border-left: 0;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0);
    color: rgba(36, 39, 46, .78);
    font-size: 14px;
    font-weight: 500;
    line-height: 16.1px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-button.has-menu {
    width: 38px;
    gap: 0;
    padding: 8px 4px 8px 8px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-button:disabled {
    color: rgba(40, 44, 51, .42);
    opacity: 1;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor-content {
    height: auto;
    min-height: 160px;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor {
    position: relative;
    height: auto;
    min-height: 160px;
    padding: 16px 20px 24px;
    color: oklch(0.141 0.005 285.823);
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor p {
    margin: 0;
    line-height: 22px;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor p + p {
    margin-top: 20px;
    line-height: 25.6px;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor span {
    color: #025ce2;
  }

  .patient-letter-source-modal .document-source-grid:has(.patient-letter-content.has-template-error) {
    height: auto;
    flex-basis: auto;
  }

  .patient-letter-source-modal .patient-letter-content.has-template-error .field-label,
  .patient-letter-source-modal .patient-letter-content.has-template-error .simple-editor {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-letter-source-modal .patient-letter-template-error {
    display: block;
    height: 20px;
    margin-top: -5px;
    color: oklch(0.577 0.245 27.325);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-actions {
    height: 53px;
    flex: 0 0 53px;
    gap: 8px;
    margin: 0 -24px;
    padding: 16px 24px 0;
    border-top: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-actions button,
  .patient-letter-source-modal.document-source-dialog-modal .modal-actions .primary-button {
    width: auto;
    height: 36px;
    min-height: 36px;
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-actions button:not(.primary-button) {
    border: 1px solid oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-actions .primary-button {
    padding: 8px 12px;
    border: 0 solid oklch(0.92 0.004 286.32);
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    box-shadow: none;
  }

  .patient-document-source-modal .document-source-generate-icon {
    margin-right: 8px;
  }

  .document-delete-alert-modal .modal-actions button,
  .document-delete-alert-modal .modal-actions button:not(.primary-button),
  .document-delete-alert-modal .modal-actions button.danger-button {
    display: flex;
    width: auto;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-delete-alert-modal .modal-actions button:not(.primary-button):first-child {
    border: 1px solid oklch(0.92 0.004 286.32);
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    outline: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .document-delete-alert-modal .modal-actions button:not(.primary-button):first-child:focus-visible {
    border-color: #025ce2;
    box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
  }

  .document-delete-alert-modal .modal-actions button.danger-button {
    border: 0;
    background: oklch(0.577 0.245 27.325);
    color: #fff;
    box-shadow: none;
  }

  .patient-documents-card .patient-documents-action-row {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
  }

  .patient-documents-card .patient-documents-action-row .patient-document-action {
    width: 195.875px;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
  }

  .patient-documents-card .dentalome-list-title {
    flex: 1 1 auto;
    margin: 0;
  }

  .patient-documents-card .dentalome-list-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-documents-card.patient-documents-facture .dentalome-list-title h1 {
    transform: scaleX(.9532);
    transform-origin: left center;
  }

  .patient-documents-card.patient-documents-ordonnance .dentalome-list-title h1 {
    transform: scaleX(.95756);
    transform-origin: left center;
  }

  .patient-documents-card.patient-documents-devis .dentalome-list-title h1 {
    transform: scaleX(.952674);
    transform-origin: left center;
  }

  .patient-documents-card.patient-documents-care_sheet .dentalome-list-title h1 {
    transform: scaleX(.947973);
    transform-origin: left center;
  }

  .patient-documents-card.patient-documents-certificate .dentalome-list-title h1,
  .patient-documents-card.patient-documents-letter .dentalome-list-title h1 {
    transform: scaleX(.959777);
    transform-origin: left center;
  }

  .patient-documents-card .dentalome-list-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-documents-card .dentalome-patient-table-scroll {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .patient-documents-card .dentalome-patient-table {
    width: 100%;
    min-width: 0;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table thead {
    height: 40px;
    background: oklab(0.519343 -0.0356103 -0.213735 / .1);
  }

  .patient-documents-card .dentalome-patient-table th {
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table td {
    height: 49px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table tbody tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
    box-shadow: inset 0 1px 0 oklch(0.92 0.004 286.32);
  }

  .patient-documents-card .dentalome-patient-table tbody tr:last-child {
    border-bottom: 0;
  }

  .patient-documents-card .patient-document-table .dentalome-patient-empty-row {
    height: 96px;
    padding: 8px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .patient-documents-facture-table th,
  .patient-documents-card .patient-documents-facture-table td {
    width: auto;
  }

  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(1) { width: 28.582377373418%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(2) { width: 15.183280590717%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(3) { width: 22.661194620253%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(4),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(4) { width: 12.499315726440%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(5),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(5) { width: 21.073831689172%; }

  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table {
    table-layout: fixed;
  }

  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table td:nth-child(1) { width: 17.6895307%; }
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table td:nth-child(2) { width: 19.4043321%; }
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table td:nth-child(3) { width: 28.0685921%; }
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table th:nth-child(4),
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table td:nth-child(4) { width: 34.8375451%; }

  .patient-documents-card .patient-document-table th,
  .patient-documents-card .patient-document-table td {
    width: auto;
  }

  .patient-documents-card .patient-document-table th:last-child,
  .patient-documents-card .patient-document-table td:last-child {
    text-align: left;
  }

  .patient-documents-card.has-document-rows .patient-document-table tbody tr:last-child td {
    height: 49px;
  }

  .patient-documents-card .dentalome-row-actions {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small.danger {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .patient-documents-card.has-document-rows .patient-documents-certificate-table {
    table-layout: fixed;
  }

  .patient-documents-card.has-document-rows .patient-documents-certificate-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-certificate-table td:nth-child(1) { width: 22.5631769%; }
  .patient-documents-card.has-document-rows .patient-documents-certificate-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-certificate-table td:nth-child(2) { width: 13.5379061%; }
  .patient-documents-card.has-document-rows .patient-documents-certificate-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-certificate-table td:nth-child(3) { width: 33.032491%; }
  .patient-documents-card.has-document-rows .patient-documents-certificate-table th:nth-child(4),
  .patient-documents-card.has-document-rows .patient-documents-certificate-table td:nth-child(4) { width: 30.866426%; }

  .patient-documents-card.has-document-rows .patient-documents-certificate-table tbody td {
    height: 48.5px;
  }

  .patient-documents-card.has-document-rows .patient-documents-letter-table {
    table-layout: fixed;
  }

  .patient-documents-card.has-document-rows .patient-documents-letter-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-letter-table td:nth-child(1) { width: 26.0561554%; }
  .patient-documents-card.has-document-rows .patient-documents-letter-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-letter-table td:nth-child(2) { width: 38.1858266%; }
  .patient-documents-card.has-document-rows .patient-documents-letter-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-letter-table td:nth-child(3) { width: 35.7580180%; }

  .patient-documents-card.has-document-rows .patient-documents-letter-table tbody td {
    height: 48.5px;
  }

  .patient-documents-card .dentalome-table-footer {
    width: 100%;
    height: 57px;
    min-height: 57px;
    padding: 12px 16px;
    border-top: 1px solid oklch(0.92 0.004 286.32);
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination {
    height: 32px;
    gap: 4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination button:disabled {
    color: oklch(0.704 0.04 256.788);
  }

  .patient-documents-card .dentalome-pagination > span {
    width: auto;
    min-width: 0;
    height: 20px;
    padding: 0 8px;
    border-radius: 0;
  }

  .simple-section.image-section {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .simple-section.image-section .image-section-title {
    position: relative;
    min-height: 120px;
    margin: 0 0 24px;
  }

  .simple-section.image-section .image-section-title > div {
    width: 100%;
  }

  .simple-section.image-section .image-section-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .simple-section.image-section .image-section-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .simple-section.image-section .image-import-button {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 190.921875px;
    min-width: 190.921875px;
    height: 36px;
    min-height: 36px;
    align-self: flex-end;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
  }

  .simple-section.image-section .image-table-shell {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .simple-section.image-section .image-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .simple-section.image-section .image-table th,
  .simple-section.image-section .image-table td {
    height: 40px;
    padding: 0 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
    text-align: left;
  }

  .simple-section.image-section .image-table th {
    background: oklab(0.519343 -0.0356103 -0.213735 / .1);
    font-weight: 500;
  }

  .simple-section.image-section .image-table th:nth-child(1),
  .simple-section.image-section .image-table td:nth-child(1) { width: 21.2220794%; }
  .simple-section.image-section .image-table th:nth-child(2),
  .simple-section.image-section .image-table td:nth-child(2) { width: 53.7851068%; }
  .simple-section.image-section .image-table th:nth-child(3),
  .simple-section.image-section .image-table td:nth-child(3) {
    width: 24.9928138%;
    text-align: left;
  }

  .simple-section.image-section .image-table td.empty-table-cell {
    width: auto;
    height: 96px !important;
    padding: 8px !important;
    color: oklch(0.141 0.005 285.823) !important;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 20px;
    text-align: center !important;
  }

  .simple-section.image-section .image-table.has-images th:nth-child(1),
  .simple-section.image-section .image-table.has-images td:nth-child(1) { width: 25.576048259%; }
  .simple-section.image-section .image-table.has-images th:nth-child(2),
  .simple-section.image-section .image-table.has-images td:nth-child(2) { width: 46.2890625%; }
  .simple-section.image-section .image-table.has-images th:nth-child(3),
  .simple-section.image-section .image-table.has-images td:nth-child(3) { width: 28.134889241%; }

  .simple-section.image-section .image-table.has-images tbody td {
    height: 80px;
    padding: 8px;
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .simple-section.image-section .image-table.has-images .image-preview-link {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-weight: 400;
    line-height: 20px;
  }

  .simple-section.image-section .image-table.has-images .image-preview-link img,
  .simple-section.image-section .image-table.has-images .patient-image-thumbnail-fallback {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    height: 64px;
  }

  .simple-section.image-section .image-table.has-images .image-preview-link img {
    border: 0;
    border-radius: 8.4px;
    object-fit: cover;
  }

  .simple-section.image-section .image-table.has-images .patient-image-thumbnail-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .simple-section.image-section .image-table.has-images .patient-image-thumbnail-fallback svg {
    width: 24px;
    height: 24px;
  }

  .simple-section.image-section .image-table.has-images .row-actions {
    gap: 8px;
  }

  .simple-section.image-section .image-table.has-images .row-actions .plain-icon.small {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8.4px;
    background: transparent;
  }

  .simple-section.image-section .image-table.has-images .row-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .simple-section.image-section .image-table.has-images .row-actions .plain-icon.small[title="Supprimer"] {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-notes-card.dentalome-patient-list-card {
    min-height: 370px;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
    box-shadow: none;
  }

  .patient-notes-card .patient-documents-title-row {
    position: relative;
    min-height: 120px;
    align-items: flex-start;
    margin: 0 0 24px;
  }

  .patient-notes-card .dentalome-list-title {
    width: 100%;
    flex: 0 0 100%;
    margin: 0;
  }

  .patient-notes-card .dentalome-list-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-notes-card .dentalome-list-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-notes-card .patient-document-action {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 171.234375px;
    min-width: 171.234375px;
    height: 36px;
    min-height: 36px;
    align-self: flex-end;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
  }

  .patient-notes-card .patient-notes-empty-card {
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px;
    border: 1px dashed oklab(0.519343 -0.0356103 -0.213735 / .15);
    border-radius: 14.4px;
    background: oklab(0.967 0.000282 -0.000959 / .3);
    color: oklch(0.552 0.016 285.938);
    text-align: center;
  }

  .patient-notes-card .patient-notes-empty-card .patient-notes-empty-title {
    margin: 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  }

  .patient-notes-card .patient-notes-empty-card > p:not(.patient-notes-empty-title) {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-notes-card .patient-note-empty-button {
    width: 173.234375px;
    min-width: 173.234375px;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    margin: 16px 0 0;
    padding: 8px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-notes-card.dentalome-patient-list-card:has(.patient-notes-grid) {
    min-height: 0;
  }

  .patient-notes-card .patient-note-card {
    min-height: 114px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
    color: oklch(0.141 0.005 285.823);
  }

  .patient-notes-card .patient-note-card.recently-restored {
    border-color: oklab(0.519343 -0.0356103 -0.213735 / .2);
    background: oklab(0.519343 -0.0356103 -0.213735 / .02);
  }

  .patient-notes-card .patient-note-card-inner {
    min-height: 112px;
    padding: 16px;
  }

  .patient-notes-card .patient-note-card-header {
    height: 44px;
    margin-bottom: 12px;
    gap: 12px;
  }

  .patient-notes-card .patient-note-card-header > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .patient-notes-card .patient-note-title-line {
    height: 20px;
    gap: 8px;
  }

  .patient-notes-card .patient-note-title-line h3 {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 20px;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
  }

  .patient-notes-card .patient-note-meta {
    height: 20px;
    gap: 6px;
    margin-top: 4px;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-notes-card .patient-note-meta svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .patient-notes-card .patient-note-actions {
    width: 100px;
    height: 32px;
    gap: 2px;
  }

  .patient-notes-card .patient-note-actions .plain-icon.small {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.552 0.016 285.938);
  }

  .patient-notes-card .patient-note-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .patient-notes-card .patient-note-html {
    max-height: 96px;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-notes-card .patient-notes-archive-section {
    border: 1px dashed oklab(0.967 0.000282 -0.000959 / .6);
    border-radius: 10.4px;
    background: oklab(0.967 0.000282 -0.000959 / .2);
  }

  .patient-notes-card .patient-notes-archive-toggle {
    height: 44px;
    min-height: 44px;
    gap: 8px;
    padding: 12px;
    border-radius: 8.4px;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-notes-card .patient-notes-archived-grid {
    padding: 0;
  }

  .patient-notes-card .patient-note-card.archived {
    border-color: oklch(0.967 0.001 286.375);
    opacity: .75;
  }

  .patient-notes-card .patient-note-card.archived .patient-note-card-header {
    height: 74px;
  }

  .patient-notes-card .patient-note-card.archived .patient-note-title-line {
    height: 50px;
  }

  .patient-notes-card .patient-note-card.archived .patient-note-title-line h3 {
    flex: 0 0 100%;
  }

  .patient-notes-card .patient-note-card.archived .patient-note-archive-badge {
    height: 22px;
    gap: 4px;
    padding: 2px 8px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    color: oklch(0.552 0.016 285.938);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
  }

  .patient-note-source-modal.note-form-modal {
    position: relative;
    width: 768px;
    height: 482.5px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 16px;
    overflow: visible;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    background: oklch(1 0 0);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1),
      0 4px 6px -4px rgba(0, 0, 0, .1);
  }

  .patient-note-source-modal.note-form-modal .modal-head {
    width: calc(100% + 48px);
    height: 35px;
    flex: 0 0 35px;
    margin: 0 -24px;
    padding: 0 24px 16px;
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-note-source-modal.note-form-modal .modal-head h2 {
    width: 100%;
    color: oklch(0.141 0.005 285.823);
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
  }

  .patient-note-source-modal.note-form-modal .modal-head > button,
  .patient-note-source-modal.note-form-modal > .modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    display: block;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 2px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    gap: normal;
    opacity: .7;
  }

  .patient-note-source-modal .patient-note-source-form {
    height: 389.5px;
    min-height: 389.5px;
    display: flex;
    flex: 0 0 389.5px;
    flex-direction: column;
    gap: 16px;
  }

  .patient-note-source-modal .note-title-field {
    height: 67.25px;
    display: flex;
    flex: 0 0 67.25px;
    flex-direction: column;
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .patient-note-source-modal.note-form-modal:has(.note-title-field.has-error) {
    height: 508.5px;
  }

  .patient-note-source-modal:has(.note-title-field.has-error) .patient-note-source-form {
    height: 415.5px;
    min-height: 415.5px;
    flex-basis: 415.5px;
  }

  .patient-note-source-modal .note-title-field.has-error {
    height: 93.25px;
    flex-basis: 93.25px;
    gap: 6px;
  }

  .patient-note-source-modal .note-title-field.has-error .field-label {
    margin-bottom: 6px;
  }

  .patient-note-source-modal .note-title-field.has-error input {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-note-source-modal .patient-note-title-error {
    width: 100%;
    height: 20px;
    margin: 0;
    color: oklch(0.577 0.245 27.325);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-note-source-modal .field-label {
    height: 19.25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 19.25px;
  }

  .patient-note-source-modal .note-title-field input {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 4px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-note-source-modal .note-title-field input:focus {
    border-color: #025ce2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(2, 92, 226, .5),
      0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-note-source-modal .note-rich-editor-field {
    height: 237.25px;
    min-height: 237.25px;
    display: flex;
    flex: 0 0 237.25px;
    flex-direction: column;
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .patient-note-source-modal .note-rich-editor-field .simple-editor-wrapper {
    width: 100%;
    height: 206px;
    min-height: 206px;
    max-height: 206px;
    border: 1px solid rgba(37, 39, 45, .1);
    border-radius: 12px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-toolbar {
    width: 100%;
    height: 44px;
    min-height: 44px;
    gap: 4px;
    padding: 0 67px;
    color: rgba(36, 39, 46, .78);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-toolbar-group {
    gap: 2px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-toolbar-group + .tiptap-toolbar-group {
    margin-left: 5px;
    padding-left: 0;
    border-left: 0;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    background-color: rgb(255 255 255 / 0%);
    color: rgba(36, 39, 46, .78);
    font-size: 14px;
    font-weight: 500;
    line-height: 16.1px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-button.has-menu {
    width: 38px;
    gap: 0;
    padding: 8px 4px 8px 8px;
  }

  .patient-note-source-modal .note-rich-editor-field .simple-editor-content,
  .patient-note-source-modal .note-rich-editor-field .simple-editor {
    height: 160px;
    min-height: 160px;
  }

  .patient-note-source-modal .note-rich-editor-field .simple-editor {
    padding: 16px 20px 24px;
    color: oklch(0.141 0.005 285.823);
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-button:disabled {
    opacity: 1;
    background-color: rgb(255 255 255 / 0%);
    color: rgba(40, 44, 51, .42);
  }

  .patient-note-source-modal.note-form-modal .note-form-actions {
    height: 53px;
    min-height: 53px;
    flex: 0 0 53px;
    gap: 8px;
    margin: 0 -24px;
    padding: 16px 24px 0;
    border-top: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-note-source-modal.note-form-modal .note-form-actions button,
  .patient-note-source-modal.note-form-modal .note-form-actions .primary-button {
    width: auto;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-note-source-modal.note-form-modal .note-form-actions .primary-button {
    border: 0 solid oklch(0.92 0.004 286.32);
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    box-shadow: none;
  }

  .patient-note-source-modal.note-form-modal .note-form-actions > button:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
  }

  .patient-note-source-modal.note-form-modal .note-form-actions .primary-button:hover:not(:disabled) {
    background: oklab(0.519343 -0.0356103 -0.213735 / .9);
  }

  .patient-treatment-layout {
    width: 1191.359375px;
    min-width: 1191.359375px;
    grid-template-columns: 955.34375px 220.015625px;
    gap: 16px;
  }

  .act-status-card {
    width: 220.015625px;
    min-width: 220.015625px;
    height: 504px;
    min-height: 504px;
    padding: 28px;
  }

  .act-status-card .add-act-button {
    width: 162.015625px;
    min-width: 162.015625px;
    height: 36px;
    min-height: 36px;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 8.4px;
    background: #025ce2;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    height: 504px;
    min-height: 504px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    overflow: hidden;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    width: 100%;
    height: 53px;
    flex: 0 0 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 16px;
    padding: 0 0 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    width: 273.78125px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 8.4px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    height: 27px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
    border: 1px solid transparent;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button:focus-visible {
    border-color: #025ce2;
    outline: 1px solid #025ce2;
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions {
    width: 500.078125px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials {
    width: 318.3828125px;
    height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    flex: 0 0 318.3828125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: .3px;
    text-align: left;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric span {
    color: #9ca3af;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric p,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric strong,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric b {
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric.green strong,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric.green b {
    color: #16a34a;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric.red strong,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric.red b {
    color: #ef4444;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    width: 157.6953125px;
    min-width: 157.6953125px;
    height: 32px;
    min-height: 32px;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
    width: 100%;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .all-teeth-control {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .child-schema-inline {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span {
    width: 32px;
    height: 18.4px;
    border: 1px solid transparent;
    background: oklch(0.92 0.004 286.32);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span {
    background: #025ce2;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span::after {
    top: 1.2px;
    left: 1px;
    width: 16px;
    height: 16px;
    box-shadow: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span::after {
    transform: translateX(13.6px);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram {
    width: 100%;
    height: 289px;
    min-height: 289px;
    flex: 0 0 289px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-row {
    width: 100%;
    height: 128px;
    min-height: 128px;
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group {
    width: auto;
    min-width: 0;
    height: 128px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.right {
    margin-right: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.left {
    margin-left: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-midline {
    width: 1px;
    height: 104px;
    flex: 0 0 1px;
    align-self: center;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 128px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 6.4px;
    background: transparent;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
    flex: 0 0 16px;
    height: 16px;
    margin: 4px 0 0;
    color: #1e1e1e;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
    width: auto;
    height: 96px;
    min-height: 96px;
    flex: 0 0 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg,
  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact-inner {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg svg {
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    margin: 0;
    border: 0;
    background: #e4e7ec;
  }

  .patient-operations-card {
    width: 976px;
    margin: 40px 0 0;
    padding: 12px;
    border-radius: 12px;
  }

  .patient-document-actions {
    width: 950px;
    height: 36px;
    gap: 8px;
    margin: 0 0 16px;
  }

  .patient-document-actions button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-document-actions button:first-child {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .patient-document-actions button:last-child {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .patient-document-actions button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-document-actions button:first-child {
    width: 132.75px;
    min-width: 132.75px;
    border: 1px solid rgba(60, 121, 212, .2);
    background: rgba(60, 121, 212, .1);
    color: #3c79d4;
  }

  .patient-document-actions button:last-child {
    width: 185.640625px;
    min-width: 185.640625px;
    border: 0;
    background: #025ce2;
    color: #fff;
  }

  .patient-document-actions.plan-treatment-document-actions button:first-child {
    border: 0;
    background: #025ce2;
    color: #fff;
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small:hover {
    background: oklch(0.967 0.001 286.375);
  }

  .dentalome-patient-header .patient-header-tabs a {
    padding: 12px;
  }

  .patient-operations-toolbar {
    width: 950px;
    height: 36px;
    margin: 0 0 16px;
  }

  .patient-operations-toolbar select {
    width: 240px;
    min-width: 240px;
    height: 36px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-operations-toolbar .appointment-source-combobox,
  .patient-operations-toolbar .combobox-trigger {
    width: 240px;
    min-width: 240px;
    height: 36px;
    min-height: 36px;
  }

  .patient-operations-toolbar .combobox-trigger {
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-operations-wrap {
    width: 950px;
    margin-top: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .patient-operations-table {
    width: 1014.7734375px;
    min-width: 1014.7734375px;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-operations-table thead {
    background: rgba(2, 92, 226, .1);
  }

  .patient-operations-table thead {
    background: rgba(2, 92, 226, .1);
  }

  .patient-operations-table th,
  .patient-operations-table td {
    height: 40px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    vertical-align: middle;
    white-space: nowrap;
  }

  .patient-operations-table th {
    height: 40px;
    padding: 0 8px;
    font-weight: 500;
  }

  .patient-operations-table thead tr,
  .patient-operations-table tbody tr:not(:last-child) {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-operations-table tbody tr:last-child {
    border-bottom: 0;
  }

  .patient-operations-table tbody tr {
    height: 49px;
  }

  .patient-operations-table th:first-child,
  .patient-operations-table td:first-child {
    width: 60px;
    padding-right: 0;
  }

  .patient-operations-table th:first-child {
    padding: 0 0 0 8px;
  }

  .patient-operations-table th:nth-child(2),
  .patient-operations-table td:nth-child(2) {
    width: 92.4px;
  }

  .patient-operations-table th:nth-child(3),
  .patient-operations-table td:nth-child(3) {
    width: 84.4px;
  }

  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) {
    width: 216.9px;
  }

  .patient-operations-table th:nth-child(5),
  .patient-operations-table td:nth-child(5) {
    width: 78.2px;
  }

  .patient-operations-table th:nth-child(6),
  .patient-operations-table td:nth-child(6) {
    width: 78.3px;
  }

  .patient-operations-table th:nth-child(7),
  .patient-operations-table td:nth-child(7) {
    width: 75.2px;
  }

  .patient-operations-table th:nth-child(8),
  .patient-operations-table td:nth-child(8) {
    width: 101.4px;
  }

  .patient-operations-table th:nth-child(9),
  .patient-operations-table td:nth-child(9) {
    width: 228px;
  }

  .patient-operations-table input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    flex: 0 0 16px;
    margin: 0;
  }

  .patient-operations-table .operation-select-cell {
    width: 52px;
    min-width: 52px;
    height: 32px;
    gap: 4px;
  }

  .patient-operations-table .operation-select-cell .session-shortcut {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
  }

  .patient-operations-table .operation-name,
  .patient-operations-table .money-cell,
  .patient-operations-table .green-text,
  .patient-operations-table .red-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
  }

  .patient-operations-table .green-text,
  .patient-operations-table .red-text {
    font-weight: 500;
    white-space: nowrap;
  }

  .patient-operations-table .operation-status-trigger {
    min-height: 32px;
    padding: 0 8px;
    border-radius: 8.4px;
  }

  .patient-operations-table .operation-status-badge,
  .patient-operations-table .dentalome-status {
    min-width: 0;
    min-height: 22px;
    height: 22px;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid rgba(60, 121, 212, .2);
    border-radius: 999px;
    background: rgba(60, 121, 212, .1);
    color: #025ce2;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
  }

  .patient-operations-table .teeth-pills {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .patient-operations-table .teeth-pills b {
    width: auto;
    min-width: 0;
    height: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border: 0;
    border-radius: 999px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
  }

  .patient-operations-table .dentalome-actions {
    gap: 4px;
  }

  .patient-operations-table .dentalome-actions .plain-icon.small {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-operations-table .dentalome-actions .plain-icon.small.danger,
  .patient-operations-table .dentalome-actions .plain-icon.small[title="Supprimer"] {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-operations-table .row-actions button svg,
  .patient-operations-table .plain-icon svg,
  .patient-operations-table .dentalome-inline-svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
  }

  .agenda-toolbar .calendar-toggle,
  .agenda-toolbar .filter-button,
  .agenda-toolbar .dark-button {
    width: 32px;
    min-width: 32px;
    padding: 0;
  }

  .agenda-toolbar .muted-button {
    padding: 0 12px;
    font-size: 14px;
  }

  .agenda-toolbar .agenda-range {
    min-width: 101.38px;
    white-space: normal;
  }
}

.patient-payments-card .dentalome-row-actions .payment-receipt-button:hover,
.patient-payments-card .dentalome-row-actions .payment-receipt-button:active,
.patient-payments-card .dentalome-row-actions .payment-receipt-button.is-downloaded {
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.21 0.006 285.885);
}

/* Dentalome uses the same navigation drawer at tablet and phone widths. */
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .app-shell.mobile-nav-open .primary-nav,
  .app-shell.mobile-nav-open .app-body.patient-detail-mode .primary-nav,
  .app-shell.mobile-nav-open.sidebar-collapsed .primary-nav,
  .app-shell.mobile-nav-open.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 121;
    width: min(280px, calc(100vw - 48px));
    height: 100dvh;
    display: flex;
    padding: 0;
    border-right: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: 18px 0 42px rgba(15, 23, 42, .18);
  }

  .app-shell.mobile-nav-open .primary-nav-brand {
    justify-content: flex-start;
    padding: 0 22px;
  }

  .app-shell.mobile-nav-open .primary-nav-brand .dentalome-logo-wordmark,
  .app-shell.mobile-nav-open .primary-nav span,
  .app-shell.mobile-nav-open .nav-section-label,
  .app-shell.mobile-nav-open .primary-nav-user,
  .app-shell.mobile-nav-open .primary-nav-user div,
  .app-shell.mobile-nav-open .primary-nav-user .nav-logout {
    display: flex;
  }

  .app-shell.mobile-nav-open .primary-nav-scroll {
    padding: 14px 8px 84px;
  }

  .app-shell.mobile-nav-open .primary-nav .primary-nav-link,
  .app-shell.mobile-nav-open .app-body.patient-detail-mode .primary-nav .primary-nav-link,
  .app-shell.mobile-nav-open.sidebar-collapsed .primary-nav .primary-nav-link,
  .app-shell.mobile-nav-open.sidebar-collapsed .app-body.patient-detail-mode .primary-nav .primary-nav-link {
    justify-content: flex-start;
    gap: 12px;
    height: 40px;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 10.4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .app-shell.mobile-nav-open .primary-nav-user {
    width: 100%;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .38);
  }
}

/* Dentalome removes the desktop rail on tablet and keeps the sm two-column
   dashboard summary until the 640px phone breakpoint. */
@media (max-width: 900px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-column: 1;
    width: 100%;
  }

  .app-body.no-rail,
  .app-body.patient-detail-mode,
  .app-shell.sidebar-collapsed .app-body.no-rail,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-body.no-rail .main,
  .app-body.patient-detail-mode .main {
    grid-column: 1;
  }

  .primary-nav,
  .app-body.patient-detail-mode .primary-nav,
  .app-shell.sidebar-collapsed .primary-nav,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
    display: none;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-template-columns: 32px minmax(500px, 1fr) 80px;
    gap: 20px;
    padding: 0 24px 0 12px;
  }

  .topbar .global-search,
  .topbar .global-search input {
    height: 36px;
  }

  .user-zone {
    width: 80px;
    gap: 8px;
  }

  .topbar-action {
    width: 36px;
    height: 36px;
  }

  .dashboard-summary-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .global-search-shortcut {
    display: none;
  }

  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-template-columns: 32px minmax(0, calc(100vw - 184px)) 80px;
    gap: 20px;
    padding: 0 20px 0 12px;
  }

  .topbar .topbar-mobile-menu-toggle {
    width: 32px;
    height: 32px;
  }

  .topbar .global-search,
  .topbar .global-search input {
    width: 100%;
    min-width: 0;
    height: 36px;
  }

  .user-zone {
    width: 80px;
    gap: 8px;
    margin-left: -4px;
  }

  .topbar-action {
    width: 36px;
    height: 36px;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-head {
    align-items: center;
  }

  .dashboard-panel-head a {
    width: 86px;
  }
}

/* Dentalome keeps the 955px odontogram canvas at 1280px and clips the act rail
   at the workspace edge instead of shrinking either treatment surface. */
@media (min-width: 901px) and (max-width: 1359px) {
  .patient-treatment-layout {
    width: 976px;
    min-width: 976px;
    max-width: none;
    height: 504px;
    grid-template-columns: 955.34375px 220.015625px;
    gap: 16px;
  }

  .odontogram-column,
  .odontogram-panel.dentalome-odontogram-card {
    width: 955.34375px;
    min-width: 955.34375px;
    max-width: none;
  }

  .patient-treatment-layout .act-status-card,
  .odontogram-panel.dentalome-odontogram-card {
    height: 504px;
    min-height: 504px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    height: 53px;
    min-height: 53px;
    flex: 0 0 53px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions {
    width: 500.078125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials {
    width: 318.3828125px;
    flex: 0 0 318.3828125px;
  }
}

/* Dentalome doctor parity: laboratory prosthesis create/edit dialog. */
.prothese-form-modal {
  position: relative;
  display: grid;
  width: min(1200px, calc(100vw - 32px));
  max-height: 90vh;
  gap: 16px;
  overflow-y: auto;
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  scrollbar-width: none;
}

.prothese-form-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.prothese-form-modal .modal-head {
  width: 100%;
  min-height: 56px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
}

.prothese-form-modal .modal-head-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.prothese-form-modal .modal-head h2 {
  width: 100%;
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.prothese-form-modal .modal-head-subtitle {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.prothese-form-modal > .modal-close-button,
.prothese-form-modal .modal-head .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  box-shadow: none;
  opacity: .7;
}

.prothese-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.prothese-form-modal .dentalome-prothese-form {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.prothese-source-grid {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.prothese-source-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prothese-source-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prothese-source-main-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.prothese-source-left-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.prothese-source-jaw-column {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 0;
}

.prothese-source-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
}

.prothese-date-grid .prothese-source-field {
  gap: 6px;
}

.prothese-source-label {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.prothese-source-label .required-mark {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.prothese-source-field-content {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
}

.prothese-source-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.prothese-form-modal .prothese-source-field input:not([type="checkbox"]),
.prothese-form-modal .prothese-source-field textarea,
.prothese-form-modal .prothese-source-field .combobox-trigger,
.prothese-form-modal .prothese-teeth-trigger,
.prothese-form-modal .dentalome-date-input > button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.prothese-form-modal .prothese-source-field .combobox-trigger,
.prothese-form-modal .prothese-teeth-trigger,
.prothese-form-modal .dentalome-date-input > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 500;
  text-align: left;
}

.prothese-form-modal .prothese-source-field .combobox-trigger.placeholder,
.prothese-form-modal .prothese-teeth-trigger,
.prothese-form-modal .dentalome-date-input > button {
  color: oklch(0.552 0.016 285.938);
}

.prothese-form-modal .prothese-source-field[data-invalid="true"] .combobox-trigger,
.prothese-form-modal .prothese-source-field[data-invalid="true"] input {
  color: oklch(0.577 0.245 27.325);
}

.prothese-form-modal .prothese-source-field input:not([type="checkbox"]):focus,
.prothese-form-modal .prothese-source-field textarea:focus,
.prothese-form-modal .prothese-source-field .combobox-trigger:focus-visible,
.prothese-form-modal .prothese-teeth-trigger:focus-visible,
.prothese-form-modal .dentalome-date-input > button:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 92, 226, .2);
}

.prothese-form-modal .prothese-source-field textarea {
  min-height: 90px;
  height: 90px;
  padding: 8px 12px;
  resize: none;
}

.prothese-form-modal .appointment-source-combobox,
.prothese-form-modal .dentalome-date-input,
.prothese-teeth-combobox {
  position: relative;
  width: 100%;
}

.prothese-form-modal .appointment-source-combobox-menu {
  z-index: 110;
}

.prothese-teeth-trigger svg,
.prothese-form-modal .combobox-trigger svg {
  flex: 0 0 auto;
  color: oklch(0.552 0.016 285.938);
}

.prothese-teeth-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 110;
  display: grid;
  width: 100%;
  max-height: 240px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.prothese-teeth-menu > button {
  display: flex;
  min-width: 0;
  height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  padding: 6px 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
}

.prothese-teeth-menu > button:hover {
  background: oklch(0.97 0.002 286.35);
}

.prothese-tooth-checkbox,
.prothese-shade-checkbox {
  display: grid;
  width: 16px;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid oklch(0.87 0.006 286.29);
  border-radius: 4px;
  background: #fff;
  color: #fff;
}

.prothese-tooth-checkbox.checked,
.prothese-shade-options label.selected .prothese-shade-checkbox {
  border-color: #025ce2;
  background: #025ce2;
}

.prothese-shade-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prothese-shade-options label {
  position: relative;
  display: flex;
  height: 34px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  padding: 6px 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.prothese-shade-options label:hover,
.prothese-shade-options label.selected {
  border-color: rgba(2, 92, 226, .45);
  background: rgba(2, 92, 226, .04);
}

.prothese-shade-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.prothese-jaw-card {
  position: relative;
  width: 100%;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(0.97 0.002 286.35 / .3);
  padding: 16px;
}

.prothese-jaw-chart {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  color: oklch(0.141 0.005 285.823);
}

.prothese-jaw-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.prothese-jaw-chart path[data-tooth],
.prothese-jaw-chart text {
  transition: fill 150ms ease, stroke 150ms ease, stroke-width 150ms ease, opacity 150ms ease;
}

.prothese-jaw-clear {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: 2;
  height: 40px;
  min-height: 40px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 999px;
  background: #fff;
  padding: 0 20px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.prothese-jaw-clear:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.prothese-form-modal .modal-actions.prothese-source-footer {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 -24px -16px;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.prothese-form-modal .prothese-source-footer button,
.prothese-form-modal .prothese-source-footer .primary-button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  padding: 8px 16px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.prothese-form-modal .prothese-source-footer .prothese-pdf-button {
  width: 127px;
  background: oklch(0.967 0.001 286.375);
  padding: 8px 12px;
  color: oklch(0.21 0.006 285.885);
}

.prothese-form-modal .prothese-source-footer .primary-button {
  border-color: #025ce2;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.prothese-form-modal .prothese-source-footer button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

@media (max-width: 1023px) {
  .prothese-source-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prothese-source-jaw-column {
    position: static;
  }
}

@media (max-width: 767px) {
  .modal-backdrop:has(.prothese-form-modal) {
    padding: 16px;
  }

  .prothese-form-modal {
    width: calc(100vw - 32px);
    max-height: 90dvh;
  }

  .prothese-source-grid.three-columns,
  .prothese-source-grid.two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .prothese-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prothese-form-modal .modal-actions.prothese-source-footer {
    flex-wrap: wrap;
  }
}

/* Live Dentalome shell calibration: keep the border on the input itself so
   header geometry is identical at desktop, tablet, and mobile widths. */
.topbar .global-search {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topbar .global-search input {
  width: 100%;
  height: 36px;
  padding: 4px 48px 4px 36px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #f9fafb;
  color: #18181b;
  font-weight: 400;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.topbar .global-search input::placeholder {
  color: oklch(0.552 0.016 285.938);
  font-weight: 400;
}

.topbar .global-search .global-search-icon {
  width: 16px;
  height: 16px;
  color: #71717a;
}

.topbar .global-search-shortcut,
.topbar .topbar-action {
  border-color: #e4e4e7;
  border-radius: 8.4px;
  background: transparent;
  color: #18181b;
}

.dashboard-summary-card.green .dashboard-summary-label::before {
  background: #10b981;
}

.dashboard-summary-card.blue .dashboard-summary-label::before {
  background: #3b82f6;
}

.dashboard-summary-card.violet .dashboard-summary-label::before {
  background: #8b5cf6;
}

@media (max-width: 639px) {
  .topbar .global-search input,
  .topbar .global-search input::placeholder {
    font-size: 16px;
    font-weight: 400;
  }
}

/* Tailwind v4 color and shadow values observed on the live doctor dashboard. */
.topbar {
  border-bottom-color: oklch(0.92 0.004 286.32);
}

.topbar .global-search input,
.topbar .global-search-shortcut,
.topbar .topbar-action {
  border-color: oklch(0.92 0.004 286.32);
}

.topbar .global-search input {
  display: inline-block;
  min-width: 0;
  background: oklch(0.985 0.002 247.839);
  color: oklch(0.141 0.005 285.823);
}

.topbar .global-search input:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, #025ce2 50%, transparent);
}

.topbar .global-search .global-search-icon {
  top: 50%;
  bottom: auto;
  color: oklch(0.552 0.016 285.938);
  translate: 0 -50%;
}

.topbar .global-search-shortcut {
  top: 50%;
  bottom: auto;
  width: auto;
  min-width: 0;
  height: 20px;
  padding: 0 6px;
  justify-content: normal;
  border-radius: 4px;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.141 0.005 285.823);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  transform: none;
  translate: 0 -50%;
}

.topbar .global-search-shortcut-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.dashboard-greeting-card {
  border-color: oklch(0.929 0.013 255.508 / .8);
  background: linear-gradient(to bottom right, #fff, oklch(0.984 0.003 247.858 / .8));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

@media (min-width: 901px) {
  .dashboard-greeting-card {
    width: 240.9609375px;
  }
}

.dashboard-greeting-card h1,
.dashboard-summary-value {
  color: oklch(0.279 0.041 260.031);
}

.dashboard-greeting-card h1 {
  white-space: normal;
  transform: none;
}

.dashboard-greeting-card p {
  color: oklch(0.446 0.043 257.281);
}

.dashboard-summary-card {
  border-color: oklch(0.882 0.059 254.128 / .6);
  background: linear-gradient(to bottom right, oklch(0.97 0.014 254.604 / .9), oklch(0.97 0.014 254.604 / .5));
  box-shadow: 0 0 0 1px oklch(0.932 0.032 255.585 / .8), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.dashboard-summary-label {
  gap: 8px;
}

.dashboard-summary-card.green {
  border-color: oklch(0.905 0.093 164.15 / .6);
  background: linear-gradient(to bottom right, oklch(0.979 0.021 166.113 / .9), oklch(0.979 0.021 166.113 / .5));
  box-shadow: 0 0 0 1px oklch(0.95 0.052 163.051 / .8), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.dashboard-summary-card.violet {
  border-color: oklch(0.894 0.057 293.283 / .6);
  background: linear-gradient(to bottom right, oklch(0.969 0.016 293.756 / .9), oklch(0.969 0.016 293.756 / .5));
  box-shadow: 0 0 0 1px oklch(0.943 0.029 294.588 / .8), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.dashboard-panel {
  border-color: oklch(0.929 0.013 255.508);
  background: linear-gradient(to bottom right, #fff, oklch(0.984 0.003 247.858));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.dashboard-panel-head h2,
.dashboard-appointment-row strong,
.dashboard-payment-row strong,
.dashboard-unpaid-name {
  color: oklch(0.208 0.042 265.755);
}

.dashboard-panel-head > div > p,
.dashboard-appointment-row small,
.dashboard-payment-row small,
.dashboard-unpaid-phone {
  color: oklch(0.554 0.046 257.417);
}

.dashboard-panel-head p strong {
  color: oklch(0.446 0.043 257.281);
}

.dashboard-panel-head a {
  color: #025ce2;
}

.dashboard-appointment-row,
.dashboard-payment-row,
.dashboard-unpaid-row {
  border-color: oklch(0.968 0.007 247.896);
}

.topbar .topbar-action svg {
  width: 20px;
  height: 20px;
}

.topbar-action.has-notification::after {
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border: 0;
}

@media (max-width: 639px) {
  .topbar .topbar-mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
  }
}

/* Dentalome's phone agenda compresses the week to seven usable day columns
   while preserving the same appointment creation and navigation controls. */
@media (max-width: 639px) {
  .agenda-workspace {
    box-sizing: border-box;
    height: calc(100dvh - 60px);
    background: #f6f7f8;
    padding: 24px 24px 8px;
  }

  .agenda-page-head {
    height: 76px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .agenda-page-head > div {
    height: 28px;
    display: block;
  }

  .agenda-workspace .agenda-page-head h1 {
    font-size: 20px;
    line-height: 28px;
  }

  .agenda-page-head p {
    display: none;
  }

  .agenda-practitioner-combobox,
  .agenda-practitioner-select {
    width: 100%;
  }

  .agenda-practitioner-select {
    transform: none;
  }

  .agenda-card {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: calc(100dvh - 184px);
    min-height: 0;
    padding: 8px;
    gap: 0;
  }

  .agenda-card .agenda-side,
  .agenda-card.mobile-side-open .agenda-side {
    display: none;
  }

  .agenda-main-panel {
    width: 100%;
    height: 100%;
  }

  .agenda-toolbar {
    position: relative;
    display: block;
    flex: 0 0 72px;
    width: 100%;
    height: 72px;
    margin-bottom: 8px;
  }

  .agenda-toolbar-toggle-group {
    display: none;
  }

  .agenda-range {
    position: absolute;
    top: 0;
    right: 36px;
    left: 36px;
    z-index: 1;
    width: auto;
    height: 32px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09090b;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
  }

  .agenda-range .agenda-range-desktop {
    display: none;
  }

  .agenda-range .agenda-range-mobile {
    display: block;
  }

  .agenda-arrows {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 72px;
    overflow: visible;
    padding: 0;
  }

  .agenda-arrows .agenda-mobile-add {
    position: absolute;
    top: 40px;
    left: 0;
    display: inline-flex;
    width: 92.023px;
    min-width: 92.023px;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    padding: 0 10px;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .agenda-arrows > .muted-button {
    position: absolute;
    top: 40px;
    left: 98.023px;
    width: 39.883px;
    min-width: 39.883px;
    gap: 6px;
    border-color: oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    padding: 0 8px;
    color: oklch(0.141 0.005 285.823);
    font-size: 12px;
    line-height: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .agenda-arrows > .muted-button::after {
    content: none;
  }

  .agenda-toolbar .agenda-today-desktop,
  .agenda-toolbar .agenda-week-desktop {
    display: none;
  }

  .agenda-toolbar .agenda-today-mobile,
  .agenda-toolbar .agenda-week-mobile {
    display: inline;
  }

  .agenda-arrows > .agenda-filter-shell:not(.agenda-presence-shell):not(.agenda-cancelled-shell) {
    position: absolute;
    top: 40px;
    left: 292px;
  }

  .agenda-arrows > .agenda-filter-shell:not(.agenda-presence-shell):not(.agenda-cancelled-shell) .filter-button,
  .agenda-navigation-buttons .dark-button {
    border-color: oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .agenda-presence-shell,
  .agenda-cancelled-shell {
    display: none;
  }

  .agenda-toolbar .segmented {
    position: absolute;
    top: 40px;
    left: 143.906px;
    width: 135px;
    height: 32px;
    display: flex;
    gap: 0;
    padding: 2px;
    background: oklch(0.967 0.003 264.542);
  }

  .agenda-toolbar .segmented button {
    width: auto;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    flex: 0 0 auto;
    padding: 8px;
    font-size: 12px;
    line-height: 16px;
    color: oklch(0.141 0.005 285.823);
    box-shadow: none;
  }

  .agenda-toolbar .segmented button:nth-child(2) {
    font-size: 12px;
  }

  .agenda-toolbar .segmented button:nth-child(2)::after {
    content: none;
  }

  .agenda-navigation-buttons {
    display: contents;
  }

  .agenda-navigation-buttons .dark-button {
    position: absolute;
    top: 0;
    z-index: 2;
  }

  .agenda-navigation-buttons .dark-button:first-child {
    left: 0;
  }

  .agenda-navigation-buttons .dark-button:last-child {
    right: 0;
  }

  .calendar-scroll-viewport {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    border-color: #e5e7eb;
    border-radius: 8px;
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }

  .calendar-scroll-viewport::-webkit-scrollbar {
    display: none;
  }

  .week-grid {
    width: calc(100% - 1px);
    min-width: 0;
    overflow: visible;
    grid-template-columns: 40px repeat(var(--agenda-day-count, 7), minmax(0, 1fr));
    grid-template-rows: 46.5px 1311px;
  }

  .week-grid .day-column .appointment-block {
    right: 0.46875px;
  }

  .week-grid .appointment-block .appointment-block-copy .appointment-block-title {
    font-size: 11.2px;
    line-height: 16px;
  }

  .week-grid .appointment-block .appointment-block-category,
  .week-grid .appointment-block .appointment-block-time {
    display: none;
  }

  .day-head,
  .time-head {
    height: 46.5px;
  }

  .agenda-day-head-wrap {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 46px;
    place-self: stretch;
  }

  .agenda-day-head-label {
    box-sizing: border-box;
    left: 0;
    display: inline-block;
    width: 100%;
    min-width: 0;
    height: 44px;
    gap: 6px;
    padding: 4px 2px;
    font-size: 12px;
    line-height: 18px;
  }

  .day-head.today .agenda-day-head-label {
    height: 46px;
  }

  .day-head.today::after {
    content: none;
  }

  .day-head.today .agenda-day-head-content {
    height: 38px;
    border-bottom: 2px solid #025ce2;
  }

  .time-label {
    width: 40px;
    height: 81.9375px;
    font-size: 11px;
    line-height: 40px;
  }

  .day-agenda {
    min-width: 0;
  }

  .day-grid-column {
    height: 1311px;
    margin-left: 40px;
  }

  .day-time-slot {
    left: -40px;
    width: 40px;
    height: 81.9375px;
    font-size: 11px;
    line-height: 40px;
  }
}

/* Fresh doctor-reference calibration, 2026-07-19. */
.account-settings-nav nav > a {
  color: oklch(0.21 0.034 264.665);
  border: 0 solid oklch(0.92 0.004 286.32);
  text-align: start;
}

.account-settings-nav nav > a.active {
  background: oklab(0.519343 -0.0356103 -0.213735 / 0.1);
}

@media (max-width: 900px) {
  .topbar-mobile-menu-toggle {
    display: inline-flex;
    width: 32px;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0 solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    gap: 8px;
  }

  .message-templates-workspace {
    padding: 24px 24px 32px;
  }

  .dentalome-notes-workspace {
    padding: 24px 24px 32px;
  }

  .notes-parity-layout {
    grid-template-columns: 288px minmax(0, 1fr) 224px;
  }

  .medications-workspace .medication-scope-tabs {
    height: 54px;
  }

  .medications-workspace .medication-scope-tabs button {
    height: 52px;
    white-space: normal;
  }

  .medications-workspace .medication-scope-tabs button:first-child {
    width: 84px;
  }

  .medications-workspace .medication-scope-tabs button:last-child {
    width: 130.75px;
  }
}

@media (min-width: 521px) and (max-width: 900px) {
  .modal-backdrop:has(> .document-source-actes-dialog-modal) {
    padding: 0;
  }

  .document-source-actes-dialog-modal {
    width: 100vw;
    max-width: 896px;
    grid-template-columns: minmax(0, 1fr);
  }

  .document-source-actes-dialog-modal .document-source-dialog-form {
    width: 100%;
    min-width: 0;
  }

  .patient-documents-card.dentalome-patient-list-card {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .patient-documents-card .patient-documents-title-row {
    margin: 0 0 24px;
  }

  .patient-documents-card .dentalome-list-title {
    width: 100%;
    flex: 1 1 auto;
  }

  .patient-documents-card .dentalome-list-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-documents-card .dentalome-list-title p {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-documents-card .dentalome-patient-table-scroll {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .patient-documents-card .dentalome-patient-table,
  .patient-documents-card .patient-documents-facture-table {
    width: 100%;
    min-width: 0;
    border: 0;
    table-layout: fixed;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table thead {
    height: 40px;
    background: oklab(0.519343 -0.0356103 -0.213735 / .1);
  }

  .patient-documents-card .dentalome-patient-table thead tr,
  .patient-documents-card .dentalome-patient-table tbody tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-documents-card .dentalome-patient-table tbody tr:last-child {
    border-bottom: 0;
  }

  .patient-documents-card .dentalome-patient-table th {
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table td {
    height: 49px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card.has-document-rows .patient-documents-facture-table tbody tr:last-child td {
    height: 48.5px;
  }

  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(1) { width: 28.582377373418%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(2) { width: 15.183280590717%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(3) { width: 22.661194620253%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(4),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(4) { width: 12.499315726440%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(5),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(5) { width: 21.073831689172%; }

  .patient-documents-card .dentalome-row-actions {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small {
    display: flex;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .patient-documents-card .dentalome-table-footer {
    width: 100%;
    height: 57px;
    min-height: 57px;
    padding: 12px 16px;
    border-top: 1px solid oklch(0.92 0.004 286.32);
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination {
    height: 32px;
    gap: 4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination button:disabled {
    color: oklch(0.704 0.04 256.788);
  }

  .patient-documents-card .dentalome-pagination > span {
    width: auto;
    min-width: 0;
    height: 20px;
    padding: 0 8px;
    border-radius: 0;
  }

  .dentalome-patient-header .patient-header-tabs a.active {
    border-bottom-color: #025ce2;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
  }
}

@media (max-width: 520px) {
  .dentalome-notes-workspace {
    padding-top: 24px;
  }

  .dentalome-notes-workspace .page-header {
    height: 96px;
  }

  .notes-parity-layout {
    grid-template-columns: 288px 592px 224px;
  }

  .password-settings-panel .account-breadcrumb {
    flex-wrap: nowrap;
    margin-bottom: 64px;
    white-space: nowrap;
  }

  .password-settings-panel .password-field {
    width: 60px;
  }

  .password-settings-panel .password-field:first-child input {
    width: 60px;
  }

  .password-settings-panel .password-field:nth-child(2) input {
    width: 100px;
  }

  .password-settings-panel .password-settings-form input {
    font-size: 16px;
    line-height: 24px;
  }

  .password-settings-panel .password-check-row {
    height: auto;
    min-height: 20px;
    align-items: center;
  }

  .password-settings-panel .password-check-icon {
    min-width: 0;
    flex: 0 1 20px;
  }
}

/* Dentalome keeps the account shell horizontally constrained on tablet/mobile. */
@media (max-width: 900px) {
  .dentalome-settings-workspace {
    height: calc(100vh - 60px);
    min-height: 0;
    padding: 24px 24px 8px;
    overflow-y: auto;
    background: #f6f7f8;
  }

  .dentalome-settings-workspace .dentalome-settings-card {
    display: flex;
    width: 100%;
    height: calc(100vh - 92px);
    min-height: 0;
    grid-template-columns: none;
    align-items: stretch;
    gap: 24px;
    padding: 0 16px;
    overflow: visible;
  }

  .dentalome-settings-workspace .account-settings-nav {
    width: 224px;
    height: 100%;
    min-height: 0;
    flex: 0 0 224px;
    padding: 20px 16px 20px 0;
    border-right: 1px solid #e4e4e7;
    border-bottom: 0;
  }

  .dentalome-settings-workspace .account-settings-nav nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 12px;
  }

  .dentalome-settings-workspace .account-settings-nav nav > a {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .dentalome-settings-workspace .account-settings-content {
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 0%;
    padding: 20px 0;
  }

  .dentalome-settings-workspace .account-settings-panel {
    min-height: 0;
  }

  .dentalome-settings-workspace .account-profile-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dentalome-settings-workspace .account-profile-heading-row {
    height: 40px;
    min-height: 40px;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .dentalome-settings-workspace .account-profile-heading-row .account-breadcrumb {
    height: 40px;
    min-height: 40px;
    flex-wrap: nowrap;
    margin: 0;
    white-space: nowrap;
  }

  .dentalome-settings-workspace .account-avatar-large {
    width: 100%;
    max-width: 128px;
    height: 128px;
    margin: 24px 0 30px;
  }

  .dentalome-settings-workspace .account-avatar-trigger,
  .dentalome-settings-workspace .account-avatar-empty,
  .dentalome-settings-workspace .account-avatar-large img {
    width: 100%;
    max-width: 128px;
    height: 128px;
  }

  .dentalome-settings-workspace .account-profile-fields-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 24px;
  }

  .dentalome-settings-workspace .account-profile-form input,
  .dentalome-settings-workspace .account-profile-form textarea {
    font-size: 16px;
    line-height: 24px;
  }

  .dentalome-settings-workspace .account-profile-form .account-phone-field {
    width: 87px;
  }

  .dentalome-settings-workspace .account-profile-form .patient-source-phone-input {
    width: 87px;
    grid-template-columns: 61px 26px;
  }
}

/* Dentalome tablet contract: retain the compact two-row agenda and the wide
   treatment canvas while the surrounding workspace remains 768px wide. */
@media (min-width: 640px) and (max-width: 900px) {
  .agenda-workspace {
    box-sizing: border-box;
    height: calc(100dvh - 60px);
    min-height: 0;
    padding: 24px 24px 8px;
    overflow-y: auto;
    background: #f6f7f8;
  }

  .agenda-page-head {
    width: 100%;
    height: 58px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .agenda-page-head > div {
    height: 58px;
    display: grid;
    gap: 2px;
  }

  .agenda-page-head p {
    display: block;
  }

  .agenda-practitioner-combobox,
  .agenda-practitioner-select {
    width: 256px;
  }

  .agenda-practitioner-combobox {
    height: 36px;
    flex: 0 0 36px;
    transform: translateY(11px);
  }

  .agenda-card {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: calc(100dvh - 166px);
    min-height: 0;
    padding: 16px;
    gap: 0;
  }

  .agenda-card .agenda-side,
  .agenda-card.mobile-side-open .agenda-side {
    display: none;
  }

  .agenda-main-panel {
    width: 100%;
    height: 100%;
  }

  .agenda-toolbar {
    position: relative;
    display: block;
    width: 100%;
    height: 72px;
    flex: 0 0 72px;
    margin-bottom: 8px;
  }

  .agenda-toolbar-toggle-group {
    display: none;
  }

  .agenda-range {
    position: absolute;
    top: 0;
    right: 36px;
    left: 36px;
    z-index: 1;
    width: auto;
    height: 32px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09090b;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
  }

  .agenda-range .agenda-range-desktop {
    display: none;
  }

  .agenda-range .agenda-range-mobile {
    display: block;
  }

  .agenda-arrows {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 72px;
    overflow: visible;
    padding: 0;
  }

  .agenda-arrows .agenda-mobile-add {
    position: absolute;
    top: 40px;
    left: 0;
    display: inline-flex;
    width: 92.023px;
    min-width: 92.023px;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    padding: 0 10px;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .agenda-arrows > .muted-button {
    position: absolute;
    top: 40px;
    left: 98.023px;
    width: 39.883px;
    min-width: 39.883px;
    height: 32px;
    gap: 6px;
    border-color: oklch(0.92 0.004 286.32);
    background: #fff;
    padding: 0 8px;
    color: oklch(0.141 0.005 285.823);
    font-size: 12px;
    line-height: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .agenda-arrows > .muted-button::after {
    content: none;
  }

  .agenda-toolbar .agenda-today-desktop,
  .agenda-toolbar .agenda-week-desktop {
    display: none;
  }

  .agenda-toolbar .agenda-today-mobile,
  .agenda-toolbar .agenda-week-mobile {
    display: inline;
  }

  .agenda-presence-shell,
  .agenda-cancelled-shell {
    display: none;
  }

  .agenda-arrows > .agenda-filter-shell:not(.agenda-presence-shell):not(.agenda-cancelled-shell) {
    position: absolute;
    top: 40px;
    right: 0;
    left: auto;
  }

  .agenda-arrows > .agenda-filter-shell:not(.agenda-presence-shell):not(.agenda-cancelled-shell) .filter-button,
  .agenda-navigation-buttons .dark-button {
    border-color: oklch(0.92 0.004 286.32);
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .agenda-toolbar .segmented {
    position: absolute;
    top: 40px;
    left: 143.906px;
    width: 135px;
    height: 32px;
    display: flex;
    gap: 0;
    padding: 2px;
    background: oklch(0.967 0.003 264.542);
  }

  .agenda-toolbar .segmented button {
    width: auto;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    flex: 0 0 auto;
    padding: 8px;
    color: oklch(0.141 0.005 285.823);
    font-size: 12px;
    line-height: 16px;
    box-shadow: none;
  }

  .agenda-toolbar .segmented button:nth-child(2) {
    font-size: 12px;
  }

  .agenda-toolbar .segmented button:nth-child(2)::after {
    content: none;
  }

  .agenda-navigation-buttons {
    display: contents;
  }

  .agenda-navigation-buttons .dark-button {
    position: absolute;
    top: 0;
    z-index: 2;
  }

  .agenda-navigation-buttons .dark-button:first-child {
    left: 0;
  }

  .agenda-navigation-buttons .dark-button:last-child {
    right: 0;
  }

  .calendar-scroll-viewport {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    border-color: #e5e7eb;
    border-radius: 8px;
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }

  .calendar-scroll-viewport::-webkit-scrollbar {
    display: none;
  }

  .week-grid {
    width: calc(100% - 1px);
    min-width: 0;
    overflow: visible;
    grid-template-columns: 48px repeat(var(--agenda-day-count, 7), minmax(0, 1fr));
    grid-template-rows: 38.5px 1568px;
  }

  .week-grid .day-column .appointment-block {
    right: 1.75px;
  }

  .day-head,
  .time-head {
    height: 38.5px;
  }

  .agenda-day-head-label {
    display: inline-block;
    width: 100%;
    min-width: 0;
    height: 38px;
    gap: 6px;
    padding: 0;
  }

  .time-label {
    width: 48px;
    height: 98px;
    font-size: 14px;
    line-height: 48px;
  }

  .day-grid-column {
    height: 1568px;
    margin-left: 48px;
  }

  .day-time-slot {
    left: -48px;
    width: 48px;
    height: 98px;
    font-size: 14px;
    line-height: 48px;
  }

  .patient-workspace {
    overflow-x: hidden;
    background: #f6f7f8;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-header.dentalome-patient-header,
  .odontogram-panel.dentalome-odontogram-card,
  .patient-treatment-layout .act-status-card,
  .patient-operations-card {
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: none;
  }

  .patient-treatment-layout {
    width: 1191.359375px;
    min-width: 1191.359375px;
    max-width: none;
    height: 504px;
    grid-template-columns: 955.34375px 220.015625px;
    gap: 16px;
  }

  .odontogram-column {
    width: 955.34375px;
    min-width: 955.34375px;
    max-width: none;
  }

  .patient-treatment-layout .act-status-card {
    width: 220.015625px;
    min-width: 220.015625px;
    max-width: none;
    height: 504px;
    min-height: 504px;
    padding: 28px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    width: 955.34375px;
    min-width: 955.34375px;
    max-width: none;
    height: 504px;
    min-height: 504px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    overflow: hidden;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    width: 100%;
    height: 53px;
    min-height: 53px;
    flex: 0 0 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 16px;
    padding: 0 0 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    width: 273.78125px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 8.4px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    height: 27px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 6.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions {
    width: 500.078125px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials {
    width: 318.3828125px;
    height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    flex: 0 0 318.3828125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    width: 157.6953125px;
    min-width: 157.6953125px;
    height: 32px;
    min-height: 32px;
    gap: 6px;
    padding: 0 10px;
    border-radius: 6.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
    width: 100%;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .all-teeth-control {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .child-schema-inline {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span {
    width: 32px;
    height: 18.4px;
    border: 1px solid transparent;
    background: oklch(0.92 0.004 286.32);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span {
    background: #025ce2;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span::after {
    top: 1.2px;
    left: 1px;
    width: 16px;
    height: 16px;
    box-shadow: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span::after {
    transform: translateX(13.6px);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram {
    width: 100%;
    min-width: 0;
    height: 289px;
    min-height: 289px;
    max-width: none;
    flex: 0 0 289px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-row {
    width: 100%;
    min-width: 0;
    height: 128px;
    min-height: 128px;
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group,
  .odontogram-panel.dentalome-odontogram-card .odontogram.child .tooth-group {
    width: auto;
    min-width: 0;
    height: 128px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.right {
    margin-right: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.left {
    margin-left: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-midline {
    width: 1px;
    height: 104px;
    flex: 0 0 1px;
    align-self: center;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 128px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 6.4px;
    background: transparent;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
    flex: 0 0 16px;
    height: 16px;
    margin: 4px 0 0;
    color: #1e1e1e;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
    width: auto;
    height: 96px;
    min-height: 96px;
    flex: 0 0 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg,
  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact-inner {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg svg {
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    margin: 0;
    border: 0;
    background: #e4e7ec;
  }

  .patient-operations-card {
    box-sizing: border-box;
    width: 100%;
    margin: 40px 0 0;
    padding: 12px;
    border-radius: 14.4px;
  }

  .patient-document-actions {
    width: 100%;
    height: 36px;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 16px;
  }

  .patient-document-actions button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-document-actions button:first-child {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    border: 1px solid rgba(60, 121, 212, .2);
    background: rgba(60, 121, 212, .1);
    color: #3c79d4;
  }

  .patient-document-actions button:last-child {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    border: 0;
    background: #025ce2;
    color: #fff;
  }

  .patient-document-actions.plan-treatment-document-actions button:first-child {
    border: 0;
    background: #025ce2;
    color: #fff;
  }

  .patient-operations-toolbar {
    width: 100%;
    height: 36px;
    margin: 0 0 16px;
  }

  .patient-operations-toolbar .appointment-source-combobox,
  .patient-operations-toolbar .combobox-trigger {
    width: 240px;
    min-width: 240px;
    height: 36px;
    min-height: 36px;
  }

  .patient-operations-toolbar .combobox-trigger {
    gap: 8px;
    padding: 8px 12px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-operations-wrap {
    width: 100%;
    margin-top: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .patient-operations-table {
    width: 1014.7734375px;
    min-width: 1014.7734375px;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-operations-table thead {
    background: oklab(0.519343 -0.0356103 -0.213735 / .1);
  }

  .patient-operations-table thead tr {
    border-bottom: 0;
  }

  .patient-operations-table th,
  .patient-operations-table td {
    height: 40px;
    padding: 8px;
    color: oklch(0.141 0.005 285.823);
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    vertical-align: middle;
  }

  .patient-operations-table th {
    height: 40px;
    border: 0;
    font-weight: 500;
  }

  .patient-operations-table th:first-child,
  .patient-operations-table td:first-child {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    padding-right: 0;
  }

  .patient-operations-table th:nth-child(2),
  .patient-operations-table td:nth-child(2) {
    width: 92.359375px;
  }

  .patient-operations-table th:nth-child(3),
  .patient-operations-table td:nth-child(3) {
    width: 84.4140625px;
  }

  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) {
    width: 216.875px;
  }

  .patient-operations-table th:nth-child(5),
  .patient-operations-table td:nth-child(5) {
    width: 78.203125px;
  }

  .patient-operations-table th:nth-child(6),
  .patient-operations-table td:nth-child(6) {
    width: 78.296875px;
  }

  .patient-operations-table th:nth-child(7),
  .patient-operations-table td:nth-child(7) {
    width: 75.21875px;
  }

  .patient-operations-table th:nth-child(8),
  .patient-operations-table td:nth-child(8) {
    width: 101.40625px;
  }

  .patient-operations-table th:nth-child(9),
  .patient-operations-table td:nth-child(9) {
    width: 228px;
  }

  .patient-operations-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
}

/* Dentalome desktop patient surfaces use the shared shadcn border and radius tokens. */
@media (min-width: 1360px) {
  .patient-header.dentalome-patient-header,
  .odontogram-panel.dentalome-odontogram-card,
  .patient-treatment-layout .act-status-card,
  .patient-operations-card {
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: none;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button,
  .patient-treatment-layout .add-act-button {
    border-radius: 8.4px;
  }

  .patient-treatment-layout .act-status-empty strong {
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-treatment-layout .act-status-empty > span:last-child {
    max-width: 300px;
    margin-top: 4px;
    color: oklch(0.552 0.016 285.938);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
  }

  .patient-treatment-layout .act-status-divider {
    margin: 16px 0;
  }

  .patient-treatment-layout .act-status-list {
    height: 244px;
    max-height: 244px;
    margin-top: 16px;
    padding-right: 0;
  }

  .patient-treatment-layout .act-status-empty {
    width: 100%;
    height: 244px;
    min-height: 244px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 48px 0;
  }

  .patient-treatment-layout .empty-search-mark {
    width: 64px;
    height: 64px;
    margin: 0 0 12px;
    background: oklch(0.967 0.001 286.375);
  }

  .patient-treatment-layout .empty-search-mark svg {
    width: 32px;
    height: 32px;
  }

  .patient-operations-card {
    width: 100%;
    max-width: none;
  }

  .patient-document-actions,
  .patient-operations-toolbar,
  .patient-operations-wrap {
    width: 100%;
  }

  .patient-operations-table {
    width: 100%;
    min-width: 0;
  }

  .patient-rdv-card .patient-rdv-table {
    table-layout: fixed;
  }
}

.source-button-leading-icon {
  margin-right: 8px;
}

@media (min-width: 521px) {
  .document-source-actes-dialog-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    display: grid;
    gap: 20px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  }

  .document-source-actes-dialog-modal .modal-head {
    margin: 0 -24px;
    border-color: oklch(0.92 0.004 286.32);
    padding: 0 24px 16px;
  }

  .document-source-actes-dialog-modal .modal-head h2 {
    width: 100%;
    color: oklch(0.141 0.005 285.823);
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
  }

  .document-source-actes-dialog-modal .modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    border: 0;
    border-radius: 2px;
    padding: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    box-shadow: none;
    opacity: 0.7;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
  }

  .document-source-actes-dialog-modal .document-source-dialog-form {
    display: block;
  }

  .document-source-actes-dialog-modal .document-source-grid {
    margin-bottom: 20px;
  }

  .document-source-actes-dialog-modal .document-source-dialog-form label,
  .document-source-actes-dialog-modal .document-source-field {
    gap: 12px;
  }

  .document-source-actes-dialog-modal .document-source-care-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .document-source-actes-dialog-modal .document-source-field-content {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    line-height: 22px;
  }

  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"],
  .document-source-actes-dialog-modal .document-source-dialog-form label[data-invalid="true"],
  .document-source-actes-dialog-modal .document-source-dialog-form label[data-invalid="true"] .field-label,
  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"] .field-label,
  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"] .combobox-trigger,
  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"] .document-source-multiselect-trigger,
  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"] .document-source-multiselect-trigger.placeholder {
    color: oklch(0.577 0.245 27.325);
  }

  .document-source-actes-dialog-modal .document-source-dialog-form label[data-invalid="true"] input {
    border-color: oklch(0.577 0.245 27.325);
  }

  .document-source-actes-dialog-modal .document-source-field-error {
    height: 20px;
    color: oklch(0.577 0.245 27.325);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 19.25px;
    color: oklch(0.141 0.005 285.823);
    font-weight: 500;
    line-height: 19.25px;
  }

  .document-source-actes-dialog-modal .dentalome-date-input,
  .document-source-actes-dialog-modal .appointment-source-combobox,
  .document-source-actes-dialog-modal .dentalome-date-input > button,
  .document-source-actes-dialog-modal .combobox-trigger,
  .document-source-actes-dialog-modal .document-source-multiselect-trigger {
    height: 36px;
    min-height: 36px;
  }

  .document-source-actes-dialog-modal .dentalome-date-input > button,
  .document-source-actes-dialog-modal .combobox-trigger,
  .document-source-actes-dialog-modal .document-source-multiselect-trigger {
    gap: 8px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    padding: 8px 12px;
    font-size: 14px;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .document-source-actes-dialog-modal .dentalome-date-input > button {
    font-weight: 400;
  }

  .document-source-actes-dialog-modal .combobox-trigger {
    font-weight: 500;
    text-align: center;
  }

  .document-source-actes-dialog-modal .document-source-multiselect-trigger {
    color: oklch(0.141 0.005 285.823);
    font-weight: 400;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-list {
    position: absolute;
    z-index: 95;
    top: 40px;
    left: 0;
    right: auto;
    display: block;
    width: 400px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    padding: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    gap: normal;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-list.closing-shell {
    width: 381.5px;
    height: 112.5px;
    min-height: 112.5px;
    pointer-events: none;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-list-inner {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-option {
    display: flex;
    width: 382px;
    height: 28px;
    min-height: 28px;
    align-items: center;
    gap: normal;
    border-radius: 6.4px;
    padding: 6px 8px;
    color: oklch(0.141 0.005 285.823);
    cursor: pointer;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-option:hover {
    background: oklch(0.967 0.001 286.375);
  }

  .document-source-actes-dialog-modal .document-source-checkbox-option > span {
    position: relative;
    top: -1px;
    min-width: 0;
    flex: 1 1 auto;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-control {
    position: relative;
    top: -1px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 4px;
    background: transparent;
    color: oklch(0.97 0.014 254.604);
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .document-source-actes-dialog-modal .document-source-checkbox-control[data-state="checked"] {
    border-color: #025ce2;
    background: #025ce2;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-control:focus-visible {
    border-color: #025ce2;
    outline: none;
    box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, .05);
  }

  .document-source-actes-dialog-modal .document-source-checkbox-control svg {
    width: 12px;
    height: 12px;
  }

  .document-source-actes-dialog-modal .document-source-care-field .act-catalog-menu.appointment-source-combobox-menu.patient {
    width: 100%;
    height: auto;
    max-height: 342px;
    overflow: hidden;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-search-row {
    width: 100%;
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    gap: 8px;
    padding: 0 12px;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-search-row input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: none;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-options {
    width: calc(100% - 8px);
    height: auto;
    max-height: 300px;
    flex: 0 1 auto;
    margin: 4px;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-option-row {
    width: 100%;
    height: 32px;
    min-height: 32px;
    gap: 8px;
    border-radius: 6.4px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: oklch(0.21 0.006 285.885);
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-option-row > span {
    position: relative;
    top: -1px;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-option-row svg {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 16px;
    margin-right: 8px;
    opacity: 0;
  }

  .document-source-actes-dialog-modal .document-source-grid input {
    height: 36px;
    min-height: 36px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .document-source-actes-dialog-modal .document-source-grid .document-source-discount-input {
    padding: 4px 12px;
  }

  .document-source-actes-dialog-modal .dentalome-date-input > button svg,
  .document-source-actes-dialog-modal .combobox-trigger > svg,
  .document-source-actes-dialog-modal .document-source-multiselect-trigger > svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    color: oklch(0.141 0.005 285.823);
    opacity: 0.5;
  }

  .document-source-actes-dialog-modal .dentalome-date-input > button:focus-visible,
  .document-source-actes-dialog-modal .combobox-trigger:focus-visible,
  .document-source-actes-dialog-modal .document-source-multiselect-trigger:focus-visible {
    border-color: #025ce2;
    outline: none;
    box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .document-source-actes-dialog-modal .document-source-summary {
    height: 28px;
    margin-bottom: 16px;
    color: oklch(0.552 0.016 285.938);
    font-weight: 400;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-summary span {
    font-weight: 400;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-summary strong,
  .document-source-actes-dialog-modal .document-source-summary .document-source-summary-value {
    color: oklch(0.141 0.005 285.823);
    font-weight: 600;
    line-height: 28px;
  }

  .document-source-actes-dialog-modal .document-source-summary-card {
    display: block;
    height: 62px;
    margin-bottom: 20px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    padding: 16px;
    background: oklch(1 0 0);
    font-variant-numeric: tabular-nums;
  }

  .document-source-actes-dialog-modal .document-source-summary-card-inner {
    display: flex;
    width: 100%;
    height: 28px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .document-source-actes-dialog-modal .document-source-summary-item {
    display: flex;
    height: 20px;
    align-items: center;
    gap: 16px;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-summary-separator {
    display: block;
    width: 1px;
    height: 20px;
    flex: 0 0 1px;
    background: oklch(0.92 0.004 286.32);
  }

  .document-source-actes-dialog-modal .document-source-summary-item-value {
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-summary-item.total {
    height: 28px;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  .document-source-actes-dialog-modal .document-source-summary-item.total .document-source-summary-item-value {
    color: rgb(22, 163, 74);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
  }

  .document-source-actes-dialog-modal .document-source-table-wrap {
    margin-bottom: 20px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
  }

  .document-source-actes-dialog-modal .document-source-table thead {
    background: oklab(0.519343 -0.0356103 -0.213735 / 0.1);
  }

  .document-source-actes-dialog-modal .document-source-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 14px;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-table tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .document-source-actes-dialog-modal .document-source-table tr:last-child {
    border-bottom: 0;
  }

  .document-source-actes-dialog-modal .document-source-table th {
    height: 40px;
    border-bottom: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    padding: 0 8px;
    font-weight: 500;
    line-height: 20px;
    vertical-align: middle;
  }

  .document-source-actes-dialog-modal .document-source-table td {
    height: 36.5px;
    border-bottom: 0;
    color: oklch(0.141 0.005 285.823);
    padding: 8px;
    line-height: 20px;
    overflow-wrap: break-word;
    vertical-align: middle;
  }

  .document-source-actes-dialog-modal .document-source-table td:nth-child(2) {
    max-width: 200px;
  }

  .document-source-actes-dialog-modal .document-source-table td:nth-child(3) {
    max-width: none;
  }

  .document-source-actes-dialog-modal .modal-actions {
    height: 53px;
    margin: 0 -24px;
    gap: 8px;
    border-color: oklch(0.92 0.004 286.32);
    padding: 16px 24px 0;
  }

  .document-source-actes-dialog-modal .modal-actions button,
  .document-source-actes-dialog-modal .modal-actions .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .modal-actions button:not(.primary-button) {
    width: 87.5625px;
    min-width: 87.5625px;
    gap: 8px;
    border-color: oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    padding: 8px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .document-source-actes-dialog-modal .modal-actions .primary-button {
    gap: 8px;
    min-width: 93.171875px;
    border: 0;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    padding: 8px 12px;
    box-shadow: none;
  }

  .document-source-actes-dialog-modal .modal-actions .document-source-devis-submit {
    min-width: 110.4921875px;
  }

  .document-source-actes-dialog-modal .modal-actions .primary-button svg {
    width: 16px;
    height: 16px;
  }

  .document-source-actes-dialog-modal .modal-actions .primary-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5);
  }
}

/* Measured Dentalome desktop tokens for the patient treatment segmented control. */
@media (min-width: 901px) {
  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    border-bottom-color: oklch(0.92 0.004 286.32);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    background: oklch(0.967 0.001 286.375);
    color: oklch(0.552 0.016 285.938);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Fresh R16 source measurements: preserve Dentalome's phone-width flow. */
@media (max-width: 520px) {
  .dentalome-patient-identity {
    justify-content: flex-start;
    width: max-content;
  }

  .dentalome-patient-identity > .patient-profile-main {
    width: 223px;
    min-width: 223px;
    flex: 0 0 223px;
  }

  .patient-profile-actions > .archive-action,
  .patient-profile-actions > .patient-actions-menu {
    display: none;
  }

  .patients-workspace .dentalome-table-wrap tbody td {
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  .patients-workspace .dentalome-table-wrap table {
    width: 622px;
    min-width: 622px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(2),
  .patients-workspace .dentalome-table-wrap td:nth-child(2) {
    width: 105px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(3),
  .patients-workspace .dentalome-table-wrap td:nth-child(3) {
    width: 122px;
  }

  .patient-header-tabs-shell > .patient-header-tabs {
    width: 292px;
    min-width: 0;
    max-width: 292px;
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .patient-header-tabs-shell {
    overflow: hidden;
  }
}

@media (min-width: 521px) and (max-width: 800px) {
  .dentalome-patient-identity .patient-subline {
    display: flex;
    flex-wrap: nowrap;
  }

  .dentalome-patient-identity .patient-subline > span:last-child {
    grid-column: auto;
  }
}

@media (min-width: 521px) {
  .dashboard-greeting-card {
    width: 231px;
  }

  .dashboard-greeting-card h1 {
    white-space: nowrap;
  }
}

.dashboard-greeting-card p {
  white-space: nowrap;
}

@media (min-width: 901px) {
  .dashboard-greeting-card {
    width: 240.9609375px;
  }
}

.dashboard-appointment-list:has(.dashboard-empty-appointment-card) {
  padding-right: 0;
}

.dashboard-empty-appointment-card .dashboard-empty-title,
.dashboard-empty-appointment-card .dashboard-empty-title + p,
.dashboard-empty-appointment-card > a,
.dashboard-empty-payment-card .dashboard-empty-title,
.dashboard-empty-payment-card .dashboard-empty-title + p,
.dashboard-empty-payment-card > a {
  transform: translateY(16px);
}

.dashboard-empty-appointment-card > a,
.dashboard-empty-payment-card > a {
  gap: 8px;
  padding: 8px 16px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.552 0.016 285.938);
  line-height: 20px;
}

/* Dentalome renders selected-tooth acts as compact cards, without a table header. */
.patient-treatment-layout .act-status-list {
  gap: 12px;
  margin-top: 16px;
}

.patient-treatment-layout .act-status-list .act-status-operation {
  position: relative;
  width: 212px;
  min-width: 212px;
  min-height: 123px;
  display: block;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 14.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  text-align: left;
}

.patient-treatment-layout .act-status-list .act-status-operation .act-status-operation-name {
  display: block;
  width: 88.25px;
  max-width: 88.25px;
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 600;
  line-height: 22.75px;
  overflow: visible;
  text-align: start;
}

.patient-treatment-layout .act-status-list .act-status-operation strong {
  position: absolute;
  top: 16px;
  right: 12px;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 8.4px;
  background: oklch(0.932 0.032 255.585);
  color: #025ce2;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.patient-treatment-layout .act-status-list .act-status-operation small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.patient-treatment-layout .act-status-tooth-icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  display: block;
}

/* R19 paired measurements: Dentalome expands the act rail only when a
   selected tooth has matching operations. */
.patient-treatment-layout .act-status-card .add-act-button {
  width: 164px;
  min-width: 164px;
}

.patient-treatment-layout .act-status-card.has-status-operations {
  width: 268px;
  min-width: 268px;
  max-width: none;
}

.patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
  width: 212px;
  min-width: 212px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  width: 276px;
  min-width: 276px;
  flex-basis: 276px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(1) {
  width: 57px;
  min-width: 57px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(2) {
  width: 62px;
  min-width: 62px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(3) {
  width: 149px;
  min-width: 149px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
  width: 161px;
  min-width: 161px;
}

.patient-document-actions button:first-child {
  width: 135px;
  min-width: 135px;
}

.patient-document-actions button:last-child {
  width: 187px;
  min-width: 187px;
}

/* R20 paired source measurements for the patient acts workflow. */
.dashboard-empty-appointment-card > a,
.dashboard-empty-payment-card > a {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.552 0.016 285.938);
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
  box-sizing: border-box;
  width: 161px;
  min-width: 161px;
  height: 32px;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transform: translateX(-3.5px);
}

.patient-document-actions button {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-operations-table .operation-status-trigger {
  box-sizing: border-box;
  width: 85px;
  min-width: 85px;
  height: 32px;
  min-height: 32px;
  gap: 6px;
  padding: 0 8px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-operations-table .dentalome-actions .plain-icon.small {
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8.4px;
}

.patient-operations-table .row-actions button svg,
.patient-operations-table .plain-icon svg,
.patient-operations-table .dentalome-inline-svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

@media (min-width: 1360px) {
  .patient-operations-table {
    width: 1108px;
    min-width: 1108px;
    table-layout: fixed;
  }

  .patient-operations-table th:nth-child(1),
  .patient-operations-table td:nth-child(1) { width: 70.421875px; }
  .patient-operations-table th:nth-child(2),
  .patient-operations-table td:nth-child(2) { width: 105.625px; }
  .patient-operations-table th:nth-child(3),
  .patient-operations-table td:nth-child(3) { width: 65.71875px; }
  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) { width: 269.953125px; }
  .patient-operations-table th:nth-child(5),
  .patient-operations-table td:nth-child(5) { width: 75.109375px; }
  .patient-operations-table th:nth-child(6),
  .patient-operations-table td:nth-child(6) { width: 58.671875px; }
  .patient-operations-table th:nth-child(7),
  .patient-operations-table td:nth-child(7) { width: 76.28125px; }
  .patient-operations-table th:nth-child(8),
  .patient-operations-table td:nth-child(8) { width: 118.53125px; }
  .patient-operations-table th:nth-child(9),
  .patient-operations-table td:nth-child(9) { width: 267.6875px; }

  .patient-plan-operations-table th:nth-child(1),
  .patient-plan-operations-table td:nth-child(1) { width: 107.3125px; }
  .patient-plan-operations-table th:nth-child(2),
  .patient-plan-operations-table td:nth-child(2) { width: 160.25px; }
  .patient-plan-operations-table th:nth-child(3),
  .patient-plan-operations-table td:nth-child(3) { width: 100.359375px; }
  .patient-plan-operations-table th:nth-child(4),
  .patient-plan-operations-table td:nth-child(4) { width: 410.890625px; }
  .patient-plan-operations-table th:nth-child(5),
  .patient-plan-operations-table td:nth-child(5) { width: 114.515625px; }
  .patient-plan-operations-table th:nth-child(6),
  .patient-plan-operations-table td:nth-child(6) { width: 214.671875px; }

  .patient-operations-table tbody tr {
    height: 48.5px;
  }
}

@media (max-width: 900px) {
  .patient-treatment-layout .add-act-button {
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-operations-card {
    box-sizing: border-box;
    width: 100%;
    margin: 40px 0 0;
    padding: 12px;
    border-radius: 14.4px;
  }

  .patient-operations-wrap {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .patient-operations-table {
    width: 944px;
    min-width: 944px;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 20px;
  }

  .patient-operations-table th,
  .patient-operations-table td {
    height: 40px;
    padding: 8px;
    border: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    vertical-align: middle;
    white-space: nowrap;
  }

  .patient-operations-table th {
    height: 40px;
    padding: 0 8px;
    font-weight: 500;
  }

  .patient-operations-table tbody tr {
    height: 48.5px;
  }

  .patient-operations-table th:nth-child(1),
  .patient-operations-table td:nth-child(1) { width: 60px; }
  .patient-operations-table th:nth-child(2),
  .patient-operations-table td:nth-child(2) { width: 90px; }
  .patient-operations-table th:nth-child(3),
  .patient-operations-table td:nth-child(3) { width: 56px; }
  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) { width: 230px; }
  .patient-operations-table th:nth-child(5),
  .patient-operations-table td:nth-child(5) { width: 64px; }
  .patient-operations-table th:nth-child(6),
  .patient-operations-table td:nth-child(6) { width: 50px; }
  .patient-operations-table th:nth-child(7),
  .patient-operations-table td:nth-child(7) { width: 65px; }
  .patient-operations-table th:nth-child(8),
  .patient-operations-table td:nth-child(8) { width: 101px; }
  .patient-operations-table th:nth-child(9),
  .patient-operations-table td:nth-child(9) { width: 228px; }

  .patient-operations-table th:first-child {
    padding: 0 0 0 8px;
  }
}

@media (max-width: 520px) {
  .patient-treatment-layout {
    width: 1191.359375px;
    min-width: 1191.359375px;
    grid-template-columns: 955.34375px 220.015625px;
  }

  .odontogram-column,
  .odontogram-panel.dentalome-odontogram-card {
    width: 955.34375px;
    min-width: 955.34375px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    transform: none;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    transform: translateX(-5.5px);
  }
}

/* R21 paired interaction contract: keep the patient workflow controls and
   responsive operation table identical to Dentalome at every viewport. */
.dentalome-patient-header .patient-header-tabs :is(button, a) {
  padding: 12px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8.4px;
}

.odontogram-panel.dentalome-odontogram-card .all-teeth-control,
.odontogram-panel.dentalome-odontogram-card .all-teeth-control input {
  color: oklch(0.141 0.005 285.823);
}

.odontogram-panel.dentalome-odontogram-card .all-teeth-control input {
  display: flex;
  line-height: 24px;
}

.patient-treatment-layout .add-act-button {
  background: #025ce2;
  color: #fff;
}

.patient-document-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.patient-document-actions button:first-child {
  border: 1px solid rgba(60, 121, 212, .2);
  background: rgba(60, 121, 212, .1);
  color: #3c79d4;
}

.patient-document-actions button:last-child {
  border: 0;
  background: #025ce2;
  color: #fff;
}

.patient-operations-toolbar .combobox-trigger {
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.patient-operations-table th:first-child,
.patient-operations-table td:first-child {
  text-align: left;
}

.patient-operations-table .operation-select-cell {
  display: inline-flex;
  width: 52px;
  min-width: 52px;
  height: 32px;
  gap: 4px;
}

.patient-operations-table .operation-select-cell .session-shortcut {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
}

.patient-operations-table .dentalome-actions {
  gap: 4px;
}

.patient-operations-table .operation-status-trigger {
  display: inline-flex;
  color: oklch(0.141 0.005 285.823);
}

.patient-operations-table .dentalome-actions .plain-icon.small {
  color: oklch(0.141 0.005 285.823);
}

.patient-operations-table .green-text {
  color: #00a63e;
}

.patient-operations-table .dentalome-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.patient-operations-table .dentalome-actions .plain-icon.small.plan-add-as-acte.treated {
  color: #00a63e;
}

.patient-operations-table .dentalome-actions .plain-icon.small.danger,
.patient-operations-table .dentalome-actions .plain-icon.small[title="Supprimer"] {
  color: oklch(0.577 0.245 27.325);
}

.patient-operations-table thead {
  background: #e6effc;
}

.patient-operations-table tbody tr,
.patient-documents-card .dentalome-patient-table tbody tr {
  background: #f9f9fa;
}

.patient-plan-operations-table tbody tr {
  background: transparent;
  border: 0 solid oklch(0.92 0.004 286.32);
}

.patient-documents-card .dentalome-patient-table tbody tr {
  background: #fff;
}

.patient-documents-card .dentalome-patient-table tbody tr:hover {
  background: #f9f9fa;
}

.patient-documents-card .dentalome-row-actions {
  transform: translateY(0.5px);
}

@media (max-width: 520px) {
  .patient-treatment-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .patient-profile-actions > .archive-action,
  .patient-profile-actions > .patient-actions-menu {
    display: flex;
  }

  .dentalome-patient-identity > .patient-profile-main {
    width: 221.75px;
    min-width: 221.75px;
    flex-basis: 221.75px;
  }

  .patient-header-tabs-shell > .patient-header-tabs {
    display: inline-flex;
    width: max-content;
    min-width: max-content;
    max-width: none;
    padding: 0;
    color: oklch(0.552 0.016 285.938);
  }

  .patient-operations-card {
    margin-top: 24px;
  }

  .patient-document-actions {
    margin: 0 0 16px;
  }

  .patient-operations-toolbar {
    margin: 0 0 16px;
  }
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  width: 273.75px;
  min-width: 273.75px;
  flex-basis: 273.75px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(1) {
  width: 56.75px;
  min-width: 56.75px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(2) {
  width: 62px;
  min-width: 62px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(3) {
  width: 147px;
  min-width: 147px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  border: 1px solid transparent;
}

.odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
  width: 157.75px;
  min-width: 157.75px;
  border-color: oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  transform: translateX(-.25px);
}

.patient-treatment-layout .act-status-card .add-act-button {
  width: 162px;
  min-width: 162px;
}

.patient-document-actions button:first-child {
  width: 130px;
  min-width: 130px;
}

.patient-document-actions button:last-child {
  width: 183px;
  min-width: 183px;
}

.patient-document-actions.plan-treatment-document-actions button:first-child {
  width: 112.75px;
  min-width: 112.75px;
}

@media (max-width: 900px) {
  .patient-operations-table {
    width: 943px;
    min-width: 943px;
  }

  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) {
    width: 229px;
  }

  .patient-operations-table .operation-status-trigger {
    width: 85.5px;
    min-width: 85.5px;
  }
}

@media (max-width: 520px) {
  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    transform: translateX(-2.25px);
  }
}

/* R109 paired operation dialog calibration. */
@media (min-width: 901px) {
  .app-shell > .app-body > .main > .topbar {
    left: 0;
  }
}

.operation-form-modal .dentalome-operation-form .appointment-source-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .teeth-selector-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .patient-source-dropdown > .combobox-trigger {
  gap: 8px;
  background: oklch(1 0 0);
}

.operation-form-modal .dentalome-operation-form .appointment-source-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .patient-source-dropdown > .combobox-trigger {
  text-align: center;
}

.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger.placeholder {
  color: oklch(0.141 0.005 285.823);
  font-weight: 500;
}

.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger:not(.placeholder) {
  font-weight: 500;
}

@media (min-width: 901px) {
  .operation-form-modal.operation-edit-form-modal {
    transform: translateY(-0.4375px);
  }
}

.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger:focus-visible {
  color: oklch(0.21 0.006 285.885);
  background: oklch(0.967 0.001 286.375);
  font-weight: 500;
}

.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"]
  .act-catalog-combobox > .combobox-trigger.placeholder,
.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"]
  .act-catalog-combobox > .combobox-trigger.placeholder svg {
  color: oklch(0.577 0.245 27.325);
}

.operation-form-modal > .modal-close-button {
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
}

/* R25 paired shell controls: Dentalome keeps the same compact action-button
   metrics across responsive widths and only enlarges the phone search text. */
.topbar .topbar-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.topbar .topbar-logout {
  display: none;
}

.topbar .global-search input {
  line-height: 20px;
}

@media (max-width: 639px) {
  .topbar .global-search input {
    line-height: 24px;
  }

  .dashboard-panel-grid {
    gap: 24px;
  }

  .dashboard-panel-head a {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
  }
}

.dashboard-panel-head .dashboard-practitioner-note {
  font-weight: 600;
}

.dashboard-empty-appointment-card,
.dashboard-empty-payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dashboard-empty-appointment-card .dashboard-empty-icon,
.dashboard-empty-payment-card .dashboard-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Live Dentalome quick-add popover, captured from the doctor calendar. */
.topbar .topbar-quick-add-popover {
  top: 40px;
  right: 44px;
  width: 224px;
  padding: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  overflow: visible;
}

.topbar-quick-add-popover button {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.topbar-quick-add-popover button + button {
  margin-top: 4px;
}

.patient-form-modal.patient-quick-add-modal .patient-form-scroll {
  overflow: visible;
  padding-bottom: 8px;
}

.topbar .topbar-quick-add-popover button > span:last-child {
  display: inline-block;
  color: oklch(0.141 0.005 285.823) !important;
  font-weight: 500;
}

.topbar-quick-add-icon {
  width: 28px;
  height: 28px;
  display: flex !important;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  place-items: center;
  border-radius: 8.4px;
  background: oklab(0.519343 -0.0356103 -0.213735 / .1);
  color: rgb(2, 92, 226) !important;
  transition: all .15s ease;
}

.topbar-quick-add-popover button:hover {
  outline: none;
  background: oklch(0.967 0.001 286.375);
}

.topbar-quick-add-popover button:hover .topbar-quick-add-icon {
  transform: scale(1.05);
  background: rgb(2, 92, 226);
  color: #fff !important;
}

.topbar .topbar-action.active {
  border-color: oklch(0.92 0.004 286.32);
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.topbar .topbar-action:hover,
.topbar .topbar-action:focus {
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.21 0.006 285.885);
}

@media (max-width: 639px) {
  .topbar .topbar-quick-add-popover {
    right: 44px;
    width: min(224px, calc(100vw - 32px));
  }
}

/* Doctor quick-add dialogs use the exact live Dentalome modal contracts. */
.patient-form-modal {
  gap: 16px;
  background: oklch(1 0 0);
}

.patient-form-modal .modal-head {
  margin: 0;
}

.patient-form-modal.patient-quick-add-modal .modal-actions {
  width: 100%;
  margin: 0;
  padding: 16px 0 0;
}

.patient-form-modal .modal-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
}

.patient-form-modal .modal-actions > button:not(.primary-button) {
  background: oklch(1 0 0);
}

.patient-form-modal .modal-actions > .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
}

.users-action-modal {
  display: grid;
  gap: 16px;
  background: oklch(1 0 0);
}

.users-action-modal .modal-head {
  margin-bottom: 0;
}

.users-action-modal .modal-close-button {
  display: block;
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
}

.users-phone-input > button {
  border-radius: 10.4px 0 0 10.4px;
}

.users-form-grid .users-phone-input > input {
  border-radius: 0 10.4px 10.4px 0;
}

.users-action-modal .password-visibility-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 solid oklch(0.92 0.004 286.32);
  line-height: 20px;
  gap: 8px;
}

.users-action-modal .users-form-grid input:focus {
  border-color: rgb(2, 92, 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.users-action-modal .modal-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
}

.users-action-modal .modal-actions > button:not(.primary-button) {
  background: oklch(1 0 0);
}

.users-action-modal .modal-actions > .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
}

.catalog-medication-form-modal {
  display: grid;
  gap: 16px;
  border-color: oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.catalog-medication-form-modal .modal-head {
  margin-bottom: 17px;
}

.catalog-medication-form-modal .catalog-source-form-grid {
  display: block;
}

.catalog-medication-form-modal .catalog-medication-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  color: oklch(0.141 0.005 285.823);
}

.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.catalog-medication-form-modal .catalog-medication-field-label {
  display: flex;
  width: 100%;
  gap: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-medication-form-modal .catalog-medication-field-content {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 6px;
  line-height: 20px;
}

.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] input,
.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] .combobox-trigger {
  color: inherit;
}

.catalog-medication-form-modal .catalog-medication-field .catalog-field-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-medication-form-modal .catalog-medication-field .combobox-trigger svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  color: inherit;
  opacity: .5;
}

.catalog-medication-form-modal .modal-head h2,
.catalog-medication-form-modal .catalog-source-form-grid label,
.catalog-medication-form-modal .catalog-source-form-grid .catalog-combobox-field,
.catalog-medication-form-modal .catalog-source-form-grid input,
.catalog-medication-form-modal .catalog-source-form-grid .combobox-trigger {
  color: oklch(0.141 0.005 285.823);
}

.catalog-medication-form-modal .catalog-source-form-grid input,
.catalog-medication-form-modal .catalog-source-form-grid .combobox-trigger {
  border-color: oklch(0.92 0.004 286.32);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-medication-form-modal .catalog-source-form-grid .combobox-trigger {
  gap: 8px;
  padding: 8px 12px;
  background: oklch(1 0 0);
}

.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] .catalog-medication-field-label,
.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] input,
.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] .combobox-trigger {
  color: oklch(0.577 0.245 27.325);
}

.catalog-medication-form-modal .catalog-source-form-grid input:focus {
  border-color: rgb(2, 92, 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-medication-form-modal .modal-close-button,
.charge-form-modal > .modal-close-button {
  display: block;
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > button,
.charge-form-modal .charge-source-action-row > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > button:not(.primary-button),
.charge-form-modal .charge-source-action-row > button:not(.primary-button) {
  background: oklch(1 0 0);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > .primary-button,
.charge-form-modal .charge-source-action-row > .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  box-shadow: none;
}

.charge-form-modal {
  background: oklch(1 0 0);
}

.charge-form-modal .dentalome-charge-form input[data-modal-autofocus="true"]:focus {
  border-color: rgb(2, 92, 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.dashboard-empty-appointment-card .dashboard-empty-title,
.dashboard-empty-payment-card .dashboard-empty-title {
  margin: 16px 0 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  transform: none;
}

.dashboard-empty-appointment-card .dashboard-empty-title + p,
.dashboard-empty-payment-card .dashboard-empty-title + p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  transform: none;
}

.dashboard-empty-appointment-card > a,
.dashboard-empty-payment-card > a {
  margin-top: 16px;
  transform: none;
}

.patients-tabs.dentalome-segmented-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.patients-search-input.dentalome-search-input {
  border-radius: 8.4px;
}

.patients-search-input.dentalome-search-input:focus,
.patients-search-input.dentalome-search-input:focus-visible {
  outline: none;
  border-color: rgb(2, 92, 226);
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.patient-document-actions button:first-child {
  width: 132.75px;
  min-width: 132.75px;
}

.patient-document-actions button:last-child {
  width: 185.75px;
  min-width: 185.75px;
}

.patient-document-actions.plan-treatment-document-actions button:first-child {
  width: 115.5px;
  min-width: 115.5px;
}

.treatment-plan-tabs {
  box-sizing: border-box;
  display: flex;
  width: 770.75px;
  min-width: 770.75px;
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 3px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
}

.treatment-plan-tabs button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: 27px;
  min-height: 27px;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.treatment-plan-tabs button.active {
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.treatment-plan-tabs button.populated::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: #025ce2;
  content: "";
}

.treatment-plan-tabs button.populated.active {
  width: 77px;
  min-width: 77px;
  background: #025ce2;
  color: #fff;
  font-weight: 600;
}

.treatment-plan-tabs button.populated.active::before {
  background: #fff;
}

.treatment-plan-tabs button.populated:not(.active) {
  width: 79.5px;
  min-width: 79.5px;
  background: rgb(2 92 226 / 10%);
  color: #025ce2;
  font-weight: 600;
}

.patient-operations-card .treatment-plan-tabs {
  margin-bottom: 16px;
}

.patient-operations-card .treatment-plan-tabs + .patient-operations-toolbar {
  margin-bottom: 4px;
}

.patient-plan-operations-table .patient-operation-empty-state > span {
  min-height: 196px;
}

.patient-initial-operations-table .patient-operation-empty-state > span {
  min-height: 196px;
}

/* R106 paired desktop contract: source-measured patient treatment controls. */
@media (min-width: 901px) {
  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    width: 276px;
    min-width: 276px;
    flex-basis: 276px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(1) {
    width: 57px;
    min-width: 57px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(2) {
    width: 62px;
    min-width: 62px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(3) {
    width: 149px;
    min-width: 149px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    width: 161px;
    min-width: 161px;
  }

  .patient-treatment-layout .act-status-card .add-act-button {
    width: 164px;
    min-width: 164px;
  }

  .patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
    width: 212px;
    min-width: 212px;
  }

  .patient-document-actions button:first-child {
    width: 135px;
    min-width: 135px;
  }

  .patient-document-actions button:last-child {
    width: 187px;
    min-width: 187px;
  }

  .patient-document-actions.plan-treatment-document-actions button:first-child {
    width: 116px;
    min-width: 116px;
  }

  .patient-operations-card .treatment-plan-tabs + .patient-operations-toolbar {
    margin-bottom: 16px;
  }

  .patient-operations-table .dentalome-checkbox-control {
    display: inline-block;
    background: #fff;
  }
}

/* Current-run paired measurements: desktop Dentalome keeps the treatment
   workspace fluid at a 2:1 ratio instead of reusing the clipped tablet canvas. */
@media (min-width: 1360px) {
  .patient-treatment-layout {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 520px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
  }

  .patient-treatment-layout .odontogram-column,
  .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card,
  .patient-treatment-layout .act-status-card,
  .patient-treatment-layout .act-status-card.has-status-operations {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 520px;
    min-height: 520px;
  }

  .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card {
    gap: 32px;
    padding: 28px;
  }

  .patient-treatment-layout .act-status-card .add-act-button,
  .patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
    width: 100%;
    min-width: 0;
  }
}

/* Login contracts are responsive at the same breakpoints as Dentalome. */
.dentalome-login-panel .login-input-wrap {
  display: block;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dentalome-login-panel .login-input-wrap > svg:first-child {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 12px;
  margin: 0;
}

.dentalome-login-panel input[type="email"],
.dentalome-login-panel input[type="password"],
.dentalome-login-panel .login-input-wrap input[type="text"] {
  box-sizing: border-box;
  display: inline-block;
  width: 100%;
  height: 44px;
  border: 1px solid #e5e5ea;
  border-radius: 8.4px;
  padding: 4px 40px;
  background: #fff;
  color: #1c1c1e;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.dentalome-login-panel input[type="email"] {
  padding-right: 12px;
}

.dentalome-login-panel .login-password-toggle {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 12px;
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
}

.forgot-password-button {
  color: #2556e3;
  line-height: 20px;
  text-decoration: none;
}

.dentalome-login-panel .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10.4px;
  background: #2556e3;
  font-weight: 500;
  padding: 8px 16px;
}

@media (min-width: 521px) and (max-width: 900px) {
  .dentalome-login-screen.login-screen {
    min-height: 100vh;
    grid-template-columns: 360px minmax(0, 1fr);
    overflow: hidden;
  }

  .dentalome-login-cover {
    min-height: 100vh;
  }

  .dentalome-login-panel.login-panel {
    width: 360px;
    margin: 0;
    align-self: center;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .dentalome-login-screen.login-screen {
    min-height: 100vh;
    grid-template-rows: 260px auto;
  }

  .dentalome-login-cover {
    min-height: 260px;
    display: grid;
    background: #fff;
  }

  .dentalome-login-brand-lockup {
    width: calc(100% - 48px);
    margin: 150px auto 0;
  }

  .dentalome-login-brand-lockup .dentalome-logo {
    color: #025ce2;
    transform: none;
  }

  .dentalome-login-brand-lockup .dentalome-logo-wordmark {
    width: 230px;
  }

  .dentalome-login-brand-lockup p {
    display: none;
  }

  .dentalome-login-panel.login-panel {
    width: auto;
    margin: 10px 24px auto;
  }
}

/* The source shell places the top bar inside the main landmark. */
.app-shell > .app-body > .main {
  padding-top: 0;
}

@media (min-width: 901px) {
  .app-shell > .app-body > .main > .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .patient-treatment-layout {
    width: 100%;
    max-width: 100%;
    height: 504px;
    display: flex;
    align-items: stretch;
    gap: 16px;
  }

  .patient-treatment-layout .odontogram-column {
    flex: 2 1 0%;
    min-width: 955.15625px;
    height: 504px;
  }

  .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card {
    width: 100%;
    height: 504px;
    min-height: 504px;
    max-height: 504px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 28px;
    overflow: visible;
  }

  .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    margin: 0;
  }

  .patient-treatment-layout .odontogram-stack {
    min-height: 0;
    height: 361px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .patient-treatment-layout .act-status-card {
    flex: 1 1 0%;
    width: auto;
    min-width: 220.015625px;
    height: 504px;
    min-height: 504px;
    max-height: 504px;
    padding: 28px;
    overflow: hidden;
  }

  .patient-treatment-layout .act-status-card.has-status-operations {
    flex: 0 0 268px;
    width: 268px;
    min-width: 268px;
  }

  .patient-treatment-layout .act-status-card .add-act-button {
    display: flex;
  }

  .patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
    width: 212px;
    min-width: 212px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
    border: 0 solid transparent;
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: start;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected {
    background: oklab(0.519343 -0.0356103 -0.213735 / 0.2);
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:hover,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected:hover {
    background: oklab(0.519343 -0.0356103 -0.213735 / 0.1);
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:hover .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected:hover .tooth-art {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-hover-menu {
    position: absolute;
    z-index: 2;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8.4px;
    background: oklch(0.932 0.032 255.585);
    color: #025ce2;
    pointer-events: none;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:hover .tooth-hover-menu {
    display: flex;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-column,
  .patient-treatment-layout.child-schema-layout .act-status-card,
  .patient-treatment-layout.child-schema-layout .act-status-card.has-status-operations {
    min-width: 0;
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-column {
    flex: 0 0 749px;
    width: 749px;
  }

  .patient-treatment-layout.child-schema-layout {
    height: 520px;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-panel.dentalome-odontogram-card {
    height: 520px;
    min-height: 520px;
    max-height: 520px;
    padding-top: 36px;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-stack {
    transform: translateY(8px);
  }

  .patient-treatment-layout.child-schema-layout .treatment-summary-actions {
    width: 412px;
    flex-basis: 412px;
  }

  .patient-treatment-layout.child-schema-layout .treatment-financials {
    width: 230px;
    flex-basis: 230px;
    display: grid;
    grid-template-columns: repeat(3, 60px);
    column-gap: 25px;
    align-items: start;
    white-space: normal;
  }

  .patient-treatment-layout.child-schema-layout .treatment-financials .metric {
    width: 60px;
    grid-template-rows: 32px 12px;
    gap: 4px;
    line-height: 16px;
  }

  .patient-treatment-layout.child-schema-layout .treatment-financials .metric span {
    white-space: normal;
  }

  .patient-treatment-layout.child-schema-layout .act-status-card .add-act-button,
  .patient-treatment-layout.child-schema-layout .act-status-card.has-status-operations .add-act-button {
    width: 313.25px;
    min-width: 313.25px;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-control-row .switch > input {
    display: flex;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    border: 1px solid transparent;
    border-radius: 33554432px;
    text-align: center;
  }

  .patient-treatment-layout.child-schema-layout .tooth.dentalome-tooth {
    border: 0 solid transparent;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: start;
  }
}

.odontogram-panel.dentalome-odontogram-card .child-schema-inline {
  color: oklch(0.141 0.005 285.823);
  font-weight: 400;
}

.odontogram-panel.dentalome-odontogram-card .child-schema-inline > input {
  display: flex;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  border: 1px solid transparent;
  border-radius: 33554432px;
  text-align: center;
}

.patient-document-actions button {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.patient-document-actions .source-button-leading-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-right: 0;
  flex: 0 0 16px;
}

.patient-document-actions button > strong {
  flex: 0 0 auto;
}

/* Current-run operation-session dialog calibration. */
.operation-session-source-form .dentalome-date-input > button {
  gap: 8px;
  padding: 8px 12px;
  background-color: oklch(1 0 0);
}

.operation-session-source-form .dentalome-date-input > button:focus {
  border-color: oklch(0.92 0.004 286.32);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-source-form .dentalome-date-input > button:focus-visible {
  border-color: #025ce2;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-source-form textarea {
  display: flex;
  background-color: transparent;
}

.operation-session-form-modal .modal-actions button:not(.primary-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  background-color: oklch(1 0 0);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.operation-session-form-modal > .modal-close-button {
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  padding: 0;
  gap: normal;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.patient-form-modal .modal-close-button {
  gap: normal;
  border-width: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* Dentalome operation-session list and destructive confirmation parity. */
.operation-sessions-modal {
  display: grid;
  gap: 0;
  background-color: oklch(1 0 0);
}

.operation-sessions-modal > .modal-head h2 {
  display: flex;
  color: oklch(0.141 0.005 285.823);
  text-align: left;
}

.operation-sessions-modal .operation-sessions-scroll {
  min-height: 0;
  padding: 20px 16px 22.25px;
}

.operation-session-card-actions .plain-icon {
  color: rgb(0, 0, 0);
}

.operation-session-card-actions .plain-icon.destructive {
  color: oklch(0.577 0.245 27.325);
}

.operation-sessions-modal .operation-sessions-footer .primary-button {
  white-space: nowrap;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 0 10px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
}

.operation-sessions-modal > .modal-close-button {
  display: block;
  gap: normal;
  border: 0 solid oklch(0.92 0.004 286.32);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.operation-session-form-modal {
  display: grid;
  gap: 16px;
  background-color: oklch(1 0 0);
}

.operation-session-form-modal > .modal-head {
  width: calc(100% + 48px);
  margin: 0 -24px;
  padding: 0 24px 16px;
}

.operation-session-form-modal .modal-actions .primary-button {
  gap: 8px;
  border: 0 solid oklch(0.92 0.004 286.32);
}

.operation-session-source-label {
  color: oklch(0.141 0.005 285.823);
}

.operation-session-source-label svg,
.operation-session-detail-control small {
  color: oklch(0.552 0.016 285.938);
}

.operation-session-source-form strong {
  color: oklch(0.577 0.245 27.325);
}

.operation-session-delete-confirm-modal {
  background-color: oklch(1 0 0);
  border-color: oklab(0.577 0.217662 0.112464 / .5);
}

.operation-session-delete-confirm-modal .modal-actions button,
.operation-session-delete-confirm-modal .modal-actions button:not(.primary-button),
.operation-session-delete-confirm-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.operation-session-delete-confirm-modal .modal-actions button:not(.danger-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-delete-confirm-modal .modal-actions button:not(.danger-button):focus-visible {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-delete-confirm-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

/* Current-run agenda control calibration. */
.agenda-practitioner-select {
  display: flex;
  color: oklch(0.141 0.005 285.823);
  background-color: oklch(1 0 0);
  border: 1px solid oklch(0.92 0.004 286.32);
  padding: 8px 12px;
  gap: 8px;
  text-align: center;
}

.mini-calendar-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.141 0.005 285.823);
  background-color: transparent;
  border: 0 solid oklch(0.92 0.004 286.32);
  gap: 4px;
}

.mini-calendar-grid button.outside {
  color: oklch(0.552 0.016 285.938);
}

.mini-calendar-grid button.today {
  color: oklch(0.21 0.006 285.885);
}

/* R107 final desktop patient-workflow calibration. Keep after legacy passes. */
@media (min-width: 901px) {
  .app-body.no-rail .patient-workspace {
    position: relative;
    left: 0;
  }

  body:has(.operation-form-modal) .app-body.no-rail .patient-workspace:not(.plan-treatment-workspace),
  body:has(.operation-success-toast) .app-body.no-rail .patient-workspace:not(.plan-treatment-workspace) {
    left: -33px;
  }

  body:has(.operation-form-modal) .app-body.no-rail .patient-workspace.plan-treatment-workspace,
  body:has(.operation-success-toast) .app-body.no-rail .patient-workspace.plan-treatment-workspace {
    left: 0;
  }

  .treatment-plan-tabs:has(button.populated.active) {
    width: 782px;
    min-width: 782px;
  }

  .patient-plan-operations-table .dentalome-actions {
    transform: translateX(-52.25px);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    width: 161px;
    min-width: 161px;
    transform: translateX(-3.25px);
  }

  .patient-treatment-layout .act-status-card .add-act-button {
    width: 164px;
    min-width: 164px;
  }

  .patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
    width: 212px;
    min-width: 212px;
  }

  .patient-operations-table thead .dentalome-checkbox-control {
    transform: translateY(2px);
  }

  .patient-operations-table tbody .dentalome-checkbox-control {
    display: block;
    background: transparent;
    transform: none;
  }

  .patient-initial-operations-table th:nth-child(1),
  .patient-initial-operations-table td:nth-child(1) {
    width: 23.09200135%;
  }

  .patient-initial-operations-table th:nth-child(2),
  .patient-initial-operations-table td:nth-child(2) {
    width: 42.47659079%;
  }

  .patient-initial-operations-table th:nth-child(3),
  .patient-initial-operations-table td:nth-child(3) {
    width: 34.43140786%;
  }

  .patient-current-operations-table .operation-status-trigger {
    transform: translateX(1.75px);
  }

  .patient-current-operations-table .dentalome-actions {
    transform: translateX(1.25px);
  }
}

/* R160 source-measured plan row geometry. */
@media (min-width: 1360px) {
  .patient-plan-operations-table th:nth-child(1),
  .patient-plan-operations-table td:nth-child(1) { width: 134px; }
  .patient-plan-operations-table th:nth-child(2),
  .patient-plan-operations-table td:nth-child(2) { width: 208px; }
  .patient-plan-operations-table th:nth-child(3),
  .patient-plan-operations-table td:nth-child(3) { width: 126px; }
  .patient-plan-operations-table th:nth-child(4),
  .patient-plan-operations-table td:nth-child(4) { width: 229px; }
  .patient-plan-operations-table th:nth-child(5),
  .patient-plan-operations-table td:nth-child(5) { width: 143px; }
  .patient-plan-operations-table th:nth-child(6),
  .patient-plan-operations-table td:nth-child(6) { width: 268px; }

  .patient-plan-operations-table .dentalome-actions {
    transform: none;
  }
}

.patient-plan-operations-table tbody {
  background: #f9f9fa;
}

.patient-operations-table.patient-plan-operations-table tbody tr:last-child {
  border: 0 solid oklch(0.92 0.004 286.32);
}

/* Live Dentalome current-act table contract. Dentalome keeps this table at a
   1307.47px intrinsic width at every viewport and scrolls its wrapper. */
.patient-current-operations-table {
  width: 1307.46875px;
  min-width: 1307.46875px;
  table-layout: auto;
}

.patient-current-operations-table th:nth-child(1),
.patient-current-operations-table td:nth-child(1) { width: 60px; }
.patient-current-operations-table th:nth-child(2),
.patient-current-operations-table td:nth-child(2) { width: 95.078125px; }
.patient-current-operations-table th:nth-child(3),
.patient-current-operations-table td:nth-child(3) { width: 85.390625px; }
.patient-current-operations-table th:nth-child(4),
.patient-current-operations-table td:nth-child(4) { width: 532.46875px; }
.patient-current-operations-table th:nth-child(5),
.patient-current-operations-table td:nth-child(5) { width: 75.125px; }
.patient-current-operations-table th:nth-child(6),
.patient-current-operations-table td:nth-child(6) { width: 75.21875px; }
.patient-current-operations-table th:nth-child(7),
.patient-current-operations-table td:nth-child(7) { width: 54.75px; }
.patient-current-operations-table th:nth-child(8),
.patient-current-operations-table td:nth-child(8) { width: 101.4375px; }
.patient-current-operations-table th:nth-child(9),
.patient-current-operations-table td:nth-child(9) { width: 228px; }

.patient-current-operations-table th:first-child,
.patient-current-operations-table td:first-child {
  padding-right: 0;
}

.patient-current-operations-table td:nth-child(2) {
  position: relative;
  left: -1px;
}

.patient-current-operations-table td:nth-child(5) {
  position: relative;
  left: -4px;
}

.patient-current-operations-table td:nth-child(6) {
  position: relative;
  left: -5px;
}

.patient-current-operations-table td:nth-child(7) {
  position: relative;
  left: 4px;
}

@media (min-width: 1360px) {
  .patient-current-operations-table.no-financial-activity .operation-status-trigger,
  .patient-current-operations-table.no-financial-activity .dentalome-actions {
    transform: translateX(-1.25px);
  }
}

/* Live Dentalome doctor topbar and quick-add control contract. Keep last so
   older parity calibration rules cannot alter the captured source metrics. */
.topbar .topbar-action > svg {
  width: 16px;
  height: 16px;
}

.topbar-action.has-notification::after {
  content: none;
}

.topbar .topbar-notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  display: block;
  border: 0;
  border-radius: 999px;
  background: oklch(0.637 0.237 25.331);
}

.patient-phone-flag {
  width: 24px;
  height: 16px;
  display: flex;
  flex: 0 0 24px;
  overflow: hidden;
  border-radius: 6.4px;
  background: oklab(0.141 0.00136333 -0.00481054 / 20%);
  box-shadow: none;
}

.patient-phone-flag > svg {
  width: 100%;
  height: 100%;
  display: block;
  flex: 1 1 auto;
}

.patient-form-modal .patient-phone-country-button > svg,
.users-action-modal .patient-phone-country-button > svg {
  width: 16px;
  height: 16px;
  margin-right: -8px;
  color: oklch(0.141 0.005 285.823);
  opacity: 1;
}

.users-form-grid .users-form-field {
  position: relative;
  display: grid;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.users-form-grid .users-form-field[data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.users-form-grid .users-form-field .patient-source-phone-input {
  grid-template-columns: 61px minmax(0, 1fr);
  min-height: 36px;
}

.users-action-modal .users-form-grid .users-form-field .patient-phone-country-button {
  width: 61px;
  height: 36px;
  min-height: 36px;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-right: 0;
  border-radius: 10.4px 0 0 10.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-action-modal .users-form-grid .users-form-field .patient-phone-number-input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-left: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 0 10.4px 10.4px 0;
  background: rgb(255, 255, 255);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.users-action-modal .users-form-grid .users-form-field[data-invalid="true"] .patient-phone-country-button,
.users-action-modal .users-form-grid .users-form-field[data-invalid="true"] .patient-phone-number-input {
  border-color: oklch(0.577 0.245 27.325);
}

.patient-form-modal > .modal-close-button,
.catalog-medication-form-modal > .modal-close-button,
.users-action-modal > .modal-close-button,
.charge-form-modal > .modal-close-button {
  border: 0 solid oklch(0.92 0.004 286.32);
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > button:not(.primary-button),
.users-action-modal .modal-actions > button:not(.primary-button),
.charge-form-modal .dentalome-charge-form .charge-source-action-row > button:not(.primary-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > .primary-button,
.users-action-modal .modal-actions > .primary-button,
.charge-form-modal .dentalome-charge-form .charge-source-action-row > .primary-button {
  padding: 8px 16px;
  border: 0 solid oklch(0.92 0.004 286.32);
  color: oklch(0.97 0.014 254.604);
}

.patient-form-modal .modal-head h2,
.catalog-medication-form-modal .modal-head h2,
.users-action-modal .modal-head h2,
.charge-form-modal .modal-head h2 {
  text-align: left;
}

.users-workspace .dentalome-table-wrap tbody tr {
  font-size: 14px;
  line-height: 20px;
}

.users-action-modal .password-visibility-button {
  height: 100%;
  min-height: 36px;
}

.users-action-modal .password-field-shell.has-error .password-visibility-button {
  height: 50px;
}

.users-form-grid .users-form-field .patient-field-error {
  margin: 0;
  line-height: 20px;
}

.users-permissions-modal .modal-close-button {
  display: block;
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
}

/* Payment parity: Dentalome lets the current-act table fit its desktop
   container, then uses the measured compact table as the mobile scroll width. */
.patient-current-operations-table {
  width: 100%;
  table-layout: fixed;
}

.patient-current-operations-table tbody tr {
  background: transparent;
}

@media (min-width: 901px) {
  .patient-current-operations-table {
    min-width: 1108px;
  }

  .patient-current-operations-table th:nth-child(1),
  .patient-current-operations-table td:nth-child(1) { width: 70.421875px; }
  .patient-current-operations-table th:nth-child(2),
  .patient-current-operations-table td:nth-child(2) { width: 107.625px; }
  .patient-current-operations-table th:nth-child(3),
  .patient-current-operations-table td:nth-child(3) { width: 65.71875px; }
  .patient-current-operations-table th:nth-child(4),
  .patient-current-operations-table td:nth-child(4) { width: 269.953125px; }
  .patient-current-operations-table th:nth-child(5),
  .patient-current-operations-table td:nth-child(5) { width: 75.109375px; }
  .patient-current-operations-table th:nth-child(6),
  .patient-current-operations-table td:nth-child(6) { width: 58.671875px; }
  .patient-current-operations-table th:nth-child(7),
  .patient-current-operations-table td:nth-child(7) { width: 76.28125px; }
  .patient-current-operations-table th:nth-child(8),
  .patient-current-operations-table td:nth-child(8) { width: 118.53125px; }
  .patient-current-operations-table th:nth-child(9),
  .patient-current-operations-table td:nth-child(9) { width: 265.6875px; }
}

@media (max-width: 900px) {
  .patient-current-operations-table {
    width: 944px;
    min-width: 944px;
  }

  .patient-current-operations-table th:nth-child(1),
  .patient-current-operations-table td:nth-child(1) { width: 60px; }
  .patient-current-operations-table th:nth-child(2),
  .patient-current-operations-table td:nth-child(2) { width: 90px; }
  .patient-current-operations-table th:nth-child(3),
  .patient-current-operations-table td:nth-child(3) { width: 56px; }
  .patient-current-operations-table th:nth-child(4),
  .patient-current-operations-table td:nth-child(4) { width: 230px; }
  .patient-current-operations-table th:nth-child(5),
  .patient-current-operations-table td:nth-child(5) { width: 64px; }
  .patient-current-operations-table th:nth-child(6),
  .patient-current-operations-table td:nth-child(6) { width: 50px; }
  .patient-current-operations-table th:nth-child(7),
  .patient-current-operations-table td:nth-child(7) { width: 65px; }
  .patient-current-operations-table th:nth-child(8),
  .patient-current-operations-table td:nth-child(8) { width: 101px; }
  .patient-current-operations-table th:nth-child(9),
  .patient-current-operations-table td:nth-child(9) { width: 228px; }
}

@media (min-width: 901px) {
  .patient-payments-card .patient-payments-table {
    table-layout: fixed;
  }

  .patient-payments-card .patient-payments-table th:nth-child(1),
  .patient-payments-card .patient-payments-table td:nth-child(1) { width: 14.350181%; }
  .patient-payments-card .patient-payments-table th:nth-child(2),
  .patient-payments-card .patient-payments-table td:nth-child(2) { width: 11.281588%; }
  .patient-payments-card .patient-payments-table th:nth-child(3),
  .patient-payments-card .patient-payments-table td:nth-child(3) { width: 15.884477%; }
  .patient-payments-card .patient-payments-table th:nth-child(4),
  .patient-payments-card .patient-payments-table td:nth-child(4) { width: 17.960289%; }
  .patient-payments-card .patient-payments-table th:nth-child(5),
  .patient-payments-card .patient-payments-table td:nth-child(5) { width: 20.938628%; }
  .patient-payments-card .patient-payments-table th:nth-child(6),
  .patient-payments-card .patient-payments-table td:nth-child(6) { width: 19.584837%; }
}

.patient-payments-table tbody tr {
  border: 0 solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.patient-payments-card .dentalome-pagination button:disabled {
  opacity: .5;
  gap: 8px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.patient-payments-card .patient-payments-table td .money-red {
  display: block;
  height: 20px;
  color: #ef0000;
  font-weight: 500;
  line-height: 20px;
}

.payment-form-modal > .modal-close-button {
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.payment-toast-region {
  top: 24px;
  right: 24px;
  bottom: auto;
  width: 356px;
  min-width: 356px;
  height: 53.5px;
  min-height: 53.5px;
}

.payment-toast-list {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.patient-toast-message.payment-success-toast {
  box-sizing: border-box;
  width: 356px;
  min-width: 356px;
  max-width: 356px;
  height: 53.5px;
  min-height: 53.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgb(191, 252, 217);
  border-radius: 8px;
  background: rgb(236, 253, 243);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  color: rgb(0, 138, 46);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  text-align: start;
}

.payment-success-toast-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: rgb(0, 138, 46);
}

/* Real platform accounts and granular access control */
.forced-password-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f3f6fa;
}

.forced-password-panel {
  width: min(100%, 480px);
  display: grid;
  gap: 16px;
  padding: 36px;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
}

.forced-password-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #075fe5;
  background: #eaf2ff;
  border-radius: 8px;
}

.forced-password-eyebrow {
  margin: 4px 0 -10px;
  color: #075fe5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.forced-password-panel h1 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0;
}

.forced-password-panel > p:not(.forced-password-eyebrow) {
  margin: 0 0 6px;
  color: #667085;
  line-height: 22px;
}

.forced-password-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.forced-password-panel input:not([type="checkbox"]) {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  outline: none;
}

.forced-password-panel input:focus {
  border-color: #075fe5;
  box-shadow: 0 0 0 3px rgba(7, 95, 229, .12);
}

.forced-password-show {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  font-weight: 500 !important;
}

.forced-password-show input {
  width: 16px;
  height: 16px;
  accent-color: #075fe5;
}

.forced-password-panel .primary-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.forced-password-logout {
  justify-self: center;
  color: #667085;
  background: transparent;
}

.account-users-workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-users-workspace .page-header {
  align-items: flex-end;
}

.account-users-workspace .page-header .primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-users-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
}

.account-users-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  border-right: 1px solid #e8edf3;
}

.account-users-summary > div:last-child {
  border-right: 0;
}

.account-users-summary strong {
  color: #101828;
  font-size: 24px;
  line-height: 28px;
}

.account-users-summary span {
  color: #667085;
  font-size: 13px;
}

.account-users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.account-users-search {
  width: min(420px, 100%);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  color: #667085;
}

.account-users-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
}

.account-users-loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 13px;
}

.account-users-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
}

.account-users-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.account-users-table th {
  padding: 12px 14px;
  color: #475467;
  background: #f5f8fc;
  border-bottom: 1px solid #dfe5ed;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.account-users-table td {
  padding: 14px;
  border-bottom: 1px solid #edf0f4;
  color: #344054;
  vertical-align: middle;
}

.account-users-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-users-table tr[data-inactive="true"] {
  background: #fafafa;
  opacity: .72;
}

.account-user-identity {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-user-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.account-user-identity strong,
.account-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user-identity small {
  color: #667085;
  font-size: 12px;
  line-height: 18px;
}

.account-user-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: #075fe5;
  background: #eaf2ff;
  border-radius: 50%;
  font-weight: 700;
}

.account-role-badge,
.account-source-badge,
.account-state-badge,
.account-password-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.account-role-badge {
  color: #1d4ed8;
  background: #eaf2ff;
}

.account-role-badge.role-admin {
  color: #7a2e0e;
  background: #fff1e8;
}

.account-role-badge.role-reception {
  color: #166534;
  background: #eaf8ee;
}

.account-role-badge.role-assistant {
  color: #6b3da8;
  background: #f3edff;
}

.account-source-badge {
  color: #075fe5;
  background: #edf4ff;
}

.account-source-badge.local {
  color: #667085;
  background: #f2f4f7;
}

.account-state-badge.active {
  color: #166534;
  background: #e9f8ed;
}

.account-state-badge.inactive {
  color: #9f1d1d;
  background: #feeeee;
}

.account-password-state {
  display: flex;
  width: max-content;
  margin-top: 5px;
  color: #9a6700;
  background: #fff6d8;
}

.account-permissions-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #075fe5;
  background: #fff;
  border: 1px solid #bfd4f6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.account-users-actions {
  display: inline-flex;
  gap: 2px;
  white-space: nowrap;
}

.account-users-actions-heading {
  width: 150px;
}

.account-users-empty {
  height: 120px;
  color: #667085 !important;
  text-align: center;
}

.managed-user-modal {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
}

.managed-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.managed-user-form label,
.temporary-credential-modal label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.managed-user-form input,
.managed-user-form select,
.managed-user-form textarea,
.temporary-credential-modal input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  outline: none;
  background: #fff;
}

.managed-user-form textarea {
  resize: vertical;
}

.managed-user-form input:focus,
.managed-user-form select:focus,
.managed-user-form textarea:focus {
  border-color: #075fe5;
  box-shadow: 0 0 0 3px rgba(7, 95, 229, .12);
}

.managed-user-form .wide {
  grid-column: 1 / -1;
}

.managed-user-active {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
}

.managed-user-active input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #075fe5;
}

.managed-user-active span {
  display: grid;
  gap: 1px;
}

.managed-user-active small {
  color: #667085;
  font-weight: 400;
}

.managed-permissions-modal {
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
}

.managed-permissions-admin-note,
.temporary-credential-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 12px;
  color: #075fe5;
  background: #edf4ff;
  border: 1px solid #cfe0fa;
  border-radius: 6px;
}

.managed-permissions-scroll {
  max-height: min(62vh, 620px);
  overflow: auto;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
}

.managed-permissions-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.managed-permissions-table th,
.managed-permissions-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f4;
  text-align: center;
}

.managed-permissions-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #475467;
  background: #f6f8fb;
  font-size: 12px;
  font-weight: 600;
}

.managed-permissions-table thead th:first-child,
.managed-permissions-table tbody td:first-child {
  min-width: 260px;
  text-align: left;
}

.managed-permissions-table input {
  width: 17px;
  height: 17px;
  accent-color: #075fe5;
}

.managed-permissions-group th {
  padding: 9px 10px;
  color: #075fe5;
  background: #f0f5fd;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
}

.managed-permissions-modal .modal-actions {
  margin-top: 16px;
}

.managed-user-action-modal {
  width: min(500px, calc(100vw - 32px));
}

.managed-user-action-modal p {
  margin: 0;
  color: #475467;
  line-height: 23px;
}

.temporary-credential-modal {
  width: min(560px, calc(100vw - 32px));
}

.temporary-credential-modal label {
  margin-top: 13px;
}

.temporary-credential-modal input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.temporary-credential-modal .modal-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 900px) {
  .forced-password-screen {
    padding: 16px;
  }

  .forced-password-panel {
    padding: 24px;
  }

  .account-users-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-users-summary > div:nth-child(2) {
    border-right: 0;
  }

  .account-users-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e8edf3;
  }

  .managed-user-form {
    grid-template-columns: 1fr;
  }

  .managed-user-form .wide {
    grid-column: auto;
  }
}
