.sidebar { overflow-y: auto; }
.operations-page {
  --ops-ink: #35483e;
  --ops-muted: #6f7b73;
  --ops-line: #e0e6df;
  --ops-green: #356e57;
  color: var(--ops-ink);
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
}
.operations-page .page-heading { gap: 18px; align-items: flex-start; }
.operations-page .page-heading h1 { color: var(--ops-ink); }
.operations-page .page-heading p:not(.eyebrow) { margin-top: 9px; max-width: 790px; }
.operations-page .button { min-height: 42px; font-size: 14px; border-color: #d9e1d8; color: var(--ops-ink); }
.operations-page .button:hover { background: #f0f5ef; border-color: #b7c9ba; }
.operations-page .button.primary { background: var(--ops-green); border-color: var(--ops-green); color: #fff; }
.operations-page .button.primary:hover { background: #285840; }
.operations-page .button.small { min-height: 38px; font-size: 13px; }
.operations-page[data-history-import] .button { max-width: 100%; white-space: normal; }
.operations-page[data-patient-import] .button { max-width: 100%; white-space: normal; }
.operations-page .yclients-import-steps { margin: 0 0 20px; flex-wrap: wrap; }
.operations-page[data-patient-import] .patient-import-headers { columns: 2; padding-left: 24px; }
.operations-page[data-patient-import] .patient-import-headers li { break-inside: avoid; overflow-wrap: anywhere; }
.operations-page[data-patient-import] .card-plan { overflow-wrap: anywhere; }
.operations-page[data-patient-import] [data-patient-import-filename] { overflow-wrap: anywhere; }
.operations-page[data-patient-import] .card-plan h3 { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.operations-page[data-patient-import] .ops-table td { white-space: pre-wrap; }
.operations-page[data-patient-import] .patient-import-reasons { margin: 22px 0; }
.operations-page[data-patient-import] .patient-import-reason { margin: 10px 0; border: 1px solid var(--ops-line); border-radius: 10px; overflow-wrap: anywhere; }
.operations-page[data-patient-import] .patient-import-reason > summary { padding: 13px 15px; cursor: pointer; }
.operations-page[data-patient-import] .patient-import-reason > summary span { display: block; margin-top: 4px; font-size: 13px; color: var(--ops-muted); }
.operations-page[data-patient-import] .patient-import-reason-body { padding: 0 15px 15px; }
.operations-page[data-patient-import] .patient-import-reason-body > p { margin: 12px 0; }
.operations-page[data-patient-import] .patient-import-source-group { margin: 18px 0; padding: 15px; border: 1px solid var(--ops-line); border-radius: 10px; min-width: 0; }
.operations-page[data-patient-import] .patient-import-source-group > p { margin: 7px 0 12px; }
.operations-page[data-patient-import] .patient-import-source-group .card-plan { margin: 12px 0 0; }
.operations-page[data-patient-import] .ops-pagination { flex-wrap: wrap; }
.operations-page[data-patient-import] select { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 700px) {
  .operations-page[data-patient-import] .patient-import-headers { columns: 1; }
  .operations-page[data-patient-import] .patient-import-reason-body { padding: 0 10px 12px; }
  .operations-page[data-patient-import] .patient-import-source-group { padding: 10px; }
}
.operations-page .button.danger { color: #a73c45; border-color: #e8ced0; }
.operations-page .button:focus-visible,
.operations-page input:focus-visible,
.operations-page select:focus-visible,
.operations-page textarea:focus-visible,
.operations-page a:focus-visible { outline-color: #98bca8; }
.operations-page input:focus,
.operations-page textarea:focus,
.operations-page select:focus { border-color: #6b9880; }
.operations-page input,
.operations-page select,
.operations-page textarea { color: var(--ops-ink); border-color: #d8e1d7; min-height: 44px; font-size: 15px; }
.operations-page label { font-size: 13px; color: #53665a; }
.operations-page h2 { font-size: 19px; line-height: 1.35; color: var(--ops-ink); }
.operations-page h3 { font-size: 16px; line-height: 1.4; color: var(--ops-ink); }
.operations-page .ops-muted { color: var(--ops-muted); font-size: 13px; }
.operations-page .ops-error { color: #a73947; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.operations-page .ops-error:not(:empty) { padding: 13px 15px; border: 1px solid #edcccf; background: #fff5f5; border-radius: 9px; margin: 12px 0; }
.operations-page .ops-success { color: #2f714f; font-size: 14px; }
.operations-page .ops-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin: 20px 0; }
.operations-page .ops-metric { background: #f5f7f1; border: 1px solid var(--ops-line); border-radius: 13px; padding: 19px; min-width: 0; }
.operations-page .ops-metric span { display: block; font-size: 13px; color: #657367; }
.operations-page .ops-metric strong { display: block; font-size: clamp(23px, 2.2vw, 30px); font-weight: 650; color: var(--ops-ink); margin: 9px 0 3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; }
.operations-page .ops-metric small { display: block; font-size: 12px; color: var(--ops-muted); margin-top: 7px; line-height: 1.45; }
.operations-page .ops-metric--accent { background: #f7f4ea; border-color: #e2d8be; }
.operations-page .ops-metric--warning { background: #fff7ec; border-color: #edddc1; }
.operations-page .ops-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 18px; margin: 0 0 16px; border: 1px solid var(--ops-line); background: #fff; border-radius: 13px; }
.operations-page .ops-toolbar > label { flex: 0 1 165px; min-width: 140px; }
.operations-page .ops-toolbar > .ops-search { flex: 1 1 245px; min-width: 200px; }
.operations-page .ops-toolbar > .ops-actions { margin-left: auto; }
.operations-page .ops-filter-hint { flex-basis: 100%; margin-top: -2px; }
.operations-page .ops-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.operations-page .ops-presets .button { min-height: 35px; font-size: 12px; }
.operations-page .ops-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.operations-page .ops-panel { margin: 18px 0; background: #fff; border: 1px solid var(--ops-line); border-radius: 14px; min-width: 0; overflow: hidden; }
.operations-page .ops-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding: 19px 20px; border-bottom: 1px solid var(--ops-line); }
.operations-page .ops-panel-head p { margin-top: 6px; }
.operations-page .ops-panel-body { padding: 20px; }
.operations-page .ops-panel-body > p + p { margin-top: 10px; }
.operations-page .ops-section-title { margin: 27px 0 9px; }
.operations-page .ops-section-title + .ops-summary { margin-top: 12px; }
.operations-page .ops-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.operations-page .ops-two-columns > .ops-panel { margin-top: 0; }
.operations-page .ops-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.operations-page .ops-tabs .button.active,
.operations-page .ops-tabs [aria-selected="true"] { background: #eaf2e7; border-color: #b9cdb7; color: #2e684a; }
.operations-page .ops-line-row { display: grid; grid-template-columns: minmax(0, 1fr) 145px auto; align-items: end; gap: 12px; padding: 13px 0; }
.operations-page .ops-dialog { min-width: 0; }
.operations-page .ops-notice { padding: 17px 19px; background: #f4f6ef; border: 1px solid #dce6d7; border-radius: 11px; margin: 16px 0; font-size: 14px; }
.operations-page .ops-notice p { margin-top: 7px; }
.operations-page .ops-notice.is-warning { background: #faf6eb; border-color: #e5dabe; }
.operations-page .ops-notice.is-error { background: #fff4f4; border-color: #edcfd2; }
.operations-page .ops-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; background: #edf4ed; color: #477154; border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 550; line-height: 1.4; overflow-wrap: normal; }
.operations-page .ops-status.is-warning { background: #fbf0da; color: #956c29; }
.operations-page .ops-status.is-error { background: #fbe9eb; color: #a44c58; }
.operations-page .ops-status.is-muted { background: #eff1ee; color: #717d73; }
.operations-page .ops-empty { padding: 31px 24px; text-align: center; color: var(--ops-muted); font-size: 14px; }
.operations-page .ops-empty strong { display: block; color: var(--ops-ink); font-size: 17px; margin-bottom: 8px; }
.operations-page .ops-empty .button { margin-top: 15px; }
.operations-page .ops-table-wrap { max-width: 100%; overflow-x: auto; }
.operations-page .ops-table { width: 100%; border-collapse: collapse; }
.operations-page .ops-table th { background: #f7f8f4; font-size: 12px; color: #68776b; line-height: 1.45; }
.operations-page .ops-table td { font-size: 14px; color: var(--ops-ink); line-height: 1.55; overflow-wrap: anywhere; }
.operations-page .ops-table th,
.operations-page .ops-table td { padding: 15px 18px; border-color: #e9eee6; vertical-align: top; }
.operations-page .ops-table th:first-child,
.operations-page .ops-table td:first-child { padding-left: 20px; }
.operations-page .ops-table .ops-numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.operations-page .ops-table .ops-cell-main { min-width: 150px; }
.operations-page .ops-cell-value { min-width: 0; overflow-wrap: anywhere; }
.operations-page .ops-table .ops-cell-stack > * { display: block; }
.operations-page .ops-table .ops-cell-stack > * + * { margin-top: 5px; }
.operations-page .ops-table .ops-cell-stack > .ops-status { display: inline-flex; }
.operations-page .ops-patient-link { border: 0; background: transparent; color: #2f7050; font: inherit; font-weight: 600; line-height: 1.5; padding: 0; text-align: left; text-decoration: underline; text-decoration-color: #bad0bd; text-underline-offset: 3px; white-space: normal; cursor: pointer; }
.operations-page .ops-patient-link:hover { color: #1e4e35; text-decoration-color: currentColor; }
.operations-page .ops-pagination { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 15px 20px; border-top: 1px solid var(--ops-line); }
.operations-page .ops-asof { margin-top: 18px; font-size: 12px; color: var(--ops-muted); }
.operations-page .ops-occupancy { min-width: 122px; }
.operations-page .ops-occupancy strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.operations-page .ops-track { display: block; height: 6px; border-radius: 8px; background: #edf1e8; margin-top: 7px; overflow: hidden; }
.operations-page .ops-track > i { height: 100%; display: block; background: #7caa8b; border-radius: inherit; }
.operations-page .ops-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.operations-page .ops-form-grid > label { min-width: 0; }
.inventory-card .inventory-card-section { min-width: 0; padding: 0; border: 0; margin: 0 0 24px; }
.inventory-card .inventory-card-section legend { padding: 0; margin-bottom: 14px; font-size: 16px; font-weight: 650; color: var(--ops-ink); }
.inventory-card .inventory-conversion, .inventory-card .inventory-cost { min-width: 0; align-self: center; overflow-wrap: anywhere; }
.inventory-card .inventory-conversion strong, .inventory-card .inventory-cost strong { display: block; margin: 5px 0; font-size: 15px; }
.inventory-card .inventory-cost > span { font-size: 12px; color: var(--ops-muted); }
.inventory-card .inventory-unit-note { margin-top: 10px; }
.inventory-card .inventory-weight { border-top: 1px solid var(--line); padding-top: 16px; }
.inventory-card .inventory-weight summary { cursor: pointer; margin-bottom: 14px; font-weight: 550; }
.inventory-card > .check-label { margin-top: 18px; }
.operations-page .ops-form-grid small { display: block; font-size: 12px; margin-top: 7px; color: var(--ops-muted); font-weight: 400; }
.operations-page .ops-booking-form fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.operations-page .ops-booking-form legend { font-weight: 650; font-size: 19px; margin-bottom: 16px; padding: 0; color: var(--ops-ink); }
.operations-page .ops-selection-tools { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.operations-page .ops-selection-tools .ops-muted { margin-left: auto; }
.operations-page .ops-choices { max-height: 455px; overflow: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.operations-page .ops-choice-group + .ops-choice-group { margin-top: 21px; }
.operations-page .ops-choice-group h3 { padding: 0 0 9px; border-bottom: 1px solid #e6ece2; margin-bottom: 4px; font-size: 14px; }
.operations-page .ops-choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 5px; color: var(--ops-ink); font-size: 14px; cursor: pointer; border-radius: 7px; }
.operations-page .ops-choice:hover { background: #f6f8f3; }
.operations-page .ops-choice input { flex: 0 0 19px; width: 19px; height: 19px; min-height: 0; margin: 2px 0 0; accent-color: var(--ops-green); }
.operations-page .ops-choice > span { flex: 1; min-width: 0; }
.operations-page .ops-choice small { display: block; font-size: 12px; color: var(--ops-muted); font-weight: 400; margin-top: 3px; }
.operations-page .ops-choice-count { color: #57775e; font-weight: 550; }
.operations-page .ops-save-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid #dce5d8; background: #f7f9f3; padding: 17px 20px; border-radius: 11px; }
.operations-page .ops-save-bar .ops-save-message { flex: 1; min-width: 180px; }
.operations-page .ops-loyalty-cards { min-width: 175px; }
.operations-page .ops-loyalty-card + .ops-loyalty-card { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ebeee7; }
.operations-page .ops-loyalty-card p { margin-top: 4px; }
.operations-page .ops-policy { margin: 0; padding-left: 21px; }
.operations-page .ops-policy li + li { margin-top: 9px; }
.operations-page .ops-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.operations-page [aria-busy="true"] { cursor: progress; }

@media (max-width: 1050px) {
  .operations-page .ops-two-columns { grid-template-columns: 1fr; gap: 0; }
  .operations-page .ops-table th,
  .operations-page .ops-table td { padding: 13px 12px; }
  .operations-page .ops-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .operations-page { font-size: 15px; }
  .operations-page .page-heading { flex-direction: column; gap: 12px; }
  .operations-page .page-heading h1 { font-size: 25px; }
  .operations-page .page-heading .page-actions { width: 100%; }
  .operations-page .page-heading .page-actions .button { flex: 1; }
  .operations-page .ops-toolbar { padding: 15px; gap: 12px; }
  .operations-page .ops-toolbar > label { flex: 1 1 calc(50% - 12px); min-width: 0; }
  .operations-page .ops-toolbar > .ops-search { flex-basis: 100%; }
  .operations-page .ops-toolbar > .ops-actions { width: 100%; margin-left: 0; }
  .operations-page .ops-toolbar > .ops-actions .button { flex: 1; }
  .operations-page input,
  .operations-page select,
  .operations-page textarea { font-size: 16px; }
  .operations-page .ops-summary { gap: 10px; margin: 16px 0; }
  .operations-page .ops-metric { padding: 15px 13px; }
  .operations-page .ops-metric strong { font-size: 23px; }
  .operations-page .ops-metric small { font-size: 12px; }
  .operations-page .ops-panel-head,
  .operations-page .ops-panel-body { padding: 17px 16px; }
  .operations-page .ops-panel-head h2 { font-size: 18px; }
  .operations-page .ops-panel { border-radius: 12px; }
  .operations-page .ops-notice { padding: 15px 16px; }
  .operations-page .ops-table-wrap { overflow: visible; }
  .operations-page .ops-table,
  .operations-page .ops-table tbody { display: block; width: 100%; }
  .operations-page .ops-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .operations-page .ops-table tbody tr { display: block; border: 1px solid #e3e9df; border-radius: 11px; padding: 5px 14px; margin: 13px 12px; background: #fff; }
  .operations-page .ops-table tbody td,
  .operations-page .ops-table tbody td:first-child { display: grid; grid-template-columns: minmax(94px, 34%) minmax(0, 1fr); column-gap: 12px; width: 100%; border: 0; padding: 10px 0; font-size: 14px; min-width: 0; }
  .operations-page .ops-table tbody td + td { border-top: 1px solid #f0f3ed; }
  .operations-page .ops-table tbody td::before { content: attr(data-label); display: block; font-size: 12px; color: #758074; line-height: 1.55; font-weight: 500; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .operations-page .ops-table .ops-numeric { text-align: left; white-space: normal; }
  .operations-page .ops-table .ops-cell-main,
  .operations-page .ops-table .ops-loyalty-cards { min-width: 0; }
  .operations-page .ops-occupancy { min-width: 0; }
  .operations-page .ops-pagination { padding: 14px 15px; gap: 11px; }
  .operations-page .ops-pagination > .ops-actions { width: 100%; }
  .operations-page .ops-pagination .button { flex: 1; }
  .operations-page .ops-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .operations-page .ops-line-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .operations-page .ops-line-row > :first-child { grid-column: 1 / -1; }
  .operations-page .ops-choices { max-height: 420px; }
  .operations-page .ops-choice { padding: 13px 2px; font-size: 15px; }
  .operations-page .ops-choice small { font-size: 13px; }
  .operations-page .ops-save-bar { padding: 16px; }
  .operations-page .ops-save-bar .button { width: 100%; }
  .operations-page .ops-asof { font-size: 12px; }
}
@media (max-width: 390px) {
  .operations-page .ops-summary { grid-template-columns: 1fr; }
  .operations-page .ops-table tbody td,
  .operations-page .ops-table tbody td:first-child { grid-template-columns: 1fr; gap: 4px; }
  .operations-page .ops-toolbar > label { flex-basis: 100%; }
}

.operations-page .ops-analytics-tabs,
.operations-page .ops-finance-tabs { margin: 0 0 20px; }
.operations-page .ops-analytics-tabs .button,
.operations-page .ops-finance-tabs .button { min-height: 44px; }
.operations-page [role="tabpanel"]:focus-visible { outline: 2px solid #98bca8; outline-offset: 5px; border-radius: 10px; }
.operations-page .ops-comparison { min-width: 0; }
.operations-page .ops-comparison-scope { margin-bottom: 12px; }
.operations-page .ops-comparison-form { padding: 20px; border: 1px solid var(--ops-line); border-radius: 13px; background: #fff; }
.operations-page .ops-profit-selectors { display: grid; grid-template-columns: minmax(160px, .75fr) minmax(0, 2fr); gap: 18px; align-items: end; margin-bottom: 18px; }
.operations-page .ops-profit-selectors > label { min-width: 0; }
.operations-page .ops-profit-selectors select { width: 100%; min-width: 0; }
.operations-page [data-ops-comparison-staff-field][hidden] { display: none; }
.operations-page .ops-comparison-form-grid { display: grid; grid-template-columns: minmax(160px, .75fr) minmax(0, 2fr); gap: 18px; align-items: end; }
.operations-page .ops-comparison-form-grid > label { min-width: 0; }
.operations-page .ops-comparison-period-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.operations-page .ops-comparison-period-inputs label { min-width: 0; }
.operations-page .ops-comparison-check { display: flex; align-items: flex-start; gap: 11px; padding: 18px 0; font-size: 14px; cursor: pointer; }
.operations-page .ops-comparison-check input { width: 19px; height: 19px; min-height: 0; margin: 2px 0 0; flex: 0 0 19px; accent-color: var(--ops-green); }
.operations-page .ops-comparison-check span { min-width: 0; }
.operations-page .ops-comparison-check small { display: block; color: var(--ops-muted); font-size: 13px; font-weight: 400; margin-top: 5px; }
.operations-page .ops-comparison-loading { min-height: 20px; margin: 14px 0; }
.operations-page .ops-comparison-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.operations-page .ops-comparison-period { min-width: 0; padding: 19px; border: 1px solid var(--ops-line); border-radius: 12px; background: #f7f8f2; }
.operations-page .ops-comparison-period:last-child { background: #f5f3e9; border-color: #e4dcbf; }
.operations-page .ops-comparison-period-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.operations-page .ops-comparison-period h3 { font-size: 20px; }
.operations-page .ops-comparison-period > p { margin-top: 10px; }
.operations-page .ops-comparison-dates { font-size: 14px; }
.operations-page .ops-comparison-dates strong { font-weight: 550; }
.operations-page .ops-comparison-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.operations-page .ops-comparison-chart { min-width: 0; padding: 18px 20px; border: 1px solid var(--ops-line); border-radius: 12px; background: #fff; }
.operations-page .ops-comparison-chart h3 { margin-bottom: 16px; }
.operations-page .ops-comparison-bar + .ops-comparison-bar { margin-top: 15px; }
.operations-page .ops-comparison-bar > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ops-muted); }
.operations-page .ops-comparison-bar strong { color: var(--ops-ink); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.operations-page .ops-comparison-bar-track { display: block; height: 8px; border-radius: 6px; background: #f0f2ea; margin-top: 7px; overflow: hidden; }
.operations-page .ops-comparison-bar-track i { display: block; height: 100%; border-radius: inherit; }
.operations-page .ops-comparison-bar-track .is-base { background: #8cad91; }
.operations-page .ops-comparison-bar-track .is-comparison { background: #c5ab71; }
.operations-page .ops-comparison-table th:first-child { width: 31%; }
.operations-page .ops-comparison-table td:last-child { min-width: 125px; }
.operations-page .ops-comparison-table td p { margin-top: 5px; white-space: normal; }
.operations-page .ops-comparison-table td strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.operations-page .ops-comparison-table .ops-comparison-number { white-space: nowrap; }
.operations-page .ops-comparison-definitions { margin: 20px 0; border: 1px solid var(--ops-line); border-radius: 11px; padding: 16px 19px; background: #fff; }
.operations-page .ops-comparison-definitions summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.operations-page .ops-comparison-definitions > div { margin-top: 15px; font-size: 14px; }
.operations-page .ops-comparison-definitions p + p { margin-top: 12px; }
.operations-page .ops-profit-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; }
.operations-page .ops-profit-table .ops-profit-result-row { background: #f4f7ee; }
.operations-page .ops-profit-table .ops-profit-result-row td { border-top: 2px solid #d4dfcd; }
.operations-page .ops-profit-quality { margin: 12px 0 24px; border: 1px solid #e5dabe; border-radius: 12px; background: #fff; overflow: hidden; }
.operations-page .ops-profit-quality .ops-notice { margin: 0; border: 0; border-bottom: 1px solid #e5dabe; border-radius: 0; }
.operations-page .ops-profit-quality-clear { margin: 12px 0 20px; }
.operations-page .ops-profit-quality-table th:first-child { width: 62%; }
.operations-page .ops-profit-staff-table th:first-child { width: 22%; }
.operations-page .ops-profit-staff-table th:not(:first-child) { width: 19.5%; }
.operations-page .ops-profit-staff-table .ops-cell-stack > strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.operations-page .ops-profit-pair { display: grid; gap: 11px; min-width: 0; }
.operations-page .ops-profit-pair > div { display: grid; gap: 3px; min-width: 0; }
.operations-page .ops-profit-pair span { font-size: 12px; color: var(--ops-muted); line-height: 1.4; }
.operations-page .ops-profit-pair strong { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.operations-page .ops-profit-reconciliation { margin: 22px 0; }

@media (max-width: 760px) {
  .operations-page .ops-analytics-tabs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 8px; }
  .operations-page .ops-analytics-tabs .button { white-space: normal; line-height: 1.35; padding: 10px 9px; }
  .operations-page .ops-finance-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .operations-page .ops-finance-tabs .button { white-space: normal; line-height: 1.35; padding: 10px 9px; }
  .operations-page .ops-comparison-form { padding: 16px; }
  .operations-page .ops-profit-selectors { grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
  .operations-page .ops-comparison-form-grid { grid-template-columns: 1fr; gap: 15px; }
  .operations-page .ops-comparison-period-inputs { gap: 12px; }
  .operations-page .ops-comparison-period-inputs input { max-width: 100%; }
  .operations-page .ops-comparison-form .ops-actions { gap: 10px; }
  .operations-page .ops-comparison-form .ops-actions .button { flex: 1 1 auto; }
  .operations-page .ops-comparison-check { font-size: 14px; }
  .operations-page .ops-comparison-periods,
  .operations-page .ops-comparison-charts { grid-template-columns: 1fr; gap: 12px; }
  .operations-page .ops-comparison-period { padding: 17px 16px; }
  .operations-page .ops-comparison-period h3 { font-size: 19px; }
  .operations-page .ops-comparison-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 6px 14px; }
  .operations-page .ops-comparison-table tbody td,
  .operations-page .ops-comparison-table tbody td:first-child { display: block; padding: 12px 0; white-space: normal; }
  .operations-page .ops-comparison-table tbody td:first-child { grid-column: 1 / -1; }
  .operations-page .ops-comparison-table tbody td:first-child::before { display: none; }
  .operations-page .ops-comparison-table tbody td::before { margin-bottom: 5px; font-size: 12px; }
  .operations-page .ops-comparison-table td:last-child { min-width: 0; }
  .operations-page .ops-comparison-table td strong { font-size: 15px; overflow-wrap: anywhere; }
  .operations-page .ops-comparison-table td .ops-muted { font-size: 12px; line-height: 1.5; }
  .operations-page .ops-profit-table tbody .ops-profit-result-row { background: #f4f7ee; }
  .operations-page .ops-profit-table .ops-comparison-number { white-space: normal; }
  .operations-page .ops-profit-table .ops-profit-result-row td { border-top-width: 1px; }
  .operations-page .ops-profit-table .ops-profit-result-row td:first-child { border-top: 0; }
  .operations-page .ops-profit-staff-table tbody td,
  .operations-page .ops-profit-staff-table tbody td:first-child { display: block; }
  .operations-page .ops-profit-staff-table tbody td::before { margin-bottom: 8px; }
  .operations-page .ops-profit-staff-table tbody td:first-child::before { display: none; }
  .operations-page .ops-profit-staff-table .ops-patient-link { font-size: 16px; }
  .operations-page .ops-profit-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .operations-page .ops-profit-pair strong { font-size: 15px; }
  .operations-page .ops-profit-quality-table tbody td,
  .operations-page .ops-profit-quality-table tbody td:first-child { grid-template-columns: minmax(82px, 34%) minmax(0, 1fr); }
  .operations-page .ops-profit-quality-table tbody td:first-child { display: block; }
  .operations-page .ops-profit-quality-table tbody td:first-child::before { display: none; }
}
@media (max-width: 420px) {
  .operations-page .ops-comparison-period-inputs { grid-template-columns: 1fr; }
  .operations-page .ops-comparison-form .ops-actions { flex-direction: column; align-items: stretch; }
}
