:root{font-family:Arial,sans-serif;color:#303246;background:#f4f5f8;font-synthesis:none;--red:#c6273f;--line:#dfe2e9}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:#303246;padding:10px 15px;border-radius:8px;min-height:42px}button:hover{background:#eef0f5}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--red);border-color:var(--red);color:#fff}.primary:hover{background:#ac2036}.danger{color:#a92e3d}.login-layout{min-height:100vh;display:grid;grid-template-columns:minmax(290px,40%) 1fr}.welcome{background:#35364b;color:#fff;padding:12vh 10%;display:flex;flex-direction:column;justify-content:center}.brand{width:min(320px,100%)}.brand img{display:block;width:100%;height:auto}.brand-rule{width:65px;height:5px;background:#e0384b;margin:20px 0 32px}.welcome h2{font-size:32px;line-height:1.15;font-weight:500}.welcome p{max-width:320px;line-height:1.65;color:#dddfea}.login-main{display:grid;place-content:center;padding:40px 24px}.login-card{width:min(440px,100%);margin:auto;background:white;border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:0 6px 28px #25273d08}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;color:#6b7083}.login-card h1{font-size:27px;margin:14px 0 10px}.sub,.help{color:#656c80;font-size:13px;line-height:1.6}.help{font-size:12px}.field{display:flex;flex-direction:column;gap:7px;margin:16px 0;font-size:13px;font-weight:600}.field input,.field select,.field textarea{width:100%;border:1px solid #cdd2dd;border-radius:8px;padding:11px;background:white;font-weight:400}.field textarea{min-height:85px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #b5c5e7;outline-offset:2px}.login-card .primary{width:100%;margin-top:10px}.text-button{border:0;background:none;padding:8px 0;font-size:12px;text-decoration:underline}.notice{background:#eef1f7;border-radius:8px;padding:12px;font-size:13px;line-height:1.5}.error{background:#fff0f2;color:#a02c3e}.success{background:#eaf5ee;color:#28613d}[hidden]{display:none!important}.test-tag,.pill{display:inline-block;border-radius:14px;padding:4px 9px;background:#ebeef5;color:#505b75;font-size:11px}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:#35364b;padding:24px 15px;color:#fff}.sidebar .brand{width:168px;max-width:calc(100% - 24px);margin:0 12px 30px}.sidebar button{display:block;width:100%;text-align:left;margin:7px 0;border-color:transparent;background:transparent;color:#e8e9ef}.sidebar button.active{background:#4b4c61;border-left:3px solid #e63f50}.nav-label{font-size:10px;letter-spacing:1.5px;padding:18px 14px 8px;text-transform:uppercase;color:#c2c4d3}.main{padding:28px 36px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.topbar small{display:block;margin-top:5px;color:#737b8e}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin:18px 0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.section-head h1{margin:0;font-size:28px}.section-head h2{font-size:20px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.project-card{border:1px solid var(--line);border-radius:10px;padding:18px}.project-card h3{margin:8px 0}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}td,th{padding:14px 10px;border-bottom:1px solid var(--line);text-align:left}th{font-size:11px;color:#687085}td small{display:block;margin-top:5px;color:#687085}.qr{width:220px;max-width:100%;display:block;margin:15px auto}.secret{font-family:monospace;word-break:break-all;padding:12px;background:#f4f5f8}.check{display:flex;align-items:center;gap:8px;font-size:13px;margin:16px 0}.page-message{position:sticky;top:8px;z-index:1}.closed{background:#eaf5ee;color:#28613d}@media(max-width:760px){.login-layout{grid-template-columns:1fr}.welcome{padding:25px}.welcome h2,.welcome p,.brand-rule{display:none}.welcome .brand{width:200px;max-width:100%}.login-main{padding:24px}.shell{grid-template-columns:1fr}.sidebar{padding:12px}.sidebar .brand{margin-bottom:5px}.sidebar button{display:inline-block;width:auto}.nav-label{display:none}.main{padding:20px}.two{grid-template-columns:1fr}.section-head,.topbar{align-items:flex-start;flex-direction:column}}

.invite-details{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;font-size:14px;margin:24px 0}.invite-details dt{color:#656c80}.invite-details dd{margin:0;font-weight:600;overflow-wrap:anywhere}.access-status{display:inline-block;padding:6px 9px;border-radius:8px;font-size:12px}.access-status.pending{background:#fff6df;color:#795600}.access-status.muted{background:#eef0f5;color:#656c80}@media(max-width:560px){.invite-details{grid-template-columns:1fr;gap:6px}.invite-details dd{margin-bottom:10px}}
.setup-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:15px 0;margin:10px 0 24px}.setup-tabs .active{background:#35364b;color:#fff}.setup-fields{border:0;padding:0;margin:0;min-width:0}.setup-two,.setup-four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.setup-four{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.setup-two>section{border:1px solid var(--line);border-radius:10px;padding:16px}.setup-two h3{margin-top:0}.setup-flavor{display:inline-flex;align-items:center;gap:7px}.setup-flavor>span{display:inline-block;width:11px;height:11px;border-radius:50%;flex:none}.setup-table .field{margin:4px 0}.setup-table input[type=color]{min-width:80px;height:42px;padding:4px}.setup-template,.setup-history{padding:16px;border:1px solid var(--line);border-radius:10px;margin:12px 0}.setup-template summary,.setup-history summary{cursor:pointer;font-weight:600;line-height:1.5}.setup-spaced{margin-top:22px}.setup-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:20px 0}.setup-stats>div{padding:18px;background:#f1f3f8;border-radius:10px}.setup-stats small{font-size:12px;color:#656c80;display:block;line-height:1.5}.setup-stats strong{display:block;font-size:25px;margin:8px 0}.setup-calendar{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:9px}.setup-day{display:flex;flex-direction:column;gap:8px;padding:12px 8px;border:1px solid var(--line);border-radius:9px;background:#f8f9fb;font-size:12px}.setup-day.ordinary{border-top:3px solid #477763}.setup-day.reduced{border-top:3px solid #b7782e}.setup-day.half{border-top:3px solid #6c64a6}.setup-day select{width:100%;padding:8px 3px;border:1px solid var(--line);border-radius:5px;background:#fff;font-size:12px}.setup-day small{color:#656c80}.setup-week{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.setup-plan input{width:90px;padding:10px 8px;border:1px solid #d8dde8;border-radius:7px}.setup-plan input.has-quantity{border-left:5px solid var(--flavor-color);font-weight:700;background:#f8f9fc}.setup-plan .field{margin:0;font-size:11px;min-width:95px}.setup-plan th{white-space:nowrap}.setup-plan tr.inactive{background:#f3f4f7;color:#687085}.setup-history dl{display:grid;grid-template-columns:minmax(80px,45%) 1fr;gap:10px;font-size:12px;line-height:1.5}.setup-history dt{color:#687085}.setup-history dd{margin:0;overflow-wrap:anywhere}.setup-history ul{padding-left:16px}.setup-history li{margin:8px 0}.setup-history section{min-width:0}#project-setup>fieldset>details>summary{cursor:pointer;padding:12px 0}#project-setup input:invalid:focus{outline-color:#d798a1}@media(max-width:1200px){.setup-four{grid-template-columns:repeat(2,minmax(0,1fr))}.setup-calendar{grid-template-columns:repeat(4,minmax(100px,1fr))}}@media(max-width:760px){.setup-two,.setup-four{grid-template-columns:1fr}.setup-calendar{grid-template-columns:repeat(2,minmax(100px,1fr))}.setup-tabs{gap:5px}.setup-tabs button{font-size:12px;padding:8px}.setup-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.setup-stats strong{font-size:21px}}

.main{min-width:0}.setup-plan td:first-child{min-width:125px}.setup-plan td:first-child b{white-space:nowrap}.setup-plan td small{display:block;margin-top:4px}.setup-calendar{min-width:0}
.op-flavor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.op-flavor{border:1px solid var(--line);border-left:5px solid var(--flavor-color);border-radius:9px;padding:15px}.op-flavor>.access-status{float:right}.op-flavor p{font-size:13px;margin-bottom:0;line-height:1.6}.op-negative{color:#b1213b;font-weight:bold}.op-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:12px;border:1px solid var(--line);border-radius:9px;margin:12px 0}.op-row>.field{flex:1;min-width:100px;margin:0}.op-row>button{flex:none}.op-preview{border:2px solid #9aabbf;background:#fafbfd;padding:24px;border-radius:12px;margin-top:28px;scroll-margin-top:65px}#operation-form .table-wrap input{min-width:100px;max-width:180px}#operation-form .table-wrap .field{margin:0;font-size:11px}#operation-form h4{margin:30px 0 12px}#operation-form fieldset:disabled{opacity:.75}#operation-form [data-cut-counters]{position:relative}#operation-form .setup-stats strong{font-size:24px}.project-card>.actions{margin:10px 0}.op-preview .setup-template{background:#fff}.op-preview input[type=number]{width:100%;padding:10px;border:1px solid #cdd2dd;border-radius:8px}@media(max-width:760px){.op-preview{padding:14px}.op-row>.field{min-width:120px}}
.res-quantity{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px}.res-request{padding:16px;border:1px solid var(--line);border-radius:10px;margin:12px 0}.res-request summary{cursor:pointer;line-height:1.7}.res-return-row{border:1px solid var(--line);border-radius:12px;margin:22px 0;padding:20px}.res-stock{min-width:1000px}.res-stock td,.res-stock th{vertical-align:top}.res-stock small{display:block;margin-top:7px}.res-stock .actions{min-width:150px}.resource-evidence{display:block;max-width:100%;max-height:650px;margin:20px 0;object-fit:contain}#resource-form h3{margin-top:30px}#resource-form h4{margin-top:24px}#resource-form .res-quantity .field{margin-top:5px}.res-request .actions{margin-top:16px}
.close-day-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px;margin-top:15px}.close-day{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px}.close-day.done{background:#e8f6ee;border-color:#94c9a9}.close-day[aria-pressed=true]{outline:2px solid #c91d40;outline-offset:2px}.close-inline{border:1px solid #d8dce8;border-radius:12px;padding:20px;margin:18px 0;background:#f8f9fc}input:disabled{background:#eef0f4;color:#6c7180}
.final-section{margin:24px 0;padding:22px;border:1px solid var(--line);border-radius:12px}.final-section h3{margin-top:0}.final-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.final-card{border:1px solid var(--line);border-radius:10px;padding:16px}.final-card h4{margin:0 0 12px}.final-card .actions{margin:12px 0}.final-status{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:18px;background:#edf2f8;padding:20px;border-radius:12px}.final-route{padding-left:28px}.final-route li{padding:14px 0;border-bottom:1px solid var(--line)}.final-route small{display:block;margin:7px 0;color:#647088}.final-bottom{padding:24px 0}.final-bottom>.danger{font-size:18px;padding:18px 26px;background:#c82040;color:white}.final-section details{margin:16px 0}#final-form [data-close-photo-section]{display:none}#final-form .help,#final-form h4{line-height:1.5}
.final-card.op-flavor{border-left:5px solid var(--flavor-color)}.final-record-summary{font-size:13px;line-height:1.6}.final-record-summary p{margin:9px 0}
/* Closing exports: reminder remains visible until the current balances are downloaded. */
.report-launch{border:1px solid #dde3ec;border-radius:14px;padding:20px;margin:20px 0;background:#f8f9fc}.report-launch h3{margin:0 0 14px}.report-reminder{border:2px solid #cc2141;background:#fff5f6}.report-arrow{color:#b51e3b;font-weight:700}.report-preview{display:grid;gap:24px;margin:22px auto;max-width:1240px}.report-preview img{display:block;width:100%;height:auto;box-shadow:0 5px 24px #30344918;background:white}.report-actions{position:sticky;top:0;z-index:3;background:#fff;padding:14px 0}

.lot-form{margin:28px 0;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fafbfd}.lot-form h3{margin-top:0}.lot-form .setup-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.lot-form .actions{margin-top:20px}
.people-lines{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.people-line{border:1px solid var(--line,#d8dce6);border-radius:12px;padding:18px;background:#fafbfe}.people-line h3{margin-top:0}.people-line small,.people-warning{display:block}.people-warning{color:#856000;margin-top:5px}.people-history{padding:14px 0;border-bottom:1px solid #e4e6ed}.people-history p{margin:6px 0}.people-reason{min-width:160px;max-width:300px;overflow-wrap:anywhere}.people-cancelled{color:#686e79;background:#f4f5f8}#people-form select{min-width:200px}#people-form input[name=line]{min-width:80px;max-width:120px}

/* Authorized planning: flavor color denotes product, text denotes coverage. */
.planning-qty{display:inline-block;min-width:44px;padding:6px 10px;border:1px solid transparent;border-radius:5px;font-variant-numeric:tabular-nums}.planning-qty.has-quantity{border-color:var(--flavor-color);border-left:5px solid var(--flavor-color);background:color-mix(in srgb,var(--flavor-color) 9%,white);font-weight:700}#planning-form input[type=number]{min-width:72px;max-width:110px}.planning-short{color:#b42318;font-weight:600}.planning-ok{color:#167047}#planning-form td small{display:block;font-size:11px;margin-top:4px}

.product-catalog-cards{display:grid;gap:20px}.product-catalog-card{border:1px solid #dce1eb;border-radius:12px;padding:22px}.product-catalog-card h3{margin:0}.product-version{border-top:1px solid #dce1eb;padding:18px 0}.product-selection{background:#f5f7fb;border:1px solid #dce1eb;border-radius:12px;padding:18px;margin:0 0 22px}.product-selection select{width:100%}#product-catalog-form input[type=color]{width:52px;padding:4px}#product-catalog-form .table-wrap{margin-bottom:20px}
.production-panel{border:1px solid var(--line);border-radius:14px;padding:24px;margin:24px 0;background:#fff;min-width:0}.production-panel h3{margin:0}.production-figure{margin:22px 0 12px;min-width:0}.production-figure figcaption{font-size:18px;font-weight:700;margin-bottom:14px}.production-legend{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;font-size:13px}.production-legend span{display:flex;align-items:center;gap:8px}.production-legend small{color:#647088}.production-key{display:inline-block;width:26px;border-top:3px solid #cc2141}.production-key.target{border-color:#405d89;border-top-style:dashed}.production-chart-scroll{overflow:auto;max-width:100%;margin-top:12px}.production-chart{display:block;min-width:640px;max-width:none}.production-chart text{fill:#36435a;font-size:12px;font-family:inherit}.production-chart .production-detail{fill:#647088;font-size:11px}.production-grid{stroke:#e5e9f0;stroke-width:1}.production-actual{stroke:#cc2141;stroke-width:3}.production-actual-dot{fill:#cc2141;stroke:#fff;stroke-width:2}.production-target{stroke:#405d89;stroke-width:2;stroke-dasharray:6 4}.production-target-dot{fill:#fff;stroke:#405d89;stroke-width:2}.production-chart circle:focus{outline:2px solid #30354a;outline-offset:3px}.production-switch button[aria-pressed=true]{background:#30354a;color:white;border-color:#30354a}.production-progress{display:block;width:100%;height:16px;accent-color:#cc2141}.production-activity{border:1px solid var(--line);padding:18px;border-radius:10px}.production-activity summary,.production-panel summary{cursor:pointer;font-weight:600}.production-panel details .table-wrap{margin-top:16px}.line-performance{border-bottom:1px solid #dce1eb;padding-bottom:16px;margin-bottom:16px}.line-performance>strong{display:block;font-size:30px;margin:7px 0}.line-bonus{display:inline-block;border-radius:6px;padding:6px 9px;background:#fff0d6;color:#715100;font-size:12px;margin-bottom:10px}.line-bonus.qualifies{background:#e2f3e9;color:#11603c}.line-bonus span{color:#986800;margin-right:4px}@media(max-width:760px){.production-panel{padding:16px}.production-panel .section-head{align-items:flex-start}.production-legend{gap:10px 18px}}
.private-profile,.private-lock{border:1px solid var(--line);border-radius:12px;padding:22px;margin:24px 0;background:#fafbfe}.private-lock{max-width:720px}.private-lock h3,.private-profile h3{margin-top:0}.private-section{padding:16px 0;border-bottom:1px solid #e3e6ed;margin-bottom:18px}.private-section h3{margin:12px 0 18px}.private-section [data-private-pending]{margin-left:8px;font-size:11px;color:#8a5c00}.private-history{margin-top:28px}.private-history summary{cursor:pointer;font-weight:600}.private-history article{padding:14px 0;border-bottom:1px solid #e3e6ed}.private-history p{margin:6px 0}.private-complete{display:block;color:#11603c;margin-top:5px}#person-private-form input[readonly]{background:#f0f2f7}#person-private-form textarea{min-height:85px}#person-private-form [data-private-reason]{margin:20px 0}

.wa-walk{margin-top:24px;padding:20px;border:1px solid #d8deea;border-radius:12px;background:#f7f9fc}.wa-walk-start{display:flex;gap:24px;align-items:center;margin:16px 0}.wa-walk-start img{flex:none;border-radius:8px;image-rendering:pixelated}.wa-walk-start p{margin:0 0 14px}.wa-walk .field{max-width:520px;margin:18px 0 8px}@media(max-width:700px){.wa-walk-start{flex-direction:column;align-items:flex-start}.wa-walk{padding:16px}}

/* WECUT: navegación aprobada */
/* Navigation follows the approved prototype; operational forms keep their styles. */
.shell{grid-template-columns:238px minmax(0,1fr);align-items:start}
.sidebar{position:sticky;top:0;height:100dvh;box-sizing:border-box;overflow-y:auto;padding:27px 18px;background:#35364b;scrollbar-width:thin;scrollbar-color:#76778b transparent}
.sidebar .brand{width:auto;margin:0 8px 20px;max-width:none}
.sidebar .brand img{width:100%;max-width:168px;height:auto;display:block}
.sidebar .brand>span{display:block;margin-top:12px;color:#b5b6c8;font-size:9px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase}
.sidebar .nav-label{margin:23px 9px 9px;padding:0;color:#b5b6c8;font-size:9px;letter-spacing:1.5px}
.sidebar button{font:inherit;box-sizing:border-box;white-space:normal;min-height:32px}
.sidebar .nav-link,.sidebar .nav-add-project{display:flex;align-items:center;gap:9px;width:100%;margin:3px 0;padding:9px 9px;border:1px solid transparent;border-radius:7px;color:#e8e9f1;background:transparent;font-size:12px;text-align:left;line-height:1.35}
.sidebar .nav-link>span{flex:1;min-width:0}
.sidebar .nav-link:hover,.sidebar .project-toggle:hover{background:#ffffff10}
.sidebar .nav-link.active{background:#ffffff14;border-left:3px solid #d70d15;padding-left:7px;color:#fff;font-weight:600}
.sidebar .nav-add-project{border-color:#ffffff29;margin-bottom:12px;font-weight:600;padding:10px 9px}
.sidebar .nav-icon{width:15px;height:15px;flex:0 0 15px}
.sidebar .nav-project{margin:8px 0}
.sidebar .project-toggle{display:flex;align-items:flex-start;gap:7px;width:100%;padding:10px 9px;border:0;border-radius:8px;margin:0;background:#ffffff09;color:#fff;text-align:left;font-size:12px;line-height:1.4}
.sidebar .project-toggle>span:last-child{min-width:0;overflow-wrap:anywhere}
.sidebar .project-toggle b{font-weight:600}
.sidebar .project-toggle small{display:block;font-size:9px;font-weight:400;color:#bec0cf;margin-top:4px}
.sidebar .project-caret{font-size:12px;flex:0 0 9px;margin-top:1px}
.sidebar .nav-project.selected>.project-toggle{box-shadow:inset 3px 0 #d70d15;background:#ffffff0e}
.sidebar .project-links{margin:5px 0 5px 15px;padding-left:6px;border-left:1px solid #ffffff26}
.sidebar .project-links[hidden]{display:none}
.sidebar .project-links .nav-link{padding:8px 6px;font-size:11px}
.sidebar .project-links .nav-link.active{padding-left:4px}
.sidebar .nav-count{float:right;color:#c9cad8;font-size:10px;margin-left:4px}
.sidebar .nav-empty{font-size:11px;color:#bec0cf;padding:0 9px}
.sidebar button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.skip-link{position:absolute;left:-9999px;top:8px;z-index:20;background:#fff;color:#303246;padding:10px}
.skip-link:focus{left:8px}
.main{min-width:0}
.main:focus{outline:none}
.general-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.general-settings-grid h2{font-size:17px}
@media(max-width:760px){
 .shell{grid-template-columns:minmax(0,1fr)}
 .sidebar{position:relative;height:auto;max-height:none;padding:18px}
 .sidebar .brand{margin-bottom:12px}
 .sidebar .brand img{width:140px}
 .sidebar nav{max-height:310px;overflow-y:auto;padding:3px}
 .sidebar .nav-label{display:block}
 .sidebar .nav-link,.sidebar .nav-add-project,.sidebar .project-toggle{display:flex;width:100%}
 .sidebar .project-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .sidebar .project-links[hidden]{display:none}
 .sidebar .project-links .nav-link{font-size:12px;min-height:38px}
 .sidebar .nav-label{margin-top:17px}
}

/* Approved planning controls and schedule preview. */
.planning-table caption{text-align:left;padding:14px 0;font-weight:700;color:#303246}
.planning-table th,.planning-table td{vertical-align:middle}.planning-table td:first-child{color:#697087}
.planning-table td small,.planning-table th small{display:block;margin-top:6px;font-size:11px;line-height:1.45;white-space:normal}
.planning-table th small{font-weight:400;min-width:115px}.planning-table tfoot{background:#f3f4f8;font-weight:700}.planning-table .planning-original-total{font-size:12px;font-weight:400;background:#fafafb;color:#697087}
.planning-comparison{display:flex;flex-direction:column;gap:4px;min-width:80px}.planning-comparison small{white-space:nowrap!important}.planning-closed-row{background:#f7f8fa}.planning-day-status{display:inline-block;font-size:11px;margin-top:7px;color:#697087}.planning-day-status.closed{color:#287248;font-weight:700}
.planning-cell-editor{display:flex;align-items:center;gap:4px;min-width:105px}.planning-cell-editor button{padding:4px 8px;min-width:30px;min-height:32px;border:1px solid #d1d5df;border-radius:5px;font-size:19px;background:#fff;color:#596277}.planning-cell-editor button[data-action="pl-add-flavor"]{color:var(--flavor-color,#596277);border-color:var(--flavor-color,#d1d5df);background:color-mix(in srgb,var(--flavor-color,#596277) 6%,white)}
.planning-edit-table [data-pl-difference]{white-space:nowrap;font-variant-numeric:tabular-nums}.planning-edit-table [name="target"]{width:85px}
.setup-timeline{display:flex;gap:6px;flex-wrap:wrap;padding:0;list-style:none;margin:16px 0 0}.setup-timeline li{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #dfe2e9;border-top:3px solid #5e719c;border-radius:5px;font-size:12px;background:#f5f7fb}.setup-timeline .break{border-top-color:#d7a441;background:#fffaf0}.setup-timeline .cleanup{border-top-color:#88929a;background:#f4f5f6}.setup-timeline small{color:#697087}

.planning-edit-table input[name=target]{border:1px solid var(--border,#cdd3df);border-radius:6px;padding:6px 9px;background:#fff;font:inherit;text-align:center}
.team-stats{margin:20px 0}.team-stats strong{font-size:20px}.team-line-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border,#dce0e9);padding-bottom:14px;margin-bottom:14px}.team-line-head h3{white-space:nowrap;margin-top:4px}.team-line-head .line-performance{border:0;padding:0;max-width:280px}.team-member{padding:12px 0;border-bottom:1px solid #e7e9ef}.team-member:last-child{border:0}.team-member small{display:block;margin-top:5px}.team-member .text-button{font-weight:700;text-align:left;margin:0;padding:0}.team-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 48px);border:1px solid #dce0e9;border-radius:16px;padding:28px;color:#303247;background:#fff;box-shadow:0 18px 70px #161a3540}.team-dialog::backdrop{background:#161a3570}.team-dialog h3{margin:0}.team-dialog .check{margin-top:20px}.team-dialog .actions{margin-top:20px}.team-dialog .field{margin-top:16px}#people-form select[name=line]{min-width:125px}.team-dialog .page-message{position:static}.team-dialog table{width:100%}@media(max-width:600px){.team-dialog{padding:18px}.team-line-head{flex-direction:column}.team-stats{grid-template-columns:1fr 1fr}.team-dialog .two{grid-template-columns:1fr}}
.lot-dialog{width:min(1080px,calc(100vw - 36px));max-height:90vh;box-sizing:border-box;border:1px solid #d8dcea;border-radius:16px;padding:28px;color:inherit;box-shadow:0 18px 60px #16182b40}.lot-dialog::backdrop{background:#181a32a6}.lot-dialog .setup-four{grid-template-columns:repeat(3,minmax(0,1fr))}.lot-dialog .field{margin-top:16px}.lot-quantities input{width:100%;min-width:80px;box-sizing:border-box}.lot-quantities td:last-child{min-width:110px;font-weight:600}.lot-dialog .actions{margin-top:22px}.lot-dialog .check{margin-top:18px}.lot-dialog h4{margin:20px 0 10px}@media(max-width:720px){.lot-dialog{padding:18px}.lot-dialog .setup-four{grid-template-columns:1fr}}
.lot-quantities input{border:1px solid var(--border,#cdd3df);border-radius:6px;padding:9px 10px;background:#fff;color:inherit;font:inherit;text-align:center;min-height:40px}.lot-quantities input:focus{outline:2px solid #3861b0;outline-offset:1px}.lot-quantities input:disabled{background:#f1f2f6;color:#71778b}
:root { --calendar-line:#dfe2eb; }
.volume-panels {display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.35fr);gap:20px;align-items:start}
.volume-entry,.volume-result {border:1px solid var(--calendar-line);border-radius:16px;padding:22px;min-width:0}
.volume-entry .field {margin:14px 0}
.volume-calculation {margin:20px 0}
.volume-calculation>div {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:16px 0;border-bottom:1px solid #edf0f5;align-items:center}
.volume-calculation dt {font-size:13px;line-height:1.6}.volume-calculation dd {margin:0;text-align:right;font-variant-numeric:tabular-nums}
.volume-calculation>div:nth-last-child(-n+4) {font-weight:700}
.negative {color:#c72443}.volume-flavor-table {font-size:12px}.volume-flavor-table th small{display:block;font-weight:400}.volume-flavor-table td:not(:first-child){text-align:right;white-space:nowrap}
.calendar-scroll{overflow-x:auto;padding-bottom:10px}.calendar-week-grid{display:grid;grid-template-columns:repeat(7,minmax(80px,1fr));gap:8px;min-width:620px}
.calendar-weekday{text-align:center;font-size:12px;color:#697386;padding:12px 0}
.calendar-cell{position:relative;min-height:150px;border:1px solid var(--calendar-line);border-radius:10px;text-align:center;background:#fff;padding:6px;display:flex;flex-direction:column;align-items:stretch;gap:6px}
.calendar-cell.rest{background:#f4f5f8;color:#8c919d}.calendar-cell.outside{background:#fafbfc;opacity:.48;justify-content:center;pointer-events:none}
.calendar-cell.half{background:#fff8eb;border-color:#e5c486}.calendar-cell.reduced{background:#f1f5fc}.calendar-cell.selected{outline:2px solid #38384e;outline-offset:1px}.calendar-cell.today{border:2px solid #d12843}
.calendar-cell small{font-size:11px;line-height:1.5}.calendar-date{width:100%;display:flex;flex-direction:column;align-items:center;gap:7px;padding:9px 3px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;white-space:normal!important}
.calendar-date:hover{background:#edf0f6!important}.calendar-date:focus-visible,.calendar-half:focus-visible{outline:3px solid #d12843;outline-offset:2px}.calendar-date:disabled{opacity:.75;cursor:not-allowed}
.calendar-date b{font-size:13px}.calendar-date strong{font-size:16px}.calendar-shirt{width:26px;height:26px;fill:currentColor;flex:none}.calendar-no-shirt{height:26px}
.calendar-half{align-self:center;padding:3px 12px!important;min-height:28px;font-size:18px!important}.calendar-half[aria-pressed=true]{background:#38384e;color:white}
.calendar-flavors{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;margin-bottom:6px}.calendar-flavors span{display:flex;align-items:center;gap:5px}.calendar-flavors i{width:8px;height:8px;display:inline-block;border-radius:50%;flex:none}
.calendar-legend{display:flex;flex-wrap:wrap;gap:18px;color:#667085;font-size:12px;margin:12px 0 22px}
.calendar-comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.calendar-comparison>div{border:1px solid var(--calendar-line);border-radius:14px;padding:20px}.calendar-comparison strong{display:block;font-size:26px;margin:8px 0}.calendar-comparison p{font-size:13px}.calendar-warning{background:#fff5e5!important;color:#755015}
.uniform-row{display:flex;align-items:center;gap:12px;margin:14px 0}.uniform-row .field{margin:0;flex:1}.uniform-row input[type=color]{max-width:70px;min-height:38px}.uniform-row .actions{flex-wrap:nowrap}
.calendar-coverage{max-width:310px;display:flex;flex-direction:column;gap:8px}.calendar-coverage strong{font-size:17px}.calendar-coverage span{font-size:12px}.calendar-detail{margin-top:24px;border:1px solid var(--calendar-line);border-radius:14px;padding:20px}
@media(max-width:1100px){.volume-panels{grid-template-columns:1fr}.volume-entry,.volume-result{padding:18px}}
@media(max-width:600px){.calendar-comparison{grid-template-columns:1fr}.uniform-row{flex-wrap:wrap}.uniform-row .actions{width:100%}}
/* B01 shared configuration and archived project consultation. */
.shell{font:14px/1.5 'Segoe UI',Arial,sans-serif;color:#303247;--line:#e0e2e9}
.shell .sidebar{background:var(--brand-structure,#36374b)}
.shared-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;border-bottom:1px solid var(--line);padding-bottom:14px}
.shared-tabs .active{background:var(--brand-structure,#36374b);color:#fff}
[data-shared-form]{margin:20px 0 30px;min-width:0}
.shared-palette{display:flex;gap:12px;margin:14px 0}.shared-palette span{width:64px;height:44px;border-radius:8px}.shared-white{background:#fff;border:1px solid var(--line)}
.shared-logo-preview{display:block;max-width:240px;width:100%;padding:16px;background:var(--brand-structure,#36374b);margin:18px 0}
.project-library-table td:first-child small{display:block}.project-library-table td:last-child{min-width:230px}
.people-alert-list{display:grid;gap:16px;margin-top:20px}.shared-alert{margin:0;padding:22px;border:1px solid var(--line);border-radius:15px}.shared-alert h2{display:flex;align-items:center;gap:10px}
.b05-dialog{position:fixed;border:0;border-radius:16px;padding:28px;width:min(640px,92vw);max-width:95vw;max-height:94vh;overflow:auto;background:#fff;color:var(--brand-blue,#36374b);box-shadow:0 20px 70px #0003}.b05-dialog::backdrop{background:#36374b66}.b05-dialog h2{margin-top:0;padding-right:32px}.b05-dialog-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:24px;line-height:1;padding:8px;color:inherit}.b05-dialog .form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:15px}.b05-dialog .form-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.b05-dialog .field{min-width:0;margin:14px 0}.b05-dialog .field>input,.b05-dialog .field>select,.b05-dialog .field>textarea{width:100%;box-sizing:border-box}.b05-dialog .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.b05-dialog [hidden]{display:none!important}.b05-dialog .people-check{display:flex;gap:8px;align-items:center;margin:18px 0}.b05-dialog .people-check input{width:auto}.b05-profile-dialog{width:min(1050px,95vw)}.b05-private-dialog:has(.private-person-record){width:min(860px,95vw)}.people-list>.actions{margin:18px 0}.people-table{min-width:790px}.people-table th,.people-table td{vertical-align:middle}.people-table .small{padding:7px 10px;font-size:12px}.person-name{border:0;padding:0;color:var(--brand-blue,#36374b);font-weight:650;text-align:left;background:transparent}.person-name:hover{text-decoration:underline}.people-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 22px}.people-stats>div{padding:16px;background:#f6f7fa;border:1px solid var(--line);border-radius:10px}.people-stats small{display:block;color:var(--muted,#687085);font-size:11px}.people-stats b{display:block;font-size:20px;margin-top:6px}.people-profile{min-width:0}.people-profile h3{margin-top:22px}.people-profile td>.help{display:block}.person-private-summary{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#f6f7fa}.person-private-summary h3{margin-top:0}.private-completion-warning{display:inline-flex;align-items:center;font-size:12px;font-weight:600;color:#8a5000;background:#fff4d6;border:1px solid #e9c571;border-radius:6px;padding:3px 7px;margin:4px 0;vertical-align:middle}.private-field-pending{color:#b42318;background:#fff0ed;border-radius:4px;padding:2px 5px;margin-left:6px}.private-person-record .private-field-missing input,.private-person-record .private-field-missing select,.private-person-record .private-field-missing textarea{border-color:#b42318;background:#fffafa}.private-person-section{border-top:1px solid var(--line);margin-top:22px;padding-top:4px}.private-person-record .private-wide{grid-column:1/-1}.private-person-record .private-person-demographics{grid-template-columns:minmax(0,1.2fr) minmax(100px,.7fr) minmax(0,1.2fr);align-items:end}.private-person-record [data-private-age]{background:#f6f7fa;color:inherit}.private-person-record select{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;background:white;color:inherit}.private-person-history{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.private-person-history summary{cursor:pointer;font-weight:600}.private-person-record .field small{font-weight:400}@media(max-width:900px){.people-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.b05-dialog{padding:22px 18px}.b05-dialog .form-row.two,.private-person-record .private-person-demographics{grid-template-columns:1fr}}
.alert-dot{display:inline-block;flex:none;width:9px;height:9px;background:#ffd34f;border-radius:50%;box-shadow:0 0 0 2px #ffd34f26}.alert-dot.new-alert{animation:shared-alert-pulse 2.8s ease-in-out infinite}
@keyframes shared-alert-pulse{0%,100%{opacity:.45;box-shadow:0 0 0 2px #ffd34f15}50%{opacity:1;box-shadow:0 0 0 5px #ffd34f30}}@media(prefers-reduced-motion:reduce){.alert-dot.new-alert{animation:none}}
.sidebar span.nav-icon{font-size:16px;text-align:center}
@media(max-width:720px){.shared-tabs{gap:6px}.shared-alert{padding:16px}.project-library-table{min-width:720px}}

/* B01 schedule selectors copied from the frozen prototype; scoped to shared settings. */
.b01-settings .schedule-config-form>.panel{margin-bottom:18px}.b01-settings .schedule-editors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.b01-settings .schedule-template{min-width:0}.b01-settings .schedule-template>h3:first-child{font-size:18px;margin-bottom:18px}.b01-settings .schedule-time-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.b01-settings .schedule-break-row{display:grid;grid-template-columns:minmax(75px,1.2fr) minmax(85px,1fr) minmax(70px,.85fr) 30px;gap:8px;align-items:end;margin-bottom:12px}.b01-settings .schedule-break-row>.small{padding:8px 4px;height:43px}.b01-settings .schedule-break-row .field{display:flex;flex-direction:column;justify-content:space-between;min-width:0;font-size:11px}.b01-settings .schedule-break-row input{min-width:0;padding-left:8px;padding-right:8px}.b01-settings .schedule-merge{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--muted);margin:17px 0}.b01-settings .schedule-merge input{flex-shrink:0;margin-top:4px}.b01-settings .schedule-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;background:#f3f5fa;border-radius:10px;margin:16px 0}.b01-settings .schedule-summary>div:first-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px}.b01-settings .schedule-summary small{display:block;color:var(--muted);font-size:11px}.b01-settings .schedule-summary strong{font-size:27px;color:var(--brand-blue);white-space:nowrap}.b01-settings .schedule-summary strong span{font-size:14px;font-weight:400}.b01-settings .schedule-summary b{display:block;font-size:15px;margin-top:4px}.b01-settings .schedule-timeline{list-style:none;padding:0;margin:0}.b01-settings .schedule-timeline li{display:grid;grid-template-columns:105px 1fr 55px;gap:8px;align-items:center;padding:9px 10px;border-bottom:1px solid #e8eaf0;font-size:12px}.b01-settings .schedule-timeline li>span:last-child{text-align:right;white-space:nowrap;color:var(--muted)}.b01-settings .schedule-timeline .break{border-radius:7px;background:#fff4ed;color:#9b421d}.b01-settings .schedule-timeline .cleanup{background:#eef0f6;border-radius:7px}.b01-settings .week-schedule{margin-top:24px}.b01-settings .week-schedule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.b01-settings .week-schedule-grid select{font-size:12px}.b01-settings .week-schedule-grid small{display:block}.b01-settings .schedule-details{margin:15px 0}.b01-settings .schedule-details summary{cursor:pointer;color:var(--muted);padding:8px 0}.b01-settings .calendar .calendar-minutes{font-weight:600;color:#565d7b;margin-bottom:8px}.b01-settings .capture-day-header{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:18px;flex-wrap:wrap}.b01-settings .capture-day-header label{min-width:220px;flex:1;max-width:400px}.b01-settings .capture-day-header strong,.b01-settings .capture-day-header small{display:block}.b01-settings .capture-day-header strong{font-size:18px;margin:6px 0}.b01-settings .capture-day-header small{font-size:11px;color:var(--muted)}.b01-settings .daily-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:15px 0}.b01-settings .daily-metrics small{display:block;font-size:12px}.b01-settings .daily-metrics b{display:block;font-size:22px}.b01-settings .board .help{color:#d9dce9}.b01-settings .board .daily-metrics{border:1px solid #ffffff30;border-radius:12px;padding:18px}.b01-settings .schedule-config-form+.panel{margin-top:18px}.b01-settings .schedule-error[hidden]{display:none}.b01-settings #day-schedule-form .schedule-template{margin-top:20px}.b01-settings #day-schedule-form .actions{margin-top:18px}.b01-settings #day-schedule-form [readonly]{background:#f5f6f9}@media(max-width:1300px){.b01-settings .schedule-editors{grid-template-columns:1fr}.b01-settings .schedule-template .schedule-preview{max-width:none}.b01-settings .schedule-break-row{grid-template-columns:1.2fr 1fr 1fr 35px}.b01-settings .week-schedule-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.b01-settings .week-schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.b01-settings .daily-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.b01-settings .schedule-time-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.b01-settings .schedule-time-fields input{padding:8px 4px}.b01-settings .schedule-break-row{grid-template-columns:1fr 1fr 1fr 30px}.b01-settings .schedule-summary{gap:7px}.b01-settings .schedule-summary>div:first-child{flex-wrap:wrap}.b01-settings .schedule-timeline li{grid-template-columns:100px 1fr 48px}.b01-settings .mini-stats{flex-wrap:wrap}}
/* B01 effective base styles, preserving the real access controls. */
.shell{grid-template-columns:238px minmax(0,1fr);background:#fff;--ink:#303247;--muted:#6b6e7d;--green:var(--brand-structure,#36374b);--brand-blue:var(--brand-structure,#36374b);--brand-red:var(--red,#d70d15);--radius:15px}
.shell .main{min-width:0}.shell .sidebar .brand img{max-width:190px}.shell .sidebar .brand{margin:0 8px 20px}
.b01-settings{min-width:0}.b01-settings>.settings-menu{display:flex;gap:6px;margin-bottom:20px;padding-bottom:4px;border:0;flex-wrap:nowrap;overflow-x:auto;max-width:100%}
.b01-settings>.settings-menu button{flex:0 0 auto;white-space:nowrap;padding:10px 12px;border-radius:9px;font-weight:600}
.b01-settings .panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:0 3px 6px #172c2b03;margin-top:0}
.b01-settings h2{font-size:18px;margin:0 0 15px;font-weight:700}.b01-settings h3{font-size:14px;margin:0 0 12px}
.b01-settings .sub{color:var(--muted);margin:4px 0 0}.b01-settings .help{font-size:11px;color:var(--muted);margin-top:5px}
.b01-settings .field{display:block;font-size:12px;font-weight:600;color:#55596c;margin:0;min-width:0}
.b01-settings input:not([type=checkbox]),.b01-settings select{font:inherit;font-weight:400;width:100%;border:1px solid #d7d9e2;border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);margin-top:5px}
.b01-settings .form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:15px}
.b01-settings .notice{font-size:12px;margin:16px 0;padding:12px 14px;border-radius:8px;background:#f4f5fa}
.b01-settings [data-shared-form]:not(.schedule-config-form){background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;margin:0 0 20px}
.b01-settings .shared-logo-preview{padding:0;background:none;width:220px;max-width:100%;height:auto}
/* B01 uniform controls match the validated prototype without changing project forms. */
.b01-settings [data-shared-form="uniformColors"] .uniform-row{display:grid;grid-template-columns:22px minmax(100px,1fr) 54px auto;gap:10px;align-items:center;max-width:730px;margin:12px 0}
.b01-settings [data-shared-form="uniformColors"] .uniform-row input{width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:7px;margin-top:0}
.b01-settings [data-shared-form="uniformColors"] .uniform-row input[type=color]{height:40px;padding:4px}
.b01-settings [data-shared-form="uniformColors"] .uniform-row .actions{gap:4px;width:auto}
.b01-settings [data-shared-form="uniformColors"] .uniform-row button{padding:8px 12px;min-height:0;border-radius:9px;font-weight:600}
.b01-settings [data-shared-form="uniformColors"] .uniform-row b{font-size:12px;color:var(--muted)}
@media(max-width:650px){.b01-settings [data-shared-form="uniformColors"] .uniform-row{grid-template-columns:18px minmax(75px,1fr) 42px auto;gap:6px}.b01-settings [data-shared-form="uniformColors"] .uniform-row button{padding:6px 8px}}

.b01-settings .mini-stats{display:flex;gap:35px;flex-wrap:wrap}.b01-settings .mini-stats small{display:block;color:var(--muted);font-size:11px}.b01-settings .mini-stats b{display:block;font-size:22px}
@media(max-width:720px){.shell{grid-template-columns:1fr}.b01-settings .panel{padding:16px}.b01-settings .form-row{grid-template-columns:1fr}}
.sidebar .nav-link>.nav-icon{flex:0 0 22px;width:22px;height:22px;line-height:22px;text-align:center}.sidebar .nav-link>span:not(.nav-icon){flex:1}
.shell .b01-heading{margin:24px 0 23px}.shell .b01-heading h1{font-size:30px;margin:5px 0 4px;line-height:1.3}.shell .eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--brand-structure,#36374b);font-weight:700;text-transform:uppercase}.shell .b01-heading .sub{color:var(--muted);margin:4px 0 0}
@media(max-width:720px){.shell .sidebar{position:static;height:auto;max-height:none;overflow:visible;padding:14px;width:100%}.shell .sidebar nav{display:block;max-height:310px;overflow-y:auto;overflow-x:hidden}.shell .sidebar .brand img{max-width:175px}.shell .sidebar .brand{margin-bottom:10px}.shell .sidebar .project-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:6px}.shell .sidebar .project-links[hidden]{display:none}.shell .main{margin:0;width:100%;padding:20px 14px}.shell .b01-heading h1{font-size:25px}}
.shell .sidebar button.nav-project-label{display:block;background:transparent;border:0;border-radius:0;min-height:0;width:100%;margin:23px 0 9px;padding:0 9px;color:#b5b6c8;font-size:10px;text-transform:uppercase;letter-spacing:1.7px;line-height:1.5}.shell .sidebar button.nav-project-label:hover{color:#fff}
.nav-alert-badge{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto!important;background:#e5bd32;color:#36374b;border-radius:10px;padding:1px 6px;font-size:10px}.nav-alert-badge i{width:5px;height:5px;background:currentColor;border-radius:50%}.nav-alert-badge.new-alert{animation:shared-alert-pulse 1.5s infinite}.nav-project{position:relative}.sidebar .nav-project-alert{position:absolute;right:5px;top:10px;width:auto;min-height:24px;margin:0;padding:2px;border:0;z-index:1}.nav-project:has(.nav-project-alert)>.project-toggle{padding-right:42px}@media(prefers-reduced-motion:reduce){.nav-alert-badge.new-alert{animation:none}}
@media(min-width:721px){.shell .sidebar{display:flex;flex-direction:column;overflow:hidden}.shell .sidebar nav{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}.shell .sidebar .side-bottom{flex:0 0 auto;margin-top:12px;border-top:1px solid #ffffff26;padding:18px 12px 0;font-size:12px}.side-bottom strong,.side-bottom small{display:block}.side-bottom strong{margin-top:3px;color:#fff}.side-bottom small{color:#bec0cf}.session-dot{display:inline-block;width:7px;height:7px;background:#8dd5a6;border-radius:50%;margin-right:6px}}
@media(max-width:720px){.shell .sidebar .side-bottom{display:none}}
.shell button:focus-visible,.shell a:focus-visible,.shell input:focus,.shell select:focus,.shell textarea:focus{outline:3px solid #aac9ef;outline-offset:2px}

/* Pronóstico del prototipo validado. */
.summary-rhythm-comparison,.summary-forecast-status{display:block;margin-top:8px;font-size:12px;line-height:1.45}
.summary-rhythm-comparison.slower{color:#8a5e0a}.summary-rhythm-comparison.faster{color:#28764b}
.summary-forecast-signal{display:inline-block;max-width:100%;box-sizing:border-box;margin-top:10px;padding:8px 10px;border:1px solid transparent;border-radius:7px;color:#171717;font-size:12px;font-weight:700;line-height:1.45;cursor:default}
.summary-forecast-signal.green{background:#e5f3e9;border-color:#b8d9c1}.summary-forecast-signal.yellow{background:#fff3ce;border-color:#e8d28c}.summary-forecast-signal.red{background:#fbe7e6;border-color:#e9bcb8}
.summary-forecast-note{display:block;margin-top:4px;font-size:11px;font-weight:400}.summary-forecast-review{display:block;margin-top:8px;font-size:11px;white-space:normal}
button.summary-forecast-signal{cursor:pointer;text-align:left;white-space:normal}button.summary-forecast-signal:hover{box-shadow:0 0 0 2px #172c2b20}button.summary-forecast-signal:focus-visible{outline:3px solid #435c8b;outline-offset:3px}.summary-forecast-link{display:flex;align-items:center;gap:6px;margin-top:5px;text-decoration:underline;text-underline-offset:2px}.summary-forecast-link svg{width:15px;height:15px;flex-shrink:0}#project-work-calendar{scroll-margin-top:20px}
.standard-forecast-result{padding:20px;margin:18px 0;background:#f5f7fb;border:1px solid var(--line);border-radius:10px}.standard-forecast-result .label{font-size:13px}.standard-forecast-result strong{display:block;font-size:38px;margin:10px 0;color:var(--green)}.standard-forecast-result strong small{font-size:16px;font-weight:500}.standard-forecast-result p{margin:0;font-size:13px}.standard-forecast-facts{display:grid;grid-template-columns:1fr auto;gap:12px 20px;font-size:13px}.standard-forecast-facts dt{color:var(--muted)}.standard-forecast-facts dd{margin:0;text-align:right;font-weight:600}.standard-forecast-note{font-size:12px;line-height:1.6}
.forecast-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0 0 22px}.forecast-card{display:flex;flex-direction:column;min-width:0;padding:22px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 3px 6px #172c2b03}.forecast-card-label{min-height:36px;font-size:12px;color:var(--muted)}.forecast-card-value{display:block;font-size:30px;font-weight:700;letter-spacing:-1px;margin:6px 0;overflow-wrap:anywhere}.forecast-card-value .summary-value-unit{font-size:14px;font-weight:500;letter-spacing:0;color:var(--muted)}.forecast-card-foot{font-size:12px;color:var(--muted);line-height:1.5}.forecast-card>.actions{margin-top:auto;padding-top:16px}.forecast-cards~dialog{max-width:680px;width:calc(100% - 40px);border:1px solid var(--line);border-radius:12px;padding:24px}.forecast-cards~dialog::backdrop{background:#17202b70}@media(max-width:1000px){.forecast-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.forecast-cards{grid-template-columns:1fr}.forecast-card-value{font-size:25px}.standard-forecast-facts{grid-template-columns:1fr}.standard-forecast-facts dd{text-align:left}}

.req-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.req-stats .value{font-size:32px}.req-filters{display:grid;grid-template-columns:1.5fr 1.3fr 1fr 1fr;gap:12px;margin-bottom:16px}.req-filters .field{min-width:0}.req-table{font-size:13px;table-layout:fixed;min-width:760px}.req-table th:first-child{width:32%}.req-table th:nth-child(2){width:18%}.req-table th:nth-child(3){width:20%}.req-table th:nth-child(4){width:16%}.req-table th:last-child{width:14%}.req-table td{vertical-align:top;overflow-wrap:anywhere;padding:14px 9px}.req-table .small{white-space:normal}.req-due{display:inline-block;padding:5px 8px;border-radius:6px;font-weight:600;font-size:12px;background:#eff1f5}.req-due.soon,.req-due.today{background:#fff1c9}.req-due.overdue{background:#fce0e0;color:#8e2530}.req-due.closed{background:#e3f2e8}.req-detail #commitment-form{margin-top:20px;padding:16px;background:#f6f7fa;border-radius:10px}.req-detail .req-reason,.req-history p{white-space:pre-wrap;overflow-wrap:anywhere}.req-decision-actions{margin:20px 0}.req-history{border-top:1px solid #e0e4eb;padding:12px 0;font-size:13px}.req-history p{margin:6px 0}.req-history .help{font-size:12px}dialog.req-detail{width:min(820px,94vw);max-height:90vh;overflow:auto}@media(max-width:800px){.req-filters{grid-template-columns:1fr 1fr}}@media(max-width:550px){.req-stats,.req-filters{grid-template-columns:1fr}}

.shared-alert.inventory-success{border-left:4px solid #80b995}.shared-alert.inventory-success h2{color:#24553a}

.reprocess-section{border-top:1px solid #dce1e8;margin-top:22px;padding-top:16px}.reprocess-section h3{font-size:15px}.reprocess-section .line-box,.rework-history .line-box{padding:14px;border:1px solid #dce1e8;border-radius:10px;margin-top:14px}.reprocess-section details{margin:14px 0}.reprocess-section summary,.rework-history summary{cursor:pointer;font-weight:600;font-size:13px}.reprocess-extra{background:#f7f9fc}.reprocess-section .actions{flex-wrap:wrap}.rework-review{width:min(820px,94vw);max-height:90vh;overflow:auto}.rework-review p,.rework-history p{white-space:pre-wrap;overflow-wrap:anywhere}

.summary-forecast-signal.neutral{background:#f1f3f6;border-color:#dce1e8;color:#414858}
.notification-preferences th:last-child{width:270px}.notification-preferences .help{margin:5px 0 0}.notification-preferences select{width:100%}
.resource-correction{width:min(820px,94vw);max-height:90vh;overflow:auto}.resource-correction p,.req-history p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Product catalog and reusable per-project settings. */
.product-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.product-card{min-width:0;display:flex;flex-direction:column}.product-card h2{font-size:21px;overflow-wrap:anywhere}.product-card .section-head{align-items:flex-start}.product-card .chip{flex-shrink:0}
.product-presentations,.product-standards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.product-presentations{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin:6px 0 18px}.product-presentations>div,.product-standards>div{display:flex;flex-direction:column;gap:4px}.product-presentations strong,.product-standards strong{font-size:24px}.product-presentations small,.product-standards small{font-size:12px;font-weight:400;color:var(--muted)}.product-presentations>div>span:last-child,.product-standards>div>span{font-size:12px;color:var(--muted)}.product-card .bottom-save{margin-top:auto;padding-top:16px}.product-palette{gap:9px;margin:18px 0}.flavor-tag{color:var(--ink);font-size:12px;overflow-wrap:anywhere}.product-palette .flavor-tag{border:1px solid var(--line);background:#fff;border-radius:20px;padding:5px 9px}.swatch{border:1px solid #0002;flex-shrink:0}
.product-editor-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px}.product-editor-grid .panel{min-width:0}.product-section-title{margin-top:24px}.product-flavors-panel .section-head{flex-wrap:wrap}.product-flavor-row{display:grid;grid-template-columns:10px minmax(90px,1fr) 62px auto;gap:10px;align-items:end;border-bottom:1px solid var(--line);padding:12px 0}.product-flavor-row>.swatch{align-self:center;margin-top:18px}.product-flavor-row>.small{margin-bottom:2px}.product-flavor-row input{margin-top:4px}.product-flavor-row input[type=color]{height:43px}.product-flavor-row .field{min-width:0}.product-card .bottom-save .help{max-width:55%}.product-card .product-palette{margin-bottom:22px}.product-editor-grid .form-row.two{gap:12px}.product-editor-grid .field{font-size:12px}#product-error[hidden],#product-override[hidden],#no-product-flavors[hidden]{display:none}
@media(max-width:1050px){.product-editor-grid{grid-template-columns:1fr}}@media(max-width:800px){.product-cards{grid-template-columns:1fr}}@media(max-width:420px){.product-flavor-row{grid-template-columns:minmax(80px,1fr) 56px auto}.product-flavor-row>.swatch{display:none}.product-flavor-row{gap:6px}}

/* Keep paired captions and controls aligned in product configuration. */
.product-fields-row>.field{display:flex;flex-direction:column;min-width:0}
.product-fields-row .product-field-caption{display:block;flex:1;line-height:1.5}
.product-fields-row .product-field-caption small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
.product-fields-row>.field>input{flex-shrink:0;margin-top:6px}

/* Flavor priority handles: pointer dragging, keyboard movement and visible ranks. */
.product-flavor-row{grid-template-columns:32px minmax(90px,1fr) 62px auto;gap:8px;border-radius:8px;padding:12px 4px}
.flavor-drag-handle{touch-action:none;user-select:none;cursor:grab;display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:end;gap:0;padding:2px;min-width:32px;height:43px;margin-bottom:2px;border-left:3px solid var(--line);color:var(--muted);background:#f8f9fc}
.flavor-drag-handle .flavor-grip{font-size:20px;line-height:20px}.flavor-drag-handle .flavor-rank{font-size:10px;line-height:13px;font-weight:700;color:var(--ink)}
.flavor-dragging{background:#f0f2fa;box-shadow:0 2px 10px #36374b24;outline:1px solid #b5b8cb}.flavor-dragging .flavor-drag-handle{cursor:grabbing}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:420px){.product-flavor-row{grid-template-columns:30px minmax(65px,1fr) 47px auto;gap:5px}.product-flavor-row>.small{padding:6px}.flavor-drag-handle{min-width:30px}}
.product-editor-grid .form-row.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.product-palette{display:flex;flex-wrap:wrap}.product-card .bottom-save{display:flex;align-items:center;justify-content:space-between;gap:12px}.product-editor-grid .field input{box-sizing:border-box;width:100%}.product-flavors-panel h2{font-size:20px}.product-flavor-row .field{margin:0}.product-editor-grid .flavor-color-field input{padding:3px}.product-flavor-row .flavor-drag-handle{border-left-color:var(--flavor-color,var(--line))}
.material-catalog-editor .form-row{display:grid;gap:16px;margin-bottom:16px}.material-catalog-editor .form-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.material-catalog-editor .form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.material-catalog-editor .mat-presentation-section{border:1px solid #d9dce5;border-radius:10px;padding:14px 16px;margin:12px 0}.material-catalog-editor .mat-presentation-toggle{display:flex;align-items:center;gap:9px;font-weight:600;cursor:pointer}.material-catalog-editor .mat-presentation-toggle input{width:17px;height:17px;margin:0;flex:0 0 auto}.material-catalog-editor fieldset{min-width:0}.material-catalog-editor fieldset[hidden]{display:none}.material-catalog-editor .mat-equivalence-row{border-top:1px solid #e4e6ed;padding:16px 0;margin-top:12px}.material-catalog-editor .mat-link,.material-history-dialog .mat-link{border:1px solid #d9dce5;border-radius:10px;padding:16px;margin:16px 0}.material-catalog-dialog,.material-history-dialog{border:0;border-radius:14px;width:min(900px,94vw);max-height:90vh;overflow:auto;padding:24px;color:var(--ink,#36374b);box-sizing:border-box}.material-catalog-dialog>button[data-action=res-form-back]{display:block;margin-left:auto}.material-catalog-dialog::backdrop,.material-history-dialog::backdrop{background:#0007}.material-catalog-editor input,.material-catalog-editor select{box-sizing:border-box;max-width:100%;width:100%}.material-catalog-editor input[type=checkbox]{width:17px}.material-catalog-editor legend input{display:inline-block}.material-history-dialog .table-wrap{max-width:100%;overflow:auto}@media(max-width:650px){.material-catalog-editor .form-row.two,.material-catalog-editor .form-row.three{grid-template-columns:minmax(0,1fr)}.material-catalog-dialog,.material-history-dialog{padding:16px}}
.mat-ledger{padding:18px;background:white;border:1px solid #d9dce5;border-radius:12px;margin-top:18px}.mat-ledger>summary{font-weight:700;cursor:pointer}.mat-ledger>.table-wrap{max-height:540px;overflow:auto}.mat-ledger table{min-width:640px}.mat-ledger td{vertical-align:top}.mat-ledger td details>summary{cursor:pointer;font-weight:600}.mat-ledger td li{margin-bottom:8px}

.material-catalog-editor .mat-presentation-fields{padding:16px 0 0;border:0;margin:0;min-width:0}.material-catalog-editor .mat-presentation-fields .form-row{gap:14px;margin-bottom:0}.material-catalog-editor .mat-presentation-fields .field{display:block;margin:0;font-size:12px;line-height:1.5;color:#55596c}.material-catalog-editor .mat-presentation-fields .field input{margin-top:6px;padding:10px 11px}.material-catalog-editor .mat-presentation-fields .help{font-size:11px;line-height:1.5;margin-top:5px}

/* Catálogo general de insumos */
.supply-catalog th[scope=row]{font-weight:700}
.supply-catalog .help{margin:4px 0 0}
.supply-catalog .empty{padding:22px 0;color:var(--muted)}
.supply-catalog-dialog{width:min(640px,92vw);max-width:none;max-height:calc(100vh - 48px);box-sizing:border-box;border:0;border-radius:16px;padding:28px;overflow:auto;box-shadow:0 20px 70px #0003}
.supply-catalog-dialog::backdrop{background:#0007}
.supply-catalog-dialog>button.close{float:right}
.supply-catalog-dialog .form-row{display:grid;gap:12px}
.supply-catalog-dialog .form-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.supply-catalog-dialog .field{min-width:0}
.supply-catalog-dialog .mat-presentation-section{border:1px solid #d9dce5;border-radius:10px;padding:14px 16px;margin:12px 0}
.supply-catalog-dialog .mat-presentation-toggle{display:flex;align-items:center;gap:9px;font-weight:600;cursor:pointer}
.supply-catalog-dialog .mat-presentation-toggle input{width:17px;height:17px;margin:0;flex:0 0 auto}
.supply-catalog-dialog .mat-presentation-fields,.supply-catalog-dialog .sup-consumption-editor>fieldset{border:0;padding:14px 0 0;margin:0;min-width:0}
.supply-catalog-dialog .sup-consumption-editor{margin:20px 0}
.supply-catalog-dialog .sup-consumption-editor .mat-presentation-toggle{margin:16px 0}
.supply-catalog-dialog [hidden]{display:none}
@media(max-width:720px){.supply-catalog-dialog .form-row.two{grid-template-columns:minmax(0,1fr)}}

/* Preparación de insumos del proyecto */
.sup-locked-fields{border:0;margin:0;padding:0;min-width:0}
.sup-preparation-table{min-width:680px}
.sup-preparation-table th,.sup-preparation-table td{vertical-align:top}
.sup-preparation-table td:nth-child(4){min-width:165px}
.sup-preparation-table .help{font-weight:400}
.sup-setup-row input[readonly]{background:#f5f6fa}
.sup-setup-row .sup-auto-choice{display:flex;gap:7px;align-items:flex-start;font-size:12px;line-height:1.4;margin-top:8px;font-weight:400}
.sup-setup-row input[type=checkbox]{width:16px;height:16px;flex:none;margin:0}
.sup-reserve{display:block;margin-top:12px;font-size:11px}
.sup-reserve input{display:block;width:85px;margin-top:5px}
.sup-package-suggestion{margin:8px 0;padding:8px 10px;border-left:3px solid #cfd6e3;background:#f5f7fa;border-radius:4px;line-height:1.45}
.sup-package-suggestion strong{font-size:12px}
.sup-package-suggestion .help{margin-top:3px;font-size:11px}
.sup-preparation-picker{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}
.sup-preparation-picker .field{margin:0}

.sup-surplus-difference{font-weight:600}
.sup-surplus-difference.negative{color:#b42318}
.sup-surplus-difference.positive{color:#187344}

.forecast-cards:has(.summary-supply-card){grid-template-columns:repeat(4,minmax(0,1fr))}
.summary-supply-card{display:flex;flex-direction:column;min-width:0}
.summary-supply-card .label{font-weight:700;color:var(--ink)}
.summary-supply-card .summary-material-horizon{padding:12px 0}
.summary-supply-card .summary-material-horizon+.summary-material-horizon{border-top:1px solid var(--line)}
.summary-supply-card .summary-material-horizon h3{margin:0;font-size:12px;font-weight:600}
.summary-supply-card .summary-forecast-signal{margin-top:7px;padding:6px 8px}
.summary-supply-card .help{margin:6px 0 0;font-size:11px;line-height:1.4}
.summary-supply-card .summary-card-action{margin-top:auto;padding-top:16px}
.summary-inventory-panel{scroll-margin-top:20px;margin-top:20px;min-width:0}
.summary-inventory-panel:focus{outline:2px solid #aab8d0;outline-offset:3px}
.summary-inventory-panel .section-head{flex-wrap:wrap}
.summary-inventory-panel .summary-intro{font-size:12px;margin:0 0 16px}
.summary-period-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}
.summary-period-picker{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#f5f6fa}
.summary-period-picker button{font-size:12px;padding:7px 11px;background:transparent;border-color:transparent}
.summary-period-picker button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:white}
.summary-period-context{font-size:12px;color:var(--muted);margin:0}
.sup-summary-table{min-width:760px;table-layout:fixed;width:100%}
.sup-summary-table th,.sup-summary-table td{text-align:center;vertical-align:middle;font-variant-numeric:tabular-nums;padding:12px 7px;overflow-wrap:anywhere}
.sup-summary-table th:first-child{width:20%;min-width:0}
.sup-summary-table th:last-child{width:24%}
.sup-summary-table tbody th{background:transparent;color:var(--ink);text-transform:none;letter-spacing:0;font-size:13px;border-bottom:1px solid #edf0eb}
.sup-summary-table .help{margin-top:5px;font-size:11px;line-height:1.4;text-transform:none;letter-spacing:0;font-weight:400}
.summary-period-need{font-weight:700}
.summary-scrap{color:var(--red);font-weight:600}
.sup-negative{color:#b42318}
.sup-status{display:inline-block;padding:7px 10px;border-radius:7px;font-size:12px;font-weight:700;color:#202b30;white-space:normal}
.sup-status.covered{background:#e3f2e8}.sup-status.risk{background:#fff1c9}.sup-status.shortage{background:#fce0e0}.sup-status.unknown{background:#eceef2}
@media(max-width:1040px){.forecast-cards:has(.summary-supply-card){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.forecast-cards:has(.summary-supply-card){grid-template-columns:minmax(0,1fr)}}
