/* Approved compact layout for the Sandbox Work UO page. */
#workQueueView>.module-heading{margin-bottom:8px}
#workQueueView>.module-heading h1{margin:2px 0 0}
#workQueueView .work-queue-operational-grid{grid-template-columns:minmax(0,9fr) minmax(0,11fr);align-items:stretch;gap:12px}
#workQueueView .queue-summary-left{display:grid;align-content:start;gap:8px;min-width:0}
#workQueueView .queue-statistics-card{align-self:start;min-width:0}
#workQueueView .qualification-summary-card{padding:12px 14px;margin:0;min-width:0}
#workQueueView .queue-summary-heading{display:flex;align-items:center;gap:8px;min-height:39px;margin:0 0 9px}
#workQueueView .queue-summary-heading>h2{flex:0 0 auto;margin:0;font-size:16px;line-height:1.2;white-space:nowrap}
#workQueueView .queue-summary-total{flex:0 0 auto;margin-left:auto;font-size:23px!important;line-height:1;color:#1265d6!important;font-weight:800}
html[data-theme="dark"] #workQueueView .queue-summary-total{color:#86bdff!important}
#workQueueView .protocol-period{display:flex;align-items:end;gap:5px;flex:1 1 auto;min-width:0;flex-wrap:nowrap;margin-left:12px}
#workQueueView .protocol-period label{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:11px}
#workQueueView .protocol-period input{display:inline-block;width:124px;min-width:0;margin:0;padding:5px 6px;height:32px}
#workQueueView .queue-icon-action{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:0}
#workQueueView .queue-icon-action svg{display:block}
#workQueueView .queue-info{display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;color:var(--muted);font-size:11px;line-height:1;vertical-align:2px;cursor:help}
#workQueueView .qualification-summary-card h3{margin:8px 0 5px;font-size:12px;line-height:1.2}
#workQueueView .qualification-summary-cards{display:flex;flex-wrap:wrap!important;align-items:stretch;gap:6px;overflow:visible;padding:0}
#workQueueView #queueProtocolCategoryCards,#workQueueView #queueCategoryCards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,88px),1fr))!important;align-items:stretch;gap:7px;min-width:0;overflow:visible}
#workQueueView #queueProtocolCategoryCards>.qualification-summary-category,#workQueueView #queueCategoryCards>.qualification-summary-category{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;flex:none!important}
#workQueueView #queueProtocolOfficerCards,#workQueueView #queueQualificationCards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,88px),1fr))!important;align-items:stretch;gap:6px;min-width:0;overflow:visible;padding:0}
#workQueueView .qualification-summary-officer{box-sizing:border-box;flex:none!important;width:100%!important;min-width:0;max-width:none;min-height:64px;padding:6px 7px;border-radius:8px;white-space:normal}
#workQueueView .qualification-summary-officer:not(.unassigned){border:1px solid #8db67a;border-left-width:1px;background:#edf6e8;color:#172b41}
#workQueueView .qualification-summary-officer:not(.unassigned):hover{background:#dff0d7;border-color:#8db67a}
#workQueueView .qualification-summary-officer.qualification-summary-category{background:#eef3ff;border:1px solid #86a8df;border-left-width:1px;color:#172b41}
#workQueueView .qualification-summary-officer.qualification-summary-category:hover{background:#e1ebff;border-color:#86a8df}
#workQueueView .qualification-summary-officer span{white-space:normal;overflow-wrap:anywhere;line-height:1.2}
#workQueueView .qualification-summary-officer strong{font-size:20px;line-height:1.1;margin:3px 0}
#workQueueView .qualification-summary-officer small{white-space:normal;line-height:1.15}
#workQueueView .qualification-summary-category{min-height:59px}
#workQueueView .queue-protocol-officers>.protocol-officer-card{display:flex;flex-direction:column;gap:4px;min-height:96px;padding:6px 7px}
#workQueueView .protocol-officer-card[data-protocol-officer="Не призначено"]{background:#f4f6f8;border-color:#cbd4dc}
#workQueueView .protocol-officer-main{display:block;width:100%;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
#workQueueView .protocol-officer-main span{display:block;min-height:2.4em;font-size:11px;font-weight:650;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
#workQueueView .protocol-officer-main strong{display:block;font-size:17px;margin:2px 0 0}
#workQueueView #queueQualificationCards>.qualification-summary-officer{min-height:82px}
#workQueueView #queueQualificationCards>.qualification-summary-officer span{min-height:2.4em;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
#workQueueView .protocol-officer-progress{display:grid;gap:3px;margin-top:auto}
#workQueueView .protocol-progress-track{height:4px;overflow:hidden;border-radius:4px;background:#e1e8e3;cursor:help}
#workQueueView .protocol-progress-track>span{display:block;height:100%;background:#43a66d;transition:width .18s ease}
#workQueueView .protocol-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:10px;font-variant-numeric:tabular-nums}
#workQueueView .protocol-pending-count{min-width:22px;min-height:20px;padding:1px 6px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:var(--ink);font-size:10px;line-height:1.3}
#workQueueView .protocol-pending-count:disabled{opacity:.7}
#workQueueView .queue-publication-control{margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
#workQueueView .queue-publication-control h3{margin-top:0}
#workQueueView .publication-control-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));align-items:stretch;gap:7px;overflow:visible}
#workQueueView .publication-control-cards>button{box-sizing:border-box;width:100%!important;min-width:0;max-width:none;min-height:56px;padding:7px 9px;white-space:normal;text-align:left}
#workQueueView .publication-control-cards span{font-size:11px;line-height:1.2}
#workQueueView .publication-control-cards strong{font-size:20px;line-height:1.1;margin-top:2px}

