/* Document and vendor screens use the shared STQ controls. */
.library-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;padding:20px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f8fafb}.library-filters .field{min-width:150px;flex:1;margin:0}.library-filters .field input,.library-filters .field select{width:100%}.library-filters .inline-check{font-size:12px;max-width:180px;min-height:42px;line-height:1.5}.library-filters .btn{flex:none}.document-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:190px}.attachment-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}.attachment-row>div:first-child{min-width:0;overflow-wrap:anywhere}.attachment-row .document-actions{min-width:140px;justify-content:flex-end;max-width:50%}.checklist-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;background:#f5f7fa;border-radius:8px;margin-bottom:8px;font-size:14px}.category-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:1px solid var(--line);padding:16px;border-radius:8px}.category-checklist label{font-size:12px!important;align-items:flex-start;margin:0!important;line-height:1.5}.redesigned fieldset.field{border:0;padding:0}.redesigned fieldset legend{font-size:14px;margin-bottom:10px}.upload-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;margin-top:8px;font-size:13px;overflow-wrap:anywhere}.upload-item progress{grid-column:1/-1;width:100%;accent-color:var(--teal)}.upload-item span{color:var(--sub);text-align:right}.redesigned #advanced-search-form.library-filters{padding:0 0 20px;background:white;border-top:0}.redesigned #advanced-search-form .field{flex-basis:28%}.redesigned #server-search-results{max-height:42vh;overflow:auto}.redesigned #vendor-checklist{margin:12px 0 24px}.redesigned #record-documents{margin-bottom:24px}.redesigned #record-documents .hint{line-height:1.6}
.today-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.today-filters,.report-filters{border:1px solid var(--line);border-radius:12px;margin-bottom:24px}.today-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px}.today-layout>section,.today-layout>aside{min-width:0}.today-review{border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:18px;font-size:14px;line-height:1.6}.admin-scope{display:flex;gap:16px;padding:20px;background:#e8f6f2;border-radius:12px;margin-bottom:24px}.admin-scope>svg{width:28px;height:28px;color:var(--teal);flex:none}.admin-scope b{font-size:20px}.admin-scope p{font-size:13px;line-height:1.7;color:var(--sub);margin-top:6px}.admin-shortcuts,.report-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}.admin-attention{display:flex;align-items:center;text-align:left;gap:18px;justify-content:space-between;padding:18px 0;width:100%;background:white;border:0;border-bottom:1px solid var(--line);font-size:14px}.admin-attention span{flex:1}.admin-attention b{font-size:24px;color:var(--teal)}.admin-attention svg{width:20px;height:20px;color:var(--sub)}.report-scope{font-size:13px;line-height:1.8;padding:18px;background:#f5f7fa;border-radius:8px;margin-bottom:22px;overflow-wrap:anywhere}.report-scope small{color:var(--sub)}.saved-report-register{margin:24px 0}.saved-report-register>summary{font-size:15px;font-weight:600;cursor:pointer;margin-bottom:16px}.report-filters .field{flex-basis:18%}
@media(max-width:1000px){.today-layout{grid-template-columns:minmax(0,1fr)}.today-layout>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:700px){.library-filters{padding:16px;gap:12px}.library-filters .field{min-width:100%;width:100%}.library-filters .inline-check{max-width:none;width:100%}.attachment-row{display:block}.attachment-row .document-actions{margin-top:12px;max-width:none;justify-content:flex-start}.category-checklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.upload-item{grid-template-columns:1fr}.upload-item span{text-align:left}.checklist-item{align-items:flex-start;flex-wrap:wrap}.redesigned #advanced-search-form .field{flex-basis:100%}.today-layout>aside{display:block}.today-metrics{grid-template-columns:minmax(0,1fr)}.today-filters .field,.report-filters .field{flex-basis:100%}.admin-shortcuts .btn{flex:1;min-width:140px}}
@media print{.report-filters,.report-actions,.saved-report-register,.today-filters,.admin-shortcuts{display:none!important}.report-scope{background:white;border:1px solid #ccc}.redesigned .table-scroll{overflow:visible}.report-scope small{color:#333}}
@media(min-width:1001px) and (max-height:850px){.redesigned .brand{padding:18px 20px 22px}.redesigned .brand-logo{width:112px;height:112px;margin-bottom:12px}.redesigned .brand-title{font-size:20px}.redesigned .brand-sub{font-size:11px}.redesigned .nav{margin-bottom:6px;min-height:48px}.redesigned .sidebar-bottom{padding:12px 20px}}
/* Audit refinements: preserve the existing brand and give each action a clear home. */
.report-presets{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.review-filters{border:1px solid var(--line);border-radius:12px;margin-bottom:24px}.redesigned .role-work-area b{font-size:16px;color:var(--ink)}.redesigned .role-work-area small{font-size:12px;color:var(--sub);line-height:1.6}.redesigned .filter-select{min-height:42px}.redesigned .modal:focus{outline:none}.redesigned summary:focus-visible,.redesigned a:focus-visible{outline:3px solid #8fcefb;outline-offset:3px}.redesigned .nav-wrap{min-height:0;overflow-y:auto}.redesigned .admin-attention:focus-visible{outline:3px solid #8fcefb;outline-offset:-3px}
@media(max-width:1000px){.redesigned .mobile-toggle{width:44px;height:44px;align-items:center;justify-content:center;padding:10px}.redesigned .mobile-toggle svg{width:24px;height:24px;flex:none}}
@media(max-width:700px){.redesigned .today-metrics{grid-template-columns:minmax(0,1fr)}.redesigned .metric-grid{gap:12px}.redesigned .today-metrics .metric-card{padding:16px 18px}.redesigned .today-metrics .metric-value{margin:8px 0}.report-presets .btn{min-height:44px}.redesigned .library-filters .btn{min-height:44px}}
@media(prefers-reduced-motion:reduce){.redesigned *, .redesigned *::before,.redesigned *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.report-presets,.review-filters{display:none!important}}

.global-search .search-submit{min-height:36px;padding:6px 10px;border:0;border-radius:6px;background:var(--tealLight);color:#086b5d;font-size:12px;font-weight:600}.global-search .search-submit:focus-visible{outline:3px solid #8fcefb;outline-offset:2px}@media(max-width:700px){.redesigned .global-search{height:46px}.global-search .search-submit{min-height:42px}.redesigned .today-metrics{grid-template-columns:minmax(0,1fr)}}

@media(max-width:700px){.redesigned .today-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.redesigned .today-metrics .metric-card{padding:12px 10px;min-height:112px}.redesigned .today-metrics .metric-label{font-size:12px;line-height:1.4;min-height:36px}.redesigned .today-metrics .metric-value{font-size:24px;margin:8px 0 0}.redesigned .today-metrics .metric-icon,.redesigned .today-metrics .metric-meta{display:none}}
/* Guided setup and daily work follow-up. */
.setup-checklist{border:1px solid #d7e7e2;border-radius:12px;background:#f7fbf9;margin-bottom:24px}.setup-checklist>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;cursor:pointer;list-style:none}.setup-checklist>summary::-webkit-details-marker{display:none}.setup-checklist>summary b{font-size:17px}.setup-checklist>summary small{display:block;margin-top:6px;color:var(--sub);font-size:13px}.setup-content{padding:0 20px 20px}.setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.setup-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;background:white;border:1px solid var(--line);border-radius:8px}.setup-item b,.setup-project b,.setup-reviewer b{font-size:14px}.setup-item p,.setup-project p,.setup-reviewer p{font-size:12px;line-height:1.6;color:var(--sub);margin:6px 0 0}.setup-item .btn,.setup-project .btn,.setup-reviewer .btn{flex:none}.setup-project,.setup-reviewer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.setup-project:last-child{border-bottom:0}.setup-reviewer{background:#fff8e9;border:1px solid #efdfb6;border-radius:8px;padding:16px;margin-bottom:12px}.today-filter-panel{border:1px solid var(--line);border-radius:12px;margin-bottom:22px;background:#f8fafb}.today-filter-panel>summary{padding:16px 20px;cursor:pointer;font-weight:600;font-size:14px}.today-filter-panel>summary span{font-weight:400;color:var(--sub);margin-left:12px;font-size:13px;line-height:1.6}.today-filter-panel .today-filters{margin:0;border:0;border-radius:0 0 12px 12px;border-top:1px solid var(--line)}.pipeline-board.pipeline-no-records{display:block;overflow:visible;min-height:0}.pipeline-no-records .empty-state{max-width:680px;margin:auto}.sidebar-close{border:1px solid #597585;background:#19374b;color:white;border-radius:6px;min-height:44px;margin:12px 12px 0;font-size:14px}.source-record-note{font-size:12px;line-height:1.7;border:1px solid var(--line);padding:12px;border-radius:8px;background:#f7faf9;margin-bottom:18px}
@media(max-width:700px){.setup-grid{grid-template-columns:minmax(0,1fr)}.setup-checklist>summary{align-items:flex-start;padding:16px}.setup-checklist>summary b{font-size:16px}.setup-content{padding:0 16px 16px}.setup-item,.setup-project,.setup-reviewer{align-items:flex-start;flex-wrap:wrap}.setup-item .btn{min-height:44px}.today-filter-panel>summary{padding:14px 16px}.today-filter-panel>summary span{display:block;margin:8px 0 0}.setup-reviewer{gap:12px}.redesigned .sidebar.open .brand{padding-top:12px;padding-bottom:18px}.redesigned .sidebar.open .brand-logo{width:96px;height:96px;margin-bottom:12px}.redesigned .sidebar.open .brand-title{font-size:19px}}

.source-controls-intro{background:#f5f9f7;border:1px solid #dfe9e3;padding:16px 20px;border-radius:10px;margin-bottom:18px;font-size:14px;line-height:1.7;color:var(--sub)}

/* Person assignment editor */
.person-assignment-set {border:1px solid var(--line,#dce5ed);border-radius:12px;padding:16px;min-width:0;margin:6px 0}
.person-assignment-set legend {font-weight:700;padding:0 6px}
.person-assignment-set .inline-check {display:flex;align-items:flex-start;gap:9px;margin:10px 0;line-height:1.45;cursor:pointer}
.person-assignment-set input[type=checkbox] {width:18px;height:18px;flex-shrink:0;margin-top:2px;accent-color:#008c7b}
.person-project-option {display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,230px);gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #e4ebf1}
.person-project-option:last-child {border-bottom:0}
.person-project-option select {width:100%}
.person-location-options {display:flex;flex-wrap:wrap;gap:8px 20px}
@media(max-width:600px){.person-project-option {grid-template-columns:1fr;gap:0}.person-assignment-set {padding:12px}}

/* Grouped operational navigation, matching the live portal's information order. */
.redesigned .brand {display:flex;align-items:center;gap:10px;padding:18px 14px;flex-shrink:0}
.redesigned .brand .brand-logo {width:56px;height:56px;margin:0;flex-shrink:0}
.redesigned .brand .brand-title {font-size:15px;margin:0;line-height:1.3}
.redesigned .brand .brand-sub {font-size:10px;margin-top:4px}
.redesigned .nav-wrap {flex:1;min-height:0;padding:0 10px 18px;overflow-y:auto}
.sidebar-nav-group {margin:0 0 18px}
.sidebar-nav-group h2 {font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#99b4c4;margin:0;padding:14px 10px 7px;font-weight:700}
.redesigned .sidebar-nav-group .nav {min-height:36px;height:auto;margin:2px 0;padding:8px 10px;gap:10px;font-size:12px;line-height:1.35}
.redesigned .sidebar-nav-group .nav svg {width:17px;height:17px;flex-shrink:0}
.redesigned .sidebar-bottom {flex-shrink:0;padding:12px 16px}
.report-executive {margin-bottom:22px}
.report-executive .metric-grid {margin-top:16px}
@media(max-width:600px){.report-executive .panel-head {align-items:flex-start;flex-direction:column;gap:12px}}

.report-executive .metric-grid {grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.report-executive .metric-value {font-size:clamp(20px,2vw,28px);overflow-wrap:anywhere}
