/* WEnovo 6.13 endurance/productivity improvements */
.endurance-search-button{display:inline-flex;align-items:center;gap:8px;min-width:46px}.endurance-search-button kbd{font:inherit;font-size:10px;padding:2px 6px;border:1px solid var(--line);border-radius:5px;background:#f7f8f8;color:var(--muted)}
.endurance-search-shell{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px}.endurance-search-main{min-width:0}.endurance-search-box{display:flex;gap:8px;align-items:center;position:sticky;top:0;background:#fff;padding-bottom:10px;z-index:2}.endurance-search-box input{flex:1;font-size:16px}.endurance-search-results{display:grid;gap:8px;max-height:56vh;overflow:auto;padding:2px}.endurance-search-result{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fff}.endurance-search-result:hover,.endurance-search-result:focus-visible{border-color:var(--wenovo-action)}.endurance-search-result .type-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#f2f4f5;font-weight:900}.endurance-search-result small{display:block;color:var(--muted);margin-top:2px}.endurance-search-side{border-left:1px solid var(--line);padding-left:16px;display:grid;align-content:start;gap:14px}.endurance-mini-list{display:grid;gap:6px}.endurance-mini-item{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:8px;border-radius:8px;border:1px solid var(--line);background:#fff}.endurance-mini-item button{min-height:36px}.endurance-favorite{font-size:18px;min-width:42px}.endurance-empty{padding:20px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);text-align:center}
.endurance-today{margin-top:16px}.endurance-today-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:10px}.endurance-today-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.endurance-today-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff;min-width:0}.endurance-today-card header{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.endurance-today-card header b{font-size:14px}.endurance-today-card header strong{font-size:24px}.endurance-today-card ul{list-style:none;padding:0;margin:0;display:grid;gap:5px}.endurance-today-card li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-top:6px;border-top:1px solid #eef0f1}.endurance-today-card small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.endurance-today-open{width:100%;margin-top:8px}
.endurance-leave-balance{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}.endurance-leave-workspace{display:grid;gap:14px}.endurance-leave-preview{padding:12px;border-radius:10px;background:#f7fafb;border:1px solid var(--line);display:grid;gap:6px}.endurance-leave-preview strong{font-size:20px}.endurance-breakdown{display:flex;flex-wrap:wrap;gap:6px}.endurance-day-chip{padding:5px 8px;border-radius:999px;border:1px solid var(--line);font-size:11px}.endurance-day-chip.off{opacity:.55}.endurance-team-leave{display:grid;gap:8px}.endurance-team-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1fr) auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.endurance-notification-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.endurance-notification-toolbar select{margin-left:auto}.notification-row.snoozed{opacity:.6}.notification-row-actions{display:flex;gap:6px;align-items:center}.notification-row-actions button{min-height:36px}.endurance-notification-center .notification-list{max-height:58vh;overflow:auto}
.endurance-insights{display:grid;gap:14px}.endurance-health-grid,.endurance-workload-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.endurance-health-grid article,.endurance-workload-grid article{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff}.endurance-health-grid b,.endurance-workload-grid b{display:block;font-size:20px}.endurance-workload-table td:nth-child(n+3),.endurance-workload-table th:nth-child(n+3){text-align:center}.endurance-audit-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) 180px auto;gap:8px}.endurance-audit-results{max-height:54vh;overflow:auto}
.endurance-list-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.endurance-list-tools .spacer{flex:1}.endurance-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 4px}.endurance-pagination .button-row{display:flex;gap:6px}.endurance-page-hidden{display:none!important}.endurance-density-compact .phase4-request-card{padding:12px}.endurance-density-compact .phase4-request-card .phase4-request-grid{gap:7px}.endurance-density-compact .compact-row{padding-top:7px;padding-bottom:7px}
.data-table.endurance-enhanced thead th{position:sticky;top:0;z-index:2;background:#f7f8f8;box-shadow:0 1px 0 var(--line)}.data-table.endurance-enhanced tbody tr:hover{background:#fffaf5}.table-wrap.endurance-h-scroll::after{content:"Horizontaal scrollen voor meer kolommen →";position:sticky;left:8px;bottom:4px;display:inline-block;padding:4px 7px;border-radius:6px;background:rgba(255,255,255,.94);border:1px solid var(--line);font-size:10px;color:var(--muted);pointer-events:none}.table-wrap.endurance-h-scroll.scrolled-end::after{content:"← Terug scrollen voor eerste kolommen"}
.endurance-completeness{display:inline-flex;gap:4px;align-items:center;margin-top:3px;font-size:10px;padding:2px 6px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}.endurance-completeness.good{border-color:#9bd6b9;color:#21653d;background:#f2fbf6}.endurance-completeness.warn{border-color:#e8c48a;color:#7c5016;background:#fffaf0}.endurance-completeness.low{border-color:#e2a5a5;color:#7a2727;background:#fff4f4}
.endurance-aging{display:inline-flex;margin-left:7px;font-size:10px;padding:2px 6px;border-radius:999px;background:#f1f3f4;color:var(--muted)}.endurance-aging.warn{background:#fff0d9;color:#744510}.endurance-aging.late{background:#ffe4e4;color:#7a2222}
.endurance-saved-view{display:flex;gap:6px;align-items:center}.endurance-view-menu{max-width:190px}.endurance-highlight{animation:endurance-highlight 1.8s ease-out}@keyframes endurance-highlight{0%{box-shadow:0 0 0 5px rgba(200,75,11,.28)}100%{box-shadow:none}}
.manual-revision-diff{display:grid;gap:12px}.manual-revision-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.manual-revision-card{padding:12px;border:1px solid var(--line);border-radius:10px}.manual-revision-change{padding:8px 10px;border-left:3px solid var(--wenovo-action);background:#fff9f5;border-radius:6px}.manual-revision-change small{display:block;color:var(--muted)}
.endurance-mobile-task{display:none}
@media(max-width:900px){.endurance-search-shell{grid-template-columns:1fr}.endurance-search-side{border-left:0;border-top:1px solid var(--line);padding:12px 0 0}.endurance-today-grid{grid-template-columns:1fr}.endurance-leave-balance,.endurance-health-grid,.endurance-workload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.endurance-audit-toolbar{grid-template-columns:1fr}.manual-revision-grid{grid-template-columns:1fr}}
@media(max-width:600px){.endurance-search-button kbd{display:none}.endurance-leave-balance,.endurance-health-grid,.endurance-workload-grid{grid-template-columns:1fr 1fr}.endurance-team-row{grid-template-columns:1fr auto}.endurance-team-row>*:nth-child(2){grid-column:1/2}.endurance-today-card{padding:12px}.endurance-mobile-task{display:block;position:sticky;top:0;z-index:4}.endurance-notification-toolbar select{margin-left:0;width:100%}}
@media(prefers-reduced-motion:reduce){.endurance-highlight{animation:none;outline:3px solid var(--wenovo-action)}}
.endurance-service-workspace{display:grid;gap:14px}.endurance-service-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 190px 170px;gap:10px;align-items:end;margin-bottom:14px}.endurance-service-list{display:grid;gap:10px}.endurance-service-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff;display:grid;gap:12px}.endurance-service-card.urgent{border-left:4px solid #a61f1f}.endurance-service-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.endurance-service-card h3{margin:2px 0 4px}.endurance-service-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.endurance-service-meta span{padding:9px 10px;border-radius:9px;background:#f7f8f8;min-width:0}.endurance-service-meta b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:3px}.endurance-service-meta .service-blocker{grid-column:1/-1;background:#fff4e8;color:#70400f}.endurance-service-card footer{justify-content:flex-end}.endurance-service-manage{display:grid;gap:12px}
@media(max-width:800px){.endurance-service-toolbar{grid-template-columns:1fr}.endurance-service-meta{grid-template-columns:1fr}.endurance-service-card header{flex-direction:column}.endurance-service-card footer .button{flex:1}}
.phase4-request-card.needs-escalation{border-left:4px solid #a34b00}.phase4-escalation{display:flex;gap:8px;align-items:center;margin-top:7px;padding:7px 9px;border-radius:8px;background:#fff4e6;color:#713b00;font-size:12px}.phase4-escalation b{white-space:nowrap}
.endurance-table-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 2px 8px;color:var(--muted);font-size:11px}.endurance-sort-button{border:0;background:transparent;color:var(--muted);font:inherit;padding:4px 5px;min-width:28px;min-height:28px;border-radius:6px;cursor:pointer}.endurance-sort-button:hover,.endurance-sort-button:focus-visible{background:#fff1e8;color:var(--wenovo-action)}.endurance-column-hidden{display:none!important}.endurance-column-chooser{display:grid;gap:12px}.endurance-column-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.endurance-row-actions{position:relative;display:inline-block}.endurance-row-actions summary{list-style:none;cursor:pointer}.endurance-row-actions summary::-webkit-details-marker{display:none}.endurance-row-actions-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:8;min-width:190px;padding:7px;display:grid;gap:5px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.14)}.endurance-row-actions-menu .button,.endurance-row-actions-menu a{width:100%;justify-content:flex-start}.table-wrap.endurance-h-scroll .data-table.endurance-sticky-first th:first-child,.table-wrap.endurance-h-scroll .data-table.endurance-sticky-first td:first-child{position:sticky;left:0;z-index:1;background:var(--paper,#fff);box-shadow:1px 0 0 var(--line)}.table-wrap.endurance-h-scroll .data-table.endurance-sticky-first thead th:first-child{z-index:4;background:#f7f8f8}
@media(max-width:600px){.endurance-column-list{grid-template-columns:1fr}.endurance-table-tools span{display:none}}
.manual-critical-option{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fffaf5}.manual-review-state{display:grid;gap:3px;margin-top:8px;padding:9px 11px;border-radius:9px}.manual-review-state.required{background:#fff0df;color:#723c08}.manual-review-state.approved{background:#effaf4;color:#1f6039}.manual-review-dialog{display:grid;gap:12px}
.article-quality-score{display:flex;align-items:baseline;gap:12px;margin:12px 0 16px;padding:14px 16px;border:1px solid var(--line,#dfe5e8);border-radius:12px;background:var(--surface-soft,#f7f9fa)}
.article-quality-score b{font-size:1.35rem}.article-quality-score span{color:var(--muted,#66757d)}
.article-duplicate-list{display:grid;gap:8px;margin:16px 0}.article-duplicate-card{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px;border:1px solid var(--line,#dfe5e8);border-radius:10px}.article-duplicate-card>div{display:grid;gap:2px}.article-duplicate-card small{color:var(--muted,#66757d)}
.phase1-recent-shell{margin:12px 0}.phase1-recent-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:8px}.phase1-recent-heading span{font-size:.85rem;color:var(--muted,#66757d)}.phase1-recent-scans{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.phase1-recent-scan{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:11px 12px;border:1px solid var(--line,#dfe5e8);border-radius:10px;background:var(--surface,#fff);cursor:pointer}.phase1-recent-scan span{display:grid;gap:2px;min-width:0}.phase1-recent-scan small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted,#66757d)}
.manual-local-draft{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:end;margin:12px 0;padding:12px;border:1px dashed var(--line,#dfe5e8);border-radius:10px;background:var(--surface-soft,#f7f9fa)}.manual-local-draft>div{grid-column:1/-1;display:grid;gap:2px}.manual-local-draft small{color:var(--muted,#66757d)}.manual-local-draft textarea{min-width:0}
@media (max-width:720px){.manual-viewer.manual-task-mode{padding-bottom:76px}.manual-viewer.manual-task-mode .manual-viewer-nav{position:sticky;bottom:0;z-index:8;margin-inline:-10px;padding:10px;background:rgba(255,255,255,.96);border-top:1px solid var(--line,#dfe5e8);box-shadow:0 -8px 24px rgba(0,0,0,.08)}.manual-viewer.manual-task-mode .manual-complete-check{min-height:56px;padding:14px}.manual-local-draft{grid-template-columns:1fr}.manual-local-draft>div{grid-column:auto}.manual-local-draft .button{width:100%}}
.endurance-readiness-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:12px 0}.endurance-readiness-grid span{display:grid;gap:3px;padding:10px;border:1px solid var(--line,#dfe5e8);border-radius:10px}.endurance-readiness-grid span:not(b){font-size:.9rem}.endurance-report-toolbar,.endurance-audit-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end}.endurance-report-toolbar .button,.endurance-audit-toolbar .button{min-height:44px}.audit-result-meta{margin:10px 0;color:var(--muted,#66757d);font-size:.9rem}

.endurance-context-bar{display:flex;align-items:center;gap:7px;margin:-4px 0 14px;padding:0 2px;color:var(--muted,#66757d);font-size:.78rem}.endurance-context-bar strong{color:var(--ink,#223038);font-weight:700}.endurance-task-bulk{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto auto;gap:10px;align-items:end;padding:10px 12px;margin-bottom:10px;border:1px solid var(--line,#dfe5e8);border-radius:10px;background:var(--surface-soft,#f7f9fa)}.endurance-task-selected{align-self:center;color:var(--muted,#66757d);font-size:.82rem;white-space:nowrap}.endurance-task-check{display:inline-grid;place-items:center;margin-right:8px;vertical-align:middle}.endurance-task-check input{width:18px;height:18px}.compact-field{margin:0}.compact-field select{min-height:40px}
@media(max-width:760px){.endurance-task-bulk{grid-template-columns:1fr}.endurance-task-bulk .button{width:100%}.endurance-context-bar{margin-top:-2px}}
/* Touch quality gate: table sorting remains comfortable on phone/tablet. */
@media(max-width:900px){.endurance-sort-button{min-width:44px;min-height:44px;padding:8px}}
/* Explicitly remove closed row-action menus from layout/focus geometry in all browser engines. */
.endurance-row-actions:not([open]) .endurance-row-actions-menu{display:none}

/* Keep each notification's title, message and date readable inside its one button. */
.endurance-notification-center .notification-row{grid-template-columns:34px minmax(0,1fr);align-items:start}
.endurance-notification-center .notification-row>button[data-endurance-open-notification]{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0;text-align:left;white-space:normal;align-items:start;justify-content:stretch}
.endurance-notification-center .notification-row>button[data-endurance-open-notification]>b,.endurance-notification-center .notification-row>button[data-endurance-open-notification]>small,.endurance-notification-center .notification-row>button[data-endurance-open-notification]>time{min-width:0;max-width:100%;overflow-wrap:anywhere}
.endurance-notification-center .notification-row>.notification-row-actions{grid-column:2;justify-self:end}
.endurance-notification-center .notification-row-actions>button{white-space:nowrap}

/* Keep revision number and publication date visually distinct. */
.manual-revision-card>b,.manual-revision-card>small{display:block}
.manual-revision-card>small{margin-top:4px}

/* Keep existing search controls readable at phone widths. */
.endurance-search-box input{min-width:0}
.endurance-search-result{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;padding:10px}
.endurance-search-result>button[data-endurance-open-result]:not(.type-icon){display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-content:stretch;gap:4px;min-width:0;text-align:left;white-space:normal}
.endurance-search-result>button[data-endurance-open-result]>b,.endurance-search-result>button[data-endurance-open-result]>small{min-width:0;max-width:100%;overflow-wrap:anywhere}
.endurance-search-result .type-icon{width:44px;min-width:44px;height:44px;min-height:44px;border:1px solid var(--line);font:inherit;font-weight:700;cursor:pointer}
.endurance-search-result .endurance-favorite{width:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center}
.endurance-search-side .check{align-items:flex-start}
.endurance-search-side .check>span{min-width:0}
.endurance-search-side .check>span>b,.endurance-search-side .check>span>small{display:block}
.endurance-search-side .check>span>small{margin-top:4px;line-height:1.45}
.endurance-mini-item{flex-wrap:wrap}
.endurance-mini-item button{min-width:0;white-space:normal;overflow-wrap:anywhere}

@media(max-width:360px){
  .endurance-search-result>button[data-endurance-open-result]:not(.type-icon){grid-column:1/-1;grid-row:1}
  .endurance-search-result .type-icon{grid-column:1;grid-row:2}
  .endurance-search-result .endurance-favorite{grid-column:3;grid-row:2}
}

/* Keep pinned cells opaque and every column reachable on phones. */
.table-wrap.endurance-h-scroll .data-table.endurance-sticky-first tbody tr:hover td:first-child{background:#fffaf5}
@media(max-width:760px){
  .table-wrap.endurance-h-scroll .data-table.endurance-sticky-first th:first-child,.table-wrap.endurance-h-scroll .data-table.endurance-sticky-first td:first-child{left:auto;box-shadow:none}
}
.endurance-nav-count{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;min-width:1.35rem;height:1.35rem;padding:0 .3rem;border-radius:999px;background:#f59e0b;color:#17202a;font-size:.75rem;font-weight:700;line-height:1;flex-shrink:0}.endurance-nav-count.hidden{display:none}
