:root {
  font-family: "DM Sans", sans-serif;
  color: #20251f;
  background: #f5f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #315c46;
  --green-dark: #264b38;
  --muted: #81877f;
  --line: #e9ebe5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 360px; min-height: 100vh; margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar {
  height: 76px;
  padding: 0 max(5.5vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbf9f0;
  border-bottom: 1px solid #eceee9;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: block; width: 58px; height: 38px; flex: none; object-fit: contain; }
.brand-copy { display: grid; gap: 3px; }
.brand-name { font: 800 15px/1.1 Manrope, sans-serif; letter-spacing: -.45px; }
.brand-subtitle { color: #8b9189; font-size: 9px; font-weight: 700; letter-spacing: 1.45px; }
.topbar-right { display: flex; align-items: center; gap: 21px; }
.community-status { display: flex; align-items: center; gap: 8px; color: #71786f; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #56a577; box-shadow: 0 0 0 3px #eaf4ed; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e9efe9; color: #42644e; font-size: 13px; font-weight: 700; }
.signed-in-user { color: #596257; font-size: 12px; font-weight: 600; }
.sign-out-button { min-height: 34px; }
.auth-screen { display: grid; min-height: 100vh; padding: 48px max(5.5vw, 28px); place-items: center; background: radial-gradient(ellipse at 10% 12%, #e8eee6 0, transparent 38%), #f5f6f2; }
.welcome-layout { display: grid; width: min(1050px, 100%); grid-template-columns: minmax(0, 1.08fr) minmax(340px, .82fr); align-items: center; gap: clamp(42px, 7vw, 92px); }
.welcome-intro { max-width: 520px; }
.welcome-logo { width: 90px; height: 62px; margin-bottom: 30px; object-fit: contain; }
.welcome-intro .eyebrow { margin-bottom: 12px; }
.welcome-intro h1 { max-width: 470px; margin-bottom: 16px; color: #233a2b; font-size: clamp(38px, 5vw, 58px); letter-spacing: -2.7px; }
.welcome-description { max-width: 440px; margin: 0; color: #6f786e; font-size: 15px; line-height: 1.8; }
.welcome-highlights { display: grid; gap: 20px; margin-top: 40px; }
.welcome-highlights > div { display: flex; align-items: center; gap: 13px; }
.welcome-highlight-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border: 1px solid #e0e8df; border-radius: 11px; background: #fff; color: var(--green); font-size: 18px; font-weight: 700; }
.welcome-highlights strong, .welcome-highlights small { display: block; }
.welcome-highlights strong { margin-bottom: 3px; color: #3d493d; font-size: 12px; }
.welcome-highlights small { color: #858d82; font-size: 11px; }
.welcome-access { padding: 30px; border: 1px solid #e8ebe5; border-radius: 14px; background: #fff; box-shadow: 0 15px 44px #1c32120c; }
.welcome-access-heading { margin-bottom: 22px; }
.welcome-access-heading .eyebrow { margin-bottom: 8px; }
.welcome-access-heading h2 { margin: 0 0 6px; color: #2b382d; font: 800 24px/1.3 Manrope, sans-serif; letter-spacing: -.8px; }
.welcome-access-heading p:last-child { margin-bottom: 0; color: #838b81; font-size: 12px; line-height: 1.5; }
.auth-choices { display: grid; gap: 10px; }
.auth-choice { display: grid; width: 100%; grid-template-columns: 39px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 13px 12px; border: 1px solid #e8ebe5; border-radius: 9px; background: #fff; color: inherit; text-align: left; transition: border-color .15s, background .15s; }
.auth-choice:hover { border-color: #b7c8b7; background: #fbfcfa; }
.auth-choice-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 9px; background: #edf3ed; color: var(--green); font-size: 17px; }
.auth-choice strong, .auth-choice small { display: block; }
.auth-choice strong { margin-bottom: 3px; color: #354336; font-size: 12px; }
.auth-choice small { color: #858d82; font-size: 10px; line-height: 1.45; }
.auth-choice-arrow { color: #788878; font-size: 17px; }
.auth-signup { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 20px; color: #81897f; font-size: 11px; }
.text-button, .auth-back-button { padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-size: 11px; font-weight: 700; }
.text-button:hover, .auth-back-button:hover { text-decoration: underline; }
.auth-form { display: grid; gap: 14px; }
.auth-form .field-group { display: grid; gap: 6px; }
.auth-form .field-group label { color: #535c51; font-size: 11px; font-weight: 600; }
.auth-form .field-group input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #e1e5dd; border-radius: 6px; }
.auth-form .field-group input:focus { border-color: #8eaa94; outline: 0; box-shadow: 0 0 0 3px #edf3ed; }
.auth-back-button { justify-self: start; margin-bottom: 3px; color: #737d71; }
.auth-success { margin: 0; color: #315c46; font-size: 12px; line-height: 1.45; }
.auth-card { display: grid; width: min(390px, 100%); gap: 16px; padding: 32px; border: 1px solid #e8ebe5; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px #1c32120c; }
.auth-logo { width: 90px; height: 58px; margin: 0 auto 4px; object-fit: contain; }
.auth-card .eyebrow, .auth-card h1, .auth-card .section-description { margin-bottom: 0; text-align: center; }
.auth-card h1 { font-size: 25px; }
.auth-card .field-group { display: grid; gap: 6px; }
.auth-card input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #e1e5dd; border-radius: 6px; }
.auth-submit { width: 100%; }
.auth-error { margin: 0; color: #a33c36; font-size: 12px; line-height: 1.45; }
.user-role-control { min-width: 120px; min-height: 32px; padding: 0 8px; border: 1px solid #e1e5dd; border-radius: 6px; background: #fff; color: #414941; font: inherit; font-size: 11px; }
.user-apartment { display: block; margin-top: 4px; color: #8a9187; font-size: 10px; }
.viewer [data-admin-only] { display: none !important; }
.main-content { width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 45px 0 25px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 9px; color: #849083; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font: 800 clamp(23px, 3vw, 30px)/1.25 Manrope, sans-serif; letter-spacing: -1.1px; }
.page-description { margin: 0; color: #777f75; font-size: 13px; }
.period-chip { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #5f695f; background: #fff; border: 1px solid #e8ebe4; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.period-chip svg { width: 16px; height: 16px; }
.period-chip input { width: 145px; padding: 0; border: 0; outline: 0; color: inherit; background: transparent; font: inherit; }
.period-chip input:focus-visible { outline: 2px solid #8eaa94; outline-offset: 3px; border-radius: 3px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 25px; }
.summary-card { min-height: 139px; padding: 17px 18px 15px; background: #fff; border: 1px solid #eaede7; border-radius: 10px; box-shadow: 0 2px 7px #1c32120a; }
.summary-top { display: flex; align-items: center; justify-content: space-between; }
.summary-label { color: #727a70; font-size: 12px; font-weight: 500; }
.summary-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; }
.summary-icon svg { width: 18px; height: 18px; }
.icon-purple { color: #8772b9; background: #f1eef8; }
.icon-green { color: #4e9470; background: #eaf4ed; }
.icon-blue { color: #6586bd; background: #edf2fa; }
.icon-amber { color: #bf9561; background: #f8f1e8; }
.summary-value { margin-top: 8px; font: 800 25px/1.2 Manrope, sans-serif; letter-spacing: -.9px; }
.summary-foot { margin-top: 5px; color: #9a9f98; font-size: 11px; }
.demo-note { margin: -11px 0 19px; color: #788174; font-size: 11px; line-height: 1.5; }
.demo-note strong { color: #56644f; font-weight: 700; }
.workspace-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; overflow: hidden; background: #fff; border: 1px solid #e8ebe5; border-radius: 11px; box-shadow: 0 3px 10px #1c321209; }
.tabs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 5px; min-height: 100%; padding: 18px 12px; border-right: 1px solid var(--line); }
.tab { position: relative; display: flex; width: 100%; min-height: 40px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: #7d847b; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.tab svg { width: 17px; height: 17px; }
.tab.is-active { background: #edf3ed; color: var(--green); }
.tab.is-active::after { position: absolute; top: 7px; bottom: 7px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); content: ""; }
.tab-count { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 10px; background: #f0f2ed; color: #777f74; font-size: 10px; font-weight: 700; }
.tab.is-active .tab-count { background: #edf3ed; color: var(--green); }
.tab-panel { grid-column: 2; grid-row: 1; min-width: 0; padding: 24px 25px 22px; }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.section-toolbar h2 { margin: 0 0 4px; font: 700 17px/1.3 Manrope, sans-serif; letter-spacing: -.35px; }
.section-description { margin: 0; color: #858b82; font-size: 12px; }
.primary-button, .secondary-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; transition: background .15s, transform .15s; }
.primary-button { background: var(--green); color: white; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:active { transform: translateY(1px); }
.primary-button svg { width: 16px; height: 16px; }
.secondary-button { border-color: #e5e8e1; background: white; color: #596257; }
.secondary-button:hover { background: #f6f7f4; }
.table-controls { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 21px 0 13px; }
.income-categories { display: flex; gap: 6px; margin-top: 20px; padding-bottom: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.income-category { display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #7d847b; font-size: 11px; font-weight: 600; cursor: pointer; }
.income-category:hover { background: #f6f7f4; }
.income-category.is-active { background: #edf3ed; color: var(--green); }
.income-category-count { display: inline-grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; border-radius: 9px; background: #f0f2ed; color: #777f74; font-size: 9px; }
.income-category.is-active .income-category-count { background: #fff; color: var(--green); }
.owners-list-heading { margin: 0 0 11px; color: #303a30; font: 700 14px/1.35 Manrope, sans-serif; }
.owner-subtabs { display: flex; gap: 6px; margin: 20px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.owner-subtab { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #7d847b; font-size: 12px; font-weight: 600; cursor: pointer; }
.owner-subtab:hover { background: #f6f7f4; }
.owner-subtab.is-active { background: #edf3ed; color: var(--green); }
.owner-subpanel[hidden] { display: none; }
.payment-status-control { display: flex; align-items: center; gap: 6px; }
.payment-status-select { min-width: 108px; height: 30px; padding: 0 8px; border: 1px solid #e1e5dd; border-radius: 6px; color: #414941; background: #fff; font: inherit; font-size: 11px; }
.payment-status-select:disabled { appearance: none; border-color: transparent; background: transparent; opacity: 1; }
.payment-status-edit, .payment-status-save { display: grid; width: 28px; height: 28px; padding: 5px; place-items: center; border: 1px solid #e5e8e1; border-radius: 5px; background: #fff; color: var(--green); cursor: pointer; }
.payment-status-save { color: #fff; border-color: var(--green); background: var(--green); }
.payment-status-edit:hover { background: #f6f7f4; }
.payment-status-save:hover { background: var(--green-dark); }
.payment-status-edit svg, .payment-status-save svg { width: 16px; height: 16px; }
.import-help, .import-status { margin: 12px 0 0; color: #858b82; font-size: 11px; line-height: 1.5; }
.import-status { color: var(--green); }
.search-field { display: flex; width: min(350px, 100%); height: 36px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e7eae4; border-radius: 7px; background: #fff; color: #93998f; }
.search-field:focus-within { border-color: #aabcae; box-shadow: 0 0 0 3px #edf3ed; }
.search-field svg { width: 16px; height: 16px; flex: none; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #363d35; background: transparent; font-size: 11px; }
.search-field input::placeholder { color: #a0a59e; }
.results-label { color: #979d94; font-size: 11px; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid #eceee9; border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
thead { background: #f8f9f6; }
th { height: 39px; padding: 0 14px; color: #8a9187; font-size: 9px; font-weight: 700; letter-spacing: .75px; }
td { height: 55px; padding: 0 14px; border-top: 1px solid #eff0ec; color: #626a60; font-size: 12px; }
tbody tr:hover { background: #fcfcfa; }
.owner-cell { display: flex; min-width: 168px; align-items: center; gap: 10px; color: #313830; font-weight: 600; }
.owner-avatar { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 50%; color: #4a7255; background: #edf3eb; font-size: 10px; font-weight: 700; }
.flat-type-cell { display: grid; gap: 3px; }
.flat-type-rent { color: #6c648b; }
.tenant-name { color: #858b82; font-size: 10px; }
.tenant-phone { color: #92988f; font-size: 10px; }
.owner-actions { display: flex; align-items: center; gap: 7px; }
.row-action-button { padding: 6px 9px; border: 1px solid #e5e8e1; border-radius: 5px; background: #fff; color: var(--green); font-size: 10px; font-weight: 600; }
.row-action-button:hover { background: #f6f7f4; }
.row-action-delete { color: #a14f45; }
.flat-number { color: #414941; font-weight: 600; }
.dues-amount, .income-amount { color: #3b443b; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-paid { color: #558164; background: #edf5ef; }
.status-not-paid { color: #a14f45; background: #f9eeec; }
.status-pending { color: #ae8353; background: #f8f1e8; }
.income-source { color: #373f36; font-weight: 600; }
.expense-description { display: block; margin-top: 3px; color: #92988f; font-size: 10px; }
.income-tag { display: inline-block; margin-left: 7px; padding: 3px 6px; border-radius: 4px; background: #f0f3ed; color: #748170; font-size: 9px; font-weight: 600; }
.align-right { text-align: right; }
td.align-right { color: #3b443b; font-weight: 700; }
.empty-state { min-height: 195px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #92998f; font-size: 12px; }
.empty-state:not([hidden]) { display: flex; }
.empty-state strong { color: #50594e; font: 700 14px Manrope, sans-serif; }
.empty-icon { display: grid; width: 36px; height: 36px; margin-bottom: 3px; place-items: center; border-radius: 50%; background: #f0f3ed; color: #67806a; font-size: 19px; }
.page-footer { display: flex; justify-content: center; gap: 8px; padding: 20px 0 0; color: #a0a69d; font-size: 10px; }
.footer-separator { color: #c4c9c1; }
.settings-form { margin-top: 23px; padding: 20px; border: 1px solid #eceee9; border-radius: 8px; background: #fcfcfa; }
.configuration-subtabs { display: flex; gap: 6px; margin: 20px 0 16px; padding-bottom: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.configuration-subtab { display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #7d847b; font-size: 11px; font-weight: 600; cursor: pointer; }
.configuration-subtab:hover { background: #f6f7f4; }
.configuration-subtab.is-active { background: #edf3ed; color: var(--green); }
.configuration-subtab[aria-selected="true"] .tab-count { background: #fff; color: var(--green); }
.configuration-subpanel[hidden] { display: none; }
.configuration-section-heading { margin: 0 0 10px; color: #303a30; font: 700 15px/1.35 Manrope, sans-serif; }
.category-add-form { display: flex; align-items: flex-end; gap: 10px; max-width: 560px; margin: 20px 0; }
.category-add-form .field-group { flex: 1; }
.category-name-input { width: min(360px, 100%); height: 34px; padding: 0 9px; border: 1px solid #e1e5dd; border-radius: 6px; color: #414941; background: #fff; font: inherit; font-size: 12px; }
.category-name-input:disabled { border-color: transparent; background: transparent; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-wide { grid-column: 1 / -1; }
.settings-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.save-confirmation { color: #558164; font-size: 11px; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 18px; }
.report-category { margin-top: 22px; }
.report-summary [hidden], .report-category[hidden] { display: none; }
.report-print-header { display: none; }
.report-category h3 { margin: 0 0 12px; color: #303a30; font: 700 15px/1.35 Manrope, sans-serif; }
.report-category tfoot { background: #f8f9f6; }
.report-category tfoot th { height: 44px; color: #3b443b; font-size: 11px; }
.report-metric { display: grid; gap: 8px; padding: 15px; border: 1px solid #eceee9; border-radius: 8px; background: #fcfcfa; }
.report-metric span { color: #7b8378; font-size: 11px; }
.report-metric strong { color: #303a30; font: 700 19px Manrope, sans-serif; }
.report-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 21px; padding: 15px; border: 1px solid #eceee9; border-radius: 8px; background: #fcfcfa; }
.report-period-select { width: 175px; }
.report-date-control { width: 155px; }
.report-filters .field-group { gap: 6px; }
.report-filters .field-group label { color: #737b71; font-size: 10px; }
.report-filters .field-group select, .report-filters .field-group input { height: 36px; font-size: 11px; }
.report-filters [hidden] { display: none; }
.report-filter-message { margin: 9px 0 0; color: #a25c4c; font-size: 11px; }
.report-filter-message[hidden] { display: none; }
.secondary-button:disabled { cursor: not-allowed; opacity: .5; }
.report-export-actions { display: flex; align-items: center; gap: 8px; }
.form-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid #e8ebe5; border-radius: 12px; box-shadow: 0 20px 60px #17251c30; }
.profile-dialog, #user-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; }
.owner-import-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; }
.form-dialog::backdrop { background: #1b251d66; backdrop-filter: blur(2px); }
.form-dialog form { padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.dialog-heading .eyebrow { margin-bottom: 6px; }
.dialog-heading h2 { margin: 0; font: 700 19px Manrope, sans-serif; letter-spacing: -.4px; }
.icon-button { width: 30px; height: 30px; border: 0; border-radius: 6px; background: #f3f4f0; color: #71786e; font-size: 22px; line-height: 1; }
.dialog-fields { display: grid; gap: 15px; }
.field-group { display: grid; gap: 6px; }
.field-group label { color: #535c51; font-size: 11px; font-weight: 600; }
.field-group input, .field-group select { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #e1e5dd; border-radius: 6px; outline: none; color: #333b32; background: #fff; font-size: 12px; }
.field-group input:focus, .field-group select:focus { border-color: #8eaa94; box-shadow: 0 0 0 3px #edf3ed; }
.tenant-fields { padding: 12px; border: 1px solid #eceee9; border-radius: 7px; background: #fcfcfa; }
.tenant-new-field { margin-top: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }

@media (max-width: 780px) {
  .auth-screen { padding: 38px 24px; }
  .welcome-layout { width: min(560px, 100%); grid-template-columns: 1fr; gap: 32px; }
  .welcome-intro { max-width: none; }
  .welcome-logo { width: 72px; height: 48px; margin-bottom: 20px; }
  .welcome-intro h1 { font-size: 42px; }
  .welcome-highlights { grid-template-columns: 1fr; gap: 13px; margin-top: 23px; }
  .welcome-access { padding: 25px; }
  .main-content { width: min(100% - 36px, 620px); padding-top: 33px; }
  .topbar { height: 66px; padding: 0 20px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card { min-height: 128px; }
  .community-status { display: none; }
  .workspace-card { grid-template-columns: 155px minmax(0, 1fr); }
  .tabs { padding-right: 9px; padding-left: 9px; }
  .tab-panel { padding-right: 16px; padding-left: 16px; }
}
@media (max-width: 520px) {
  .auth-screen { padding: 30px 18px; }
  .welcome-layout { gap: 24px; }
  .welcome-intro h1 { font-size: 36px; }
  .welcome-description { font-size: 13px; }
  .welcome-highlights { margin-top: 20px; }
  .welcome-highlight-icon { width: 35px; height: 35px; }
  .welcome-access { padding: 21px 17px; }
  .main-content { width: calc(100% - 28px); padding-top: 27px; }
  .topbar { height: auto; min-height: 66px; flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
  .topbar-right { flex: 1 1 100%; justify-content: flex-end; gap: 6px; }
  .signed-in-user { display: none; }
  #edit-profile-button, .change-password-button, .sign-out-button { min-height: 32px; padding: 0 8px; font-size: 10px; white-space: nowrap; }
  .brand-name { font-size: 13px; }
  .brand-mark { width: 46px; height: 32px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 19px; }
  .page-description { max-width: 280px; line-height: 1.5; }
  .summary-grid { gap: 9px; margin-bottom: 18px; }
  .summary-card { min-height: 119px; padding: 13px; }
  .summary-label { font-size: 11px; }
  .summary-icon { width: 27px; height: 27px; }
  .summary-value { font-size: 22px; }
  .workspace-card { display: block; }
  .tabs { min-height: 0; gap: 3px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tab { min-height: 36px; }
  .tab-panel { padding: 19px 14px 16px; }
  .section-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .toolbar-actions { flex-wrap: wrap; justify-content: flex-start; }
  .section-toolbar h2 { font-size: 16px; }
  .section-description { max-width: 220px; line-height: 1.45; }
  .primary-button { min-height: 35px; gap: 4px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
  .table-controls { margin-top: 17px; }
  .results-label { font-size: 10px; }
  th, td { padding-right: 11px; padding-left: 11px; }
  .settings-form { padding: 15px; }
  .category-add-form { align-items: stretch; flex-direction: column; }
  .settings-grid { grid-template-columns: 1fr; gap: 14px; }
  .settings-wide { grid-column: auto; }
  .report-summary { gap: 7px; }
  .report-metric { padding: 11px 9px; gap: 7px; }
  .report-metric span { font-size: 10px; }
  .report-metric strong { font-size: 15px; }
  .report-filters { gap: 10px; padding: 12px; }
  .report-period-select, .report-date-control { flex: 1 1 135px; width: auto; }
}

@media print {
  @page { margin: 16mm; }
  body { min-width: 0; background: #fff; }
  body * { visibility: hidden; }
  #reports-panel, #reports-panel * { visibility: visible; }
  #reports-panel { position: absolute; top: 0; left: 0; width: 100%; padding: 0; }
  .report-print-header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
  .report-print-header img { display: block; width: 105px; height: 72px; object-fit: contain; }
  .report-print-header h2 { margin: 0 0 5px; color: #264b38; font: 800 21px/1.25 Manrope, sans-serif; }
  .report-print-header p { margin: 0; color: #626a60; font-size: 11px; }
  .workspace-card { overflow: visible; border: 0; box-shadow: none; }
  .tabs, .report-filters, .report-export-actions, #report-filter-message { display: none !important; }
  .report-summary { break-inside: avoid; }
  .report-metric, .table-wrap { border-color: #d8ddd5; box-shadow: none; }
  table { white-space: normal; }
  tfoot { display: table-row-group; }
  th { color: #555; background: #f3f5f1 !important; print-color-adjust: exact; }
  td, th { padding-right: 10px; padding-left: 10px; }
}
