/* Interfaz v2: identidad del colegio, iconos consistentes y controles táctiles. */
:root{--wine:#a00817;--wine-dark:#800614;--ink:#202735;--muted:#697386;--line:#e5e8ee;--bg:#f4f6f8;--green:#26785f;--blue:#3766a4;--amber:#946610}
body{font-size:14px;font-family:Segoe UI,Inter,Arial,sans-serif;line-height:1.45}.icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex-shrink:0}.primary .icon,.secondary .icon,.text-button .icon{width:18px;height:18px}.sidebar{width:256px;padding:27px 18px 24px}.brand{display:block;padding:0 9px}.brand img{display:block;width:100%;height:91px;object-fit:contain}.product-name{margin:23px 12px 0;padding-top:23px;border-top:1px solid var(--line);font-weight:700;font-size:20px;letter-spacing:-.4px}.product-name span{display:block;font-size:9px;letter-spacing:1.5px;font-weight:500;color:#7b8494;margin-top:5px}.sidebar-label{margin:35px 15px 12px;font-size:10px;letter-spacing:1.5px}.nav-item{padding:13px 14px;font-size:13px;gap:12px;border-radius:9px;min-height:48px}.nav-item>span{display:flex;align-items:center;width:23px}.nav-item .icon{width:21px;height:21px}.nav-item.active{background:#fbebee;color:var(--wine);box-shadow:inset 3px 0 0 var(--wine)}.sidebar nav{gap:5px}.sidebar-bottom{padding-top:21px;font-size:12px}.sidebar-bottom small{font-size:11px}.workspace{margin-left:256px}.topbar{height:76px;padding:0 38px;background:#ffffffed}.breadcrumb{font-size:12px}.breadcrumb strong{color:#394456;font-weight:600}.local-status{display:flex;align-items:center;gap:7px;color:#758092;font-size:11px}.connection-dot{height:6px;width:6px;border-radius:50%;background:#498775}.avatar{background:#f4e9eb;width:37px;height:37px;font-size:11px}main{padding:35px 38px 44px}.page-heading{margin-bottom:26px;align-items:center}h1{font-size:32px;letter-spacing:-1px;font-weight:700}h2{font-size:18px}.eyebrow{font-size:10px;margin-bottom:8px}.subtitle{font-size:13px;color:#758092;max-width:600px}.heading-actions{gap:9px;max-width:none}.primary,.secondary{font-size:13px;padding:11px 16px;min-height:44px;border-radius:8px;gap:8px}.primary{box-shadow:0 3px 7px #97001316}.secondary{border-color:#dce1e8}.small{font-size:12px;min-height:38px}.text-button{font-size:12px;display:inline-flex;align-items:center;gap:6px;min-height:40px}.stats{gap:15px;margin-bottom:25px}.stat{border-radius:12px;padding:21px 21px 17px;box-shadow:0 2px 6px #22304403;overflow:hidden;min-height:143px}.stat:before{display:none}.stat.chosen{border-color:#e2b5bd;box-shadow:inset 0 0 0 1px #e2b5bd}.stat>span:not(.stat-icon){font-size:12px;font-weight:600;color:#70798b}.stat .stat-icon{position:absolute;right:17px;top:17px;width:34px;height:34px;border-radius:9px;background:#f9ecef;color:var(--wine);display:grid;place-items:center}.stat.green .stat-icon{background:#eaf5ef;color:var(--green)}.stat.blue .stat-icon{background:#eaf0f9;color:var(--blue)}.stat.amber .stat-icon{background:#fff4df;color:var(--amber)}.stat strong{font-size:35px;letter-spacing:-1.4px;margin:8px 0 10px}.stat small{font-size:11px;color:#8590a1}.stat small .icon{width:15px;height:15px;color:#8792a4}.inventory-panel,.panel{border-radius:12px;box-shadow:0 2px 7px #22304403}.panel-top{padding:23px 24px 19px}.panel-top p{font-size:12px;color:#818a9a}.count{font-size:11px;background:#edf0f4;color:#667184}.toolbar{padding:0 24px 23px;gap:10px}.search input{font-size:13px;min-height:46px;background:#f8fafc;border-color:#e0e5ec;padding-left:41px}.search>span{top:13px;left:14px;display:flex}.search .icon{width:18px;height:18px}.toolbar select{font-size:12px;min-height:46px;color:#5c6779;max-width:188px}.table-wrap{overflow:auto}th{font-size:10px;color:#7a8494;letter-spacing:.65px;padding:13px 17px;background:#f8fafc}td{font-size:12px;padding:15px 17px}.device-name{font-size:14px;line-height:1.4}.device-cell{gap:12px}.device-icon{width:41px;height:41px;background:#f3f5f8;color:#6e7b91;border:1px solid #eaedf3;border-radius:10px}.device-icon .icon{width:23px;height:23px}.device-cell small,.location-cell small{font-size:11px;color:#8992a1;margin-top:5px}.location-cell{color:#596679;font-size:12px}.badge{border-radius:6px;padding:6px 9px;font-size:11px;gap:6px}.badge.green{background:#eaf6ef;color:#267759}.badge.blue{background:#edf3fc;color:#3767a3}.badge.amber{background:#fff5e3;color:#906216}.badge.purple{background:#f1edfb;color:#7761a0}.row-arrow{width:34px;height:34px;border-radius:8px;display:grid;place-items:center}.row-arrow .icon{width:17px;height:17px}.panel-footer{font-size:11px;padding:15px 24px}.help-strip{background:#fdfafb;border:1px solid #ede3e7;padding:20px 24px;border-radius:12px}.help-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:#f5e9ed;flex-shrink:0}.help-icon .icon{width:23px;height:23px;color:#a56572}.help-strip strong{font-size:13px;color:#654552}.help-strip p{font-size:12px;color:#99808b}.help-strip button{flex-shrink:0}.detail-grid{grid-template-columns:minmax(0,1fr) 310px}.facts dt{font-size:12px}.facts dd{font-size:14px}.panel-title .badge{flex-shrink:0}.timeline strong{font-size:13px}.timeline p{font-size:13px}.timeline time,.timeline small{font-size:11px}.notes p{font-size:13px}.qr-panel p{font-size:13px}.qr-url{font-size:11px!important}.back .icon{width:16px;height:16px}.settings-panel p{font-size:14px}.hint{font-size:12px}.form-grid label,label{font-size:12px}label input,label select,label textarea{font-size:14px;min-height:45px;padding:11px 12px;border-color:#dbe1e9;border-radius:8px}.generated{background:#fbf0f3;border-radius:10px}.generated small{font-size:11px}.close{display:grid;place-items:center}.close .icon{width:18px;height:18px}.notice{font-size:12px}.label-school{display:flex;align-items:center;justify-content:space-between;height:9mm;padding-bottom:1mm;gap:1mm}.label-school img{width:24mm;height:8mm;object-fit:contain}.label-school>span{font-size:7px;color:#555;letter-spacing:.3px}.label-body{padding-top:1mm}.print-label{padding:2.5mm}.label-qr{width:25mm}.batch-print{display:grid;grid-template-columns:repeat(2,70mm);gap:3mm;padding:15px;justify-content:center}.batch-print .print-label{margin:0}dialog:has(.batch-print){width:min(720px,calc(100% - 24px))}
.qr-download-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:27px;margin-bottom:25px;box-shadow:0 3px 10px #22304403}.download-intro{display:flex;align-items:center;gap:15px}.download-intro p{font-size:12px;margin:5px 0 0;color:#7b8697}.feature-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:11px;background:#fbebee;color:var(--wine)}.feature-icon .icon{width:25px;height:25px}.scope-options{border:0;padding:0;margin:0 0 20px;display:grid;grid-template-columns:1fr 1fr;gap:13px;max-width:620px}.scope-options label{display:flex;align-items:center;gap:12px;border:1px solid #dfe4eb;background:#fafbfc;padding:15px 17px;border-radius:10px;cursor:pointer;font-size:13px;color:#364055}.scope-options label:has(input:checked){background:#fff7f8;border-color:#d28a96;box-shadow:inset 0 0 0 1px #d28a9633}.scope-options input{appearance:auto;width:17px;height:17px;min-height:0;margin:0;accent-color:var(--wine)}.scope-options small{display:block;font-size:11px;color:#8390a2;margin-top:3px;font-weight:400}.qr-date-row{display:grid;grid-template-columns:180px 180px 1fr;gap:17px;align-items:center;background:#f8fafc;border-radius:9px;padding:16px;margin-bottom:20px}.qr-date-row p{color:#7b879b;font-size:11px;margin:20px 0 0;line-height:1.8}.download-toolbar{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap}.download-toolbar label{min-width:230px;flex:1}.download-toolbar select{font-size:12px}.selection-info{display:flex;flex-direction:column;padding-bottom:4px;gap:4px;flex:1;min-width:150px}.selection-info strong{font-size:15px;color:#394357}.selection-info span{font-size:11px;color:#8390a2}.download-progress{color:#477462;font-size:12px;min-height:0;margin-bottom:0}.download-progress:empty,.form-error:empty{display:none}.qr-list-panel .panel-title{margin-bottom:12px}.qr-list-panel .panel-title p{margin:6px 0}.label-row{padding:17px 0;gap:14px}.label-row strong{font-size:14px}.label-row small{font-size:11px;color:#8992a2}.generation-date{display:flex!important;align-items:center;gap:5px;font-family:Segoe UI,Arial,sans-serif}.generation-date .icon{width:13px;height:13px}.status-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:25px}.status-tile{position:relative;background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px 16px;display:flex;flex-direction:column;gap:10px;min-height:135px}.status-tile>span:not(.status-tile-icon){font-size:11px;color:#768196;line-height:1.5}.status-tile strong{font-size:29px;letter-spacing:-.8px}.status-tile-icon{color:#8694a9}.status-tile:nth-child(1) .status-tile-icon{color:var(--green)}.status-tile:nth-child(2) .status-tile-icon{color:var(--blue)}.status-tile:nth-child(4) .status-tile-icon{color:var(--amber)}.report-panel{padding:0;overflow:hidden}.report-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:25px}.report-toolbar>div{flex:1;min-width:230px}.report-toolbar p{font-size:12px;color:#8090a3;margin:7px 0 0}.report-toolbar label{font-size:11px;min-width:160px}.report-toolbar select{font-size:12px;margin-top:5px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:11px;color:#718096;font-weight:400}.checkbox-label input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--wine)}.report-scroll{overflow-x:auto}.report-table{min-width:900px}.report-table th{font-size:11px;letter-spacing:0;white-space:normal;text-transform:none;text-align:center;display:table-cell!important;min-width:93px;padding:16px 10px}.report-table th:first-child{text-align:left;width:250px;min-width:250px;padding-left:25px}.report-table tbody th{font-size:13px;background:#fff;font-weight:500;letter-spacing:0;border-bottom:1px solid #eff0f4;border-top:0}.report-type{display:flex;align-items:center;gap:10px;color:#526176}.report-type .icon{width:21px;height:21px;color:#8796ad;flex-shrink:0}.report-table td{text-align:center;padding:12px 8px}.report-count{width:36px;height:34px;border:0;background:#edf2f7;border-radius:7px;color:#405673;font-weight:650;font-size:13px}.report-count:hover{background:#fae9ed;color:var(--wine);box-shadow:0 0 0 1px #e1b4be}.zero-count{color:#a0a9b7;font-size:12px}.report-table .row-total{font-weight:700;background:#fafbfd;color:#42506a}.report-table tfoot th,.report-table tfoot td{border-top:2px solid #e0e6ee;border-bottom:0;background:#f8fafc;font-size:13px;font-weight:700;padding-top:18px;padding-bottom:18px;color:#374962}.report-footnote{padding:17px 25px;display:flex;align-items:center;gap:8px;font-size:11px;color:#8090a3}.report-footnote .icon{width:15px;height:15px}.report-cards{display:none}.report-card{border:1px solid var(--line);border-radius:10px;padding:18px}.report-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.report-card>div>strong{font-size:21px}.report-card dl{margin:15px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:9px 15px}.report-card dl>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eef1f5;padding-top:9px;gap:5px}.report-card dt{font-size:10px;color:#7a879b}.report-card dd{margin:0}.report-card .report-count{height:30px;width:30px;font-size:12px}
@media(max-width:1200px){.sidebar{width:226px;padding:23px 14px}.workspace{margin-left:226px}.brand img{height:80px}.product-name{font-size:19px}.nav-item{font-size:12px;gap:10px}.topbar{padding:0 25px}main{padding:30px 25px}.heading-actions{max-width:250px;flex-wrap:wrap}.stat{padding:18px 16px}.stat>span:not(.stat-icon){font-size:11px}.stat .stat-icon{right:14px;top:14px;width:28px;height:28px}.stat-icon .icon{width:17px;height:17px}.stat small{font-size:10px}.status-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.status-tile{min-height:100px;display:grid;grid-template-columns:26px 1fr;align-items:center;gap:4px 10px}.status-tile strong{grid-column:2;font-size:27px}.status-tile-icon{grid-row:1/3}.detail-grid{grid-template-columns:minmax(0,1fr) 255px}.qr-date-row{grid-template-columns:1fr 1fr}.qr-date-row p{grid-column:1/-1;margin:0}.download-toolbar label{min-width:230px}.download-toolbar .primary,.download-toolbar .secondary{flex:1}}
@media(max-width:850px){.workspace{margin-left:0}.topbar{height:78px;padding:0 24px}.mobile-brand{display:block}.mobile-brand img{width:148px;height:66px;object-fit:contain;display:block}.sidebar{display:none}main{padding:27px 24px 104px}.mobile-nav{padding:8px 6px max(8px,env(safe-area-inset-bottom));box-shadow:0 -4px 18px #22304405;align-items:center;gap:4px}.mobile-nav button{min-width:0;flex:1;min-height:54px;display:flex;justify-content:center;align-items:center;gap:5px;border-radius:9px;padding:6px 3px;font-size:10px;box-shadow:none;line-height:1.2}.mobile-nav button>span{font-size:10px;width:auto;font-weight:600}.mobile-nav .icon{width:21px;height:21px}.mobile-nav .scan-nav{background:var(--wine);color:white;min-height:54px;max-width:74px}.heading-actions{max-width:none}.qr-download-panel{padding:24px}.status-overview{gap:10px}.download-toolbar{gap:12px}.download-toolbar label{flex:1;min-width:250px}.selection-info{min-width:160px}.report-toolbar{gap:14px}.report-toolbar>div{flex-basis:100%}.report-toolbar label{flex:1}.report-scroll{max-width:100%}}
@media(max-width:600px){main{padding:25px 16px 104px}.topbar{height:75px;padding:0 16px}.mobile-brand img{width:137px;height:61px}.top-actions{gap:9px}.local-status{font-size:9px;gap:5px}.avatar{width:30px;height:30px;font-size:9px}h1{font-size:29px;letter-spacing:-.8px}.subtitle{font-size:12px}.eyebrow{font-size:9px}.heading-actions{margin-top:20px;gap:8px}.heading-actions button{font-size:12px;min-height:45px;padding:10px 11px}.heading-actions .icon{width:17px;height:17px}.stats{gap:10px;margin-bottom:22px}.stat{min-height:128px;padding:16px}.stat .stat-icon{width:28px;height:28px;right:13px;top:13px}.stat>span:not(.stat-icon){font-size:11px;max-width:calc(100% - 30px);display:block;min-height:16px}.stat strong{font-size:31px;margin:11px 0 7px}.stat small{font-size:10px}.panel-top{padding:20px 17px 17px}.panel-top .text-button{font-size:10px;gap:4px}.panel-top h2{font-size:17px}.panel-top .text-button .icon{width:14px;height:14px}.toolbar{padding:0 17px 20px}.search input{font-size:12px}.toolbar select{font-size:12px}.device-cards{padding:0 16px 18px;gap:12px}.device-card{padding:17px;border-radius:11px;background:#fff}.device-card .device-name{font-size:15px;min-height:25px}.device-card>.mono{font-size:12px;color:#8692a3}.device-card .card-location{font-size:12px;line-height:1.7;color:#6d7c91;display:flex;align-items:flex-start;gap:6px}.card-location .icon{width:15px;height:15px;margin-top:3px}.card-bottom>span{font-size:11px}.card-bottom .text-button{font-size:12px}.badge{font-size:10px;padding:6px 8px}.device-icon{width:40px;height:40px}.help-strip{padding:17px;align-items:flex-start}.help-strip strong{font-size:12px}.help-strip p{font-size:11px}.panel-footer{font-size:10px}.detail-grid{display:flex}.facts dd{font-size:13px}.facts dt{font-size:11px}.detail-actions{gap:8px;flex-wrap:wrap}.qr-panel h2{font-size:23px}.qr-preview{width:165px}.panel-title{flex-wrap:wrap}.qr-download-panel{padding:20px 17px}.download-intro{gap:12px}.download-intro h2{font-size:17px}.download-intro p{font-size:11px}.feature-icon{width:42px;height:42px}.scope-options{gap:9px;margin-bottom:18px}.scope-options label{padding:13px 10px;gap:8px;font-size:12px;align-items:flex-start}.scope-options input{margin-top:3px;width:15px;height:15px;flex-shrink:0}.scope-options small{font-size:10px;line-height:1.5}.qr-date-row{padding:13px;gap:12px}.qr-date-row label{min-width:0}.qr-date-row input{font-size:12px;padding:9px 7px;min-width:0;max-width:100%}.download-toolbar{display:grid;grid-template-columns:1fr 1fr}.download-toolbar label{grid-column:1/-1;min-width:0}.download-toolbar .selection-info{grid-column:1/-1;min-width:0;margin:4px 0}.download-toolbar .primary,.download-toolbar .secondary{font-size:11px;padding:10px 9px;white-space:normal;gap:6px;min-width:0}.download-toolbar .icon{width:16px;height:16px}.qr-list-panel .panel-title .badge{font-size:10px}.qr-list-panel .panel-title h2{font-size:17px}.label-row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px 12px;padding:17px 0}.label-row>div{grid-column:2;min-width:0}.label-row strong{font-size:13px}.label-row small{overflow-wrap:anywhere;font-size:10px;line-height:1.8;margin-top:3px}.label-row>.badge{grid-column:2;justify-self:start;margin-top:4px}.label-row>button{grid-column:2;justify-self:start;margin-top:4px}.generation-date .icon{width:12px;height:12px}.status-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:22px}.status-tile{padding:14px 13px;min-height:96px;gap:5px 9px}.status-tile>span:not(.status-tile-icon){font-size:10px}.status-tile strong{font-size:25px}.status-tile .icon{width:21px;height:21px}.report-toolbar{padding:20px 17px;gap:12px}.report-toolbar h2{font-size:17px;line-height:1.6}.report-toolbar p{font-size:11px;line-height:1.7}.report-toolbar label{min-width:0}.report-toolbar .checkbox-label{flex-basis:100%;font-size:11px}.report-scroll{display:none}.report-cards{display:grid;gap:12px;padding:0 16px 20px}.report-type{font-size:12px;gap:8px}.report-type .icon{width:19px;height:19px}.report-footnote{padding:15px 17px;font-size:10px;align-items:flex-start;border-top:1px solid var(--line)}.batch-print{grid-template-columns:70mm;padding:12px}.settings-panel p{font-size:13px}dialog{border-radius:14px}.timeline p{font-size:12px}.timeline time{font-size:10px}}
@media print{.batch-print{display:grid;grid-template-columns:repeat(2,70mm);gap:3mm;padding:0;justify-content:start}.print-area .print-label{box-shadow:none}.print-label .label-school img{display:block}dialog:has(.batch-print){width:auto}.print-label .icon{display:none}}
@media(max-width:600px){.stat{min-height:91px;padding:14px 15px}.stat>span:not(.stat-icon){min-height:16px;font-size:10px}.stat strong{font-size:29px;margin:7px 0 0;line-height:1.3}.stat small{display:none}.stat .stat-icon{width:25px;height:25px;right:12px;top:12px}.stat-icon .icon{width:15px;height:15px}.stats{margin-bottom:20px}}

.badge.obsolete{background:#edf0f4;color:#58667b}.status-overview{grid-template-columns:repeat(7,minmax(0,1fr))}@media(max-width:1200px){.status-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.status-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
