/* Data-only additions to the approved layout. */
.evidence-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:12px 0}.source-attachment{text-decoration:none;color:inherit}.source-attachment:hover{border-color:var(--blue)}.login-form input[type=email]{width:100%}#app>.empty{max-width:600px;margin:10vh auto}#app .error{overflow-wrap:anywhere}

/* The original request stays within its own column, including long standards. */
.request-page .spec.decision-table td:nth-child(2) .product-cell{min-width:0;max-width:100%}
.request-page .spec.decision-table td:nth-child(2) .prod{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-width:0}

/* Real catalogue names wrap inside the existing result column. */
.request-page .spec.decision-table td:nth-child(3) .product-cell{min-width:0;max-width:100%}
.request-page .spec.decision-table td:nth-child(3) .prod{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-width:0}

.line-paging{display:flex;justify-content:space-between;gap:16px;align-items:end;margin:12px 0;flex-wrap:wrap}.line-paging form label{font-size:12px;display:block;margin-bottom:5px}.line-paging form>div,.line-page-actions{display:flex;gap:8px;align-items:center}.line-page-actions{flex-wrap:wrap;font-size:12px;color:var(--muted)}.line-paging input{min-width:180px;max-width:280px;padding:9px;border:1px solid var(--line,#ddd);border-radius:8px;background:var(--surface,#fff);color:inherit}

/* Connected first-stage analytics, using the approved page and panel styles. */
.analytics-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.analytics-controls label{display:grid;gap:5px;font-size:13px}.analytics-controls select,.analytics-controls input{max-width:240px;min-height:38px;border:1px solid var(--line,#d8dce4);border-radius:9px;padding:7px;background:var(--panel,#fff);color:inherit}.analytics-count{border:0;background:none;color:inherit;padding:0;text-align:left;cursor:pointer;min-width:0}.analytics-count .kpi{height:100%}.analytics-kpis{margin-top:16px}.analytics-explanation{margin:16px 0}.analytics-details{margin:16px 0;padding:20px}.analytics-details h3{margin-bottom:14px}.analytics-expired{display:block;color:var(--muted,#687180);font-size:12px;margin-top:4px}.analytics-period-row{gap:12px;flex-wrap:wrap}

/* Keep the agreed table visible when a source has many review notes. */
.source-warning{max-height:min(144px,24vh);overflow:auto;flex-shrink:0;overscroll-behavior:contain}
.source-conditions>.stack{margin-top:12px}

@media(max-height:760px){.source-warning{max-height:64px}}

/* Narrow request panels use the same readable table as mobile, even beside the queue. */
@container request (max-width:520px){
 .request-page .tablewrap{overflow-x:auto;overflow-y:visible}
 .request-page .spec.decision-table{display:table;min-width:1200px;width:100%;table-layout:fixed}
 .request-page .spec.decision-table thead{display:table-header-group}
 .request-page .spec.decision-table tbody{display:table-row-group}
 .request-page .spec.decision-table tr{display:table-row;padding:0;border-bottom:0}
 .request-page .spec.decision-table th:nth-child(n){width:auto}
 .request-page .spec.decision-table td:nth-child(n){display:table-cell;width:auto;grid-column:auto;grid-row:auto;padding:14px 10px;margin:0;border-bottom:1px solid var(--line);vertical-align:middle}
 .request-page .spec.decision-table td:first-child{text-align:center;padding-inline:6px}
 .request-page .spec.decision-table td:nth-child(5):before{content:none}
 .request-page .spec.decision-table td:nth-child(n) .sub{display:block;margin:5px 0 0;font-size:10px}
}
.recognition-summary{font-size:12px;color:var(--muted);line-height:1.6;margin:12px 0 20px;overflow-wrap:anywhere}
.recognition-summary p{margin:6px 0}.recognition-summary details{margin:10px 0}.recognition-summary strong{color:var(--ink)}
.analytics-period-row label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px}.analytics-period-row select{max-width:100%}
