@font-face {
  font-family: Inter;
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #161819;
  --muted: #717b80;
  --green: #087b8d;
  --cyan: #16b9cf;
  --cyan-soft: #e5f8fb;
  --line: #e6ebed;
  --panel: #fff;
  --sidebar: #fff;
  --canvas: #f4f6f7;
  --radius: 24px;
  --sidebar-width: 252px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 3.1vw, 46px); font-weight: 550; line-height: 1.12; letter-spacing: -1.8px; }
h2, h3 { font-weight: 550; letter-spacing: -.4px; }
input, select, textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  max-width: 100%;
}
input::placeholder, textarea::placeholder { color: #627782; }
input:focus, select:focus, textarea:focus { border-color: #22a8bb; box-shadow: 0 0 0 3px #16b9cf1c; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #16a7bd; outline-offset: 4px; }
button, a, input, select { transition: background .16s, border-color .16s, color .16s, box-shadow .16s; }
::selection { background: #afeaf1; color: #10272b; }
.muted { color: var(--muted); line-height: 1.7; }
.eyebrow { color: #57787f; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 12px 18px; border-radius: 13px; font-size: 13px; font-weight: 550; white-space: nowrap; }
.primary { background: #17191a; color: #fff; box-shadow: 0 2px 3px #11111108; }
.primary:hover { background: #30373a; }
.primary > span:first-child { font-size: 18px; font-weight: 400; }
.secondary { color: #28383d; background: #fff; border: 1px solid #dae3e6; }
.secondary:hover { background: #eff9fb; border-color: #b3dce2; }
.danger { background: #b7473c; color: #fff; }
.danger:hover { background: #9d392f; }
.text-button { background: none; color: var(--green); padding: 6px 0; font-size: 12px; font-weight: 500; }
.text-button:hover { color: #045b69; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: #64757d; background: #fff; font-size: 22px; }
.icon-button:hover { background: var(--cyan-soft); border-color: #bde6ec; }
.small-dot { width: 6px; height: 6px; display: inline-block; flex-shrink: 0; border-radius: 50%; background: var(--cyan); }

/* A quiet workspace around a brighter, glass-like header. */
.app-layout { display: flex; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 3; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); padding: 29px 18px 0; overflow-y: auto; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.9px; white-space: nowrap; }
.brand img { width: 35px; height: 35px; border-radius: 11px; }
.brand-light { font-weight: 430; }
.workspace-label { display: flex; align-items: center; gap: 10px; margin: 31px 0 27px; border: 1px solid var(--line); border-radius: 15px; padding: 12px 10px; font-size: 11px; }
.workspace-label small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.workspace-label .small-dot { margin-left: auto; }
.workspace-avatar { width: 32px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #e8f7fa; color: #198597; font-size: 11px; font-weight: 650; }
.nav-label { color: #627782; font-size: 9px; font-weight: 550; letter-spacing: 1.5px; padding: 0 13px; margin-bottom: 12px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 45px; padding: 11px 12px; border-radius: 12px; background: transparent; color: #627078; text-align: left; font-size: 12px; font-weight: 480; }
.nav-item > span:first-child { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; font-size: 19px; }
.nav-icon svg { display: block; width: 19px; height: 19px; }
.nav-item:hover { background: #f0f7f8; color: #173a42; }
.nav-item.active { background: #171b1d; color: #fff; }
.nav-item.active .nav-icon { color: #79dfec; }
.nav-count { margin-left: auto; background: #e8f0f2; color: #56717a; font-size: 10px; padding: 3px 6px; border-radius: 6px; }
.active .nav-count { background: #39484e; color: #b4eff5; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.reminder-note { border: 1px solid #d9eef2; background: linear-gradient(130deg, #eafafd, #f8fcfd); padding: 18px; border-radius: 20px; margin-bottom: 22px; }
.reminder-symbol { display: block; color: #1392a7; font-size: 24px; margin-bottom: 13px; }
.reminder-note b { font-size: 12px; font-weight: 550; line-height: 1.8; }
.reminder-note p { color: #627782; font-size: 10px; line-height: 1.8; margin: 9px 0 14px; }
.sidebar-tag { display: inline-block; background: #fff; color: #167b8a; border: 1px solid #c6e8ed; font-size: 9px; padding: 5px 8px; border-radius: 7px; }
.docs-link { display: flex; justify-content: space-between; padding: 0 9px 21px; color: #627782; font-size: 11px; }
.docs-link:hover { color: #087b8d; }
.profile { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 78px; padding: 18px 0; border-top: 1px solid var(--line); background: transparent; color: #303a3f; text-align: left; font-size: 11px; }
.profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #edf1f3; color: #445761; font-size: 12px; }
.profile small { display: block; color: #627782; font-size: 9px; margin-top: 5px; }
.logout-icon { margin-left: auto; color: #627782; font-size: 18px; }
.main-shell { display: flex; flex: 1; flex-direction: column; min-width: 0; margin-left: var(--sidebar-width); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 76px; padding: 0 38px; border-bottom: 1px solid #e6ebed; font-size: 11px; color: #627782; }
.topbar b { color: #40545e; font-weight: 500; }
.breadcrumb { color: #627782; padding: 0 12px; }
.topbar-right { display: flex; align-items: center; gap: 9px; font-size: 10px; }
.timezone { border: 1px solid #dce4e8; border-radius: 7px; padding: 5px 7px; color: #627782; font-size: 9px; margin-left: 5px; }
.bell-button { display: flex; align-items: center; gap: 6px; min-height: 34px; border: 1px solid #dce7ea; padding: 7px 9px; margin-right: 5px; border-radius: 10px; color: #368392; background: #fff; }
.bell-button svg { width: 17px; height: 17px; }
.bell-button span { font-size: 10px; }
#main-content { width: 100%; max-width: 1660px; margin: 0 auto; flex: 1; padding: 30px 38px; }
.page-heading { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 208px; padding: 33px 34px; margin-bottom: 29px; border: 1px solid #dceef1; border-radius: 30px; overflow: hidden; background: radial-gradient(ellipse at 85% 60%, #b5edf4 0, #ddf6f9 27%, #f7fcfd 64%); }
.page-heading::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 290px; height: 290px; border: 1px solid #75ccdb66; border-radius: 50%; right: -65px; top: -115px; box-shadow: 0 0 0 27px #b1e9f02e, 0 0 0 62px #a5e4ed24; transform: rotate(-22deg); }
.page-heading > div { min-width: 0; max-width: 670px; }
.page-heading .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; margin-bottom: 15px; }
.page-heading .eyebrow::before { content: ''; height: 5px; width: 5px; border-radius: 50%; background: #0aa1b7; }
.page-heading .muted { max-width: 420px; font-size: 12px; margin-top: 14px; color: #627782; }
.page-heading .button { position: relative; align-self: flex-end; flex-shrink: 0; margin-bottom: 3px; }
.period-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.period-switcher { display: flex; align-items: center; gap: 12px; }
.period-switcher h2 { min-width: 122px; text-align: center; font-size: 15px; font-weight: 550; letter-spacing: -.3px; }
.period-heading .text-button { font-size: 11px; }
.period-heading > .muted { font-size: 11px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.summary-card { position: relative; min-width: 0; padding: 23px; border: 1px solid #e1e9ec; border-radius: 23px; background: #fff; }
.summary-card:first-child { background: linear-gradient(145deg, #e4f8fc, #f5fcfd); border-color: #d1edf3; }
.summary-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #627782; font-size: 10px; margin-bottom: 25px; }
.currency-label { display: inline-flex; align-items: center; gap: 8px; color: #4e646f; font-size: 11px; font-weight: 600; }
.currency-symbol { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; font-size: 14px; font-weight: 450; color: #16869b; background: #fff; border: 1px solid #d9eaf0; }
.summary-card:nth-child(2) .currency-symbol { background: #eef3fa; border-color: #e6edf5; color: #6a85ad; }
.summary-card:nth-child(3) .currency-symbol { background: #f2effa; border-color: #ece7f6; color: #627782; }
.summary-amount { font-size: clamp(25px, 2.5vw, 38px); font-weight: 550; letter-spacing: -1.4px; line-height: 1.2; white-space: nowrap; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.summary-amount small { font-size: .6em; font-weight: 400; color: #627782; margin-left: 7px; }
.summary-caption { color: #627782; font-size: 11px; line-height: 1.6; }
.summary-track { appearance: none; display: block; width: 100%; height: 4px; border: 0; border-radius: 3px; background: #edf2f4; overflow: hidden; margin: 23px 0 15px; color: #16afc7; accent-color: #16afc7; }
.summary-track::-webkit-progress-bar { background: #e6f0f3; }
.summary-track::-webkit-progress-value { background: #16afc7; border-radius: 3px; }
.summary-track::-moz-progress-bar { background: #16afc7; border-radius: 3px; }
.summary-card:nth-child(2) .summary-track { color: #627782; accent-color: #90abc9; }
.summary-card:nth-child(2) .summary-track::-webkit-progress-value { background: #90abc9; }
.summary-card:nth-child(2) .summary-track::-moz-progress-bar { background: #90abc9; }
.summary-card:nth-child(3) .summary-track { color: #627782; accent-color: #aa98c3; }
.summary-card:nth-child(3) .summary-track::-webkit-progress-value { background: #aa98c3; }
.summary-card:nth-child(3) .summary-track::-moz-progress-bar { background: #aa98c3; }
.summary-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; color: #627782; font-size: 9px; line-height: 1.5; }
.summary-bottom b { color: #4f6974; font-weight: 500; }
.notice { display: flex; align-items: center; gap: 12px; background: #f1f8fa; color: #5b7984; border: 1px solid #dfecef; border-radius: 15px; padding: 16px 19px; font-size: 11px; line-height: 1.7; margin-bottom: 23px; }
#due-notice { background: #fff8ec; border-color: #f0e5cf; color: #8f7442; }
.notice-symbol { font-size: 21px; line-height: 1; }
.notice b { font-weight: 600; }
.notice-detail { margin-left: auto; color: #9b7840; font-size: 10px; white-space: nowrap; }
.error-notice, .form-error { border-color: #f0d9d5; background: #fff1ef; color: #a8473a; }
.ledger { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.ledger-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 18px 20px; }
.status-tabs { display: flex; gap: 3px; }
.status-tab { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 9px 10px; background: none; color: #627782; font-size: 11px; white-space: nowrap; min-height: 34px; }
.status-tab span { min-width: 18px; font-size: 9px; padding: 2px 4px; border-radius: 5px; background: #f1f4f6; color: #627782; }
.status-tab.selected { background: #e8f8fb; color: #187f92; font-weight: 600; }
.status-tab.selected span { background: #d4f0f5; color: #2e92a3; }
.status-tab:hover { background: #f0f8fa; }
.ledger-filters { display: flex; align-items: center; gap: 9px; }
.search-field { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: #627782; }
.search-field input { width: 132px; min-height: 36px; padding: 8px 0; border: 0; background: none; box-shadow: none; font-size: 11px; }
.search-field span { font-size: 21px; }
.search-field:focus-within { border-color: #24a5b8; box-shadow: 0 0 0 3px #16b9cf12; }
.ledger-filters select { font-size: 10px; min-height: 37px; padding: 9px; border-radius: 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 15px 20px; color: #627782; background: #fcfdfd; font-size: 9px; font-weight: 500; letter-spacing: .5px; border-bottom: 1px solid var(--line); }
td { padding: 19px 20px; border-bottom: 1px solid #eef2f4; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafdfd; }
.payment-name { display: flex; align-items: center; gap: 11px; min-width: 172px; white-space: normal; }
.payment-name b { display: block; color: #3e515a; font-size: 12px; font-weight: 550; line-height: 1.55; }
.payment-name small { display: block; color: #627782; font-size: 9px; margin-top: 4px; }
.payment-icon { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 37px; border: 1px solid #dfedf0; border-radius: 11px; background: #f0f8fa; color: #627782; font-size: 17px; }
.payment-icon.usd { background: #f0f4fa; border-color: #e7edf5; color: #627782; }
.payment-icon.eur { background: #f5f1fa; border-color: #ede6f5; color: #627782; }
.amount-cell { font-size: 13px; font-weight: 550; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.amount-cell small { font-size: 11px; color: #627782; margin-left: 5px; font-weight: 400; }
.date-cell { font-size: 11px; color: #627782; }
.date-cell.late, .late-detail { color: #b77a51; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; padding: 6px 8px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.pill.paid { background: #edf7f3; color: #4b8c77; }
.pill.unpaid { background: #eef6fb; color: #6092b0; }
.pill.overdue { background: #fff1e9; color: #b77b52; }
.pill.archived { background: #f0f3f5; color: #627782; }
.row-action { min-height: 32px; padding: 7px 10px; border: 1px solid #cfebf0; border-radius: 9px; color: #228aa0; background: #f4fcfd; font-size: 10px; font-weight: 500; white-space: nowrap; }
.row-action:hover { background: #dff6fa; border-color: #b2e4ec; }
.row-action.edit { background: transparent; border-color: transparent; color: #627782; }
.row-action.edit:hover { background: #edf7fa; color: #278296; }
.row-action.delete { background: #fff; border-color: #efdfd9; color: #b47b64; }
.row-action.delete:hover { background: #fff3ee; }
.row-action-group { display: flex; align-items: center; gap: 7px; }
.ledger-footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 15px 20px; font-size: 10px; color: #627782; }
.bottom-caption { display: flex; justify-content: space-between; gap: 14px; margin-top: 19px; font-size: 10px; line-height: 1.7; color: #627782; }
.bottom-caption > span:first-child { display: flex; align-items: center; gap: 7px; }
.bottom-caption .small-dot { width: 4px; height: 4px; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 21px 38px; color: #627782; font-size: 10px; }
.footer-dot { padding: 0 6px; }
.empty-state { padding: 55px 25px; min-height: 180px; text-align: center; color: #627782; font-size: 12px; line-height: 1.9; }
.empty-state b { display: block; color: #5e7683; font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.empty-state .button { margin-top: 18px; }
.section-title { font-size: 16px; margin: 28px 0 17px; }
#users-table, #recurring-table { margin-top: 20px; }

/* Calendars, forecasts and notification channels share the same surfaces. */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 23px; overflow: hidden; background: #fff; }
.calendar-weekday { padding: 17px 7px; border-bottom: 1px solid var(--line); text-align: center; font-size: 10px; font-weight: 500; color: #627782; background: #fbfdfd; }
.calendar-day { min-width: 0; min-height: 128px; padding: 9px 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.blank { background: #fafcfd; }
.calendar-number { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; color: #627782; }
.calendar-day.today .calendar-number { background: #1ab0c6; color: #fff; border-radius: 9px; }
.calendar-item { display: block; width: 100%; padding: 7px 6px; margin-bottom: 4px; border-radius: 7px; overflow: hidden; text-align: left; text-overflow: ellipsis; background: #ecf8fb; color: #4b8b9b; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.calendar-item strong { display: block; font-weight: 550; }
.calendar-item.overdue { background: #fff2e9; color: #ab805a; }
.calendar-item.paid { background: #f0f5f6; color: #627782; }
.calendar-item.projection { border: 1px dashed #b9d6df; background: #f5fbfd; }
.calendar-day-total { display: block; width: 100%; text-align: left; background: none; padding: 6px 2px; font-size: 8px; color: #627782; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.calendar-day-total:hover { text-decoration: underline; }
.budget-toolbar { display: flex; gap: 17px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.budget-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #627782; }
.budget-year-label input { width: 94px; padding: 9px; min-height: 38px; }
.budget-toolbar select { min-height: 38px; padding: 9px; font-size: 11px; }
.budget-switch { display: flex; background: #e8eef1; border-radius: 12px; padding: 4px; }
.budget-switch .status-tab { font-size: 11px; padding: 8px 17px; }
.budget-switch .status-tab.selected { background: #fff; color: #2b7e91; box-shadow: 0 1px 5px #2339470a; }
.budget-toolbar .checkbox-label { margin-left: auto; font-size: 10px; }
.checkbox-label input { min-height: 0; width: 15px; height: 15px; box-shadow: none; accent-color: #159bb1; }
.budget-card-detail { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; color: #627782; font-size: 11px; }
.budget-card-detail b { color: #627782; font-weight: 500; margin-left: 5px; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.notification-toolbar p { font-size: 12px; }
.notification-toolbar .button { font-size: 11px; }
.browser-notice { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #eaf8fb; border: 1px solid #d4edf3; border-radius: 20px; padding: 21px 23px; margin-bottom: 23px; }
.browser-notice b { font-size: 13px; font-weight: 550; }
.browser-notice p { color: #627782; line-height: 1.7; font-size: 11px; margin-top: 7px; }
.browser-notice .button { font-size: 11px; max-width: 180px; white-space: normal; }
.notification-list { display: grid; gap: 13px; }
.notification-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 19px; padding: 21px; }
.notification-card.unread { border-left: 3px solid #46b9ce; }
.notification-card.read { background: #fafdfe; }
.notification-card h3 { font-size: 13px; line-height: 1.5; }
.notification-card p { color: #627782; font-size: 11px; margin: 7px 0; }
.notification-card small { color: #627782; font-size: 10px; }
.notification-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; margin-left: auto; min-width: 110px; }
.notification-actions .text-button { font-size: 10px; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.channel-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 23px; padding: 25px; }
.channel-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.channel-card h2 { font-size: 18px; }
.channel-card p { color: #627782; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.channel-card p b { color: #526f7e; font-weight: 500; }
.channel-card .button { font-size: 11px; margin-top: 20px; }
.channel-card > small { display: block; color: #627782; font-size: 10px; line-height: 1.7; margin-top: 14px; }
.audit-detail { min-width: 130px; max-width: 280px; white-space: normal; color: #627782; font-size: 10px; line-height: 1.7; }
.audit-detail small { display: block; color: #627782; font-size: 9px; margin-top: 5px; overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 29px 0 17px; }
.section-heading h2 { margin: 0; }
.section-heading input { width: 185px; font-size: 11px; padding: 9px; min-height: 37px; }
.audit-heading { margin-top: 0; }
.audit-heading p { font-size: 12px; margin-top: 8px; }
.audit-filters { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)) repeat(2, minmax(160px, 1.2fr)); gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.audit-filters label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--muted); font-size: 11px; }
.audit-filters input, .audit-filters select { width: 100%; min-width: 0; font-size: 12px; }
.audit-search-label { grid-column: span 2; }
.audit-filter-actions { grid-column: span 2; display: flex; align-items: end; justify-content: flex-end; gap: 10px; }
.audit-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 15px 3px; color: var(--muted); font-size: 10px; }
.audit-actor { max-width: 180px; overflow-wrap: anywhere; }
.audit-actor small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.audit-detail > b { color: var(--ink); }
.audit-before { color: var(--muted); }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 16px 0 26px; font-size: 11px; color: var(--muted); }
.audit-pagination > div { display: flex; align-items: center; gap: 12px; }
.audit-pagination .button { min-height: 36px; font-size: 11px; padding: 8px 12px; }
.audit-pagination button:disabled { cursor: default; }
.audit-deliveries { border-top: 1px solid var(--line); padding-top: 20px; }
.audit-deliveries > summary { cursor: pointer; font-size: 13px; color: var(--ink); line-height: 1.8; }
.audit-deliveries[open] > summary { margin-bottom: 20px; }
@media (max-width: 1100px) {
  .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .audit-filters { padding: 14px; gap: 12px 9px; }
  .audit-filters input, .audit-filters select { font-size: 11px; padding: 10px 8px; }
  .audit-filter-actions { justify-content: stretch; }
  .audit-filter-actions .button { flex: 1; min-width: 0; padding: 10px; }
  .audit-heading { align-items: flex-start; }
  .audit-heading .button { font-size: 11px; padding: 10px; }
  .audit-pagination { justify-content: center; }
  .audit-pagination > div { width: 100%; justify-content: space-between; gap: 8px; }
}

/* Native dialogs retain keyboard focus, ESC and server-side validation. */
dialog { width: 490px; max-width: calc(100vw - 28px); max-height: 90dvh; border: 1px solid #dce8ed; border-radius: 26px; box-shadow: 0 30px 100px #152e3a33; padding: 28px 30px; color: var(--ink); background: #fff; }
dialog::backdrop { background: #1c384b55; backdrop-filter: blur(5px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.modal-header .eyebrow { display: block; font-size: 9px; margin-bottom: 9px; }
.modal-header h2 { font-size: 25px; letter-spacing: -.8px; }
.modal-header .icon-button { border: 0; background: #f1f6f8; font-size: 23px; }
.modal-form { display: grid; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { color: #627782; font-size: 12px; font-weight: 500; }
.form-field input, .form-field select { width: 100%; font-size: 13px; }
.form-field small { color: #627782; font-size: 10px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 115px; gap: 13px; }
.form-info { background: #f0f8fa; color: #627782; border-radius: 13px; padding: 14px; font-size: 11px; line-height: 1.9; }
.form-info b { color: #4c7c8e; font-weight: 550; }
.form-error { padding: 13px; border-radius: 11px; font-size: 12px; line-height: 1.7; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 21px; margin-top: 3px; }
.modal-actions.split { justify-content: space-between; }
.confirm-copy { color: #627782; font-size: 13px; line-height: 1.9; }
.toast { position: fixed; z-index: 20; left: calc(50% + var(--sidebar-width) / 2); bottom: 26px; transform: translateX(-50%); max-width: calc(100% - 30px); padding: 15px 23px; border: 1px solid #425b66; border-radius: 14px; box-shadow: 0 10px 35px #1b344322; background: #1b2b32; color: #627782; font-size: 12px; line-height: 1.5; }
.toast.error { background: #994c43; border-color: #bb756c; }
.receipt-section { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 23px; }
.receipt-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.receipt-heading h3 { font-size: 14px; }
.receipt-heading span { color: #627782; font-size: 9px; }
.receipt-list { color: #627782; font-size: 11px; }
.receipt-item { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.receipt-item > span { font-size: 18px; color: #64a9bc; }
.receipt-item > div { min-width: 0; }
.receipt-item a { color: #28869e; word-break: break-word; font-size: 11px; line-height: 1.6; }
.receipt-item a:hover { text-decoration: underline; }
.receipt-item small { display: block; margin-top: 5px; color: #627782; font-size: 9px; }
.delete-link { margin-left: auto; color: #b17b68; font-size: 10px; flex-shrink: 0; }
.receipt-upload { margin-top: 20px; }
.receipt-upload label { display: block; color: #627782; font-size: 10px; margin-bottom: 9px; }
.receipt-upload > div { display: flex; align-items: center; gap: 8px; }
.receipt-upload input { width: 100%; min-width: 0; min-height: 35px; padding: 7px; font-size: 10px; }
.receipt-upload .button { min-height: 35px; font-size: 11px; padding: 9px 12px; }
.receipt-link-details { margin-top: 20px; }
.receipt-link-details summary { cursor: pointer; color: #4c8d9f; font-size: 11px; }
.receipt-link-details form { margin-top: 17px; gap: 12px; }
.receipt-link-details .button { justify-self: end; font-size: 11px; }
.receipt-empty { padding: 6px 0; font-size: 11px; }
.day-totals { display: grid; gap: 11px; }
.day-totals article { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 16px; border: 1px solid #dfedf2; border-radius: 15px; background: #f1fafc; }
.day-totals b { color: #627782; font-size: 11px; }
.day-totals strong { margin-left: auto; font-weight: 550; font-size: 23px; }
.day-totals span { width: 100%; font-size: 10px; color: #627782; }
.day-payment-list { margin-top: 20px; }
.day-payment { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; padding: 16px 2px; background: #fff; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.day-payment small { display: block; color: #627782; font-size: 10px; margin-top: 6px; }
.day-payment b { white-space: nowrap; font-size: 12px; font-weight: 500; color: #5190a4; }

/* The sign-in illustration is drawn locally; no third-party pixels or requests. */
.login-page { background: #f3f7f8; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; padding: 16px; gap: 16px; }
.login-form-side { display: flex; flex-direction: column; min-width: 0; padding: 27px 7% 20px; background: #fff; border: 1px solid #e7edef; border-radius: 28px; }
.brand-dark { color: #171c1f; }
.login-content { width: 100%; max-width: 370px; align-self: center; margin: auto 0; padding: 60px 0; }
.login-content .eyebrow { display: block; font-size: 9px; color: #627782; margin-bottom: 18px; }
.login-content h1 { font-size: 42px; font-weight: 550; letter-spacing: -1.8px; margin-bottom: 18px; }
.login-intro { font-size: 12px; color: #627782; }
.login-content form { display: flex; flex-direction: column; gap: 10px; margin-top: 33px; }
.login-content form label { font-size: 12px; color: #627782; margin-top: 8px; }
.login-content input { width: 100%; height: 48px; font-size: 13px; background: #fcfefe; border-radius: 13px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 84px; }
.password-wrap button { position: absolute; right: 14px; top: 12px; color: #627782; font-size: 10px; }
.login-submit { width: 100%; justify-content: space-between; margin-top: 15px; min-height: 48px; padding: 13px 17px; }
.login-help { margin-top: 25px; color: #627782; font-size: 11px; line-height: 1.9; }
.login-footer { display: flex; justify-content: space-between; gap: 12px; color: #627782; font-size: 10px; line-height: 1.7; }
.login-footer span { color: #627782; }
.login-art { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; padding: 50px 10%; border: 1px solid #cdebf1; border-radius: 28px; color: #15313e; background: radial-gradient(ellipse at 50% 34%, #b6eff9 0, #e0f6f9 48%, #f0f7f8 85%); }
.login-art::before { content: ''; position: absolute; z-index: -1; top: 10%; right: -15%; width: 125%; aspect-ratio: 1; border: 1px solid #67c8dc77; border-radius: 50%; box-shadow: 0 0 0 30px #91dae820, 0 0 0 70px #a6dfe918; }
.login-art::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 390px; height: 390px; border-radius: 50%; right: -130px; top: 7%; transform: rotate(-25deg); background: radial-gradient(circle at 32% 25%, #ffffffdd, #ffffff22 21%, #6ddae744 49%, #1aa5ba66 76%, #e0fcffcc 94%); box-shadow: inset 0 0 0 2px #ffffff66, inset -22px -10px 35px #089bb32b, 0 20px 55px #49b3c930; }
.art-top { display: flex; align-items: center; gap: 8px; color: #62a0af; font-size: 9px; font-weight: 550; letter-spacing: 1.7px; margin-bottom: 35px; }
.login-art h2 { font-size: clamp(27px, 3vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -1.6px; }
.login-art h2 em { font-style: normal; color: #1996ad; }
.art-calendar { position: relative; max-width: 430px; padding: 23px; margin-top: 35px; border: 1px solid #ffffffdd; border-radius: 22px; background: #ffffffb8; backdrop-filter: blur(15px); box-shadow: 0 20px 50px #3189a314, 7px 8px 0 #b1e9f142; transform: rotate(-3deg); }
.art-card-header { display: flex; justify-content: space-between; color: #627782; font-size: 8px; letter-spacing: 1px; }
.art-amount { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 24px; letter-spacing: -.9px; font-weight: 500; margin: 22px 0 18px; }
.art-check { width: 25px; height: 25px; display: grid; place-items: center; background: #d3f3f8; color: #2aa7bd; border-radius: 9px; font-size: 13px; }
.art-pay { display: flex; align-items: center; gap: 10px; border-top: 1px solid #dcecf1; padding: 17px 0; font-size: 10px; }
.art-icon { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 30px; background: #ecf7fa; border: 1px solid #dfedf2; border-radius: 9px; color: #6aa6ba; font-size: 15px; }
.art-pay small { display: block; color: #627782; font-size: 8px; line-height: 1.5; margin-top: 5px; }
.art-pay b { margin-left: auto; font-size: 11px; font-weight: 500; white-space: nowrap; }
.art-pay .pill { margin-left: auto; font-size: 8px; padding: 5px 7px; }
.art-bottom { display: flex; gap: 15px; margin-top: 45px; color: #627782; font-size: 10px; line-height: 1.9; }
.art-bottom > span { color: #5396ab; }

@media (min-width: 1600px) {
  :root { --sidebar-width: 270px; }
  .sidebar { padding-left: 26px; padding-right: 26px; }
  #main-content { padding: 36px 48px; }
  .topbar, .app-footer { padding-left: 48px; padding-right: 48px; }
  .summary-card { padding: 27px; }
  td { padding-top: 23px; padding-bottom: 23px; }
}
@media (min-width: 1001px) and (max-height: 940px) {
  .reminder-note { display: none; }
  .sidebar-bottom { padding-top: 23px; }
  .workspace-label { margin: 23px 0; }
  .nav-item { min-height: 43px; padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 1240px) {
  :root { --sidebar-width: 228px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 19px; }
  .topbar, .app-footer { padding-left: 26px; padding-right: 26px; }
  #main-content { padding: 26px; }
  .page-heading { padding: 28px; min-height: 210px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-heading .button { align-self: flex-start; margin: 0; }
  .page-heading .muted { max-width: 450px; }
  .summary-card { padding: 19px; }
  .summary-top > span:last-child { font-size: 9px; }
  .summary-bottom { flex-direction: column; }
  .ledger-toolbar { flex-wrap: wrap; }
  .ledger-filters { margin-left: auto; }
  .notice-detail { display: none; }
  td, th { padding-left: 15px; padding-right: 15px; }
  .login-content h1 { font-size: 35px; }
  .login-art { padding-left: 8%; padding-right: 8%; }
  .art-amount { font-size: 21px; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  :root { --sidebar-width: 82px; }
  .sidebar { align-items: center; padding: 24px 12px 0; }
  .sidebar .brand > span, .workspace-label, .nav-label, .sidebar .nav-count, .reminder-note, .docs-link, .profile > span:not(:first-child) { display: none; }
  .sidebar .brand { gap: 0; }
  .sidebar nav { width: 100%; margin-top: 34px; }
  .nav-item { justify-content: center; font-size: 0; padding: 12px 0; }
  .nav-item > span:first-child { width: 21px; height: 21px; }
  .nav-icon svg { width: 21px; height: 21px; }
  .sidebar-bottom { width: 100%; }
  .profile { justify-content: center; }
  .timezone { display: none; }
  .summary-top > span:last-child { display: none; }
  .summary-amount { font-size: 27px; }
  .channel-card { padding: 20px; }
  .channel-card-top { flex-wrap: wrap; }
  .login-footer span { display: none; }
  .art-pay { font-size: 9px; gap: 7px; }
  .art-pay b { font-size: 10px; }
}
@media (max-width: 1080px) {
  #occurrence-table { overflow: visible; }
  #occurrence-table table, #occurrence-table tbody { display: block; width: 100%; }
  #occurrence-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  #occurrence-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  #occurrence-table tr:last-child { border-bottom: 0; }
  #occurrence-table td { padding: 0; border: 0; min-width: 0; }
  #occurrence-table td:first-child { grid-column: 1/-1; margin-bottom: 4px; }
  #occurrence-table td:nth-child(2) { grid-column: 1; grid-row: 2; align-self: center; font-size: 16px; }
  #occurrence-table td:nth-child(3) { grid-column: 1; grid-row: 3; padding: 5px 0; font-size: 10px; }
  #occurrence-table td:nth-child(3)::before { content: 'Срок: '; color: #627782; }
  #occurrence-table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  #occurrence-table td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; padding: 5px 0; font-size: 10px; }
  #occurrence-table td:nth-child(5)::before { content: 'Оплата: '; color: #627782; }
  #occurrence-table td:last-child { grid-column: 1/-1; text-align: right; }
  #occurrence-table .payment-name { min-width: 0; }
  #occurrence-table .payment-name b { font-size: 13px; }
  #occurrence-table .row-action { font-size: 11px; padding: 9px 13px; }
}
@media (max-width: 720px) {
  :root { --sidebar-width: 0px; }
  .app-layout { display: block; }
  .sidebar { position: sticky; inset: auto; top: 0; width: 100%; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px; padding: 12px 16px 9px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .sidebar .brand { font-size: 20px; }
  .sidebar .brand img { width: 31px; height: 31px; }
  .workspace-label, .nav-label, .reminder-note, .docs-link, .profile > span:not(:first-child) { display: none; }
  .sidebar nav { display: flex; grid-column: 1/-1; grid-row: 2; gap: 5px; margin: 0 -3px; padding: 3px 3px 2px; overflow-x: auto; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-item { width: auto; flex-shrink: 0; min-height: 39px; gap: 7px; padding: 9px 12px; font-size: 11px; border-radius: 10px; }
  .nav-item > span:first-child { width: 17px; height: 17px; }
  .nav-icon svg { width: 17px; height: 17px; }
  .sidebar .nav-count { display: none; }
  .sidebar-bottom { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
  .profile { min-height: 0; width: auto; padding: 0; border: 0; }
  .profile-avatar { width: 32px; height: 32px; }
  .main-shell { margin-left: 0; }
  .topbar { min-height: 56px; padding: 0 18px; gap: 9px; font-size: 9px; }
  .topbar > span { font-size: 9px; }
  .breadcrumb { padding: 0 6px; }
  .topbar-right { font-size: 9px; gap: 6px; }
  .topbar-right > .small-dot, .timezone { display: none; }
  .bell-button { min-height: 30px; margin: 0; padding: 6px 7px; }
  .bell-button svg { width: 15px; height: 15px; }
  .bell-button span { font-size: 9px; }
  #main-content { padding: 20px 17px 25px; }
  .page-heading { border-radius: 23px; padding: 25px 23px; min-height: 217px; margin-bottom: 23px; gap: 20px; }
  h1 { font-size: 32px; letter-spacing: -1.3px; }
  .page-heading .eyebrow { font-size: 8px; margin-bottom: 12px; }
  .page-heading .muted { font-size: 11px; margin-top: 11px; max-width: 340px; }
  .page-heading .button { font-size: 11px; min-height: 40px; border-radius: 11px; padding: 10px 14px; }
  .page-heading::before { width: 220px; height: 220px; top: -100px; right: -80px; }
  .period-switcher { gap: 8px; }
  .period-switcher h2 { min-width: 105px; font-size: 13px; }
  .period-heading .text-button { font-size: 10px; }
  .period-heading > .muted { max-width: 120px; font-size: 9px; text-align: right; }
  .period-switcher .icon-button { height: 29px; width: 29px; }
  .summary-grid { gap: 9px; margin-bottom: 18px; }
  .summary-card { padding: 15px 12px; border-radius: 17px; }
  .summary-top { margin-bottom: 22px; }
  .summary-top > span:last-child { display: none; }
  .currency-label { font-size: 10px; gap: 6px; }
  .currency-symbol { width: 23px; height: 23px; font-size: 12px; border-radius: 8px; }
  .summary-amount { font-size: clamp(18px, 4.5vw, 28px); letter-spacing: -.8px; }
  .summary-amount small { margin-left: 3px; }
  .summary-caption { font-size: 8px; min-height: 27px; }
  .summary-track { margin: 15px 0 11px; height: 3px; }
  .summary-bottom { font-size: 8px; gap: 5px; }
  .notice { padding: 14px; border-radius: 13px; font-size: 10px; gap: 10px; margin-bottom: 19px; }
  .notice-symbol { font-size: 18px; }
  .ledger { border-radius: 18px; }
  .ledger-toolbar { padding: 13px; gap: 12px; }
  .status-tabs { width: 100%; justify-content: space-between; gap: 1px; }
  .status-tab { font-size: 10px; padding: 8px 7px; gap: 4px; }
  .status-tab span { min-width: 15px; font-size: 8px; padding: 2px 3px; }
  .ledger-filters { width: 100%; margin: 0; }
  .search-field { flex: 1; min-width: 0; }
  .search-field input { width: 100%; font-size: 10px; }
  .ledger-filters select { font-size: 10px; }
  .ledger-footer { padding: 13px 15px; font-size: 9px; }
  .ledger-footer > span:last-child { max-width: 155px; text-align: right; }
  #occurrence-table tr { padding: 17px; }
  .bottom-caption { font-size: 9px; gap: 13px; }
  .bottom-caption > span { max-width: 50%; }
  .app-footer { padding: 19px 18px; font-size: 9px; }
  .app-footer > span:last-child { display: none; }
  .calendar { border-radius: 16px; }
  .calendar-weekday { font-size: 9px; padding: 13px 3px; }
  .calendar-day { min-height: 99px; padding: 5px 3px; }
  .calendar-number { width: 22px; height: 22px; font-size: 10px; margin-bottom: 5px; }
  .calendar-item { padding: 4px 3px; border-radius: 4px; font-size: 7px; }
  .calendar-day-total { font-size: 7px; }
  .budget-toolbar { gap: 12px; }
  .budget-toolbar label { font-size: 10px; }
  .budget-toolbar .checkbox-label { font-size: 10px; margin-left: 0; }
  .budget-switch .status-tab { font-size: 11px; padding: 8px 14px; }
  .budget-card-detail { font-size: 9px; line-height: 1.7; gap: 7px; margin-top: 18px; }
  .budget-card-detail b { display: block; margin: 0; }
  .notification-toolbar { align-items: flex-start; }
  .notification-toolbar p { font-size: 10px; max-width: 210px; }
  .notification-toolbar .button { font-size: 10px; padding: 9px 12px; min-height: 35px; }
  .browser-notice { align-items: flex-start; padding: 16px; border-radius: 17px; }
  .browser-notice b { font-size: 12px; }
  .browser-notice p { font-size: 10px; }
  .browser-notice .button { min-height: 35px; font-size: 10px; max-width: 110px; padding: 9px 11px; }
  .notification-card { flex-wrap: wrap; padding: 17px; gap: 11px; }
  .notification-card > div:nth-child(2) { flex: 1; }
  .notification-card h3 { font-size: 12px; }
  .notification-card p { font-size: 11px; line-height: 1.6; }
  .notification-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; margin-left: 46px; }
  .channel-grid { grid-template-columns: 1fr; gap: 14px; }
  .channel-card { padding: 21px; border-radius: 20px; }
  .channel-card h2 { font-size: 17px; }
  .section-heading input { width: 150px; font-size: 10px; }
  .section-heading h2 { font-size: 14px; }
  dialog { padding: 24px; border-radius: 23px; }
  .modal-header h2 { font-size: 23px; }
  .modal-actions .button { font-size: 11px; padding: 11px 13px; }
  .form-row { grid-template-columns: minmax(0, 1fr) 105px; }
  .receipt-heading span { font-size: 8px; }
  .receipt-upload > div { flex-wrap: wrap; }
  .receipt-upload .button { margin-left: auto; }
  .toast { left: 50%; font-size: 11px; bottom: 18px; width: max-content; }
  .login-layout { display: block; padding: 10px; }
  .login-form-side { min-height: calc(100dvh - 20px); padding: 24px 24px 18px; border-radius: 23px; }
  .login-content { padding: 60px 0; max-width: 390px; }
  .login-content h1 { font-size: 38px; }
  .login-art { display: none; }
  .login-footer { font-size: 9px; }
}
@media (max-width: 380px) {
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar .brand { font-size: 18px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .topbar > span { max-width: 140px; }
  #main-content { padding-left: 12px; padding-right: 12px; }
  .page-heading { padding: 23px 19px; }
  h1 { font-size: 29px; }
  .summary-grid { gap: 6px; }
  .summary-card { padding: 13px 9px; }
  .currency-label { font-size: 9px; gap: 4px; }
  .currency-symbol { width: 21px; height: 21px; }
  .summary-amount { font-size: 18px; }
  .summary-bottom, .summary-caption { font-size: 8px; }
  .status-tab { font-size: 9px; padding: 8px 5px; }
  .status-tab span { font-size: 8px; }
  .login-footer span { max-width: 140px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
