/* v55.4.0 Phase 5: committee task centre, Friendlies and Chairman's Report */
.admin-tasks-section{display:block}
.admin-tasks-section[hidden]{display:none}
.committee-task-portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 28px}
.committee-task-portfolio{min-width:0;border:1px solid var(--border-strong);border-radius:18px;padding:16px;background:color-mix(in srgb,var(--surface) 92%,transparent);display:flex;flex-direction:column;gap:12px}
.committee-task-portfolio.is-primary{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 8%,var(--surface))}
.committee-task-portfolio-heading{display:flex;flex-direction:column;gap:4px}
.committee-task-portfolio-heading span,.chairman-task-workspace-heading span,.committee-task-editor-heading span,.chairman-task-document-card>div>span{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:800}
.committee-task-portfolio-heading strong{font-family:var(--font-display);font-size:1.1rem}
.committee-task-portfolio p{margin:0;color:var(--muted);line-height:1.5;flex:1}
.committee-task-portfolio button,.committee-task-editor-toolbar button,.chairman-task-workspace-heading button,.chairman-task-document-card button{min-height:44px;border:1px solid var(--border-strong);border-radius:12px;padding:10px 13px;background:var(--surface-raised);color:var(--cream);font:inherit;font-weight:750;cursor:pointer}
.committee-task-portfolio.is-primary>button,.chairman-task-document-card button{background:var(--gold);color:#17110d;border-color:var(--gold)}
.committee-task-shortcuts{display:flex;flex-wrap:wrap;gap:8px}
.committee-task-shortcuts button{min-height:38px;padding:8px 11px;font-size:.88rem;flex:1 1 auto}
.chairman-task-workspace{border-top:1px solid var(--border-strong);padding-top:24px;scroll-margin-top:18px}
.chairman-task-workspace-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.chairman-task-workspace-heading h4,.committee-task-editor-heading h4{font-family:var(--font-display);font-size:1.5rem;margin:4px 0 5px}
.chairman-task-workspace-heading p,.committee-task-editor-heading p{margin:0;color:var(--muted);max-width:760px;line-height:1.5}
.chairman-task-rally-selector{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:14px;align-items:end;margin:18px 0}
.chairman-task-rally-selector label,.committee-task-editor-toolbar label,.committee-task-field{display:flex;flex-direction:column;gap:6px;font-weight:750}
.chairman-task-rally-selector select,.committee-task-editor-toolbar select,.committee-task-field input,.committee-task-field select,.committee-task-field textarea{width:100%;min-width:0;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface-raised);color:var(--cream);font:inherit;padding:11px 12px}
.committee-task-field textarea{min-height:96px;resize:vertical;line-height:1.45}
.committee-task-field input[type="number"]{appearance:textfield}
.chairman-task-source{border:1px dashed var(--border-strong);border-radius:12px;padding:12px;color:var(--muted);line-height:1.45}
.chairman-task-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}
.chairman-task-document-card{border:1px solid var(--border-strong);border-radius:18px;padding:17px;background:var(--surface);display:flex;flex-direction:column;gap:16px}
.chairman-task-document-card h5{font-family:var(--font-display);font-size:1.25rem;margin:4px 0}
.chairman-task-document-card p{margin:0;color:var(--muted);line-height:1.45}
.chairman-task-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border-strong);padding-top:12px}
.chairman-task-card-footer strong{font-size:.85rem;color:var(--gold)}
.committee-task-editor{border:1px solid var(--gold);border-radius:20px;padding:18px;background:var(--surface);margin-top:18px}
.committee-task-editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:15px;border-bottom:1px solid var(--border-strong)}
.committee-task-editor-heading>button{min-width:80px;min-height:42px;border:1px solid var(--border-strong);border-radius:12px;background:transparent;color:var(--cream);font:inherit;font-weight:750}
.committee-task-editor-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:14px 0;border-bottom:1px solid var(--border-strong)}
.committee-task-editor-toolbar label{min-width:180px}
.committee-task-editor-toolbar button{min-height:44px}
.committee-task-form-sections{display:grid;gap:16px;padding:17px 0}
.committee-task-form-section{border:1px solid var(--border-strong);border-radius:16px;padding:15px;background:color-mix(in srgb,var(--surface-raised) 70%,transparent)}
.committee-task-form-section h5{font-family:var(--font-display);font-size:1.15rem;margin:0 0 12px}
.committee-task-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.committee-task-field.full{grid-column:1/-1}
.committee-task-field span{display:flex;align-items:center;gap:7px}
.committee-task-field small{font-weight:500;color:var(--muted)}
.committee-task-field.is-autofilled span::after{content:"Auto";font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;padding:2px 6px;border:1px solid var(--border-strong);border-radius:999px;color:var(--muted)}
.committee-task-form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}
.committee-task-form-actions button{min-height:46px}
@media(max-width:980px){.committee-task-portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.committee-task-portfolio-grid,.chairman-task-document-grid,.committee-task-field-grid,.chairman-task-rally-selector{grid-template-columns:1fr}.chairman-task-workspace-heading,.committee-task-editor-heading{flex-direction:column}.chairman-task-workspace-heading button,.committee-task-editor-heading>button{width:100%}.committee-task-editor-toolbar{align-items:stretch}.committee-task-editor-toolbar>*{width:100%}.committee-task-form-actions{flex-direction:column-reverse}.committee-task-form-actions button{width:100%}}
@media print{.committee-task-portfolio-grid,.chairman-task-rally-selector,.chairman-task-document-grid,.committee-task-editor-toolbar,.committee-task-form-actions,.admin-section-nav,.admin-welcome,.screen-header,.tabbar{display:none!important}.committee-task-editor{border:0;padding:0}.committee-task-form-section{break-inside:avoid;background:#fff;color:#000;border-color:#aaa}.committee-task-field input,.committee-task-field textarea,.committee-task-field select{color:#000;background:#fff;border-color:#aaa}}

/* v55.8.1 print guidance: browser headers/footers are controlled by the print dialog. */
.committee-task-print-help{margin:.1rem 0 1rem;color:var(--text-muted,#b7c2b9);font-size:.95rem;line-height:1.5}
.committee-task-print-help strong{color:var(--text,#fff)}

/* v55.8.1 secure Apps Script Chairman report upload */
.committee-task-drive-panel{margin:0 0 18px;border:1px solid var(--border-strong);border-radius:18px;padding:16px;background:color-mix(in srgb,var(--surface-raised) 78%,transparent);display:grid;gap:14px}
.committee-task-drive-panel[hidden]{display:none}
.committee-task-drive-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.committee-task-drive-heading span{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:800}
.committee-task-drive-heading h5{font-family:var(--font-display);font-size:1.25rem;margin:4px 0 5px}
.committee-task-drive-heading p{margin:0;color:var(--muted);line-height:1.5;max-width:760px}
.committee-task-drive-heading a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border:1px solid var(--gold);border-radius:12px;color:var(--gold);font-weight:800;text-decoration:none;white-space:nowrap}
.committee-task-drive-setup{border:1px solid var(--border-strong);border-radius:14px;padding:0 13px;background:var(--surface)}
.committee-task-drive-setup summary{cursor:pointer;padding:12px 0;font-weight:800;color:var(--cream)}
.committee-task-drive-setup>p{margin:0 0 12px;color:var(--muted);line-height:1.5}
.committee-task-drive-credentials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.committee-task-drive-credentials label,.committee-task-drive-filename{display:flex;flex-direction:column;gap:6px;font-weight:750}
.committee-task-drive-credentials input,.committee-task-drive-filename input{width:100%;min-width:0;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface-raised);color:var(--cream);font:inherit;padding:11px 12px}
.committee-task-drive-setup-actions{display:flex;justify-content:flex-end;padding:12px 0}
.committee-task-drive-setup-actions button,.committee-task-drive-actions button{min-height:44px;border:1px solid var(--border-strong);border-radius:12px;padding:10px 13px;background:var(--surface-raised);color:var(--cream);font:inherit;font-weight:800;cursor:pointer}
.committee-task-drive-grid{display:grid;grid-template-columns:minmax(260px,1.2fr) minmax(240px,.8fr);gap:12px;align-items:stretch}
.committee-task-drive-destination{border:1px solid var(--border-strong);border-radius:12px;padding:10px 12px;background:var(--surface);display:flex;flex-direction:column;gap:4px}
.committee-task-drive-destination>span{font-weight:750}
.committee-task-drive-destination strong{color:var(--gold);overflow-wrap:anywhere}
.committee-task-drive-destination small{color:var(--muted);line-height:1.4}
.committee-task-drive-actions{display:flex;flex-wrap:wrap;gap:10px}
.committee-task-drive-actions button{flex:1 1 210px}
.committee-task-drive-actions .admin-primary-btn{background:var(--gold);border-color:var(--gold);color:#17110d}
.committee-task-drive-actions button:disabled{opacity:.55;cursor:not-allowed}
.committee-task-drive-status{min-height:24px;color:var(--muted);line-height:1.45}
.committee-task-drive-status.success{color:#b7efc5}
.committee-task-drive-status.error{color:#ffb3ad}
.committee-task-drive-history{display:grid;gap:8px}
.committee-task-drive-history h6{font-size:.78rem;text-transform:uppercase;letter-spacing:.09em;margin:0;color:var(--muted)}
.committee-task-drive-history-list{display:grid;gap:7px}
.committee-task-drive-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border-top:1px solid var(--border-strong);padding-top:8px}
.committee-task-drive-history-item a{color:var(--cream);font-weight:750;overflow-wrap:anywhere}
.committee-task-drive-history-item span{color:var(--muted);font-size:.86rem;text-align:right}
@media(max-width:860px){.committee-task-drive-credentials{grid-template-columns:1fr}.committee-task-drive-grid{grid-template-columns:1fr}}
@media(max-width:700px){.committee-task-drive-heading{flex-direction:column}.committee-task-drive-heading a{width:100%}.committee-task-drive-actions{flex-direction:column}.committee-task-drive-actions button{width:100%;flex-basis:auto}.committee-task-drive-history-item{grid-template-columns:1fr}.committee-task-drive-history-item span{text-align:left}}
@media print{.committee-task-drive-panel{display:none!important}}
