.ops-page { max-width: 1400px; margin-inline: auto; }
.outreach-page td { vertical-align: top; }
.outreach-page td[data-label="Akcje"] form { margin: 6px 0; }
.outreach-page .panel > .row-actions { margin-bottom: 16px; }
.outreach-page details > form { margin-top: 16px; }
.outreach-page .ops-stats strong { font-size: 1.4rem; }
.outreach-page .panel > p { overflow-wrap: anywhere; }
.outreach-page > .ops-notice { margin: 18px 0; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 650px) { .outreach-page .form-grid, .outreach-page .form-grid.three { grid-template-columns: minmax(0, 1fr); } }
.command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.command-page .plain-list li { padding: 12px 0; border-bottom: 1px solid #dce5e2; overflow-wrap: anywhere; }
.command-page .workstream-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.command-page .workstream-card { padding: 16px; }
.command-page .ops-stats strong { font-size: 1.6rem; }
.command-page details > .command-grid { margin-top: 18px; }
@media (max-width: 750px) { .command-grid, .command-page .workstream-grid { grid-template-columns: minmax(0, 1fr); } }
.communication-page .panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.communication-page .plain-list li { padding: 12px 0; border-bottom: 1px solid #dce5e2; overflow-wrap: anywhere; }
.communication-page details > form { margin-top: 16px; }
.communication-body { max-width: 500px; white-space: normal; overflow-wrap: anywhere; }
.support-page .panel > .row-actions { margin-bottom: 16px; }
.support-page td { vertical-align: top; }
.support-message { padding: 18px; background: #f4f8f6; border-radius: 10px; margin-bottom: 22px; overflow-wrap: anywhere; }
.support-page .ops-notice .button { margin-top: 8px; }
@media (max-width: 750px) { .communication-page .panel-grid, .communication-page .form-grid.three { grid-template-columns: minmax(0, 1fr); } }
.complaints-page td, .refunds-page td { vertical-align: top; }
.complaints-page td[data-label="Decyzja"] { min-width: 210px; max-width: 350px; }
.complaints-page .panel > .row-actions { margin-bottom: 16px; }
.complaints-page details > .form { margin-top: 16px; }
.refunds-stats.ops-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.refunds-stats strong { font-size: 1.4rem; }
.refund-error { color: #a33228; margin-top: 8px; max-width: 280px; }
@media (max-width: 850px) { .refunds-stats.ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) { .refunds-stats.ops-stats, .complaints-page .form-grid.three { grid-template-columns: minmax(0, 1fr); } .complaints-page td[data-label="Decyzja"] { max-width: none; min-width: 0; } }
.documents-page td { vertical-align: top; }
.documents-page td[data-label="Działania"] { min-width: 170px; max-width: 250px; }
.documents-page td[data-label="Kwota"] { white-space: nowrap; }
.documents-page details > form, .documents-page details > .table-wrap { margin-top: 16px; }
.webhooks-page > .row-actions { margin-bottom: 16px; }
.webhooks-page td[data-label="Informacja"] { max-width: 320px; }
.webhooks-page td { vertical-align: top; }
.webhooks-page .code-block { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 540px; overflow: auto; }
.webhooks-page .summary-list dd { margin-bottom: 12px; }
.modules-page { max-width: 1100px; }
.modules-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.modules-fieldset legend { font-size: 1.15rem; font-weight: 700; }
.modules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.modules-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid #cbd8d5; border-radius: 12px; background: #fff; cursor: pointer; }
.modules-card:has(input:checked) { border-color: #146773; background: #f1f7f5; }
.modules-card:focus-within { outline: 2px solid #146773; outline-offset: 3px; }
.modules-card input[type=checkbox] { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: #146773; }
.modules-card-content { display: grid; gap: 7px; min-width: 0; }
.modules-card-content > span, .modules-card-content small { font-weight: 400; color: #536970; }
.modules-card-content strong { font-size: 1rem; }
.modules-state { font-size: .85rem; }
.modules-card .modules-on { display: none; }
.modules-card input:checked + .modules-card-content .modules-on { display: inline; color: #146773; font-weight: 600; }
.modules-card input:checked + .modules-card-content .modules-off { display: none; }
.modules-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.modules-save p { margin: 5px 0 0; max-width: 560px; color: #536970; }
@media (max-width: 650px) { .modules-grid { grid-template-columns: minmax(0, 1fr); } .modules-save .row-actions { width: 100%; } .modules-save button { flex: 1; } }
.jobs-stats.ops-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jobs-stats.ops-stats article { padding: 0; }
.jobs-stats a { display: block; padding: 16px; border-radius: 12px; color: inherit; text-decoration: none; }
.jobs-stats a:hover, .jobs-stats a[aria-current] { background: #edf5f3; outline: 2px solid #146773; }
.jobs-list { margin-top: 20px; }
.jobs-hint { display: block; margin-top: 5px; }
.jobs-result { max-width: 420px; }
.jobs-error { color: #a33228; margin: 0 0 5px; white-space: pre-wrap; }
.jobs-details summary { cursor: pointer; padding-block: 12px; min-height: 44px; color: #146773; }
.jobs-details dd { margin: 4px 0 12px; }
.jobs-details pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; margin: 0; }
@media (max-width: 850px) { .jobs-stats.ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) { .jobs-result { max-width: none; } .jobs-page .form-grid.three { grid-template-columns: minmax(0, 1fr); } }
.automation-tasks { list-style: none; padding: 0; margin: 0; }
.automation-tasks li { padding: 10px 0; border-bottom: 1px solid #dce5e2; }
.automation-tasks span { display: block; color: #586c72; margin-top: 3px; }
.automation-advanced > .panel { padding-inline: 0; margin-top: 20px; box-shadow: none; border: 0; }
.ops-page .panel { padding: 22px; margin-bottom: 18px; min-width: 0; }
.ops-page h2 { font-size: 1.15rem; margin: 0 0 14px; }
.ops-page h3 { font-size: 1rem; }
.ops-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ops-nav a { padding: 11px 16px; border: 1px solid #dce5e2; border-radius: 10px; background: white; text-decoration: none; }
.ops-nav a[aria-current] { background: #146773; color: white; border-color: #146773; }
.ops-columns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ops-page .summary-list { margin: 16px 0; }
.ops-page .summary-list dd { overflow-wrap: anywhere; }
.ops-columns .form-grid.three { grid-template-columns: minmax(0, 1fr); }
.ops-preview, .ops-notice { padding: 16px; background: #f3f7ed; border-left: 4px solid #99b371; border-radius: 8px; margin-top: 18px; }
.ops-guide { background: #f4f8f6; }
.ops-empty { padding: 24px 0; color: #586c72; }
.ops-backup-entry { padding: 10px 0; border-top: 1px solid #dce5e2; }
.ops-backup-entry summary, .ops-technical summary { padding: 12px 0; cursor: pointer; font-weight: 600; min-height: 44px; }
.ops-backup-entry summary .badge { margin-left: 10px; }
.ops-page code { overflow-wrap: anywhere; }
.ops-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ops-stats article { padding: 20px; border: 1px solid #dce5e2; border-radius: 12px; background: #fff; }
.ops-stats strong { display: block; font-size: 2rem; margin-top: 8px; }
.ops-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.ops-check-grid .panel { margin: 0; border-left: 4px solid #72a99d; }
.ops-check-grid h2 { margin: 0; }
.ops-check { display: flex; flex-direction: column; gap: 12px; }
.ops-check p { color: #536970; margin: 0; }
.ops-check-action { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.ops-check-grid .ops-warning, .ops-stats .ops-warning { border-color: #d0a759; }
.ops-check-grid .ops-critical, .ops-stats .ops-critical { border-color: #b64e43; background: #fff9f7; }
.ops-page td { overflow-wrap: anywhere; }
@media (max-width: 850px) { .ops-columns, .ops-check-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 550px) { .ops-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; } .ops-page .panel { padding: 16px; } }

.discount-page td { vertical-align: top; overflow-wrap: anywhere; }
.discount-page details > form, .discount-page details > .table-wrap { margin-top: 16px; }
.discount-search { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
.discount-search label { flex:1; min-width:220px; }
.discount-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.discount-form-grid fieldset { border:0; padding:0; margin:0; min-width:0; display:grid; align-content:start; gap:14px; }
.discount-form-grid legend { font-size:1.1rem; font-weight:700; margin-bottom:16px; }
.discount-stats.ops-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.discount-stats strong { font-size:1.25rem; }
@media(max-width:750px) { .discount-form-grid, .discount-page .form-grid.three, .discount-stats.ops-stats { grid-template-columns:minmax(0,1fr); } }

.limits-page details > .form, .limits-help { margin-top: 18px; }
.limits-page > .ops-stats { margin-bottom: 20px; }
.limits-page > .panel > .panel-header { margin-bottom: 12px; }
.limits-page > .panel > .panel-header h2 { margin: 0; }
.limits-page > .panel > p { margin: 0 0 16px; line-height: 1.6; }
.limits-page .limits-help h3 { margin: 18px 0 6px; }
.limits-page .limits-help h3:first-child { margin-top: 0; }
.limits-page .limits-help p { margin: 0 0 14px; line-height: 1.6; }
.limits-page .limits-help p:last-child { margin-bottom: 0; }
.limits-page td { vertical-align: top; overflow-wrap: anywhere; }
.limits-page .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.limits-page .limits-create { padding: 0; overflow: hidden; }
.limits-create > summary { padding: 16px 20px; color: var(--heading); background: var(--surface-soft); }
.limits-create > summary:hover { background: var(--primary-soft); }
.limits-create[open] > summary { border-bottom: 1px solid var(--line); }
.limits-create > summary:focus-visible { outline-offset: -3px; }
.limits-page .limits-create > .form { margin: 0; padding: 20px; min-width: 0; }
.limits-create .form-grid { align-items: start; gap: 18px 20px; min-width: 0; }
.limits-create .form-grid > label { min-width: 0; align-content: start; gap: 7px; }
.limits-create .form-grid input,
.limits-create .form-grid select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: var(--control-h); }
.limits-create .form-grid small { display: block; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.limits-create .form > p { margin: 0; }
.limits-create .checkbox { min-height: 40px; }
.limits-create .checkbox input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; }
.limits-create .limits-sector-help { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; }
.limits-create .limits-sector-help > summary { font-size: .85rem; }
.limits-create .limits-sector-help li { overflow-wrap: anywhere; }
.limits-page [hidden] { display: none !important; }
html.sales-limit-modal-open { overflow: hidden; }
.limits-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); overflow-y: auto; box-shadow: 0 24px 80px #132d3540; }
.limits-dialog::backdrop { background: #132d3599; }
.limits-page .limits-dialog { overflow-y: auto; }
.limits-page .limits-dialog > .form { gap: 18px; }
.limits-dialog .row-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.limits-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.limits-page .limits-dialog-header h2 { margin: 0; }
.limits-dialog-header .button { flex-shrink: 0; }
.limits-dialog > .alert { margin: 16px 20px 0; }
.limits-page label small { font-weight: 400; color: #536970; }
.limits-sector-help summary { cursor: pointer; padding: 10px 0; }
.limits-sector-help ul { max-height: 220px; overflow: auto; }
.limits-warning { padding: 14px; border-radius: 8px; background: #fff6df; color: #765011; }
.limits-warning-text { color: #765011; font-size: .85rem; }
.limits-help h3 { margin-bottom: 5px; }
.limits-help p { margin-top: 0; }
@media(max-width: 650px) {
    .limits-page .form-grid { grid-template-columns: minmax(0,1fr); }
    .limits-create > summary, .limits-page .limits-create > .form { padding: 16px; }
    .limits-create .row-actions .button { width: 100%; }
}

.price-categories-page td { vertical-align: top; }
.price-categories-page .category-description { margin: 6px 0 0; max-width: 440px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.price-categories-page td[data-label="Cena"] { white-space: nowrap; font-weight: 650; }
.price-category-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.price-categories-page .form label { min-width: 0; align-content: start; }
.price-categories-page .form input, .price-categories-page .form textarea { min-width: 0; box-sizing: border-box; }
.price-categories-page .form small { font-weight: 400; line-height: 1.5; color: var(--muted); }
.price-categories-page .form > p { margin: 0; }
html.category-modal-open { overflow: hidden; }
.health-page [hidden] { display: none !important; }
.health-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 18px 0 12px; }
.health-page .ops-check-grid { align-items: start; }
.health-page .health-delivery { margin: 18px 0; border-left: 4px solid var(--primary); }
.health-delivery [role=alert] { padding: 12px; border-radius: 8px; background: #fff4e5; color: #7c4909; }
.health-page [data-health-results] { color: var(--muted); font-size: .9rem; }
.documents-page [hidden] { display: none !important; }
.documents-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.documents-tabs .button { min-width: 130px; }
.documents-page td { vertical-align: middle; }
.documents-page td[data-label="Kwota"] { white-space: nowrap; font-weight: 700; }
.documents-page td[data-label="Działania"] { min-width: 160px; }
.documents-page .document-cancelled td[data-label="Numer"] strong { text-decoration: line-through; color: var(--muted); }
.documents-page .document-cancelled { background: var(--surface-soft); }
.documents-page .ops-stats { margin-bottom: 16px; }
.documents-page .filters { margin: 16px 0; }
.document-simulation-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px; }
.document-simulation-list details { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.documents-page > [data-documents-panel] { scroll-margin-top: 90px; }
.price-categories-page td.row-actions { display: table-cell; vertical-align: middle; min-width: 200px; }
.price-categories-page td.row-actions > form { display: inline-block; margin: 0 0 0 6px; }
.category-delete-hint { display: block; max-width: 230px; margin-top: 8px; color: var(--muted); line-height: 1.5; }
.category-impact { padding: 12px 14px; border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: .9rem; line-height: 1.6; }
.price-categories-page td[data-label="Cena"] { white-space: nowrap; font-weight: 700; }
.price-category-dialog { width: min(660px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); background: var(--surface); overflow-y: auto; box-shadow: 0 24px 80px #132d3540; }
.price-category-dialog::backdrop { background: #132d3599; }
.price-category-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.price-categories-page .price-category-dialog-header h2 { margin: 0; }
.price-category-dialog-header .button { flex-shrink: 0; }
.price-category-dialog > .form { padding: 20px; }
@media(max-width: 650px) { .price-category-fields { grid-template-columns: minmax(0,1fr); } .price-category-dialog > .form, .price-category-dialog-header { padding: 16px; } .price-category-dialog .row-actions .button { flex: 1; } }

html.discount-modal-open { overflow: hidden; }
.discount-code-dialog { width: min(880px, calc(100% - 24px)); }
.discount-page .discount-code-dialog .price-category-dialog-header h2 { margin: 0; }
.discount-code-dialog label { min-width: 0; align-content: start; }
.discount-code-dialog input, .discount-code-dialog select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.discount-code-dialog .form > p { margin: 0; }

html.outreach-modal-open { overflow: hidden; }
.outreach-page [hidden] { display: none !important; }
.outreach-dialog { width: min(760px, calc(100% - 24px)); }
.outreach-page .outreach-dialog h2 { margin: 0; }
.outreach-dialog-body { padding: 20px; }
.outreach-dialog-body > p { margin: 0 0 16px; }
.outreach-dialog label { min-width: 0; align-content: start; }
.outreach-dialog input, .outreach-dialog textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
.outreach-dialog .form-grid { align-items: start; }
.outreach-dialog .form > p { margin: 0; }
@media(max-width:650px) { .outreach-dialog-body { padding: 16px; } .outreach-dialog .row-actions .button { flex: 1; } }