#workQueueView .queue-statistics-card{container:queue-stats/inline-size;background:#F0F6FF;border:1px solid #8DB4E5;box-shadow:0 3px 12px rgba(35,55,78,.06)}
#workQueueView .queue-statistics-card .queue-statistics-heading,#workQueueView .queue-statistics-card .queue-statistics-filters{background:transparent}
#workQueueView .queue-statistics-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0 0 8px}
#workQueueView .queue-statistics-heading h2{margin:0;font-size:16px;line-height:1.25}
#workQueueView .queue-statistics-filters{display:block;margin:0}
#workQueueView .queue-statistics-controls{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:nowrap}
#workQueueView .queue-statistics-controls>label{display:flex;align-items:center;gap:4px;padding:0;border:0;border-radius:0;white-space:nowrap;font-size:11px}
#workQueueView .queue-statistics-controls input[type=date]{width:130px;min-width:105px;height:32px;padding:5px 6px}
#workQueueView .queue-statistics-filter-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 9px;white-space:nowrap}
#workQueueView .queue-statistics-filter-toggle svg{flex:none}
#workQueueView .queue-statistics-workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"results";gap:10px;min-width:0;margin-top:5px}
#workQueueView .queue-statistics-workspace.is-filter-open{grid-template-columns:minmax(0,1fr) minmax(265px,300px);grid-template-areas:"results filters"}
#workQueueView .queue-statistics-results{grid-area:results;min-width:0}
#workQueueView .queue-statistics-filter-panel{position:static;z-index:auto;right:auto;top:auto;grid-area:filters;display:flex;flex-direction:column;gap:10px;align-self:start;width:auto;max-width:none;min-width:0;max-height:min(62vh,560px);overflow:auto;padding:11px;border:1px solid #8DB4E5;border-radius:9px;background:#F8FBFF;color:var(--ink);box-shadow:none}
#workQueueView .queue-statistics-filter-panel[hidden]{display:none!important}
#workQueueView .queue-statistics-filter-fields{display:grid;gap:9px;min-width:0}
#workQueueView .queue-statistics-filter-fields>label,#workQueueView .queue-statistics-dk-field{display:grid;gap:5px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff);font-size:11px}
#workQueueView .queue-statistics-filter-fields select,#workQueueView .queue-statistics-dk-field>input[type=search]{box-sizing:border-box;width:100%;min-width:0;padding:7px 8px}
#workQueueView .queue-statistics-dk-heading{display:flex;align-items:center;gap:7px;min-width:0}
#workQueueView .queue-statistics-dk-heading>label{font-weight:650}
#workQueueView .queue-statistics-dk-heading>span{margin-left:auto;color:var(--muted);white-space:nowrap}
#workQueueView .queue-statistics-dk-heading>button{padding:3px 6px;font-size:10px;white-space:nowrap}
#workQueueView .queue-statistics-dk-options{display:grid;gap:3px;max-height:220px;overflow:auto;overscroll-behavior:contain;min-width:0}
#workQueueView .queue-statistics-dk-options label{display:flex;align-items:center;gap:7px;min-width:0;padding:4px 5px;border-radius:5px;overflow-wrap:anywhere}
#workQueueView .queue-statistics-dk-options label:hover{background:var(--soft)}
#workQueueView .queue-statistics-dk-options input{width:14px;min-width:14px;height:14px;margin:0;padding:0}
#workQueueView .queue-statistics-filter-actions{position:sticky;bottom:-11px;display:flex;gap:7px;margin:auto -11px -11px;padding:9px 11px 11px;border-top:1px solid var(--line);background:inherit}
#workQueueView .queue-statistics-filter-actions button{flex:1 1 0;min-height:34px;padding:6px 9px}
#workQueueView .queue-statistics-controls .filter-pending{outline:1px dashed #c58a19;outline-offset:2px}
#workQueueView .queue-statistics-group{display:flex;align-items:center;gap:5px;width:auto;margin:0;padding:0;border:0;border-radius:0;white-space:nowrap;font-size:11px}
#workQueueView .queue-statistics-group select{width:auto;min-width:132px;max-width:180px;height:32px;padding:5px 24px 5px 7px}
#workQueueView .queue-statistics-pending{margin:5px 0 0;font-size:11px}
#workQueueView .queue-statistics-kpis{gap:7px;margin:9px 0 7px}
#workQueueView .queue-statistics-kpis button{min-height:55px;padding:6px 8px;color:var(--uo-kpi-ink)!important}
#workQueueView .queue-statistics-kpis button span{font-size:11px}
#workQueueView .queue-statistics-kpis button strong{font-size:20px;line-height:1.1}
html:not([data-theme="dark"]) #workQueueView .publication-kpi--rejected,html:not([data-theme="dark"]) #workQueueView .queue-statistics-kpis button.rejected{background:#FDE8E7!important;border-color:#E9A5A0!important;color:#000000!important}
#workQueueView .queue-statistics-table{margin-top:4px;overflow-x:auto}
#workQueueView .queue-statistics-table table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
#workQueueView .queue-statistics-table th,#workQueueView .queue-statistics-table td{padding:4px 5px;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle}
#workQueueView .queue-statistics-table th{position:sticky;top:0;z-index:2;background:var(--soft);color:var(--muted);font-size:10px;white-space:normal;text-transform:none;letter-spacing:0}
#workQueueView .queue-statistics-table th:first-child,#workQueueView .queue-statistics-table td:first-child{text-align:left;width:36%}
#workQueueView .queue-statistics-table tbody th[scope="row"]{white-space:normal;overflow-wrap:anywhere}
#workQueueView .queue-statistics-table td{height:auto;color:var(--ink);font-size:12px}
#workQueueView .queue-statistics-table tbody tr:hover th[scope="row"],#workQueueView .queue-statistics-table tbody tr:hover td{background:color-mix(in srgb,var(--soft) 72%,var(--surface,#fff))}
#workQueueView .queue-statistics-table td button.publication-kpi{min-width:35px;padding:3px 6px;background:var(--surface,#fff)!important;color:var(--ink)!important;border:1px solid transparent!important;border-radius:6px;font-size:12px;box-shadow:none!important;transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease}
#workQueueView .queue-statistics-table td button.publication-kpi:hover{background:var(--soft)!important;border-color:color-mix(in srgb,var(--line) 70%,transparent)!important}
#workQueueView .queue-statistics-table td button.publication-kpi:focus-visible,#workQueueView .queue-statistics-table td button.publication-kpi[aria-pressed="true"],#workQueueView .queue-statistics-table td button.publication-kpi.is-selected{background:var(--soft)!important;border-color:color-mix(in srgb,var(--blue) 58%,var(--line))!important;outline:2px solid color-mix(in srgb,var(--blue) 52%,transparent);outline-offset:1px}
#workQueueView .queue-statistics-table--scroll{max-height:220px;overflow:auto;overscroll-behavior:contain}
#workQueueView .queue-statistics-table--scroll table{overflow:visible}
#workQueueView #queueStatisticsMessage{margin-top:4px;font-size:11px}

