#weekly-workspace { max-width:1640px; padding:30px 24px; margin:auto; color:#183325; }
.weekly-toolbar,.weekly-result-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; margin-bottom:24px; }
.weekly-toolbar h1 { font-size:30px; margin:5px 0 10px; }
.weekly-eyebrow { color:#7a5d12; font-size:12px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; }
#weekly-workspace button { cursor:pointer; }
#weekly-workspace button:disabled { opacity:.55; cursor:default; }
.weekly-toolbar button,.weekly-history button,.weekly-slot button,.weekly-result-toolbar button { border:1px solid #c9d4cd; border-radius:7px; padding:9px 13px; background:white; color:#153b24; font:inherit; }
.weekly-history,.weekly-fields,.weekly-start-row { display:flex; align-items:end; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.weekly-history label,.weekly-fields label,.weekly-slot label { display:grid; gap:7px; font-size:13px; font-weight:600; }
#weekly-workspace input,#weekly-workspace select,#weekly-workspace textarea { max-width:100%; min-width:0; border:1px solid #c9d4cd; border-radius:6px; padding:10px; font:inherit; background:white; color:#183325; }
#weekly-workspace input:disabled { background:#eef3ef; }
#weekly-error { background:#fff0ee; color:#8e1913; padding:15px; border:1px solid #e9bab6; border-radius:8px; margin:16px 0; }
.weekly-help { color:#536258; font-size:14px; line-height:1.6; margin:15px 0 22px; }
.weekly-slots { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.weekly-slot { border:1px solid #d4dfd7; background:white; border-radius:12px; padding:18px; min-width:0; }
.weekly-slot legend { font-size:18px; font-weight:700; padding:0 8px; }
.weekly-slot label { margin:12px 0; }
.weekly-slot input[type=file] { font-size:12px!important; width:100%; }
.weekly-slot ol { padding-left:20px; font-size:12px; }
.weekly-slot li { margin:10px 0; overflow-wrap:anywhere; }
.weekly-slot li span { display:block; margin-bottom:5px; }
.weekly-slot li button { padding:3px 9px; }
.weekly-slot details { font-size:12px; margin-top:16px; }
.weekly-class-status { min-height:44px; margin:16px 0 8px; font-size:13px; }
.weekly-slot progress { width:100%; accent-color:#14532d; }
.weekly-slot a { font-size:12px; display:inline-block; margin:12px 0; color:#14532d; }
.weekly-slot button[data-retry-job],.weekly-slot button[data-upload-slot] { margin-top:8px; font-size:12px; }
.weekly-primary { background:#063f20; color:white; border:0; border-radius:8px; padding:14px 22px; font:600 15px Inter,sans-serif; }
.weekly-preview { overflow:auto; background:#fff; border:1px solid #d4dfd7; }
.weekly-preview .weekly-sheet { width:100%; min-width:1250px; min-height:1000px; }
.weekly-sheet .pma-focus-row { grid-template-columns:1fr 65px; }
.weekly-sheet .pma-focus-row b small { font-size:10px; font-weight:400; }
.weekly-ring { position:relative; background:none; }
.weekly-ring svg { position:absolute; inset:0; width:100%; height:100%; }
.weekly-ring strong { z-index:1; }
.weekly-sheet .pma-focus-cards small { font-size:12px; }
.weekly-sheet .pma-focus-header .pma-logo { margin:0; width:170px; }
.weekly-sheet .pma-focus-header h1 { font-size:36px; }
.weekly-sheet .pma-focus-header p { font-size:20px; }
.weekly-sheet .pma-focus-footer small { font-size:14px; }
.weekly-evidence { padding:20px; background:white; border:1px solid #d4dfd7; margin:20px 0; }
.weekly-evidence summary { font-weight:700; cursor:pointer; }
.weekly-evidence section,.weekly-detail-body section { padding:15px 0; border-bottom:1px solid #d4dfd7; overflow-wrap:anywhere; }
.weekly-evidence h2,.weekly-detail-body h2 { font-size:18px; }
.weekly-evidence h3,.weekly-detail-body h3 { font-size:14px; margin:8px 0; }
.weekly-evidence p,.weekly-detail-body p { white-space:pre-wrap; line-height:1.55; margin:8px 0; }
.weekly-export { width:1587px!important; }
.weekly-export .weekly-sheet { width:1587px!important; min-width:1587px; height:1123px!important; min-height:1123px; overflow:visible!important; }
.weekly-export .weekly-detail-body { flex:1; padding:20px 35px; min-height:0; }
.weekly-export .weekly-detail-body section { font:15px/1.5 Arial,sans-serif; }
@media(max-width:1100px){.weekly-slots{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){#weekly-workspace{padding:20px 12px;}.weekly-slots{grid-template-columns:1fr;}.weekly-fields{display:grid;}.weekly-result-toolbar button{margin-bottom:7px;}.topbar-nav{overflow-x:auto;}.weekly-primary{width:100%;}}

.weekly-export .weekly-sheet>header,.weekly-export .weekly-sheet>footer { flex-shrink:0; }

.weekly-sheet .pma-focus-header>div:nth-child(2) { flex:1; min-width:0; }
.weekly-sheet .pma-focus-meta { width:425px; flex:none; }
.weekly-sheet .pma-focus-incidents th:nth-child(1) { width:18%; }
.weekly-sheet .pma-focus-incidents th:nth-child(2) { width:17%; }
.weekly-sheet .pma-focus-incidents th:nth-child(3) { width:36%; }
.weekly-sheet .pma-focus-incidents th:nth-child(4) { width:12%; }
.weekly-sheet .pma-focus-incidents th:nth-child(5) { width:17%; }
.weekly-sheet .pma-focus-incidents td { font-size:10px; line-height:1.35; padding:8px 4px; }
.weekly-sheet .pma-focus-row { min-height:35px; }
.weekly-sheet .pma-focus-row button { padding:7px 8px; }
.weekly-sheet .pma-focus-card h2 { font-size:18px; }
.weekly-sheet .pma-focus-card-middle { gap:10px; }

/* Saved weekly report opened from the dashboard: just the report and its downloads. */
.weekly-snapshot #weekly-form, .weekly-snapshot .weekly-history, .weekly-snapshot #weekly-new { display: none; }
#weekly-export-status { flex-basis: 100%; margin: .5rem 0 0; font-size: .875rem; color: var(--muted, #555); }
#weekly-export-status:empty { display: none; }
#weekly-export-status.weekly-export-error { color: #b42318; font-weight: 600; }
