:root {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #293f3c;
  background: #f5f6f3;
  font-synthesis: none;
  font-weight: 400;
  --bg: #f5f6f3;
  --surface: #fff;
  --text: #293f3c;
  --muted: #8a938f;
  --line: #e5e8e2;
  --accent: #e77c61;
  --hover: #edf0e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #334e86;
  outline-offset: 4px;
}
input:focus,
select:focus {
  outline: 2px solid #e77c6170;
  border-color: var(--accent);
}
button {
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
svg {
  flex-shrink: 0;
}
button h3 {
  pointer-events: none;
}
button p {
  pointer-events: none;
}
button:active {
  transform: translateY(1px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  bottom: 0;
  width: 78px;
  background: #fcfcfa;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
}
.logo-button {
  background: none;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-size: 28px;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  letter-spacing: -1.5px;
}
.brand-word {
  font-weight: 800;
}
.brand-dot {
  color: var(--accent);
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 3px;
  transform: skewY(-5deg);
}
.brand-mark i {
  background: var(--accent);
}
.brand-small .brand-mark {
  grid-template-columns: repeat(2, 11px);
  grid-template-rows: repeat(2, 11px);
  gap: 3px;
}
.header-brand > .brand > .brand-mark {
  display: none;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 29px;
}
.side-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #909b94;
  background: none;
  border-radius: 5px;
}
.side-button.active {
  color: var(--accent);
  background: #f9e9e1;
}
.side-button.active:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 3px;
  background: var(--accent);
  left: -17px;
  top: 11px;
}
.side-button:hover {
  background: var(--hover);
  color: var(--text);
}
.side-tooltip {
  position: absolute;
  left: 53px;
  background: var(--text);
  color: white;
  padding: 8px 13px;
  white-space: nowrap;
  font-size: 12px;
  display: none;
  border-radius: 4px;
}
.side-button:hover .side-tooltip {
  display: block;
}
.side-bottom {
  margin-top: auto;
  padding-bottom: 27px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}
.side-divider {
  height: 1px;
  width: 26px;
  background: var(--line);
  margin: 6px 0 9px;
}
.small-avatar {
  height: 32px;
  width: 32px;
  background: #ecdec9;
  border: 3px solid white;
  border-radius: 50%;
  font-size: 13px;
  color: #72624d;
}
.main-shell {
  margin-left: 78px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 86px;
  padding: 0 45px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}
.header-brand,
.topbar-right {
  display: flex;
  align-items: center;
}
.header-brand {
  gap: 20px;
}
.workspace-tag {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #87938c;
  padding: 6px 9px;
  border: 1px solid #dce2d9;
  border-radius: 3px;
  font-weight: 600;
}
.topbar-right {
  gap: 23px;
}
.system-online {
  font-size: 11px;
  color: #7c8880;
  display: flex;
  align-items: center;
  gap: 7px;
}
.system-online i,
.footer > span > i {
  height: 6px;
  width: 6px;
  background: #7ea68b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #7ea68b12;
}
.header-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}
.icon-button {
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #7b8980;
}
.icon-button:hover {
  background: var(--hover);
  color: var(--text);
}
.notification-button {
  position: relative;
}
.notification-button.unread:after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  position: absolute;
  right: 7px;
  top: 5px;
  box-sizing: content-box;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  text-align: right;
}
.profile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-text strong {
  font-size: 12px;
  font-weight: 600;
}
.profile-text small {
  font-size: 10px;
  color: var(--muted);
}
.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: 36px;
  width: 36px;
  background: #dfcfb7;
  color: #5d6959;
  font-family: Manrope;
  font-weight: 700;
  font-size: 17px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #dfdfd6;
}
.profile-avatar span {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #6f927a;
}
.content {
  padding: 0 45px;
  max-width: 1660px;
  margin: 0 auto;
}
.workspace-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 69px;
  border-bottom: 1px solid var(--line);
  padding: 0 45px;
}
.workspace-nav nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 31px;
}
.workspace-nav nav button,
.workspace-nav nav a {
  background: none;
  font-size: 12px;
  color: #8b938e;
  position: relative;
  padding: 0 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.workspace-nav nav button.selected,
.workspace-nav nav a.selected {
  color: var(--text);
  font-weight: 600;
}
.workspace-nav nav button.selected:after,
.workspace-nav nav a.selected:after {
  position: absolute;
  content: "";
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.search-trigger {
  background: var(--surface);
  border: 1px solid var(--line);
  height: 34px;
  width: 284px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border-radius: 4px;
  color: #98a099;
  font-size: 10px;
  text-align: left;
}
.search-trigger kbd {
  margin-left: auto;
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 9px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 31px 0 33px;
  gap: 20px;
}
.heading-title {
  display: flex;
  gap: 15px;
  align-items: center;
}
.heading-title h1 {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -1.9px;
  line-height: 1.2;
}
.sun-greeting {
  color: #c9b086;
  display: flex;
  padding-top: 8px;
}
.page-heading p {
  color: #8a938c;
  font-size: 11px;
  margin-top: 12px;
  letter-spacing: 0.1px;
}
.heading-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;
  padding-top: 10px;
}
.heading-date > span {
  font-size: 10px;
  color: #7b867e;
  display: flex;
  gap: 8px;
  align-items: center;
}
.heading-date button {
  background: none;
  font-size: 10px;
  color: #8b938a;
  display: flex;
  gap: 7px;
  align-items: center;
}
.heading-date button:hover {
  color: var(--accent);
}
.tile-groups {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.92fr;
  gap: 25px;
}
.tile-group > h2 {
  font-weight: 500;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  color: #69786e;
}
.tile-group > h2 > span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #a5aca3;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 178px 127px 82px;
  gap: 11px;
}
.tile {
  position: relative;
  min-width: 0;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none !important;
}
.tile,
.tile:hover,
.tile:focus,
.tile:visited,
.tile:active,
.tile * {
  text-decoration: none !important;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px #293f3c15;
  filter: brightness(1.025);
}
.tile:active {
  transform: scale(0.985);
}
.tile h3 {
  font-size: 16px;
  letter-spacing: -0.4px;
  font-weight: 500;
}
.tile p {
  font-size: 10px;
  opacity: 0.72;
  margin-top: 5px;
}
.tile-wide {
  grid-column: span 2;
}
.coral {
  background: #e98368;
  color: #fff;
}
.teal {
  background: #76a99c;
  color: #fff;
}
.peach {
  background: #eab38f;
  color: #714b34;
}
.deep-teal {
  background: #456d64;
  color: #fff;
}
.blue-tile {
  background: #86a8bd;
  color: #fff;
}
.yellow-tile {
  background: #e7cd8c;
  color: #6e633e;
}
.lavender {
  background: #aba7bf;
  color: #fff;
}
.sand {
  background: #e9e3d7;
  color: #786e5c;
}
.gray-tile {
  background: #e5e8e1;
  color: #657363;
}
.tile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.tile-topline > span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.5px;
  opacity: 0.85;
}
.new-claim-tile {
  padding: 17px 20px;
}
.new-claim-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  flex: 1;
}
.new-claim-content h3 {
  font-size: 23px;
  font-family: Manrope;
  letter-spacing: -0.8px;
  margin-top: 9px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.new-claim-content p {
  font-size: 9px;
  margin-top: 7px;
  position: relative;
  z-index: 1;
}
.tile-feature-icon {
  height: 31px;
  width: 31px;
  border: 1px solid #ffffff70;
  display: flex;
  align-items: center;
  justify-content: center;
}
.claim-art {
  width: 82px;
  height: 105px;
  position: absolute;
  right: 32px;
  bottom: 19px;
  transform: rotate(9deg);
  opacity: 0.75;
}
.paper-back {
  position: absolute;
  inset: 4px -9px 4px 10px;
  border: 1px solid #ffffff80;
  transform: rotate(10deg);
  background: #ffffff08;
}
.paper-front {
  position: absolute;
  inset: 0;
  border: 1px solid #ffffffbb;
  background: #ffffff12;
  padding: 12px;
}
.paper-cross {
  display: block;
  font-size: 24px;
  font-weight: 300;
  line-height: 23px;
}
.paper-front > i {
  display: block;
  height: 2px;
  background: #ffffff70;
  margin-top: 9px;
  width: 80%;
}
.paper-front > i:nth-of-type(2) {
  width: 100%;
}
.paper-check {
  position: absolute;
  bottom: -8px;
  right: -10px;
  display: grid;
  place-items: center;
  background: #e8ab8e;
  border: 1px solid #ffe1ce;
  width: 31px;
  height: 31px;
  border-radius: 50%;
}
.tile-icon-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1;
}
.tile-count {
  font-family: Manrope;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}
