:root{--ease-ui:cubic-bezier(.22,.8,.25,1)}
#dies-view{height:100%;display:flex;flex-direction:column;background:#f0f4f6}#dies-view[hidden]{display:none}
.inventory-toolbar{height:auto;min-height:96px;display:flex;align-items:center;gap:24px;padding:20px 26px;background:#f0f4f6;border:0;flex:none}.inventory-toolbar small{font-size:10px;letter-spacing:1.4px;color:#526978}.inventory-toolbar h1{font-size:27px;font-weight:700;letter-spacing:-.7px;margin:3px 0 0}.inventory-toolbar h1 span{font-size:16px;color:#657d89;vertical-align:middle;margin-left:8px}.inventory-search{display:flex;align-items:center;gap:10px;background:white;border:1px solid #c9d6de;border-radius:12px;padding:10px 14px;margin-left:auto;min-width:240px;width:38%}.inventory-search span{font-size:24px}.inventory-search input{border:0;outline:0;font:inherit;width:100%;background:none;font-size:14px}
.inventory-body{display:grid;grid-template-columns:minmax(0,1fr) 390px;min-height:0;flex:1;gap:20px;padding:0 24px 22px}.inventory-catalog{overflow:auto;min-width:0;padding:0 3px}.die-filters{display:flex;gap:7px;padding:0 0 16px;flex-wrap:wrap;position:sticky;top:0;background:#f0f4f6;z-index:2}.die-filters button{border:0;border-radius:20px;background:#e1e9ee;padding:8px 12px;font-size:12px;min-height:36px}.die-filters button[aria-pressed=true]{background:#102f5a;color:white}.die-filters span{opacity:.7;margin-left:5px}.die-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:15px}.die-card{border:1px solid #d1dce3;border-radius:17px;overflow:hidden;background:white;text-align:left;padding:0 16px;transition:transform .2s var(--ease-ui),box-shadow .2s,border-color .2s;position:relative;min-width:0}.die-card:hover{transform:translateY(-3px);box-shadow:0 9px 20px #102f4910}.die-card.selected{border:2px solid #007b5c;padding:0 15px;box-shadow:0 0 0 3px #007b5c12}.die-visual{margin:0 -16px 14px;padding:12px 16px 9px;background:#e9f2ef;color:#397b6b;display:flex;flex-direction:column;align-items:center;position:relative}.die-visual svg{height:115px;width:100%;max-width:240px}.die-visual small{font-size:9px;color:#55786c}.die-card>strong{display:block;font-size:19px;letter-spacing:.3px;margin:12px 0 5px;color:#102f5a}.die-card h2{font-size:14px;line-height:1.4;margin:0 0 10px;font-weight:550}.die-card>p{font-size:12px;color:#526978;line-height:1.5;margin:0 0 14px}.die-card footer{padding:12px 0;border-top:1px solid #edf1f3;display:flex;justify-content:space-between;font-size:11px;color:#526978}.die-state{display:inline-flex;padding:5px 9px;font-size:11px;font-weight:650;border-radius:6px;background:#e5f4ed;color:#056947}.die-state.making{background:#e8effa;color:#254f86}.die-state.repair{background:#fff0e6;color:#9c4d15}.die-state.retired{background:#eaedef;color:#53616c}
.die-detail{background:white;border:1px solid #d0dce3;border-radius:18px;padding:22px;overflow:auto;min-width:0;animation:panel-in .24s var(--ease-ui)}.die-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px}.die-detail-head small{font-size:10px;color:#647b88;letter-spacing:1px}.die-detail h2{font-size:23px;margin:6px 0 0;font-weight:750}.die-detail h3{font-size:16px;line-height:1.4;margin:16px 0}.die-detail button:not(.primary){background:#f5f8fa;border:1px solid #ccd9e1;border-radius:9px;padding:9px 13px;font-size:12px;min-height:42px}.die-detail .primary{border-radius:10px;width:100%;margin-top:12px}.die-location{background:#102f5a;color:white;padding:18px;border-radius:12px;display:flex;flex-direction:column;gap:8px;margin:20px 0}.die-location span{font-size:11px;color:#bcd2e4}.die-location strong{font-size:19px}.die-location small{color:#d6e3ee}.die-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0}.die-facts dt{font-size:11px;color:#526978;margin-bottom:6px}.die-facts dd{margin:0;font-size:13px;font-weight:600}.die-notes{font-size:12px;line-height:1.65;color:#526978}.die-detail section{border-top:1px solid #e4ebef;margin-top:22px;padding-top:5px}.linked-products{display:grid;gap:6px;margin-bottom:15px}.linked-products a{display:flex;justify-content:space-between;align-items:center;text-decoration:none;padding:12px;background:#f0f6f4;border-radius:8px;color:#123e50;font-size:13px}.linked-products small{display:block;font-size:10px;color:#647b88;margin-top:4px}.die-detail label{display:block;font-size:12px;color:#385465;line-height:1.5}.die-detail input,.die-detail select,.die-detail textarea{display:block;width:100%;margin:6px 0 10px;padding:11px;font:inherit;font-size:14px;border:1px solid #b7cbd6;border-radius:8px;background:#fcfdfd;color:#163d50;min-height:44px}.die-detail input:focus,.die-detail select:focus,.die-detail textarea:focus{outline:2px solid #73b3a3;outline-offset:2px}.die-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}.die-fields .wide{grid-column:1/-1}.die-error{color:#a42c26;font-size:13px;line-height:1.5}.die-upload{background:#f4f8fa;padding:12px;border:1px dashed #a9becb;border-radius:8px}.die-upload input{border:0;padding:0;background:none;font-size:11px;min-height:0}.die-files{display:grid;gap:7px;margin-bottom:12px}.die-files p{font-size:12px;color:#526978;line-height:1.6}.die-files button{text-align:left;overflow-wrap:anywhere}.die-files small{display:block;color:#526978;margin-top:3px}.die-history{margin-top:22px;font-size:12px}.die-history summary{cursor:pointer;padding:10px 0}.die-history p{border-left:2px solid #bed2db;padding-left:12px;line-height:1.5}.die-history small{display:block;color:#647b88}.inventory-empty{padding:30px 12px;color:#526978;line-height:1.6}.inventory-link{display:inline-flex;color:#006b52;font-size:13px;font-weight:650;padding:10px 0;text-underline-offset:4px}.die-plan select{width:100%;padding:12px;border:1px solid #9eb8c7;border-radius:8px;background:white;margin:8px 0 14px}
@keyframes panel-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
#detail:not([hidden]),#work-view:not([hidden]){animation:panel-in .24s var(--ease-ui)}
.map-focus-nav{position:absolute;left:15px;bottom:14px;z-index:4;display:flex;padding:4px;background:#ffffffef;border:1px solid #c7d7e0;border-radius:12px;gap:3px;box-shadow:0 4px 15px #102f4910}.map-focus-nav button{min-height:38px;border:0;background:transparent;border-radius:8px;padding:7px 12px;font-size:12px}.map-focus-nav button[aria-pressed=true]{background:#102f5a;color:white}
#map-view .map-hint{max-width:47%;line-height:1.4}#map-view .place-label[aria-pressed=true]{transform:translate(-50%,-100%) scale(1.04)}
.study-marker{font-size:10px;font-weight:650;color:#007b5c;background:#e7f3ed;border-radius:5px;padding:4px 6px;text-decoration:none;white-space:nowrap}.sound-confirmation{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#102f5a;color:white;padding:12px 18px;border-radius:12px;font-size:13px;z-index:90;box-shadow:0 5px 20px #102f4922;pointer-events:none;animation:panel-in .2s ease}
@media(max-width:1100px){.inventory-body{grid-template-columns:minmax(0,1fr) 340px;gap:12px;padding:0 12px 12px}.inventory-toolbar{padding:16px;gap:12px}.inventory-toolbar h1{font-size:23px}.die-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.die-detail{padding:16px}.die-visual svg{height:90px}.top-right{gap:5px}.study-marker{display:none}.inventory-search{min-width:170px}}
@media(max-width:850px){.inventory-body{grid-template-columns:minmax(0,1fr) 320px}.inventory-toolbar small{display:none}.inventory-toolbar{min-height:75px}.inventory-search{width:35%}.top-spaces button{padding:8px!important}.brand img{width:105px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-motion=reduced] *,html[data-motion=reduced] *::after{animation:none!important;transition:none!important}
body:has(#alarm-strip:not([hidden])) .map-focus-nav{bottom:78px}


/* Selection is persistent and distinct from hover or keyboard focus. */
button[aria-pressed=true],.filters button[aria-pressed=true],#production-view .filters button[aria-pressed=true]{background:#102f5a!important;color:white!important;border-color:#102f5a!important;box-shadow:inset 0 -3px 0 #42b5a0,0 0 0 2px #102f5a20!important;font-weight:750}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #007d75!important;outline-offset:3px}
[data-stage],[data-select]{--stage:#526778;--tint:#edf1f5}
[data-stage=queue],[data-select=queue]{--stage:#596e85;--tint:#e9eff6}
[data-stage=start],[data-select=start]{--stage:#77621e;--tint:#f5f0df}
[data-stage=printing],[data-select=printing]{--stage:#275db2;--tint:#e8f0fc}
[data-stage=laminating],[data-select=laminating]{--stage:#267d8b;--tint:#e5f3f5}
[data-stage=die],[data-select=die]{--stage:#13785d;--tint:#e1f2eb}
[data-stage=stamping],[data-select=stamping]{--stage:#895ca4;--tint:#f1eaf7}
[data-stage=cut],[data-select=cut]{--stage:#387967;--tint:#e8f3e8}
[data-stage=finishing],[data-select=finishing]{--stage:#b0692d;--tint:#fbefdf}
[data-stage=ready_delivery],[data-select=ready_delivery]{--stage:#a94a42;--tint:#f9eae7}
[data-stage=delivery],[data-select=delivery]{--stage:#456eb1;--tint:#eaf0fa}
[data-stage=delivered],[data-select=delivered]{--stage:#32744b;--tint:#e7f2e9}
#production-view .stage-column{background:var(--tint);border-top:4px solid var(--stage)}
#production-view .column-head{background:var(--tint);color:var(--stage)}
#production-view .column-head h2{color:var(--stage)}
.product-stages button[data-select]{border-left:4px solid var(--stage);background:var(--tint);color:#163549}
.product-stages button[data-select][aria-pressed=true]{background:var(--stage)!important;color:white!important;border-color:var(--stage)!important;box-shadow:0 0 0 2px white,0 0 0 4px var(--stage)!important}
.product-stages button[data-select][aria-pressed=true]::after{content:'✓';font-weight:900;margin-left:6px}
input[type=checkbox]{accent-color:#007b5c}.execution-checks label:has(input:checked){background:#dff2e8;border-color:#007b5c}
.map-zoom{position:absolute;right:16px;bottom:66px;z-index:5;display:flex;align-items:center;gap:9px;background:white;padding:8px 10px;border:1px solid #b6c9d6;border-radius:12px;box-shadow:0 4px 15px #102f4910}.map-zoom button{width:38px;height:38px;border:0;border-radius:8px;background:#e9eff5;font-size:22px}.map-zoom label{display:flex;align-items:center;gap:8px;font-size:12px}.map-zoom input{width:90px;accent-color:#102f5a}.map-zoom output{width:38px;font-size:12px;font-weight:700}
.map-insights{display:flex;gap:10px;padding:10px 16px 0;flex:none}.map-insights button{display:grid;grid-template-columns:auto 1fr;gap:1px 12px;text-align:left;border:1px solid #d6e1e8;background:#fff;border-radius:12px;padding:9px 14px;flex:1;color:#17384c}.map-insights strong{grid-row:span 2;align-self:center;font-size:26px}.map-insights span{font-size:12px;font-weight:650}.map-insights small{font-size:10px;color:#596f80}.map-insights [data-insight=urgent]{border-left:4px solid #b65b38}.map-insights [data-insight=blocked]{border-left:4px solid #a7474c}.map-insights [data-insight=due]{border-left:4px solid #9e6b24}.insight-work{display:block;padding:14px;margin:8px 0;background:#eef4f7;color:#183b52;border-radius:9px;text-decoration:none}
.inventory-body{display:block}.die-grid{grid-template-columns:repeat(auto-fill,minmax(210px,260px))}.inventory-catalog{height:100%}.die-dialog{width:min(960px,calc(100vw - 48px));max-height:calc(100vh - 48px);border:1px solid #b9cdd8;border-radius:22px;padding:0;background:white;color:#163d50;box-shadow:0 25px 90px #102f4933}.die-dialog::backdrop,.setup-dialog::backdrop{background:#102c4566;backdrop-filter:blur(4px)}.die-dialog .die-detail{border:0;border-radius:0;overflow:visible;padding:28px;animation:panel-in .22s ease}.die-close{display:block;margin:14px 18px 0 auto;border:1px solid #c3d3df;border-radius:9px;background:white;padding:10px 14px;min-height:42px;color:#153d51}.die-dialog .die-location{max-width:450px}.die-assets{display:grid;grid-template-columns:1fr 1fr;gap:24px}.die-photo-preview{height:200px;background:#eef4f5;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}.die-photo-preview img,.die-visual img{width:100%;height:100%;object-fit:contain}.die-visual{height:170px}.die-photo-empty{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.die-photo-empty svg{height:110px;max-width:240px;width:100%}.die-photo-empty small{font-size:10px;color:#516f7f}.die-usage{display:grid;grid-template-columns:1fr auto;gap:7px 15px;padding:16px;background:#f2f6f8;border-radius:10px;margin:10px 0}.die-usage span,.die-usage small{grid-column:1}.die-usage small{font-size:11px;color:#5b7382}.die-usage button,.die-usage a{grid-column:2;font-size:12px}.die-usage a{color:#006a54}.setup-dialog{width:min(760px,calc(100vw - 60px));max-height:85vh;padding:24px;border:1px solid #c3d3dd;border-radius:18px;color:#17394d}.setup-dialog h2{font-size:23px}.setup-dialog select{margin:12px;padding:10px}.setup-dialog section{border-top:1px solid #d5e0e8;margin-top:16px}.setup-dialog p{white-space:pre-wrap}.setup-dialog .die-facts{margin:20px 0}
@media(max-width:1100px){.map-insights{gap:6px;padding:8px 12px 0}.map-insights button{padding:8px;gap:2px 8px}.map-insights strong{font-size:22px}.map-zoom{bottom:76px}.die-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}}

#map-view #show-alert{display:none} #production-view .card-foot{display:flex;flex-wrap:wrap} #production-view .card-foot button{min-width:0;white-space:normal;flex:1 1 48px;padding:6px 4px} .die-dialog .die-detail-head{margin-bottom:10px} .die-dialog .die-detail{padding-top:14px} .die-dialog .die-detail>h3{margin:12px 0}

/* Focused decisions and a readable product brief. */
.transfer-dialog,.product-summary-dialog{border:1px solid #c4d5e2;border-radius:22px;background:#fff;color:#13354a;box-shadow:0 24px 100px #102b4655;padding:28px;max-height:85dvh;overflow:auto}
.transfer-dialog{width:min(520px,calc(100vw - 60px))}
.transfer-dialog::backdrop,.product-summary-dialog::backdrop{background:#0d294b80;backdrop-filter:blur(4px)}
.transfer-dialog>small{color:#526c80;font-size:12px;letter-spacing:.12em;font-weight:700}
.transfer-dialog h3{font-size:26px;line-height:1.25;margin:12px 0 26px;color:#102f55}
.transfer-dialog label{display:block;font-size:14px;font-weight:650;margin:16px 0}
.transfer-dialog select,.transfer-dialog input{display:block;box-sizing:border-box;width:100%;margin-top:8px;padding:13px;border:1px solid #9ab1c4;border-radius:10px;background:#f5f8fc;color:#122e4a;font:inherit}
.transfer-dialog>div{display:flex;justify-content:flex-end;gap:12px;margin-top:26px}
.transfer-dialog>p{font-size:14px;line-height:1.5;color:#466174}
.transfer-dialog #next-error{color:#ad263c;font-weight:700}
.product-summary-dialog{width:min(920px,calc(100vw - 70px));padding:0}
.product-summary-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px;background:#102f55;color:white;position:sticky;top:0;z-index:1}
.product-summary-dialog header h2{margin:6px 0;font-size:25px;color:white}.product-summary-dialog header p{margin:0;color:#d7e6ef}
.product-summary-dialog header small{color:#a7d9ce;letter-spacing:.08em;font-size:11px}
.summary-content{padding:24px 28px}.summary-identity{display:grid;grid-template-columns:170px 1fr;gap:24px;align-items:center}
.summary-photo img,.summary-photo svg{width:100%;max-height:180px;object-fit:contain}
.summary-content h3{display:flex;gap:9px;align-items:center;font-size:17px;margin:26px 0 16px;color:#153856}.summary-identity h3{margin-top:0}
.summary-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px}.summary-content dl{margin:0}.summary-content dt{font-size:12px;color:#50687b;margin-bottom:4px}.summary-content dd{margin:0;font-weight:650;font-size:15px;white-space:pre-line;line-height:1.45}
.summary-status{display:flex;flex-wrap:wrap;gap:12px 24px;background:#e8f4f0;border-left:4px solid #22987b;border-radius:10px;padding:16px;margin:22px 0}.summary-status strong{color:#ad3249}
.summary-processes{display:grid;grid-template-columns:1fr 1fr;gap:14px}.summary-processes section{border:1px solid #d8e2ea;border-radius:12px;overflow:hidden}.summary-processes h4{margin:0;background:#eaf0f7;color:#153856;padding:12px 16px;font-size:16px}.summary-processes dl{padding:16px;display:grid;gap:12px}
.summary-trigger{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:#143c60;background:#e9f1f8}
#production-view .column-head h2{background:var(--tint);color:var(--stage);padding:4px 7px;border-radius:5px;font-weight:650;line-height:1.2;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#production-view .stage-column:not(.minimized){border-top:0;background:#f5f7f9;min-width:160px}
#production-view .column-head{background:transparent;padding:7px 6px;min-height:42px;gap:4px}
#production-view .column-head>span{background:transparent;color:#526779;font-size:12px;padding:0 2px}
#production-view .minimize-stage{width:26px;min-height:30px;background:transparent;color:#667b89}
#production-view .minimized .column-head h2{overflow:visible}
.execution-mode .guide-intro p:empty{display:none}
.execution-mode .guide-intro{border-bottom:0;padding-bottom:0;margin-bottom:14px}
.execution-mode .execution-brief{border:0}
.execution-mode .facts-grid{background:#f5f8fa;border:1px solid #e1e8ee;border-radius:10px}
.execution-mode .section-heading h3{font-size:14px;font-weight:650;color:#526779}
.execution-mode .execution-checks{border-top:1px solid #e3e9ee;margin-top:12px}
.execution-mode .execution-checks h3{font-size:15px}
.execution-mode .task-context{box-shadow:none}

.guide-intro h2{font-weight:800!important;color:#102f55!important;letter-spacing:-.025em}.guide-intro p{color:#526678!important;font-size:14px!important}
.execution-brief .facts-grid b,.execution-brief .facts-grid strong{font-weight:750;color:#123551}.execution-brief{border-left:4px solid #267d8b}
.section-heading h3,.execution-checks h3{font-weight:750;color:#123551}.recipient-name{font-size:13px}
@media(max-width:1100px){.product-header{gap:10px}.summary-trigger{font-size:12px;padding:9px}.product-summary-dialog{max-height:90dvh}}
@media(prefers-reduced-motion:no-preference){.transfer-dialog[open],.product-summary-dialog[open]{animation:decision-in .18s ease-out}@keyframes decision-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}}

.transfer-dialog button:not(.primary),.product-summary-dialog button{border:1px solid #b8cad8;background:#f1f6fa;color:#153856;border-radius:10px;padding:12px 16px;font:inherit;font-weight:650;cursor:pointer}.product-summary-dialog>header button{background:#fff;color:#133553}.summary-empty{margin:0;color:#536c7c;font-size:13px}

#production-view [data-stage="ready_delivery"]{--stage:#8b5b16;--tint:#faf0d9}#production-view [data-stage="start"]{--stage:#586675;--tint:#e9edf1}#production-view .column-head h2{padding:4px 5px}

/* One action and one product identity per sheet. */
.execution-mode .task-context>h3,.execution-mode .task-context>p,.execution-mode .task-context>.urgency-note{display:none}
.execution-mode #receive-inline{display:none}
.summary-trigger{border:1px solid #b9cbd9;border-radius:10px;padding:10px 14px;box-shadow:none}
.execution-mode .compact-supplier>b::before{content:'Seguimiento · ';font-weight:400;font-size:12px;color:#526779}
.execution-mode .compact-supplier .reception-state.pending{background:#f4efe3;color:#785b27}

#supplies-view[hidden]{display:none}#supplies-view{height:100%;overflow:auto;background:#f2f5f8;padding:24px}.supply-toolbar{display:flex;align-items:center;gap:16px}.supply-toolbar>div{flex:1}.supply-toolbar h1{font-size:26px;margin:7px 0}.supply-toolbar small{color:#65788b;letter-spacing:.1em}.supply-toolbar p{color:#52697a;font-size:14px}.supply-orders{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px;margin-top:24px}.supply-order{display:block;text-align:left;background:white;border:1px solid #cad8e3;border-radius:16px;padding:20px;color:#183a53}.supply-order h2{font-size:20px;margin:8px 0}.supply-order p{line-height:1.5;font-size:14px}.supply-order footer{display:flex;gap:10px;justify-content:space-between;font-size:12px;border-top:1px solid #e1e7ed;padding-top:14px}.supply-badge{background:#f8edcf;color:#72551d;padding:5px 9px;border-radius:5px;font-size:12px}.supply-empty{grid-column:1/-1;padding:50px;background:white;border-radius:16px;max-width:800px}.supply-empty p{line-height:1.7;color:#52697a}
.supply-dialog{width:min(900px,92vw);max-height:90dvh;padding:0;border:1px solid #c2d1df;border-radius:20px;color:#173b53;background:#fff;overflow:auto}.supply-dialog::backdrop{background:#102f5a77;backdrop-filter:blur(4px)}.supply-dialog>header{position:sticky;top:0;background:#102f5a;color:white;display:flex;justify-content:space-between;align-items:center;padding:18px 24px;z-index:2}.supply-dialog h2{font-size:22px;margin:0}.supply-dialog-body{padding:24px}.supply-dialog label{display:block;font-size:13px;color:#496477}.supply-dialog input,.supply-dialog select{width:100%;display:block;margin:7px 0 12px;padding:11px;border:1px solid #adbfce;border-radius:8px;background:#fff;color:#133654;font:inherit;box-sizing:border-box}.purchase-item{display:grid;grid-template-columns:2fr 1fr 1fr 30px;gap:12px;align-items:center;border-bottom:1px solid #e1e7ed;margin:16px 0}.supply-dialog button,.supply-toolbar button{border:1px solid #b7cbd9;border-radius:9px;padding:11px 15px;background:#eef4f8;color:#173b53;font:inherit;cursor:pointer}.supply-dialog .primary,.supply-toolbar .primary{background:#102f5a;color:#fff}.supply-progress,.supply-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.supply-progress{background:#e9f3ef;padding:14px;border-radius:10px}.purchase-detail{border:1px solid #d6e1e9;border-radius:12px;padding:18px;margin:16px 0}.purchase-detail h3{margin:0}.purchase-detail form{display:flex;align-items:end;gap:12px;margin-top:16px}.purchase-detail form label:first-child{flex:1}.purchase-detail form button{margin-bottom:12px}.allocation-list{display:flex;flex-wrap:wrap;gap:8px}.allocation-list a{background:#edf3fa;padding:10px;border-radius:7px;color:#204872;text-decoration:none}.supply-error{color:#a52e3c;font-weight:650}.product-materials{margin-top:18px;padding-top:12px;border-top:1px solid #d6e1e9}.product-materials h3{font-size:15px}.product-materials a{display:block;color:#184c75;margin:10px 0;text-decoration:none}.product-materials a span,.product-materials a small{display:block;margin-top:5px}.product-materials p{font-size:13px}.place-label.supply{border-color:#be9c5a!important;background:#fff8e9!important}

.place-label[data-place="zone-supplies"]{opacity:1!important;background:#87652b!important;color:white!important;border:0!important}.place-label[data-place="zone-supplies"] small{color:#fff1cd!important}.allocate-disclosure{margin-top:14px}.allocate-disclosure summary{cursor:pointer;color:#1c567f;font-size:14px;padding:10px;background:#eff5f9;border-radius:8px}

/* Operational map: actionable sidebar and consistent state signals. */
#map-view .map-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;flex:1;min-height:0;padding:0 16px 12px}
#map-view .map-shell{margin:0;min-width:0;background:radial-gradient(ellipse at center,#fff 0%,#eef5fb 90%);border:1px solid #cfdeeb;border-radius:20px;box-shadow:0 8px 24px #12365608}
#map-view .heading{padding:16px 20px!important}#map-view .heading h1{font-size:27px!important;letter-spacing:-.6px;border-left:4px solid #f47766;padding-left:12px}#map-view .heading .subtitle{margin-left:16px;font-size:12px;color:#577087}
.map-insights{gap:14px;padding:14px 16px 0}.map-insights button{position:relative;overflow:hidden;display:grid;grid-template-columns:46px 1fr auto;grid-template-rows:auto auto;gap:4px 12px;padding:12px 16px;border:1px solid #d8e3ee!important;border-radius:15px;box-shadow:0 5px 14px #102f5a09;min-height:78px}.map-insights .metric-icon{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#008b72;color:#fff;box-shadow:inset 0 0 0 1px #ffffff35}.metric-icon svg{width:27px;height:27px}.map-insights strong{grid-column:3;grid-row:1/3;font-size:30px;font-weight:750;color:#102f5a}.map-insights span{grid-column:2;grid-row:1;align-self:end;font-size:13px}.map-insights small{grid-column:2;grid-row:2;align-self:start}.map-insights [data-insight=urgent] .metric-icon,.map-insights [data-insight=blocked] .metric-icon{background:#ec645a}.map-insights [data-insight=due] .metric-icon{background:#d28b17}.map-insights [data-insight=urgent] strong,.map-insights [data-insight=blocked] strong{color:#ba413c}.map-insights [data-insight=due] strong{color:#986010}
.operations-panel{overflow:auto;min-height:0;display:flex;flex-direction:column;gap:12px;padding:0 2px 6px}.operation-now{border-radius:16px;padding:18px;background:linear-gradient(135deg,#10345c 75%,#007f74 75%);color:#fff}.operation-now>small{font-size:10px;color:#b6d5e6;letter-spacing:.08em}.operation-now h2{font-size:20px;margin:7px 0 16px;color:#fff}.operation-now>div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.operation-now a{background:#fff;color:#123d58;border-radius:10px;text-decoration:none;padding:10px 7px}.operation-now b{display:block;font-size:24px;color:#00866b}.operation-now span{display:block;font-size:10px;line-height:1.4;margin-top:4px}
.operation-section{background:#fff;border:1px solid #d5e0ea;border-radius:14px;padding:14px}.operation-section h3{display:flex;align-items:center;gap:7px;font-size:14px;margin:0 0 12px;color:#123450}.operation-section h3 svg{width:19px;height:19px;color:#267b8b}.operation-section h3>span{margin-left:auto;color:#52697a;font-size:12px;background:#edf3f8;padding:3px 7px;border-radius:6px}.operation-list a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f5;text-decoration:none;color:#153650}.operation-list a:last-child{border:0}.operation-list b{font-size:12px;display:block;line-height:1.4}.operation-list small{font-size:11px;display:block;color:#5e7485;margin-top:4px;line-height:1.4}.operation-list a>span{font-size:10px;flex-shrink:0;max-width:85px;color:#48667a}.operation-list .attention-blocked,.operation-list .attention-urgent{background:#fff0ed;border:0;border-radius:8px;padding:10px;margin-top:7px}.operation-list .overdue{border-left:3px solid #ca8a18;padding-left:8px}.operation-section details summary{font-size:11px;color:#245b7f;padding:12px 0 0;cursor:pointer}.extra-follow{display:block;font-size:11px;color:#245b7f;padding:10px 0}.supplier-load{display:flex;width:100%;gap:10px;align-items:center;text-align:left;background:none;border:0;border-bottom:1px solid #edf1f5;padding:11px 0;color:#153650}.supplier-load span{width:108px;font-size:12px}.supplier-load meter{width:75px;height:8px;accent-color:#00896e}.supplier-load b{margin-left:auto;font-size:12px}.metric-note{font-size:10px;color:#687f90;display:block;margin-top:10px}
#operations-toggle{display:none}.state-legend{position:absolute;right:12px;top:12px;z-index:3;background:#ffffffee;border:1px solid #d8e3ec;padding:10px;border-radius:10px;font-size:11px;color:#1a405d}.state-legend summary{cursor:pointer;font-weight:650}.state-legend div{display:grid;gap:9px;padding-top:12px}.state-active{color:#008268}.state-waiting{color:#226bbc}.state-blocked{color:#c44741}.state-due{color:#9e6a0d}
#map-view .place-label{border:1px solid #c4d7e4;box-shadow:0 4px 10px #163b5815;background:#fff;padding:7px 9px;max-width:170px}#map-view .place-label small{display:table;padding:3px 6px;border-radius:5px;background:#e4f6ef;color:#00775d;font-weight:650;margin-top:5px}#map-view .place-label[data-state=waiting] small{background:#e5f0ff;color:#2468ad}#map-view .place-label[data-state=blocked] small{background:#ffebe8;color:#b53833}#map-view .place-label[data-state=due] small{background:#fff2d5;color:#8b5c08}#map-view .place-label[data-state=waiting] i{background:#3484d2}#map-view .place-label[data-state=blocked] i{background:#e65e54}#map-view .place-label[data-state=due] i{background:#db9a24}#map-view .zone-label small,#map-view [data-place=zone-supplies] small,#map-view .delivery small{background:transparent;color:#e5f3ff}#map-view .zone-label strong{font-size:11px}.map-hint{display:none!important}
@media(max-width:1250px){#map-view .map-workspace{display:block;position:relative}#map-view .map-shell{height:100%}.operations-panel{display:none;position:absolute;top:0;bottom:12px;right:16px;width:300px;z-index:6;background:#edf3f8;padding:10px;border:1px solid #c6d7e5;border-radius:16px;box-shadow:-12px 0 40px #16345130}.operations-open .operations-panel{display:flex}#operations-toggle{display:block}.map-insights{gap:7px}.map-insights button{grid-template-columns:34px 1fr auto;padding:9px;gap:3px 8px;min-height:65px}.map-insights .metric-icon{width:34px;height:38px;border-radius:9px}.map-insights span{font-size:11px}.map-insights strong{font-size:25px}#map-view .heading h1{font-size:22px!important}#map-view .heading{padding:12px 16px!important}.scene-controls{gap:5px}.scene-controls button{padding:8px 10px;font-size:11px}}
@media(prefers-reduced-motion:no-preference){.operations-open .operations-panel{animation:decision-in .2s ease-out}.operation-list a,.supplier-load{transition:background .15s ease}.operation-list a:hover,.supplier-load:hover{background:#e9f2f8}}
#map-view .place-label.zone-label{background:#12375a;color:#fff;border-color:#12375a;box-shadow:none}#map-view .place-label.zone-label small{color:#e4eff8;background:transparent}#map-view .place-label.zone-label i{display:none}
.operation-now{padding:13px}.operation-now h2{font-size:18px;margin:5px 0 10px}.operation-now a{padding:7px}.operation-now b{font-size:21px}.operation-section{padding:12px}.operation-section h3{margin-bottom:7px}.operation-list a{padding:6px 0}.operation-list small{margin-top:2px}.operations-panel{gap:10px}
/* Shared tactile MGT controls: hover previews, press confirms, selection persists. */
button,summary,a.map-work-link{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease,translate .18s ease; -webkit-tap-highlight-color:transparent}
button:not(:disabled):not(.place-label):hover,summary:hover{box-shadow:0 5px 13px #153a5c18;border-color:#81b7be;translate:0 -1px}
button:not(:disabled):not(.place-label):active,summary:active{translate:0 1px;box-shadow:inset 0 2px 5px #12375420}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #13a68c;outline-offset:3px}
button[aria-pressed=true],button[aria-selected=true]{box-shadow:inset 0 -3px 0 #20b99a,0 3px 8px #14385618}
#map-view .place-label strong{display:flex;align-items:center;gap:5px}#map-view .place-label .provider-icon{width:19px;height:19px;flex-shrink:0;color:#1b536d}#map-view .place-label strong i{width:5px;height:5px}#map-view .place-label:hover{border-color:#0e9f8b;box-shadow:0 5px 16px #123e5b30}#map-view .place-label[aria-pressed=true]{border:2px solid #00a486;background:#f0fcf8;box-shadow:0 0 0 3px #00a48625}#map-view .delivery .provider-icon{color:#78efcf}
.map-insights button{isolation:isolate}.map-insights button:after{content:'';position:absolute;z-index:-1;right:-9px;bottom:-13px;width:110px;height:30px;border-radius:50% 45% 0 0;background:#c7eee4;rotate:-9deg;transition:height .25s ease,rotate .25s ease}.map-insights button:hover:after{height:40px;rotate:-3deg}.map-insights [data-insight=urgent]:after,.map-insights [data-insight=blocked]:after{background:#ffd0ca}.map-insights [data-insight=due]:after{background:#ffe5ad}.map-insights .metric-icon{background:linear-gradient(145deg,#00ae8e,#007e6c);box-shadow:inset 0 1px 2px #ffffff70,0 3px 8px #00866b22;transition:scale .2s ease,rotate .2s ease}.map-insights [data-insight=urgent] .metric-icon,.map-insights [data-insight=blocked] .metric-icon{background:linear-gradient(145deg,#ff8374,#ef514b)}.map-insights [data-insight=due] .metric-icon{background:linear-gradient(145deg,#ffc14a,#d8890e)}.map-insights button:hover .metric-icon{scale:1.06;rotate:-3deg}
.app-settings>summary{background:linear-gradient(#fff,#f0f6fa);box-shadow:0 2px 4px #1237540b;border-radius:11px;font-weight:650}.app-settings[open]>summary{background:#123758;color:#fff;box-shadow:inset 0 -3px #13aa90}.app-settings .nav-bottom{background:#fff;color:#153d58;border:1px solid #cedee7;padding:16px;width:240px;box-shadow:0 12px 35px #102f5a26;border-radius:16px;animation:control-enter .2s ease-out}.app-settings .motion-toggle{color:#125c68!important;background:#edf8f5!important;border:1px solid #bde0d7!important;text-decoration:none!important;border-radius:9px;padding:10px;width:100%;font-weight:600}.app-settings select{border:1px solid #bed1df;border-radius:9px;color:#143c56;background:#f7fafc;min-height:42px}.app-settings .nav-bottom>span{color:#526d7c}
@keyframes control-enter{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){button,summary,a.map-work-link,.map-insights .metric-icon,.map-insights button:after{transition:none!important;translate:none!important}.app-settings .nav-bottom{animation:none}}
html[data-motion=reduced] button,html[data-motion=reduced] summary{transition:none!important;translate:none!important}html[data-motion=reduced] .app-settings .nav-bottom{animation:none}
/* Section controls share the map's raised surfaces and persistent state. */
.action-icon{width:19px;height:19px;display:inline-block;vertical-align:middle;flex-shrink:0;margin-right:7px;color:currentColor}
.tactile-action{align-items:center;gap:5px}
:is(.board-top,.inventory-toolbar,.supply-toolbar,.supply-actions,.die-detail,.process-tools,.process-actions,.supply-dialog) button:not(.die-card):not(.supply-order){border-radius:11px;box-shadow:0 2px 4px #12375412,inset 0 1px 0 #ffffff70;font-weight:650;min-height:40px}
:is(.board-top,.inventory-toolbar,.supply-toolbar,.supply-actions,.die-detail,.process-tools,.supply-dialog) button:not(.primary):not(.die-card):not(.supply-order):not([aria-pressed=true]){background:linear-gradient(180deg,#fff,#f0f6f8);border:1px solid #c4d6df;color:#17475d}
:is(#production-view,#work-view,#supplies-view,#dies-view,.supply-dialog,.die-dialog) .primary{background:linear-gradient(145deg,#174e69,#102f50);color:#fff;border:1px solid #153f59;box-shadow:inset 0 1px #ffffff30,0 4px 9px #102f5a24}
:is(#production-view,#work-view,#supplies-view,#dies-view,.supply-dialog,.die-dialog) .primary:hover:not(:disabled){background:linear-gradient(145deg,#1a6976,#123e60);box-shadow:0 5px 12px #0c5d6030}
.filters,.die-filters{gap:6px;padding:5px;border:1px solid #d3e1e8;border-radius:13px;background:#eaf1f5}
.filters button,.die-filters button{border:1px solid transparent;border-radius:9px;padding:9px 12px;min-height:40px;transition:background .18s,color .18s,box-shadow .18s}
.filters button[aria-pressed=true],.die-filters button[aria-pressed=true],.conversation-tabs button[aria-pressed=true]{background:#143e5c!important;color:white!important;border-color:#143e5c!important;box-shadow:inset 0 -3px #20b89a,0 3px 7px #12375422!important;font-weight:750}
.die-filters button[aria-pressed=true] span{background:#ffffff20;color:white}.filters button[data-filter=urgent][aria-pressed=true]{background:#a83e38!important;border-color:#a83e38!important;box-shadow:inset 0 -3px #ffb2a1!important}
.product-stages button[aria-pressed=true]{background:#143e5c!important;color:white!important;box-shadow:inset 0 -3px #19b998,0 3px 9px #173b5820!important;font-weight:750}
.supply-order,.die-card{border:1px solid #d0e0e7!important;box-shadow:0 4px 12px #173b580b!important;transition:box-shadow .18s,border-color .18s,translate .18s!important}
.supply-order:hover,.die-card:hover{border-color:#24a48c!important;box-shadow:0 7px 20px #174d5a1c!important}.die-card[aria-pressed=true]{border:2px solid #009c80!important;background:#f2fcf8;box-shadow:0 0 0 3px #00a38518!important}
.supply-order footer b{display:inline-flex;background:#e2f5ee;color:#08745e;padding:7px 11px;border-radius:8px}.supply-badge{background:#e6f3fa;color:#195779;border:1px solid #c6e2ed;font-weight:700}
.allocate-disclosure>summary{background:#edf6f5;border:1px solid #c7dfdc;padding:10px 12px;border-radius:9px;cursor:pointer;color:#16565d}.allocate-disclosure[open]>summary{background:#16465e;color:#fff;box-shadow:inset 0 -3px #1fb89a}
button:disabled{translate:none!important;box-shadow:none!important;cursor:not-allowed;opacity:.48}
@media(max-width:1100px){.filters .action-icon{width:16px;height:16px;margin-right:4px}.filters button{padding:8px}.die-filters{overflow-x:auto;flex-wrap:nowrap}.die-filters button{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.supply-order,.die-card,.filters button,.die-filters button{transition:none!important}}
#production-view .filters button[data-filter=urgent][aria-pressed=true]{background:#a83e38!important;border-color:#a83e38!important;box-shadow:inset 0 -3px #ffb2a1!important} html[data-motion=reduced] .supply-order,html[data-motion=reduced] .die-card,html[data-motion=reduced] .filters button,html[data-motion=reduced] .die-filters button{transition:none!important}
/* Production reference: readable coloured stage bands, product-first cards. */
#production-view .stage-column:not(.minimized){background:linear-gradient(var(--tint),#f7fafc 180px);border:1px solid #d9e3ec;border-radius:15px}
#production-view .column-head{background:var(--tint);padding:10px 8px;min-height:53px;border-radius:14px 14px 0 0;gap:5px}
#production-view .column-head h2{display:flex;align-items:center;background:transparent;padding:0;font-weight:750;font-size:calc(14px * var(--board-scale,1));white-space:normal;line-height:1.15;overflow:visible}
#production-view .column-head h2 .action-icon{width:21px;height:21px;margin-right:5px}
#production-view .column-head>span{background:#ffffffdb;border-radius:8px;padding:3px 6px;color:var(--stage);font-weight:750}
#production-view [data-stage=printing]{--stage:#174fac;--tint:#dce9ff}#production-view [data-stage=laminating]{--stage:#096e70;--tint:#cef3ec}#production-view [data-stage=die]{--stage:#276a38;--tint:#dbf1db}#production-view [data-stage=stamping]{--stage:#713e9c;--tint:#eddefa}#production-view [data-stage=cut]{--stage:#47762e;--tint:#e4f3d6}#production-view [data-stage=finishing]{--stage:#955516;--tint:#fff0d7}#production-view [data-stage=ready_delivery]{--stage:#0b7958;--tint:#d6f3e3}
#production-view .product-card{background:#fff;border:1px solid #dce4eb;border-radius:13px;box-shadow:0 2px 4px #132e4610;overflow:hidden}#production-view .card-photo{margin:8px 8px 0;border-radius:10px;overflow:hidden}#production-view .card-copy h3{font-weight:750;color:#102e47}#production-view .card-copy>strong{display:flex;align-items:center;gap:5px;font-size:calc(18px * var(--board-scale,1))}#production-view .card-copy>strong .ui-icon{width:17px;height:17px;color:#4c7787}#production-view .card-copy>strong span{font-size:calc(12px * var(--board-scale,1))}#production-view .provider{color:#33556c;font-weight:550}#production-view .card-foot{margin:0 8px 8px;padding:5px;border-radius:8px;background:#e8f5f4}#production-view .empty-column{margin:10px;border:1px dashed #cbd9e3;border-radius:10px;padding:25px 7px;text-align:center;color:#718b9a}#production-view #new-product{background:linear-gradient(135deg,#00ae98,#009b91);border-color:#00a191}
#purchase-items .purchase-item{display:grid;grid-template-columns:2fr .7fr .9fr;gap:10px;padding:14px;margin:12px 0;background:#f4f8fa;border:1px solid #d9e4e9;border-radius:12px}#purchase-items .purchase-item .item-description{grid-column:auto}#purchase-items .purchase-item button{justify-self:end;align-self:end;width:40px}.item-logistics{display:flex;gap:16px;align-items:center;background:#edf7f4;border-radius:9px;padding:9px;color:#145b54}.item-logistics span{color:#33596a}.die-state.using{background:#d9f0ff;color:#175d98}.die-state.repair{background:#fff0d6;color:#81561b}
#production-view .column-head h2{font-size:max(12px,calc(14px * var(--board-scale,1)))}#production-view .card-copy>strong{font-size:max(14px,calc(18px * var(--board-scale,1)))}#production-view .card-copy>strong span{font-size:max(10px,calc(12px * var(--board-scale,1)))}#production-view .card-foot button{background:transparent;border:0;border-radius:6px;padding:5px 2px;box-shadow:none;min-width:0}#production-view .card-foot button[data-reminder]{flex:1;text-align:left;font-size:11px;line-height:1.3}#production-view .card-foot button[data-drag]{font-size:10px}#production-view .column-head h2 .action-icon{width:18px;height:18px}
#supply-dialog{width:min(1100px,94vw)}#purchase-items .purchase-item{grid-template-columns:minmax(170px,2fr) minmax(70px,.65fr) minmax(90px,.8fr) minmax(130px,1.2fr) minmax(110px,1fr) 35px;align-items:end;padding:10px;gap:8px}#purchase-items .purchase-item label{font-size:12px}#purchase-items .purchase-item input,#purchase-items .purchase-item select{min-width:0;width:100%;padding:9px}#purchase-items .purchase-item button{width:33px}@media(max-width:1000px){#purchase-items .purchase-item{grid-template-columns:2fr .8fr 1fr}}
#production-view .card-foot{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0}#production-view .card-foot button[data-reminder]{width:100%;white-space:normal;min-height:24px}#production-view .card-foot button[data-drag]{width:100%;text-align:right;min-height:20px}#production-view .column-head h2{flex:1;min-width:0;font-size:12px;overflow:hidden}#production-view .column-head>span{flex-shrink:0}#production-view .minimize-stage{padding:2px;flex-shrink:0}
/* One compact toolbar, with the original controls and handlers. */
body>header{gap:10px;padding:7px 12px;height:62px;z-index:50}.brand img{width:105px!important;height:37px!important}.space-menu{position:relative;flex-shrink:0}.space-menu>summary{list-style:none;cursor:pointer;font-weight:750;color:#163c58;padding:10px 13px;border:1px solid #d2e0e8;border-radius:10px;background:#f3f8fb}.space-menu>summary:after{content:'⌄';margin-left:10px}.space-menu .top-spaces{position:absolute;top:45px;left:0;min-width:175px;display:flex;flex-direction:column;padding:7px;background:white;border:1px solid #d2e0e8;border-radius:12px;box-shadow:0 12px 28px #15395524;z-index:100}.space-menu .top-spaces button{width:100%;justify-content:flex-start}
body>header>.board-top{display:none}body.compact-production>header>.board-top{display:flex!important;align-items:center;gap:7px;padding:0!important;margin:0;flex:1;min-width:0;border:0;background:none}body>header>.board-top>div:first-child{display:none}body>header>.board-top .search{flex:1;min-width:130px;margin:0;height:39px}body>header>.board-top .search input{min-width:0;width:100%;font-size:12px}body>header>.board-top .filters{display:flex;gap:3px;padding:2px;margin:0;flex-shrink:0}body>header>.board-top .filters button{padding:7px;font-size:11px;min-height:35px}body>header>.board-top .action-icon{width:16px;height:16px;margin-right:4px}body>header>.board-top #new-product{white-space:nowrap;padding:9px;font-size:12px;background:#00a68f;color:white;border-radius:10px;border:0}body>header>.board-top .board-view-options{flex-shrink:0}body>header>.board-top .board-view-options>summary{font-size:11px;padding:9px}.compact-production .top-right .app-date,.compact-production .top-right>a{display:none}.compact-production #production-view{padding-top:8px!important}.compact-production .stage-board{height:100%!important}
#attention-dock{position:fixed;left:14px;bottom:14px;width:310px;max-width:calc(100vw - 28px);z-index:40;border:1px solid #eed3d9;border-radius:13px;background:#fff9fa;box-shadow:0 6px 22px #263f531a}#attention-dock summary{display:flex;gap:9px;align-items:center;cursor:pointer;padding:10px 13px;color:#9e284c;font-weight:750;list-style:none;background:#fcebf0;border-radius:12px}#attention-dock summary b{border-radius:7px;padding:2px 7px;background:white;font-size:12px}.dock-indicator{width:9px;height:9px;border-radius:50%;background:#d74468}.dock-chevron{margin-left:auto}#attention-dock:not([open]) .dock-chevron{rotate:180deg}.dock-items{max-height:115px;overflow:auto;padding:5px 10px}.dock-items a{display:block;padding:6px 3px;text-decoration:none;color:#24465e;border-bottom:1px solid #eedfe3}.dock-items a:last-child{border:0}.dock-items strong{font-size:12px}.dock-items small{display:block;font-size:11px;margin-top:3px;color:#8c4c57}.dock-items p{font-size:12px}body>#alerts-toggle{display:none!important}#alarm-strip{bottom:190px!important;left:14px!important;right:auto!important;max-width:310px}.alerts-popover{top:auto!important;bottom:65px!important;left:14px!important;right:auto!important}.product-popup #attention-dock{display:none}.compact-production .stage-board{padding-bottom:165px!important;box-sizing:border-box}
@media(max-width:1150px){body>header{gap:6px}.brand img{width:75px!important}.space-menu>summary{font-size:12px;padding:9px}.compact-production #registry-toggle{display:none}body>header>.board-top .filters .action-icon{display:none}body>header>.board-top #new-product{font-size:11px;padding:9px 6px}body>header>.board-top #new-product .action-icon{display:none}body>header>.board-top .search input{font-size:11px}}
@media(max-width:1150px){.compact-production #registry-toggle{display:inline-flex!important;padding:7px;font-size:10px}.compact-production .top-right{gap:4px}.compact-production .top-right #registry-toggle span{display:none}}
.dock-items{max-height:80px;padding:2px 10px}.dock-items a{padding:4px 3px}.dock-items small{margin-top:1px}#attention-dock summary{padding:8px 12px}.compact-production .stage-board{padding-bottom:125px!important}#alarm-strip{bottom:150px!important}body>header>.board-top .search{order:0!important}
/* 11n: visible planning, stable navigation and direct card handling. */
body>header .brand{order:0}body>header .space-menu{order:1;margin-left:8px;margin-right:12px;flex:none}body>header .board-top{order:2}body>header .top-right{order:3;margin-left:auto}
.space-menu summary{font-weight:750;min-width:135px;white-space:nowrap;background:#edf4fb;border:1px solid #bed0e2;border-radius:12px;padding:10px 14px;color:#103b63}
.route-chooser{padding:20px;background:#edf5ff;border:1px solid #b5ccec;border-radius:18px;margin-bottom:18px}.route-chooser h3{font-size:20px;color:#10395d;margin:0 0 7px}.route-chooser p{margin:0 0 16px;color:#415c73}.route-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.route-options label{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px;background:white;border:2px solid #d5dfe9;border-radius:12px;cursor:pointer;font-weight:650;color:#2c465f}.route-options label:has(:checked){border-color:#087f9b;background:#daf4ee;color:#074b54;box-shadow:0 2px 0 #0d967c}.route-options input{width:19px;height:19px;accent-color:#008977}.route-chooser small{display:block;margin-top:12px}.product-card{user-select:none}.card-open{touch-action:none}.drag-armed{outline:3px solid #00ad91;transform:scale(1.025);box-shadow:0 12px 25px #123c6440}.drag-ghost{pointer-events:none!important;z-index:9999}.stage-column.drop-target{outline:3px solid #00a88a;background:#d9f8ef!important}.card-foot button{width:100%}
.stage-column[data-stage="printing"] .column-head{background:#bed6ff!important;color:#133d90}.stage-column[data-stage="laminating"] .column-head{background:#aaece3!important;color:#075d5e}.stage-column[data-stage="die"] .column-head{background:#c2eebc!important;color:#245e28}.stage-column[data-stage="stamping"] .column-head{background:#ddc5fb!important;color:#542c84}.stage-column[data-stage="cut"] .column-head{background:#d4efac!important;color:#40611c}.stage-column[data-stage="finishing"] .column-head{background:#ffe0a6!important;color:#80530c}
@media(max-width:1100px){.route-options{grid-template-columns:repeat(2,minmax(0,1fr))}body>header .space-menu{margin-right:4px;margin-left:4px}.space-menu summary{min-width:110px;padding:8px}}
.supply-history{display:grid;gap:10px}.supply-history a{display:grid;gap:6px;padding:16px;border:1px solid #cedce7;border-radius:12px;text-decoration:none;color:#183b58;background:#f4f9fc}.supply-history a:hover{border-color:#00a68a;background:#e5f7f2}.supply-history small{color:#4c6377}.order-author{padding:12px;background:#eef5fb;border-radius:10px}.supply-order>small{display:block;margin-top:12px;color:#476078}
.planning-queue .product-stages{display:none!important}.planning-queue .identity-photo{display:none!important}.planning-queue .product-header{min-height:90px!important}#work-title:focus{outline:none}.product-popup #alarm-strip{bottom:96px;left:auto;right:32px;max-width:260px}
/* Version 12: semantic hierarchy shared across workspaces. */
#alarm-strip{display:none!important}#attention-dock{display:block!important;width:290px;max-width:calc(100vw - 32px);bottom:12px;left:12px;z-index:90}#attention-dock:not([open]) .dock-items{display:none}#attention-dock .dock-items{max-height:240px}#attention-dock summary{min-height:44px;background:#fff1ef;color:#8c2826}.product-popup #attention-dock{display:block!important}.process-actions{padding-left:320px!important}.stage-board{padding-bottom:64px!important}.map-shell{padding-bottom:60px}
#work-view .supplier-task b.late,.late{color:#a12e29!important;font-weight:750!important}.supplier-task b.late{background:#ffebe7;padding:8px 12px;border-radius:8px}.current-priority{display:block;background:#fff0df;color:#7c4211;padding:10px;border-radius:8px;margin-top:8px}
#plan-readiness{margin-top:16px;border-top:1px solid #bed3e6;padding-top:14px}#plan-readiness small{display:block}.plan-incomplete{color:#815518}.plan-ready{color:#087255}.plan-stage summary small{font-weight:700}.plan-stage:has(summary small){border-left:3px solid #3d8aab}
.column-head h2{font-size:13px!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.column-head{min-height:64px!important}.card-copy h3{font-size:14px!important;line-height:1.3!important}.card-copy small{font-size:11px!important}.card-copy .provider,.card-foot button{font-size:12px!important;line-height:1.3!important}.card-copy>strong{font-size:17px!important}.card-photo{height:max(100px,calc(145px * var(--board-scale,1)))!important}.product-card{border:1px solid #dae3ec!important;box-shadow:0 2px 4px #143d5e0b!important}.card-foot button.late{background:#fff0e9!important}.stage-column{min-width:170px}
.supply-dialog>header,.die-detail-head{background:#edf4fa!important;color:#163b5b!important;border-bottom:1px solid #d6e1eb;padding:18px!important;border-radius:14px 14px 0 0}.supply-dialog h2,.die-detail-head h2{font-size:24px!important}.die-detail>.die-location{margin:16px 0;padding:14px;background:#edf5fa;color:#153e5b;border-left:4px solid #119f85}.die-detail .die-photo-preview,.die-detail .die-photo-empty{height:140px!important;min-height:0!important}.die-detail .die-photo-preview img{max-height:140px;object-fit:contain}.die-assets{background:#f6f9fc;padding:16px;border-radius:12px;margin:20px 0}.die-detail .linked-products{display:grid;gap:8px}.die-detail .linked-products a{padding:12px;background:#f0f7fb;border-radius:10px}.operator-field{background:#edf5fa;padding:12px;border-radius:10px;margin:12px 0;max-width:440px}.operator-field small{display:block;margin-top:5px;color:#486579}.supply-order .supply-badge{font-weight:700}.supply-order{box-shadow:0 2px 6px #163d6510!important}.supply-toolbar{padding-bottom:16px!important}
.place-label{max-width:160px!important;box-shadow:0 2px 5px #123d6420!important}.place-label small{font-size:10px!important;white-space:normal;line-height:1.3}.place-label strong{font-size:12px!important}.map-workspace .operation-section{padding:14px!important}.map-workspace .operation-now{padding:16px!important}.map-shell:after{content:'Movimiento ilustrativo · el estado cambia al registrar la operación';position:absolute;bottom:8px;right:14px;font-size:10px;color:#486379;pointer-events:none}
@media(max-width:1100px){.process-actions{padding-left:310px!important}.process-actions>span{display:none}.route-chooser{padding:14px}.route-options label{min-height:44px}.die-dialog,.supply-dialog{max-width:calc(100vw - 32px)!important}}
@media(prefers-reduced-motion:reduce){.drag-armed{transform:none}.place-label,button{transition:none!important}}

/* Keep each stage title separate from its count at compact scale. */
#production-view .column-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;min-height:70px}#production-view .column-head h2{overflow-wrap:anywhere;white-space:normal;min-width:0}#production-view .column-head h2 svg{flex-shrink:0}

.place-label .label-compact{display:none}@media(max-width:1100px){#labels .place-label{max-width:136px;padding:6px 7px;border-radius:10px}#labels .place-label strong{font-size:11px}#labels .place-label .label-full{display:none}#labels .place-label .label-compact{display:block;font-size:9px;line-height:1.2;padding:3px;white-space:normal}#labels .zone-label small{display:none!important}#labels .zone-label{max-width:116px}}

#labels .place-label{transition:background-color .18s,box-shadow .18s,border-color .18s!important}
#production-view .stage-column:not(.minimized){min-width:200px}#production-view .column-head h2{overflow-wrap:normal;word-break:normal}#production-view .minimized .column-head{display:flex}
#labels .place-label .label-compact{display:none}@media(max-width:1100px){#labels .place-label .label-compact{display:block}#labels .place-label .label-full{display:none}}

@media(max-width:1100px){#map-view .map-shell{min-height:720px}#map-view #world{min-height:700px}#labels .place-label{max-width:136px}}
/* 12b: overview first, details on intent. */
#map-view .heading>div:first-child{display:none}#map-view .heading{min-height:0;margin:0 0 8px;padding:0;justify-content:flex-end}#map-view .scene-controls{gap:6px}#map-view .scene-controls button{min-height:32px;padding:6px 10px;font-size:11px}#map-view .map-shell{min-height:0}#map-view #world{min-height:460px}
#world.overview-map .place-label:not(.zone-label):not([aria-pressed=true]){width:36px;height:36px;min-height:36px;padding:7px;border-radius:50%;max-width:36px;box-shadow:0 3px 9px #16395122;border:2px solid white}
#world.overview-map .place-label:not(.zone-label):not([aria-pressed=true]) .place-name,#world.overview-map .place-label:not(.zone-label):not([aria-pressed=true]) small{display:none!important}
#world.overview-map .place-label:not(.zone-label):not([aria-pressed=true]) strong{justify-content:center;gap:0}#world.overview-map .place-label:not(.zone-label):not([aria-pressed=true]) strong i{position:absolute;right:-2px;top:-2px;width:9px;height:9px;border:2px solid white}#world.overview-map .place-label .provider-icon{margin:0;width:19px;height:19px}
#world.overview-map .zone-label{padding:9px 12px;max-width:160px;cursor:pointer}#world.overview-map .zone-label small{display:none!important}#world.overview-map .zone-label:hover{box-shadow:0 0 0 3px #20bba770}
#world.overview-map .place-label[data-state=blocked]{border-color:#f46a63!important}#world.overview-map .place-label:hover{outline:3px solid #55c8b5;z-index:8}
.registration-dialog,.action-popup{width:min(660px,calc(100vw - 40px))!important;max-height:calc(100dvh - 40px);border:1px solid #c8dce8;border-radius:22px;padding:0;background:#fff;color:#123e56;box-shadow:0 24px 80px #082c4c40}
.registration-dialog::backdrop,.action-popup::backdrop{background:#12324e77;backdrop-filter:blur(4px)}.registration-dialog .die-detail{padding:24px}.registration-dialog .die-close{position:static;float:right;margin:12px}.registration-dialog .die-detail-head{clear:both}.staged-form .die-fields:empty{display:none}.staged-form{display:block!important}.step-nav{display:flex;gap:5px;margin:0 0 24px;flex-wrap:wrap}.step-nav button{font-size:12px;min-height:38px;padding:8px 12px;border:1px solid #d8e3ea;border-radius:10px;background:#f3f7fa;color:#476478}.step-nav button[aria-current=step]{background:#103c5b;color:white;border-color:#103c5b;box-shadow:inset 0 -3px #00ad90}.step-panel{display:grid;gap:16px}.step-panel[hidden],.step-footer button[hidden],.purchase-item[hidden]{display:none!important}.step-panel h3{font-size:22px;margin:0 0 4px;color:#123e56}.step-panel label{display:grid;gap:7px;font-size:13px;font-weight:600}.step-panel input,.step-panel select,.step-panel textarea{width:100%;padding:11px;border:1px solid #abc3d3;border-radius:10px;background:white;color:#143e55;font:inherit}.step-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e3ebf0;padding-top:20px;margin-top:24px}.step-footer button{min-height:44px;padding:11px 18px;border:1px solid #bcd3de;border-radius:12px}.step-footer .primary{margin-left:auto;background:#0d5262;color:white}.item-pager{display:flex;gap:6px;flex-wrap:wrap}.item-pager button{padding:7px 12px;border:1px solid #c9dce5;border-radius:10px;background:white}.item-pager button[aria-pressed=true]{background:#d9f5ee;border-color:#008e78;color:#006751;font-weight:700}.registration-dialog .purchase-item{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0;padding:16px;background:#f4f8fb;border-radius:14px}.purchase-item .item-description{grid-column:1/-1}.registration-review{background:#f2f8fa;padding:16px;border-radius:14px;max-height:260px;overflow:auto}.registration-review p{border-bottom:1px solid #dce8ee;padding-bottom:10px;font-size:13px;line-height:1.6}
.action-popup header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:#edf5fa;gap:16px}.action-popup h2{font-size:22px;font-weight:750;margin:0}.action-popup header button{padding:8px;border:0;border-radius:9px;background:white}.action-popup-body{padding:24px;display:grid;gap:18px}.action-popup-body label{display:grid;gap:8px}.action-popup-body input,.action-popup-body select{padding:12px;border:1px solid #b9cfdb;border-radius:10px;width:100%;font:inherit}.action-popup-body form{display:grid;gap:16px}.action-popup-body button{min-height:44px;padding:10px 18px;border-radius:12px;border:1px solid #0d5262;background:#0d5262;color:white;font-weight:700}.action-popup .operator-field{margin:0;padding:12px;max-width:none;font-size:12px}.action-popup .operator-field small{font-size:11px}.action-error{color:#af3336;margin:0}.action-launch{padding:10px 15px;margin:6px 8px 6px 0;border:1px solid #b7cfda;border-radius:12px;background:#eaf7f3;color:#0a5f53;font-weight:700}.supply-summary-dialog .purchase-detail{padding:16px;margin-top:14px}.supply-summary-dialog .order-author{padding:8px 12px;font-size:12px}.supply-summary-dialog .supply-progress{padding:12px}.supply-summary-dialog .operator-field[hidden],.supply-summary-dialog [hidden]{display:none!important}.supply-summary-dialog{width:min(800px,calc(100vw - 40px))!important}
@media(max-width:1100px){#map-view .map-shell{min-height:0}#map-view #world{min-height:460px}.registration-dialog .supply-dialog-body{padding:20px}}
@media(prefers-reduced-motion:no-preference){.step-panel:not([hidden]){animation:step-in .18s ease-out}@keyframes step-in{from{opacity:.3;transform:translateX(8px)}to{opacity:1;transform:none}}.action-launch:active,.step-footer button:active{transform:scale(.97)}}
#supply-dialog.registration-dialog #purchase-items .purchase-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px;margin:0}#supply-dialog.registration-dialog #purchase-items .item-description{grid-column:1/-1}.registration-dialog .step-nav button[aria-current=step]{background:#103c5b!important;color:#fff!important;border-color:#103c5b!important;box-shadow:inset 0 -3px #00ad90!important}.registration-dialog .step-panel{min-width:0}.registration-dialog .step-panel input,.registration-dialog .step-panel select{min-width:0}.registration-dialog .step-footer{position:sticky;bottom:0;background:white;padding-bottom:4px}
#supply-dialog.registration-dialog .staged-form>p:not(.supply-error){display:none}#supply-dialog.registration-dialog #purchase-items .purchase-item{position:relative;gap:8px}#supply-dialog.registration-dialog #purchase-items .purchase-item>button{position:absolute;right:10px;top:9px;min-height:28px;padding:4px;width:28px}#supply-dialog.registration-dialog #purchase-items .item-description{padding-right:35px}#supply-dialog.registration-dialog #purchase-items input,#supply-dialog.registration-dialog #purchase-items select{margin:5px 0 5px}.registration-dialog .step-nav{margin-bottom:16px}.registration-dialog .step-panel{gap:12px}.registration-dialog .step-footer{margin-top:16px;padding-top:14px}

#world .zone-label{cursor:default!important;opacity:1}#world .zone-label:hover{outline:none;box-shadow:none}
/* 12c — MGT hierarchy: dark identity, quiet fields, one strong action. */
#supply-dialog>header,.action-popup>header,.registration-dialog .die-detail-head{background:linear-gradient(115deg,#102f50,#155d6b)!important;color:white!important;border-bottom:4px solid #19b598;padding:20px 24px}
#supply-dialog>header h2,.action-popup>header h2,.registration-dialog .die-detail-head h2{color:white!important;font-weight:750;letter-spacing:-.4px}#supply-dialog>header button,.action-popup>header button{background:#ffffff18!important;color:white!important;border:1px solid #ffffff55!important}
.supply-summary-dialog .supply-dialog-body{background:#f3f7fa;padding:20px 24px}#supply-dialog .order-author{background:transparent;padding:0 0 10px;color:#5b7181;font-size:12px;margin:0}.supply-summary-dialog .supply-progress{background:white;border:1px solid #dbe6ed;border-left:5px solid #2786cb;box-shadow:0 3px 8px #183a5007;gap:10px 20px}.supply-summary-dialog[data-order-state=received] .supply-progress{border-left-color:#069976}.supply-summary-dialog .supply-progress>b{background:#e0effc;color:#12588d;border-radius:8px;padding:6px 10px;font-size:14px}.supply-summary-dialog[data-order-state=received] .supply-progress>b{background:#dbf7eb;color:#08704e}
#supply-dialog .action-launch{background:white!important;color:#164a61!important;border:1px solid #bbd0df!important;box-shadow:0 2px 0 #d6e3eb!important;min-height:42px;padding:9px 13px}.supply-summary-dialog .supply-dialog-body>.action-launch:first-of-type{background:#113f5f!important;color:white!important;border-color:#113f5f!important;box-shadow:0 3px 0 #18aa92!important}
.supply-summary-dialog .purchase-detail{background:white;border:1px solid #dce6ee;border-radius:16px;box-shadow:0 4px 12px #103c5510;margin:16px 0;padding:18px}.supply-summary-dialog .purchase-detail h3{color:#123b56;font-size:19px;font-weight:750;margin:0 0 12px}.supply-summary-dialog .item-logistics{background:#e7f4f2;border-radius:8px;padding:8px 10px;font-size:12px;margin:0 0 14px}.material-quantities{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;border-bottom:1px solid #e8eef2;padding:0 0 14px;margin-bottom:12px}.material-quantities small{display:block;color:#607786;font-size:11px;margin-bottom:4px}.material-quantities strong{font-size:22px;letter-spacing:-.4px;color:#103d58}.material-quantities em{font-size:11px;font-style:normal;color:#526d7e;letter-spacing:0}.material-quantities>div:nth-child(2) strong{color:#008769}.material-quantities>div:nth-child(3) strong{color:#a66a1e}.allocation-list>span{font-size:12px;color:#6b7f8d}
.registration-dialog .step-panel{background:#f3f7fa;border:1px solid #e0e9ef;border-radius:16px;padding:20px}.registration-dialog .step-panel h3{font-weight:750;font-size:23px;margin-bottom:8px}.registration-dialog .step-panel input,.registration-dialog .step-panel select,.registration-dialog .step-panel textarea{background:white!important;border:1px solid #9eb9cb!important;box-shadow:0 2px 3px #103b5607;font-size:14px!important;min-height:42px}.registration-dialog input:focus,.registration-dialog select:focus,.registration-dialog textarea:focus,.action-popup input:focus,.action-popup select:focus{outline:3px solid #00a98b35!important;border-color:#008d79!important}.registration-dialog .step-nav button[aria-current=step]{background:#103f60!important;box-shadow:inset 0 -3px #18bd9b!important}.registration-dialog .step-footer button.primary,.action-popup-body>button,.action-popup-body form>button{background:linear-gradient(115deg,#103d5e,#126273)!important;color:white!important;box-shadow:0 3px 0 #13a78c!important;border-color:#12465f!important}.auto-location-note{background:#e4f5ef;padding:12px 15px;border-radius:10px;color:#256554;font-size:12px;line-height:1.5}.registration-dialog .die-detail-head{border-radius:12px;margin:0 0 18px}.registration-dialog .die-detail-head small{color:#c5eee7}
.sectioned-record{padding:0!important}.sectioned-record>.die-detail-head{padding:22px 24px;background:linear-gradient(115deg,#10344f,#176171);border-bottom:4px solid #20b79d;margin:0;color:white}.sectioned-record>.die-detail-head h2{color:white;font-size:26px;font-weight:750}.sectioned-record>.die-detail-head small{color:#bce9e0}.sectioned-record #die-edit{background:#ffffff18!important;border:1px solid #ffffff60!important;color:white!important}.record-tabs{display:flex;gap:6px;padding:16px 20px;background:#eef4f8;border-bottom:1px solid #dce7ed}.record-tabs button{display:flex;align-items:center;gap:7px;flex:1;justify-content:center;border:1px solid transparent;border-radius:11px;padding:10px;background:transparent;color:#4a6477;font-weight:650;font-size:13px}.record-tabs button[aria-pressed=true]{background:#123f5e!important;color:white!important;border-color:#123f5e!important;box-shadow:0 3px 0 #16b297!important}.record-panel{padding:22px 24px!important;margin:0!important;border:0!important}.record-panel[hidden]{display:none!important}.die-overview>h3{font-size:25px!important;line-height:1.2;font-weight:750;color:#153d56;margin:12px 0 20px}.die-overview>.die-state{padding:7px 12px;font-weight:700;border-radius:9px}.die-overview .die-location{background:#e5f3f1;border:1px solid #c5e5df;border-left:5px solid #009b7d;border-radius:12px;padding:16px;margin:0 0 16px}.die-overview .die-location>span{font-size:11px;color:#4e706d}.die-overview .die-location strong{font-size:19px;color:#155d54}.die-overview .die-location small{font-size:12px;line-height:1.5}.die-overview .die-facts{background:#f2f6fa;padding:16px;border-radius:12px}.die-overview .die-notes{font-size:12px;color:#647b89;line-height:1.5}.sectioned-record .die-error{margin:0 24px}.record-panel>.helper{font-size:12px;max-width:580px}.record-panel .die-usage{background:#f4f8fb;border:1px solid #dce6ee;border-radius:12px;margin-bottom:12px;padding:14px}.sectioned-record .linked-products a{background:#f2f7fb;border:1px solid #dbe6ef;border-radius:12px;margin-bottom:8px}.record-tabs .action-icon{width:18px;height:18px;flex-shrink:0}
@media(prefers-reduced-motion:no-preference){.action-popup[open],.supply-dialog[open],.die-dialog[open]{animation:record-enter .22s cubic-bezier(.2,.8,.2,1)}.record-panel:not([hidden]){animation:step-in .18s ease-out}.action-launch,.record-tabs button,.step-nav button,.step-footer button{transition:transform .14s,box-shadow .14s,background-color .14s!important}.action-launch:hover,.record-tabs button:hover,.step-footer button:hover{transform:translateY(-2px);box-shadow:0 5px 12px #12405b25!important}.action-launch:active,.record-tabs button:active,.step-footer button:active{transform:translateY(1px) scale(.98)}@keyframes record-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){.action-popup,.supply-dialog,.die-dialog,.record-panel,.step-panel{animation:none!important;transition:none!important}}
@media(max-width:1100px){.record-tabs{padding:12px;gap:4px}.record-tabs button{font-size:12px;padding:9px}.record-panel{padding:18px!important}.material-quantities strong{font-size:20px}}

.sectioned-record>.die-detail-head{background:linear-gradient(115deg,#10344f,#176171)!important;color:white!important}.die-overview .die-location small{color:#3e6763}.die-dialog .die-overview .die-location{max-width:none}
#supply-dialog.supply-summary-dialog .supply-dialog-body>.action-launch:first-of-type{background:#113f5f!important;color:white!important;border-color:#113f5f!important;box-shadow:0 3px 0 #18aa92!important}
/* 12d: catalog surfaces share the MGT interaction language. */
#supplies-view .supply-toolbar,#dies-view .inventory-toolbar{padding:18px 20px!important;margin:0 0 20px!important;background:white;border:1px solid #dce6ed;border-radius:18px;box-shadow:0 4px 14px #173b5010;gap:14px;align-items:center}
#supplies-view .supply-toolbar h1,#dies-view .inventory-toolbar h1{font-size:26px!important;font-weight:780!important;margin:4px 0 8px;letter-spacing:-.6px}
#supplies-view .supply-toolbar small,#dies-view .inventory-toolbar small{font-size:10px;letter-spacing:1.3px;color:#52758b}
#supplies-view .supply-toolbar p{font-size:13px;margin:0;color:#536c7d}
#dies-view .inventory-search{max-width:470px;min-height:44px;border-radius:12px;background:#f3f7fa}
#dies-view .inventory-search input{outline:none;background:transparent;font-size:14px}
#dies-view .inventory-search:focus-within{outline:3px solid #00a98b35;border-color:#008d79}
#supplies-view .supply-orders{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,340px));gap:18px;padding:0;align-items:start}
#supplies-view .supply-order{--status:#297cc0;--tint:#eaf3fc;padding:20px!important;border:1px solid #cadde8;border-top:5px solid var(--status);border-radius:18px;background:white!important;color:#143b55;min-height:0;box-shadow:0 5px 16px #143e5810;text-align:left}
#supplies-view .supply-order[data-status=requested]{--status:#b77a19;--tint:#fff3d9}
#supplies-view .supply-order[data-status=received]{--status:#009774;--tint:#def7ec}
#supplies-view .order-code{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:700;color:#557286}
.catalog-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:var(--tint);color:var(--status);box-shadow:inset 0 -3px #163d5010}
.catalog-icon svg{width:23px;height:23px}
#supplies-view .supply-order h2{font-size:22px!important;font-weight:750!important;letter-spacing:-.4px;margin:16px 0 10px}
#supplies-view .supply-badge{background:var(--tint);color:var(--status);border:0;font-size:12px;padding:6px 10px;border-radius:7px;font-weight:750}
#supplies-view .supply-order>small{display:block;font-size:11px;color:#677f8d;margin:15px 0}
#supplies-view .supply-order>p{font-size:13px;line-height:1.5;margin:10px 0;color:#335c70}
#supplies-view .supply-order>p:first-of-type{background:#f0f6f9;padding:10px 12px;border-radius:9px;font-weight:650}
#supplies-view .supply-order footer{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:18px;padding-top:14px;border-top:1px solid #e0e9ef;font-size:11px;color:#587487}
#supplies-view .supply-order footer b{padding:9px 13px;border-radius:9px;background:#123e5b;color:white;font-size:12px;white-space:nowrap;box-shadow:0 3px 0 #15a58d}
#dies-view .die-filters{background:transparent!important;border:0!important;padding:0 0 16px!important;gap:8px;flex-wrap:wrap}
#dies-view .die-filters button{background:white!important;border:1px solid #ccdce5!important;border-radius:11px;min-height:44px;font-size:12px;color:#416174!important}
#dies-view .die-filters button[aria-pressed=true]{background:#143e5c!important;color:white!important;border-color:#143e5c!important;box-shadow:0 3px 0 #14b394!important}
#dies-view .die-filters button span{background:#eaf1f5;padding:3px 6px;border-radius:5px;color:#244f67;margin-left:5px}
#dies-view .die-grid{grid-template-columns:repeat(auto-fill,minmax(250px,290px));gap:18px}
#dies-view .die-card{--state:#287dc1;--tint:#e6f2ff;border:1px solid #cadce7;border-radius:18px!important;box-shadow:0 5px 16px #143e5810;background:white;overflow:hidden}
#dies-view .die-card[data-state=making]{--state:#a66b10;--tint:#fff1d7}
#dies-view .die-card[data-state=ready]{--state:#008b69;--tint:#dff7ed}
#dies-view .die-card[data-state=repair]{--state:#8454b6;--tint:#f0e8fc}
#dies-view .die-card .die-visual{height:160px!important;background:linear-gradient(135deg,#f3f8fb,#e4eef4);border-bottom:4px solid var(--state);color:#376c83}
#dies-view .die-card .die-photo-empty{background:transparent}
#dies-view .die-card .die-photo-empty svg{height:100px}
#dies-view .die-card .die-photo-empty small{font-size:10px;color:#55798b}
#dies-view .die-card>.die-state{background:var(--tint)!important;color:var(--state)!important;border-radius:7px;font-size:12px;padding:6px 10px;font-weight:750}
#dies-view .die-card>strong{font-size:21px;font-weight:780;letter-spacing:-.4px}
#dies-view .die-card>h2{font-size:16px;font-weight:650;color:#35596e}
#dies-view .die-card>p{font-size:12px;line-height:1.5;color:#587184}
#dies-view .die-card>footer{font-size:12px;color:#285d70;font-weight:650}
#dies-view .die-card>footer span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#123f5c;color:white;box-shadow:0 2px 0 #16a58b}
#supplies-view .supply-order:focus-visible,#dies-view .die-card:focus-visible{outline:3px solid #009d83;outline-offset:4px}
@media(prefers-reduced-motion:no-preference){#supplies-view .supply-order,#dies-view .die-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}#supplies-view .supply-order:hover,#dies-view .die-card:hover{transform:translateY(-4px);border-color:#5b9bb1;box-shadow:0 12px 24px #123c5522}#supplies-view .supply-order:active,#dies-view .die-card:active{transform:translateY(1px) scale(.985)}}
@media(max-width:1100px){#supplies-view .supply-toolbar,#dies-view .inventory-toolbar{padding:14px!important;gap:10px;flex-wrap:wrap}#supplies-view .supply-toolbar h1,#dies-view .inventory-toolbar h1{font-size:23px!important}#supplies-view .supply-orders{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}#dies-view .die-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}}
#supplies-view .supply-order{border-top:4px solid var(--status)!important}#dies-view .die-card .die-visual{border-bottom:4px solid var(--state)!important}
