/* One source for the family proposal; embedded in all four pages by the builders. */
:root{--family-navy:#142b48;--family-ink:#20344c;--family-muted:#65758a;--family-line:#dce3eb;--family-card:14px;--family-panel:14px;--family-control:8px;--family-space-1:4px;--family-space-2:8px;--family-space-3:12px;--family-space-4:16px;--family-space-5:24px;--family-space-6:32px;--family-nav-radius:10px;--family-popover-radius:12px;--family-ease:cubic-bezier(.2,0,0,1);--shape-card:var(--family-card);--shape-panel:var(--family-panel);--shape-control:var(--family-control)}
*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
body{color:var(--family-ink);font-family:'Segoe UI Variable Text','Segoe UI',sans-serif;background:radial-gradient(ellipse at 85% 0%,#dce7f6 0,transparent 42%),radial-gradient(ellipse at 0% 65%,#e4ecee 0,transparent 48%),#f6f8fb}
.hub-nav{box-sizing:border-box;min-height:76px;display:flex;align-items:center;gap:30px;padding:0 34px;border-bottom:1px solid var(--family-line);background:#ffffffed}.hub-nav img{width:49px;height:49px;object-fit:contain}.hub-nav a,.hub-nav span{font-size:14px;color:#52647b;text-decoration:none;white-space:nowrap}.hub-nav a[aria-current]{color:var(--family-navy);font-weight:650;border-bottom:3px solid var(--family-navy);padding:27px 0 23px}.hub-nav small{margin-left:auto;color:var(--family-muted)}.hub-nav svg{width:21px;height:21px;vertical-align:middle;margin-right:7px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hub-body h1,.head-copy h1,.qa-family h1{font-size:32px;font-weight:650;letter-spacing:-.8px;line-height:1.2;color:var(--family-navy)}
.hub-panel h2,.app-card h2,.shell>main .panel-head h2,.shell>main .section-label,.shell>main .chart-head h2,.qa-family h2{font-size:21px;font-weight:650;line-height:1.3;letter-spacing:-.3px;color:var(--family-navy)}
.app-card,.hub-panel,.shell>main .panel,.shell>main .kpi,.shell>main .chart-panel,.shell>main .kpi-detail,.qa-family .panel,.qa-family .module-card{border:1px solid var(--family-line);border-radius:var(--family-card);box-shadow:none;background:#fff}
.app-card.primary{background:linear-gradient(145deg,#fff 45%,#e8f0fa)}
.app-card a,.shell>main .expand-button,.shell>main .chart-head button,.qa-family button:not(.tab),.qa-family input{border-radius:var(--family-control)}
.app-card a,.qa-family button.primary{background:var(--family-navy);border-color:var(--family-navy);color:#fff}
.qa-family{--page:#f6f8fb;--surface:#fff;--ink:#20344c;--muted:#65758a;--line:#dce3eb;--shadow:none}
.qa-family .shell{width:min(1480px,100%)}
.qa-family .header{margin-bottom:28px}
.qa-family .brand{color:var(--family-navy)}
.qa-family .preview,.family-note{padding:10px 20px;background:#eaf0f6;color:#51647c;border-bottom:1px solid var(--family-line);font-size:12px;line-height:1.6}
.family-note a{color:var(--family-navy)}
.qa-family button:focus-visible,.qa-family input:focus-visible{outline:3px solid #b75b20;outline-offset:3px}
@media(max-width:760px){.hub-nav{gap:18px;padding:0 18px;overflow:auto}.hub-nav small{display:none}.hub-body h1,.head-copy h1,.qa-family h1{font-size:27px}}

/* Shared interaction colours; semantic status badges retain their own meaning. */
.family-sort{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;padding:4px 0;cursor:pointer;text-align:left}
.family-sort-arrows{font-size:12px;color:#6d829b;flex-shrink:0}
.family-detail-scroll{overflow:auto;max-height:440px}
.family-detail-table{width:100%;min-width:1250px;border-collapse:collapse;font-size:13px}
.family-detail-table caption{text-align:left;padding:9px 12px;color:#65758a;font-size:12px}
.family-detail-table th{position:sticky;top:0;background:#f0f4f8;z-index:1;text-align:left;padding:8px 12px;border-bottom:1px solid #dce3eb}
.family-detail-table td{padding:11px 12px;vertical-align:top;border-bottom:1px solid #e5eaf0}
.family-detail-table td:first-child{font-weight:600;white-space:nowrap}
.family-detail-table td:nth-child(2){min-width:270px;max-width:430px}
.family-detail-table td:nth-child(3){white-space:nowrap;text-align:right}
.family-section-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;color:var(--family-navy)}
.shell>aside .filter-label,.shell>aside .client-filter-label{display:flex;align-items:center;justify-content:flex-start;gap:8px;color:var(--family-navy)}
.shell>aside .filter-label small,.shell>aside .client-filter-label small{margin-left:auto;font-weight:400}
.shell>aside .filter+.filter,.shell>aside .client-filter+.filter{border-top:1px solid var(--family-line);padding-top:18px}
.shell>main .kpi.family-icon-card{height:auto;min-height:94px;padding-top:11px;padding-bottom:11px}
.shell>main .kpi.family-icon-card::before{display:block;width:22px;height:3px;flex:0 0 3px;margin-bottom:9px;border-radius:2px;background:#60758e}
.kpi.family-icon-card>.family-section-icon{display:none}
.shell>main .kpi[data-detail="planning"]::before{background:#c47c36}
.shell>main .kpi[data-detail="action"]::before{background:#c6a12e}
.shell>main .kpi[data-detail="risk"]::before{background:#b56569}
.shell>main .kpi[data-detail="stock"]::before{background:#578565}
.chart-cell:nth-child(1) .chart-fill{background:#c47c36}
.chart-cell:nth-child(2) .chart-fill{background:#c6a12e}
.chart-cell:nth-child(3) .chart-fill{background:#b56569}
:root{--family-selected:#e8eff8;--family-focus:#386998}
.qa-family .filters button[aria-pressed=true],.qa-family .view-options button[aria-pressed=true],.qa-family button[aria-pressed=true],.shell>aside .choice.active,.shell>aside .choice.active:hover,.shell>aside .module-option.selected,.shell>aside .module-option.selected:hover{background:var(--family-selected);border-color:#7893b3;color:var(--family-navy)}
.qa-family button.tab[aria-current=page]{color:var(--family-navy);border-bottom-color:var(--family-navy)}
.qa-family button:not(.primary):hover{background:var(--family-selected);color:var(--family-navy)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--family-focus);outline-offset:3px}
.family-mobile-nav,.family-filter-open,.family-filter-close,.family-filter-backdrop{display:none}
.family-mobile-records{display:none}
.family-mobile-nav summary,.family-filter-open,.family-filter-close{min-height:44px;padding:10px 14px;border:1px solid #c7d4e3;border-radius:8px;background:#fff;color:var(--family-navy);font:600 14px 'Segoe UI',sans-serif;cursor:pointer}
@media(max-width:1000px){
 .hub-nav{flex-wrap:wrap;min-height:70px;padding:10px 20px;gap:12px;overflow:visible}
 .hub-nav>a,.hub-nav>span,.hub-nav>small{display:none}
 .family-mobile-nav{display:block;margin-left:auto;position:relative}
 .family-mobile-nav>div{position:absolute;right:0;top:calc(100% + 6px);width:min(300px,calc(100vw - 40px));z-index:80;background:#fff;border:1px solid #c7d4e3;border-radius:12px;padding:8px;box-shadow:0 8px 24px #142b4820}
 .family-mobile-nav a,.family-mobile-nav span{display:block;padding:12px!important;border-bottom:0!important;white-space:normal}
 .family-mobile-nav a[aria-current]{background:var(--family-selected);border-radius:8px}
 html body:not(.qa-family) .shell{grid-template-columns:minmax(0,1fr)}
 body:not(.qa-family) .shell>aside{display:none!important}
 .family-filter-open{display:block;margin:16px 20px 0}
 .family-filter-close{display:block;margin-bottom:20px;width:100%}
 body.family-filters-open{overflow:hidden}
 body.family-filters-open .shell>aside{display:block!important;position:fixed;inset:0 auto 0 0;width:min(390px,calc(100vw - 24px));height:100dvh;overflow:auto;z-index:100;margin:0;box-shadow:8px 0 30px #142b4820}
 body.family-filters-open .family-filter-backdrop{display:block;position:fixed;inset:0;border:0;background:#142b4870;z-index:99}
 .shell>aside .module-picker-popover,.shell>aside [class*="popover"]{position:static!important;width:100%!important;max-width:100%!important;box-sizing:border-box}
 .shell>main{min-width:0}.shell>main .module-grid{grid-template-columns:minmax(0,1fr)!important}
 .module-toolbar{flex-wrap:wrap}.module-toolbar .section-label{flex-basis:100%}
 .table-wrap{max-width:100%;overflow:auto}.table-wrap::before{content:'Scroll sideways for all columns';display:block;padding:8px 12px;font-size:12px;color:#65758a}
 .qa-family .columns{grid-template-columns:minmax(0,1fr)}
 .qa-family .shell{padding:0 18px;max-width:100%}
 .qa-family .cards,.qa-family .module-grid{grid-template-columns:minmax(0,1fr)!important}
 .qa-family .filters,.qa-family .row{flex-wrap:wrap}
 .qa-family .tabs{display:flex;overflow:auto;max-width:100%}
 .qa-family .person{max-width:100%;overflow-wrap:anywhere}
 button,input,select,summary{min-height:44px!important}
 button{min-width:40px!important}
}
@media(max-width:600px){
 html,body{max-width:100%;overflow-x:hidden}
 .family-mobile-table-source{display:none!important}
 .family-mobile-records{display:block;max-width:100%;min-width:0}
 .family-mobile-sortbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end;padding:12px 0}
 .family-mobile-sortbar label{grid-column:1/-1;font-size:12px;font-weight:600;color:var(--family-muted)}
 .family-mobile-sortbar select,.family-mobile-sort{width:100%;min-width:0;min-height:44px;border:1px solid #c7d4e3;border-radius:8px;background:#fff;color:var(--family-navy);padding:9px 10px;font:600 13px 'Segoe UI',sans-serif}
 .family-mobile-card-list{display:grid;gap:12px}
 .family-mobile-record{border:1px solid var(--family-line);border-radius:12px;background:#fff;padding:14px;min-width:0;overflow-wrap:anywhere}
 .family-mobile-field{display:grid;grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px solid #e8edf2;align-items:start}
 .family-mobile-field::before{content:attr(data-label);font-size:11px;font-weight:650;color:var(--family-muted)}
 .family-mobile-primary{border-top:0;padding-top:0}
 .family-mobile-primary .family-mobile-value{font-weight:650;color:var(--family-navy)}
 .family-mobile-value{min-width:0;font-size:13px;color:var(--family-ink)}
 .family-mobile-value button,.family-mobile-value a{max-width:100%;white-space:normal;text-align:left}
 .family-detail-scroll,.table-wrap,.production-table-wrap{overflow:visible!important;max-height:none!important}
 .qa-family .actions{grid-template-columns:minmax(0,1fr)}
 .qa-family .summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .qa-family .panel,.qa-family .module-card{padding:16px;min-width:0}
 .qa-family .between{align-items:flex-start}
 .qa-family .module-card,.qa-family .checkpoint,.qa-family .event-meta{overflow-wrap:anywhere}
 .qa-family .module-card .bottom{flex-wrap:wrap}
 .hub-apps,.hub-bottom{grid-template-columns:minmax(0,1fr)}
 .hub-body{padding:24px 16px}.hub-row{flex-wrap:wrap}
 .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .kpi.money .value{font-size:20px}.kpi{min-width:0}
 .chart-head{flex-wrap:wrap}.chart-bars{grid-template-columns:1fr}
 .panel-head,.module-title{flex-wrap:wrap;gap:10px}
 .detail-row{grid-template-columns:60px minmax(0,1fr)}.detail-meta{grid-column:2}
.source-line{white-space:normal;overflow-wrap:anywhere}.saved{text-align:left;overflow-wrap:anywhere}
}

/* Approved refinement: common spacing and quiet, consistent controls. */
:root{--family-space:24px;--family-gap:16px}
[hidden]{display:none!important}
.app-card,.hub-panel,.production-main .production-card,.qa-family .panel,.qa-family .module-card,.shell>main .chart-panel{padding:var(--family-space);border-radius:var(--family-card)}
.hub-apps,.hub-bottom,.production-layout,.production-stack{gap:var(--family-gap)}
.app-card{min-height:0}
.app-card h2{margin:16px 0 8px}
.app-card p{margin-bottom:16px}
.hub-apps{margin-top:24px}
.family-mobile-nav summary{display:flex;align-items:center;gap:8px;list-style:none}
.family-mobile-nav summary::-webkit-details-marker{display:none}
.family-mobile-nav summary svg{margin:0;flex:0 0 20px}
.family-mobile-nav a,.family-mobile-nav>div>span{display:flex;align-items:center;gap:8px;min-height:44px;box-sizing:border-box}
.family-mobile-nav a svg,.family-mobile-nav>div>span svg{flex:0 0 20px;margin:0}
.family-sort-icon{display:inline-block;width:14px;height:18px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.family-sort-icon[data-direction="1"] .sort-down,.family-sort-icon[data-direction="-1"] .sort-up{opacity:.22}
.family-mobile-sort{display:flex;align-items:center;justify-content:center;gap:6px}
.receipt-review-note{font-size:12px;line-height:1.6;color:var(--family-muted);margin:0 0 20px}
.chart-panel .chart-head button{min-height:44px}
.production-main>.production-layout:not(.production-bottom){grid-template-columns:minmax(0,1fr)}
.production-main .production-stack{grid-template-columns:minmax(0,1fr)}
.production-main .production-section-head>button{min-height:44px}
.production-attention-help{display:block;margin:12px 0}
.production-detail-drawer{position:fixed;inset:0 0 0 auto;box-sizing:border-box;width:min(760px,calc(100vw - 48px));max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:var(--family-space);overflow:auto;border:1px solid var(--family-line);border-radius:var(--family-card) 0 0 var(--family-card);background:#fff;color:var(--family-ink)}
.production-detail-drawer::backdrop{background:#142b4870}
.production-drawer-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.production-drawer-head h2{margin:0}
body.family-details-open{overflow:hidden}
@media(max-width:1000px){.family-mobile-nav a,.family-mobile-nav>div>span{padding:10px 12px!important}}
@media(max-width:600px){
 :root{--family-space:16px}
 .hub-body,.production-main{padding:20px 16px}
 .app-card{min-height:0}
 .app-card h2{margin-top:12px}
 .table-wrap::before{content:none}
 .family-mobile-record{padding:var(--family-space);border-radius:var(--family-card)}
 .production-detail-drawer{width:100vw;height:100dvh;border:0;border-radius:0;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}
}

/* Hub navigation and compact attention controls. */
.hub-nav .hub-home{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border-radius:9px;background:#f1f5fa;color:#274765}.hub-nav .hub-home svg{width:18px;height:18px;margin:0}.hub-nav .hub-home[aria-current]{padding:9px 11px;border-bottom:0;background:#e3edf8;box-shadow:inset 0 -2px #142b48;color:var(--family-navy)}.production-table td:first-child,.production-table td:nth-child(2),.production-table td:nth-child(5){vertical-align:middle}.production-attention-controls{display:flex;align-items:center;gap:0}.production-attention-option{min-width:44px!important;border-radius:0!important;border-right:0!important;padding:7px 10px!important;font-size:12px}.production-attention-option:first-child{border-radius:8px 0 0 8px!important}.production-attention-option:nth-child(2){border-radius:0 8px 8px 0!important;border-right:1px solid #dce3eb!important}.production-attention-option[aria-pressed=true]{background:var(--family-navy)!important;border-color:var(--family-navy)!important;color:#fff!important}.production-attention-option:disabled{opacity:.52;cursor:default}.production-attention-controls #production-attention-toggle{margin-left:8px}@media(max-width:600px){.production-attention-controls{width:auto}.production-attention-option{min-width:40px!important}}

/* Approved shared navigation and restrained motion. */
.hub-nav>a{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:0!important;border-radius:var(--family-nav-radius);color:#52647b;transition:color 140ms var(--family-ease),background-color 140ms var(--family-ease),border-color 140ms var(--family-ease)!important}.hub-nav>a svg{width:20px;height:20px;margin-right:7px}.hub-nav>a[aria-current]{padding:0 12px!important;border:0!important;border-radius:var(--family-nav-radius);background:rgb(20 43 72 / 12%);color:var(--family-navy);box-shadow:none}.hub-nav>.hub-home{position:relative;isolation:isolate;min-height:48px;padding:0 14px!important;border-radius:var(--family-nav-radius);background:transparent;color:var(--family-navy);font-size:15px;font-weight:650}.hub-nav>.hub-home::before{content:'';position:absolute;inset:-8px;z-index:-1;border-radius:16px;background:radial-gradient(ellipse at center,rgb(20 43 72 / 12%) 0%,rgb(20 43 72 / 5%) 45%,transparent 74%);filter:blur(4px);pointer-events:none}.hub-nav>.hub-home svg{width:22px;height:22px;margin-right:0}.hub-nav>.hub-home[aria-current]{background:rgb(20 43 72 / 12%);box-shadow:none}@media(hover:hover){.hub-nav>a:hover,.family-mobile-nav a:hover{background:rgb(20 43 72 / 8%);color:var(--family-navy)}}
.family-mobile-nav>div{border-radius:var(--family-popover-radius)}.family-mobile-nav a{position:relative;min-height:44px;border-radius:var(--family-nav-radius);transition:color 140ms var(--family-ease),background-color 140ms var(--family-ease)!important}.family-mobile-nav a[aria-current]{background:rgb(20 43 72 / 12%)}.family-mobile-nav .hub-home{min-height:48px!important;padding:0 14px!important;font-size:15px;font-weight:650;background:rgb(20 43 72 / 5%)}.family-mobile-nav .hub-home svg{width:22px;height:22px}.family-mobile-nav[open]>div{animation:family-menu-in 160ms var(--family-ease)!important}
body.family-page-enter main{animation:family-page-in 120ms var(--family-ease)!important}.production-detail-drawer.family-motion-enter{animation:family-drawer-right-in 220ms var(--family-ease)!important}.family-motion-enter:not(.production-detail-drawer)>:not(summary){animation:family-reveal-in 180ms var(--family-ease)!important}body.family-filters-open .shell>aside{animation:family-drawer-left-in 220ms var(--family-ease)!important}body.family-filters-open .family-filter-backdrop{animation:family-backdrop-in 160ms var(--family-ease)!important}.family-sort,.qa-family button,.app-card a,.shell>main .expand-button,.shell>main .chart-head button,.production-attention-option{transition:color 140ms var(--family-ease),background-color 140ms var(--family-ease),border-color 140ms var(--family-ease)!important}@keyframes family-page-in{from{opacity:0}to{opacity:1}}@keyframes family-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes family-drawer-right-in{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}@keyframes family-drawer-left-in{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:translateX(0)}}@keyframes family-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes family-reveal-in{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){html body.family-page-enter main,html .production-detail-drawer.family-motion-enter,html .family-motion-enter,html .family-mobile-nav[open]>div,html body.family-filters-open .shell>aside,html body.family-filters-open .family-filter-backdrop{animation:none!important;transition:none!important}}html.family-reduced-motion body.family-page-enter main,html.family-reduced-motion .production-detail-drawer.family-motion-enter,html.family-reduced-motion .family-motion-enter,html.family-reduced-motion .family-mobile-nav[open]>div,html.family-reduced-motion body.family-filters-open .shell>aside,html.family-reduced-motion body.family-filters-open .family-filter-backdrop{animation:none!important;transition:none!important}html.family-reduced-motion body *{transition-duration:0s!important}
@media(max-width:1000px){.hub-nav>a,.hub-nav>span,.hub-nav>small{display:none!important}.family-mobile-nav{display:block!important;margin-left:auto}.family-mobile-nav a,.family-mobile-nav>div>span{display:flex!important}.family-mobile-nav .hub-home{display:flex!important}.family-mobile-nav .hub-home[aria-current]{border-bottom:0!important;box-shadow:none!important}}