.tile-count small {
  font: 9px "DM Sans";
  display: block;
  opacity: 0.7;
  margin-top: 4px;
}
.tile-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.tile-label > svg {
  opacity: 0.7;
}
.number-badge {
  background: #fff3df80;
  padding: 5px 9px;
  min-width: 26px;
  text-align: center;
  font-size: 12px;
  border-radius: 3px;
  font-family: Manrope;
}
.horizontal-tile {
  flex-direction: row;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}
.horizontal-tile > .horizontal-icon {
  display: flex;
}
.horizontal-tile > span:nth-child(2) {
  min-width: 0;
}
.horizontal-tile > svg:last-child {
  margin-left: auto;
  opacity: 0.8;
}
.horizontal-tile h3 {
  font-size: 15px;
}
.horizontal-tile p {
  font-size: 9px;
  white-space: nowrap;
}
.summary-tile {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  padding: 17px 20px 13px;
}
.summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.summary-heading h3 {
  font-size: 11px;
  letter-spacing: 0;
}
.summary-heading > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: var(--muted);
}
.summary-value {
  font-size: 25px;
  line-height: 1.2;
  font-family: Manrope;
  letter-spacing: -1px;
  font-weight: 500;
  margin-top: 9px;
}
.summary-value > span {
  display: block;
  font-family: "DM Sans";
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 4px;
}
.chart-wrap {
  margin-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mini-bars {
  height: 38px;
  display: flex;
  gap: 7px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.mini-bars i {
  flex: 1;
  background: #d7e4dc;
  border-radius: 2px 2px 0 0;
  min-height: 5px;
}
.mini-bars i:nth-child(3n) {
  background: #c2d9cf;
}
.mini-bars i:nth-child(10),
.mini-bars i:nth-child(11),
.mini-bars i:last-child {
  background: #e5947b;
}
.chart-caption {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: #8b968c;
  padding-top: 6px;
}
.chart-caption > span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chart-caption i {
  background: #e5947b;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.inspiration-tile {
  padding: 17px 18px;
}
.inspiration-tile > img,
.inspiration-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inspiration-tile > img {
  object-position: 50% 48%;
}
.inspiration-overlay {
  background: linear-gradient(180deg, #172e3b15, #12282c22 28%, #0c2a2bbd);
}
.inspiration-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 7px;
  letter-spacing: 1.2px;
  position: relative;
  opacity: 0.9;
}
.inspiration-bottom {
  position: relative;
  margin-top: auto;
}
.inspiration-bottom h3 {
  font-family: Manrope;
  line-height: 1.5;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.5px;
}
.inspiration-bottom > span {
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  opacity: 0.8;
}
.agenda-tile {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  padding: 17px 18px;
}
.agenda-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8a968a;
}
.agenda-top > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.agenda-content {
  display: flex;
  align-items: center;
  margin-top: auto;
  gap: 16px;
}
.agenda-date {
  font-size: 34px;
  line-height: 0.95;
  font-family: Manrope;
  letter-spacing: -1px;
  font-weight: 400;
  color: #4b6357;
}
.agenda-date small {
  display: block;
  font: 8px "DM Sans";
  letter-spacing: 1px;
  text-align: center;
  margin-top: 7px;
  color: #959f91;
}
.agenda-event {
  border-left: 1px solid var(--line);
  padding: 3px 0 3px 14px;
  min-width: 0;
}
.agenda-event strong {
  font-size: 10px;
  display: block;
  line-height: 1.5;
  font-weight: 500;
  max-width: 160px;
}
.agenda-event small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 9px;
  color: #909a8e;
}
.agenda-event small i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.utility-tile {
  padding: 14px 17px;
  gap: 8px;
  justify-content: center;
}
.utility-tile h3 {
  font-size: 11px;
  letter-spacing: 0;
}
.recent-section {
  margin-top: 32px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.subtle-pill {
  font-size: 7px;
  letter-spacing: 1px;
  color: #91a088;
  padding: 3px 5px;
  background: #e8ede3;
  border-radius: 3px;
  font-weight: 500;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: none;
  font-size: 10px;
  color: #708577;
  padding: 0;
}
.text-button:hover {
  color: var(--accent);
}
.table-scroll {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: auto;
}
table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  font-size: 9px;
  font-weight: 500;
  color: #8c968b;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  background: #fcfcfa;
}
td {
  padding: 12px 17px;
  border-bottom: 1px solid #eef0eb;
  font-size: 10px;
  color: #7d887c;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
tbody tr:hover {
  background: #fafaf7;
}
.patient-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.patient-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  width: 31px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
}
.avatar-0 {
  background: #e9ede2;
  color: #7c8d70;
}
.avatar-1 {
  background: #f2e5db;
  color: #b8967c;
}
.avatar-2 {
  background: #e4e9ef;
  color: #8197ac;
}
.avatar-3 {
  background: #eee7ed;
  color: #ab8eaa;
}
.patient-cell strong {
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
  display: block;
}
.patient-cell small {
  font-size: 8px;
  color: #9aa294;
  display: block;
  margin-top: 4px;
  letter-spacing: 0.25px;
}
.service-type {
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-type svg {
  color: #94a08d;
}
.amount-cell {
  font-weight: 500;
  color: #586c59;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 4px;
}
.status > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.orange {
  background: #faf0df;
  color: #bd9454;
}
.blue {
  background: #eaf1f6;
  color: #7e9ab0;
}
.green {
  background: #e9f1e7;
  color: #759468;
}
.yellow {
  background: #f8eedb;
  color: #b29a58;
}
.neutral {
  background: #edf0eb;
  color: #889282;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 23px;
  color: #a1a89b;
  font-size: 8px;
  gap: 12px;
}
.footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-divider {
  margin: 0 4px;
  color: #c2c8bc;
}
.footer .brand-small .brand-mark {
  grid-template-columns: repeat(2, 4px);
  grid-template-rows: repeat(2, 4px);
  gap: 1px;
  transform: none;
}
.footer .brand-mark i {
  background: #a9b5a0;
}
.footer > span > i {
  width: 4px;
  height: 4px;
  box-shadow: none;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #142b2a62;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  animation: fade-in 0.16s ease;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  width: 490px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 90px #182c2829;
  animation: modal-in 0.2s ease;
}
.modal-wide {
  width: 660px;
}
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 10px;
}
.modal-heading h2 {
  font-size: 23px;
  font-family: Manrope;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.modal-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.modal-heading > .icon-button {
  margin: -4px -5px 0 0;
  flex-shrink: 0;
}
.modal label,
.agenda-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
}
.modal input,
.modal select,
.agenda-form input,
.data-toolbar input,
.data-toolbar select {
  border: 1px solid var(--line);
  background: var(--bg);
  height: 42px;
  padding: 0 12px;
  border-radius: 4px;
  color: var(--text);
  width: 100%;
  font-size: 12px;
  min-width: 0;
}
input::placeholder {
  color: #a2aaa0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full-width {
  grid-column: 1/-1;
}
.form-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #eff3ed;
  color: #7a8b71;
  border: 1px solid #e4ecdf;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 22px;
  font-size: 10px;
  line-height: 1.7;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.primary-button,
