/* Operational screens share JOUD's native design tokens and strict CSP. */
.ops-view { min-width: 0; }
.ops-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ops-content > .ops-header { margin-bottom: 24px; }
.ops-alerts:empty { display: none; }
.ops-alerts { margin-bottom: 16px; }
.ops-alerts .ops-hint { display: block; margin-top: 6px; }
.ops-content .ops-card { margin-bottom: 20px; }
.ops-card .card-title { margin-bottom: 16px; }
.ops-card > .inline-actions, .ops-content > .inline-actions { margin-bottom: 16px; }
.ops-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.ops-form > .inline-actions, .ops-form > .ops-hint, .ops-form > fieldset { grid-column: 1 / -1; }
.ops-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.ops-field:has(textarea), .ops-field:has(select[multiple]) { grid-column: 1 / -1; }
.ops-field[hidden] { display: none; }
.ops-field textarea { resize: vertical; min-height: 100px; }
.ops-field input, .ops-field select, .ops-field textarea { width: 100%; box-sizing: border-box; }
.ops-field select[multiple] { min-height: 100px; }
.ops-hint { color: var(--text-secondary, #697386); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.ops-details { margin: 16px 0; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-surface, #fff); overflow: hidden; }
.ops-details > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--text-secondary, #697386); }
.ops-details[open] > summary { border-bottom: 1px solid var(--border-color, #e5e7eb); }
.ops-json { max-height: 420px; overflow: auto; padding: 16px; margin: 0; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; unicode-bidi: plaintext; white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-department-grid, .ops-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ops-department-grid .ops-card, .ops-report-grid .ops-card { margin: 0; }
.ops-report-grid { margin-bottom: 24px; }
.ops-report-grid .card-title { min-height: 1.6em; }
.ops-department-grid .mono { font-size: 11px; color: var(--text-muted, #8b95a7); }
.ops-detail-panel:empty { display: none; }
.ops-detail-panel { margin-top: 24px; scroll-margin-top: 24px; }
.ops-empty { margin: 16px 0; }
.ops-actions { gap: 8px; flex-wrap: wrap; }
.ops-grants { margin: 0; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ops-grants legend { padding: 0 8px; }
.ops-check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.ops-check input { width: 16px; height: 16px; accent-color: var(--accent-indigo, #6255cb); }
.ops-view .data-table th { white-space: nowrap; }
.ops-view .data-table code { font-size: 11px; overflow-wrap: anywhere; }
.ops-view .data-table td { max-width: 340px; overflow-wrap: anywhere; }
.ops-view button:disabled, .ops-view input:disabled, .ops-view select:disabled, .ops-view textarea:disabled { cursor: not-allowed; }
.ops-view .btn:focus-visible, .ops-details summary:focus-visible, .ops-view a:focus-visible { outline: 3px solid var(--accent-indigo, #6255cb); outline-offset: 3px; }
@media (max-width: 1100px) { .ops-department-grid, .ops-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ops-header { flex-direction: column; gap: 12px; } .ops-form, .ops-department-grid, .ops-report-grid { grid-template-columns: minmax(0, 1fr); } .ops-grants { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ops-view .data-table td { min-width: 110px; } }
@media (prefers-reduced-motion: reduce) { .ops-view * { scroll-behavior: auto !important; } }
.ops-schedule-inputs { grid-column: 1 / -1; display: grid; gap: 16px; }
.ops-metric { display: block; font-size: 25px; color: var(--accent-indigo, #6255cb); margin: 12px 0; }
.ops-pager { margin: 18px 0; justify-content: center; }
.ops-confirm-dialog { width: min(460px, calc(100vw - 40px)); box-sizing: border-box; border: 1px solid var(--border-color, #e5e7eb); border-radius: 16px; padding: 28px; background: var(--bg-surface, #fff); color: var(--text-primary, #172033); box-shadow: 0 24px 80px #17203333; }
.ops-confirm-dialog::backdrop { background: #17203366; }
.ops-confirm-message { line-height: 1.9; margin: 18px 0 24px; overflow-wrap: anywhere; }
.ops-confirm-dialog .ops-actions { justify-content: flex-end; }
