@import url('/type.css');
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #233b38;
  background: #f5f4ef;
  font-synthesis: none;
  --green: #173c39;
  --muted: #74817c;
  --line: #e1e5dc;
  --gold: #d9b58a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c18a42;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #3a766b;
  outline-offset: 1px;
}
button {
  transition: background 0.15s;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 500;
  margin-bottom: 12px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 0;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
  color: #65756e;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: #71887c;
  display: block;
  margin-bottom: 14px;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  padding: 38px 22px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  color: #fff;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  white-space: nowrap;
}
.brand small {
  font-size: 9px;
  color: #adc0b7;
  letter-spacing: 2px;
  margin-top: 6px;
}
.mark {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 39px;
  color: #e5c7a1;
  line-height: 1;
}
.nav-label {
  font-size: 9px;
  color: #9bb2a8;
  letter-spacing: 2px;
  margin: 57px 15px 16px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  width: 100%;
  border: 0;
  background: none;
  border-radius: 7px;
  color: #bacdc4;
  font-size: 13px;
  padding: 13px 14px;
  margin-bottom: 5px;
}
.nav-item span {
  font-size: 19px;
  width: 21px;
  color: #8eaca0;
}
.nav-item:hover {
  background: #254c46;
}
.nav-item.active {
  color: #fff;
  background: #30554c;
}
.nav-item.active span {
  color: #e7c69b;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.sidebar-bottom small {
  color: #9bb2a8;
  font-size: 10px;
}
.sidebar-bottom button {
  margin-left: auto;
  border: 0;
  background: none;
  color: #adc0b7;
  font-size: 21px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #466256;
  border: 1px solid #60786b;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  font-size: 10px;
  color: #e0d2ba;
}
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.breadcrumb {
  color: #87928b;
  margin-left: 9px;
}
.location {
  color: #7b8880;
  font-size: 11px;
}
.dot {
  display: inline-block;
  background: #8fa98b;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 10px;
  vertical-align: middle;
}
.content {
  padding: 40px 42px 20px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 13px;
  margin-bottom: 0;
}
.month-filter {
  min-width: 165px;
  font-size: 10px;
  color: #738077;
  display: grid;
  gap: 6px;
}
.month-filter input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--green);
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px 20px;
  min-height: 149px;
  display: flex;
  flex-direction: column;
}
.metric > span {
  font-size: 11px;
  color: #748178;
}
.metric > strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.3px;
  margin: 18px 0 12px;
  white-space: nowrap;
}
.metric small {
  font-size: 10px;
  margin-top: auto;
}
.metric.featured {
  background: #e8eee5;
  border-color: #d5dfce;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.panel-title h2 {
  line-height: 1.3;
}
.panel-title p {
  margin: 8px 0 0;
  font-size: 13px;
}
.text-button {
  border: 0;
  background: none;
  color: #487a67;
  font-size: 11px;
  padding: 6px 0;
}
.text-button:hover {
  text-decoration: underline;
}
.pill {
  font-size: 10px;
  background: #f2f4ef;
  border: 1px solid #e4e9de;
  color: #7d8e7c;
  border-radius: 30px;
  padding: 6px 9px;
  white-space: nowrap;
}
.appointment-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 0;
  border-top: 1px solid #edf0e9;
}
.appointment-row:first-of-type {
  border-top: 0;
}
.appointment-row > div:not(.date-tile) {
  flex: 1;
}
.appointment-row strong {
  font-size: 12px;
  font-weight: 600;
}
.appointment-row small {
  font-size: 10px;
  margin-top: 5px;
}
.date-tile {
  background: #f4f5f0;
  border-radius: 6px;
  min-width: 43px;
  text-align: center;
  padding: 9px 6px;
}
.date-tile strong {
  display: block;
  font-size: 18px;
}
.date-tile span {
  font-size: 9px;
  color: #7a8d7c;
  text-transform: uppercase;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background: #f7f0e3;
  color: #94743e;
  padding: 6px 9px;
  font-size: 10px;
  white-space: nowrap;
}
.badge.success {
  background: #eaf2e6;
  color: #568044;
}
.badge.muted {
  background: #f1ecea;
  color: #917b73;
}
.pipeline > div {
  display: grid;
  grid-template-columns: 1fr 25px;
  gap: 10px;
  margin: 20px 0;
  font-size: 11px;
}
.pipeline strong {
  text-align: right;
}
.pipeline progress {
  grid-column: 1/-1;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #edf0e8;
  accent-color: #809977;
}
.pipeline progress::-webkit-progress-bar {
  background: #edf0e8;
}
.pipeline progress::-webkit-progress-value {
  background: #82977b;
  border-radius: 8px;
}
.callout {
  border: 1px solid #dbdfcf;
  border-radius: 9px;
  margin-top: 25px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #edeee3;
}
.callout h2 {
  font-size: 16px;
  margin-bottom: 8px;
}
.callout p {
  font-size: 12px;
  margin-bottom: 0;
}
.callout > div {
  flex: 1;
}
.callout-icon {
  font-size: 27px;
  color: #85916a;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 6px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 600;
}
.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #2a564d;
}
.secondary {
  border: 1px solid #ccd4c5;
  color: #466249;
  background: #fff;
}
.secondary:hover {
  background: #eef2e9;
}
.small {
  padding: 8px 10px;
  font-size: 10px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.toolbar p {
  margin: 0;
}
.search {
  font-size: 11px;
  display: grid;
  gap: 5px;
  width: 330px;
  max-width: 60%;
}
.search input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #7c8a80;
  padding: 12px 16px;
  background: #f6f7f3;
  white-space: nowrap;
}
td {
  border-bottom: 1px solid #edf0e9;
  padding: 18px 16px;
  line-height: 1.5;
}
tr:last-child td {
  border-bottom: 0;
}
.patient-name {
  font-size: 13px;
  font-weight: 600;
}
.mono {
  font-family: monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.empty {
  padding: 32px 15px;
  color: #859087;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
.returns {
  margin-top: 24px;
}
.hint {
  font-size: 12px;
  color: #839083;
  line-height: 1.7;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-bottom: 20px;
}
.kanban-column {
  background: #eeefe8;
  border: 1px solid #e1e5dc;
  border-radius: 9px;
  padding: 12px;
}
.kanban-column h2 {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 2px 18px;
  text-transform: capitalize;
  letter-spacing: 0;
}
.kanban-column h2 span {
  color: #91a08f;
}
.quote-card {
  background: #fff;
  border: 1px solid #e3e6dc;
  padding: 18px 14px;
  margin-bottom: 12px;
  border-radius: 7px;
}
.quote-card strong {
  font-size: 12px;
}
.quote-card p {
  font-size: 10px;
  margin: 12px 0;
}
.quote-card b {
  display: block;
  font-size: 17px;
  font-weight: 500;
}
.quote-card small {
  font-size: 9px;
  margin: 12px 0;
}
.quote-card button {
  width: 100%;
  margin-top: 5px;
}
.patient-profile {
  margin-top: 20px;
}
.note {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.note p {
  white-space: pre-wrap;
  font-size: 13px;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.demo-banner {
  text-align: center;
  background: #f1dfbe;
  color: #6d542f;
  font-size: 11px;
  padding: 11px 18px;
  line-height: 1.5;
}
footer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #8c978d;
  display: flex;
  justify-content: space-between;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: 500px;
  max-width: calc(100vw - 28px);
  max-height: 90vh;
  color: var(--green);
}
dialog::backdrop {
  background: #102e2aa6;
  backdrop-filter: blur(3px);
}
dialog label,
.login-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #54695c;
  margin-bottom: 17px;
}
dialog input,
dialog select,
dialog textarea,
.login-form input {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #cfd8cd;
  background: #fff;
  color: #233b38;
  min-width: 0;
}
dialog textarea {
  resize: vertical;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.form-error {
  font-size: 12px;
  color: #a04132;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  padding: 50px 65px;
  color: #fff;
  background: var(--green);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  color: #f1eadc;
}
.login-story .eyebrow {
  color: #bda47d;
  margin-top: 55px;
}
.login-story p,
.login-story > small {
  color: #9fb9ab;
}
.login-form {
  align-self: center;
  justify-self: center;
  padding: 50px 30px;
  max-width: 440px;
  width: 100%;
}
.login-form h2 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 500;
}
.login-form > p {
  font-size: 13px;
  margin-bottom: 30px;
}
.login-form form .primary {
  width: 100%;
  justify-content: space-between;
  margin: 8px 0 20px;
}
.login-form .hint {
  font-size: 11px;
}
#notice {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 440px;
  background: #234f42;
  color: white;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  box-shadow: 0 5px 30px #0002;
  z-index: 100;
  line-height: 1.5;
}
#notice.visible {
  display: block;
}
#notice.error {
  background: #813c30;
}
.loading {
  padding: 50px;
}
@media (min-width: 1450px) {
  .content {
    padding-top: 50px;
  }
  .metric {
    padding: 28px;
  }
  .metric > strong {
    font-size: 35px;
  }
  .panel {
    padding: 28px;
  }
  .appointment-row {
    padding: 23px 0;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 15px;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 20px 14px;
  }
  .metric > strong {
    font-size: 26px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .appointment-row small {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 20px;
  }
  .sidebar .brand {
    margin-bottom: 22px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 11px;
    gap: 6px;
    margin: 0;
  }
  .nav-item span {
    font-size: 16px;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .location {
    display: none;
  }
  .content {
    padding: 28px 18px 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .month-filter {
    min-width: 130px;
  }
  .metrics,
  .metrics.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    min-height: 135px;
  }
  .metric > strong {
    font-size: 27px;
  }
  .panel {
    padding: 18px;
  }
  .panel-title h2 {
    font-size: 16px;
  }
  .appointment-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .appointment-info {
    min-width: 160px;
  }
  .callout {
    padding: 20px;
    flex-wrap: wrap;
  }
  .callout-icon {
    display: none;
  }
  .callout > div {
    min-width: 100%;
  }
  footer span {
    display: none;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar > .hint {
    max-width: 50%;
  }
  .toolbar .primary {
    font-size: 11px;
    padding: 12px;
  }
  .login {
    display: block;
  }
  .login-story {
    min-height: auto;
    padding: 30px;
  }
  .login-story > div,
  .login-story > small {
    display: none;
  }
  .login-form {
    margin: auto;
    padding: 45px 25px;
  }
  .demo-banner {
    font-size: 10px;
  }
  dialog {
    padding: 23px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .month-filter input {
    padding: 8px;
    width: 135px;
  }
  .kanban {
    grid-template-columns: repeat(5, 220px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.refresh {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #486452;
  padding: 8px 12px;
  font-size: 11px;
}
@media (max-width: 760px) {
  .sidebar-bottom {
    display: flex;
    margin-top: 16px;
    padding-top: 0;
  }
  .topbar .header-actions {
    gap: 5px;
  }
}