html[data-theme="dark"]{--uo-kpi-ink:#edf3fc;--uo-kpi-admitted-bg:#173e38;--uo-kpi-admitted-border:#386c60;--uo-kpi-rejected-bg:#482932;--uo-kpi-rejected-border:#794552;--uo-kpi-pending-bg:#443b26;--uo-kpi-pending-border:#74653f}
html[data-theme="dark"] #workQueueView .queue-statistics-card{background:#203650;border-color:#6488B5}
html[data-theme="dark"] #workQueueView .queue-statistics-filter-panel{background:#172d45;border-color:#6488B5}
html[data-theme="dark"] #workQueueView .queue-statistics-table tbody tr:hover th[scope="row"],html[data-theme="dark"] #workQueueView .queue-statistics-table tbody tr:hover td{background:#203e62}
html[data-theme="dark"] #workQueueView .queue-statistics-table td button.publication-kpi{background-color:#132840!important;color:#edf3fc!important;border-color:transparent!important}
html[data-theme="dark"] #workQueueView .queue-statistics-table td button.publication-kpi:hover{background-color:#ffffff10!important;border-color:#38516e!important}
html[data-theme="dark"] #workQueueView .queue-statistics-table td button.publication-kpi:focus-visible,html[data-theme="dark"] #workQueueView .queue-statistics-table td button.publication-kpi[aria-pressed="true"],html[data-theme="dark"] #workQueueView .queue-statistics-table td button.publication-kpi.is-selected{background-color:#ffffff18!important;border-color:#6c9ed7!important;outline-color:#6c9ed7}
html[data-theme="dark"] #workQueueView .protocol-progress-track{background:#34483e}
html[data-theme="dark"] #workQueueView .protocol-pending-count{background:#132840;color:#edf3fc;border-color:#38516e}
html[data-theme="dark"] #workQueueView .protocol-officer-card[data-protocol-officer="Не призначено"]{background:#20334c;color:#c6d3e0;border-color:#465b70}
html[data-theme="dark"] #workQueueView #queueQualificationCards>.qualification-summary-officer:not(.unassigned),html[data-theme="dark"] #workQueueView #queueProtocolOfficerCards>.qualification-summary-officer:not(.unassigned){border:1px solid #3f7b68;border-left-width:1px}
html[data-theme="dark"] #workQueueView #queueCategoryCards>.qualification-summary-category,html[data-theme="dark"] #workQueueView #queueProtocolCategoryCards>.qualification-summary-category{border:1px solid #4b79a8;border-left-width:1px}

/* Statistics chart and full-height filter drawer. */
#workQueueView .queue-statistics-workspace.is-filter-open{grid-template-columns:minmax(0,1fr);grid-template-areas:"results"}
#workQueueView .queue-statistics-workspace.is-filter-open .queue-statistics-results{width:calc(100% - min(430px,90vw) - 16px);min-width:0;transition:width .18s ease}
#workQueueView .queue-statistics-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,115px),1fr));align-items:stretch}
#workQueueView .queue-statistics-kpis button.submitted{background:#e4efff!important;border-color:#8db4e5!important;color:#102a47!important}
html[data-theme="dark"] #workQueueView .queue-statistics-kpis button.submitted{background:#203650!important;border-color:#6488b5!important;color:#edf3fc!important}
#workQueueView .queue-statistics-trend{min-width:0;margin:2px 0 9px;padding:8px 9px 6px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff)}
#workQueueView .queue-statistics-trend-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-bottom:3px}
#workQueueView .queue-statistics-trend-heading h3{margin:0;font-size:12px;line-height:1.25}
#workQueueView .queue-statistics-granularity{display:flex;gap:3px;flex:none}
#workQueueView .queue-statistics-granularity button{min-height:27px;padding:3px 7px;font-size:10px}
#workQueueView .queue-statistics-granularity button.is-active{background:var(--soft);border-color:#6b9bd3;color:var(--ink);font-weight:700}
#workQueueView .queue-statistics-trend-chart{position:relative;min-width:0;width:100%;height:190px}
#workQueueView .queue-statistics-trend-chart svg{display:block;width:100%;height:100%;overflow:visible;touch-action:pan-y;outline:none}
#workQueueView .queue-statistics-trend-chart svg:focus-visible{outline:2px solid #1265d6;outline-offset:2px;border-radius:4px}
#workQueueView .queue-statistics-trend-chart .trend-grid line{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
#workQueueView .queue-statistics-trend-chart .trend-grid text,#workQueueView .queue-statistics-trend-chart .trend-axis-label{fill:var(--muted);font-size:10px}
#workQueueView .queue-statistics-trend-chart .trend-submitted{--line-color:var(--statistics-submitted)}
#workQueueView .queue-statistics-trend-chart .trend-active{--line-color:var(--statistics-admitted)}
#workQueueView .queue-statistics-trend-chart .trend-unsuccessful{--line-color:var(--statistics-rejected)}
#workQueueView .queue-statistics-trend-chart .trend-empty{fill:var(--muted);font-size:13px}
#workQueueView .queue-statistics-trend-legend{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--muted)}
#workQueueView .queue-statistics-trend-legend span{display:inline-flex;align-items:center;gap:5px}
#workQueueView .queue-statistics-trend-legend span::before{content:"";display:inline-block;width:15px;height:3px;border-radius:3px;background:var(--legend-color)}
#workQueueView .queue-statistics-trend-legend .submitted{--legend-color:var(--statistics-submitted)}
#workQueueView .queue-statistics-trend-legend .admitted{--legend-color:var(--statistics-admitted)}
#workQueueView .queue-statistics-trend-legend .rejected{--legend-color:var(--statistics-rejected)}
#workQueueView{--statistics-submitted:#327bc2;--statistics-admitted:#2c8c62;--statistics-rejected:#d14c49}
html[data-theme="dark"] #workQueueView{--statistics-submitted:#79b8ff;--statistics-admitted:#64c79a;--statistics-rejected:#ff8585}
#workQueueView .queue-statistics-trend-tooltip{position:absolute;z-index:3;top:4px;max-width:min(240px,70%);display:grid;gap:2px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);box-shadow:0 4px 16px #0002;font-size:10px;pointer-events:none}
#workQueueView .queue-statistics-trend-tooltip[hidden]{display:none}
#workQueueView .queue-statistics-trend-tooltip strong{margin-bottom:2px}
#workQueueView .queue-statistics-message--warning{padding:6px 8px;border:1px solid #d7a43d;border-radius:6px;background:#fff5d9;color:#5d4300}
html[data-theme="dark"] #workQueueView .queue-statistics-message--warning{background:#41351d;border-color:#9a7736;color:#ffe2a1}
#workQueueView .queue-statistics-filter-panel{position:fixed;inset:0 0 0 auto;z-index:1200;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-auto-flow:row;gap:0;width:min(430px,90vw);height:100vh;height:100dvh;max-height:none;overflow:hidden;padding:0;border:1px solid #8DB4E5;border-right:0;border-radius:12px 0 0 12px;background:#F8FBFF;color:var(--ink);box-shadow:-10px 0 32px #12243a2b}
#workQueueView .queue-statistics-filter-panel[hidden]{display:none!important}
#workQueueView .queue-statistics-filter-header{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:10px 14px;border-bottom:1px solid var(--line);background:inherit}
#workQueueView .queue-statistics-filter-header h3{margin:0;font-size:16px}
#workQueueView .queue-statistics-filter-header button{width:34px;height:34px;min-height:34px;padding:0;font-size:22px;line-height:1}
#workQueueView .queue-statistics-filter-fields{display:grid;align-content:start;gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px}
#workQueueView .queue-statistics-filter-section{min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff)}
#workQueueView .queue-statistics-filter-section.queue-statistics-dk-field{padding:0}
#workQueueView .queue-statistics-filter-section-heading{display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 7px;border-radius:7px}
#workQueueView .queue-statistics-section-toggle{position:relative;display:flex;align-items:center;gap:7px;flex:1 1 auto;min-width:0;padding:8px 64px 8px 10px;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:650;text-align:left}
#workQueueView .queue-statistics-section-toggle::after{content:"›";position:absolute;top:50%;right:10px;display:grid;place-items:center;width:13px;height:13px;color:var(--muted);font:20px/13px Arial,sans-serif;text-align:center;transform:translateY(-50%)}
#workQueueView .queue-statistics-section-toggle[aria-expanded="true"]::after{content:"⌃"}
#workQueueView .queue-statistics-section-state{font-size:10px;font-weight:500;color:var(--muted)}
#workQueueView .queue-statistics-section-count{flex:none;font-size:10px;color:var(--muted);white-space:nowrap}
#workQueueView .queue-statistics-section-clear{flex:none;width:26px;height:26px;min-height:26px;padding:0;border:1px solid #6c9ad1;border-radius:50%;background:var(--surface,#fff);color:#245d99;font-size:17px;line-height:1}
#workQueueView .queue-statistics-section-clear[hidden]{display:none}
#workQueueView .queue-statistics-filter-section.filter-active{border-color:#5d9bd8;background:#f0f6ff}
#workQueueView .queue-statistics-filter-section.filter-active .queue-statistics-filter-section-heading{background:#e4efff}
#workQueueView .queue-statistics-filter-section.filter-active .queue-statistics-section-state{color:#155c9f;font-weight:650}
#workQueueView .queue-statistics-filter-section.filter-pending{outline:1px dashed #c58a19;outline-offset:1px}
#workQueueView .queue-statistics-filter-section.filter-pending .queue-statistics-section-state{color:#8b5b00}
#workQueueView .queue-statistics-filter-section-content{display:grid;gap:7px;padding:0 10px 10px}
#workQueueView .queue-statistics-filter-section-content[hidden]{display:none}
#workQueueView .queue-statistics-filter-section-content>select,#workQueueView .queue-statistics-filter-section-content input[type=search]{box-sizing:border-box;width:100%;min-width:0;height:36px;padding:6px 8px}
#workQueueView .queue-statistics-dk-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0}
#workQueueView .queue-statistics-dk-heading>input[type=search]{width:100%;min-width:0}
#workQueueView .queue-statistics-dk-heading>button{justify-self:end;white-space:nowrap}
#workQueueView .queue-statistics-dk-options{display:grid;gap:3px;max-height:min(26vh,240px);overflow:auto;overscroll-behavior:contain;min-width:0}
#workQueueView .queue-statistics-dk-options label{display:flex;align-items:center;gap:7px;min-width:0;padding:5px 6px;border-radius:5px;overflow-wrap:anywhere}
#workQueueView .queue-statistics-dk-options label:hover{background:var(--soft)}
#workQueueView .queue-statistics-dk-options input{width:15px;min-width:15px;height:15px;margin:0}
#workQueueView .queue-statistics-filter-actions{position:relative;z-index:1;display:flex;gap:8px;margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:inherit}
#workQueueView .queue-statistics-filter-actions button{flex:1 1 0;min-height:40px;padding:7px 10px;white-space:nowrap}
#workQueueView .queue-statistics-filter-section.filter-active .queue-statistics-filter-section-content select{border-color:#5d9bd8}

/* Compact, ordered controls and drawer actions for the approved statistics workflow. */
#workQueueView .queue-protocol-summary{border-left:4px solid #78a8de}
#workQueueView .queue-current-summary{border-left:4px solid #83b76f}
#workQueueView .queue-statistics-card{display:flex;align-self:stretch;flex-direction:column;min-height:100%;}
#workQueueView .queue-statistics-filters{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
#workQueueView .queue-statistics-controls{gap:5px}
#workQueueView .queue-statistics-controls input[type=date]{width:116px;min-width:110px}
#workQueueView .queue-statistics-control-separator{flex:1 1 12px;min-width:8px;height:1px;margin-inline:3px;background:var(--line)}
#workQueueView .queue-statistics-apply{border-color:#328e5b!important;background:#e5f5eb!important;color:#17653a!important}
#workQueueView .queue-statistics-apply:hover{border-color:#247849!important;background:#d4efde!important}
html[data-theme="dark"] #workQueueView .queue-statistics-apply{border-color:#4b9c6c!important;background:#1c4935!important;color:#d8f3e2!important}
html[data-theme="dark"] #workQueueView .queue-statistics-apply:hover{background:#24583f!important}
#workQueueView .queue-statistics-workspace{flex:1 1 auto;align-items:stretch}
#workQueueView .queue-statistics-results{display:flex;flex-direction:column;min-height:0}
#workQueueView .queue-statistics-table{flex:1 1 auto;min-height:90px}
#workQueueView .queue-statistics-filter-panel{inset:0 0 auto auto;height:calc(100dvh - 40px - env(safe-area-inset-bottom));max-height:none;grid-template-rows:auto minmax(0,1fr);width:min(430px,90vw)}
#workQueueView .queue-statistics-filter-header{position:relative;flex:none;min-height:62px;padding:8px 12px}
#workQueueView .queue-statistics-filter-header-actions{display:flex;align-items:center;gap:7px}
#workQueueView .queue-statistics-filter-header-actions button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0}
#workQueueView .queue-statistics-filter-header-actions #queueStatisticsFilterApply{border-radius:7px;font-weight:700}
#workQueueView .queue-statistics-filter-fields{min-height:0;overflow:auto}
#workQueueView .queue-statistics-filter-section-heading{min-width:0}
#workQueueView .queue-statistics-table--scroll{flex:1 1 auto}
@media(max-width:1500px){
  #workQueueView .queue-statistics-controls{gap:4px}
  #workQueueView .queue-statistics-controls input[type=date]{width:108px;min-width:104px}
  #workQueueView .queue-statistics-group select{min-width:122px}
  #workQueueView .queue-statistics-control-separator{flex-grow:.15}
}
@media(max-width:1100px){
  #workQueueView .queue-statistics-card{min-height:0}
  #workQueueView .queue-statistics-workspace{flex:0 0 auto}
  #workQueueView .queue-statistics-table{flex:0 0 auto}
}
html[data-theme="dark"] #workQueueView .queue-statistics-filter-panel{background:#172d45;border-color:#6488B5;box-shadow:-10px 0 32px #0006}
html[data-theme="dark"] #workQueueView .queue-statistics-filter-section{background:#132840;border-color:#38516e}
html[data-theme="dark"] #workQueueView .queue-statistics-filter-section.filter-active{background:#203650;border-color:#79b8ff}
html[data-theme="dark"] #workQueueView .queue-statistics-filter-section.filter-active .queue-statistics-filter-section-heading{background:#243e5a}
html[data-theme="dark"] #workQueueView .queue-statistics-filter-section.filter-active .queue-statistics-section-state{color:#9dcbff}
html[data-theme="dark"] #workQueueView .queue-statistics-filter-section.filter-pending .queue-statistics-section-state{color:#ffd17c}
html[data-theme="dark"] #workQueueView .queue-statistics-section-clear{background:#203650;color:#b9dcff;border-color:#6488B5}
/* Keep the right statistics panel content-sized instead of stretching beside both left cards. */
@media(min-width:1101px){
  #workQueueView .work-queue-operational-grid{align-items:stretch}
  #workQueueView .queue-statistics-card{display:flex;align-self:stretch;flex-direction:column;min-height:100%;height:auto}
  #workQueueView .queue-statistics-filters{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
  #workQueueView .queue-statistics-workspace,#workQueueView .queue-statistics-results{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
  #workQueueView .queue-statistics-trend{display:flex;flex:1 1 56%;flex-direction:column;min-height:205px;margin-bottom:7px}
  #workQueueView .queue-statistics-trend-chart{flex:1 1 auto;height:auto;min-height:150px}
  #workQueueView .queue-statistics-table,#workQueueView .queue-statistics-table--scroll{box-sizing:border-box;flex:1 1 44%;min-height:110px;overflow:auto;overscroll-behavior:contain}
}
@media(max-width:1100px){
  #workQueueView .queue-statistics-card{display:block;align-self:start;min-height:0;height:auto}
  #workQueueView .queue-statistics-filters{display:block;flex:none}
  #workQueueView .queue-statistics-workspace,#workQueueView .queue-statistics-results{display:block;flex:none;min-height:0}
  #workQueueView .queue-statistics-table,#workQueueView .queue-statistics-table--scroll{flex:none}
}
@media(max-width:720px){
  #workQueueView .queue-statistics-workspace.is-filter-open .queue-statistics-results{width:0;visibility:hidden;overflow:hidden}
  #workQueueView .queue-statistics-filter-panel{width:min(480px,100vw);border-radius:0}
  #workQueueView .queue-statistics-trend-chart{height:175px}
  #workQueueView .queue-statistics-trend-heading{align-items:flex-start;flex-direction:column}
  #workQueueView .queue-statistics-kpis button{min-width:0;padding:5px 3px}
  #workQueueView .queue-statistics-kpis button span{font-size:9px;line-height:1.15}
  #workQueueView .queue-statistics-kpis button strong{font-size:16px}
}

@media(max-width:1300px){
  #workQueueView .queue-summary-heading{flex-wrap:wrap}
  #workQueueView .queue-summary-heading>h2{white-space:normal}
  #workQueueView .queue-summary-heading .protocol-period{order:3;flex-basis:100%}
  #workQueueView .queue-statistics-controls{flex-wrap:wrap}
}
@media(max-width:1100px){
  #workQueueView .work-queue-operational-grid{grid-template-columns:minmax(0,1fr)}
  #workQueueView .queue-summary-heading{flex-wrap:nowrap}
  #workQueueView .queue-summary-heading .protocol-period{order:0;flex:1 1 auto}
}
@media(max-width:720px){
  #workQueueView .queue-summary-heading{flex-wrap:wrap}
  #workQueueView .queue-summary-heading>h2{flex:1 1 100%}
  #workQueueView .queue-summary-heading .protocol-period{order:0;flex:1 1 calc(100% - 44px);flex-wrap:wrap;margin-left:0}
  #workQueueView .queue-summary-total{margin-left:auto}
  #workQueueView .queue-statistics-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  #workQueueView .queue-statistics-controls>label{justify-content:space-between}
  #workQueueView .queue-statistics-controls input[type=date]{width:calc(100% - 35px);min-width:0}
  #workQueueView .queue-statistics-filter-toggle,#workQueueView .queue-statistics-group{grid-column:span 1}
  #workQueueView .queue-statistics-group{flex-wrap:wrap}
  #workQueueView .queue-statistics-group select{width:100%;max-width:none}
  #workQueueView .queue-statistics-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,92px),1fr))}
  #workQueueView .queue-statistics-kpis button{min-width:0;padding:4px 2px}
  #workQueueView .queue-statistics-kpis button span{font-size:8px;overflow-wrap:anywhere}
  #workQueueView .queue-statistics-kpis button strong{font-size:14px}
  #workQueueView .queue-statistics-filter-panel{grid-template-columns:minmax(0,1fr);width:min(400px,calc(100vw - 32px))}
}
@container queue-stats (max-width:760px){
  #workQueueView .queue-statistics-workspace.is-filter-open .queue-statistics-results{width:0;visibility:hidden;overflow:hidden}
}
@media(max-width:650px){
  #workQueueView #queueProtocolCategoryCards,#workQueueView #queueCategoryCards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #workQueueView #queueProtocolOfficerCards,#workQueueView #queueQualificationCards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #workQueueView .queue-statistics-table{overflow-x:auto}
  #workQueueView .queue-statistics-table table{min-width:560px}
}

/* Keep controls visually consistent while retaining a visible keyboard focus. */
#workQueueView :is(.protocol-period input,.queue-statistics-controls input,.queue-statistics-controls select,.queue-statistics-filter-toggle,.queue-icon-action,.queue-statistics-filter-fields select,.queue-statistics-dk-field>input[type="search"],.queue-statistics-filter-actions button){box-sizing:border-box;height:34px;min-height:34px;border-radius:7px}
#workQueueView :is(.protocol-period input,.queue-statistics-controls input,.queue-statistics-controls select,.queue-statistics-filter-toggle,.queue-icon-action,.queue-statistics-filter-fields select,.queue-statistics-dk-field>input[type="search"],.queue-statistics-filter-actions button):focus-visible{outline:2px solid #1265d6;outline-offset:2px}

/* Final compactness and approved colored edge markers. */
#workQueueView{padding-top:14px}
#workQueueView .queue-summary-heading{gap:6px;margin-bottom:6px}
#workQueueView .queue-summary-heading>h2{font-size:15px}
#workQueueView .protocol-period{gap:4px;margin-left:6px}
#workQueueView .protocol-period input{width:108px;min-width:100px;padding-inline:4px}
#workQueueView .qualification-summary-card h3{border:0;padding:0;background:transparent}
#workQueueView #queueQualificationCards>.qualification-summary-officer:not(.unassigned),#workQueueView #queueProtocolOfficerCards>.qualification-summary-officer:not(.unassigned){border-left:4px solid #43a66d}
#workQueueView #queueCategoryCards>.qualification-summary-category,#workQueueView #queueProtocolCategoryCards>.qualification-summary-category{border-left:4px solid #537fca}
#workQueueView .queue-statistics-controls{gap:6px;align-items:center}
#workQueueView .queue-statistics-controls>#queueStatisticsFromField,#workQueueView .queue-statistics-controls>#queueStatisticsToField{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#workQueueView .queue-statistics-controls input[type=date]{width:112px;min-width:104px}
#workQueueView .queue-statistics-control-separator{display:none}
#workQueueView .queue-statistics-kpis{margin-top:12px}
#workQueueView .queue-statistics-kpis button,#workQueueView .publication-control-cards>button{border-left-width:4px!important}
#workQueueView .queue-statistics-kpis button.submitted{border-left-color:#5b8bc4!important}
#workQueueView .queue-statistics-kpis button.admitted,#workQueueView .publication-kpi--admitted{border-left-color:#4b9a70!important}
#workQueueView .queue-statistics-kpis button.rejected,#workQueueView .publication-kpi--rejected{border-left-color:#d87972!important}
#workQueueView .queue-statistics-kpis button.pending,#workQueueView .publication-kpi--pending{border-left-color:#c5a13b!important}
html[data-theme="dark"] #workQueueView #queueQualificationCards>.qualification-summary-officer:not(.unassigned),html[data-theme="dark"] #workQueueView #queueProtocolOfficerCards>.qualification-summary-officer:not(.unassigned){border-left:4px solid #4c9a7d}
html[data-theme="dark"] #workQueueView #queueCategoryCards>.qualification-summary-category,html[data-theme="dark"] #workQueueView #queueProtocolCategoryCards>.qualification-summary-category{border-left:4px solid #5a8dc1}
@media(max-width:1300px){#workQueueView .protocol-period{margin-left:0}#workQueueView .protocol-period input{width:104px;min-width:96px}}
@media(max-width:720px){#workQueueView .protocol-period input{width:calc(100% - 28px);min-width:0}}
