@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f5f7f9;
  --surface: #ffffff;
  --navy: #102e3b;
  --navy-light: #1d4351;
  --teal: #177c72;
  --teal-dark: #10685f;
  --teal-soft: #e9f5f1;
  --ink: #18333f;
  --body: #435965;
  --muted: #778994;
  --line: #e6ecef;
  --line-strong: #d6e0e5;
  --danger: #b44444;
  --radius: 14px;
  --shadow: 0 3px 14px rgb(16 46 59 / 3%);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  line-height: 1.5;
}
body,
input,
button,
select,
textarea {
  font-family: inherit;
}
button,
input,
select,
textarea {
  font-size: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #79bcb3;
  outline-offset: 3px;
}
input,
textarea,
select {
  accent-color: var(--teal);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #60a89e;
  box-shadow: 0 0 0 3px rgb(23 124 114 / 10%);
}
input::placeholder,
textarea::placeholder {
  color: #95a2aa;
}
input[type='checkbox'],
input[type='radio'] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  flex: 0 0 auto;
}
img,
svg {
  vertical-align: middle;
}
svg {
  flex-shrink: 0;
}
button svg,
.icon,
.nav-icon svg {
  width: 18px;
  height: 18px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4,
strong {
  color: var(--ink);
}
p:last-child {
  margin-bottom: 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 232px;
  padding: 31px 16px 18px;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: #bdd0d8;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #41606c transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px 33px;
  color: #fff;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #65c1a7;
  color: var(--navy);
  flex-shrink: 0;
}
.brand-mark svg {
  width: 24px;
  height: 24px;
}
.brand-name {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.9px;
  line-height: 1.05;
}
.brand-caption {
  display: block;
  margin-top: 5px;
  color: #93acb7;
  font-size: 10px;
  letter-spacing: 1.65px;
  text-transform: uppercase;
}
.nav-label {
  margin: 10px 13px 10px;
  color: #819daa;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.nav-item {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 45px;
  margin: 4px 0;
  padding: 10px 13px;
  border-radius: 9px;
  gap: 11px;
  color: #b9ccd5;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  color: #fff;
  background: rgb(255 255 255 / 6%);
  text-decoration: none;
}
.nav-item.active {
  background: #224b55;
  color: #b4efda;
  box-shadow: inset 3px 0 #71c6ac;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  opacity: 0.85;
}
.nav-count {
  margin-left: auto;
  border-radius: 5px;
  padding: 1px 6px;
  background: rgb(255 255 255 / 8%);
  color: #b8d1db;
  font-size: 10px;
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.workspace-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 9px 3px;
  margin-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}
.sidebar > .workspace-card {
  padding: 11px 10px;
  margin: 0 0 19px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 9px;
  background: rgb(255 255 255 / 3%);
}
.workspace-card > span:not(.avatar):not(.status-dot) {
  min-width: 0;
}
.workspace-card strong {
  display: block;
  color: #d3e3e9;
  font-size: 11px;
  font-weight: 550;
}
.workspace-card small {
  display: block;
  margin-top: 3px;
  color: #88a6b3;
  font-size: 9px;
}
.workspace-card .avatar {
  width: 34px;
  height: 34px;
  background: #325363;
  color: #e0edf2;
  font-size: 11px;
}
.user-meta {
  min-width: 0;
  font-size: 11px;
  color: #8eaab7;
  line-height: 1.6;
}
.user-meta strong {
  display: block;
  font-size: 12px;
  color: #e5eef2;
  font-weight: 600;
}
.sidebar-bottom > p,
.sidebar-bottom > .small {
  color: #8eaab7;
  padding: 0 12px;
  font-size: 11px;
}
.main-shell {
  min-width: 0;
  margin-left: 232px;
}
.topbar {
  min-height: 76px;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 36px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb strong,
.breadcrumb b {
  color: #526773;
  font-weight: 550;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #f8fafb;
  border-radius: 8px;
  padding: 0 11px;
  color: #8b9aa4;
}
.search-box input {
  width: 220px;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 9px 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.search-box input:focus {
  box-shadow: none;
}
.search-box:focus-within {
  border-color: #60a89e;
  box-shadow: 0 0 0 3px rgb(23 124 114 / 8%);
}
.search-box kbd {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 10px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #71848f;
  flex-shrink: 0;
}
.icon-btn:hover {
  border-color: #b8cdc8;
  color: var(--teal);
  background: #f5faf8;
}
.mobile-menu {
  display: none;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 33px;
  padding: 7px 24px;
  border-bottom: 1px solid #e2ece9;
  background: #ecf4f1;
  color: #58756d;
  font-size: 11px;
  text-align: center;
}
.demo-banner strong {
  color: #376456;
  font-weight: 650;
}
.demo-banner svg {
  width: 13px;
  height: 13px;
}
.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 31px 36px 42px;
}
#view {
  min-width: 0;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 1.55px;
  font-weight: 700;
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.15vw, 31px);
  font-weight: 650;
  letter-spacing: -1.1px;
  line-height: 1.25;
}
.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 2px 3px rgb(23 124 114 / 10%);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: #526773;
}
.btn-secondary:hover {
  border-color: #b4cbc5;
  background: #f8fbfa;
}
.btn-ghost {
  background: transparent;
  color: var(--teal);
}
.btn-ghost:hover {
  background: var(--teal-soft);
}
.btn-danger {
  background: #fff1f0;
  border-color: #f2dbd8;
  color: var(--danger);
}
.btn-danger:hover {
  background: #fde5e3;
}
.btn-sm {
  min-height: 31px;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 6px;
  gap: 5px;
}
.btn-sm svg {
  width: 14px;
  height: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stats-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-card {
  position: relative;
  min-width: 0;
  padding: 20px 21px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 28px 10px 0;
  font-size: 12px;
  font-weight: 500;
  color: #6c818c;
}
.stat-value {
  display: block;
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  font-size: clamp(25px, 2.2vw, 32px);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-foot {
  margin: 12px 0 0;
  color: #8a9aa3;
  font-size: 10px;
  line-height: 1.5;
}
.stat-foot strong,
.stat-foot .positive {
  color: var(--teal);
  font-size: 10px;
  font-weight: 600;
}
.stat-icon {
  position: absolute;
  right: 17px;
  top: 17px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf6f3;
  color: #4c9481;
}
.stat-icon svg {
  width: 16px;
  height: 16px;
}
.stat-card:nth-child(2) .stat-icon {
  background: #edf2fb;
  color: #7892b4;
}
.stat-card:nth-child(3) .stat-icon {
  background: #fcf4e9;
  color: #ba975d;
}
.stat-card:nth-child(4) .stat-icon {
  background: #f1eff9;
  color: #9783bd;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(285px, 1fr);
  gap: 22px;
  align-items: start;
}
.dashboard-grid > * {
  min-width: 0;
}
.dashboard-grid > div:not(.panel) {
  display: grid;
  gap: 22px;
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel + .panel {
  margin-top: 22px;
}
.dashboard-grid > .panel + .panel {
  margin-top: 0;
}
.dashboard-grid > div > .panel + .panel {
  margin-top: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.panel-subtitle {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.panel-body {
  padding: 21px 22px;
}
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 22px;
  color: var(--muted);
  font-size: 11px;
  background: #fdfefe;
}
.panel-footer > .btn:only-child {
  margin-left: auto;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
}
table {
  border-collapse: collapse;
  width: 100%;
}
.data-table {
  font-size: 12px;
  text-align: left;
}
.data-table th {
  padding: 12px 19px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
  color: #82929c;
  font-size: 10px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  white-space: nowrap;
}
.data-table td {
  padding: 16px 19px;
  border-bottom: 1px solid #edf1f3;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover {
  background: #fafcfb;
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: 22px;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 22px;
}
.data-table td > .btn + .btn,
.data-table td > .icon-btn + .icon-btn {
  margin-left: 5px;
}
.data-table td > .small,
.data-table td > small,
.data-table td small small {
  display: block;
  margin-top: 3px;
}
.data-table td > small {
  font-size: 10px;
}
.data-table td:last-child {
  white-space: nowrap;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
}
.avatar {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #edf2f5;
  color: #6c8290;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.25px;
}
.avatar.teal {
  background: #e7f3ee;
  color: #488b77;
}
.avatar.blue {
  background: #eaf0fa;
  color: #728ab3;
}
.avatar.purple {
  background: #efebf8;
  color: #9783b4;
}
.avatar.amber {
  background: #fcf0e0;
  color: #b88d55;
}
.person-name {
  color: #344e5a;
  font-weight: 550;
  font-size: 12px;
}
.person .muted,
.person .small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.money {
  color: #355362;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.text-right {
  text-align: right !important;
}
.text-center {
  text-align: center !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eef2f5;
  color: #72818d;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
}
.badge[data-status='confirmed'],
.badge[data-status='approved'],
.badge[data-status='paid'],
.badge-success {
  background: #e8f5ee;
  color: #4b8c70;
}
.badge[data-status='booked'],
.badge[data-status='proposed'],
.badge[data-status='open'] {
  background: #edf2fa;
  color: #6983ac;
}
.badge[data-status='arrived'] {
  background: #f0ecf8;
  color: #8d77b1;
}
.badge[data-status='completed'] {
  background: #ebf3f0;
  color: #608577;
}
.badge[data-status='overdue'],
.badge[data-status='missed'],
.badge[data-status='declined'] {
  background: #fcefeb;
  color: #b17862;
}
.badge[data-status='cancelled'],
.badge-neutral {
  background: #f0f3f5;
  color: #88949c;
}
.badge-warning {
  background: #fff4df;
  color: #ae8841;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 19px;
}
.panel > .toolbar {
  padding: 16px 21px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #748691;
  font-size: 12px;
}
.field-inline input,
.field-inline select,
.filters > input,
.filters > select,
.toolbar > input,
.toolbar > select,
.date-control input {
  min-width: 0;
  min-height: 37px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: #546b77;
  font-size: 12px;
}
.field-inline label {
  white-space: nowrap;
}
.date-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-control strong {
  font-size: 13px;
  font-weight: 600;
}
.date-control .icon-btn {
  width: 32px;
  height: 32px;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: #eaf0f2;
  border-radius: 8px;
}
.chip,
.segmented button {
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #82919b;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.chip:hover,
.segmented button:hover {
  color: var(--teal);
}
.chip.active,
.segmented button.active {
  background: #fff;
  color: #386a63;
  box-shadow: 0 1px 4px rgb(16 46 59 / 7%);
}
.tabs {
  display: flex;
  gap: 25px;
  margin: 0 0 21px;
  padding: 0;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 1px;
  background: transparent;
  color: #7f909b;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.schedule-list {
  display: flex;
  flex-direction: column;
}
.appointment-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}
.appointment-card:last-child {
  border-bottom: 0;
}
.appointment-time {
  flex: 0 0 59px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.appointment-time .small,
.appointment-time small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  color: #91a0a9;
}
.appointment-main {
  flex: 1;
  min-width: 0;
}
.appointment-main > strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 550;
}
.appointment-main p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.appointment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 0 45px;
  color: #8496a0;
  font-size: 10px;
}
.appointment-meta span + span::before {
  content: '·';
  margin-right: 7px;
  color: #acbbc2;
}
.appointment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.time-divider {
  padding: 8px 22px;
  font-size: 10px;
  color: #789187;
  background: #f2f7f4;
  border-top: 1px solid #e6eeea;
  border-bottom: 1px solid #e6eeea;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.kanban-column {
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  background: #edf1f3;
  border: 1px solid #e6ecef;
  min-height: 280px;
}
.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 3px 15px;
  color: #657a86;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.kanban-head > span:last-child {
  display: grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  border-radius: 6px;
  color: #87969f;
  background: #fff;
  font-size: 10px;
}
.kanban-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 10px;
  color: #69808b;
  font-weight: 650;
}
.kanban-head .activity-dot {
  margin: 0;
  width: 7px;
  height: 7px;
  border: 0;
  background: #8ba6bf;
}
.kanban-head .activity-dot.approved {
  background: #91bba8;
}
.kanban-head .activity-dot.completed {
  background: #b4a8c9;
}
.kanban + .panel {
  margin-top: 23px;
}
.treatment-card {
  padding: 18px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e5ecef;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgb(16 46 59 / 2%);
}
.treatment-card:last-child {
  margin-bottom: 0;
}
.treatment-card h3 {
  margin: 13px 0 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.treatment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 14px;
  font-size: 10px;
  color: var(--muted);
}
.treatment-meta span + span:before {
  content: '·';
  margin-right: 7px;
  color: #bac5ca;
}
.treatment-card .treatment-meta {
  justify-content: space-between;
  margin-top: 0;
}
.treatment-card .treatment-meta span + span:before {
  content: none;
}
.treatment-card .person {
  margin-top: 14px;
}
.treatment-card .person .avatar {
  width: 27px;
  height: 27px;
  font-size: 9px;
}
.treatment-card .person-name {
  font-size: 11px;
}
.treatment-amount {
  margin: 19px 0 12px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.treatment-amount > span {
  margin-left: 5px;
  font-weight: 400;
  letter-spacing: 0;
}
.progress {
  height: 5px;
  background: #eef3f2;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: #76bda8;
}
.treatment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 13px;
  margin-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 260px;
  padding: 42px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #86a89b;
  background: #edf5f1;
}
.empty-icon svg {
  width: 25px;
  height: 25px;
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}
.empty-state p {
  max-width: 350px;
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.7;
}
.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.activity-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 22px;
  font-size: 11px;
  line-height: 1.6;
}
.activity-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 0;
  border-left: 1px solid #e5ede9;
}
.activity-item:last-child {
  padding-bottom: 0;
}
.activity-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #a8c9bc;
  border: 2px solid #edf6f0;
}
.activity-item strong {
  color: #5d737f;
  font-weight: 550;
}
.activity-item p {
  margin: 3px 0 0;
  color: #8c9ca5;
  font-size: 10px;
}
button.activity-item {
  align-items: center;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
button.activity-item:first-child {
  padding-top: 0;
}
button.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
button.activity-item:hover strong {
  color: var(--teal);
}
button.activity-item::before {
  display: none;
}
button.activity-item .stat-icon {
  position: static;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
}
button.activity-item .stat-icon.purple {
  background: #f0edf8;
  color: #9885b7;
}
button.activity-item .stat-icon.amber {
  background: #fcf2e2;
  color: #b99861;
}
button.activity-item > span:nth-child(2) {
  flex: 1;
}
button.activity-item strong {
  font-size: 11px;
}
button.activity-item small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #8d9ca5;
}
button.activity-item > svg {
  width: 13px;
  height: 13px;
  color: #acb9c1;
}
.mini-treatment {
  display: block;
  width: 100%;
  padding: 0 0 16px;
  margin: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.mini-treatment:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.mini-treatment strong {
  font-size: 11px;
  font-weight: 550;
  color: #5f7682;
}
.mini-treatment p {
  margin: 4px 0 11px;
  font-size: 10px;
}
.mini-treatment:hover strong {
  color: var(--teal);
}
.mini-treatment .progress {
  margin-bottom: 0;
}
.welcome-card {
  padding: 23px;
  background: #e7f1ed;
  border: 1px solid #dae9e2;
  border-radius: var(--radius);
}
.welcome-card .eyebrow {
  display: block;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #7a9d8c;
}
.welcome-card h3 {
  max-width: 240px;
  margin: 12px 0 10px;
  color: #426e5d;
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.55px;
  line-height: 1.3;
}
.welcome-card p {
  color: #7b998b;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.welcome-card .btn {
  background: rgb(255 255 255 / 65%);
  border-color: #cddfd5;
  color: #618776;
  font-size: 10px;
  min-height: 33px;
}
.bar-chart {
  display: grid;
  gap: 15px;
}
.bar-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  color: #7b8d98;
  font-size: 10px;
}
.bar-row > :last-child {
  text-align: right;
  color: #5f7783;
  font-variant-numeric: tabular-nums;
}
.bar-track {
  height: 7px;
  border-radius: 5px;
  background: #f0f4f5;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: #8bbfad;
}
.bar-chart + p {
  margin-top: 19px;
  font-size: 10px;
}
.bar-row:nth-child(2) .bar-fill {
  background: #8daac4;
}
.bar-row:nth-child(3) .bar-fill {
  background: #b3a7cf;
}
.bar-row:nth-child(4) .bar-fill {
  background: #d5bb8b;
}
.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 19px;
  font-size: 10px;
  color: #91a0a9;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #8bbfad;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 20px;
}
.detail-card {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.detail-card > h3 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
}
.detail-card p {
  margin-bottom: 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 21px;
}
.profile-heading .avatar {
  width: 43px;
  height: 43px;
  font-size: 12px;
}
.profile-heading .person-name {
  font-size: 15px;
}
.profile-heading .person .muted {
  font-size: 11px;
}
.modal-body > .detail-grid {
  margin-bottom: 19px;
}
.modal-body > h3,
.modal-body form > h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 25px 0 13px;
}
.modal-body > .note + form {
  margin-top: 23px;
}
.history-list {
  margin-bottom: 24px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.history-item > span:first-child {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1f6f4;
  color: #87a99a;
  flex-shrink: 0;
}
.history-item > div {
  flex: 1;
}
.history-item strong {
  display: block;
  color: #546e7a;
  font-size: 12px;
  font-weight: 550;
}
.history-item small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.declined-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.declined-row:last-child {
  border-bottom: 0;
}
.declined-row > div > strong {
  font-size: 12px;
  color: #5b737e;
  font-weight: 550;
}
.declined-row > div > small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.definition-list {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 13px 20px;
  margin: 0;
  font-size: 12px;
}
.definition-list dt {
  color: #8b9aa4;
}
.definition-list dd {
  color: #4b6673;
  margin: 0;
  overflow-wrap: anywhere;
}
.note {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfd;
  font-size: 12px;
  line-height: 1.7;
}
.note + .note {
  margin-top: 12px;
}
.note p {
  margin: 0;
}
.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #8a9ba5;
  font-size: 10px;
}
.note-meta strong {
  font-size: 11px;
  font-weight: 600;
}
dialog.modal {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--body);
  box-shadow: 0 24px 90px rgb(8 32 42 / 23%);
  overflow: auto;
}
dialog.modal-wide {
  width: 850px;
}
dialog::backdrop {
  background: rgb(10 31 41 / 45%);
  backdrop-filter: blur(3px);
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 25px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.modal-header p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.modal-header .icon-btn {
  width: 30px;
  height: 30px;
}
.modal-body {
  padding: 24px 25px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  background: #fcfdfd;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  color: #5b717d;
  font-size: 12px;
  font-weight: 550;
}
.form-field label {
  display: block;
}
.form-field label > input,
.form-field label > select,
.form-field label > textarea {
  display: block;
  margin-top: 7px;
  font-weight: 400;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 41px;
  padding: 10px 12px;
  border: 1px solid #dce5e9;
  border-radius: 7px;
  background: #fff;
  color: #324e5d;
  font-size: 13px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form-field textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.6;
}
.form-field input[readonly],
.form-field input:disabled,
.form-field select:disabled {
  background: #f5f7f8;
  color: #81929b;
}
.form-field:has(input[type='checkbox']) {
  flex-direction: row;
  align-items: center;
}
.form-field input[type='checkbox'] {
  width: 16px;
  min-height: 16px;
}
.form-hint {
  color: #8a9ba5;
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
}
form > .form-hint {
  margin-top: 16px;
}
.modal-body > .form-hint {
  margin-bottom: 17px;
}
.modal-body > .form-hint + form {
  margin-top: 18px;
}
.modal-body form > .btn {
  margin-top: 16px;
}
.payment-amount {
  padding: 22px 0 12px;
  font-size: 34px;
  font-weight: 650;
  color: var(--teal);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.form-error {
  color: #b0534d;
  background: #fdf0ed;
  border: 1px solid #f3ddd8;
  border-radius: 7px;
  font-size: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.form-error:empty {
  display: none;
}
.line-items {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 15px 0;
}
.line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 100px auto;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcfc;
}
.line-item input,
.line-item select {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  color: #4e6875;
}
.line-item label {
  display: block;
  margin-bottom: 5px;
  color: #83959f;
  font-size: 10px;
}
.totals {
  padding: 15px 0 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 9px 0;
  font-size: 12px;
}
.totals > .total-line {
  color: var(--ink);
  font-weight: 650;
  font-size: 17px;
  padding-top: 9px;
}
.step-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #f1f4f6;
  color: #8ca0ab;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
}
.step-number.done {
  color: #57997b;
  background: #e9f5ed;
}
.step-info {
  flex: 1;
  min-width: 0;
}
.step-info strong {
  display: block;
  color: #587380;
  font-size: 12px;
  font-weight: 550;
}
.step-info small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #96a4ad;
}
.step-item > strong {
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.step-item p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.step-item:last-child {
  border-bottom: 0;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 25px;
  left: calc(50% + 116px);
  transform: translate(-50%, 15px);
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 20px;
  border: 1px solid #27594e;
  border-radius: 10px;
  background: #204b42;
  color: #fff;
  box-shadow: 0 7px 25px rgb(15 43 35 / 20%);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.error {
  background: #904e4b;
  border-color: #7f3e3c;
}
.toast-visible,
.toast.toast-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}
.settings-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.settings-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
}
.settings-card h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 10px 0 12px;
}
.settings-card > p {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 20px;
}
.settings-card .page-actions {
  margin-top: 24px;
  justify-content: flex-start;
}
.integration-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f2f6f4;
  color: #7f9589;
  font-size: 11px;
  line-height: 1.7;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.feature-list li:last-child {
  border-bottom: 0;
}
.feature-list li .badge,
.feature-list li > .btn {
  margin-left: auto;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  background: #6daf92;
}
.status-dot.offline,
.status-dot.warning {
  background: #d1b179;
}
.mobile-only {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-overlay {
  display: none;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 36px 22px;
  color: #a2aeb5;
  font-size: 10px;
}
.skip-link {
  position: fixed;
  z-index: 200;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  background: #fff;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 8px;
}
.skip-link:focus {
  top: 16px;
}
[hidden] {
  display: none !important;
}

@media (min-width: 1600px) {
  .page {
    padding-top: 39px;
  }
  .stats-grid {
    gap: 23px;
  }
  .stat-card {
    padding: 24px;
  }
}
@media (max-width: 1199px) {
  .topbar {
    padding-left: 25px;
    padding-right: 25px;
  }
  .page {
    padding: 28px 25px 36px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px 15px;
  }
  .stat-label {
    font-size: 11px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
    gap: 17px;
  }
  .panel-header,
  .panel-body {
    padding: 18px;
  }
  .search-box input {
    width: 170px;
  }
  .kanban {
    gap: 12px;
  }
  .kanban-column {
    padding: 10px;
  }
  .treatment-card {
    padding: 14px;
  }
  .data-table th,
  .data-table td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .appointment-card {
    gap: 12px;
  }
}
@media (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-grid > div:not(.panel) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .dashboard-grid > div > .panel + .panel {
    margin-top: 0;
  }
  .page-header {
    align-items: flex-start;
  }
  .page-actions {
    flex-shrink: 1;
    justify-content: flex-end;
  }
  .page-actions .btn {
    padding-left: 11px;
    padding-right: 11px;
  }
  .kanban {
    grid-template-columns: minmax(0, 1fr);
  }
  .kanban-column {
    min-height: 0;
  }
  .kanban-column .empty-state {
    min-height: 120px;
    padding: 22px;
  }
  .detail-grid,
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .search-box input {
    width: 140px;
  }
}
@media (max-width: 767px) {
  .sidebar {
    width: 248px;
    transform: translateX(-100%);
    transition: transform 0.23s ease;
  }
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .sidebar {
    transform: translateX(0);
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgb(11 31 40 / 42%);
  }
  body.menu-open .nav-overlay {
    display: block;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    min-height: 64px;
    gap: 12px;
    padding: 13px 19px;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar > .breadcrumb {
    margin-right: auto;
  }
  .breadcrumb {
    gap: 5px;
    font-size: 11px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .topbar .search-box {
    display: none;
  }
  .demo-banner {
    padding: 7px 18px;
    font-size: 10px;
  }
  .page {
    padding: 24px 19px 34px;
  }
  .app-footer {
    padding: 0 19px 20px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .page-header {
    gap: 17px;
    margin-bottom: 21px;
    flex-direction: column;
    align-items: stretch;
  }
  .page-title {
    font-size: 27px;
  }
  .page-subtitle {
    font-size: 12px;
    line-height: 1.65;
  }
  .page-actions {
    justify-content: flex-start;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 21px;
  }
  .stat-card {
    border-radius: 11px;
    padding: 18px 16px 15px;
  }
  .stat-label {
    font-size: 11px;
    margin-right: 20px;
    margin-bottom: 11px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-foot {
    font-size: 9px;
    margin-top: 9px;
  }
  .stat-icon {
    right: 12px;
    top: 13px;
    width: 25px;
    height: 25px;
    border-radius: 7px;
  }
  .stat-icon svg {
    width: 13px;
    height: 13px;
  }
  .panel {
    border-radius: 11px;
  }
  .panel-header {
    padding: 17px;
  }
  .panel-title {
    font-size: 13px;
  }
  .panel-subtitle {
    font-size: 10px;
  }
  .panel-body {
    padding: 18px;
  }
  .panel-footer {
    padding: 11px 17px;
  }
  .data-table {
    min-width: 650px;
  }
  .data-table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .toolbar {
    align-items: stretch;
    gap: 11px;
  }
  .toolbar .search-box {
    width: 100%;
  }
  .toolbar .search-box input {
    width: 100%;
  }
  .panel > .toolbar {
    padding: 14px 16px;
  }
  .filters {
    max-width: 100%;
  }
  .filters .field-inline {
    flex-wrap: wrap;
  }
  .filters > select {
    max-width: 100%;
  }
  .segmented {
    max-width: 100%;
    overflow-x: auto;
  }
  .tabs {
    gap: 23px;
    margin-bottom: 18px;
  }
  .appointment-card {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 11px;
    padding: 17px;
  }
  .appointment-time {
    flex-basis: 49px;
    padding-top: 1px;
  }
  .appointment-main {
    flex-basis: calc(100% - 60px);
  }
  .appointment-actions {
    margin-left: 60px;
    justify-content: flex-start;
    gap: 7px;
  }
  .time-divider {
    padding-left: 17px;
    padding-right: 17px;
  }
  .detail-card,
  .settings-card {
    padding: 19px;
  }
  .definition-list {
    gap: 12px;
  }
  .toast {
    left: 50%;
    bottom: 17px;
    width: max-content;
    font-size: 12px;
  }
  .mobile-only {
    display: initial !important;
  }
  .desktop-only {
    display: none !important;
  }
  .modal-header,
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 15px 20px;
  }
  .modal-header h2 {
    font-size: 19px;
  }
  .line-item {
    grid-template-columns: minmax(0, 1fr) 55px 80px auto;
    gap: 7px;
    padding: 10px;
  }
}
@media (max-width: 479px) {
  .page {
    padding-left: 15px;
    padding-right: 15px;
  }
  .topbar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .topbar-actions .icon-btn {
    width: 31px;
    height: 31px;
  }
  .topbar-actions > .avatar {
    width: 31px;
    height: 31px;
  }
  .stat-card {
    padding: 15px 12px;
  }
  .stat-label {
    max-width: 105px;
    min-height: 31px;
    margin-bottom: 6px;
    line-height: 1.45;
  }
  .stat-icon {
    right: 10px;
    top: 12px;
  }
  .stat-value {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .stat-foot {
    min-height: 27px;
  }
  .dashboard-grid > div:not(.panel) {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel-header {
    gap: 8px;
  }
  .panel-header .btn-sm {
    padding: 5px 8px;
    font-size: 10px;
  }
  .bar-row {
    grid-template-columns: 80px minmax(0, 1fr) 29px;
    gap: 9px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .form-field.full {
    grid-column: auto;
  }
  .modal-header,
  .modal-body {
    padding: 18px;
  }
  .modal-footer {
    padding: 15px 18px;
    flex-wrap: wrap;
  }
  .line-item {
    grid-template-columns: minmax(0, 1fr) 75px 32px;
  }
  .line-item > :first-child {
    grid-column: 1 / -1;
  }
  .stats-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-grid.three .stat-label {
    max-width: none;
    min-height: 0;
  }
  .stats-grid.three .stat-foot {
    min-height: 0;
  }
  .step-item {
    flex-wrap: wrap;
  }
  .step-info {
    flex-basis: calc(100% - 42px);
  }
  .step-item > .btn {
    margin-left: 41px;
  }
  .profile-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .history-item {
    flex-wrap: wrap;
  }
  .history-item > div {
    flex-basis: calc(100% - 44px);
  }
  .history-item > .badge {
    margin-left: 44px;
  }
  .modal-footer .btn {
    flex: 1;
  }
  .note-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .topbar,
  .demo-banner,
  .page-actions,
  .toast,
  .nav-overlay {
    display: none !important;
  }
  .main-shell {
    margin: 0;
  }
  .page {
    max-width: none;
    padding: 0;
  }
  .panel,
  .stat-card,
  .detail-card {
    box-shadow: none;
    break-inside: avoid;
  }
  .table-wrap {
    overflow: visible;
  }
  .data-table {
    min-width: 0;
  }
  .btn {
    display: none;
  }
}
