@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f4f6f1;
  --card: #fff;
  --ink: #20392f;
  --muted: #596b61;
  --line: #e0e7df;
  --green: #183c34;
  --primary: #28624e;
  --primary-dark: #1c4a3a;
  --sage: #edf3d9;
  --sand: #faeddc;
  --mint: #e5f2e9;
  --radius: 16px;
  --shadow: 0 1px 2px #2238290a;
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
:focus-visible { outline: 3px solid #619f7d; outline-offset: 3px; }
svg { width: 19px; height: 19px; flex: none; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.048em; font-weight: 740; }
h2 { font-size: 1.14rem; line-height: 1.35; letter-spacing: -.02em; }
h3 { font-size: .97rem; line-height: 1.35; }
small { color: var(--muted); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 12px; background: white; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 23px 15px 17px;
  background: var(--green); color: #e9f1e9;
}
.brand, .mobile-brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.brand { padding: 2px 5px; }
.brand img, .mobile-brand img { width: 40px; height: 40px; }
.brand small { display: block; color: #bfd2c7; font-size: .58rem; font-weight: 700; letter-spacing: .12em; margin-top: 1px; }
.nav-label { font-size: .66rem; color: #b9cfc2; font-weight: 700; letter-spacing: .13em; margin: 40px 12px 11px; }
nav { display: grid; gap: 5px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; color: #d5e7db; text-decoration: none; font-weight: 580; }
nav a:hover { background: #ffffff12; }
nav a.active { background: #e2edcc; color: #234b3b; font-weight: 720; }
.nav-config-short { display: none; }
.sidebar-foot { margin-top: auto; padding: 15px 8px 3px; color: #c3d8cc; font-size: .78rem; border-top: 1px solid #ffffff21; }
.sidebar-foot span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #b7d894; }
.workspace { min-width: 0; }
.topbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: #fafbf8; padding: 10px 30px; }
.workspace-label { color: var(--muted); font-size: .72rem; letter-spacing: .13em; font-weight: 720; }
.top-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-actions { justify-content: flex-end; flex-wrap: nowrap; }
.today { display: flex; align-items: center; white-space: nowrap; gap: 7px; color: var(--muted); font-size: .85rem; padding-inline: 4px; }
.mobile-brand { display: none; }
.main { max-width: 1350px; padding: 31px 32px 48px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.eyebrow { font-size: .72rem; letter-spacing: .13em; font-weight: 780; color: #48705a; margin-bottom: 7px; }
.lede { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 1px solid #d9e3d8; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 660; line-height: 1.2; text-decoration: none; text-align: center; }
.button:hover, .icon-button:hover { background: #f0f5ed; }
.button.primary { background: var(--primary); border-color: var(--primary); color: white; box-shadow: var(--shadow); }
.button.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button.compact, .icon-button { min-height: 35px; padding: 6px 10px; font-size: .82rem; }
.icon-button { min-width: 36px; padding-inline: 7px; }
.button.quiet { background: transparent; border-color: transparent; color: #3a614e; }
.button.quiet:hover { background: #edf3ea; }
.button.danger { color: #842e28; border-color: #eedad6; }
.button.danger:hover { background: #f9eeec; }
.button svg, .icon-button svg { width: 17px; height: 17px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.metric { background: white; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 13px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.metric p { color: var(--muted); font-size: .86rem; font-weight: 650; }
.metric strong { display: block; font-size: 1.85rem; font-weight: 740; line-height: 1.2; margin: 3px 0 2px; letter-spacing: -.04em; }
.metric small { display: block; font-size: .76rem; }
.metric > span, .service-icon, .empty-icon { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; color: #3a654e; flex: none; }
.metric.sage > span, .service-icon.sage { background: var(--sage); }
.metric.sand > span, .service-icon.sand { background: var(--sand); color: #77502c; }
.metric.mint > span, .empty-icon { background: var(--mint); }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px; padding: 17px 19px; }
.panel-head p, .card-top p, .tutor-top p { color: var(--muted); margin-top: 2px; font-size: .84rem; overflow-wrap: anywhere; }
.calendar { margin-bottom: 18px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding: 0 18px 16px; }
.weekday { color: var(--muted); text-align: center; font-size: .77rem; font-weight: 650; padding-bottom: 2px; }
.calendar-blank { border-radius: 8px; background: #f4f6f1; }
.day { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; min-width: 0; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fafbf8; color: var(--ink); }
.day:hover { border-color: #7eae8f; }
.day strong { font-size: 1.04rem; line-height: 1.3; }
.day-count { font-size: .71rem; border-radius: 12px; padding: 1px 6px; color: #315a45; background: #e2efdf; font-weight: 700; }
.day[aria-current="date"] { border-color: #7eae8f; }
.day.selected { background: var(--green); border-color: var(--green); color: white; }
.day.selected .day-count { color: white; background: #41735f; }
.field.day-jump { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.day-jump .date-control { width: 135px; }
.empty { padding: 25px 18px 33px; display: grid; justify-items: center; text-align: center; gap: 9px; }
.empty p { color: var(--muted); max-width: 53ch; }
.empty .button { margin-top: 5px; }
.schedule-list, .pets { list-style: none; margin: 0; padding: 0; }
.schedule-list { padding: 0 18px 14px; }
.upcoming { margin-bottom: 18px; }
.upcoming-list { max-height: 255px; overflow-y: auto; }
.upcoming-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); }
.upcoming-empty { padding: 0 19px 14px; }
.appointment { display: grid; grid-template-columns: 55px 40px minmax(125px, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.appointment .actions { justify-content: flex-end; }
.time, .appointment-title { display: grid; min-width: 0; }
.appointment-title { overflow-wrap: anywhere; }
.appointment-title p { color: var(--muted); font-size: .8rem; white-space: pre-wrap; }
.badge { display: inline-flex; width: fit-content; font-size: .74rem; font-weight: 680; color: #476457; background: #eff4ee; padding: 3px 8px; border-radius: 999px; }
.badge.done { color: #255a3c; background: #e1f2e5; }
.badge.planned { color: #705124; background: #f6ecd8; }
.badge.cancelled { color: #694c49; background: #f5ebe9; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 14px; color: var(--muted); }
.search { display: block; width: min(100%, 335px); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.tutor-card, .pack-card, .price-card, .report-card { padding: 17px; display: grid; gap: 13px; align-content: start; }
.report-card { grid-template-rows: auto auto auto 1fr auto; }
.report-card .button { grid-row: 5; justify-self: start; }
.report-card .service-icon.mint { background: var(--mint); }
@media (min-width: 1150px) { .report-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.email-settings { display: grid; gap: 15px; padding: 19px; max-width: 640px; }
.email-settings .service-icon { background: var(--mint); }
.email-details { margin: 0; }
.email-details > div { display: flex; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--line); }
.email-details dt { color: var(--muted); width: 103px; }
.email-details dd { margin: 0; overflow-wrap: anywhere; }
.settings-integrations { margin-bottom: 16px; }
.logo-preview { display: grid; place-items: center; min-height: 80px; padding: 10px; background: #fafbf8; border: 1px solid var(--line); border-radius: 9px; }
.logo-preview img { max-width: 100%; max-height: 105px; object-fit: contain; }
.tutor-top, .card-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tutor-top > div, .card-top > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; flex: none; font-size: .92rem; font-weight: 780; color: #315a45; background: #e6efdd; }
.tutor-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pet-heading, .pets li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pets li { padding: 6px 0; border-top: 1px solid var(--line); }
.pets li > span { flex: 1; display: grid; overflow-wrap: anywhere; }
.pets li > svg { color: #4a7c62; }
.tutor-docs { padding-top: 8px; border-top: 1px solid var(--line); }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.progress-label span { color: var(--muted); font-size: .85rem; }
progress { width: 100%; height: 9px; accent-color: var(--primary); border: 0; overflow: hidden; border-radius: 8px; background: #e9efe7; }
progress::-webkit-progress-bar { background: #e9efe7; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 8px; }
.billing-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; background: var(--mint); border: 1px solid #d9e8dd; border-radius: 12px; margin-bottom: 16px; font-weight: 650; }
.billing-total svg { margin-right: 5px; }
.billing-total strong { font-size: 1.24rem; }
.billing-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 13px 15px; margin-bottom: 14px; }
.billing-filters .date-filters { flex: 0 1 340px; }
.tabs { display: flex; gap: 5px; border-radius: 9px; padding: 3px; background: #edf2eb; }
.tab { border: 0; border-radius: 7px; background: transparent; color: var(--muted); padding: 6px 11px; font-weight: 650; }
.tab.active { background: white; color: var(--ink); box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; }
th, td { border-top: 1px solid var(--line); padding: 12px 13px; text-align: left; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 19px; }
th { font-size: .76rem; color: var(--muted); background: #fafbf8; }
td { font-size: .87rem; }
td small { display: block; }
.table-empty { padding: 14px 19px; }
.price-image, .price-placeholder { height: clamp(170px, 23vw, 260px); background: #f5f7f3; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; overflow: hidden; }
.price-image img { width: 100%; height: 100%; object-fit: contain; }
.price-placeholder { align-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 12px; }
.price-placeholder svg { width: 28px; height: 28px; }
.tariffs { margin-top: 16px; }
.tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 0 19px 19px; }
.tariff-grid h3 { margin: 2px 0 5px; }
.tariff-grid p { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.muted, .loading { color: var(--muted); font-size: .89rem; }
.loading { padding: 20px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { border: 1px solid #d2dfd3; border-radius: 8px; background: #fff; color: var(--ink); padding: 8px 10px; min-height: 39px; width: 100%; min-width: 0; }
input:disabled { background: #f1f4f0 !important; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); }
textarea { resize: vertical; }
dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; color: var(--ink); border: 1px solid #cbdacd; border-radius: 16px; box-shadow: 0 18px 55px #18281f40; overflow: auto; }
dialog::backdrop { background: #182b23a0; }
.dialog-form { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.dialog-form header, .dialog-form footer { display: flex; justify-content: space-between; gap: 10px; padding: 15px 18px; background: #fbfcfa; border-bottom: 1px solid var(--line); }
.dialog-form header { align-items: flex-start; }
.dialog-form header p { color: var(--muted); margin-top: 3px; font-size: .86rem; }
.dialog-form footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.dialog-content { display: grid; gap: 12px; padding: 16px 18px; overflow-y: auto; }
dialog:has(.document-dialog) { width: min(880px, calc(100vw - 24px)); }
.document-dialog > header { align-items: center; }
.document-dialog > footer { flex-wrap: wrap; align-items: center; }
.document-dialog > footer > [role="status"] { flex: 1 1 100%; }
.document-dialog > footer > [role="status"]:empty { display: none; }
.document-paper { display: grid; gap: 9px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.print-heading { padding-top: 12px; border-top: 3px solid var(--green); }
.print-issuer { display: grid; gap: 10px; }
.print-issuer img { max-width: min(100%, 666px); max-height: 272px; object-fit: contain; }
.print-heading p, .document-recipient p { color: var(--muted); font-size: .87rem; }
.document-paper h2 { margin-top: 2px; font-size: 1.55rem; }
.document-recipient { overflow-wrap: anywhere; }
.document-recipient > small { display: block; }
.document-fiscal { padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.document-paper .table-scroll { border: 1px solid var(--line); border-radius: 7px; }
.document-paper table { min-width: 440px; }
.document-paper td, .document-paper th { padding: 7px 9px; overflow-wrap: anywhere; }
.document-paper th { background: var(--mint); }
.document-paper td:not(:first-child), .document-paper th:not(:first-child) { text-align: right; }
.document-totals { margin: 0 0 0 auto; width: min(100%, 270px); }
.document-totals > div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; }
.document-totals > div:last-child { border-radius: 6px; background: var(--mint); font-weight: 730; }
.document-totals dd { margin: 0; text-align: right; }
.document-email { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); }
.document-email > div { flex: 1 1 200px; }
.document-email p { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: grid; align-content: start; gap: 4px; min-width: 0; }
.profile-notes { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f5f8f3; }
.profile-notes dl { display: grid; gap: 8px; margin: 7px 0 0; }
.profile-notes dt { font-weight: 650; }
.profile-notes dd { margin: 2px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.field > span, .field > label, legend { font-size: .83rem; font-weight: 680; }
.date-control { position: relative; }
.date-control input[data-date-text] { padding-right: 36px; font-variant-numeric: tabular-nums; }
.date-control input.date-native { position: absolute; right: 10px; bottom: 0; padding: 0; width: 1px; height: 1px; min-height: 0; border: 0; opacity: 0; pointer-events: none; }
.date-picker { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--primary); }
.date-picker:hover { background: #edf3ea; }
.date-picker svg { width: 17px; height: 17px; }
fieldset, details { min-width: 0; margin: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
details summary { font-weight: 670; cursor: pointer; }
details .muted { margin: 8px 0; }
legend { padding-inline: 4px; }
.check-row { display: flex; align-items: center; min-height: 36px; gap: 9px; padding: 6px 0; cursor: pointer; }
.check-row > span { flex: 1; min-width: 0; }
.check-row small { display: block; }
.allocation { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(110px, 145px); align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.allocation:last-child { border-bottom: 0; }
.quote { background: #edf5ed; border-radius: 10px; padding: 10px 12px; }
.quote dl { display: grid; gap: 4px; margin: 0; }
.quote dl div, .receipt-total { display: flex; justify-content: space-between; gap: 7px; }
.quote dd { margin: 0; text-align: right; }
.quote dl div:last-child { border-top: 1px solid #d5e4d7; padding-top: 5px; font-weight: 750; }
.form-error { color: #7f2724; background: #fbedea; border-radius: 8px; padding: 8px 10px; font-size: .87rem; }
.toast { position: fixed; z-index: 4; right: 16px; bottom: 16px; max-width: min(410px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 9px; color: white; background: #234a3a; box-shadow: 0 4px 18px #12281c32; opacity: 0; pointer-events: none; }
.toast.visible { opacity: 1; }
.toast.error { background: #782f2b; }
.splash, .login { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 10px; padding: 20px; }
.splash img, .login img { width: 60px; }
.login-card { width: min(100%, 390px); display: grid; gap: 12px; padding: 26px; }
.login-card .eyebrow, .login-card .lede { margin: 0; }
@media (max-width: 1050px) {
  .layout { grid-template-columns: 185px minmax(0, 1fr); }
  .main, .topbar { padding-inline: 22px; }
  .appointment { grid-template-columns: 49px 39px minmax(105px, 1fr) auto; gap: 8px; }
  .appointment .actions { grid-column: 3 / -1; justify-content: flex-start; }
}
@media (max-width: 750px) {
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 2; top: auto; left: 0; right: 0; bottom: 0; height: auto; padding: 4px 5px max(4px, env(safe-area-inset-bottom)); }
  .sidebar .brand, .nav-label, .sidebar-foot, .workspace-label { display: none; }
  nav { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  nav a { flex-direction: column; gap: 3px; padding: 6px 1px; font-size: .69rem; }
  nav a svg { width: 18px; height: 18px; }
  .nav-config-full { display: none; }
  .nav-config-short { display: inline; }
  .topbar { min-height: 58px; padding: 7px 13px; }
  .mobile-brand { display: flex; line-height: 1.14; font-size: 1rem; gap: 7px; }
  .mobile-brand img { width: 34px; height: 34px; }
  .today { display: none; }
  .main { padding: 22px 13px 82px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .metrics { gap: 6px; margin-bottom: 13px; }
  .metric { padding: 9px 8px; border-radius: 11px; }
  .metric p { font-size: .73rem; }
  .metric strong { font-size: 1.49rem; }
  .metric small { font-size: .64rem; }
  .metric > span { width: 23px; height: 23px; border-radius: 6px; }
  .metric > span svg { width: 14px; height: 14px; }
  .month { padding: 0 9px 10px; gap: 4px; }
  .day { padding-inline: 5px; min-height: 37px; }
  .day-count { font-size: .64rem; padding-inline: 4px; }
  .calendar { margin-bottom: 13px; }
  .panel-head { padding: 13px 12px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .schedule-list { padding-inline: 12px; }
  .appointment .actions { gap: 5px; }
}
@media (max-width: 400px) {
  .metric > span { display: none; }
  .day { padding-inline: 4px; gap: 2px; }
  .day strong { font-size: .93rem; }
  .day-count { padding-inline: 3px; }
  nav a { font-size: .63rem; }
  .appointment { grid-template-columns: 43px 32px minmax(0, 1fr); gap: 6px; }
  .appointment .service-icon { width: 30px; height: 30px; }
  .appointment .badge, .appointment .actions { grid-column: 3; }
}

@media print {
  body:has(#dialog[open] .document-paper) { background: white; }
  body:has(#dialog[open] .document-paper) > :not(#dialog) { display: none !important; }
  #dialog[open]:has(.document-paper) {
    position: static; inset: auto; margin: 0; width: 100%; max-width: none; height: auto;
    max-height: none; overflow: visible; border: 0; box-shadow: none;
  }
  #dialog:has(.document-paper)::backdrop { display: none; }
  .document-dialog, .document-dialog .dialog-content, .document-paper { display: block; max-height: none; overflow: visible; padding: 0; border: 0; }
  .document-dialog > header, .document-dialog > footer, .document-email, .document-error { display: none !important; }
  .document-paper > * { margin-block: 0 8px; }
  .document-paper .table-scroll { overflow: visible; border: 0; }
  .document-paper table { min-width: 0; width: 100%; }
  .document-paper thead { display: table-header-group; }
  .document-paper tr, .document-totals { break-inside: avoid; }
  .document-paper .document-totals { margin-inline-start: auto; }
}