.secondary-button {
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
}
.primary-button {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-weight: 500;
}
.primary-button:hover {
  background: #d56e55;
  box-shadow: 0 3px 10px #e9836820;
}
.secondary-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: #71806c;
}
.secondary-button:hover {
  background: var(--hover);
}
.toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 39px);
  transform: translateX(-50%);
  z-index: 200;
  background: #304e46;
  color: white;
  padding: 14px 18px;
  box-shadow: 0 6px 30px #142c2d22;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 40px);
  font-size: 12px;
  animation: fade-in 0.2s ease;
}
.toast > svg {
  color: #b4d3a7;
}
.toast button {
  background: none;
  color: #c4d5cb;
  display: flex;
}
.muted {
  font-size: 11px;
  color: var(--muted);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  margin-bottom: 20px;
}
.stat-card > span:nth-child(2) {
  font-size: 12px;
  color: var(--muted);
}
.stat-card > strong {
  font: 500 28px Manrope;
  letter-spacing: -1px;
  margin-top: 8px;
  white-space: nowrap;
}
.stat-card > small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 10px;
}
.dashboard-panels {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
  margin-top: 23px;
}

/* ── Status card section ───────────────────────────────────────── */
.status-card-section {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px 24px;
}
.status-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.status-card-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
.status-card-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.service-badges {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.service-badge.inap {
  background: #e8f1ee;
  color: #3a7a63;
}
.service-badge.jalan {
  background: #e8edf5;
  color: #3a5f8a;
}
.status-card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.status-tile {
  position: relative;
  border-radius: 8px;
  padding: 16px 15px 14px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
}
.status-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.status-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.status-tile-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.35);
}
.status-tile-pct {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.75;
}
.status-tile-count {
  font: 600 26px Manrope;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}
