/* Checkpoint 01: superficie canónica de tablero y contexto.  Las reglas se
   limitan a la vista para conservar el shell y los módulos ya auditados. */
#boardView{--adn-navy:#0d3564;--adn-blue:#1e76b8;--adn-blue-soft:#e7f2fb;--adn-tech:#1d5f95;--adn-gold:#d4a936;--adn-gold-soft:#fff7d6;--adn-ink:#26384a;--adn-muted:#6d7f91;--adn-line:#d7e2ea;--adn-bg:#f2f5f8;--adn-good:#16825f;--adn-good-bg:#e9f8f1;--adn-bad:#b83731;--adn-bad-bg:#fff0ef;--adn-shadow:0 12px 34px rgba(20,49,73,.11);position:relative;min-height:0;height:100%;overflow:hidden;background:var(--adn-bg);color:var(--adn-ink);font-family:Segoe UI,Inter,Arial,sans-serif}
body.ix-ready .ix-workspace:has(#boardView){grid-template-columns:minmax(0,1fr)}
body.ix-ready .ix-main-scroll:has(#boardView){border-right:0}
body.ix-ready main.ix-main:has(#boardView){padding:0}
#boardView *{box-sizing:border-box}
#boardView .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#boardView .btn{border:1px solid var(--adn-line);background:#fff;color:var(--adn-navy);border-radius:10px;padding:9px 13px;font-weight:780;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;cursor:pointer}
#boardView .btn:hover{border-color:#afc0ce}
#boardView .btn.primary{background:var(--adn-blue);border-color:var(--adn-blue);color:#fff}
#boardView .btn.secondary{background:#fff;color:var(--adn-navy)}
#boardView .board-layout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 410px;background:var(--adn-bg)}
#boardView .board-layout>.board-page{min-width:0;overflow-x:hidden;overflow-y:auto;padding:20px 24px 36px}
#boardView .board-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:14px}
#boardView .board-top h2{margin:0 0 5px;color:var(--adn-navy);font-size:23px;line-height:1.2}
#boardView .board-kicker{margin:0 0 5px;color:#59778f;font-size:9px;letter-spacing:.11em;font-weight:900}
#boardView .board-subtitle{margin:0;color:var(--adn-muted);font-size:12px;line-height:1.45}
#boardView .board-top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
#boardView .board-top-actions .hint{font-size:10px;color:#748698}
#boardView .board-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
#boardView .board-search{min-width:min(310px,100%);flex:1 1 310px;max-width:450px}
#boardView .board-search input{width:100%;border:1px solid #cbd8e2;border-radius:9px;background:#fff;color:var(--adn-ink);padding:9px 10px;outline:none;font:inherit;font-size:12px}
#boardView .board-search input:focus{border-color:#68a5d1;box-shadow:0 0 0 3px rgba(36,126,193,.12)}
#boardView .board-filter-group{display:flex;gap:5px;flex-wrap:wrap}
#boardView .board-filter{border:1px solid #cbd8e2;background:#fff;color:#43647b;border-radius:9px;padding:8px 10px;font-size:10px;font-weight:850;cursor:pointer}
#boardView .board-filter:hover{border-color:#8eb6d2}
#boardView .board-filter.is-active{background:var(--adn-blue-soft);border-color:#75acd2;color:#145887}
#boardView .status-filter{font-size:10px;color:#6d8191}
#boardView .summary{display:none!important}
#boardView .operational-board{display:grid;grid-template-columns:repeat(var(--stage-count,1),minmax(235px,1fr));gap:11px;overflow-x:auto;padding:1px 1px 18px;align-items:start}
#boardView .stage{background:#e8eef3;border:1px solid #d2dee7;border-radius:14px;padding:9px;min-height:365px;min-width:0}
#boardView .stage-head{display:flex;justify-content:space-between;gap:8px;padding:5px 4px 10px}
#boardView .stage-head h3{margin:0;color:#244c69;font-size:13px;line-height:1.25}
#boardView .stage-head small{display:block;color:#7a8b9a;margin-top:3px;font-size:9px;line-height:1.35}
#boardView .stage-responsible{border:0;background:transparent;padding:0;color:#52738b;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
#boardView .stage-count{width:27px;height:27px;border-radius:999px;background:#fff;display:grid;place-items:center;color:#536d81;font-weight:900;font-size:10px;flex:0 0 auto}
#boardView .stage-body:empty{min-height:300px}
#boardView .lane{margin-bottom:9px}
#boardView .lane:last-child{margin-bottom:0}
#boardView .lane-title{font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#6d8294;padding:0 4px 5px}
#boardView .board-card{position:relative;min-width:0;border-radius:12px;padding:11px;margin-bottom:8px;box-shadow:0 8px 22px rgba(21,54,83,.09);cursor:pointer;transition:.14s;outline:none}
#boardView .board-card:last-child{margin-bottom:0}
#boardView .board-card:hover,#boardView .board-card:focus{transform:translateY(-1px);box-shadow:0 12px 27px rgba(21,54,83,.13)}
#boardView .board-card h4{margin:7px 0 4px;min-width:0;font-size:13px;line-height:1.25;color:#244c69;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;word-break:break-word}
#boardView .board-card .topline{display:flex;min-width:0;gap:7px;align-items:flex-start;flex-wrap:wrap;font-size:10px;font-weight:850;color:#48697e}
#boardView .board-card .topline>*{min-width:0;overflow-wrap:anywhere;word-break:break-word}
#boardView .board-card .topline .badge{flex:0 0 auto}
#boardView .board-card .topline .order-link{flex:0 1 auto}
#boardView .board-card .code{margin-left:0;flex:1 0 100%;max-width:100%;color:#6f8191;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;word-break:break-word;text-align:left}
#boardView .board-card p{margin:0;min-width:0;color:#64788a;font-size:10.5px;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow-wrap:anywhere;word-break:break-word}
#boardView .board-card .meta{display:flex;min-width:0;justify-content:space-between;gap:6px;margin-top:9px;font-size:9.5px;color:#6f8191}
#boardView .board-card .meta>*{min-width:0;overflow-wrap:anywhere;word-break:break-word}
#boardView .board-card.tech{background:linear-gradient(180deg,#f8fbff,#e7f2fb);border:1px solid #9abbd4;border-left:5px solid var(--adn-order-color,var(--adn-tech))}
/* El estado de novedad se conserva como una señal superior; no puede borrar
   la identidad cromática que comparten T y L del mismo Pedido. */
#boardView .board-card.tech.novelty{border-left-color:var(--adn-order-color,var(--adn-tech));box-shadow:inset 0 3px 0 var(--adn-bad),0 8px 22px rgba(21,54,83,.09)}
#boardView .board-card.phys{background:#fff;border:1px solid #d2dde6;border-left:5px solid var(--adn-order-color,var(--adn-blue))}
#boardView .badge{border-radius:999px;padding:3px 6px;background:#fff;font-size:8.5px;color:#416379}
#boardView .progress{height:7px;border-radius:999px;background:#dbe5ed;overflow:hidden;margin-top:9px}
#boardView .progress span{display:block;height:100%;background:linear-gradient(90deg,var(--adn-blue),#53a4d9)}
#boardView .board-card.selected{box-shadow:0 0 0 3px rgba(30,118,184,.22),0 14px 30px rgba(21,54,83,.17);transform:translateY(-1px)}
#boardView .board-card.order-focused{box-shadow:0 0 0 3px rgba(212,169,54,.18),0 14px 30px rgba(21,54,83,.14)}
#boardView .order-link{min-width:0;border:0;background:transparent;padding:0;color:#1c5f8e;font:inherit;font-weight:900;font-size:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer;overflow-wrap:anywhere;word-break:break-word}
#boardView .order-link:hover{color:#0b3e67}
#boardView .card-click-note{margin-top:7px;min-width:0;padding-top:7px;border-top:1px solid rgba(83,112,136,.13);font-size:8.5px;color:#8393a0;display:flex;justify-content:space-between;gap:4px}
#boardView .card-click-note>*{min-width:0;overflow-wrap:anywhere;word-break:break-word}
#boardView .card-click-note span:last-child{font-weight:800;color:#5d7487}
#boardView .card-next-action{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}
#boardView .card-next-action span{border:1px solid #bdd9cc;border-radius:999px;background:#f4fbf7;padding:3px 5px;color:#2e6a4e;font-size:8px;font-weight:850}
#boardView .canonical-navigator{margin-top:0;max-width:none;background:transparent;border:0;padding:2px 0;opacity:.86}
#boardView #detailLayer{display:none}
#boardView #detailLayer:has(#technicalDetail.is-open){display:block}
#boardView .context-panel{min-width:0;background:#fff;border-left:1px solid var(--adn-line);box-shadow:-12px 0 30px rgba(20,49,73,.055);overflow:auto;position:relative}
#boardView .context-panel-content{min-height:100%;display:flex;flex-direction:column}
#boardView .context-welcome{min-height:100%;display:grid;place-items:center;padding:34px 28px;text-align:center;color:var(--adn-muted)}
#boardView .context-welcome .welcome-icon{width:72px;height:72px;border-radius:22px;background:linear-gradient(145deg,#eef6fc,#dcecf8);color:var(--adn-tech);display:grid;place-items:center;font-size:30px;margin:0 auto 16px;border:1px solid #cee1ef}
#boardView .context-welcome h2{margin:0 0 8px;color:var(--adn-navy);font-size:19px}
#boardView .context-welcome p{margin:0;max-width:300px;line-height:1.55;font-size:12px}
#boardView .context-welcome .legend{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px;width:100%;max-width:310px}
#boardView .context-welcome .legend span{border:1px solid var(--adn-line);border-radius:10px;padding:9px;background:#f8fafc;font-size:10px;font-weight:800}
#boardView .context-welcome .legend .t{color:var(--adn-tech);border-left:4px solid var(--adn-tech)}
#boardView .context-welcome .legend .l{color:#3d7258;border-left:4px solid #4d8b69}
#boardView .context-head{position:sticky;top:0;z-index:9;background:linear-gradient(180deg,#fff,#fbfdff);border-bottom:1px solid var(--adn-line);padding:16px 16px 12px}
#boardView .context-head-row{display:flex;gap:11px;align-items:flex-start}
#boardView .context-head-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-weight:900;background:var(--adn-blue-soft);color:var(--adn-tech);flex:0 0 auto}
#boardView .context-head-icon.phys{background:#edf6f0;color:#3e7758}
#boardView .context-head-icon.order{background:var(--adn-gold-soft);color:#765b08}
#boardView .context-head-copy{min-width:0;flex:1}
#boardView .context-eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:#7b8c9b;font-weight:900}
#boardView .context-head h2{margin:3px 0;min-width:0;color:var(--adn-navy);font-size:16px;line-height:1.22;overflow-wrap:anywhere;word-break:break-word}
#boardView .context-head p{margin:0;min-width:0;color:var(--adn-muted);font-size:10.5px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word}
#boardView .context-close{width:32px;height:32px;padding:0;border-radius:9px;flex:0 0 auto}
#boardView .context-switcher{display:flex;gap:6px;overflow-x:auto;padding:10px 12px;border-bottom:1px solid var(--adn-line);background:#f7fafc;scrollbar-width:thin}
#boardView .context-switcher button{min-width:0;max-width:100%;border:1px solid #d4e0e8;background:#fff;color:#597084;border-radius:999px;padding:7px 10px;font-size:9.5px;font-weight:850;white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:flex;align-items:center;gap:5px;cursor:pointer}
#boardView .context-switcher button:hover{border-color:#8eb6d2}
#boardView .context-switcher button.active{background:var(--adn-navy);border-color:var(--adn-navy);color:#fff}
#boardView .context-switcher .work-chip.active{background:var(--adn-tech);border-color:var(--adn-tech)}
#boardView .context-body{padding:14px 14px 90px;display:grid;gap:11px}
#boardView .context-footer{position:sticky;bottom:0;margin-top:auto;padding:11px 14px;background:rgba(255,255,255,.97);backdrop-filter:blur(8px);border-top:1px solid var(--adn-line);display:flex;gap:7px;z-index:8}
#boardView .context-footer .btn{flex:1}
#boardView .context-footer .btn.secondary{flex:0 0 auto}
#boardView .context-hero{border-radius:15px;padding:15px;background:linear-gradient(145deg,#0f416d,#1f679d);color:#fff;position:relative;overflow:hidden}
#boardView .context-hero:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.08);right:-60px;top:-75px}
#boardView .context-hero.order{background:linear-gradient(145deg,#775d0a,#8a6b12)}
#boardView .context-hero.phys{background:linear-gradient(145deg,#356a4e,#3c7054)}
#boardView .context-hero h3{margin:0 0 4px;min-width:0;font-size:17px;color:#fff;overflow-wrap:anywhere;word-break:break-word}
#boardView .context-hero p{margin:0;min-width:0;color:#fff;font-size:10.5px;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
#boardView .context-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:12px;align-items:center}
#boardView .context-ring{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#fff var(--progress,0%),rgba(255,255,255,.2) 0);position:relative}
#boardView .context-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:#1b5b8c}
#boardView .context-hero.order .context-ring:before{background:#846810}
#boardView .context-hero.phys .context-ring:before{background:#477c5f}
#boardView .context-ring b,#boardView .context-ring small{position:relative;z-index:1;color:#fff}
#boardView .context-ring b{font-size:15px}
#boardView .context-ring small{display:block;font-size:7px;text-transform:uppercase;letter-spacing:.05em}
#boardView .context-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#boardView .context-kpi{border:1px solid var(--adn-line);border-radius:11px;padding:10px;background:#fff}
#boardView .context-kpi small{display:block;color:#7b8c9a;text-transform:uppercase;font-size:8px;font-weight:900;letter-spacing:.04em}
#boardView .context-kpi strong{display:block;margin-top:3px;color:#214e6e;font-size:14px}
#boardView .context-kpi span{display:block;color:#718397;font-size:9px;margin-top:2px}
#boardView .context-section{border:1px solid var(--adn-line);border-radius:13px;background:#fff;overflow:hidden}
#boardView .context-section-head{padding:10px 11px;border-bottom:1px solid var(--adn-line);background:#f8fafc;display:flex;align-items:center;justify-content:space-between;gap:8px}
#boardView .context-section-head>*{min-width:0;overflow-wrap:anywhere;word-break:break-word}
#boardView .context-section-head h3{margin:0;color:#214d6d;font-size:12px}
#boardView .context-section-head span{color:#7a8b99;font-size:9px}
#boardView .context-section-body{padding:10px;display:grid;gap:8px}
#boardView .order-garment-card{border:1px solid #d8e3ea;background:#fff;border-radius:11px;padding:9px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;align-items:center;text-align:left;width:100%;color:var(--adn-ink);font:inherit;cursor:pointer}
#boardView .order-garment-card:hover{border-color:#78acd0;background:#f7fbfe}
#boardView .garment-visual{width:42px;height:42px;border-radius:11px;background:#edf3f7;display:grid;place-items:center;color:#285d82;font-weight:900;overflow:hidden}
#boardView .garment-visual img{width:100%;height:100%;object-fit:cover}
#boardView .order-garment-card>*{min-width:0}
#boardView .order-garment-card b{display:block;color:#204d6d;font-size:11px;overflow-wrap:anywhere;word-break:break-word}
#boardView .order-garment-card small{display:block;color:#758695;font-size:9px;margin-top:3px;overflow-wrap:anywhere;word-break:break-word}
#boardView .garment-state{border-radius:999px;padding:4px 6px;background:#edf3f7;color:#5c7082;font-size:8px;font-weight:850}
#boardView .garment-state.visible{background:var(--adn-good-bg);color:var(--adn-good)}
#boardView .context-work-row,#boardView .context-doc-row,#boardView .context-event-row{border:1px solid #dce5eb;border-radius:10px;padding:9px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
#boardView .context-work-row>* ,#boardView .context-doc-row>* ,#boardView .context-event-row>*{min-width:0}
#boardView .context-work-row b,#boardView .context-doc-row b,#boardView .context-event-row b{display:block;color:#244f6e;font-size:10.5px;overflow-wrap:anywhere;word-break:break-word}
#boardView .context-work-row small,#boardView .context-doc-row small,#boardView .context-event-row small{display:block;color:#758696;font-size:8.8px;margin-top:3px;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}
#boardView .context-work-row .state,#boardView .context-doc-row .state{align-self:start;border-radius:999px;padding:4px 6px;background:#eef3f7;color:#607586;font-size:8px;font-weight:850}
#boardView .context-event-row .state{align-self:start;border-radius:999px;padding:4px 6px;background:#eef3f7;color:#607586;font-size:8px;font-weight:850}
#boardView .context-work-row .state.issue{background:var(--adn-bad-bg);color:var(--adn-bad)}
#boardView .context-work-row .state.done{background:var(--adn-good-bg);color:var(--adn-good)}
#boardView .context-event-row .state.issue{background:var(--adn-bad-bg);color:var(--adn-bad)}
#boardView .context-event-row .state.done{background:var(--adn-good-bg);color:var(--adn-good)}
#boardView .context-document-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
#boardView .context-document-actions b,#boardView .context-document-actions small{display:block}
#boardView .context-document-actions b{color:#244f6e;font-size:10.5px}
#boardView .context-document-actions small{margin-top:3px;color:#758696;font-size:8.8px;line-height:1.35}
#boardView .context-document-actions .btn{min-height:31px;white-space:normal}
#boardView .context-mockup{height:155px;border-radius:12px;border:1px solid #d8e3ea;background:#f7fafc;overflow:hidden;display:grid;place-items:center}
#boardView .context-mockup img{width:100%;height:100%;object-fit:contain}
#boardView .context-mockup span{color:#8192a0;font-size:10px}
#boardView button.context-mockup--action{width:100%;padding:0;cursor:pointer;font:inherit}
#boardView button.context-mockup--action:hover{border-color:#78acd0;background:#f2f8fc}
#boardView button.context-mockup--action:focus-visible{outline:3px solid #3e91ca;outline-offset:2px}
#boardView .context-next{border-left:4px solid var(--adn-gold);background:#fff9e7;border-radius:10px;padding:10px;color:#5f4a0d;font-size:10px;line-height:1.45}
#boardView .context-next b{display:block;color:#4b3a08;margin-bottom:3px}
#boardView .context-stage-path{display:flex;gap:5px;overflow-x:auto;padding-bottom:2px}
#boardView .context-stage-node{min-width:76px;border:1px solid #d9e3ea;border-radius:9px;padding:7px;background:#f8fafc;text-align:center;color:#728594;font-size:8px}
#boardView .context-stage-node.current{background:var(--adn-blue-soft);border-color:#7eafd1;color:#165b8b;font-weight:900}
#boardView .context-stage-node.done{background:var(--adn-good-bg);border-color:#b8dfcf;color:var(--adn-good)}
#boardView .context-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#boardView .context-detail{border:1px solid #dce5eb;border-radius:10px;padding:9px;background:#fff}
#boardView .context-detail small{display:block;color:#7a8c99;text-transform:uppercase;font-size:7.8px;font-weight:900}
#boardView .context-detail b{display:block;min-width:0;margin-top:3px;color:#244e6c;font-size:10.5px;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:1280px){#boardView .board-layout{grid-template-columns:minmax(0,1fr) 370px}}
@media(max-width:1080px){#boardView .board-layout{display:block}#boardView .context-panel{position:fixed;right:0;top:48px;bottom:0;width:min(420px,92vw);z-index:46;transform:translateX(103%);transition:.22s;box-shadow:-22px 0 55px rgba(15,45,71,.22)}#boardView .context-panel.has-context{transform:none}#boardView .board-layout>.board-page{height:100%}}
@media(max-width:760px){#boardView .board-layout>.board-page{padding:13px}#boardView .board-top{align-items:stretch;flex-direction:column}#boardView .board-top-actions{justify-content:space-between}#boardView .operational-board{grid-template-columns:repeat(var(--stage-count,1),225px)}#boardView .context-panel{top:42px;width:min(420px,96vw)}#boardView .context-body{padding-bottom:82px}#boardView .context-switcher{padding-inline:9px}#boardView .context-head{padding:13px 12px 10px}}
