:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-soft: #f8f7f3;
  --ink: #242321;
  --muted: #6d6a62;
  --line: #ded8cb;
  --teal: #b8913f;
  --teal-strong: #7a5a16;
  --teal-soft: #f3ead6;
  --rose: #af6a78;
  --rose-soft: #f7e8ea;
  --gold: #c7a24a;
  --gold-strong: #7a5a16;
  --gold-soft: #f3ead6;
  --charcoal: #343333;
  --charcoal-soft: #eeece7;
  --danger: #b64242;
  --danger-soft: #fae7e7;
  --success: #277a4b;
  --success-soft: #e7f5eb;
  --warning: #9a6a13;
  --shadow: 0 20px 60px rgba(52, 51, 51, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.is-authenticated .auth-screen,
.app-shell.is-auth-hidden {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(52, 51, 51, 0.08), rgba(199, 162, 74, 0.16)),
    var(--bg);
}

.auth-card {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compact-brand {
  padding: 0 0 18px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-card input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-soft);
  color: var(--ink);
}

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

.password-field input {
  width: 100%;
  padding-right: 102px;
}

.password-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 86px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 850;
}

.password-toggle:hover {
  background: var(--gold-soft);
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-note.is-error {
  color: var(--danger);
  font-weight: 800;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  background: #f8f7f3;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: linear-gradient(145deg, var(--charcoal), var(--gold));
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  letter-spacing: 0;
}

.brand-logo {
  overflow: hidden;
  border: 1px solid #d8bd73;
  background: #050505;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.brand strong,
.brand span,
.profile-button span {
  display: block;
}

.brand span,
.profile-button small,
.clinic-status small,
.eyebrow {
  color: var(--muted);
}

.brand span {
  margin-top: 3px;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #42504c;
  text-align: left;
  font-weight: 650;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--gold-soft);
  border-color: #e4cf91;
  color: var(--gold-strong);
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: white;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.clinic-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px var(--success-soft);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search,
.branch-picker {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search input {
  width: min(28vw, 320px);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.branch-picker select {
  max-width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
}

.icon-button,
.profile-button,
.ghost-button,
.primary-button,
.danger-button,
.chip,
.segmented-control button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold-strong);
}

.dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}

.profile-button {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  text-align: left;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 12px;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-grid.small {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 126px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.metric-card:nth-child(1),
.admin-list article:nth-child(6n + 1),
.patient-card:nth-child(6n + 1),
.invoice-card:nth-child(6n + 1),
.record-item:nth-child(6n + 1),
.service-card:nth-child(6n + 1) {
  background: #fbf7ea;
}

.metric-card:nth-child(2),
.admin-list article:nth-child(6n + 2),
.patient-card:nth-child(6n + 2),
.invoice-card:nth-child(6n + 2),
.record-item:nth-child(6n + 2),
.service-card:nth-child(6n + 2) {
  background: #eef4f0;
}

.metric-card:nth-child(3),
.admin-list article:nth-child(6n + 3),
.patient-card:nth-child(6n + 3),
.invoice-card:nth-child(6n + 3),
.record-item:nth-child(6n + 3),
.service-card:nth-child(6n + 3) {
  background: #f6eef1;
}

.metric-card:nth-child(4),
.admin-list article:nth-child(6n + 4),
.patient-card:nth-child(6n + 4),
.invoice-card:nth-child(6n + 4),
.record-item:nth-child(6n + 4),
.service-card:nth-child(6n + 4) {
  background: #eef2f7;
}

.metric-card:nth-child(5),
.admin-list article:nth-child(6n + 5),
.patient-card:nth-child(6n + 5),
.invoice-card:nth-child(6n + 5),
.record-item:nth-child(6n + 5),
.service-card:nth-child(6n + 5) {
  background: #f4f1fb;
}

.metric-card:nth-child(6),
.admin-list article:nth-child(6n),
.patient-card:nth-child(6n),
.invoice-card:nth-child(6n),
.record-item:nth-child(6n),
.service-card:nth-child(6n) {
  background: #f8f4ee;
}

.metric-card .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 9px 0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0;
}

.metric-trend {
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.metric-trend.down {
  color: var(--danger);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

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

.admin-overview {
  grid-column: 1 / -1;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.revenue-panel,
.appointment-panel {
  grid-column: span 1;
}

.chart-wrap {
  height: 280px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segmented-control button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.segmented-control .is-selected {
  background: var(--surface);
  color: var(--gold-strong);
  box-shadow: 0 4px 14px rgba(122, 90, 22, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.warning {
  background: var(--gold-soft);
  color: var(--warning);
}

.badge.info {
  background: var(--charcoal-soft);
  color: var(--charcoal);
}

.alert-list,
.bar-list,
.patient-list,
.invoice-list,
.commission-list,
.finance-stack,
.record-timeline,
.service-grid,
.report-grid,
.schedule-board,
.admin-list,
.admin-summary,
.quick-actions {
  display: grid;
  gap: 10px;
}

.admin-summary {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.admin-summary div,
.admin-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-summary strong,
.admin-summary span,
.admin-list strong,
.admin-list span {
  display: block;
}

.admin-summary strong {
  font-size: 24px;
}

.admin-summary span,
.admin-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.admin-list {
  margin-top: 14px;
  max-height: 280px;
  overflow: auto;
}

.admin-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-form .full-field {
  grid-column: 1 / -1;
}

.form-grid .full-field {
  grid-column: 1 / -1;
}

.compact-form .primary-button {
  align-self: end;
}

.quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alert-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.alert-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 900;
}

.alert-item p,
.patient-card p,
.service-card p,
.report-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.table-scroll {
  overflow: auto;
}

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

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ghost-button,
.primary-button,
.danger-button {
  min-height: 38px;
  padding: 0 13px;
}

.primary-button {
  border-color: var(--gold);
  background: linear-gradient(180deg, #cfad57, var(--gold));
  color: white;
}

.danger-button {
  min-height: 30px;
  padding: 0 10px;
  border-color: #efcaca;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 850;
}

.primary-button.full {
  width: 100%;
}

.ghost-button:hover,
.chip:hover {
  border-color: #d8bd73;
  background: var(--gold-soft);
}

.bar-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar-track {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ecf1ef;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #e1c16a);
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.rme-brand-banner {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #d8bd73;
  border-radius: 8px;
  background: #050505;
  box-shadow: var(--shadow);
}

.rme-brand-banner img {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  object-position: center;
}

.rme-layout {
  grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1.22fr);
}

.module-grid.single-panel {
  grid-template-columns: minmax(0, 1fr);
}

.rme-side-panel {
  min-height: 420px;
}

.rme-input-panel textarea {
  min-height: 132px;
}

.is-hidden {
  display: none !important;
}

body.is-central-mode .operational-only {
  display: none !important;
}

.choice-list,
.selected-prescription-list {
  display: grid;
  gap: 8px;
}

#record-treatment-select {
  max-height: 236px;
  overflow-y: auto;
  padding-right: 4px;
}

.choice-item,
.selected-prescription-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 850;
}

.selected-prescription-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.compact-choice {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
}

.rme-tabs {
  margin-bottom: 12px;
}

.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.inline-filter select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 850;
}

.inline-filter input,
.dashboard-filter select,
.dashboard-filter input,
.panel-actions input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 850;
}

.dashboard-filter,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.align-end {
  align-self: end;
}

.selected-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.selected-chip {
  min-height: 30px;
  border: 1px solid #d8bd73;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-strong);
  padding: 0 10px;
  font-weight: 850;
  cursor: pointer;
}

.selected-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d8bd73;
  border-radius: 999px;
  background: var(--gold-soft);
  padding: 2px 6px 2px 10px;
}

.chip-name {
  font-size: 13px;
  font-weight: 850;
  color: var(--gold-strong);
}

.chip-qty-input {
  width: 3rem;
  border: 1px solid #d8bd73;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  text-align: center;
  padding: 1px 4px;
  color: var(--gold-strong);
}

.chip-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--gold-strong);
  padding: 0 2px;
  opacity: 0.7;
}

.chip-remove-btn:hover {
  opacity: 1;
}

.package-fields-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
}

.package-session-box {
  background: #fffbe6;
  border: 1px solid #d8bd73;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.package-session-info {
  font-size: 14px;
}

.package-session-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.package-session-done {
  color: #888;
  font-size: 13px;
}

.package-session-badge {
  background: #fffbe6;
  border: 1px solid #d8bd73;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #8a6d0b;
  margin-bottom: 6px;
  display: inline-block;
}

.package-paid-label {
  color: #8a6d0b;
  font-style: italic;
}

.package-paid-row strong {
  font-style: italic;
}

.prescription-picker {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 0.8fr) 88px auto;
  gap: 10px;
  align-items: end;
}