.status-tile-label {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
  display: block;
  margin-bottom: 12px;
}
.status-tile-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.1);
}
.status-tile-fill {
  height: 100%;
  background: rgba(255,255,255,0.55);
  transition: width 0.6s ease;
  min-width: 2px;
}
/* Tile color themes */
.neutral-tile {
  background: #f0f2f1;
  color: #4a5552;
  border-color: #e2e6e4;
}
.neutral-tile .status-tile-icon { background: rgba(0,0,0,0.06); }
.neutral-tile .status-tile-fill { background: rgba(0,0,0,0.15); }
.orange-tile {
  background: linear-gradient(135deg, #f0944d 0%, #e6773d 100%);
  color: #fff;
}
.blue-tile {
  background: linear-gradient(135deg, #4f90c0 0%, #3e78a8 100%);
  color: #fff;
}
.yellow-tile {
  background: linear-gradient(135deg, #d4a82a 0%, #c49520 100%);
  color: #fff;
}
.green-tile {
  background: linear-gradient(135deg, #4a9b72 0%, #3a8561 100%);
  color: #fff;
}
.summary-tile {
  background: var(--bg);
  border-color: var(--line);
  color: var(--fg);
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.summary-tile:hover {
  transform: none;
  box-shadow: none;
}
.summary-tile .status-tile-count {
  font-size: 13px;
  letter-spacing: -0.2px;
  color: var(--fg);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
  margin-bottom: 4px;
}
.status-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent, #4a9b72);
  text-decoration: none;
  margin-top: auto;
}
.status-tile-link:hover { text-decoration: underline; }
.panel {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
}
.panel h2 {
  font-size: 15px;
  font-weight: 500;
}
.status-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 26px;
}
.status-bars > button {
  display: flex;
  align-items: center;
  gap: 15px;
  background: none;
  padding: 0;
  text-align: left;
}
.status-bars > button > span:first-child {
  width: 100px;
  font-size: 11px;
}
.bar-track {
  background: var(--bg);
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  height: 8px;
}
.bar-track > i {
  display: block;
  height: 100%;
  min-width: 0;
  background: currentColor;
}
.status-bars strong {
  width: 22px;
  font-size: 12px;
  text-align: right;
  font-weight: 500;
}
.service-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 15px;
}
.service-summary > svg {
  color: #82a294;
}
.service-summary > div {
  display: flex;
  flex-direction: column;
}
.service-summary strong {
  font: 400 36px Manrope;
}
.service-summary span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.service-panel > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 25px 0 18px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 25px;
  text-align: left;
}
.app-card:hover,
.patient-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #273f3310;
}
.app-icon {
  display: grid;
  place-items: center;
  height: 65px;
  width: 65px;
  border-radius: 3px;
  margin-bottom: 23px;
}
.app-card h3 {
  font-size: 15px;
  font-weight: 500;
}
.app-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.8;
}
.app-card > svg {
  position: absolute;
  top: 25px;
  right: 20px;
  color: #a5b09e;
}
.data-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.input-with-icon {
  position: relative;
  min-width: 200px;
  max-width: 380px;
  flex: 1;
}
.input-with-icon > svg {
  position: absolute;
  top: 13px;
  left: 12px;
  color: var(--muted);
}
.data-toolbar .input-with-icon input {
  padding-left: 38px;
  background: var(--surface);
}
.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.data-toolbar select {
  width: auto;
  background: var(--surface);
  font-size: 11px;
}
.table-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #8e9b84;
}
.empty-state > svg {
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.empty-state p {
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}
.report-banner {
  padding: 25px;
  background: #e7eee6;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 25px;
  border-radius: 5px;
  color: #58745c;
}
.report-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #fff8;
  border-radius: 5px;
}
.report-banner h2 {
  font: 500 18px Manrope;
  letter-spacing: -0.5px;
}
.report-banner p {
  font-size: 11px;
  margin-top: 9px;
  color: #879580;
}
.report-banner > span:last-child {
  margin-left: auto;
  font: 500 24px Manrope;
  letter-spacing: -0.6px;
  text-align: right;
  white-space: nowrap;
}
.report-banner small {
  font: 10px "DM Sans";
  letter-spacing: 0;
  display: block;
  margin-top: 8px;
  color: #879580;
}
.patients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.patient-card {
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: left;
}
.patient-card > .patient-avatar {
  height: 47px;
  width: 47px;
  font-size: 16px;
  margin-bottom: 17px;
}
.patient-card h3 {
  font-size: 16px;
  font-weight: 500;
}
.patient-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.patient-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 23px;
  font-size: 10px;
  color: #8b9a83;
}
.calendar-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 23px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 23px;
  gap: 5px;
}
.weekday {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 10px;
}
.calendar-day {
  height: 86px;
  background: var(--bg);
  padding: 8px;
  border-radius: 4px;
  font-size: 11px;
  overflow: auto;
}
.calendar-day strong {
  font-weight: 500;
}
.calendar-day.today {
  outline: 1px solid var(--accent);
  background: #e9836810;
}
.calendar-day.today strong {
  color: var(--accent);
}
.calendar-day > span {
  display: block;
  color: #658472;
  background: #e2ece2;
  margin-top: 6px;
  padding: 4px;
  font-size: 8px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  border-radius: 2px;
}
.agenda-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 25px;
}
.agenda-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.agenda-list > div {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.agenda-list strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.agenda-list small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.detail-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg);
  border-radius: 5px;
}
.detail-banner > .patient-avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
}
.detail-banner h3 {
  font-size: 16px;
  font-weight: 500;
}
.detail-banner p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.detail-banner > .status {
  margin-left: auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 25px 0;
}
.detail-grid dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-grid dd {
  margin: 0;
  font-size: 13px;
}
.detail-total {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-total dd {
  font: 500 23px Manrope;
  letter-spacing: -0.7px;
}
.demo-disclaimer {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.7;
}
.approved-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7c9b6b;
  font-size: 12px;
}
.revision-notice {
  background: #fff3df;
  border-color: #f0e4c8;
  color: #a58e5a;
}
.global-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 4px;
  padding: 3px 13px;
  color: var(--muted);
}
.global-search-field input {
  border: 0;
  background: none;
  height: 46px;
  padding: 0;
  font-size: 13px;
}
.global-search-field input:focus {
  outline: none;
}
.global-search-field:focus-within {
  outline: 2px solid #e77c6170;
}
.global-search-field kbd {
  font-size: 9px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.search-results {
  max-height: 450px;
  overflow-y: auto;
}
.search-results > h3 {
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 9px;
  font-weight: 500;
}
.search-results > button {
  padding: 10px 5px;
  background: none;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.search-results > button:hover {
  background: var(--bg);
}
.search-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 3px;
}
.search-results > button > span:nth-child(2) {
  min-width: 0;
}
.search-results strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.search-results small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-results > button > svg {
  margin-left: auto;
  color: var(--muted);
}
.settings-save {
  margin-top: 15px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
  padding: 23px 0;
  gap: 15px;
}
.setting-row strong,
.settings-info strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.setting-row small,
.settings-info small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.7;
}
.toggle {
  height: 23px;
  width: 42px;
  border-radius: 20px;
  background: #d8ded4;
  padding: 3px;
  display: flex;
  flex-shrink: 0;
}
.toggle i {
  height: 17px;
  width: 17px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0001;
  transition: transform 0.2s;
}
.toggle.on {
  background: #81a593;
}
.toggle.on i {
  transform: translateX(19px);
}
.settings-info {
  display: flex;
  gap: 12px;
  color: #839278;
  background: var(--bg);
  border-radius: 4px;
  padding: 15px;
}
.logout-button {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 13px 0;
  width: 100%;
  background: none;
  font-size: 12px;
  color: #bb806d;
}
.logout-button > svg:last-child {
  margin-left: auto;
}
.full-button {
  width: 100%;
  margin-top: 15px;
}
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notification-list > button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  background: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.notification-list > button > span:nth-child(2) {
  flex: 1;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.notif-item .notif-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}
