/* Approved VC-01–VC-14. Console presentation only; authored/print/map content excluded. */
:root{--vc-surface:#fff;--vc-soft:#f5f8f7;--vc-text:#15333c;--vc-muted:#4b626b;--vc-border:#cedad6;--vc-hover:#edf5f1;--vc-selected:#dceee6}
html[data-command-theme="dark"]{--vc-surface:#19262e;--vc-soft:#263c47;--vc-text:#e3edf1;--vc-muted:#b2c4cd;--vc-border:#465b66;--vc-hover:#253e48;--vc-selected:#245346}
body .console #content{min-width:0}
body .console #content :is(.panel,.uw-panel){padding:20px;margin-bottom:24px;min-width:0}
body .console #content .personnel-resource-layout{padding:0;border:0;background:transparent}
body .console #content :is(.uw-summary-grid,[data-personnel-counts],.aar-stats){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(144px,1fr));gap:12px!important;margin:16px 0}
body .console #content :is(.uw-summary-card,[data-personnel-counts]>.panel,.aar-stats>.stat){box-sizing:border-box;min-height:104px!important;min-width:0!important;margin:0!important;padding:12px 16px!important;border:1px solid var(--vc-border);border-radius:8px;display:flex;flex-direction:column;gap:8px;background:var(--vc-surface);color:var(--vc-text)}
body .console #content :is(.uw-summary-card>span,.visual-count-label,.aar-stats>.stat>label){font-size:13px!important;line-height:18px!important;min-height:0;text-transform:none;font-weight:600;margin:0;color:var(--vc-muted)}
body .console #content :is(.uw-summary-card>strong,.visual-count-value,.aar-stats>.stat>strong){font-size:28px!important;line-height:34px!important;font-variant-numeric:tabular-nums;color:var(--vc-text)}
body .console #content .visual-count-prompt{font-size:14px!important;line-height:20px!important;color:var(--vc-muted);font-weight:400}
body .console #content :is(.uw-filters,.personnel-filters,.activity-filters,.aar-filters){display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:12px;max-width:none;margin:16px 0}
body .console #content :is(.uw-field,.personnel-filter,.visual-field){display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;margin:0!important;font-size:13px!important;line-height:18px;font-weight:600;flex:1 1 180px}
body .console #content :is(.uw-field,.personnel-filter,.visual-field)>:is(input,select){width:100%!important;min-width:0!important;max-width:100%;margin:0!important;height:auto;min-height:40px;box-sizing:border-box}
body .console #content .uw-field:has(input[type=search]){min-width:min(280px,100%)!important}
body .console #content .uw-filters>label:has(input[type=checkbox]){display:flex;flex-direction:row;align-items:center;gap:8px}
body .console #content :is(.toolbar,.uw-actions,.rl-table-tools,.actions){gap:8px;align-items:center;flex-wrap:wrap}
body .console #content :is(.toolbar,.uw-actions,.rl-table-tools,.actions) button:not(.rl-column-sort),body .console #content .uw-menu>summary{box-sizing:border-box;min-height:40px;padding:9px 12px;font-size:13px;line-height:20px}
body .console #content .uw-actions{margin:16px 0;padding-bottom:16px}
body .console #content .uw-menu{position:relative}
body .console #content .uw-menu>summary{cursor:pointer;list-style:none;border:1px solid var(--vc-border);border-radius:8px;background:var(--vc-soft);color:var(--vc-text)}
body .console #content .uw-menu-items{max-width:min(320px,calc(100vw - 64px));max-height:min(420px,65dvh);overflow:auto;background:var(--vc-surface);color:var(--vc-text);border-color:var(--vc-border)}
body .console #content .uw-menu-items button{color:var(--vc-text);background:var(--vc-soft);border-color:var(--vc-border)}
body .console #content :is(.resources-views,.aar-tabs){display:flex;flex-direction:row!important;flex-wrap:wrap;align-items:stretch;gap:8px;margin:16px 0}
body .console #content :is(.resources-views,.aar-tabs)>button{width:auto!important;flex:0 1 auto!important;min-height:40px;padding:9px 14px;box-sizing:border-box}
body .console #content .rl-managed-table{min-width:100%!important;border-collapse:collapse;background:var(--vc-surface)}
body .console #content .rl-managed-table :is(th,td){padding:10px 12px!important;line-height:20px;vertical-align:top;border-bottom:1px solid var(--vc-border)}
body .console #content .rl-managed-table th{font-size:12px!important;line-height:18px;background:var(--vc-soft);padding-right:18px!important}
body .console #content .rl-managed-table td{font-size:14px!important;min-height:44px}
body .console #content .rl-managed-table .rl-column-sort{display:block!important;min-height:36px;line-height:18px!important}
body .console #content .rl-managed-table .rl-column-filter{min-height:34px;margin-top:6px!important}
body .console #content .rl-managed-table .rl-numeric{text-align:right;font-variant-numeric:tabular-nums}
body .console #content .rl-managed-table .rl-numeric .rl-column-sort{text-align:right}
body .console #content .rl-managed-table tbody tr:nth-child(even){background:var(--vc-soft)}
body .console #content .rl-managed-table tbody tr:hover{background:var(--vc-hover)}
body .console #content .rl-managed-table tr.rl-row-selected{background:var(--vc-selected)!important}
body .console #content .rl-managed-table td button:not(.rl-column-sort){min-height:32px!important;padding:5px 8px!important;white-space:normal}
body .console #content .rl-scroll-hint{box-sizing:border-box;min-height:24px;line-height:24px;font-size:12px;color:var(--vc-muted)}
body .console #content :is(.rl-scroll-hint,.rl-resource-top-scroll)[hidden]{display:none!important}
body .console #content .rl-table-scroll{max-width:100%;min-width:0;overscroll-behavior-x:contain}
body .console #content :is([data-feedback="empty"],[data-feedback="loading"],tr[data-rl-empty="true"]){background:var(--vc-soft)!important;color:var(--vc-text)!important;border-color:var(--vc-border)!important}
html[data-command-theme="dark"] body #systemSaving{background:var(--vc-soft)!important;color:var(--vc-text)!important;border-color:var(--vc-border)!important}
body dialog{box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}
body #dialog[open]{max-height:calc(100dvh - 32px)}
body #dialogForm{max-height:calc(100dvh - 80px)}
body #dialogForm>.dialog-actions{background:var(--vc-surface)}
body .dialog-head button{min-width:44px;min-height:44px}
@media(max-width:760px){
 body .console #content :is(.panel,.uw-panel){padding:16px}
 body .console #content .personnel-resource-layout{padding:0}
 body .console #content :is(.uw-summary-grid,[data-personnel-counts],.aar-stats){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .console #content :is(.uw-filters,.personnel-filters,.activity-filters,.aar-filters){grid-template-columns:minmax(0,1fr)!important}
 body .console #content .visual-field{flex-basis:100%}
 body .console #content :is(.uw-field,.personnel-filter,.visual-field)>:is(input,select){min-height:44px}
 body .console #content :is(.toolbar,.uw-actions,.rl-table-tools,.actions) button:not(.rl-column-sort),body .console #content .uw-menu>summary,body .console #content .rl-managed-table td button:not(.rl-column-sort),body .console #content .rl-column-filter{min-height:44px!important}
 body .console #content :is(.resources-views,.aar-tabs){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body .console #content :is(.resources-views,.aar-tabs)>button{width:100%!important;min-height:44px;white-space:normal}
 body .console #content .uw-menu-items{position:absolute;left:0;right:auto;min-width:min(210px,calc(100vw - 64px))}
 body .console #content .uw-menu{position:static}
 body .console #content :is(.uw-actions,.rl-table-tools,.visual-actions){position:relative}
 body #dialogForm{max-height:calc(100dvh - 72px)}
}
@media(max-width:339px){body .console #content :is(.uw-summary-grid,[data-personnel-counts],.aar-stats){grid-template-columns:minmax(0,1fr)!important}}

/* Numeric BCM summaries share anatomy; descriptive overview cards remain taller. */
body .console #content .bcm-stat{box-sizing:border-box;min-height:104px;padding:12px 16px;border-radius:8px;gap:8px}
body .console #content .bcm-stat strong{font-size:28px;line-height:34px;font-variant-numeric:tabular-nums;order:2}
body .console #content .bcm-stat span{font-size:13px;line-height:18px;order:1}
body .console #content .bcm-toolbar{gap:12px;align-items:end}
body .console #content :is(.bcm-toolbar,.submission-toolbar) button{min-height:40px;padding:9px 12px}
body .console #content :is(.fl-table,.fl-folder table) :is(th,td){padding:10px 12px;line-height:20px}
body .console #content :is(.fl-table,.fl-folder table) td{font-size:14px}
@media(max-width:760px){body .console #content .bcm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}body .console #content :is(.bcm-toolbar,.submission-toolbar) button{min-height:44px}}

/* VC acceptance follow-up: lifecycle filters share the board field/action structure. */
body .console #content .visual-lifecycle-filters{display:grid;grid-template-columns:minmax(280px,2fr) minmax(180px,1fr);gap:12px;align-items:end;margin:16px 0}
body .console #content .visual-lifecycle-filters>label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;margin:0!important;min-width:0}
body .console #content .visual-lifecycle-filters>label>input,body .console #content .visual-lifecycle-filters>label>select{width:100%!important;max-width:100%;min-width:0!important;margin:0!important}
body .console #content .visual-lifecycle-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
@media(max-width:760px){body .console #content .visual-lifecycle-filters{grid-template-columns:minmax(0,1fr)}body .console #content .visual-lifecycle-filters>label>input,body .console #content .visual-lifecycle-filters>label>select{min-height:44px!important}}

/* Search toolbar alignment: labels sit above controls; controls share a bottom edge.
   Prevent inherited .toolbar input flex:1 from stretching inside vertical field wrappers. */
body .console #content .toolbar:has(> :is(.visual-field,.uw-field,.personnel-filter)){align-items:end}
body .console #content :is(.visual-field,.uw-field,.personnel-filter)>:is(input:not([type=checkbox]):not([type=radio]),select:not([multiple])){flex:0 0 auto;height:40px;min-height:40px}
@media(max-width:760px){body .console #content :is(.visual-field,.uw-field,.personnel-filter)>:is(input:not([type=checkbox]):not([type=radio]),select:not([multiple])){height:44px;min-height:44px}}

/* Production browser acceptance follow-up, November 16, 2026.
   A nested vertical field must size to its contents, not inherit a 180px flex basis.
   Personnel search actions participate in the filter grid as separate controls. */
body .console #content .toolbar:has(input[aria-label="Search tracked resources"]) .visual-field>.visual-field{flex:0 0 auto}
body .console #content .personnel-filters>.toolbar{display:contents}
body .console #content .personnel-filters>.toolbar>button{align-self:end;margin:0}

/* Personnel database page: shared control spacing and theme surfaces. */
body .console #content .personnel-panel:has(table[data-database-page="true"])>.toolbar{display:flex;gap:8px;align-items:end;margin:16px 0}
body .console #content .personnel-panel:has(table[data-database-page="true"])>.toolbar>label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;max-width:100%}
body .console #content .personnel-panel:has(table[data-database-page="true"])>.toolbar>label>select{width:100%;max-width:100%;margin:0;min-height:40px}
body .console #content .personnel-panel:has(table[data-database-page="true"])>[data-selection]{display:inline-block;margin:0 12px 16px 0}
body .console #content .personnel-panel:has(table[data-database-page="true"])>[data-clear]{margin:0 0 16px;min-height:40px}
body .console #content .personnel-panel:has(table[data-database-page="true"])>.tablewrap{display:flex;flex-direction:column;max-width:100%;background:var(--vc-surface);border-color:var(--vc-border)}
body .console #content .personnel-panel:has(table[data-database-page="true"])>.tablewrap>.rl-table-tools{order:-2}
body .console #content .personnel-panel:has(table[data-database-page="true"])>.tablewrap>.rl-scroll-hint{order:-1;background:var(--vc-surface);padding:0 12px}
body .console #content .personnel-panel:has(table[data-database-page="true"]) .rl-resource-top-scroll{flex-shrink:0;background:var(--vc-surface)}
@media(max-width:760px){body .console #content .personnel-panel:has(table[data-database-page="true"])>.toolbar>label>select,body .console #content .personnel-panel:has(table[data-database-page="true"])>[data-clear]{min-height:44px}}
