/* Shared interface refinements; module colours remain defined in app.css. */
.plant-graph-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; padding: 18px; }
.plant-graph-legend > span { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.plant-graph-legend i { width: 24px; height: 4px; border-radius: 2px; }
.plant-filter { margin: 0 0 24px; padding: 18px; border: 1px solid var(--sb-border); border-radius: 12px; background: #f6faff; }
.plant-filter legend { float: none; width: auto; margin: 0; font-size: .85rem; font-weight: 700; }
.plant-filter-controls { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.plant-filter-controls .filter-field { flex: 1 1 220px; min-width: 0; }
.plant-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.plant-filter-chip { display: flex; align-items: center; gap: 12px; border: 1px solid #bbd4ef; border-radius: 20px; padding: 7px 13px; background: #e7f1fc; color: var(--sb-navy); font-size: .8rem; }
.plant-filter-chip span { font-size: 1.15rem; }
.plant-filter small { color: var(--sb-muted); font-size: .75rem; }
.mmf-page .plant-filter { background: #f1faf7; }
.mmf-page .plant-filter-chip { background: #e0f3ec; border-color: #aed8c8; color: #086047; }
.mmf-compact-filter .parameter-filter { margin-bottom: 14px; padding: 0; border: 0; background: transparent; }
.mmf-compact-filter .parameter-filter legend { display: none; }
.mmf-compact-filter .interval-control { max-width: 260px; }
.mmf-compact-filter .period-section { align-self: start; }
.mmf-compact-filter .period-section .date-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mmf-compact-filter .period-section .date-time-control { padding: 9px 10px 10px; border: 1px solid #d5e5dc; border-radius: 9px; background: #fff; }
.mmf-compact-filter .period-section .date-time-control > span { color: var(--mmf-deep); font-size: .68rem; }
.mmf-compact-filter .period-section .date-time-control > div { grid-template-columns: 1fr; gap: 7px; }
.mmf-compact-filter .period-section .sblss-picker { min-height: 40px; }
.mmf-compact-filter .period-section .sblss-picker-copy b { overflow: visible; text-overflow: clip; }
.mmf-template-panel { overflow: hidden; border-top: 4px solid var(--mmf-accent); }
.mmf-sheet-heading .excel-sheet-title { background: var(--mmf-deep); }
.mmf-pivot-scroll { overflow: auto; max-height: 590px; border: 1px solid #c7d5cc; border-radius: 10px; margin: 0 24px 24px; background: #fff; box-shadow: inset 0 1px 0 #fff; }
.mmf-pivot-table { border-collapse: separate; border-spacing: 0; min-width: 100%; width: max-content; color: #172b24; font-family: "Aptos", "Segoe UI", sans-serif; font-size: .72rem; font-variant-numeric: tabular-nums; }
.mmf-pivot-table th, .mmf-pivot-table td { box-sizing: border-box; width: 78px; min-width: 78px; height: 40px; padding: 8px 9px; border-right: 1px solid #d4ded7; border-bottom: 1px solid #d4ded7; text-align: right; white-space: nowrap; background: #fff; }
.mmf-pivot-table thead th { position: sticky; top: 0; z-index: 4; height: 46px; color: #123c2b; background: #d9ead4; text-align: center; font-family: "Aptos", "Segoe UI", sans-serif; font-size: .68rem; font-weight: 800; letter-spacing: .015em; }
.mmf-pivot-table tbody tr:nth-child(even) td, .mmf-pivot-table tbody tr:nth-child(even) th { background: #f3f8f1; }
.mmf-pivot-table .sticky-plant { position: sticky; left: 0; z-index: 3; width: 190px; min-width: 190px; text-align: left; color: var(--mmf-deep); font-weight: 750; }
.mmf-pivot-table .sticky-code { position: sticky; left: 190px; z-index: 3; width: 125px; min-width: 125px; text-align: left; color: #496358; font-weight: 700; box-shadow: 8px 0 12px rgba(16,54,40,.08); }
.mmf-pivot-table thead .sticky-plant, .mmf-pivot-table thead .sticky-code { z-index: 6; background: #d8ead2; }
.mmf-pivot-table .missing-cell { color: #9a5b00; background: #fff7dc; }
.mmf-pivot-table .patched-cell { color: #6f5300; background: #fff9e8; }
.mmf-template-graph { overflow: hidden; margin: 0 24px 24px; border-color: #c7ddd2; box-shadow: 0 12px 30px rgba(19,62,45,.08); }
.mmf-template-graph .graph-heading { background: linear-gradient(110deg,#f1faf6,#fffdf2); }
.mmf-template-graph .graph-metrics b, .mmf-template-graph .graph-legend-title { color: var(--mmf-deep); }
.mmf-chart-plot-bg { fill: url(#mmfChartBackground); stroke: #c8dcd1; }
.mmf-plant-series:hover { filter: url(#mmfLineGlow); }
.mmf-graph-scale { display: flex; align-items: center; gap: 14px; }
.mmf-graph-scale > span { display: grid; color: #48675a; text-align: right; }
.mmf-graph-scale small { font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
.mmf-graph-scale strong { color: var(--mmf-deep); font-size: .75rem; }
.mmf-template-graph .graph-legend-panel { border-top: 1px solid #e4ece7; background: #f8fbf9; }
.legend-tool { width: fit-content; padding: 8px 9px; border: 1px solid #cbd9e6; border-radius: 7px; background: #fff; color: #496358; font: inherit; font-size: .62rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.legend-tool:hover { border-color: #8fc5aa; background: #f1faf6; color: var(--mmf-deep); }
.location-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; color: var(--sb-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.location-divider::before, .location-divider::after { content: ""; height: 1px; flex: 1; background: var(--sb-border); }
.location-alternatives { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 24px; }
.location-or { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #eaf2fb; color: var(--sb-blue); font-size: .68rem; font-weight: 800; }
.filter-section { margin-top: 18px; padding: 20px; border: 1px solid var(--sb-border); border-radius: 12px; background: #fbfcfe; }
.filter-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.filter-section-heading > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sb-navy); color: #fff; font-size: .75rem; font-weight: 800; }
.filter-section-heading div { display: flex; flex-direction: column; }
.filter-section-heading strong { color: var(--sb-navy); }
.filter-section-heading small { color: var(--sb-muted); font-size: .72rem; }
.period-filter-grid { display: grid; grid-template-columns: minmax(360px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr); align-items: start; gap: 18px; }
.data-type-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.data-type-checks label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 11px 14px; border: 1px solid var(--sb-border); border-radius: 9px; background: #fff; color: var(--sb-navy); font-size: .82rem; font-weight: 700; }
.data-type-checks input[type="checkbox"] { appearance: auto; flex: 0 0 18px; width: 18px !important; min-width: 18px; height: 18px !important; min-height: 18px; margin: 0; padding: 0 !important; accent-color: var(--sb-blue); }
.data-type-tabs { display: flex; gap: 8px; padding: 0 28px 16px; overflow-x: auto; border-bottom: 1px solid var(--sb-border); }
.data-type-tabs button { white-space: nowrap; border: 1px solid var(--sb-border); border-radius: 8px; padding: 10px 16px; background: #fff; color: var(--sb-navy); font-weight: 700; }
.data-type-tabs button.active { border-color: var(--sb-blue); background: var(--sb-blue); color: #fff; }
.submission-sheet-tabs { align-items: stretch; }
.submission-sheet-tabs .submission-sheet-tab { display: grid; min-width: 168px; gap: 3px; text-align: left; }
.submission-sheet-tab strong { font-size: .7rem; }
.submission-sheet-tab small { color: #6f8397; font-size: .59rem; font-weight: 650; }
.submission-sheet-tab.active small { color: rgba(255,255,255,.82); }
.excel-sheet-heading { margin: 0 20px; border: 1px solid #b7c9b6; border-bottom: 0; background: #f4f8f2; }
.excel-sheet-title { padding: 12px 16px; background: #1f6f43; color: #fff; font-size: .84rem; font-weight: 800; letter-spacing: .06em; }
.excel-sheet-meta { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; }
.excel-sheet-meta span { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-right: 1px solid #cbd9ca; }
.excel-sheet-meta span:last-child { border-right: 0; }
.excel-sheet-meta small { color: #5d6d60; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.excel-sheet-meta strong { color: #203b2b; font-size: .76rem; }
.template-table-wrap { width: calc(100% - 40px); margin: 0 20px 20px; overflow: auto; max-height: 620px; border: 1px solid #b7c9b6; box-shadow: inset 0 1px #fff; }
.template-data-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; color: #1f2937; font-family: Calibri, "Segoe UI", sans-serif; font-size: .76rem; }
.template-data-table th, .template-data-table td { min-width: 92px; padding: 8px 10px; border-right: 1px solid #cdd7cc; border-bottom: 1px solid #cdd7cc; text-align: right; white-space: nowrap; }
.template-data-table thead th { position: sticky; top: 0; z-index: 3; height: 42px; background: #d9ead3; color: #183522; text-align: center; font-weight: 800; }
.template-data-table tbody tr:nth-child(even) td { background: #f6faf5; }
.template-data-table tbody tr:hover td { background: #fff6cc; }
.template-data-table .sticky-ddq { position: sticky; z-index: 4; box-sizing: border-box; background: #fff; text-align: center; font-variant-numeric: tabular-nums; }
.template-data-table thead .sticky-ddq { z-index: 7; background: #d9ead3; }
.template-data-table tbody tr:nth-child(even) .sticky-ddq { background: #f6faf5; }
.template-data-table tbody tr:hover .sticky-ddq { background: #fff6cc; }
.template-data-table .sticky-ddq-submission { left: 0; min-width: 120px; width: 120px; color: #174f82; font-weight: 700; }
.template-data-table .sticky-ddq-year { left: 120px; min-width: 72px; width: 72px; }
.template-data-table .sticky-ddq-month { left: 192px; min-width: 72px; width: 72px; }
.template-data-table .sticky-ddq-day { left: 264px; min-width: 72px; width: 72px; }
.template-data-table .sticky-ddq-period { left: 336px; min-width: 78px; width: 78px; box-shadow: 1px 0 0 #b8c9b8; }
.template-data-table .sticky-ddq-period::after { position: absolute; top: 0; right: -9px; bottom: 0; width: 9px; content: ""; pointer-events: none; box-shadow: 6px 0 8px rgba(28,52,72,.16); }
.table-limit-note { margin: 14px 28px 24px; color: var(--sb-muted); font-size: .78rem; }
.ddq-page .filter-panel, .mmf-page .filter-panel { padding: 15px 18px; }
.ddq-page .filter-panel-heading, .mmf-page .filter-panel-heading { margin-bottom: 10px; }
.compact-filter-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.compact-filter-layout .filter-section { margin: 0; padding: 12px; }
.compact-filter-right { display: grid; align-self: start; align-content: start; grid-template-rows: max-content max-content; gap: 9px; }
.data-type-and-interval { display: grid; grid-template-columns: minmax(0, 2fr) minmax(155px, .7fr); gap: 12px; align-items: end; }
.data-type-and-interval .data-type-checks { grid-template-columns: 1fr 1fr; gap: 8px; }
.data-type-and-interval .interval-control { align-self: stretch; justify-content: flex-end; }
.ddq-page .data-type-and-interval { grid-template-columns: 1fr; }
.data-type-interval-checks { align-items: stretch; }
.data-type-interval-card { display: grid; gap: 8px; padding: 9px 10px; border: 1px solid var(--sb-border); border-radius: 9px; background: #fff; }
.data-type-interval-card.selected { border-color: #8fc0e8; background: #f3f9ff; box-shadow: 0 0 0 2px rgba(8,117,201,.06); }
.data-type-interval-card .data-type-toggle { min-height: 0; padding: 0; border: 0; background: transparent; }
.data-type-interval-select { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; color: #60758a; font-size: .62rem; font-weight: 800; }
.data-type-interval-select select { min-height: 34px !important; padding: 5px 8px !important; border: 1px solid #c7d8e8; border-radius: 7px; background: #fff; color: #173b60; font-size: .68rem; font-weight: 700; }
.data-type-interval-select select:disabled { background: #eef2f5; color: #8b99a6; }
.string-multi-filter .plant-filter-chips { margin-bottom: 4px; }
.location-selector-stack { display: grid; gap: 7px; }
.location-selector-card { display: grid; gap: 7px; padding: 9px 11px; border: 1px solid #d3e1ec; border-radius: 10px; background: #fff; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.location-selector-card.selected { border-color: #7ab7e5; background: #f2f8ff; box-shadow: 0 0 0 2px rgba(8,117,201,.07); }
.location-selector-card.disabled { background: #f5f7f9; }
.location-selector-heading { display: flex; align-items: center; gap: 9px; }
.location-selector-heading > div { display: grid; gap: 1px; }
.location-selector-heading strong { color: #0b3d78; font-size: .78rem; }
.location-selector-heading small { color: #718398; font-size: .63rem; }
.location-selector-number { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; background: #e8f3fc; color: #0875c9; font-size: .65rem; font-weight: 900; }
.location-selector-card.selected .location-selector-number { background: #0875c9; color: #fff; }
.location-selector-card .plant-filter-controls { align-items: center; }
.location-selector-card .plant-filter-chips:empty { display: none; }
.location-selector-card .plant-filter-chips { margin: 3px 0 0; }
.location-selector-card .plant-filter > small { display: block; margin-top: 5px; line-height: 1.4; }
.location-selector-card.disabled .plant-auto-add { color: #8795a3; }
.period-only-grid { grid-template-columns: 1fr; }
.submission-period-field { grid-column: 1 / -1; }
.required-filter-field { padding: 12px; border: 1px solid #bdd7ee; border-radius: 10px; background: #f7fbff; }
.required-filter-field legend { padding-inline: 5px; }
.required-filter-field legend span { color: #c62828; }
.submission-run-search { display: grid; gap: 5px; margin-bottom: 9px; }
.submission-run-search > span:first-child, .submission-run-select > span { color: #536b84; font-size: .64rem; font-weight: 800; }
.submission-filter-controls { display: flex; align-items: end; gap: 12px; }
.submission-filter-controls .submission-run-search { flex: 1 1 260px; min-width: 0; margin: 0; }
.submission-filter-controls .submission-run-search input { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #aacde9; border-radius: 9px; background: #fff; color: #123d70; font: inherit; font-size: .72rem; font-weight: 650; }
.submission-filter-controls .submission-run-search input:focus { border-color: #0875c9; box-shadow: 0 0 0 3px rgba(8,117,201,.12); outline: 0; }
.submission-filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 5px; }
.submission-filter-chip { max-width: 100%; cursor: pointer; }
.submission-filter-help { display: block; color: #6f8397; font-size: .62rem; line-height: 1.4; }
.submission-search-control { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 11px; border: 1px solid #c5d9e9; border-radius: 9px; background: #fff; color: #0875c9; }
.submission-search-control:focus-within { border-color: #0875c9; box-shadow: 0 0 0 3px rgba(8,117,201,.12); }
.submission-search-control > span { flex: 0 0 auto; font-size: 1rem; font-weight: 900; }
.submission-search-control input { width: 100%; min-width: 0; min-height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: #123d70; font: inherit; font-size: .72rem; font-weight: 650; }
.submission-search-control input::placeholder { color: #8091a4; font-weight: 550; }
.submission-option-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 6px; color: #536b84; font-size: .64rem; font-weight: 800; }
.submission-option-heading strong { padding: 4px 8px; border-radius: 999px; background: #e9f4fd; color: #0870bd; font-size: .6rem; }
.submission-option-list { display: grid; gap: 6px; max-height: 236px; overflow-y: auto; padding: 2px 4px 2px 1px; scrollbar-width: thin; }
.submission-option { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 54px; padding: 8px 10px; border: 1px solid #d2e1ed; border-radius: 9px; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.submission-option:hover { border-color: #83bae4; background: #f8fcff; }
.submission-option.selected { border-color: #55a6df; background: #eef7ff; box-shadow: 0 0 0 2px rgba(8,117,201,.07); }
.submission-option input { width: 17px; height: 17px; accent-color: #0875c9; }
.submission-option-copy { display: grid; gap: 2px; min-width: 0; }
.submission-option-copy strong { color: #0a3d78; font-size: .7rem; }
.submission-option-copy small { overflow: hidden; color: #71869a; font-size: .59rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.submission-option-plants { padding: 5px 8px; border-radius: 999px; background: #f0f5f9; color: #526b82; font-size: .58rem; font-weight: 850; white-space: nowrap; }
.selected-submission-config { margin-top: 12px; padding-top: 11px; border-top: 1px solid #cfe0ed; }
.selected-submission-config-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.selected-submission-config-heading > div { display: grid; gap: 2px; }
.selected-submission-config-heading strong { color: #0b3d78; font-size: .72rem; }
.selected-submission-config-heading small { color: #72869a; font-size: .59rem; }
.selected-submission-config-heading > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #0875c9; color: #fff; font-size: .62rem; font-weight: 900; }
.selected-submission-config-list { display: grid; gap: 6px; }
.selected-submission-item { display: grid; grid-template-columns: minmax(0,1fr) minmax(112px,.42fr) 30px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #bed9ed; border-radius: 9px; background: linear-gradient(110deg,#fff 0%,#f5faff 100%); }
.selected-submission-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.selected-submission-type { flex: 0 0 auto; padding: 6px 8px; border-radius: 7px; background: #e5f2fc; color: #086eb8; font-size: .58rem; font-weight: 900; }
.selected-submission-identity > div { display: grid; gap: 2px; min-width: 0; }
.selected-submission-identity strong { color: #0a3d78; font-size: .67rem; }
.selected-submission-identity small { color: #71869a; font-size: .57rem; }
.selected-submission-interval { display: grid; gap: 3px; }
.selected-submission-interval span { color: #71869a; font-size: .54rem; font-weight: 850; text-transform: uppercase; }
.selected-submission-interval select { width: 100%; min-height: 36px; padding: 5px 27px 5px 8px; border: 1px solid #bdd4e6; border-radius: 7px; background-color: #fff; color: #123d70; font: inherit; font-size: .63rem; font-weight: 750; }
.selected-submission-remove { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #efc9c9; border-radius: 8px; background: #fff7f7; color: #bf3434; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; }
.selected-submission-remove:hover { border-color: #c73c3c; background: #c73c3c; color: #fff; }
.submission-run-select { display: grid; gap: 5px; }
.submission-run-select select { width: 100%; min-height: 46px; padding: 8px 38px 8px 11px; border: 1px solid #aacde9; border-radius: 9px; background-color: #fff; color: #123d70; font: inherit; font-size: .72rem; font-weight: 750; cursor: pointer; }
.submission-run-select select:focus { border-color: #0875c9; box-shadow: 0 0 0 3px rgba(8,117,201,.12); outline: 0; }
.selected-submission-run { display: grid; grid-template-columns: 1.1fr 1.3fr .7fr; gap: 7px; margin-top: 9px; }
.selected-submission-run > span { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid #d2e3f1; border-radius: 8px; background: #fff; }
.selected-submission-run small { color: #74879a; font-size: .55rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.selected-submission-run strong { color: #0b3d78; font-size: .68rem; }
.submission-run-empty { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff7db; color: #785d08; font-size: .65rem; line-height: 1.45; }
@media (max-width: 700px) {
    .selected-submission-run { grid-template-columns: 1fr; }
    .submission-option { grid-template-columns: auto minmax(0,1fr); }
    .submission-option-plants { grid-column: 2; width: fit-content; }
    .selected-submission-item { grid-template-columns: 1fr 30px; }
    .selected-submission-interval { grid-column: 1; grid-row: 2; }
    .selected-submission-remove { grid-column: 2; grid-row: 1 / span 2; }
    .submission-filter-controls { align-items: stretch; flex-direction: column; }
    .submission-filter-controls .submission-run-search { width: 100%; flex-basis: auto; }
}
.submission-period-controls { display: grid; grid-template-columns: minmax(145px, 1.15fr) minmax(125px, .85fr) minmax(125px, .85fr); gap: 8px; }
.submission-period-controls label { display: grid; gap: 3px; min-width: 0; }
.submission-period-controls label small { color: #73869a; font-size: .57rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.submission-period-controls input { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #c7d8e8; border-radius: 9px; padding: 8px; background: #fff; color: #172b43; font-size: .73rem; font-weight: 700; color-scheme: light; }
.compact-filter-layout .plant-filter { margin: 0; padding: 0; border: 0; background: transparent; }
.compact-filter-layout .plant-filter > legend { display: none; }
.compact-filter-layout .plant-filter-controls { flex-wrap: nowrap; }
.plant-auto-add { align-self: center; flex: 0 0 auto; color: var(--sb-muted); font-size: .7rem; font-weight: 700; white-space: nowrap; }
.plant-auto-add.has-selection { padding: 7px 10px; border: 1px solid #b9d8f4; border-radius: 999px; background: #eaf4ff; color: #075fab; }
.plant-filter-controls input[type="search"]::placeholder { color: #718096; opacity: 1; }
.plant-filter-controls input[type="search"]:focus::placeholder { color: #9aa7b8; }
.result-view-switch { display: inline-flex; gap: 4px; margin: 0 24px 14px; padding: 4px; border: 1px solid #cfdeed; border-radius: 11px; background: #f1f6fb; }
.result-view-switch button { border: 0; border-radius: 8px; padding: 9px 16px; background: transparent; color: #52667c; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.result-view-switch button.active { background: #fff; color: #075fab; box-shadow: 0 2px 9px rgba(12, 54, 95, .12); }
.graph-panel { margin: 0 24px 24px; border: 1px solid #cfdeed; border-radius: 14px; overflow: hidden; background: #fff; }
.graph-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 18px; border-bottom: 1px solid #d9e4ef; background: linear-gradient(110deg, #f5faff 0%, #fffdf2 100%); color: var(--sb-navy); }
.graph-heading > div:first-child { display: grid; gap: 3px; }
.graph-heading strong { font-size: .95rem; }
.graph-heading small, .graph-heading > span { color: var(--sb-muted); font-size: .72rem; }
.graph-metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.graph-metrics span { display: grid; gap: 1px; min-width: 82px; padding: 7px 10px; border: 1px solid #d5e3ef; border-radius: 9px; background: rgba(255,255,255,.84); color: #687d91; font-size: .65rem; }
.graph-metrics b { color: #0a3d76; font-size: .76rem; }
.graph-help { display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-bottom: 1px solid #e2eaf1; background: #f9fcff; color: #61768a; font-size: .7rem; }
.graph-help span { color: #0875c9; font-size: .86rem; }
.graph-legend-section { display: grid; gap: 10px; padding: 14px 18px 17px; border-top: 1px solid #e0e8f0; background: #f8fbfe; }
.graph-legend-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #173b60; }
.graph-legend-title > div:first-child { display: grid; gap: 2px; }
.graph-legend-title strong { font-size: .76rem; }
.graph-legend-title small { color: #75879a; font-size: .62rem; line-height: 1.35; }
.graph-legend-tools { display: flex; align-items: center; gap: 7px; }
.legend-search { display: flex; align-items: center; gap: 6px; min-width: 220px; padding: 0 9px; border: 1px solid #cbd9e6; border-radius: 8px; background: #fff; color: #6c8195; }
.legend-search:focus-within { border-color: #0875c9; box-shadow: 0 0 0 3px rgba(8,117,201,.1); }
.legend-search input { width: 100%; min-height: 34px; border: 0; outline: 0; background: transparent; color: #173b60; font-size: .68rem; }
.crosshair-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: fit-content; padding: 8px 9px; border: 1px solid #cbd9e6; border-radius: 7px; background: #f4f7fa; color: #65798d; font: inherit; font-size: .62rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.crosshair-toggle.active { border-color: #8dc0e9; background: #e9f5ff; color: #0868b3; }
.crosshair-toggle span { font-size: .85rem; }
.graph-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; }
.graph-legend button { display: grid; grid-template-columns: 24px minmax(0,1fr) 16px; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; border: 1px solid #d9e4ee; border-radius: 8px; background: #fbfdff; color: #193653; font: inherit; text-align: left; cursor: pointer; }
.graph-legend button:hover { border-color: #9fc5e6; background: #f2f8fe; }
.graph-legend button i { width: 24px; height: 3px; border-radius: 4px; }
.graph-legend button > span { display: grid; min-width: 0; }
.graph-legend button b { overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.graph-legend button small { color: #718398; font-size: .58rem; }
.graph-legend button em { color: #0875c9; font-style: normal; font-size: .62rem; text-align: center; }
.graph-legend button.hidden { opacity: .48; background: #edf2f6; }
.graph-legend button.hidden i { background: #9aa9b7 !important; }
.legend-empty { margin: 2px 0 0; padding: 12px; border: 1px dashed #cbd9e6; border-radius: 8px; color: #6f8295; font-size: .7rem; text-align: center; }
.graph-scroll { overflow-x: auto; padding: 8px 12px 2px; }
.ddq-line-chart { display: block; min-width: 900px; width: 100%; height: auto; }
.chart-plot-bg { fill: url(#chartBackground); stroke: #cbd9e6; }
.chart-grid-line { stroke: #dce6ef; stroke-width: 1; }
.chart-grid-line.vertical { stroke-dasharray: 3 5; }
.chart-axis-label { fill: #64788d; font-size: 11px; font-family: inherit; }
.chart-axis-title { fill: #294762; font-size: 12px; font-family: inherit; font-weight: 700; }
.plant-series { stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .9; }
.plant-series:hover { stroke-width: 4; opacity: 1; filter: url(#lineGlow); }
.chart-crosshair { opacity: 0; stroke: #173f69; stroke-width: 1; stroke-dasharray: 5 5; pointer-events: none; vector-effect: non-scaling-stroke; }
.chart-hover-target:hover .chart-crosshair { opacity: .48; }
.plant-data-hit { pointer-events: all; cursor: crosshair; stroke-width: 0; vector-effect: non-scaling-stroke; }
.chart-hover-target:hover .plant-data-hit { stroke-width: 2; }
@media (max-width: 760px) { .graph-heading { align-items: flex-start; flex-direction: column; } .graph-metrics { justify-content: flex-start; } .graph-legend-title, .graph-legend-tools { align-items: stretch; flex-direction: column; } .legend-search { min-width: 0; } }
.compact-filter-layout .plant-filter-chips { min-height: 20px; margin: 8px 0 4px; }
.compact-filter-layout .location-divider { margin: 10px 0; }
.compact-filter-layout .location-alternatives { margin: 0; gap: 8px; }
.compact-filter-layout .filter-section-heading { margin-bottom: 9px; gap: 9px; }
.compact-filter-layout .filter-section-heading > span { width: 26px; height: 26px; font-size: .68rem; }
.compact-filter-layout .filter-section-heading small { font-size: .66rem; line-height: 1.35; }
.compact-filter-layout .period-filter-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.compact-filter-layout .filter-date-time-range { grid-column: 1 / -1; }
.compact-filter-layout .data-type-checks { grid-template-columns: 1fr 1fr; gap: 8px; }
.compact-filter-layout .data-type-checks label { min-height: 40px; padding: 7px 10px; font-size: .76rem; }
.compact-filter-layout :is(input[type="search"], input[type="date"], input[type="datetime-local"], select) { min-height: 39px; padding-top: 6px; padding-bottom: 6px; }
.compact-filter-layout .date-pair { gap: 8px; }
.date-time-control { display: grid; gap: 5px; min-width: 0; }
.date-time-control > span { color: #536b84; font-size: .65rem; font-weight: 800; }
.date-time-control > div, .submission-date-time { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.date-time-control label, .submission-date-time label { position: relative; display: grid; gap: 3px; min-width: 0; }
.date-time-control label small, .submission-date-time label small { color: #73869a; font-size: .57rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.date-time-control input, .submission-date-time input { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #c7d8e8; border-radius: 9px; padding: 8px 10px; background: #fff; color: #172b43; font-size: .76rem; font-weight: 700; color-scheme: light; }
.date-time-control input[type="time"], .submission-date-time input[type="time"] { padding-inline: 8px 6px; font-size: .73rem; }
.date-time-control input:hover, .submission-date-time input:hover { border-color: #8ebbe0; background: #fbfdff; }
.date-time-control input:focus, .submission-date-time input:focus { border-color: #0875c9; box-shadow: 0 0 0 3px rgba(8,117,201,.12); outline: 0; }
.date-time-control input::-webkit-calendar-picker-indicator, .submission-date-time input::-webkit-calendar-picker-indicator { padding: 5px; border-radius: 6px; cursor: pointer; opacity: .78; }
.date-time-control input::-webkit-calendar-picker-indicator:hover, .submission-date-time input::-webkit-calendar-picker-indicator:hover { background: #eaf4fd; opacity: 1; }
.submission-date-time { margin-bottom: 3px; }
.sblss-picker {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    border: 1px solid #c7d8e8;
    border-radius: 9px;
    padding: 7px 8px 7px 11px;
    background: #fff;
    box-shadow: none;
    color: #172b43;
    cursor: pointer;
    isolation: isolate;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sblss-picker:hover { border-color: #8ebbe0; background: #fbfdff; }
.sblss-picker:focus-within { border-color: #0875c9; box-shadow: 0 0 0 3px rgb(8 117 201 / 12%); }
.sblss-picker-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; pointer-events: none; }
.sblss-picker-copy b { overflow: hidden; color: #172b43; font-size: .76rem; font-weight: 700; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.sblss-picker-copy small { display: none; }
.sblss-picker-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 7px; background: #edf6fc; color: #0875c9; font-size: .68rem; font-weight: 900; pointer-events: none; }
.sblss-clock-icon { background: #eef8f5; color: #087f6c; font-size: .9rem; }
.sblss-picker-native {
    position: absolute !important;
    z-index: 2;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}
.sblss-picker-native:disabled { cursor: not-allowed; }
.sblss-picker:has(.sblss-picker-native:disabled) { opacity: .6; transform: none; }
.sblss-picker-datetime,
.sblss-picker-time { min-height: 44px; }
.filter-field > .sblss-picker,
.report-filter > .sblss-picker,
.schedule-form-grid label > .sblss-picker { margin-top: 0; }
.filter-field > .sblss-picker + small,
.schedule-form-grid label > .sblss-picker + small { margin-top: 6px; }
.sblss-dtp-popover {
    position: fixed;
    z-index: 10050;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border: 1px solid #b9d3e4;
    border-radius: 18px 6px 18px 6px;
    background: #fff;
    box-shadow: 0 24px 65px rgb(7 42 72 / 25%), 0 4px 16px rgb(7 42 72 / 12%);
    color: #102f53;
    animation: sblss-picker-in .16s ease-out;
}
.sblss-dtp-popover.with-time { width: min(555px, calc(100vw - 24px)); }
@keyframes sblss-picker-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }
.sblss-dtp-heading { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 13px 16px 12px 19px; background: linear-gradient(120deg, #063a72 0%, #086f9a 67%, #078f81 100%); color: #fff; }
.sblss-dtp-heading > div { display: flex; flex-direction: column; gap: 2px; }
.sblss-dtp-heading small { color: #bde9f1; font-size: .54rem; font-weight: 850; letter-spacing: .16em; }
.sblss-dtp-heading strong { font-size: .88rem; letter-spacing: .015em; }
.sblss-dtp-close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: rgb(255 255 255 / 11%); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.sblss-dtp-close:hover { background: #fff; color: #075686; }
.sblss-dtp-content { display: grid; grid-template-columns: minmax(0, 1fr); }
.sblss-dtp-popover.with-time .sblss-dtp-content { grid-template-columns: minmax(0, 1fr) 220px; }
.sblss-dtp-calendar { padding: 13px 15px 12px; }
.sblss-dtp-month { display: grid; min-height: 38px; align-items: center; grid-template-columns: 36px 1fr 36px; gap: 6px; }
.sblss-dtp-month strong { text-align: center; font-size: .76rem; }
.sblss-dtp-month button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #d3e2ed; border-radius: 9px 3px 9px 3px; background: #f6fafc; color: #0b5d91; font-size: 1.18rem; line-height: 1; cursor: pointer; }
.sblss-dtp-month button:hover { border-color: #89b9d9; background: #eaf5fc; }
.sblss-dtp-weekdays,
.sblss-dtp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.sblss-dtp-weekdays { padding: 6px 0 4px; color: #7890a2; font-size: .56rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.sblss-dtp-weekdays span { padding: 4px 0; }
.sblss-dtp-day { position: relative; display: grid; width: 100%; height: 35px; min-width: 0; place-items: center; border: 0; border-radius: 9px 3px 9px 3px; background: transparent; color: #183952; font-size: .66rem; font-weight: 750; cursor: pointer; }
.sblss-dtp-day:hover { background: #eaf5fc; color: #076ca8; }
.sblss-dtp-day.outside { color: #b2c0cb; font-weight: 600; }
.sblss-dtp-day.today::after { position: absolute; right: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; content: ""; background: #0ba280; transform: translateX(50%); }
.sblss-dtp-day.selected { background: linear-gradient(135deg, #0875c9, #075a9a); color: #fff; box-shadow: 0 5px 10px rgb(8 117 201 / 24%); }
.sblss-dtp-day.selected::after { background: #fff; }
.sblss-dtp-day:disabled { color: #d4dce2; background: transparent; cursor: not-allowed; box-shadow: none; }
.sblss-dtp-time { display: flex; min-height: 238px; flex-direction: column; justify-content: center; padding: 17px 14px; border-left: 1px solid #d9e6ef; background: linear-gradient(155deg, #f3f9fc, #edf8f5); }
.sblss-dtp-time-title { display: flex; margin-bottom: 18px; align-items: center; justify-content: center; gap: 8px; }
.sblss-dtp-time-title > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px 3px 10px 3px; background: #dff3ed; color: #087d69; font-size: 1rem; }
.sblss-dtp-time-title > div { display: flex; flex-direction: column; }
.sblss-dtp-time-title strong { color: #123d54; font-size: .75rem; }
.sblss-dtp-time-title small { color: #78909e; font-size: .54rem; font-weight: 800; letter-spacing: .06em; }
.sblss-dtp-time-controls { display: grid; align-items: center; grid-template-columns: 1fr 8px 1fr; gap: 8px; }
.sblss-dtp-time-unit { display: grid; min-width: 0; place-items: center; grid-template-rows: 25px 42px 15px 25px; gap: 2px; }
.sblss-dtp-time-unit button { display: grid; width: 100%; height: 25px; place-items: center; border: 1px solid #c6dce9; border-radius: 7px 3px 7px 3px; background: #fff; color: #0875a7; font-size: .55rem; cursor: pointer; }
.sblss-dtp-time-unit button:hover { border-color: #75afd2; background: #e8f5fc; }
.sblss-dtp-time-unit > :is(strong, input) { display: grid; width: 100%; height: 42px; place-items: center; border: 1px solid #afd0e4; border-radius: 10px 3px 10px 3px; padding: 0 4px; background: #fff; color: #0b4770; font-size: .86rem; font-weight: 900; line-height: 42px; text-align: center; box-shadow: 0 3px 8px rgb(14 84 124 / 8%); outline: none; }
.sblss-dtp-time-unit > input:focus { border-color: #0875c9; box-shadow: 0 0 0 3px rgb(8 117 201 / 13%); }
.sblss-dtp-time-unit > small { color: #78909e; font-size: .46rem; font-weight: 850; text-transform: uppercase; }
.sblss-dtp-time-separator { align-self: center; color: #527184; font-size: .9rem; text-align: center; transform: translateY(-10px); }
.sblss-dtp-period-unit > strong { border-color: #a9d9ce; background: #effaf7; color: #087662; }
.sblss-dtp-period-unit button { border-color: #bee1d8; color: #087662; }
.sblss-dtp-period-unit button:hover { border-color: #68bca7; background: #e7f7f2; }
.sblss-dtp-zone { margin-top: 12px; color: #6e8796; font-size: .53rem; font-weight: 750; text-align: center; text-transform: uppercase; }
.sblss-dtp-actions { display: flex; min-height: 59px; align-items: center; gap: 7px; padding: 10px 13px; border-top: 1px solid #d9e6ef; background: #fbfdfe; }
.sblss-dtp-actions > span { flex: 1; }
.sblss-dtp-actions button { min-height: 36px; border: 1px solid transparent; border-radius: 9px 3px 9px 3px; padding: 0 12px; font-size: .61rem; font-weight: 850; cursor: pointer; }
.sblss-dtp-clear,
.sblss-dtp-today { background: transparent; color: #0875c9; }
.sblss-dtp-clear:hover,
.sblss-dtp-today:hover { background: #eaf5fc; }
.sblss-dtp-cancel { border-color: #ccdae5 !important; background: #fff; color: #33566e; }
.sblss-dtp-apply { background: linear-gradient(135deg, #078e84, #077267); color: #fff; box-shadow: 0 5px 11px rgb(7 126 111 / 18%); }
.sblss-dtp-actions button:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 620px) {
    .sblss-dtp-popover.with-time { width: min(360px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow-y: auto; }
    .sblss-dtp-popover.with-time .sblss-dtp-content { grid-template-columns: 1fr; }
    .sblss-dtp-time { min-height: 150px; border-top: 1px solid #d9e6ef; border-left: 0; }
    .sblss-dtp-time-title { margin-bottom: 10px; }
    .sblss-dtp-time-controls { width: min(230px, 100%); margin-inline: auto; }
    .sblss-dtp-actions { position: sticky; bottom: 0; }
}
@media (max-height: 650px) {
    .sblss-dtp-popover { overflow-y: auto; }
    .sblss-dtp-heading { min-height: 56px; padding-block: 9px; }
    .sblss-dtp-calendar { padding-block: 8px; }
    .sblss-dtp-day { height: 30px; }
    .sblss-dtp-actions { position: sticky; bottom: 0; min-height: 52px; padding-block: 7px; }
}
.compact-filter-layout .filter-field > span, .compact-filter-layout .filter-field legend { margin-bottom: 5px; }
.ddq-page .filter-actions, .mmf-page .filter-actions { margin-top: 10px; padding-top: 10px; }
.ddq-page .filter-actions > span, .mmf-page .filter-actions > span { font-size: .68rem; }
.filter-action-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.filter-action-buttons .filter-reset { min-height: 44px; padding-inline: 18px; border-radius: 9px; }
.result-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.result-download { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid; border-radius: 8px; font-size: .7rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.result-download.main { border-color: #96c4e8; background: #edf7ff; color: #075fa8; }
.result-download.anomaly { border-color: #e5c56c; background: #fff9df; color: #7a5900; }
.result-download.excel { border-color: #62a77d; background: #eaf7ef; color: #17663a; cursor: pointer; }
.result-download.excel:hover { border-color: #1f6f43; background: #1f6f43; color: #fff; }
.result-download.excel:disabled { cursor: wait; opacity: .65; }
.result-download.main:hover { border-color: #0875c9; background: #0875c9; color: #fff; }
.result-download.anomaly:hover { border-color: #9a7100; background: #9a7100; color: #fff; }

/* Data quality system rules */
.system-managed-badge { display:flex; padding:12px 16px; align-items:center; gap:10px; border:1px solid #b9ddd7; border-radius:12px; color:#075c54; background:#effaf7; }
.system-managed-badge > span { display:grid; width:30px; height:30px; place-items:center; border-radius:50%; color:#fff; background:#12a178; font-weight:900; }
.system-managed-badge div { display:flex; flex-direction:column; gap:2px; }
.system-managed-badge strong { font-size:.72rem; }
.system-managed-badge small { color:#65807d; font-size:.59rem; }
.data-quality-page .admin-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
.quality-type-switch { margin-top:20px; }
.quality-section-tabs { display:flex; width:max-content; margin:28px 0 14px; clear:both; }
.quality-section-tabs + .quality-rule-panel,.quality-section-tabs + .quality-history-overview { margin-top:0; }
.quality-panel-heading { border-bottom:1px solid #e2ebed; }
.quality-inner-tabs { display:flex; padding:14px 22px; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid #e2ebed; background:#f8fbfc; }
.quality-inner-tabs > span { color:#667e89; font-size:.61rem; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.quality-inner-tabs .api-type-switch { margin:0; }
.quality-list-heading { display:grid; min-height:52px; padding:10px 22px; grid-template-columns:100px minmax(280px,1.6fr) minmax(190px,.8fr) 85px 72px; align-items:center; gap:20px; color:#667e89; background:#edf6f7; font-size:.56rem; font-weight:900; text-transform:uppercase; }
.quality-list-heading > div { grid-column:1 / 3; display:flex; align-items:center; gap:12px; }
.quality-list-heading p { margin:0; }
.quality-list-heading strong { color:#607681; font-size:.58rem; text-transform:none; }
.quality-history-overview { display:grid; margin-top:18px; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.quality-history-overview > div { display:flex; min-height:92px; padding:17px 19px; align-items:center; gap:14px; border:1px solid #cbdfe5; border-radius:13px; background:#fff; box-shadow:0 7px 22px rgba(25,61,78,.05); }
.quality-history-overview p { display:flex; margin:0; flex-direction:column; gap:3px; }
.quality-history-overview small { color:#71858f; font-size:.58rem; font-weight:900; text-transform:uppercase; }
.quality-history-overview strong { color:#123f52; font-size:1.25rem; }
.quality-history-icon { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border-radius:12px; color:#a13b25; background:#ffede8; font-size:.9rem; font-weight:900; }
.quality-history-icon.ddq { color:#07628d; background:#e5f3ff; font-size:.64rem; }
.quality-history-icon.mmf { color:#087557; background:#e5f8ef; font-size:.64rem; }
.quality-history-controls { display:flex; margin:0; padding:14px 20px; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #e1eaec; background:#f8fbfc; }
.quality-history-controls .api-type-switch { margin:0; }
.quality-history-controls .admin-search { width:min(440px,100%); }
.quality-rule-panel { margin-top:14px; overflow:hidden; }
.quality-rule-list { display:flex; flex-direction:column; }
.quality-rule-card { display:grid; min-height:104px; padding:18px 22px; grid-template-columns:100px minmax(280px,1.6fr) minmax(190px,.8fr) 85px 72px; align-items:center; gap:20px; border-bottom:1px solid #e1eaec; }
.quality-rule-code { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.quality-rule-code span,.quality-api-badge { padding:5px 9px; border-radius:8px; color:#075e86; background:#e5f3ff; font-size:.58rem; font-weight:900; }
.quality-rule-code strong { color:#6b7d89; font-size:.64rem; letter-spacing:.06em; }
.quality-rule-copy { display:flex; min-width:0; flex-direction:column; gap:5px; }
.quality-rule-copy > strong { color:#123c50; font-size:.78rem; }
.quality-rule-copy p { margin:0; color:#536b7a; font-size:.66rem; line-height:1.5; }
.quality-rule-copy small { color:#7b8e99; font-size:.58rem; }
.quality-rule-condition { display:flex; flex-direction:column; gap:5px; }
.quality-rule-condition small { color:#748791; font-size:.56rem; font-weight:800; text-transform:uppercase; }
.quality-rule-condition strong { color:#173f50; font-size:.68rem; }
.quality-severity { justify-self:start; padding:6px 10px; border-radius:999px; font-size:.59rem; font-weight:900; }
.quality-severity.severity-error { color:#b62b20; background:#ffebe8; }
.quality-severity.severity-warning { color:#956200; background:#fff4d5; }
.quality-active { display:flex; align-items:center; gap:6px; color:#087655; font-size:.62rem; font-weight:900; }
.quality-active i { width:8px; height:8px; border-radius:50%; background:#16ad7b; box-shadow:0 0 0 4px #e4f8f1; }
.quality-policy-note { display:flex; margin:18px 22px 22px; padding:14px 16px; align-items:flex-start; gap:12px; border:1px solid #c7dfea; border-radius:10px; background:#f2f9fc; }
.quality-policy-note > span { display:grid; width:24px; height:24px; flex:0 0 auto; place-items:center; border-radius:50%; color:#fff; background:#08789b; font-weight:900; }
.quality-policy-note p { margin:0; color:#536b7a; font-size:.64rem; line-height:1.5; }
.quality-policy-note strong { display:block; margin-bottom:2px; color:#123f52; }
.quality-anomaly-toolbar { margin-top:24px; align-items:center; }
.quality-anomaly-toolbar > div { margin-right:auto; }
.quality-anomaly-toolbar h2 { margin:3px 0 0; color:#112d3c; font-size:1rem; }
.quality-anomaly-toolbar .admin-search { margin-left:auto; }
.quality-anomaly-panel { overflow-x:auto; }
.quality-anomaly-row { display:grid; min-width:1050px; min-height:70px; padding:12px 20px; grid-template-columns:130px 80px 165px 130px minmax(300px,1fr) 90px; align-items:center; gap:16px; border-bottom:1px solid #e3ebed; color:#334f5f; font-size:.65rem; }
.quality-anomaly-row time { display:flex; flex-direction:column; gap:3px; }
.quality-anomaly-row time small { color:#7d909b; font-size:.57rem; }
.quality-anomaly-header { min-height:54px; color:#607882; background:#eff7f8; font-size:.57rem; font-weight:900; text-transform:uppercase; }
.quality-api-mmf { color:#087755; background:#e5f8ef; }
.quality-notice { display:flex; margin:0 0 16px; padding:12px 15px; align-items:center; gap:10px; border:1px solid #a7ddc8; border-radius:10px; color:#076148; background:#effbf6; font-size:.68rem; font-weight:800; }
.quality-notice > span { display:grid; width:22px; height:22px; place-items:center; border-radius:50%; color:#fff; background:#12a178; }
.quality-notice button { margin-left:auto; border:0; color:inherit; background:transparent; font-size:1.1rem; cursor:pointer; }
.quality-rule-toolbar { display:flex; padding:14px 22px; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid #e2ebed; background:#f8fbfc; }
.quality-source-switch { display:flex; padding:4px; gap:4px; border:1px solid #ccdde4; border-radius:11px; background:#edf4f6; }
.quality-source-switch button { min-height:38px; padding:8px 14px; border:0; border-radius:8px; color:#526b78; background:transparent; font-size:.65rem; font-weight:850; cursor:pointer; }
.quality-source-switch button.active { color:#fff; background:#075b77; box-shadow:0 3px 10px rgb(4 67 88 / 16%); }
.quality-source-switch small { margin-left:6px; padding:2px 6px; border-radius:999px; background:rgb(255 255 255 / 20%); }
.quality-create-button,.quality-primary-button { display:inline-flex; min-height:42px; padding:10px 17px; align-items:center; gap:8px; border:0; border-radius:9px; color:#fff; background:#087a70; font-size:.68rem; font-weight:900; cursor:pointer; box-shadow:0 6px 14px rgb(7 107 99 / 18%); }
.quality-create-button span { font-size:1rem; }
.quality-manage-heading { grid-template-columns:100px minmax(260px,1.5fr) minmax(200px,.9fr) 85px minmax(210px,.8fr); }
.quality-manage-card { grid-template-columns:100px minmax(260px,1.5fr) minmax(200px,.9fr) 85px minmax(210px,.8fr); transition:opacity 150ms ease,background 150ms ease; }
.quality-manage-card.is-inactive { opacity:.68; background:#f8fafb; }
.quality-rule-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.quality-toggle { display:inline-flex; min-height:30px; padding:5px 9px; align-items:center; gap:6px; border:1px solid #d2dfe4; border-radius:999px; color:#667b85; background:#fff; font-size:.58rem; font-weight:900; cursor:pointer; }
.quality-toggle i { width:8px; height:8px; border-radius:50%; background:#9aacb3; }
.quality-toggle.active { border-color:#bde5d5; color:#087655; background:#effaf5; }
.quality-toggle.active i { background:#16ad7b; box-shadow:0 0 0 3px #dcf5eb; }
.quality-icon-action { min-height:30px; padding:5px 9px; border:1px solid #cbdde5; border-radius:7px; color:#075e86; background:#fff; font-size:.57rem; font-weight:900; cursor:pointer; }
.quality-icon-action.delete { border-color:#efc5c1; color:#b52d25; }
.quality-report-only-copy { max-width:760px; margin:7px 0 0; color:#5b7180; font-size:.65rem; line-height:1.55; }
.quality-report-only-title { padding:7px 11px; border:1px solid #bde3d4; border-radius:999px; color:#087655; background:#effaf5; font-size:.59rem; font-weight:900; white-space:nowrap; }
.quality-substitution-panel { overflow:hidden; }
.quality-substitution-scroll { overflow-x:auto; }
.quality-substitution-row { display:grid; min-width:900px; min-height:72px; padding:13px 22px; grid-template-columns:80px minmax(210px,.9fr) minmax(260px,1.15fr) minmax(280px,1.2fr); align-items:center; gap:18px; border-bottom:1px solid #e2ebed; color:#496271; font-size:.66rem; }
.quality-substitution-row > strong { color:#123e62; }
.quality-substitution-header { min-height:52px; color:#617985; background:#eff7f8; font-size:.57rem; font-weight:900; text-transform:uppercase; }
.quality-combined-scroll { width:100%; overflow-x:hidden; }
.quality-combined-row { display:grid; width:100%; min-width:0; box-sizing:border-box; min-height:84px; padding:14px 18px; grid-template-columns:minmax(0,1.05fr) minmax(0,1.05fr) minmax(0,1.25fr) 74px minmax(0,.9fr); align-items:center; gap:clamp(8px,1vw,16px); border-bottom:1px solid #e2ebed; background:#fff; color:#496271; font-size:.65rem; }
.quality-combined-row > * { min-width:0; overflow-wrap:anywhere; }
.quality-combined-row.is-inactive { opacity:.66; background:#f7fafb; }
.quality-combined-header { min-height:54px; color:#617985; background:#eff7f8; font-size:.57rem; font-weight:900; text-transform:uppercase; }
.quality-rule-origin { align-self:flex-start; padding:4px 8px; border-radius:999px; color:#5d6f79; background:#edf2f4; font-size:.53rem; font-weight:900; text-transform:uppercase; }
.quality-rule-origin.configured { color:#075e86; background:#e5f3ff; }
.quality-substitution-copy { color:#174b57; font-weight:750; line-height:1.5; }
.quality-modal-overlay { position:fixed; inset:0; z-index:500; display:grid; padding:24px; place-items:center; overflow-y:auto; background:rgb(7 32 52 / 62%); backdrop-filter:blur(3px); }
.quality-rule-modal { width:min(760px,100%); max-height:calc(100dvh - 48px); overflow-y:auto; border:1px solid #c8dce4; border-top:5px solid #087a8f; border-radius:18px; background:#fff; box-shadow:0 28px 80px rgb(4 28 48 / 30%); }
.quality-rule-modal > header { display:flex; padding:20px 26px; align-items:center; justify-content:space-between; border-bottom:1px solid #dce7eb; background:linear-gradient(110deg,#f4fbfd,#fff9df); }
.quality-rule-modal h2,.quality-delete-modal h2 { margin:4px 0 0; color:#0b3762; font-size:1.25rem; }
.quality-rule-modal > header > button { display:grid; width:38px; height:38px; place-items:center; border:1px solid #d1e0e6; border-radius:50%; color:#123f66; background:#fff; font-size:1.2rem; cursor:pointer; }
.quality-rule-form { display:flex; padding:22px 26px; flex-direction:column; gap:18px; }
.quality-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.quality-form-grid label,.quality-description { display:flex; min-width:0; flex-direction:column; gap:7px; color:#153d63; font-size:.64rem; font-weight:850; }
.quality-form-grid input,.quality-form-grid select,.quality-description textarea,.quality-check-row > input[type=number] { width:100%; min-height:44px; padding:10px 12px; border:1px solid #c7dae4; border-radius:9px; color:#142d45; background:#fff; font-size:.7rem; }
.quality-form-grid small { color:#778b96; font-size:.56rem; font-weight:600; }
.quality-description textarea { resize:vertical; }
.quality-check-builder { display:flex; margin:0; padding:14px; flex-direction:column; gap:9px; border:1px solid #cddfe6; border-radius:12px; background:#f7fbfc; }
.quality-check-builder legend { padding:0 7px; color:#123f63; font-size:.65rem; font-weight:900; }
.quality-check-row { display:grid; padding:11px 12px; grid-template-columns:20px 1fr 150px; align-items:center; gap:11px; border:1px solid #dce7eb; border-radius:9px; background:#fff; }
.quality-check-row.missing { grid-template-columns:20px 1fr; }
.quality-check-row > input[type=checkbox],.quality-active-choice > input { width:17px; height:17px; accent-color:#087a70; }
.quality-check-row span,.quality-active-choice span { display:flex; flex-direction:column; gap:2px; }
.quality-check-row strong,.quality-active-choice strong { color:#123e62; font-size:.65rem; }
.quality-check-row small,.quality-active-choice small { color:#708590; font-size:.56rem; }
.quality-check-row > input[type=number]:disabled { color:#96a5ac; background:#edf2f4; }
.quality-active-choice { display:flex; padding:12px 14px; align-items:center; gap:11px; border:1px solid #bfe1d5; border-radius:10px; background:#f1faf7; }
.quality-form-error { padding:11px 13px; border-left:4px solid #c9342c; color:#a12720; background:#fff0ee; font-size:.65rem; font-weight:800; }
.quality-managed-note { display:flex; padding:12px 14px; flex-direction:column; gap:4px; border-left:4px solid #087a8f; color:#536b7a; background:#eef8fb; font-size:.62rem; line-height:1.45; }
.quality-managed-note strong { color:#0b4965; font-size:.67rem; }
.quality-rule-form :is(input,select,textarea):disabled { color:#647884; background:#eef3f5; cursor:not-allowed; }
.quality-rule-modal > footer,.quality-delete-modal footer { display:flex; padding:16px 26px 22px; justify-content:flex-end; gap:10px; border-top:1px solid #e1e9ec; }
.quality-secondary-button,.quality-delete-button { min-height:42px; padding:9px 16px; border:1px solid #cddce3; border-radius:9px; color:#163e63; background:#fff; font-size:.66rem; font-weight:900; cursor:pointer; }
.quality-delete-button { border-color:#c52c25; color:#fff; background:#c52c25; }
.quality-delete-modal { display:grid; width:min(560px,100%); padding:26px; grid-template-columns:46px 1fr; gap:16px; border:1px solid #efb8b3; border-radius:16px; background:#fff9f8; box-shadow:0 24px 70px rgb(42 14 12 / 30%); }
.quality-delete-modal p:not(.section-label) { margin:8px 0 0; color:#6e5c58; font-size:.68rem; line-height:1.5; }
.quality-delete-modal footer { grid-column:1 / -1; padding:18px 0 0; }
.quality-delete-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:50%; color:#fff; background:#d6483f; font-weight:900; }
@media (max-width:900px) {
  .data-quality-page .admin-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quality-rule-card { grid-template-columns:80px 1fr; }
  .quality-rule-condition,.quality-severity,.quality-active { grid-column:2; }
  .system-managed-badge { display:none; }
  .quality-history-overview { grid-template-columns:1fr; }
  .quality-history-controls { align-items:stretch; flex-direction:column; }
  .quality-inner-tabs { align-items:stretch; flex-direction:column; }
  .quality-list-heading { display:none; }
  .quality-rule-toolbar { align-items:stretch; flex-direction:column; }
  .quality-manage-card { grid-template-columns:80px 1fr; }
  .quality-rule-actions { grid-column:2; }
  .quality-form-grid { grid-template-columns:1fr; }
  .quality-check-row { grid-template-columns:20px 1fr; }
  .quality-check-row > input[type=number] { grid-column:2; }
}
@media (max-width:1100px) {
  .quality-combined-header { display:none; }
  .quality-combined-row:not(.quality-combined-header) { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:12px 18px; }
  .quality-combined-row:not(.quality-combined-header) > :is(.quality-substitution-copy) { grid-column:1 / -1; }
  .quality-combined-row:not(.quality-combined-header) > .quality-rule-actions { grid-column:2; justify-self:end; }
  .quality-combined-row:not(.quality-combined-header) > .quality-rule-actions { flex-direction:column; align-items:flex-start; }
  .quality-combined-row:not(.quality-combined-header) > .quality-severity { display:flex; flex-direction:column; align-items:flex-start; }
  .quality-combined-row:not(.quality-combined-header) > :is(.quality-rule-copy,.quality-rule-condition,.quality-substitution-copy,.quality-severity,.quality-rule-actions)::before { display:block; margin-bottom:4px; color:#71858f; font-size:.54rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
  .quality-combined-row:not(.quality-combined-header) > .quality-rule-copy::before { content:"Rule"; }
  .quality-combined-row:not(.quality-combined-header) > .quality-rule-condition::before { content:"Validation condition"; }
  .quality-combined-row:not(.quality-combined-header) > .quality-substitution-copy::before { content:"Report action"; }
  .quality-combined-row:not(.quality-combined-header) > .quality-severity::before { content:"Severity"; }
  .quality-combined-row:not(.quality-combined-header) > .quality-rule-actions::before { content:"Status / actions"; }
}
@media (max-width:640px) {
  .quality-combined-row:not(.quality-combined-header) { grid-template-columns:minmax(0,1fr); padding:14px 16px; }
  .quality-combined-row:not(.quality-combined-header) > :is(.quality-substitution-copy,.quality-rule-actions) { grid-column:1; }
  .quality-combined-row:not(.quality-combined-header) > .quality-rule-actions { justify-self:start; }
}
@media (max-width: 1180px) {
    .compact-filter-layout { grid-template-columns: 1fr; }
    .date-time-control > div, .submission-date-time { grid-template-columns: minmax(0, 1.15fr) minmax(140px, .85fr); }
}

@media (max-width: 640px) {
    .date-pair, .date-time-control > div, .submission-date-time, .data-type-and-interval, .submission-period-controls { grid-template-columns: 1fr; }
    .filter-actions, .filter-action-buttons { width: 100%; }
    .filter-action-buttons { justify-content: stretch; }
    .filter-action-buttons button { flex: 1; justify-content: center; }
    .result-heading-actions { width: 100%; justify-content: flex-start; }
}
.analytics-empty { padding: 24px; color: var(--sb-muted); }
:root {
    --sidebar-width: 264px;
    --sb-background: #f3f6fa;
    --sb-border: #dfe7ef;
    --sb-muted: #526478;
    --ui-shadow: 0 4px 20px rgb(15 45 76 / 4%);
}

body { line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .6; }
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #438ccb;
    outline-offset: 3px;
}
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px 20px; background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-main { background: radial-gradient(ellipse at top right, #e9f1f9, transparent 55%), var(--sb-background); }
.app-content { max-width: 1800px; margin: auto; padding: 34px clamp(20px, 3vw, 48px) 48px; }
.app-topbar { position: relative; height: 70px; padding: 0 clamp(20px, 3vw, 48px); background: #fff; backdrop-filter: none; }
.topbar-account { display: flex; margin-left: auto; align-items: center; gap: 8px; }
.user-summary { position: static; min-width: 0; max-width: 245px; margin-left: 0; padding: 4px 8px 4px 5px; gap: 9px; border: 1px solid transparent; border-radius: 12px; }
.app-topbar:has(.profile-overlay) { z-index: 210; }
.user-summary .user-summary-details { min-width: 0; }
.user-summary strong { display: block; overflow: hidden; font-size: .78rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.user-summary small { margin-top: 2px; font-size: .64rem; line-height: 1.2; }
.user-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #eaf2fb; color: var(--sb-navy); }
.user-summary-chevron { flex: 0 0 auto; color: #7890a6; font-size: 15px; transform: translateY(-2px); }
.topbar-logout-form { margin: 0 0 0 2px; padding-left: 10px; border-left: 1px solid #dbe5ef; }
.topbar-logout-form button { display: inline-flex; min-height: 40px; padding: 8px 12px; align-items: center; gap: 7px; border: 1px solid #d7e3ee; border-radius: 11px; color: #173d67; background: #fff; font-size: .72rem; font-weight: 700; cursor: pointer; transition: border-color 160ms ease, color 160ms ease, background 160ms ease; }
.topbar-logout-form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-logout-form button:hover { border-color: #efb4b4; color: #b42318; background: #fff7f7; }
.access-request-alert { display: grid; width: 100%; margin: -4px 0 20px; padding: 15px 17px; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid #e3c557; border-radius: 14px; color: #4d3d00; background: linear-gradient(100deg, #fff9d9, #fffdf3); text-align: left; cursor: pointer; box-shadow: 0 8px 22px rgb(142 105 0 / 8%); }
.access-request-alert:hover { border-color: #caa91e; background: #fff7ca; }
.access-request-alert-icon { display: grid; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: #d6a900; place-items: center; font-size: 18px; font-weight: 900; }
.access-request-alert > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.access-request-alert strong { font-size: .83rem; }
.access-request-alert small { color: #78652b; font-size: .68rem; }
.access-request-alert-action { display: flex; align-items: center; gap: 8px; color: #765c00; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.access-request-alert-action b { font-size: 17px; }
body:has(.admin-overlay) { overflow: hidden; }
.admin-overlay { max-width: 100vw; max-height: 100dvh; padding-top: 92px; overscroll-behavior: contain; }
.admin-overlay > .admin-dialog { display: flex; width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 112px); margin-block: 4px; flex-direction: column; overflow: hidden; }
.admin-dialog-header { flex: 0 0 auto; }
.admin-dialog > form,
.admin-dialog > .api-test-form,
.admin-dialog > .delivery-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.admin-dialog > form::-webkit-scrollbar,
.admin-dialog > .api-test-form::-webkit-scrollbar,
.admin-dialog > .delivery-dialog-body::-webkit-scrollbar { width: 8px; }
.admin-dialog > form::-webkit-scrollbar-thumb,
.admin-dialog > .api-test-form::-webkit-scrollbar-thumb,
.admin-dialog > .delivery-dialog-body::-webkit-scrollbar-thumb { border: 2px solid #fff; border-radius: 999px; background: #9eb2c1; }
.schedule-dialog { overflow: hidden; }
.schedule-dialog > form { padding-bottom: 0; }
.schedule-dialog .plant-form-actions { position: sticky; z-index: 6; bottom: 0; margin-inline: -26px; margin-bottom: 0; padding: 16px 26px 20px; border-top: 1px solid #dce6ed; background: rgb(255 255 255 / 96%); box-shadow: 0 -8px 18px rgb(16 48 73 / 5%); backdrop-filter: blur(8px); }
.schedule-plant-picker { position: relative; }
.schedule-plant-picker > label { display: flex; flex-direction: column; }
.schedule-plant-combobox { position: relative; }
.schedule-plant-combobox input { width: 100%; padding-right: 52px; }
.schedule-plant-combobox > button { position: absolute; top: 5px; right: 5px; display: grid; width: 40px; height: calc(100% - 10px); padding: 0; border: 0; border-left: 1px solid #d7e3ec; border-radius: 0 7px 7px 0; color: #164977; background: #f6fafc; cursor: pointer; place-items: center; }
.schedule-plant-combobox > button:hover { background: #eaf4fa; }
.schedule-plant-combobox > button span { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 160ms ease; }
.schedule-plant-combobox > button[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
.schedule-plant-suggestions { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; left: 0; max-height: 220px; overflow-y: auto; padding: 6px; border: 1px solid #cbdbe8; border-radius: 10px; background: #fff; box-shadow: 0 16px 36px rgb(20 55 83 / 18%); }
.schedule-plant-suggestions button { display: flex; width: 100%; padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; border-radius: 7px; color: #123a63; background: transparent; text-align: left; cursor: pointer; }
.schedule-plant-suggestions button:hover { background: #eef6fb; }
.schedule-plant-suggestions small { color: #63798d; }
.schedule-plant-suggestions > p { margin: 0; padding: 13px; color: #63798d; font-size: .75rem; }
.bulk-plant-picker { padding: 14px; border: 1px solid #d7e5ec; border-radius: 12px; background: #f8fbfc; }
.bulk-plant-summary { display: flex; margin-top: 10px; align-items: center; justify-content: space-between; gap: 12px; }
.bulk-plant-summary > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; color: #173d5b; font-size: .72rem; }
.bulk-plant-summary small { color: #6c8091; font-size: .65rem; }
.bulk-plant-summary > button { padding: 5px 0; border: 0; color: #0875a5; background: transparent; cursor: pointer; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.selected-plant-chips { display: flex; margin-top: 10px; flex-wrap: wrap; gap: 7px; }
.selected-plant-chips > span { display: grid; min-height: 38px; padding: 6px 7px 6px 10px; grid-template-columns: auto 26px; column-gap: 5px; border: 1px solid #b9ddd6; border-radius: 8px; color: #075d53; background: #edf9f6; }
.selected-plant-chips b { align-self: end; font-size: .68rem; }
.selected-plant-chips small { grid-column: 1; color: #5d7c79; font-size: .59rem; }
.selected-plant-chips button { grid-row: 1 / span 2; grid-column: 2; width: 26px; height: 26px; align-self: center; padding: 0; border: 0; border-radius: 7px; color: #087f69; background: #d9f1eb; cursor: pointer; font-size: 1rem; line-height: 1; }
.bulk-plant-suggestions {
    position: static;
    display: grid;
    max-height: none;
    margin-top: 12px;
    padding: 8px;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    border-color: #d5e3eb;
    background: #fff;
    box-shadow: none;
}
.bulk-plant-suggestions > .select-all-plants,
.bulk-plant-suggestions > p { grid-column: 1 / -1; }
.schedule-plant-suggestions button.select-all-plants,
.schedule-plant-suggestions button.plant-multi-option { min-height: 56px; flex-direction: row; align-items: center; gap: 10px; border: 1px solid #e0e9ef; }
.schedule-plant-suggestions button.select-all-plants { min-height: 58px; margin-bottom: 1px; flex-direction: row; align-items: center; gap: 10px; border: 1px solid #c8e3df; border-radius: 8px; color: #075f72; background: #eff9f7; }
.schedule-plant-suggestions button.select-all-plants.selected,
.schedule-plant-suggestions button.plant-multi-option.selected { color: #075f57; background: #e8f7f3; }
.bulk-plant-suggestions button > span:last-child { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.plant-check { display: grid; width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid #a9bfce; border-radius: 6px; color: #fff; background: #fff; font-size: .72rem; font-weight: 900; place-items: center; }
.selected .plant-check { border-color: #07866f; background: #07866f; }
.schedule-form-grid label > small { margin-top: 6px; color: #63798d; font-size: .68rem; }
.schedule-month-field { display: flex; flex-direction: column; gap: 7px; }
.schedule-month-field > small { color: #63798d; font-size: .68rem; }
.schedule-month-options { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.schedule-month-options button { min-height: 38px; border: 1px solid #cbdbe5; border-radius: 8px; color: #405d71; background: #f8fbfd; cursor: pointer; font-size: .66rem; font-weight: 800; }
.schedule-month-options button:hover { border-color: #6ba9c4; background: #eef7fa; }
.schedule-month-options button.selected { border-color: #087f69; color: #fff; background: #087f69; box-shadow: 0 4px 10px rgb(8 127 105 / 18%); }
.schedule-admin-table {
    --schedule-columns: minmax(210px, 1.55fr) 86px 112px 120px minmax(190px, 1.35fr) 64px 92px 112px 76px;
    min-width: 1240px;
}
.schedule-admin-row { min-height: 76px; padding: 14px 22px; grid-template-columns: var(--schedule-columns); gap: 14px; font-size: .74rem; transition: background 140ms ease; }
.schedule-admin-row:not(.admin-table-header):hover { background: #f4f9fc; }
.schedule-admin-row.admin-table-header { min-height: 58px; color: #587185; background: #edf6f9; font-size: .65rem; letter-spacing: .045em; }
.schedule-identity { min-width: 0; }
.schedule-identity > div { min-width: 0; }
.schedule-identity strong { display: block; overflow: hidden; color: #083c62; text-overflow: ellipsis; white-space: nowrap; }
.schedule-identity small { display: block; margin-top: 4px; overflow: hidden; color: #728697; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-plant-cell { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.schedule-plant-cell strong { overflow: hidden; color: #173b58; text-overflow: ellipsis; white-space: nowrap; }
.schedule-plant-cell small { color: #6c8192; font-size: .65rem; }
.schedule-group-plants strong { color: #075985; }
.schedule-group-plants small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-total-cell { justify-self: center; color: #173b58; font-weight: 700; text-align: center; white-space: nowrap; }
.schedule-plant-action-cell { display: flex; min-width: 0; align-items: center; justify-content: center; }
.schedule-type-cell { color: #183c59; line-height: 1.35; }
.schedule-time-cell { color: #405b70; line-height: 1.4; }
.schedule-admin-row .api-type-badge,
.schedule-admin-row .status-pill { justify-self: center; }
.schedule-admin-row .admin-edit-action { min-width: 72px; }
.schedule-admin-row.admin-table-header > :nth-child(2),
.schedule-admin-row.admin-table-header > :nth-child(3),
.schedule-admin-row.admin-table-header > :nth-child(6),
.schedule-admin-row.admin-table-header > :nth-child(7),
.schedule-admin-row.admin-table-header > :nth-child(8),
.schedule-admin-row.admin-table-header > :nth-child(9) { justify-self: center; text-align: center; }
.schedule-confirm-overlay { position: fixed; z-index: 420; inset: 0; display: grid; padding: 24px; background: rgb(8 31 50 / 42%); backdrop-filter: blur(2px); place-items: center; }
.schedule-status-confirmation { position: relative; display: flex; width: min(520px, 100%); margin: 0; padding: 27px 28px 24px; align-items: flex-start; gap: 15px; border: 1px solid #f1cf77; border-radius: 14px; color: #654c08; background: #fffdf6; box-shadow: 0 24px 70px rgb(9 32 51 / 28%); }
.schedule-status-warning { display: grid; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: #fff; background: #c48b00; font-weight: 800; place-items: center; }
.schedule-status-confirmation > div { flex: 1; }
.schedule-status-confirmation .profile-close { position: absolute; top: 12px; right: 12px; }
.delete-confirmation-dialog { border-color: #efb0aa; color: #752820; background: #fff9f8; }
.delete-confirmation-dialog .schedule-status-warning { background: #cf4f45; }
.delete-confirmation-dialog .section-label { color: #b42318; }
.delete-confirmation-dialog h3 { color: #7a271f; }
.schedule-status-confirmation h3 { margin: 3px 38px 8px 0; color: #3e310c; font-size: 1.05rem; }
.schedule-status-confirmation strong { color: #503d09; }
.schedule-status-confirmation p:not(.section-label) { margin: 5px 0 18px; color: #735f29; font-size: .76rem; line-height: 1.6; }
.schedule-status-confirmation > div > div { display: flex; justify-content: flex-end; gap: 9px; }
.confirm-status-action { min-height: 40px; padding: 8px 15px; border: 0; border-radius: 8px; color: #fff; background: #9a6a00; font-size: .73rem; font-weight: 700; cursor: pointer; }
.confirm-status-action:hover { background: #765100; }
.schedule-status-field { display: flex; flex-direction: column; gap: 8px; }
.schedule-field-label { color: #123d67; font-size: .7rem; font-weight: 700; }
.schedule-status-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schedule-status-options button { display: flex; min-height: 74px; padding: 12px 14px; align-items: center; gap: 11px; border: 1px solid #d4e0e9; border-radius: 10px; color: #405b70; background: #fff; text-align: left; cursor: pointer; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.schedule-status-options button:hover { border-color: #94b5cd; background: #f7fbfd; }
.schedule-status-options button > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.schedule-status-options strong { color: #173b58; font-size: .76rem; }
.schedule-status-options small { color: #6c8192; font-size: .65rem; line-height: 1.4; }
.status-option-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 50%; background: #eaf1f5; font-weight: 800; place-items: center; }
.schedule-status-options .active-option.selected { border-color: #54b58b; background: #eefbf5; box-shadow: 0 0 0 2px rgb(45 155 109 / 10%); }
.schedule-status-options .active-option.selected .status-option-icon { color: #fff; background: #159568; }
.schedule-status-options .inactive-option.selected { border-color: #e49b94; background: #fff4f3; box-shadow: 0 0 0 2px rgb(196 74 63 / 8%); }
.schedule-status-options .inactive-option.selected .status-option-icon { color: #fff; background: #c54f45; }
@media (max-width: 640px) { .schedule-status-options { grid-template-columns: 1fr; } .schedule-status-confirmation { padding: 24px 20px 20px; } }
.environment-badge { font-size: .67rem; letter-spacing: .09em; }
.app-sidebar { background: linear-gradient(170deg, #082e68, #063b63); }
.sidebar-brand { height: 92px; flex-shrink: 0; padding: 22px 18px; gap: 10px; }
.sidebar-brand small { font-size: .6rem; line-height: 1.5; }
.nav-body { padding: 18px 12px 14px; scrollbar-width: thin; scrollbar-color: #45617f transparent; }
.nav-section-title { margin: 12px 14px 10px; font-size: .61rem; letter-spacing: .16em; color: #a1b7d3; }
.nav-body nav { gap: 4px; }
.nav-body .nav-link { min-height: 44px; padding: 9px 12px; gap: 11px; border-radius: 8px; font-size: .8rem; color: #d7e5f4; }
.nav-body .nav-link:hover { background: rgb(255 255 255 / 9%); color: white; }
.nav-body .nav-link.active { color: #092e61; background: var(--sb-yellow); box-shadow: 0 4px 12px rgb(0 0 0 / 8%); }
.nav-symbol { width: 29px; height: 29px; flex-shrink: 0; border-color: rgb(191 214 240 / 28%); border-radius: 7px; font-size: .56rem; }
.nav-link.active .nav-symbol { border-color: rgb(9 46 97 / 24%); }
.sidebar-status { margin-top: 22px; padding: 12px; border-radius: 9px; }
.system-footer-sidebar { border-radius: 9px; }
.page-heading { margin-bottom: 26px; align-items: center; gap: 18px; }
.page-heading h1 { font-size: clamp(1.75rem, 2.5vw, 2.65rem); line-height: 1.15; letter-spacing: -.035em; }
.section-label { font-size: .65rem; letter-spacing: .14em; }
.page-subtitle { max-width: 720px; font-size: .88rem; line-height: 1.65; margin-top: 10px; }
.primary-action, .secondary-action, .graph-action, .login-button, .profile-cancel { border-radius: 9px; min-height: 44px; font-size: .82rem; }
.primary-action { box-shadow: 0 3px 8px rgb(16 104 184 / 12%); }
.metric-grid { gap: 18px; margin-bottom: 26px; }
.metric-card { min-height: 150px; padding: 26px; border-radius: 13px; box-shadow: var(--ui-shadow); }
.metric-card::after { top: auto; bottom: 0; left: 0; width: 100%; height: 4px; }
.metric-card strong { font-size: 3.1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.metric-card div span { font-size: .83rem; }
.panel, .table-panel, .filter-panel, .dataset-panel, .graph-panel { border-radius: 13px; box-shadow: var(--ui-shadow); }
.panel-heading, .dataset-heading, .ddq-table-heading { padding: 22px 24px; }
.panel-heading h2, .dataset-heading h2, .ddq-table-heading h2 { font-size: 1.15rem; }
.record-row { padding: 20px 24px; }
.record-row:hover { background: #f8fbfe; }
.dashboard-record-row { grid-template-columns: minmax(138px,.72fr) minmax(180px,1.45fr) auto minmax(96px,.55fr); min-height: 88px; }
.dashboard-record-row .record-code { display: block; min-width: 0; padding: 7px 9px; overflow: hidden; border: 1px solid #cfe2f1; border-radius: 7px; background: #f3f8fc; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-record-row time { margin: 0; justify-self: end; white-space: nowrap; }
.focus-panel { padding: 28px; background: radial-gradient(circle at 100% 0, #157d9a, transparent 70%), #083f75; }
.focus-panel h2 { font-size: 1.7rem; line-height: 1.2; }
.focus-panel .health-proof-button { display: inline-flex; margin-top: 24px; padding: 0; align-items: center; gap: 9px; border: 0; color: var(--sb-yellow); background: transparent; cursor: pointer; font-size: .76rem; font-weight: 800; }
.focus-panel .health-proof-button span { font-size: 1rem; transition: transform 160ms ease; }
.focus-panel .health-proof-button:hover span { transform: translateX(3px); }
.health-status-dialog { width: min(100%, 640px); overflow: hidden; }
.health-status-content { display: grid; margin: 24px 26px 14px; padding: 18px; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 15px; border: 1px solid #bfe3d3; border-radius: 12px; background: #f0faf6; }
.health-status-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: #12a276; box-shadow: 0 0 0 6px #ddf5eb; font-size: 1.1rem; font-weight: 900; }
.connection-line.connection-offline span { background: #f05a52; box-shadow: 0 0 0 4px rgb(240 90 82 / 16%); }
.connection-line.connection-unknown span { background: #e7a927; box-shadow: 0 0 0 4px rgb(231 169 39 / 18%); }
.health-status-content.health-status-disconnected { border-color: #f1c3c0; background: #fff5f4; }
.health-status-disconnected .health-status-icon { background: #d94c45; box-shadow: 0 0 0 6px #fde6e4; }
.health-status-disconnected strong { color: #84302b; }
.metric-card:disabled { cursor: not-allowed; opacity: .72; }
.health-status-content strong { color: #0a4f43; font-size: .84rem; }
.health-status-content p { margin: 4px 0 0; color: #57736d; font-size: .7rem; line-height: 1.5; }
.health-status-details { display: grid; margin: 0 26px 24px; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #dce7ed; border-radius: 10px; overflow: hidden; }
.health-status-details > div { display: flex; min-width: 0; padding: 14px 15px; flex-direction: column; gap: 4px; border-right: 1px solid #dce7ed; }
.health-status-details > div:last-child { border-right: 0; }
.health-status-details span { color: #718494; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.health-status-details strong { overflow: hidden; color: #143c5f; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.health-status-footer .primary-action { min-height: 40px; padding: 8px 18px; }
.filter-panel { padding: 24px; }
.filter-grid { gap: 20px; }
.filter-field > span, .filter-field legend { font-size: .75rem; letter-spacing: .01em; }
.filter-field input, .filter-field select, .profile-field input { min-height: 44px; border-radius: 8px; font-size: .84rem; background-color: #fff; }
.profile-field.profile-field-wide { grid-column: 1 / -1; }
.filter-field small { font-size: .71rem; line-height: 1.5; }
.filter-actions { margin-top: 22px; gap: 14px; flex-wrap: wrap; }
.filter-actions > span { font-size: .76rem; }
.filter-summary { border-radius: 10px; }
.dataset-item { padding-top: 19px; padding-bottom: 19px; }
.status-pill { border-radius: 999px; font-size: .7rem; padding: 5px 10px; }
.table-action { min-height: 36px; border-radius: 7px; font-size: .72rem; }
:is(.report-row, .on-demand-row, .collection-row, .ddq-table-row, .mmf-table-row) { font-size: .79rem; }
:is(.report-row, .on-demand-row, .collection-row, .ddq-table-row, .mmf-table-row):not(:first-child):hover { background-color: #f8fbfe; }
:is(.report-row, .on-demand-row, .collection-row) small { font-size: .7rem; }
.report-row time, .on-demand-row time, .analysis-description { font-size: .76rem; }
.summary-stat { border-radius: 8px; }
.summary-stat > span { opacity: 1; font-size: .68rem; }
:is(.profile-overlay, .metric-modal-overlay, .graph-modal-overlay, .on-demand-overlay, .report-overlay, .summary-list-overlay) { padding: 24px; background: rgb(8 28 51 / 55%); }
:is(.profile-dialog, .metric-dialog, .graph-dialog, .on-demand-dialog, .report-dialog, .summary-list-dialog) { border-radius: 16px; max-height: calc(100dvh - 48px); }
.profile-close { border-radius: 50%; min-width: 36px; flex-shrink: 0; }
.login-page { grid-template-columns: 1.05fr 1fr; }
.login-story { padding: 50px clamp(32px, 4vw, 72px); }
.brand-lockup-light { top: 48px; left: clamp(32px, 4vw, 72px); max-width: calc(100% - 64px); border-radius: 12px; box-shadow: none; }
.brand-lockup-light small { font-size: .58rem; }
.story-copy { padding: 145px 0 100px; }
.story-copy h1 { font-size: clamp(2.8rem, 4.1vw, 4.8rem); line-height: 1.08; letter-spacing: -.035em; }
.login-panel { background: radial-gradient(ellipse at top right, #eef5fb, transparent 65%), #fff; }
.login-card { width: 100%; max-width: 420px; }
.login-card h2 { letter-spacing: -.035em; }
.input-shell { min-height: 52px; border-radius: 9px; background: #fff; }
.login-button { min-height: 52px; }
.demo-accounts { border-radius: 10px; }
.security-note { line-height: 1.6; }

@media (max-width: 1200px) and (min-width: 901px) {
    .compact-filter-layout { grid-template-columns: 1fr; }
    .excel-sheet-meta { grid-template-columns: 1fr 1fr; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-heading { flex-wrap: wrap; }
    .admin-overlay > .admin-dialog { width: min(760px, calc(100vw - 40px)); }
}
@media (max-width: 900px) {
    .period-filter-grid { grid-template-columns: 1fr 1fr; }
    .filter-date-time-range { grid-column: 1 / -1; }
    .data-type-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-page { grid-template-columns: 1fr; }
    .app-sidebar { width: 100%; }
    .sidebar-brand { height: 78px; padding: 16px 20px; }
    .nav-body { max-height: 65dvh; }
    .app-topbar { height: 64px; }
    .environment-badge { display: flex; font-size: .59rem; }
    .app-content { padding: 26px 20px 40px; }
    .user-summary { max-width: 190px; }
    .admin-overlay { padding: 80px 10px 10px; }
    .admin-overlay > .admin-dialog { width: min(700px, calc(100vw - 20px)); max-height: calc(100dvh - 90px); margin: 0; }
    .admin-dialog-header { padding: 18px 20px 15px; }
    .admin-dialog > form { padding: 18px 20px 0; }
    .schedule-dialog .plant-form-actions { margin-inline: -20px; padding-inline: 20px; }
}
@media (max-width: 640px) {
    .topbar-account { gap: 7px; }
    .topbar-logout-form { padding-left: 7px; }
    .topbar-logout-form button { width: 42px; padding: 0; justify-content: center; }
    .topbar-logout-form button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .user-summary { width: 40px; padding: 2px; }
    .user-summary-details, .user-summary-chevron { display: none !important; }
    .environment-badge { letter-spacing: .04em; }
    .access-request-alert { grid-template-columns: 38px 1fr; }
    .access-request-alert-action { grid-column: 2; }
    .location-alternatives { grid-template-columns: 1fr; }
    .location-or { width: auto; height: 24px; background: transparent; }
    .period-filter-grid { grid-template-columns: 1fr; }
    .filter-date-time-range { grid-column: auto; }
    .excel-sheet-meta { grid-template-columns: 1fr; }
    .excel-sheet-heading { margin-inline: 0; }
    .template-table-wrap { width: 100%; margin-inline: 0; }
    .plant-filter-controls { align-items: stretch; flex-direction: column; }
    .location-alternatives { grid-template-columns: 1fr; }
    .location-or { margin: -4px auto; }
    .period-filter-grid { grid-template-columns: 1fr; }
    .filter-date-time-range { grid-column: auto; }
    .data-type-checks { grid-template-columns: 1fr; }
    .page-heading { align-items: flex-start; }
    .page-heading h1 { font-size: 1.85rem; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .metric-card { padding: 20px 16px; min-height: 138px; }
    .metric-card strong { font-size: 2.6rem; }
    .metric-card div span { font-size: .75rem; }
    .filter-panel { padding: 18px; }
    .environment-badge { display: none; }
    .filter-grid, .mmf-filter-grid { grid-template-columns: 1fr; }
    .filter-date-range, .filter-timestamp { grid-column: auto; }
    .profile-dialog form { padding: 20px; }
    .profile-form-grid { grid-template-columns: 1fr; }
    .profile-field.profile-field-wide { grid-column: auto; }
    .login-panel { padding-bottom: 160px; }
    .admin-overlay { padding: 0; }
    .admin-overlay > .admin-dialog { width: 100vw; max-height: 100dvh; min-height: 100dvh; border-width: 0; border-top-width: 4px; border-radius: 0; }
    .admin-dialog-header h2 { font-size: 1.15rem; }
    .admin-dialog > form { padding: 16px 16px 0; }
    .schedule-dialog .plant-form-actions { margin-inline: -16px; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
    .schedule-dialog .plant-form-actions > button { flex: 1 1 130px; }
    .schedule-dialog .delete-plant-action { flex-basis: 100%; order: 3; }
    .schedule-plant-suggestions { position: static; margin-top: 6px; }
    .bulk-plant-suggestions { grid-template-columns: 1fr; }
    .dashboard-record-row { grid-template-columns: minmax(0,1fr) auto; }
    .dashboard-record-row .record-code { max-width: 180px; }
    .health-status-content { grid-template-columns: 42px minmax(0,1fr); margin-inline: 16px; }
    .health-status-content .status-pill { grid-column: 2; }
    .health-status-details { margin-inline: 16px; grid-template-columns: 1fr; }
    .health-status-details > div { border-right: 0; border-bottom: 1px solid #dce7ed; }
    .health-status-details > div:last-child { border-bottom: 0; }
    .schedule-month-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .schedule-confirm-overlay { padding: 14px; }
}
@media (max-height: 760px) and (min-width: 641px) {
    .admin-overlay { padding-block: 8px; }
    .admin-overlay > .admin-dialog { max-height: calc(100dvh - 16px); }
    .admin-dialog-header { padding-top: 15px; padding-bottom: 13px; }
    .admin-dialog > form { padding-top: 16px; }
    .admin-form-grid { gap: 13px 17px; }
    .schedule-status-options button { min-height: 64px; padding-block: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Shared pagination for repository tables and table-like lists. */
.table-pagination {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-top: 1px solid #d9e6ef;
    background: #fbfdff;
    color: #526b80;
    font-size: 13px;
}

.table-pagination-actions { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.table-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid #c9dce8;
    border-radius: 8px;
    background: #fff;
    color: #0c4269;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.table-pagination button:hover:not(:disabled), .table-pagination button.active { background: #086786; border-color: #086786; color: #fff; }
.table-pagination button:disabled { cursor: not-allowed; opacity: .42; }
.table-pagination-page { text-align: right; }

@media (max-width: 760px) {
    .table-pagination { grid-template-columns: 1fr; text-align: center; }
    .table-pagination-page { text-align: center; }
}
.data-horizon-note {
    margin: .75rem 0 0;
    color: #526982;
    font-size: .78rem;
}
.compact-filter-layout .data-type-interval-card .data-type-toggle,
.compact-filter-layout .data-type-interval-card .data-type-interval-select {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.compact-filter-layout .data-type-interval-card .data-type-interval-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
}

/* Keep operational and administration list tables within the available page width. */
.manual-collection-selectors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
@media (max-width:640px) { .manual-collection-selectors { grid-template-columns:1fr; } }

:is(.admin-panel, .api-registry-panel, .report-simple-panel, .automation-panel, .delivery-panel,
    .collection-panel, .monitor-panel, .report-panel, .quality-anomaly-panel) {
    overflow-x: hidden;
}

:is(.admin-table-heading, .collection-table-heading, .monitor-table-heading, .report-table-heading,
    .automation-heading) {
    min-width: 0;
}

:is(.plant-admin-table, .schedule-admin-table, .user-admin-table, .report-simple-table,
    .delivery-table, .delivery-table:has(.delivery-modern-row), .collection-table, .monitor-table,
    .report-table) {
    width: 100%;
    min-width: 0;
}

:is(.plant-admin-row, .schedule-admin-row, .user-admin-row, .report-simple-row,
    .delivery-row.delivery-modern-row, .collection-row, .monitor-row, .report-row,
    .quality-list-heading, .quality-rule-card, .quality-anomaly-row) {
    padding-right: 14px;
    padding-left: 14px;
    gap: 10px;
}

:is(.plant-admin-row, .schedule-admin-row, .user-admin-row, .report-simple-row,
    .delivery-row.delivery-modern-row, .collection-row, .monitor-row, .report-row,
    .quality-list-heading, .quality-rule-card, .quality-anomaly-row) > * {
    min-width: 0;
}

.plant-admin-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .58fr) minmax(0, .58fr) minmax(0, .48fr)
        minmax(0, .9fr) minmax(0, 1.75fr) minmax(0, .65fr) minmax(52px, .5fr);
}

.schedule-admin-table { width: 100%; min-width: 0; }
.schedule-admin-row {
    grid-template-columns: var(--schedule-columns);
}

/* Keep every popup below the sticky application header. The remaining
   viewport becomes the popup's scroll-safe area, so tall dialogs no longer
   disappear behind the account bar. */
:root {
    --dialog-top-clearance: 96px;
    --dialog-edge-space: 24px;
}

body:has(:is(.profile-overlay, .metric-modal-overlay, .graph-modal-overlay,
    .on-demand-overlay, .admin-overlay, .monitor-overlay, .report-overlay,
    .collection-overlay, .summary-list-overlay, .schedule-confirm-overlay)) {
    overflow: hidden;
}

body:has(:is(.profile-overlay, .metric-modal-overlay, .graph-modal-overlay,
    .on-demand-overlay, .admin-overlay, .monitor-overlay, .report-overlay,
    .collection-overlay, .summary-list-overlay, .schedule-confirm-overlay)) .app-content {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
}

:is(.profile-overlay, .metric-modal-overlay, .graph-modal-overlay,
    .on-demand-overlay, .admin-overlay, .monitor-overlay, .report-overlay,
    .collection-overlay, .summary-list-overlay, .schedule-confirm-overlay) {
    box-sizing: border-box;
    max-width: 100vw;
    max-height: 100dvh;
    overflow-y: auto;
    padding: var(--dialog-top-clearance) var(--dialog-edge-space) var(--dialog-edge-space);
    overscroll-behavior: contain;
}

:is(.profile-dialog, .metric-dialog, .graph-dialog, .on-demand-dialog,
    .admin-dialog, .monitor-dialog, .report-dialog, .collection-dialog,
    .summary-list-dialog, .schedule-status-confirmation,
    .configuration-success-dialog) {
    max-height: calc(100dvh - var(--dialog-top-clearance) - var(--dialog-edge-space));
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 640px) {
    :root {
        --dialog-top-clearance: 76px;
        --dialog-edge-space: 10px;
    }

    .admin-overlay > .admin-dialog {
        width: calc(100vw - 20px);
        min-height: 0;
        border-width: 1px;
        border-top-width: 4px;
        border-radius: 14px 4px 14px 4px;
    }
}
.schedules-page .admin-panel { overflow-x: hidden; }
.schedules-page .schedule-admin-table { width: 100%; min-width: 0; }
.schedules-page .schedule-admin-row.admin-table-header > span { white-space: nowrap; }
.schedules-page .schedule-admin-row .admin-edit-action { width: 100%; min-width: 0; }
.schedules-page .schedule-retry-cell,
.schedules-page .schedule-admin-row .status-pill,
.schedules-page .schedule-admin-row .admin-edit-action { justify-self: stretch; }
.schedules-page .schedule-retry-cell { overflow: visible; text-overflow: clip; white-space: nowrap; }
.schedules-page .schedule-admin-row .status-pill { justify-content: center; }

.user-admin-row {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .82fr) minmax(0, .62fr)
        minmax(0, .58fr) minmax(0, 1.45fr);
}
.user-actions { flex-wrap: wrap; }

.report-simple-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .82fr) minmax(0, 1.05fr) minmax(0, .9fr)
        minmax(0, 1fr) minmax(0, .58fr) minmax(52px, .5fr);
}

.delivery-row.delivery-modern-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, .9fr) minmax(0, .72fr)
        minmax(0, 1fr) minmax(0, .58fr) minmax(0, .58fr) minmax(0, .58fr) minmax(52px, .45fr);
}

.collection-table {
    --collection-columns: minmax(210px, 1.15fr) minmax(130px, .72fr) minmax(110px, .52fr)
        minmax(125px, .62fr) minmax(250px, 1.22fr) minmax(170px, .9fr);
}
.collection-row {
    grid-template-columns: var(--collection-columns);
    min-height: 84px;
    gap: 12px;
    padding: 15px 18px;
}

.collection-section-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #d8e7ed;
    border-bottom: 1px solid #d8e7ed;
    background: #eef7fa;
}
.collection-section-tab {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #36566c;
    background: transparent;
    font: inherit;
    font-size: .67rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.collection-section-tab:hover { border-color: #b9d6e1; background: #fff; }
.collection-section-tab.active {
    border-color: #075575;
    color: #fff;
    background: #075575;
    box-shadow: 0 7px 16px rgb(7 85 117 / 18%);
}
.collection-section-tab-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #248dc8;
}
.collection-section-tab-mmf .collection-section-tab-dot { background: #18a66f; }
.collection-section-tab.active .collection-section-tab-dot { background: #39a9e6; }
.collection-section-tab-mmf.active .collection-section-tab-dot { background: #38d99b; }
.collection-section-tab strong {
    display: inline-flex;
    min-width: 30px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    color: #345569;
    background: #fff;
    font-size: .68rem;
}

.collection-page .collection-panel,
.collection-page .collection-table { overflow-x: hidden; min-width: 0; }
.collection-page .collection-table-heading { min-width: 0; }
.collection-row.collection-header { min-height: 52px; padding-top: 11px; padding-bottom: 11px; }
.collection-row.collection-header > span { overflow: visible; line-height: 1.35; text-overflow: clip; white-space: nowrap; }
.collection-list-summary { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.collection-list-summary > small { margin-left: 4px; color: #6b7f92; font-size: .65rem; }
.collection-list-count {
    display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 11px;
    border: 1px solid #cfe1e8; border-radius: 999px; color: #36576b; background: #fff;
    font: inherit; font-size: .64rem; font-weight: 700; cursor: pointer;
}
.collection-list-count > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.collection-list-count strong { font-size: .76rem; }
.collection-list-count.count-success { color: #087d59; border-color: #bfe5d5; background: #f0fbf6; }
.collection-list-count.count-failed { color: #bc352e; border-color: #f0cbc8; background: #fff4f3; }
.collection-list-count:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgb(9 55 82 / 10%); }
.collection-schedule code {
    display: block; margin-top: 5px; overflow: hidden; color: #1873b8; font-family: inherit;
    font-size: .62rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap;
}
.collection-batch-plants { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.collection-batch-plants strong { color: var(--sb-navy); }
.collection-batch-plants small { color: #63798c; }
.collection-total-plants { justify-self: center; color: #173b58; font-size: .72rem; font-weight: 800; text-align: center; white-space: nowrap; }
.collection-plant-action-cell { display: flex; min-width: 0; align-items: center; justify-content: center; }
.collection-row.collection-header > :nth-child(3),
.collection-row.collection-header > :nth-child(4),
.collection-row.collection-header > :nth-child(5) { justify-self: center; text-align: center; }
.collection-view-plants { width: 100%; }
.collection-batch-results { display: grid; width: 100%; max-width: 235px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; justify-content: stretch; }
.collection-batch-results .batch-result-count { width: 100%; min-width: 0; padding-right: 8px; padding-left: 8px; justify-content: space-between; }
.collection-batch-results > small { grid-column: 1 / -1; }
.collection-batch-row > time { color: #4d6679; font-size: .66rem; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.collection-batch-row:hover { background: linear-gradient(90deg, #f8fbfd, #f3fafb); }
.batch-result-count {
    display: inline-flex; min-height: 37px; align-items: center; gap: 8px; padding: 0 10px;
    border: 1px solid #cbdfe7; border-radius: 9px; background: #fff; font: inherit; cursor: pointer;
}
.batch-result-count span { font-size: .59rem; font-weight: 700; }
.batch-result-count strong { font-size: .78rem; }
.batch-result-count.batch-result-success { color: #087d59; border-color: #bce4d2; background: #effbf5; }
.batch-result-count.batch-result-failed { color: #bd342d; border-color: #efc9c6; background: #fff3f2; }
.batch-result-count:disabled { opacity: .48; cursor: default; }
.collection-batch-results > small { flex-basis: 100%; color: #8a6a25; font-size: .58rem; }

.monitor-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(45px, .45fr) minmax(0, .6fr) minmax(0, .82fr)
        minmax(0, 1fr) minmax(0, .65fr) minmax(52px, .48fr);
}

.audit-page .report-row {
    grid-template-columns: minmax(0, .9fr) minmax(0, .85fr) minmax(0, 1fr) minmax(0, .9fr)
        minmax(72px, .58fr) minmax(0, 1.75fr);
}

.audit-export-button {
    position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 238px; min-height: 64px;
    padding: 8px 14px 8px 9px; overflow: hidden; border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 15px 5px 15px 5px; color: #fff;
    background: linear-gradient(135deg, #078aa1 0%, #066781 52%, #074d68 100%);
    box-shadow: 0 12px 26px rgb(5 83 109 / 22%), inset 0 1px rgb(255 255 255 / 14%);
    font: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.audit-export-button::after { content: ""; position: absolute; inset: 0 45% 0 -35%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 10%), transparent); transition: transform .45s ease; }
.audit-export-button:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 16px 30px rgb(5 83 109 / 28%), inset 0 1px rgb(255 255 255 / 18%); }
.audit-export-button:hover::after { transform: translateX(250%) skewX(-20deg); }
.audit-export-button:focus-visible { outline: 3px solid rgb(8 138 161 / 25%); outline-offset: 3px; }
.audit-export-icon { position: relative; z-index: 1; display: grid; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 11px 3px 11px 3px; place-items: center; background: #fff; box-shadow: 0 5px 14px rgb(3 48 64 / 22%); }
.audit-export-icon i { position: relative; width: 15px; height: 17px; border: 2px solid #08758f; border-top: 0; border-radius: 0 0 3px 3px; }
.audit-export-icon i::before { content: ""; position: absolute; left: 50%; top: -8px; width: 2px; height: 12px; transform: translateX(-50%); border-radius: 2px; background: #08758f; }
.audit-export-icon i::after { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); border-right: 2px solid #08758f; border-bottom: 2px solid #08758f; }
.audit-export-label { position: relative; z-index: 1; display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.audit-export-label strong { font-size: .78rem; line-height: 1.2; letter-spacing: .01em; }
.audit-export-label small { color: rgb(255 255 255 / 76%); font-size: .59rem; font-weight: 600; line-height: 1.25; }
.audit-export-arrow { position: relative; z-index: 1; flex: 0 0 auto; font-size: 1.1rem; transition: transform .18s ease; }
.audit-export-button:hover .audit-export-arrow { transform: translateX(3px); }
.audit-filter-panel {
    margin: 14px 0; padding: 15px 18px; border: 1px solid #c7dfea; border-radius: 12px;
    background: linear-gradient(120deg, #fff 0%, #f7fbfd 78%, #eef8fb 100%); box-shadow: 0 8px 24px rgb(13 55 82 / 5%);
}
.audit-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.audit-filter-heading h2 { margin: 2px 0; color: var(--sb-navy); font-size: 1rem; }
.audit-filter-heading small { color: #60758d; }
.audit-filter-heading .result-count { flex: 0 0 auto; align-self: center; }
.audit-filter-grid { display: grid; grid-template-columns: minmax(220px, 1.7fr) repeat(5, minmax(120px, .75fr)); gap: 9px; align-items: end; }
.audit-filter-grid .audit-search { height: 41px; min-height: 41px; border-radius: 8px; box-shadow: none; }
.audit-filter-grid .report-filter { min-width: 0; gap: 4px; }
.audit-filter-grid .report-filter > span:first-child { font-size: .55rem; }
.audit-filter-grid .report-filter select { height: 41px; padding-inline: 9px; border-radius: 8px; font-size: .68rem; }
.audit-filter-grid .report-filter input,
.audit-export-grid .report-filter input {
    width: 100%; height: 41px; padding: 0 9px; border: 1px solid #e4c7b3;
    border-radius: 8px; outline: 0; color: var(--sb-navy); background: #fff;
    font: inherit; font-size: .68rem;
}
.audit-filter-grid .sblss-picker { min-height: 41px; border-radius: 8px; }
.audit-filter-grid .sblss-picker-copy b { font-size: .68rem; }
.audit-filter-grid .sblss-picker-copy small { display: none; }
.audit-filter-grid .sblss-picker-icon { width: 27px; height: 27px; }
.audit-filter-grid .report-filter input:focus,
.audit-export-grid .report-filter input:focus { border-color: var(--report-orange); box-shadow: 0 0 0 3px rgb(226 115 49 / 12%); }
.audit-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #d9e7ee; }
.audit-filter-footer > span { color: #64798f; font-size: .7rem; }
.audit-clear {
    min-height: 42px; padding: 0 15px; border: 1px solid #b9ced8;
    border-radius: 9px; color: #075f7b; background: #fff; font: inherit; font-size: .7rem; font-weight: 800;
    cursor: pointer;
}
.audit-clear:hover { border-color: #075f7b; background: #edf8fb; }
.audit-export-overlay { position: fixed; inset: 0; z-index: 520; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: rgb(7 32 52 / 64%); backdrop-filter: blur(4px); }
.audit-export-modal { width: min(760px, 100%); overflow: hidden; border: 1px solid #bcd9e6; border-top: 5px solid #087594; border-radius: 16px 5px 16px 5px; background: #fff; box-shadow: 0 28px 80px rgb(4 28 48 / 28%); }
.audit-export-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 28px 20px; background: linear-gradient(120deg, #f3fbfd, #fff9e8); border-bottom: 1px solid #dce8ed; }
.audit-export-modal > header h2 { margin: 4px 0 6px; color: var(--sb-navy); font-size: 1.45rem; }
.audit-export-modal > header p:last-child { margin: 0; color: #5d7288; font-size: .76rem; }
.audit-export-modal > header > button { display: grid; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #c9dce5; border-radius: 50%; place-items: center; color: var(--sb-navy); background: #fff; font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.audit-export-modal form { padding: 24px 28px 26px; }
.audit-export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.audit-export-grid .export-event-field { grid-column: 1 / -1; }
.audit-export-grid .report-filter small { display: block; margin-top: 6px; color: #6a7f94; font-size: .64rem; }
.audit-export-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 13px 15px; border: 1px solid #bfe0d3; border-radius: 10px; color: #315e54; background: #f0faf6; }
.audit-export-note > span { display: grid; flex: 0 0 24px; height: 24px; border-radius: 50%; place-items: center; color: #fff; background: #138b6b; font-weight: 800; }
.audit-export-note p { margin: 2px 0 0; font-size: .68rem; line-height: 1.55; }
.audit-export-modal footer { display: flex; justify-content: flex-end; gap: 11px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #dce8ed; }
.audit-export-confirm { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; color: #fff; background: #087594; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.audit-export-confirm:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1260px) { .audit-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .audit-filter-grid .audit-search { grid-column: span 2; } }
@media (max-width: 900px) { .compact-filter-layout { grid-template-columns: 1fr; } .compact-filter-right { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; } }
@media (max-width: 720px) { .audit-filter-grid, .audit-export-grid, .compact-filter-right { grid-template-columns: 1fr; } .audit-filter-grid .audit-search, .audit-export-grid .export-event-field { grid-column: auto; } .audit-filter-heading, .audit-filter-footer { align-items: stretch; flex-direction: column; } }

.quality-list-heading,
.quality-rule-card {
    grid-template-columns: minmax(72px, .65fr) minmax(0, 1.75fr) minmax(0, 1.05fr)
        minmax(72px, .62fr) minmax(64px, .55fr);
}

.quality-anomaly-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, .9fr) minmax(55px, .5fr) minmax(0, 1.05fr) minmax(0, .82fr)
        minmax(0, 2fr) minmax(72px, .62fr);
}

:is(.plant-admin-row, .schedule-admin-row, .user-admin-row, .report-simple-row,
    .delivery-row.delivery-modern-row, .collection-row, .monitor-row, .report-row,
    .quality-rule-card, .quality-anomaly-row) :is(strong, small, span, code, time) {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
}

:is(.plant-admin-row, .schedule-admin-row, .user-admin-row, .report-simple-row,
    .delivery-row.delivery-modern-row, .collection-row, .monitor-row, .report-row) :is(button, .table-action) {
    max-width: 100%;
}

@media (max-width: 1180px) {
    :is(.plant-admin-row, .schedule-admin-row, .user-admin-row, .report-simple-row,
        .delivery-row.delivery-modern-row, .collection-row, .monitor-row, .report-row,
        .quality-list-heading, .quality-rule-card, .quality-anomaly-row) {
        gap: 7px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: .62rem;
    }

    :is(.plant-admin-row, .schedule-admin-row, .user-admin-row, .report-simple-row,
        .delivery-row.delivery-modern-row, .collection-row, .monitor-row, .report-row) :is(button, .table-action) {
        padding-right: 6px;
        padding-left: 6px;
        font-size: .58rem;
    }
}

/* Compact collection tables: keep the page free of horizontal scrollbars. */
@media (max-width: 1320px) {
    .schedules-page .schedule-admin-row.admin-table-header { display: none; }
    .schedules-page .schedule-admin-row:not(.admin-table-header) {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 11px 18px; margin: 10px; padding: 16px; border: 1px solid #d5e5ec;
        border-radius: 12px; background: #fff; font-size: .7rem;
    }
    .schedules-page .schedule-identity { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid #e4eef2; }
    .schedules-page .schedule-total-cell { grid-column: 1; }
    .schedules-page .schedule-plant-action-cell { grid-column: 2; justify-content: flex-end; }
    .schedules-page .schedule-type-cell { grid-column: 1; }
    .schedules-page .schedule-time-cell { grid-column: 2; }
    .schedules-page .schedule-admin-row .api-type-badge { grid-column: 1; justify-self: start; }
    .schedules-page .schedule-retry-cell { grid-column: 2; align-self: center; text-align: right; }
    .schedules-page .schedule-retry-cell::before { content: "Retry: "; color: #6a7f92; font-weight: 600; }
    .schedules-page .schedule-admin-row .status-pill { grid-column: 1; justify-self: start; }
    .schedules-page .schedule-admin-row .admin-edit-action { grid-column: 2; width: 100%; min-height: 40px; }
}

@media (max-width: 1100px) {
    .collection-page .collection-table-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .collection-list-summary { width: 100%; justify-content: flex-start; }
    .collection-list-summary > small { flex-basis: 100%; margin-left: 0; }
    .collection-page .collection-row.collection-header { display: none; }
    .collection-page .collection-row:not(.collection-header) {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px;
        margin: 10px; padding: 15px; border: 1px solid #d8e7ed; border-radius: 12px;
        background: #fff; font-size: .68rem;
    }
    .collection-page .collection-plant { grid-column: 1; }
    .collection-page .collection-data-type { grid-column: 2; justify-self: end; }
    .collection-page .collection-total-plants { grid-column: 1; justify-self: start; }
    .collection-page .collection-plant-action-cell { grid-column: 2; justify-content: flex-end; }
    .collection-page .collection-batch-results { width: 100%; max-width: none; grid-column: 1 / -1; }
    .collection-page .collection-row time { grid-column: 1 / -1; align-self: center; color: #657b8e; }
    .collection-section-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .schedules-page .schedule-admin-row:not(.admin-table-header) { grid-template-columns: 1fr; }
    .schedules-page .schedule-admin-row:not(.admin-table-header) > * { grid-column: 1 !important; }
    .collection-section-tabs { grid-template-columns: 1fr; }
}
.page-inline-notice,
.page-inline-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: "Aptos", "Trebuchet MS", sans-serif;
    font-size: .78rem;
    font-weight: 700;
}

.page-inline-notice {
    border: 1px solid #b9d9ef;
    color: #075985;
    background: #f0f8fd;
}

.page-inline-error {
    border: 1px solid #fecaca;
    color: #b42318;
    background: #fff4f2;
}

.dashboard-load-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-load-error .secondary-action {
    min-height: 36px;
    flex: 0 0 auto;
}

.schedule-view-plants {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 11px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #8fc8d8;
    border-radius: 9px 3px 9px 3px;
    color: #066b86;
    background: #fff;
    font: inherit;
    font-size: .62rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(5 102 130 / 7%);
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.schedule-view-plants span { font-size: .9rem; line-height: 1; }
.schedule-view-plants:hover { transform: translateY(-1px); border-color: #087594; color: #fff; background: #087594; }
.schedule-view-plants:focus-visible { outline: 2px solid #0b8da8; outline-offset: 3px; border-radius: 2px; }
.schedule-plant-list-dialog { width: min(100%, 760px); border-top: 0; border-radius: 22px 7px 22px 7px; }
.schedule-plant-list-header { position: relative; overflow: hidden; padding: 27px 30px 24px; color: #fff; border-bottom: 0; background: linear-gradient(125deg, #063b68 0%, #075f7d 55%, #078b92 100%); }
.schedule-plant-list-header::after { content: ""; position: absolute; width: 210px; height: 210px; top: -115px; right: 55px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 50%; box-shadow: 0 0 0 28px rgb(255 255 255 / 4%), 0 0 0 58px rgb(255 255 255 / 3%); }
.schedule-plant-list-header > * { position: relative; z-index: 1; }
.schedule-plant-list-heading { display: flex; min-width: 0; align-items: center; gap: 16px; }
.schedule-plant-list-heading > div { min-width: 0; }
.schedule-plant-list-mark { display: grid; width: 54px; height: 54px; flex: 0 0 54px; border: 1px solid rgb(255 255 255 / 34%); border-radius: 15px 4px 15px 4px; place-items: center; color: #073b63; background: var(--sb-yellow); box-shadow: 0 10px 24px rgb(2 28 48 / 22%); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.schedule-plant-list-header .section-label { color: #9ce4e3; }
.schedule-plant-list-header h2 { color: #fff; }
.schedule-plant-list-header .profile-close { color: #fff; border-color: rgb(255 255 255 / 34%); background: rgb(255 255 255 / 12%); }
.schedule-plant-list-subtitle { margin: 7px 0 0; color: #60758a; font-size: .72rem; }
.schedule-plant-list-header .schedule-plant-list-subtitle { color: rgb(255 255 255 / 74%); }
.schedule-plant-list-body { max-height: min(58vh, 520px); padding: 22px 30px 12px; background: #f6fafc; }
.schedule-plant-popup-summary { display: grid; margin-bottom: 20px; grid-template-columns: .65fr .65fr 1.35fr; overflow: hidden; border: 1px solid #cfe1e8; border-radius: 13px 4px 13px 4px; background: #fff; box-shadow: 0 7px 20px rgb(7 55 82 / 5%); }
.schedule-plant-popup-summary > div { display: flex; min-width: 0; min-height: 72px; padding: 14px 17px; flex-direction: column; justify-content: center; gap: 6px; border-right: 1px solid #dce9ee; }
.schedule-plant-popup-summary > div:last-child { border-right: 0; }
.schedule-plant-popup-summary small { color: #6b8192; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.schedule-plant-popup-summary strong { overflow: hidden; color: #073f65; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-plant-popup-summary > div:first-child strong { color: #087d77; font-size: 1.35rem; }
.schedule-plant-list-label { margin: 0 0 9px; color: #60778a; font-size: .61rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.schedule-plant-list-item { min-height: 82px; margin-bottom: 9px; padding: 13px 15px; border: 1px solid #dae8ed; border-radius: 11px 3px 11px 3px; background: #fff; box-shadow: 0 5px 15px rgb(7 55 82 / 4%); }
.schedule-plant-list-item:last-child { margin-bottom: 0; border-bottom: 1px solid #dae8ed; }
.schedule-plant-list-item .summary-plant-code { color: #fff; background: linear-gradient(135deg, #087e96, #07537a); box-shadow: 0 6px 14px rgb(7 83 122 / 18%); }
.schedule-plant-list-item .summary-item-copy p { margin-bottom: 4px; color: #3f6078; font-weight: 700; }
.schedule-plant-list-dialog .summary-list-footer { padding: 17px 30px; align-items: center; justify-content: space-between; color: #657c8e; font-size: .65rem; }
.schedule-plant-list-close { min-width: 105px; }

.collection-plant-list-dialog { border-top: 0; border-radius: 22px 7px 22px 7px; }
.collection-summary-header { position: relative; overflow: hidden; color: #fff; border-bottom: 0; background: linear-gradient(125deg, #063b68 0%, #075f7d 58%, #078b92 100%); }
.collection-summary-header::after { content: ""; position: absolute; width: 190px; height: 190px; top: -110px; right: 58px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 50%; box-shadow: 0 0 0 28px rgb(255 255 255 / 4%); }
.collection-summary-header > * { position: relative; z-index: 1; }
.collection-summary-header .section-label { color: #9ce4e3; }
.collection-summary-header h2 { color: #fff; }
.collection-summary-header .profile-close { color: #fff; border-color: rgb(255 255 255 / 34%); background: rgb(255 255 255 / 12%); }
.collection-plant-list-dialog .summary-list-body { padding-top: 12px; padding-bottom: 12px; background: #f6fafc; }
.collection-plant-list-dialog .summary-list-item { min-height: 86px; margin: 9px 0; padding: 14px 15px; border: 1px solid #dae8ed; border-radius: 11px 3px 11px 3px; background: #fff; box-shadow: 0 5px 15px rgb(7 55 82 / 4%); }
.collection-plant-list-dialog .summary-list-item:last-child { border-bottom: 1px solid #dae8ed; }
.collection-plant-list-dialog .summary-plant-code { color: #fff; background: linear-gradient(135deg, #087e96, #07537a); }

@media (max-width: 640px) {
    .schedule-plant-list-header { padding: 22px 18px; }
    .schedule-plant-list-mark { width: 46px; height: 46px; flex-basis: 46px; }
    .schedule-plant-list-body { padding: 16px 18px 10px; }
    .schedule-plant-popup-summary { grid-template-columns: repeat(2, 1fr); }
    .schedule-plant-popup-summary > div:nth-child(2) { border-right: 0; }
    .schedule-plant-popup-summary > div:last-child { grid-column: 1 / -1; border-top: 1px solid #dce9ee; }
    .schedule-plant-list-dialog .summary-list-footer { padding: 14px 18px; }
    .schedule-plant-list-dialog .summary-list-footer span { display: none; }
    .schedule-plant-list-close { width: 100%; }
}

@media (max-width: 540px) {
    .dashboard-load-error {
        align-items: flex-start;
        flex-direction: column;
    }
}