.notif-item .notif-body {
  flex: 1;
  min-width: 0;
}
.notif-item .notif-body strong {
  font-size: 12.5px;
  font-weight: 600;
  display: block;
  color: var(--text);
}
.notif-item .notif-body small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.notif-item .notif-body em {
  display: block;
  font-size: 10px;
  font-style: normal;
  color: #adba9f;
  margin-top: 6px;
}
.notif-item:last-child {
  border-bottom: none;
}
.notification-list strong {
  font-size: 12px;
  font-weight: 500;
}
.notification-list small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 6px;
}
.notification-list em {
  display: block;
  font-size: 9px;
  font-style: normal;
  color: #adba9f;
  margin-top: 6px;
}
.brand-dev-by { display: flex; align-items: center; gap: 6px; }
.brand-dev-sep { font-size: 10px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }
.tetra-logo { height: 22px; width: auto; object-fit: contain; opacity: 0.88; }
.guide-hero {
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.guide-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.guide-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #173d40aa, transparent);
}
.guide-hero > span {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 20px;
  font: 400 17px Manrope;
  color: white;
  line-height: 1.6;
  letter-spacing: -0.5px;
}
.guide-hero svg {
  display: block;
  margin-bottom: 4px;
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 27px 0;
}
.guide-steps > div {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.guide-steps > div > span {
  font: 500 20px Manrope;
  color: var(--accent);
}
.guide-steps h3 {
  font-size: 13px;
  font-weight: 500;
}
.guide-steps p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.9;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.login-art {
  position: relative;
  background: #e8ede5;
  padding: 42px 60px;
  display: flex;
  flex-direction: column;
}
.login-brand-header {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.login-art > .brand > .brand-mark,
.login-brand-header > .brand > .brand-mark {
  display: none;
}
.login-brand-header .brand-dev-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.login-brand-header .brand-dev-sep {
  font-size: 14px;
  font-weight: 600;
  color: #82917b;
}
.login-brand-header .tetra-logo {
  height: 42px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.login-brand-header .tetra-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.login-art-content {
  margin: auto 0;
  padding: 65px 0;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.2px;
  color: #82917b;
}
.login-art h1 {
  font: 500 40px/1.35 Manrope;
  letter-spacing: -1.5px;
  margin-top: 25px;
}
.login-art h1 span {
  color: #8e9f87;
}
.login-art p {
  font-size: 12px;
  color: #85937e;
  margin-top: 23px;
}
.login-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 45px;
}
.login-mosaic span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: white;
  background: #e98368;
}
.login-mosaic span span {
  background: none;
  display: contents;
}
.login-mosaic span:nth-child(2) {
  background: #75a297;
}
.login-mosaic span:nth-child(3) {
  background: #92aab6;
}
.login-mosaic span:nth-child(4) {
  background: #baaf91;
}
.login-art > small {
  font-size: 10px;
  color: #9ba792;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form {
  max-width: 350px;
  width: 100%;
}
.login-welcome {
  color: #bdab82;
  display: block;
  margin-bottom: 20px;
}
.login-form h2 {
  font: 500 27px/1.5 Manrope;
  letter-spacing: -1px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.login-form form {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.login-form label {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-form input {
  background: var(--bg);
  height: 45px;
  border: 1px solid var(--line);
  padding: 0 13px;
  border-radius: 4px;
  color: var(--text);
  font-size: 12px;
}
.login-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.login-form .primary-button {
  height: 45px;
  justify-content: space-between;
}
.demo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  width: 100%;
  margin-top: 20px;
  font-size: 11px;
  color: #83957a;
}
.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
  color: #a2aa9a;
  margin-top: 45px;
}
.mobile-menu {
  display: none;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[data-theme="dark"] {
  --bg: #202a27;
  --surface: #293430;
  --text: #e1e9de;
  --muted: #94a28f;
  --line: #3b463d;
  --hover: #39463b;
  background: var(--bg);
  color: var(--text);
}
[data-theme="dark"] .sidebar {
  background: #242e29;
}
[data-theme="dark"] th,
[data-theme="dark"] tbody tr:hover {
  background: #2e3a32;
}
[data-theme="dark"] td {
  border-color: var(--line);
  color: #a9b5a3;
}
[data-theme="dark"] .summary-value,
[data-theme="dark"] .agenda-date {
  color: var(--text);
}
[data-theme="dark"] .brand {
  color: var(--text);
}
[data-theme="dark"] .login-art {
  background: #2b3a30;
}
[data-theme="dark"] .workspace-nav nav button.selected,
[data-theme="dark"] .workspace-nav nav a.selected {
  color: var(--text);
}
[data-theme="dark"] .side-button.active {
  background: #e9836820;
}
[data-theme="dark"] .login-art h1 {
  color: var(--text);
}
@media (min-width: 1500px) {
  .content {
    padding: 0 58px;
  }
  .topbar {
    padding: 0 58px;
  }
  .workspace-nav {
    padding: 0 58px;
  }
  .tile-groups {
    gap: 32px;
  }
  .tile-grid {
    grid-template-rows: 200px 145px 95px;
    gap: 13px;
  }
  .tile h3 {
    font-size: 18px;
  }
  .new-claim-content h3 {
    font-size: 28px;
  }
  .new-claim-content p {
    font-size: 11px;
  }
  .summary-value {
    font-size: 30px;
  }
  .mini-bars {
    height: 48px;
  }
  .inspiration-bottom h3 {
    font-size: 21px;
  }
  .page-heading {
    padding: 39px 0 36px;
  }
  .claim-art {
    right: 45px;
    width: 95px;
    height: 116px;
  }
  .tile-icon-line > svg {
    width: 33px;
    height: 33px;
  }
  .utility-tile h3 {
    font-size: 13px;
  }
}
@media (max-width: 1150px) {
  .content {
    padding: 0 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .workspace-nav {
    padding: 0 27px;
  }
  .tile-groups {
    gap: 17px;
    grid-template-columns: 1.1fr 1.05fr 0.9fr;
  }
  .tile {
    padding: 16px;
  }
  .tile-grid {
    gap: 9px;
  }
  .new-claim-content h3 {
    font-size: 20px;
  }
  .new-claim-content p {
    font-size: 8px;
  }
  .claim-art {
    right: 22px;
    opacity: 0.35;
    bottom: 24px;
    width: 65px;
    height: 86px;
  }
  .tile h3 {
    font-size: 14px;
  }
  .new-claim-content h3 {
    font-size: 20px;
  }
  .tile-topline > span {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .horizontal-tile {
    gap: 10px;
  }
  .horizontal-tile p {
    font-size: 8px;
  }
  .summary-value {
    font-size: 23px;
  }
  .summary-heading h3 {
    font-size: 10px;
  }
  .summary-heading > span {
    font-size: 7px;
  }
  .inspiration-bottom h3 {
    font-size: 15px;
  }
  .inspiration-bottom > span {
    font-size: 7px;
  }
  .agenda-content {
    gap: 9px;
  }
  .agenda-event {
    padding-left: 9px;
  }
  .agenda-event strong {
    font-size: 9px;
  }
  .utility-tile h3 {
    font-size: 11px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card > strong {
    font-size: 23px;
  }
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .calendar-layout {
    grid-template-columns: 1.6fr 1fr;
  }
  .calendar-day {
    padding: 6px;
    height: 72px;
  }
  .report-banner h2 {
    font-size: 15px;
  }
  .report-banner p {
    font-size: 10px;
  }
  .report-banner > span:last-child {
    font-size: 20px;
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 34px;
  }
  .login-form-wrap {
    padding: 40px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 64px;
  }
  .main-shell {
    margin-left: 64px;
  }
  .content {
    padding: 0 24px;
  }
  .topbar {
    height: 76px;
    padding: 0 24px;
  }
  .workspace-nav {
    padding: 0 24px;
  }
  .logo-button {
    height: 76px;
  }
  .side-button.active:before {
    left: -10px;
  }
  .tile-groups {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .personal-group {
    grid-column: span 2;
  }
  .personal-group .tile-grid {
    grid-template-columns: 1.2fr 1.1fr 0.65fr 0.65fr;
    grid-template-rows: 130px;
  }
  .personal-group .tile-wide {
    grid-column: span 1;
  }
  .personal-group .inspiration-tile {
    padding: 14px;
  }
  .inspiration-bottom h3 {
    font-size: 15px;
  }
  .personal-group .utility-tile {
    align-items: center;
    gap: 13px;
  }
  .agenda-tile {
    padding: 16px;
  }
  .agenda-content {
    margin-top: 14px;
  }
  .tile h3 {
    font-size: 17px;
  }
  .new-claim-content h3 {
    font-size: 23px;
  }
  .utility-tile h3 {
    font-size: 11px;
  }
  .tile-topline > span {
    font-size: 8px;
  }
  .new-claim-content p {
    font-size: 10px;
  }
  .claim-art {
    width: 80px;
    height: 100px;
    right: 28px;
    opacity: 0.6;
  }
  .horizontal-tile p {
    font-size: 9px;
  }
  .summary-value {
    font-size: 27px;
  }
  .tile-grid {
    gap: 11px;
  }
  .page-heading p {
    max-width: 345px;
    line-height: 1.8;
  }
  .heading-date > span {
    font-size: 9px;
  }
  .topbar-right {
    gap: 15px;
  }
  .system-online {
    font-size: 10px;
  }
  .workspace-tag {
    display: none;
  }
  .heading-title h1 {
    font-size: 40px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card > strong {
    font-size: 27px;
  }
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
  .data-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .input-with-icon {
    max-width: none;
  }
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions select {
    flex: 1;
  }
  .patients-grid {
    grid-template-columns: 1fr 1fr;
  }
  .report-banner {
    flex-wrap: wrap;
  }
  .report-banner > span:last-child {
    width: 100%;
    text-align: left;
    padding-left: 82px;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    height: 90px;
  }
  .login-page {
    grid-template-columns: 0.9fr 1fr;
  }
  .login-art {
    padding: 30px;
  }
  .login-art h1 {
    font-size: 28px;
  }
  .login-art p {
    line-height: 1.8;
  }
  .login-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .login-mosaic span {
    height: 95px;
    aspect-ratio: auto;
  }
  .login-form-wrap {
    padding: 30px;
  }
  .login-form h2 {
    font-size: 23px;
  }
  .toast {
    left: 50%;
  }
}
@media (max-width: 600px) {
  .sidebar {
    display: none;
    box-shadow: 10px 0 30px #18352b20;
  }
  .sidebar.mobile-open {
    display: flex;
    top: 68px;
    z-index: 35;
    width: 64px;
  }
  .sidebar.mobile-open .logo-button {
    display: none;
  }
  .main-shell {
    margin: 0;
  }
  .mobile-menu {
    display: inline-flex;
    margin-left: -7px;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
  }
  .workspace-nav {
    padding: 0 20px;
  }
  .header-brand {
    gap: 8px;
  }
  .brand {
    font-size: 24px;
  }
  .topbar-right {
    gap: 10px;
  }
  .system-online,
  .header-divider,
  .profile-text,
  .profile-button > svg {
    display: none;
  }
  .profile-button {
    padding: 0;
  }
  .profile-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .content {
    padding: 0 20px;
  }
  .workspace-nav {
    height: 61px;
    gap: 15px;
  }
  .workspace-nav nav {
    gap: 22px;
  }
  .workspace-nav nav button,
  .workspace-nav nav a {
    font-size: 11px;
  }
  .search-trigger {
    width: 33px;
    height: 33px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: 0;
  }
  .search-trigger > span,
  .search-trigger kbd {
    display: none;
  }
  .page-heading {
    padding: 25px 0 28px;
    align-items: flex-start;
    gap: 15px;
  }
  .heading-title h1 {
    font-size: 37px;
    letter-spacing: -1.5px;
  }
  .sun-greeting > svg {
    width: 24px;
    height: 24px;
  }
  .page-heading p {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 10px;
    max-width: 275px;
  }
  .heading-date {
    display: none;
  }
  .tile-groups {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .tile-group > h2 {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .tile-grid {
    grid-template-rows: 178px 128px 84px;
    gap: 11px;
  }
  .tile {
    padding: 20px;
  }
  .new-claim-tile {
    padding: 18px 20px;
  }
  .new-claim-content h3 {
    font-size: 24px;
  }
  .new-claim-content p {
    font-size: 10px;
  }
  .claim-art {
    right: 40px;
    width: 86px;
    height: 106px;
    opacity: 0.65;
    bottom: 20px;
  }
  .tile-topline > span {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .tile h3 {
    font-size: 17px;
  }
  .new-claim-content h3 {
    font-size: 24px;
  }
  .horizontal-tile p {
    font-size: 10px;
  }
  .personal-group {
    grid-column: auto;
  }
  .personal-group .tile-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 188px 126px 88px;
  }
  .personal-group .tile-wide {
    grid-column: span 2;
  }
  .personal-group .inspiration-tile {
    padding: 20px;
  }
  .inspiration-bottom h3 {
    font-size: 23px;
  }
  .inspiration-bottom > span {
    font-size: 10px;
  }
  .inspiration-top {
    font-size: 8px;
  }
  .personal-group .utility-tile {
    align-items: flex-start;
    gap: 10px;
  }
  .utility-tile h3 {
    font-size: 12px;
  }
  .agenda-content {
    gap: 20px;
    margin-top: auto;
  }
  .agenda-event {
    padding-left: 20px;
  }
  .agenda-event strong {
    font-size: 12px;
    max-width: none;
  }
  .agenda-top > span {
    font-size: 12px;
  }
  .agenda-event small {
    font-size: 11px;
  }
  .summary-value {
    font-size: 28px;
  }
  .summary-heading h3 {
    font-size: 12px;
  }
  .summary-heading > span {
    font-size: 9px;
  }
  .chart-caption {
    font-size: 8px;
  }
  .summary-value > span {
    font-size: 9px;
  }
  .recent-section {
    margin-top: 28px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .text-button {
    font-size: 9px;
  }
  .section-heading .subtle-pill {
    display: none;
  }
  .footer {
    align-items: flex-start;
    gap: 20px;
    line-height: 1.8;
    font-size: 8px;
  }
  .footer > span:first-child {
    flex-wrap: wrap;
    max-width: 205px;
    gap: 4px 7px;
  }
  .footer > span:last-child {
    white-space: nowrap;
    flex-wrap: nowrap;
    font-size: 7px;
    padding-top: 1px;
    gap: 4px;
  }
  .footer-divider {
    margin: 0 2px;
  }
  .stat-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-card > strong {
    font-size: 22px;
  }
  .stat-card:last-child > strong {
    font-size: 17px;
  }
  .stat-card > span:nth-child(2) {
    font-size: 10px;
  }
  .stat-card > small {
    font-size: 8px;
    line-height: 1.6;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 13px;
  }
  .panel {
    padding: 19px;
  }
  .status-bars > button > span:first-child {
    font-size: 10px;
    width: 92px;
  }
  .status-card-section {
    padding: 18px;
  }
  .status-card-header {
    flex-direction: column;
    gap: 10px;
  }
  .status-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .status-tile-count {
    font-size: 22px;
  }
  .apps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .app-card {
    padding: 17px;
  }
  .app-icon {
    height: 48px;
    width: 48px;
    margin-bottom: 20px;
  }
  .app-icon > svg {
    height: 24px;
    width: 24px;
  }
  .app-card h3 {
    font-size: 13px;
  }
  .app-card p {
    font-size: 10px;
  }
  .app-card > svg {
    right: 14px;
    top: 19px;
    width: 15px;
  }
  .patients-grid {
    grid-template-columns: 1fr;
  }
  .patient-card {
    padding: 20px;
  }
  .patient-card > .patient-avatar {
    float: left;
    margin-right: 15px;
    margin-bottom: 0;
  }
  .patient-card-footer {
    clear: both;
  }
  .patient-card h3 {
    padding-top: 5px;
  }
  .data-toolbar .muted {
    font-size: 10px;
  }
  .toolbar-actions {
    gap: 7px;
    flex-wrap: wrap;
  }
  .toolbar-actions > .primary-button {
    flex: 1;
  }
  .data-toolbar select {
    height: 39px;
  }
  .primary-button,
  .secondary-button {
    font-size: 10px;
    padding: 10px 12px;
  }
  .toolbar-actions .secondary-button {
    padding: 10px;
  }
  .report-banner {
    padding: 20px;
    gap: 14px;
  }
  .report-icon {
    width: 40px;
    height: 40px;
  }
  .report-banner > div {
    flex: 1;
  }
  .report-banner h2 {
    font-size: 15px;
    line-height: 1.6;
  }
  .report-banner p {
    line-height: 1.8;
  }
  .report-banner > span:last-child {
    padding-left: 54px;
  }
  .calendar-day {
    height: 63px;
    padding: 5px;
    font-size: 10px;
  }
  .calendar-day > span {
    font-size: 7px;
    padding: 2px;
  }
  .calendar-grid {
    gap: 3px;
  }
  .calendar-nav {
    gap: 3px;
  }
  .calendar-nav .text-button {
    font-size: 8px;
  }
  .panel > .section-heading h2 {
    font-size: 12px;
  }
  .modal-backdrop {
    padding: 14px;
    align-items: center;
  }
  .modal {
    padding: 22px;
    max-height: calc(100dvh - 28px);
    border-radius: 7px;
  }
  .modal-heading h2 {
    font-size: 21px;
  }
  .modal-heading p {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .form-notice {
    font-size: 9px;
    padding: 10px;
    align-items: flex-start;
  }
  .modal label {
    font-size: 10px;
  }
  .modal input,
  .modal select {
    font-size: 12px;
  }
  .detail-banner {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .detail-banner h3 {
    font-size: 14px;
  }
  .detail-banner > .status {
    margin-left: 55px;
  }
  .detail-grid {
    gap: 20px;
  }
  .detail-grid dd {
    font-size: 12px;
  }
  .detail-total dd {
    font-size: 20px;
  }
  .detail-total {
    align-items: baseline;
  }
  .modal-actions {
    flex-wrap: wrap;
    margin-top: 20px;
  }
  .modal-actions > button {
    flex: 1;
  }
  .global-search-field {
    gap: 8px;
    padding: 0 10px;
  }
  .global-search-field input {
    font-size: 11px;
  }
  .global-search-field > svg {
    width: 17px;
  }
  .global-search-field kbd {
    display: none;
  }
  .search-results small {
    font-size: 9px;
  }
  .guide-hero > span {
    font-size: 20px;
    left: 20px;
    top: 20px;
  }
  .guide-steps p {
    font-size: 10px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 25px 28px;
  }
  .login-art-content {
    padding: 34px 0 10px;
  }
  .login-art h1 {
    font-size: 31px;
    margin-top: 14px;
  }
  .login-art h1 br:nth-of-type(2) {
    display: none;
  }
  .login-art h1 span {
    display: none;
  }
  .login-art p {
    margin-top: 12px;
    font-size: 11px;
  }
  .login-mosaic,
  .login-art > small {
    display: none;
  }
  .login-form-wrap {
    padding: 35px 28px 40px;
  }
  .login-welcome {
    display: none;
  }
  .login-form {
    max-width: none;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .login-form form {
    margin-top: 27px;
    gap: 18px;
  }
  .login-security {
    margin-top: 28px;
  }
  .toast {
    width: calc(100% - 30px);
    font-size: 11px;
    bottom: 18px;
    padding: 13px;
  }
  .toast button {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Patient SIMRS Autocomplete Search Styles */
.patient-autocomplete-wrapper {
  position: relative;
}
.patient-autocomplete-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 150;
}
.patient-search-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f2ed;
  cursor: pointer;
  transition: background 0.15s ease;
}
.patient-search-item:last-child {
  border-bottom: none;
}
.patient-search-item:hover,
.patient-search-item.active {
  background: #f4f7f2;
}
.patient-search-name {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.patient-search-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.patient-badge-ranap {
  display: inline-block;
  background: #fdf3e7;
  color: #c46c1b;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}
.patient-badge-ralan {
  display: inline-block;
  background: #eef7f2;
  color: #3b7b59;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}
.patient-selected-card {
  background: #edf7f2;
  border: 1px solid #c2e2d0;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #244b36;
}