.compact-patient-list {
  margin-bottom: 14px;
}

.mini-history {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.mini-history p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.wide-panel {
  min-height: 560px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
}

.chip.is-active {
  border-color: #d8bd73;
  background: var(--gold-soft);
  color: var(--gold-strong);
}

.fu-calendar {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.fu-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

.fu-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted, #888);
  margin-bottom: 4px;
}

.fu-cal-weekday {
  padding: 2px 0;
}

.fu-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.fu-cal-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.fu-cal-day:not(.empty):hover {
  background: var(--gold-soft, #fdf6e3);
}

.fu-cal-day.empty {
  cursor: default;
}

.fu-cal-day.is-today {
  font-weight: 700;
  color: var(--gold-strong, #b8860b);
}

.fu-cal-day.is-selected {
  background: var(--gold-strong, #b8860b);
  color: #fff;
}

.fu-cal-day.is-selected:hover {
  background: var(--gold-strong, #b8860b);
}

.fu-cal-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d8bd73;
  pointer-events: none;
}

.fu-cal-day.is-selected .fu-cal-dot {
  background: #fff;
}

.fu-cal-clear {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
}

.patient-search-input {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  outline: 0;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.patient-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.patient-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.patient-card.is-selected {
  border-color: #d8bd73;
  background: #fbf7ea;
}

.patient-card button {
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.patient-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.small-action {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination-row div {
  display: flex;
  gap: 8px;
}

.pagination-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.patient-photo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--rose-soft);
  color: var(--rose);
  font-weight: 900;
}

.patient-detail {
  position: sticky;
  top: 24px;
  align-self: start;
}

.detail-section {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.detail-row,
.receipt-line,
.receipt-total,
.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.muted,
.detail-row span,
.receipt-line span,
.finance-row span {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.mini-list p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--warning);
  font-size: 12px;
  font-weight: 800;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f1;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), #d8a0a5);
}

.schedule-row {
  display: grid;
  grid-template-columns: 90px repeat(4, minmax(150px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.time-cell,
.schedule-card {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.time-cell {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.schedule-card {
  border-left: 4px solid var(--gold);
}

.schedule-card.empty {
  border-left-color: var(--line);
  background: #fbfcfc;
}

.record-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.record-date {
  color: var(--gold-strong);
  font-weight: 850;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-card {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: end start;
  padding: 12px;
  border-radius: 8px;
  color: white;
  font-weight: 850;
  background:
    linear-gradient(140deg, rgba(14, 127, 117, 0.78), rgba(176, 106, 113, 0.7)),
    radial-gradient(circle at 35% 30%, #f4c8bd 0 12%, transparent 13%),
    linear-gradient(150deg, #d9ece8, #8fc3bb);
}

.photo-card.after {
  background:
    linear-gradient(140deg, rgba(176, 106, 113, 0.75), rgba(185, 145, 75, 0.62)),
    radial-gradient(circle at 62% 36%, #f8d3ca 0 12%, transparent 13%),
    linear-gradient(150deg, #f2ddd7, #86b7ad);
}

.service-grid,
.report-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.report-card,
.invoice-card,
.commission-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.service-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.invoice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  cursor: pointer;
  align-items: start;
  font-size: 13px;
}

.invoice-card strong,
.invoice-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.invoice-card .invoice-actions {
  grid-column: 1 / -1;
}

.invoice-card.is-selected {
  border-color: #d8bd73;
  background: #fbf7ea;
}

.receipt-panel {
  align-self: start;
}

.receipt-total {
  margin: 12px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.receipt-edit-form {
  margin-top: 12px;
}

.inventory-sub-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.inventory-tab {
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.inventory-tab.is-active {
  background: var(--gold-strong, #8a6d0b);
  color: #fff;
  border-color: var(--gold-strong, #8a6d0b);
}

.inventory-category-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.inv-cat-tab {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.inv-cat-tab.is-active {
  background: var(--gold-soft, #fffbe6);
  border-color: #d8bd73;
  color: var(--gold-strong, #8a6d0b);
}

.opname-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.opname-form-area,
.opname-history-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opname-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .opname-layout {
    grid-template-columns: 1fr;
  }
}

.inventory-layout {
  display: grid;
  gap: 16px;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.inventory-summary div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.inventory-summary strong,
.inventory-summary span {
  display: block;
}

.inventory-summary strong {
  font-size: 26px;
}

.inventory-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.finance-grid {
  grid-template-columns: 1fr 1fr;
}

.finance-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.finance-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.finance-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.finance-method-breakdown {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .finance-main-grid,
  .finance-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.finance-row {
  border-bottom: 1px solid var(--line);
}

.finance-row.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  font-size: 18px;
}

.commission-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border: 1px solid #d8bd73;
  border-radius: 8px;
  background: var(--surface);
  color: var(--gold-strong);
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 33, 31, 0.34);
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(26, 45, 40, 0.2);
}

.modal > .panel-heading {
  position: sticky;
  top: -20px;
  z-index: 2;
  margin: -20px -20px 14px;
  padding: 20px 20px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.treatment-total-box {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 900;
  padding: 12px;
}

.inventory-search {
  margin: 16px 0;
}

.pharmacy-sale-form {
  margin: 18px 0;
}

.pharmacy-sale-header {
  margin: 14px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pharmacy-sale-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.pharmacy-direct-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.pharmacy-buyer-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: end;
}

.pharmacy-cart-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.pharmacy-cart-add-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.pharmacy-cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.pharmacy-cart-row:last-child {
  border-bottom: none;
}

.cart-item-name {
  font-size: 14px;
}

.cart-item-price {
  font-size: 12px;
}

.cart-item-total {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.cart-taken-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gold-strong, #8a6d0b);
  cursor: pointer;
  white-space: nowrap;
}

.cart-taken-disabled {
  color: #c0392b;
  cursor: default;
}

.cart-stock-badge {
  font-size: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.cart-stock-info {
  font-size: 11px;
  margin-left: 6px;
}

.pharmacy-cart-empty {
  font-size: 13px;
  padding: 8px 0;
}

.pharmacy-cart-total {
  border-top: 2px solid var(--ink);
  margin-top: 8px;
  padding-top: 8px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
}

.pharmacy-pending-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pharmacy-pending-card {
  background: #fffbe6;
  border: 1px solid #d8bd73;
}

.pharmacy-inline-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 84px auto;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.pharmacy-inline-tools select,
.pharmacy-inline-tools input,
.inline-select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.pharmacy-prescription-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.pharmacy-row-actions,
.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pharmacy-bulk-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.pharmacy-row-actions .small-action,
.invoice-actions .small-action {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.cashier-prescription-price-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.cashier-prescription-price-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 74px minmax(76px, auto);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cashier-queue-card {
  grid-template-columns: 1fr auto !important;
  align-items: start;
  gap: 12px;
}

.cashier-queue-card .admin-item-actions {
  flex-direction: column;
  align-items: stretch;
}

.cashier-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cashier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cashier-item-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cashier-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.cashier-item-row .muted {
  font-size: 12px;
  text-align: right;
}

.cashier-item-row .inline-select {
  font-size: 11px;
  padding: 1px 4px;
}

.cashier-item-row .icon-button {
  min-height: 22px;
  min-width: 22px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}

.cashier-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
}

.cashier-add-row input[type="text"],
.cashier-add-row input:not([type]) {
  flex: 1;
  min-width: 120px;
  font-size: 12px;
  padding: 4px 8px;
}

.cashier-add-row input[type="number"] {
  font-size: 12px;
  padding: 4px 6px;
}

.cashier-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.cashier-item-status-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cashier-item-status-actions .small-action {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

/* Payment modal styles */
.payment-adj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.adj-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adj-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.adj-input {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.adj-input select {
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 7px 6px;
  width: auto;
  min-width: 50px;
  flex-shrink: 0;
  background: var(--surface-soft);
  font-size: 13px;
  box-shadow: none;
}

.adj-input input {
  border: none;
  border-radius: 0;
  padding: 7px 8px;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  box-shadow: none;
  background: transparent;
}

.adj-group > select {
  font-size: 13px;
  padding: 7px 8px;
}

.adj-prefix-text {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  flex-shrink: 0;
  white-space: nowrap;
}

.payment-method-compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-grid .payment-method-compact select {
  width: auto;
  min-width: 160px;
  min-height: unset;
  padding: 7px 10px;
  flex-shrink: 0;
  box-shadow: none;
}

/* Override global .form-grid input/select rules for adj-input components */
.form-grid .adj-input input {
  width: auto;
  min-width: 50px;
  min-height: unset;
  border: none;
  border-radius: 0;
  padding: 7px 8px;
  flex: 1;
  box-shadow: none;
  background: transparent;
}

.form-grid .adj-input select {
  width: auto;
  min-width: 50px;
  min-height: unset;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 7px 6px;
  flex-shrink: 0;
  box-shadow: none;
}

.form-grid .adj-input input:focus,
.form-grid .adj-input select:focus {
  border-color: transparent;
  box-shadow: none;
}

.payment-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.payment-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.payment-total-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.payment-grand-total {
  font-size: 15px;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}

.payment-method-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  cursor: pointer;
  font-size: 14px;
}

.method-option input[type="radio"] {
  width: auto;
  cursor: pointer;
}

.pending-items-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: var(--surface-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.pending-items-section .adj-label {
  margin-bottom: 4px;
}

.pending-item-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
  font-size: 13px;
  padding: 3px 0;
  line-height: 1.3;
}

.pending-item-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary, #6b4c3b);
}

.payment-method-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  cursor: pointer;
  font-size: 14px;
}

.method-option input[type="radio"] {
  width: auto;
  cursor: pointer;
}

.treatment-edit-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}

.treatment-edit-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.treatment-edit-choice span,
.treatment-edit-choice small {
  display: block;
}

.treatment-edit-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 760px) {
  .pharmacy-inline-tools,
  .pharmacy-prescription-row,
  .prescription-picker,
  .cashier-prescription-price-list > div {
    grid-template-columns: 1fr;
  }
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-grid textarea {
  min-height: 86px;
  padding-top: 10px;
  resize: vertical;
}

.form-grid select[multiple] {
  min-height: 112px;
  padding: 8px 12px;
}

.rme-form {
  grid-template-columns: 1fr;
}

.modal-actions {
  position: sticky;
  bottom: -20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 6px -20px -20px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.admin-list article:nth-child(6n + 1),
.patient-card:nth-child(6n + 1),
.invoice-card:nth-child(6n + 1),
.record-item:nth-child(6n + 1),
.service-card:nth-child(6n + 1),
.schedule-card:nth-child(6n + 1) {
  background: #fbf7ea;
}

.admin-list article:nth-child(6n + 2),
.patient-card:nth-child(6n + 2),
.invoice-card:nth-child(6n + 2),
.record-item:nth-child(6n + 2),
.service-card:nth-child(6n + 2),
.schedule-card:nth-child(6n + 2) {
  background: #eef4f0;
}

.admin-list article:nth-child(6n + 3),
.patient-card:nth-child(6n + 3),
.invoice-card:nth-child(6n + 3),
.record-item:nth-child(6n + 3),
.service-card:nth-child(6n + 3),
.schedule-card:nth-child(6n + 3) {
  background: #f6eef1;
}

.admin-list article:nth-child(6n + 4),
.patient-card:nth-child(6n + 4),
.invoice-card:nth-child(6n + 4),
.record-item:nth-child(6n + 4),
.service-card:nth-child(6n + 4),
.schedule-card:nth-child(6n + 4) {
  background: #eef2f7;
}

.admin-list article:nth-child(6n + 5),
.patient-card:nth-child(6n + 5),
.invoice-card:nth-child(6n + 5),
.record-item:nth-child(6n + 5),
.service-card:nth-child(6n + 5),
.schedule-card:nth-child(6n + 5) {
  background: #f4f1fb;
}

.admin-list article:nth-child(6n),
.patient-card:nth-child(6n),
.invoice-card:nth-child(6n),
.record-item:nth-child(6n),
.service-card:nth-child(6n),
.schedule-card:nth-child(6n) {
  background: #f8f4ee;
}

#history-record-list {
  max-height: 332px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

#history-record-list .record-item {
  min-height: 150px;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-grid,
  .module-grid,
  .finance-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .patient-detail {
    position: static;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    padding: 16px;
  }

  .topbar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search input {
    width: 100%;
  }

  .metric-grid,
  .metric-grid.small,
  .service-grid,
  .report-grid,
  .inventory-summary,
  .admin-summary,
  .compact-form,
  .registration-form,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .profile-button {
    width: 100%;
  }

  .patient-card,
  .invoice-card,
  .commission-card,
  .admin-list article {
    grid-template-columns: 1fr;
  }

  .patient-photo {
    display: none;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }
}
