:root{font:16px Arial,Helvetica,sans-serif;color:#253041;background:#f5f6f8}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 88% 0,#263545 0,transparent 35%),#f5f6f8}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{min-height:68px;background:#10151c;border-bottom:1px solid #354251;display:flex;align-items:center;gap:35px;padding:0 clamp(16px,3vw,48px)}.brand{font-weight:800;white-space:nowrap;font-size:17px;display:flex;align-items:center;gap:8px}.brand strong{color:#d71920}.mark{background:#d71920;color:#182115;border-radius:7px;width:34px;height:34px;display:grid;place-items:center;font-size:25px}.topbar nav{align-self:stretch;display:flex;overflow-x:auto;gap:3px}.topbar nav button{border:0;border-bottom:2px solid transparent;color:#b9c5d1;background:none;white-space:nowrap;padding:0 12px;font-size:14px;font-weight:700}.topbar nav button:hover{background:#ffffff;color:white}.topbar nav button.active{color:#b51219;border-color:#d71920;background:#1d2931}.mode{margin-left:auto;white-space:nowrap;color:#82909f;font-size:11px;font-weight:800;letter-spacing:.1em}.content{max-width:1450px;margin:auto;padding:clamp(22px,3.5vw,50px)}.heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:27px}.eyebrow{font-size:12px;letter-spacing:.14em;color:#d71920;font-weight:800;margin-bottom:9px}.heading h1{font-size:clamp(30px,3vw,42px);letter-spacing:-.035em;margin:0}.heading p{margin:8px 0 0;color:#64748b}.tabs{display:flex;gap:12px;border-bottom:1px solid #e5e9ef;margin-bottom:18px;overflow-x:auto}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:12px 16px;color:#64748b;white-space:nowrap}.tabs button.active{border-color:#d71920;color:#b51219;font-weight:700}.panel{background:#ffffff;border:1px solid #e5e9ef;border-radius:12px;overflow:hidden;box-shadow:0 18px 50px #0002}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 25px}.panel-head h2{font-size:19px;margin:0 0 5px}.panel-head p{color:#64748b;font-size:14px;margin:0}.button,.outline,.small,.ghost{border:1px solid transparent;border-radius:7px;padding:10px 16px;background:#d71920;color:#1a2710;font-weight:700;white-space:nowrap}.button:hover{background:#e8fa9d}.outline{background:#ffffff;border-color:#dce2ea;color:#334155}.outline:hover,.ghost:hover{background:#3b4a5b}.small,.ghost{padding:7px 11px;font-size:13px}.ghost{background:transparent;color:#475569;border-color:#dce2ea}.danger{background:#6c343c;color:#ffe4e4}.inline{display:flex;gap:7px}.table-wrap{overflow:auto;border-top:1px solid #e5e9ef}table{border-collapse:collapse;width:100%;min-width:750px;text-align:left}th{background:#f8fafc;color:#99aaba;text-transform:uppercase;font-size:12px;letter-spacing:.08em;padding:15px 17px;white-space:nowrap}td{border-top:1px solid #e8ecf1;padding:15px 17px;font-size:14px;color:#334155}tr:hover td{background:#273440}td strong{font-size:15px;color:white}.empty{text-align:center;padding:55px 20px;color:#aeb9c6}.badge{display:inline-block;padding:5px 9px;border-radius:5px;font-size:12px;font-weight:700;background:#3d4b58;color:#dbe4ed}.badge.good{background:#38513c;color:#d5f4ba}.badge.warn{background:#674a2c;color:#ffe2ad}.badge.bad{background:#63343d;color:#ffd3da}.badge.blue{background:#31516b;color:#d5ecff}#flash:not(:empty),#modal-error:not(:empty){padding:12px 15px;border-radius:7px;margin-bottom:14px;background:#603138;color:#ffe0e5}#flash.ok{background:#2f4f37;color:#e1f9d9}dialog{background:#ffffff;color:#f2f6fa;border:1px solid #617081;border-radius:12px;width:min(780px,calc(100vw - 24px));max-height:90vh;overflow:auto;padding:0;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#080d15aa}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;border-bottom:1px solid #475766}.modal-head h2{font-size:22px;margin:0}.icon{background:none;border:0;color:#e8f1f8;font-size:30px;line-height:1}.modal-body{padding:23px 25px;display:grid;gap:17px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:grid;gap:7px;font-size:14px;font-weight:700;color:#334155}.field input,.field select,.field textarea{background:#ffffff;border:1px solid #dce2ea;border-radius:7px;color:white;padding:10px 12px;min-height:43px;width:100%;font-size:16px}.field textarea{min-height:86px}.field input[type=file]{border:1px dashed #728394;padding:12px}.field a{font-size:13px;color:#b51219}.hint{margin:0;color:#64748b}.note{margin:0;border-left:3px solid #d71920;background:#2c3946;padding:13px}.checks{display:grid;grid-template-columns:1fr 1fr;gap:8px}.checks label{border:1px solid #516171;border-radius:7px;padding:11px;background:#2b3744;font-size:14px;display:flex;align-items:center;gap:9px;cursor:pointer}.details{display:grid;grid-template-columns:1fr 1fr;gap:12px}.details>div{border-bottom:1px solid #52616f;padding-bottom:9px}.details span{display:block;color:#a9b8c6;font-size:13px;margin-bottom:5px}.details b{font-size:16px}.photos{display:flex;flex-wrap:wrap;gap:10px}.photos img{width:108px;height:88px;object-fit:cover;border:1px solid #6c7c8a;border-radius:7px}.dot{padding:65px 24px;text-align:center;max-width:750px}.dot-icon{font-size:35px;color:#d71920}.dot p{color:#b5c3d0;line-height:1.6}.muted{color:#64748b}#modal-error{margin:0 25px 20px}#modal-error:empty{display:none}@media(max-width:1000px){.topbar{display:block;padding:12px 18px 0}.topbar nav{margin-top:8px}.topbar nav button{min-height:46px}.mode{display:none}}@media(max-width:650px){.content{padding:20px 13px}.heading{align-items:start;flex-direction:column}.panel-head{align-items:start;flex-direction:column}.grid2,.details,.checks{grid-template-columns:1fr}.modal-body{padding:18px}.modal-head{padding:17px}.topbar nav button{padding:0 9px}}
[hidden]{display:none!important}.selected-diagnoses{display:flex;flex-wrap:wrap;gap:9px}.diagnosis-chip{display:inline-flex;align-items:center;gap:10px;border-radius:20px;background:#405232;color:#e6f6ce;padding:6px 8px 6px 12px;font-size:14px}.diagnosis-chip button{border:0;border-radius:50%;background:#5e7646;color:#fff;width:22px;height:22px;font-size:19px;line-height:18px}.urgent-context{border:1px solid #896946;border-left:4px solid #f3b05f;background:#3e352f;padding:15px;border-radius:7px;display:grid;gap:8px}.urgent-context p{margin:0}.repeat-check{display:flex;align-items:center;gap:9px;background:#55383b;border:1px solid #ba7377;padding:13px;border-radius:7px;color:#ffe0e0;font-size:14px;font-weight:700}.repeat-check input{width:18px;height:18px}.photos{margin:5px 0}.table-wrap .photos img{width:57px;height:47px}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(440px,100%);border:1px solid #546579;background:#ffffff;border-radius:15px;padding:32px;box-shadow:0 30px 90px #0006}.auth-card h1{margin:8px 0;font-size:29px}.auth-card p{color:#64748b;margin:0 0 24px}.auth-card form{display:grid;gap:18px}.auth-card .button{width:100%}#auth-error:not(:empty){background:#603138;color:#ffe0e5;padding:12px;margin-top:18px;border-radius:7px}.company-logo{max-width:145px;max-height:54px;object-fit:contain}.brand .company-logo{max-width:52px;max-height:40px}.account{margin-left:auto;display:flex;align-items:center;gap:10px;white-space:nowrap;color:#b9c7d5;font-size:13px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.module-grid .repeat-check{background:#2c3946;border-color:#556579;color:#e2edf6}.config-logo{display:grid;gap:20px;padding:24px;max-width:420px}.config-logo img{max-width:250px;max-height:140px;object-fit:contain}@media(max-width:1000px){.account{position:absolute;right:18px;top:15px}.topbar{position:relative}.topbar .brand{padding-right:145px}}@media(max-width:650px){.account #user-name{display:none}.module-grid{grid-template-columns:1fr}}
/* El logo es protagonista en el acceso y conserva su proporción. */
.auth-card{width:min(520px,100%)}.auth-card .company-logo{display:block;max-width:min(350px,100%);max-height:150px;width:auto;height:auto;object-fit:contain;margin:0 auto 25px;padding:14px;background:#f4f6f8;border-radius:12px;box-shadow:0 8px 26px #0004}.auth-card .company-logo[hidden]{display:none}
/* Identidad y encabezados de módulo */
.auth-card{width:min(640px,100%);padding:38px 42px}.auth-card .company-logo{max-width:min(500px,100%);max-height:230px;min-height:110px;object-fit:contain;margin:0 auto 30px;padding:16px;background:#f5f7fa;border:1px solid #bdc8d2;border-radius:14px}.auth-card h1{font-size:clamp(34px,4vw,45px);font-weight:800;letter-spacing:-.035em;color:#fff;margin:12px 0}.heading{padding:12px 0 23px;border-bottom:1px solid #455667}.heading h1{font-size:clamp(40px,4vw,58px);font-weight:850;line-height:1.05;color:#fff;letter-spacing:-.045em;text-shadow:0 3px 16px #0007}.heading .eyebrow{font-size:13px;letter-spacing:.17em}.heading p{font-size:16px}.route-card{display:grid;gap:12px;background:#2d3b47;border:1px solid #6b8790;border-left:4px solid #d71920;padding:17px;border-radius:9px}.route-card p{margin:0;color:#cbd7e2;line-height:1.45}@media(max-width:650px){.auth-card{padding:26px 20px}.auth-card .company-logo{min-height:85px;max-height:175px}.heading h1{font-size:38px}}
.auth-card .company-logo{width:100%;height:220px;max-width:100%;max-height:none;min-height:0}@media(max-width:650px){.auth-card .company-logo{height:175px;max-height:none;min-height:0}}
.dot-items-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dot-item{display:grid;gap:12px;padding:14px;background:#2a3744;border:1px solid #607282;border-radius:9px;margin:8px 0}.dot-item .outline{justify-self:start}.dot-item p{margin:2px 0;color:#475569}

/* VARELA · Interfaz 1.11 */
:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263244;background:#f5f6f8;--brand:#d71920}body{background:#f5f6f8}button{transition:background .16s,border-color .16s,box-shadow .16s}button:focus-visible,a:focus-visible{outline:3px solid #ee777c;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:#fff;border-right:1px solid #e5e9ef;display:flex;flex-direction:column;padding:28px 18px 20px;z-index:30}.brand{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:0 10px 26px}.brand .company-logo{width:100%;max-width:none;max-height:88px;border-radius:8px}.brand-title{font-size:18px;letter-spacing:.015em;color:#263244}.brand strong{color:var(--brand)}.brand small{display:block;font-size:12px;color:#8791a1;font-weight:500;margin-top:5px}.nav-label{font-size:10px;font-weight:750;letter-spacing:.12em;color:#949cab;padding:10px 14px 14px}.sidebar nav{display:grid;gap:5px;overflow:auto}.sidebar nav button{display:flex;align-items:center;gap:13px;text-align:left;width:100%;border:0;border-radius:9px;padding:13px 15px;background:transparent;color:#657084;font-size:14px;font-weight:600}.sidebar nav svg{width:21px;height:21px;flex-shrink:0}.sidebar nav button:hover{background:#f6f7f9;color:#222f40}.sidebar nav button.active{background:#fff0f1;color:#c9151d;box-shadow:inset 3px 0 #d71920}.sidebar-footer{margin-top:auto;padding:24px 12px 0;font-size:11px;color:#929baa;line-height:1.6}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#d71920;margin-right:5px}.workspace{margin-left:252px}.topbar{position:sticky;top:0;z-index:10;display:flex;min-height:76px;padding:0 32px;background:#fff;border-bottom:1px solid #e5e9ef;gap:16px}.topbar-label{font-size:12px;font-weight:800;letter-spacing:.06em;color:#d71920}.topbar-label span{font-weight:500;color:#8a94a3;letter-spacing:0;margin-left:8px}.account{position:static;color:#475569;font-size:13px}.avatar{width:32px;height:32px;border-radius:50%;background:#fff0f1;color:#c9151d;display:grid;place-items:center;font-weight:800}.content{padding:34px 32px 48px;max-width:1680px}.heading{padding:0;border:0;align-items:center;margin-bottom:27px}.heading h1{color:#233044;text-shadow:none;font-size:34px;letter-spacing:-.035em;line-height:1.2}.heading .eyebrow{font-size:10px;color:#9aa3b1;letter-spacing:.1em;margin-bottom:9px}.heading p{font-size:14px;color:#788395;margin-top:8px}.tabs{gap:5px;border:0;margin-bottom:18px;padding:5px;background:#eaeef3;border-radius:10px;width:fit-content;max-width:100%}.tabs button{border:0;border-radius:7px;font-size:13px;padding:10px 16px}.tabs button.active{background:#fff;color:#c9151d;box-shadow:0 2px 5px #2233440d}.panel{border-radius:14px;box-shadow:0 3px 12px #25324404;border:1px solid #e5e9ef}.panel-head{padding:24px}.panel-head h2{color:#293548;font-size:17px}.panel-head p{line-height:1.5;font-size:13px}.button,.small{background:#d71920;color:#fff;border-radius:8px}.button:hover,.small:hover{background:#b8131a}.outline,.ghost{background:#fff;border-color:#dce2ea;color:#526174;border-radius:8px}.outline:hover,.ghost:hover{background:#f3f5f8}.danger{background:#fff1f2;color:#be123c;border-color:#fecdd3}th{font-size:10px;color:#8590a0;letter-spacing:.07em;padding:15px 20px;background:#f8fafc}td{padding:17px 20px;font-size:13px}td strong{color:#293548;font-size:14px}tr:hover td{background:#fafbfc}.empty{color:#8b95a4;padding:64px 20px}.badge{background:#f1f4f8;color:#64748b;border-radius:6px;font-size:11px;padding:6px 9px}.badge.good{background:#eaf7ef;color:#237448}.badge.warn{background:#fff4df;color:#986614}.badge.bad{background:#fff0f1;color:#c9151d}.badge.blue{background:#edf4ff;color:#3265a2}dialog{background:#fff;color:#293548;border:1px solid #e5e9ef;border-radius:16px;box-shadow:0 24px 90px #15203535}dialog::backdrop{background:#16203377;backdrop-filter:blur(3px)}.modal-head{border-color:#e5e9ef}.icon{color:#64748b}.field input,.field select,.field textarea{color:#263244;background:#fff;border-color:#dce2ea;border-radius:8px}.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid #fff0f1;border-color:#d71920}.field input[type=checkbox],input[type=checkbox]{accent-color:#d71920}.hint,.details span,.dot p{color:#788395}.note,.route-card,.dot-item{background:#f8fafc;border-color:#e0e6ed;color:#475569}.note,.route-card{border-left-color:#d71920}.route-card p,.dot-item p{color:#475569}.checks label,.module-grid .repeat-check{background:#f8fafc;border-color:#e0e6ed;color:#475569}.details>div{border-color:#e5e9ef}.diagnosis-chip{background:#fff0f1;color:#c9151d}.diagnosis-chip button{background:#d71920}.urgent-context{background:#fffaef;color:#865c20;border-color:#f4dbab}.repeat-check{background:#fff1f2;border-color:#f7c7cb;color:#af2833}.auth-screen{background:radial-gradient(ellipse at 10% 15%,#ffe5e6,transparent 45%),#f5f6f8}.auth-card{width:min(470px,100%);padding:36px;border:1px solid #e5e9ef;background:#fff;box-shadow:0 20px 70px #25324410;border-radius:20px}.auth-card .company-logo{height:auto;min-height:0;max-height:150px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:9px;margin-bottom:30px}.auth-card h1{color:#263244;font-size:29px}.auth-card p{color:#788395;font-size:14px}.auth-card .eyebrow{font-size:10px}.menu-toggle,.nav-backdrop{display:none}.dot-icon{color:#d71920}
@media(max-width:1100px){.sidebar{width:224px}.workspace{margin-left:224px}.content{padding:28px 22px}.topbar{padding:0 22px}.heading h1{font-size:30px}}
@media(max-width:800px){.sidebar{width:252px;transform:translateX(-100%);transition:transform .2s}.workspace{margin-left:0}.nav-open .sidebar{transform:translateX(0)}.menu-toggle{display:block;background:#fff;border:1px solid #e5e9ef;border-radius:7px;color:#475569;font-size:20px;padding:5px 10px}.nav-open .nav-backdrop{display:block;position:fixed;inset:0;border:0;background:#16203366;z-index:20}.topbar{display:flex;padding:0 16px;min-height:64px}.account{position:static}.heading{flex-direction:row}.content{padding:24px 16px}.topbar-label span{display:none}}
@media(max-width:650px){.heading{align-items:flex-start;flex-direction:column;gap:16px}.heading h1{font-size:30px}.heading p{line-height:1.5}.panel-head{padding:20px}.account #user-name{display:none}.account .avatar{display:none}.topbar-label{font-size:11px}.auth-card{padding:28px 22px}.auth-card .company-logo{height:auto}.inline{flex-wrap:wrap}.dot-items-head{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* INVENTARIOS 1.12 · Expedientes de detalle */
dialog.detail-modal{width:min(980px,calc(100vw - 32px));max-height:90dvh}.modal-head{position:sticky;top:0;background:#fff;z-index:2}.detail-modal .modal-body{padding:24px;background:#f7f8fa;gap:18px}.detail-hero{display:flex;align-items:center;gap:16px;background:#fff;padding:20px 24px;border:1px solid #e7eaf0;border-radius:12px;border-left:4px solid #d71920}.detail-asset-icon{width:48px;height:48px;border-radius:12px;background:#fff0f1;display:grid;place-items:center;color:#d71920;flex-shrink:0}.detail-asset-icon svg{width:26px;height:26px}.detail-identity{min-width:0;flex:1}.detail-identity>span{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:#8a94a3;font-weight:700}.detail-identity h3{margin:5px 0 0;font-size:27px;color:#263244;overflow-wrap:anywhere;letter-spacing:-.02em}.detail-hero>.badge{font-size:12px;padding:8px 12px;white-space:normal}.detail-status-row{display:flex;gap:8px;flex-wrap:wrap}.detail-block{background:#fff;border:1px solid #e7eaf0;border-radius:12px;padding:20px;min-width:0}.detail-block>h3{font-size:13px;color:#334155;margin:0 0 16px;font-weight:750}.detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:20px 24px}.detail-facts>div{min-width:0}.detail-facts dt{font-size:11px;color:#8a94a3;margin:0 0 6px}.detail-facts dd{margin:0;font-size:14px;line-height:1.5;color:#334155;font-weight:650;overflow-wrap:anywhere}.detail-text{font-size:14px;line-height:1.65;color:#586579;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.detail-secondary{font-size:12px;color:#7c8797;line-height:1.6;margin:12px 0 0}.detail-diagnoses{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.detail-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:16px}.detail-gallery a{display:flex;flex-direction:column;border:1px solid #e5e9ef;border-radius:10px;background:#f8fafc;overflow:hidden;text-decoration:none;min-width:0}.detail-gallery img{width:100%;height:180px;object-fit:contain;background:#f1f4f8}.detail-gallery span{font-size:11px;color:#657084;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.detail-gallery b{color:#d71920}.detail-gallery a:hover{border-color:#e59fa3;box-shadow:0 3px 12px #2632440a}.detail-no-photos{display:flex;align-items:center;gap:10px;border:1px dashed #dde3eb;border-radius:9px;padding:18px;color:#8a94a3;font-size:12px;margin-top:12px;background:#fafbfc}.detail-no-photos svg{width:21px;height:21px;flex-shrink:0}.detail-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-comparison .detail-gallery{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.detail-comparison .detail-gallery img{height:165px}.detail-timeline{display:grid;gap:0}.detail-timeline>div{position:relative;display:flex;gap:14px;padding:0 0 24px}.detail-timeline>div:last-child{padding-bottom:0}.detail-timeline>div:not(:last-child):before{content:'';position:absolute;left:5px;top:15px;width:2px;height:calc(100% - 13px);background:#e5e9ef}.timeline-dot{width:12px;height:12px;border-radius:50%;background:#d71920;border:3px solid #ffe0e2;flex-shrink:0;margin-top:3px}.timeline-dot.rejected{background:#be123c}.detail-timeline strong{font-size:13px}.detail-timeline p{margin:6px 0 3px;font-size:13px;color:#657084}.detail-timeline small{font-size:11px;color:#8a94a3}.detail-defects{display:grid;gap:12px}.detail-defects article{padding:14px;border-radius:9px;background:#f8fafc;border:1px solid #e7eaf0}.detail-defects article>strong{display:block;font-size:12px;margin:10px 0 5px}.modal-body>.detail-hero,.modal-body>.detail-block{width:100%}
@media(max-width:650px){dialog.detail-modal{width:calc(100vw - 16px);max-height:94dvh}.detail-modal .modal-body{padding:14px;gap:12px}.detail-hero{padding:16px;gap:12px;flex-wrap:wrap}.detail-identity h3{font-size:24px}.detail-hero>.badge{margin-left:60px}.detail-block{padding:16px}.detail-facts{gap:16px;grid-template-columns:1fr}.detail-comparison{grid-template-columns:1fr}.detail-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-gallery img{height:145px}.detail-gallery span{padding:9px;font-size:10px}.detail-comparison .detail-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-head h2{font-size:19px}}

.patio-form{padding:0 24px 24px;display:grid;gap:22px}.patio-form>.button{justify-self:end}.patio-extra{background:#f8fafc;border:1px solid #e5e9ef;border-radius:10px;padding:18px}.patio-extra summary{cursor:pointer;font-size:14px;font-weight:700;margin-bottom:18px}.field small{font-size:11px;color:#8a94a3;font-weight:400;line-height:1.5}.matrix-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:0 24px 22px}.matrix-filters .field{flex:1;min-width:145px}.matrix-count{font-size:12px;color:#788395;padding:0 24px}.matrix-scroll{overflow:auto;max-height:65vh;border-top:1px solid #e5e9ef}.inventory-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.inventory-matrix th,.inventory-matrix td{border-right:1px solid #e5e9ef;border-bottom:1px solid #e5e9ef;min-width:110px}.inventory-matrix thead th{position:sticky;top:0;text-align:center;background:#b9151c;color:white;z-index:2;padding:12px 14px;height:40px}.inventory-matrix thead tr:nth-child(2) th{top:40px;background:#d71920}.inventory-matrix th:first-child[rowspan],.inventory-matrix tbody th{position:sticky;left:0;background:#f8fafc;color:#334155;z-index:1;min-width:140px;text-align:left}.inventory-matrix th:first-child[rowspan]{z-index:4;background:#991218;color:white}.inventory-matrix td{padding:14px}.inventory-matrix td.matrix-loaded{background:#fff1f2}.inventory-matrix td.matrix-empty{background:#f8fafc}.matrix-link{padding:0;background:none;border:0;color:#a6171d;text-decoration:underline;text-align:left;font-size:12px;white-space:normal;max-width:200px}.gps-link{font-size:13px;color:#c9151d}#patio-message{font-size:13px;color:#475569;line-height:1.6}#patio-today{border-top:1px solid #e5e9ef}@media(max-width:650px){.patio-form{padding:0 16px 20px}.matrix-filters{padding:0 16px 20px}.matrix-filters .field{min-width:130px}.patio-form>.button{width:100%}.matrix-count{padding:0 16px}}
/* 1.14: captura por secciones y filtros compactos */
#patio-form{display:grid;padding:4px 24px 28px;gap:20px;max-width:1120px;margin:0 auto}.capture-section{background:#f8fafc;border:1px solid #e5e9ef;border-radius:12px;padding:22px}.capture-section-title{display:flex;align-items:center;gap:12px;margin-bottom:22px}.capture-section-title>span{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;background:#fff0f1;color:#c9151d;border-radius:9px;font-size:11px;font-weight:800}.capture-section-title h3{margin:0;font-size:14px;color:#334155}.capture-section-title p{margin:5px 0 0;font-size:12px;color:#8791a1;line-height:1.5}.capture-main-grid{display:grid;grid-template-columns:1.15fr 1.15fr .8fr;gap:20px}#patio-form .field{gap:9px;font-size:12px}#patio-form input,#patio-form select{font-size:14px;min-height:45px}#patio-form textarea{font-size:14px;min-height:105px;resize:vertical}#patio-form .patio-extra{margin:0;padding:20px 22px;background:#fff}#patio-form .patio-extra summary{font-size:13px;color:#526174;margin:0;list-style-position:inside}#patio-form .patio-extra summary span{float:right;font-size:11px;color:#929baa;font-weight:400}#patio-form .patio-extra[open] summary{margin-bottom:22px}#patio-form .patio-extra .grid2{gap:24px}#patio-form .capture-evidence{background:#fff}#patio-form .capture-evidence input[type=file]{max-width:100%;font-size:12px;background:#fafbfc;padding:12px}#patio-form .capture-evidence input::file-selector-button{background:#fff;border:1px solid #dce2ea;border-radius:6px;padding:7px 10px;font:inherit;color:#526174;margin-right:10px}.capture-gps-note{margin:16px 0 0;font-size:12px;line-height:1.6;color:#8791a1}.capture-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #edf0f4;padding-top:20px}.capture-actions .button{padding:12px 22px}.capture-actions #patio-message:empty{display:none}.capture-actions .button{margin-left:auto}#patio-today{background:#fafbfc;margin-top:4px}#patio-today .panel-head{padding-top:26px}#matrix-filters{display:grid;grid-template-columns:155px 155px minmax(150px,1fr) minmax(130px,.8fr) auto;gap:12px;align-items:end;margin:0 24px 20px;padding:16px;background:#f8fafc;border:1px solid #e5e9ef;border-radius:10px}#matrix-filters .field{min-width:0;font-size:11px;gap:6px}#matrix-filters .field input,#matrix-filters .field select{min-height:38px;height:38px;font-size:12px;padding:7px 10px}#matrix-filters .matrix-filter-actions{display:flex;gap:8px;align-items:center}#matrix-filters button{height:38px;padding:8px 12px;font-size:12px}.matrix-count{margin:12px 0 16px}.matrix-scroll{max-height:70vh}
@media(max-width:1250px){#matrix-filters{grid-template-columns:repeat(4,minmax(0,1fr))}#matrix-filters .matrix-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:950px){.capture-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.capture-main-grid>.field:last-child{grid-column:1/-1;max-width:50%}#matrix-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#patio-form{padding:0 14px 20px;gap:14px}.capture-section{padding:17px}.capture-section-title{margin-bottom:18px;align-items:flex-start}.capture-main-grid{grid-template-columns:1fr;gap:18px}.capture-main-grid>.field:last-child{max-width:none;grid-column:auto}#patio-form .patio-extra{padding:17px}#patio-form .patio-extra summary span{float:none;display:block;margin:8px 0 0 15px}.capture-actions{flex-direction:column;align-items:stretch;gap:14px}.capture-actions .button{width:100%;margin:0}#matrix-filters{margin:0 14px 16px;padding:12px;gap:12px}#matrix-filters .matrix-filter-actions{justify-content:stretch}#matrix-filters .matrix-filter-actions button{flex:1}#matrix-filters .field input,#matrix-filters .field select{font-size:13px}}

/* 1.15: distribución del formulario de referencia */
#patio-form{max-width:1200px;padding:12px 40px 36px;gap:24px}#patio-form .capture-main-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}#patio-form .capture-main-grid>.field:last-child{grid-column:auto;max-width:none}#patio-form .field{font-size:13px;gap:10px}#patio-form .field input,#patio-form .field select{min-height:48px}#patio-form .patio-extra{padding:20px;background:#fafbfc}#patio-form .patio-extra summary{font-weight:700;color:#475569}#patio-form .patio-photo{border:0;padding:0;color:#788395;font-size:12px}#patio-form .patio-photo summary{cursor:pointer}#patio-form .patio-photo[open] summary{margin-bottom:15px}#patio-form .patio-photo input{font-size:12px}#patio-form .capture-gps-note{background:#fff1f2;padding:15px 18px;border-radius:9px;font-size:12px;margin:0}#patio-form .capture-actions{border:0;padding-top:10px}#patio-form .capture-actions .button{padding:13px 22px;min-height:48px}@media(max-width:650px){#patio-form{padding:6px 18px 26px;gap:20px}#patio-form .capture-main-grid{grid-template-columns:1fr;gap:20px}}

/* Identidad Varela y avisos DOT */
.sidebar #nav button.active{background:#fff1f2;color:#a71920;border-color:#f6c7ca}
.button,button.small:not(.outline):not(.ghost){background:#bc2026;color:#fff;border-color:#bc2026}
.button:hover{background:#991b1f}
.tabs button.active{color:#b91c1c;border-color:#b91c1c}
.avatar{background:#fee2e2;color:#991b1b}
.dot-warning{margin:0 0 18px;padding:16px 20px;border:1px solid #f3b5b9;border-left:5px solid #bc2026;border-radius:10px;background:#fff1f2;color:#7f1d1d;line-height:1.55;overflow-wrap:anywhere}
.dot-warning p{margin:7px 0;font-size:13px}
.brand .company-logo{background:white;object-fit:contain;border-radius:10px;max-height:110px}
.auth-card .company-logo{object-fit:contain;background:white;width:200px;height:200px;max-width:100%;margin:0 auto 8px}

.yms-name{font-size:14px;color:#64748b;margin:6px 0 20px;text-align:center}
.brand-title small{white-space:normal;line-height:1.45}
