.ops-page { width: 100%; min-width: 0; box-sizing: border-box; margin: 0; padding: 28px 32px 48px; color: var(--theme-text, #142037); }
.ops-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; border-bottom: 1px solid var(--theme-border, #dce6ef); padding-bottom: 12px; }
.ops-tabs a { color: var(--theme-muted, #586e89); text-decoration: none; padding: 11px 13px; border-radius: 9px; font-size: 14px; font-weight: 650; }
.ops-tabs a[aria-current] { color: var(--theme-accent, #2572a4); background: var(--theme-surface-raised, #e8f3f8); }
.ops-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.ops-heading h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
.ops-heading p, .ops-muted { color: var(--theme-muted, #586e89); line-height: 1.6; }
.ops-heading p { margin: 0; }
.ops-heading > div, .ops-reminder > span, .ops-event > div { min-width: 0; }
.ops-site-grid, .ops-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 18px; }
.ops-card { min-width: 0; background: var(--theme-surface, #fff); border: 1px solid var(--theme-border, #dce6ef); border-radius: 16px; padding: 24px; box-shadow: 0 5px 18px #10294006; overflow-wrap: anywhere; }
.ops-card h2 { font-size: 20px; line-height: 1.35; margin: 16px 0 8px; }
.ops-card p { line-height: 1.6; }
.ops-site { display: flex; flex-direction: column; border-top-width: 3px; }
.ops-site > h2 { min-height: 2.7em; }
.ops-site .ops-observation { min-height: 3.2em; font-size: 14px; margin: 6px 0 0; }
.ops-observation > span, .ops-observation > time { display: block; }
.ops-observation > span:first-child { font-size: 12px; margin-bottom: 3px; }
.ops-site-footer { display: flex; flex-direction: column; justify-content: end; margin-top: auto; padding-top: 8px; }
.ops-site-footer p { margin: 8px 0 16px; font-size: 14px; }
.ops-site-footer .ops-button { width: 100%; box-sizing: border-box; }
.ops-report-grid > .ops-card h2 { min-height: 2.7em; }
@supports (grid-template-rows: subgrid) {
    .ops-establishments-grid > .ops-site { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .ops-site > h2, .ops-site .ops-observation { min-height: 0; }
    .ops-report-grid > .ops-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
    .ops-report-grid > .ops-card h2 { min-height: 0; }
}
.ops-site[data-state="outage"] { border-top: 3px solid #d43e52; }
.ops-site[data-state="degraded"] { border-top: 3px solid #d59225; }
.ops-state { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--theme-muted, #586e89); }
.ops-state:before { content: ''; width: 9px; height: 9px; background: #8a98aa; border-radius: 50%; flex-shrink: 0; }
.ops-state[data-state="ok"]:before { background: #0cb78b; }
.ops-state[data-state="outage"]:before { background: #d43e52; }
.ops-state[data-state="degraded"]:before, .ops-state[data-state="warning"]:before { background: #d59225; }
.ops-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--theme-border, #dce6ef); margin: 20px 0 8px; }
.ops-metrics dt { min-height: 2.8em; }
.ops-metrics dt, .ops-report-metrics dt { font-size: 13px; color: var(--theme-muted, #586e89); line-height: 1.4; }
.ops-metrics dd { margin: 5px 0; font-size: 28px; font-weight: 750; }
.ops-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 650; border: 1px solid var(--theme-border, #cddce9); border-radius: 10px; background: var(--theme-surface, #fff); color: var(--theme-accent, #2572a4); cursor: pointer; text-decoration: none; text-align: center; }
.ops-primary { background: #2572a4; color: #fff; }
.ops-page :is(button,a,input,select):focus-visible { outline: 3px solid #3e9ddb; outline-offset: 3px; }
.ops-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin: 0 0 24px; }
.ops-filters > label { min-width: 0; max-width: 100%; }
.ops-filters .ops-filter-search { flex: 1 1 280px; max-width: 480px; }
.ops-page label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.ops-page input:not([type="checkbox"]), .ops-page select { min-height: 44px; max-width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--theme-border, #cddce9); border-radius: 9px; background: var(--theme-surface, #fff); color: inherit; padding: 10px 12px; font: inherit; }
.ops-page .ops-check { flex-direction: row; align-items: center; min-height: 44px; font-weight: 500; }
.ops-check input { width: 18px; height: 18px; accent-color: #2572a4; flex-shrink: 0; }
.ops-section { margin-top: 26px; }
.ops-reminder { display: flex; justify-content: space-between; gap: 20px; text-decoration: none; color: inherit; border-top: 1px solid var(--theme-border, #dce6ef); padding: 18px 0; }
.ops-reminder small { display: block; color: var(--theme-muted, #586e89); line-height: 1.6; margin-top: 5px; }
.ops-timeline { display: grid; gap: 12px; }
.ops-event { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 20px; }
.ops-event time { color: var(--theme-muted, #586e89); font-size: 13px; line-height: 1.8; }
.ops-event h2 { margin-top: 0; font-size: 18px; }
.ops-form { display: grid; gap: 20px; max-width: 850px; width: 100%; box-sizing: border-box; }
.ops-form > *, .ops-form label, .ops-form-columns > * { min-width: 0; }
.ops-form input:not([type="checkbox"]), .ops-form select { width: 100%; }
.ops-form .ops-button { max-width: 100%; min-width: 0; white-space: normal; }
.ops-form > .ops-button { justify-self: start; }
.ops-form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ops-form fieldset { border: 1px solid var(--theme-border, #dce6ef); border-radius: 10px; padding: 12px 16px; min-width: 0; }
.ops-days { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ops-maintenance { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; }
.ops-maintenance h3 { margin: 0; }
.ops-notice, .ops-maintenance-banner { padding: 16px 20px; background: var(--theme-surface-raised, #eaf4fa); color: var(--theme-text, #24435c); border: 1px solid var(--theme-border, #cddce9); border-radius: 12px; line-height: 1.65; }
.ops-error { border-color: #c94858; }
.ops-maintenance-label { color: var(--theme-accent, #2572a4); font-size: 13px; font-weight: 650; }
.ops-maintenance-banner { margin: 16px 32px 0; }
.ops-maintenance-banner p { margin: 4px 0 0; }
.ops-empty { padding: 24px 0; color: var(--theme-muted, #586e89); }
.ops-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ops-report-metrics > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--theme-border, #dce6ef); }
.ops-report-metrics dd { font-weight: 750; margin: 0; white-space: nowrap; }
@media (max-width: 750px) {
    .ops-page { padding: 22px 16px max(36px, env(safe-area-inset-bottom)); }
    .ops-tabs { gap: 4px; margin-bottom: 22px; }
    .ops-tabs a { padding: 10px; font-size: 13px; }
    .ops-heading { align-items: flex-start; flex-direction: column; }
    .ops-heading h1 { font-size: 25px; }
    .ops-filters > label { width: 100%; }
    .ops-filters .ops-filter-search { flex-basis: auto; max-width: none; }
    .ops-card { padding: 20px; }
    .ops-form-columns, .ops-event { grid-template-columns: 1fr; gap: 12px; }
    .ops-maintenance, .ops-reminder { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ops-maintenance-banner { margin-left: 16px; margin-right: 16px; }
    .ops-form input:not([type="checkbox"]), .ops-page select { font-size: 16px; }
}
@media print {
    html, body, .app, .main { background: #fff !important; color: #111 !important; }
    .sidebar, .topbar, .ops-tabs, .ops-actions, .ops-filters, .ops-maintenance-banner { display: none !important; }
    .app, .main { display: block !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
    .ops-page { padding: 0; color: #111; }
    .ops-card { break-inside: avoid; box-shadow: none; background: #fff; color: #111; }
    .ops-report-grid { display: block; }
    .ops-report-grid .ops-card { margin-bottom: 20px; }
    .ops-report-metrics dt, .ops-heading p { color: #333; }
    .ops-notice { background: #fff; color: #333; border-color: #ccc; }
}
