/* Shared execution appointments on project / location pages. */
.confirmed-scope-card{min-width:0;margin:12px 0 18px}
.confirmed-scope-section-head{align-items:center;gap:12px;flex-wrap:wrap}
.confirmed-scope-section-head h2{margin:0 0 4px}
.confirmed-scope-section-head .actions{display:flex;flex-wrap:wrap;gap:7px}
.confirmed-scope-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid #dce6f0;border-radius:8px;margin-top:8px}
.confirmed-scope-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.4;min-width:590px;table-layout:auto}
.confirmed-scope-table thead{background:#eaf1f9;color:#183c5d}
.confirmed-scope-table th{font-size:11px;letter-spacing:.03em;font-weight:700;text-align:left}
.confirmed-scope-table td,.confirmed-scope-table th{padding:10px 11px;vertical-align:top;border-bottom:1px solid #e6edf4}
.confirmed-scope-table tbody tr:last-child td{border-bottom:none}
.confirmed-scope-table tbody tr[role=button]{cursor:pointer}
.confirmed-scope-table tbody tr[role=button]:hover,.confirmed-scope-table tbody tr[role=button]:focus-visible{background:#eff6fd;outline:1px solid #87acd2;outline-offset:-1px}
.confirmed-scope-table tbody tr.confirmed-scope-today{background:#f6f9fc}
.confirmed-scope-table td:first-child{white-space:nowrap}
.confirmed-scope-table td small{display:block;font-size:11px;font-weight:400;color:#667b8c;line-height:1.5;margin-top:3px;white-space:normal;max-width:520px}
.confirmed-scope-now{display:inline-block!important;width:max-content;background:#e0efff;color:#174a76!important;border-radius:4px;padding:1px 6px;font-weight:700!important}
.confirmed-scope-status{display:inline-flex;align-items:center;font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;white-space:nowrap;background:#edf1f6;color:#52677a}
.confirmed-scope-status.confirmed{background:#e0ebfb;color:#1a578a}
.confirmed-scope-status.in_progress{background:#fff0d9;color:#965600}
.confirmed-scope-status.done{background:#e0f2e6;color:#167143}
.confirmed-scope-count{font-size:12px;color:#5a7185;margin-top:9px}
.confirmed-scope-preview-bg{z-index:1200}
.confirmed-scope-preview-modal{width:min(990px,calc(100vw - 18px))!important;max-width:990px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}
.confirmed-scope-preview-modal .toolbar{gap:10px;align-items:center}
.confirmed-scope-print-preview{padding:15px 5px 12px;line-height:1.4}
.confirmed-scope-print-brand{display:flex;align-items:baseline;flex-wrap:wrap;gap:14px;border-bottom:3px solid #163a60;padding-bottom:12px}
.confirmed-scope-print-brand b{color:#193e63;font-size:22px;letter-spacing:.08em}
.confirmed-scope-print-brand span{font-size:9px;letter-spacing:.14em;color:#597895}
.confirmed-scope-print-preview h3{margin:16px 0 7px;font-size:19px}
.confirmed-scope-preview-actions{position:sticky;bottom:0;background:var(--surface,#fff);padding:12px;border-top:1px solid #dce6f0;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.confirmed-scope-preview-actions a.btn{text-decoration:none}
@media(max-width:700px){.confirmed-scope-section-head .actions{width:100%}.confirmed-scope-table{font-size:11px}.confirmed-scope-preview-modal .toolbar{flex-wrap:wrap}.confirmed-scope-print-preview{padding:10px 0}.confirmed-scope-preview-actions>*{flex:1;text-align:center}}

/* Project only: initial viewport for current/next three days; later rows scroll in place. */
#project-confirmed-upcoming .confirmed-scope-project-scroll{overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;max-height:350px}
#project-confirmed-upcoming .confirmed-scope-project-scroll thead{position:sticky;top:0;z-index:1;background:#eaf1f9}
#project-confirmed-upcoming .confirmed-scope-horizon-note{font-size:11px;color:#58748e;margin:7px 0 0}
@media(max-width:700px){#project-confirmed-upcoming .confirmed-scope-project-scroll{max-height:320px!important}}

/* ISO week above the date/period on both project and location appointment tables. */
.confirmed-scope-table .confirmed-scope-week{display:block;font-size:11px;font-weight:800;color:#24618e;line-height:1.15;margin:0 0 3px}
.confirmed-scope-table .confirmed-scope-date{display:block;font-size:12px;line-height:1.35}
