/* ATROPOZ Corporate Blue — interfaz única aprobada */
html,html[data-theme]{
  --bg:#f3f7fc;--bg2:#eaf1f9;--panel:#fff;--panel2:#fff;--panel3:#f7faff;
  --line:#dce6f2;--line2:#c7d6e8;--txt:#102239;--muted:#63758a;
  --gold:#1166e8;--gold2:#0755c9;--gold-soft:#e7f1ff;--accent:#1166e8;
  --accent2:#0755c9;--accent-soft:#e8f3ff;--accent-ink:#fff;
  --green:#119f70;--green-bg:#e9f8f2;--red:#df3e4f;--red-bg:#fff0f2;
  --yellow:#d78b09;--yellow-bg:#fff7df;--sidebar:#061b36;--top:#fffffff2;
  --input:#fff;--field-border:#c8d7e8;--shadow:0 12px 38px rgba(29,68,111,.09);
  --shadow-soft:0 5px 18px rgba(29,68,111,.07);--radius:14px;
  color-scheme:light;
}
*{scrollbar-color:#91a9c4 transparent}
body{background:linear-gradient(145deg,#f8fbff 0,#edf4fb 100%);color:var(--txt);font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:0}
h1,h2,h3,h4{color:#0b1d34;letter-spacing:-.025em}
.login-theme,.theme-mobile,.footer-row:has(#themeSelect){display:none!important}
.app-shell{grid-template-columns:250px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,#071d39 0,#05162c 100%);border-right:0;padding:18px 12px;box-shadow:8px 0 30px rgba(7,29,57,.12)}
.brand{min-height:64px;padding:5px 10px 18px;border-color:#ffffff18}.brand img{width:45px;height:45px;filter:drop-shadow(0 4px 12px #0006)}
.brand b{color:#fff;font-size:17px;letter-spacing:.11em}.brand small{color:#9bb3ce;font-size:8px;letter-spacing:.03em}
.nav{gap:5px;margin-top:15px}.nav button{color:#adc0d5;border:1px solid transparent;border-radius:9px;padding:11px 10px;font-weight:650;transition:.16s ease}
.nav button:hover{color:#fff;background:#ffffff0d}.nav button.active{color:#fff;background:linear-gradient(100deg,#0f67ea,#175bd0);box-shadow:0 8px 22px #0056d74d;border-color:#50bfff40}
.nav button>span:first-child{color:#69c9ff;font-size:17px}.nav button.active>span:first-child{color:#fff}
.sidebar-footer{background:transparent;border-color:#ffffff18;padding:12px 8px 2px}.session-card b,.footer-row b{color:#fff}.session-card small,.footer-row,.footer-row label{color:#91a9c4}.connection{color:#45d49f}.sidebar-footer .btn{color:#d9e7f6;border-color:#ffffff20;background:#ffffff08}
.topbar{height:76px;background:#fffffff2;border-bottom:1px solid #dce6f2;padding:0 28px;box-shadow:0 3px 16px rgba(24,58,98,.04);backdrop-filter:blur(16px)}
.topbar h1{font-size:21px;font-weight:780}.topbar p{font-size:11px;color:#718298}.content{padding:24px 28px 52px;max-width:1660px}
.card,.stat,.case-card,.kpi-card,.project-card,.activity-card,.order-card,.formal-section,.modal-box,.mobile-hero{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-soft)}
.card{padding:18px}.card-title h2,.card-title h3{font-weight:760}.card-title p,.section-head p{color:#718298}
.stats{gap:12px}.stat{padding:17px 18px;position:relative;overflow:hidden}.stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#18bfea}.stat.gold:before{background:#1268e8}.stat.red:before{background:#df3e4f}.stat span{color:#718298;font-size:9px;letter-spacing:.075em}.stat b{color:#0a4fbd;font-size:29px;font-weight:780}
.btn{border-radius:8px;border:1px solid #c7d6e8;background:#fff;color:#28415f;font-weight:700;box-shadow:none;transition:.15s ease}.btn:hover{border-color:#1166e8;background:#eff6ff;color:#0755c9;transform:translateY(-1px)}
.btn.gold{background:linear-gradient(135deg,#126cf1,#0755cf);border-color:#0755cf;color:#fff;box-shadow:0 7px 16px rgba(17,102,232,.2)}.btn.gold:hover{background:#0755c9;color:#fff}.btn.red{background:var(--red-bg);color:var(--red);border-color:#f3bac1}.btn.success{background:var(--green-bg);color:#087d57;border-color:#a9ddca}
input,select,textarea{background:#fff!important;color:#142a43!important;border:1px solid #c8d7e8!important;border-radius:8px!important;box-shadow:0 1px 2px rgba(18,53,92,.03)!important}input:focus,select:focus,textarea:focus{border-color:#1570ef!important;outline:3px solid #1570ef1f!important;box-shadow:none!important}input::placeholder,textarea::placeholder{color:#91a0b2!important}
.toolbar{background:#fff}.control label,.field-label,label{color:#253d59}.seg-tabs{background:#eaf1f9;border-radius:10px;padding:4px}.seg-tabs button{border:0;border-radius:7px;color:#5e7188}.seg-tabs button.active{background:#fff;color:#0755c9;box-shadow:0 3px 10px #214b7d17}
.badge{border-radius:999px;background:#f2f6fb;border-color:#dbe5f0;color:#50657c}.badge.gold{background:#e7f1ff;color:#0755c9;border-color:#bad5fb}.badge.green{background:#e9f8f2;color:#087d57;border-color:#b9e6d5}.badge.red{background:#fff0f2;color:#c62e40;border-color:#f6c0c6}
.data-row,.report-block,.user-card,.document-row,.pending-card,.today-card,.equipment-card,.repeatable-item,.optional-form,.format-tile,.project-choice,.evidence-stage,.upload-tile,.table-wrap{background:#fff;border-color:#dce6f2;border-radius:11px;box-shadow:none}
.table-formal,.folio-table,table{color:#1b304a}.table-formal th,.folio-table th,table th{background:#f3f7fc;color:#50657c;border-color:#dce6f2}.table-formal tbody tr:hover,.folio-table tbody tr:hover,table tbody tr:hover{background:#f5f9ff}
.section-label>span:first-child,.step-no{background:linear-gradient(135deg,#126cf1,#13bce7)!important;color:#fff!important;border:0!important;box-shadow:0 5px 13px #126cf133}
.help{border-color:#bfd0e3;color:#1268e8;background:#fff}.help::after{background:#071d39;color:#fff;border-color:#17446f;box-shadow:0 12px 30px #06172d55}
.modal{backdrop-filter:blur(5px);background:#07172b99}.modal-head{background:#fff;border-color:#dce6f2}.toast{background:#071d39;color:#fff;border-color:#1f6fd0;box-shadow:0 12px 32px #071d3955}
.login{max-width:1320px;gap:70px}.login:before{content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(circle at 15% 15%,#1abfe51b,transparent 35%),linear-gradient(135deg,#f8fbff,#e9f2fc)}.login-logo img{filter:drop-shadow(0 22px 40px #0a397124)}.tag{color:#1268e8}.login-card{background:#fff;border:1px solid #d8e4f1;border-radius:18px;padding:34px;box-shadow:0 28px 70px #173f6f20}.login-card h1{font-size:28px}.login-card .btn.gold{min-height:48px}
.mobile-top{position:sticky;top:0;z-index:30;background:#071d39;padding:10px 16px;margin:0;border-bottom:1px solid #ffffff1a;box-shadow:0 8px 26px #04152a26}.mbrand b{color:#fff}.mbrand small{color:#9bb3ce}.mobile-top .btn{background:#ffffff0d;color:#e8f2fc;border-color:#ffffff24}
.sv-shell,.mobile-shell{max-width:1100px;padding:18px 16px 60px}.mobile-hero{background:linear-gradient(125deg,#082a54,#0d63df);color:#fff;border:0;padding:20px}.mobile-hero h1,.mobile-hero p,.mobile-hero .eyebrow{color:#fff}.mobile-tabs{background:#edf4fb}.mobile-tabs button{background:#fff;border-color:#dce6f2}.mobile-tabs b{background:#e7f1ff;color:#0755c9}
.formal-section>header{background:#f5f9ff;border-color:#dce6f2}.formal-section>.body{background:#fff}.activity-card{border-left:4px solid #13bce7}.qt-chip{background:#e7f1ff;color:#0755c9;border-color:#bad5fb}.action-bar{background:#fff;border-color:#dce6f2;box-shadow:0 -8px 28px #163d6a0f}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{background:#071d39;box-shadow:none;padding:10px}.brand{border:0}.nav button{color:#bed0e2;background:#ffffff08}.nav button.active{background:#1166e8}.topbar{height:64px;padding:0 16px}.content{padding:16px}.stats{grid-template-columns:repeat(2,1fr)}.login{padding:20px}.login-card{padding:25px}.sv-shell{padding-top:14px}}
@media(max-width:620px){.mobile-top{gap:8px}.mobile-top .inline{gap:6px}.mobile-top .btn{padding:8px 10px}.card,.formal-section{border-radius:12px}.section-label h2{font-size:16px}.stats{gap:8px}.stat{padding:14px}.stat b{font-size:25px}.btn{min-height:42px}input,select,textarea{font-size:16px!important}.action-main{min-height:50px;font-size:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Centro de Operaciones — arquitectura oficial */
.nav button[data-page="dash"] span:nth-child(2){font-size:0}.nav button[data-page="dash"] span:nth-child(2)::after{content:"Centro de Operaciones";font-size:13px}
.operations-center{--oc-navy:#071d39;--oc-blue:#176be8;--oc-cyan:#12badf;--oc-violet:#7357ec;--oc-line:#e4ebf3;--oc-muted:#728096}
.operations-center+.hidden{display:none}.operations-center .card{box-shadow:none}
.oc-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:2px 0 20px}.oc-heading h2{font-size:28px;letter-spacing:-.7px;margin:4px 0;color:var(--oc-navy)}.oc-heading p{margin:0;color:var(--oc-muted)}.oc-eyebrow{font-size:10px;font-weight:900;letter-spacing:1.7px;color:var(--oc-blue)}
.oc-date{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--oc-line);border-radius:10px;padding:7px 8px 7px 14px;box-shadow:0 5px 18px #15375d0a}.oc-date span{font-size:11px;font-weight:800;text-transform:uppercase;color:#65748a;letter-spacing:.5px}.oc-date input{border:0;background:#f4f7fb;min-width:145px;padding:9px 10px}
.oc-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.oc-kpi{min-height:106px;background:#fff;border:1px solid var(--oc-line);border-radius:12px;padding:18px;display:flex;align-items:center;gap:15px;text-align:left;box-shadow:0 8px 24px #19385c0a;position:relative;overflow:hidden}.oc-kpi:after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--tone)}.oc-kpi.cyan{--tone:var(--oc-cyan)}.oc-kpi.blue{--tone:var(--oc-blue)}.oc-kpi.violet{--tone:var(--oc-violet)}.oc-kpi-icon{width:42px;height:42px;border-radius:10px;background:color-mix(in srgb,var(--tone) 11%,white);color:var(--tone);display:grid;place-items:center;font-size:23px;font-weight:800;flex:none}.oc-kpi>div{display:grid;gap:1px}.oc-kpi small{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.55px;color:#68778c}.oc-kpi b{font-size:29px;line-height:1.08;color:var(--oc-navy);letter-spacing:-.7px}.oc-kpi em{font-size:11px;color:#8390a1;font-style:normal}.oc-kpi.create{--tone:#fff;color:#fff;border:0;background:linear-gradient(135deg,#1268e8,#0755c9);cursor:pointer;box-shadow:0 10px 26px #1268e833}.oc-kpi.create .oc-kpi-icon{background:#ffffff20;color:#fff}.oc-kpi.create small,.oc-kpi.create b,.oc-kpi.create em{color:#fff}.oc-kpi.create:hover{transform:translateY(-2px);box-shadow:0 15px 30px #1268e846}
.oc-main-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:16px;margin-bottom:16px}.oc-bottom-grid{display:grid;grid-template-columns:1fr 1.15fr .85fr;gap:16px}.oc-panel{background:#fff;border:1px solid var(--oc-line);border-radius:12px;min-width:0;box-shadow:0 8px 25px #19385c08;overflow:hidden}.oc-panel>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 18px 14px;border-bottom:1px solid #edf1f6}.oc-panel h3{font-size:14px;margin:0 0 3px;color:var(--oc-navy)}.oc-panel header p{font-size:11px;margin:0;color:var(--oc-muted)}.oc-link{border:0;background:transparent;color:var(--oc-blue);font-size:11px;font-weight:800;cursor:pointer}.oc-live{font-size:10px;color:#65748a}.oc-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#26c985;box-shadow:0 0 0 3px #26c9851c;margin-right:4px}
.oc-order-table{padding:0 18px 10px}.oc-table-head,.oc-order-row{display:grid;grid-template-columns:1.45fr 1fr .8fr 1fr;align-items:center;gap:12px}.oc-table-head{padding:11px 8px 8px;color:#8793a3;text-transform:uppercase;font-weight:800;font-size:9px;letter-spacing:.65px}.oc-order-row{width:100%;border:0;border-top:1px solid #edf1f6;background:#fff;padding:12px 8px;text-align:left;color:#26364a;cursor:pointer;border-radius:0}.oc-order-row:hover{background:#f7faff}.oc-order-row span{font-size:11px;min-width:0}.oc-order-row span:first-child{display:grid}.oc-order-row span:first-child b{font-size:12px;color:#10263f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.oc-order-row small{font-size:9px;color:#8591a1;margin-top:2px}.oc-order-row>span:nth-child(3){display:flex;align-items:center;gap:6px}.oc-status{width:7px;height:7px;border-radius:50%;background:#f2ae2f}.oc-status.done{background:#25bf7a}.oc-status.active{background:#2779ed}.oc-order-row>span:last-child{display:flex;align-items:center;gap:8px}.oc-progress{height:5px;background:#e7edf5;border-radius:99px;overflow:hidden;flex:1}.oc-progress u{display:block;height:100%;background:linear-gradient(90deg,#10b9dd,#1d6fea);border-radius:99px}.oc-order-row>span:last-child b{font-size:10px;color:#5f6e81}
.oc-chart-panel{display:flex;flex-direction:column}.oc-chart{padding:17px 18px 12px;flex:1;min-height:205px}.oc-chart-bars{height:166px;display:flex;gap:11px;align-items:flex-end;border-bottom:1px solid #dce4ee;background:repeating-linear-gradient(to top,#eef3f8 0,#eef3f8 1px,transparent 1px,transparent 42px);padding:10px 3px 0}.oc-bar-col{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}.oc-bar-col>span{font-size:9px;color:#65748a;min-height:11px}.oc-bar-col i{width:min(24px,70%);min-height:6px;background:#cbd8e8;border-radius:5px 5px 0 0;transition:height .3s}.oc-bar-col i.today{background:linear-gradient(180deg,#19bde1,#176be8);box-shadow:0 4px 12px #176be82b}.oc-bar-col small{font-size:9px;color:#7d8998;margin-bottom:-18px}.oc-chart-note{font-size:9px;color:#8c98a7;margin-top:26px;text-align:center}
.oc-staff-list,.oc-alert-list{padding:8px 16px 13px}.oc-person{width:100%;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;border:0;border-bottom:1px solid #eef2f6;background:#fff;text-align:left;padding:9px 0;cursor:pointer}.oc-person:last-child{border-bottom:0}.oc-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e8f1ff;color:#176be8;font-size:10px;font-weight:900}.oc-avatar.a1{background:#eaf9f3;color:#179b69}.oc-avatar.a2{background:#f2ecff;color:#7255db}.oc-avatar.a3{background:#fff2e5;color:#cf7820}.oc-person>span:nth-child(2){display:grid;min-width:0}.oc-person b{font-size:11px;color:#1a2c41;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.oc-person small{font-size:9px;color:#8793a1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.oc-person em{font-size:9px;font-style:normal;color:#149865;background:#e8f8f1;border-radius:99px;padding:4px 7px}
.oc-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:14px 16px 17px}.oc-gallery button{position:relative;border:0;background:#eaf0f7;border-radius:7px;overflow:hidden;aspect-ratio:1.25;cursor:pointer;padding:0}.oc-gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.oc-gallery button:hover img{transform:scale(1.04)}.oc-gallery span{position:absolute;left:4px;bottom:4px;background:#071d39d9;color:#fff;font-size:8px;padding:3px 5px;border-radius:4px}
.oc-alert-count{min-width:24px;height:24px;padding:0 7px;display:grid;place-items:center;border-radius:99px;background:#fff0e8;color:#db612b;font-size:11px;font-weight:900}.oc-alert{display:grid;grid-template-columns:27px 1fr;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #eef2f6}.oc-alert:last-child{border-bottom:0}.oc-alert>span{width:25px;height:25px;border-radius:7px;background:#fff0e8;color:#e0642c;display:grid;place-items:center;font-size:12px;font-weight:900}.oc-alert div{display:grid}.oc-alert b{font-size:10px;color:#28394d}.oc-alert small{font-size:9px;color:#8490a0;line-height:1.35}.oc-empty{min-height:154px;display:grid;place-content:center;text-align:center;color:#8995a4;gap:4px}.oc-empty>span{width:34px;height:34px;border-radius:50%;background:#e9f8f1;color:#22a872;display:grid;place-items:center;margin:auto}.oc-empty b{font-size:11px;color:#536276}.oc-empty small{font-size:9px}.oc-empty.compact{min-height:112px}.oc-detail{margin-top:18px;border:1px solid var(--oc-line);border-radius:10px;background:#fff}.oc-detail>summary{padding:14px 17px;cursor:pointer;font-size:12px;font-weight:800;color:#516177}.oc-detail[open]>summary{border-bottom:1px solid var(--oc-line)}.oc-detail>.toolbar{border:0;border-radius:0;margin:0}.oc-hidden-stat{padding:0 18px;color:#768397;font-size:11px}
@media(max-width:1180px){.oc-kpis{grid-template-columns:repeat(2,1fr)}.oc-bottom-grid{grid-template-columns:1fr 1fr}.oc-bottom-grid .oc-panel:last-child{grid-column:1/-1}.oc-main-grid{grid-template-columns:1fr}}
@media(max-width:700px){.oc-heading{align-items:stretch;flex-direction:column}.oc-date{justify-content:space-between}.oc-kpis{grid-template-columns:1fr 1fr;gap:9px}.oc-kpi{min-height:94px;padding:13px;gap:10px}.oc-kpi-icon{width:35px;height:35px;font-size:18px}.oc-kpi b{font-size:22px}.oc-main-grid,.oc-bottom-grid{grid-template-columns:1fr}.oc-bottom-grid .oc-panel:last-child{grid-column:auto}.oc-table-head{display:none}.oc-order-row{grid-template-columns:1fr auto}.oc-order-row>span:nth-child(2){display:none}.oc-order-row>span:last-child{grid-column:1/-1}.oc-chart{min-height:190px}}

/* Flujo móvil de campo — misma familia visual */
.field-stepper{position:sticky;top:69px;z-index:20;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:0 0 14px;padding:7px;background:#edf4fbf2;border:1px solid #dce7f2;border-radius:13px;backdrop-filter:blur(12px);box-shadow:0 8px 20px #0c315818}.field-stepper button{min-width:0;min-height:72px;border:1px solid #d9e5f1;border-radius:10px;background:#fff;color:#5d6c80;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 6px;cursor:pointer}.field-stepper button span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#e7f2ff;color:#1370df;font-weight:900;flex:none}.field-stepper button b{font-size:10px;line-height:1.25;text-align:left}.field-stepper button.active{border-color:#2b79e7;background:#f7fbff;color:#092b53;box-shadow:0 4px 14px #176be818}.field-stepper button.active span{background:#176be8;color:#fff}
#workView>.card{border-radius:13px;border:1px solid #dce6f1;box-shadow:0 8px 24px #153b6810}.formal-section{scroll-margin-top:165px;border:1px solid #dce6f1!important;border-radius:13px!important;box-shadow:0 8px 24px #153b680c!important;overflow:hidden;margin-bottom:14px!important}.formal-section>header{padding:16px 18px!important;background:#f7faff!important;border-bottom:1px solid #e1e9f2!important}.formal-section>header .step-no{background:#176be8!important;color:#fff!important;border:0!important;box-shadow:0 5px 14px #176be82b}.formal-section>header h2{color:#0a274a!important;letter-spacing:-.2px}.formal-section>.body{padding:18px!important}.formal-section.done>header{background:#f2fbf7!important}.formal-section.done>header .step-no{background:#1bad72!important}.evidence-stage{border-radius:11px!important;border:1px solid #dce7f1!important;background:#f8fbfe!important}.upload-tile{border-radius:11px!important;background:#f7faff!important;border-color:#cfe0f1!important}.activity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}.activity-card{border:1px solid #dce6f1!important;border-left:0!important;border-radius:13px!important;box-shadow:0 8px 22px #153b680d!important;padding:18px!important}.activity-card .btn.gold{background:#176be8!important;border-color:#176be8!important}.mobile-hero{border-radius:14px!important;box-shadow:0 12px 28px #0a4d9e24!important}.sv-head h2{color:#0a274a}
@media(max-width:620px){.sv-shell{padding:12px 10px 110px!important}.mobile-hero{padding:17px!important;margin-bottom:12px}.mobile-hero h1{font-size:22px}.field-stepper{top:64px;gap:4px;padding:5px;margin-left:-3px;margin-right:-3px}.field-stepper button{min-height:66px;gap:4px;padding:6px 3px;flex-direction:column}.field-stepper button span{width:24px;height:24px;font-size:12px}.field-stepper button b{font-size:8px;text-align:center}.formal-section>.body{padding:15px!important}.formal-section>header{padding:14px 15px!important}.formal-section>header .head-text p{font-size:11px}.signature-grid{grid-template-columns:1fr!important}.action-bar{left:0;right:0;bottom:0;padding:9px 10px calc(9px + env(safe-area-inset-bottom));border-radius:0!important}.action-bar .btn{font-size:11px}.oc-kpi em{display:none}}

/* Ajuste de fidelidad al diseño aprobado */
@media(min-width:901px){
  .app-shell{grid-template-columns:244px minmax(0,1fr)}
  .sidebar{padding:22px 16px 18px;background:linear-gradient(180deg,#061e3b,#031a33);border:0}
  .brand{padding:0 8px 24px;border-bottom:1px solid #ffffff18}.brand img{display:none}.brand b{font-size:25px;color:#fff;letter-spacing:.055em}.brand small{font-size:8px;color:#9bb0c7}
  .nav{gap:7px;margin-top:20px}.nav button{grid-template-columns:25px 1fr auto;min-height:48px;padding:11px 12px;color:#d2ddec;border-radius:7px;font-size:13px;font-weight:600}.nav button>span:first-child{font-size:18px;color:#fff;text-align:center}.nav button .help{display:none}.nav button.active,.nav button:hover{background:#0864e8;color:#fff;box-shadow:inset 3px 0 0 #25c4ed}.sidebar-footer{background:transparent;border-color:#ffffff1c;padding:14px 8px 0}.sidebar-footer .btn{border-color:#ffffff26;background:transparent;color:#fff}
  body:has(#page-dash.active) .topbar{display:none}
  body:has(#page-dash.active) .content{padding:25px 22px 32px;max-width:none}
  #page-dash>.seg-tabs{display:none}
}
.oc-eyebrow{display:none}.oc-heading{align-items:center;margin:0 0 21px}.oc-heading h2{font-size:28px;letter-spacing:-.75px;margin:0 0 3px}.oc-heading p{font-size:13px}.oc-date{height:44px;border-radius:8px;padding:5px 6px 5px 12px}.oc-date span{font-size:10px}.oc-date input{height:32px;border-radius:6px}
.oc-kpis{gap:12px;margin-bottom:14px}.oc-kpi{width:100%;min-width:0;min-height:126px;border-radius:8px;padding:17px 18px;gap:16px}.oc-kpi:after{display:none}.oc-kpi-icon{width:62px;height:62px;border-radius:10px;font-size:28px;background:linear-gradient(145deg,var(--tone),color-mix(in srgb,var(--tone) 70%,#0057db));color:#fff}.oc-kpi small{font-size:13px;text-transform:none;letter-spacing:0;color:#17243a}.oc-kpi b{font-size:31px;line-height:1.12}.oc-kpi em{font-size:10px}.oc-kpi.create{background:#fff;border:1px solid var(--oc-line);box-shadow:0 8px 24px #19385c0a;color:var(--oc-navy)}.oc-kpi.create:after{display:none}.oc-kpi.create .oc-kpi-icon{background:#0864e8;color:#fff}.oc-kpi.create small,.oc-kpi.create b,.oc-kpi.create em{color:var(--oc-navy)}.oc-kpi.create b{font-size:18px}.oc-kpi.create em{color:#fff;background:#0864e8;border-radius:6px;padding:8px 10px;margin-top:7px;font-weight:800;text-align:center}.oc-kpi.create:hover{box-shadow:0 12px 27px #1268e824}
.oc-main-grid{grid-template-columns:minmax(0,1.55fr) minmax(360px,.75fr);gap:13px;margin-bottom:13px}.oc-bottom-grid{grid-template-columns:1fr 1.25fr .92fr;gap:13px}.oc-panel{border-radius:8px}.oc-panel>header{padding:16px 17px 13px}.oc-panel h3{font-size:15px}.oc-panel header p{font-size:10px}.oc-link{font-size:11px}.oc-order-table{padding:0 16px 12px}.oc-table-head,.oc-order-row{grid-template-columns:1.45fr .68fr 1.15fr .82fr .68fr;gap:10px}.oc-table-head{padding:12px 6px 8px;font-size:9px}.oc-order-row{min-height:64px;padding:10px 6px}.oc-order-row span{font-size:10px}.oc-order-row span:first-child b{font-size:11px}.oc-order-row>span:nth-child(3){display:block}.oc-personnel-names{display:grid!important;gap:3px;align-self:stretch;align-content:center}.oc-personnel-names>b{font-size:9px;color:#176be8}.oc-personnel-names>small{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35!important;color:#52657b!important}.oc-order-row>span:nth-child(5){font-size:9px;color:#516176}.oc-progress{height:6px}.oc-orders-panel,.oc-chart-panel{min-height:336px}.oc-chart{min-height:270px;padding:15px 20px 16px}.oc-chart-legend{font-size:10px;color:#65748a}.oc-chart-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#1abfe2;margin-right:6px}.oc-chart-bars{height:220px;gap:12px;padding-top:18px}.oc-bar-col i{width:min(30px,68%);background:#24c3e2}.oc-bar-col i.today{background:#075fe2}.oc-bar-col small{font-size:9px}.oc-bottom-grid .oc-panel{min-height:250px}.oc-staff-list,.oc-alert-list{padding:9px 16px 15px}.oc-person{padding:10px 0}.oc-avatar{width:36px;height:36px}.oc-gallery{gap:6px;padding:14px 16px 18px}.oc-gallery button{aspect-ratio:1.22}.oc-alert{padding:11px 0}.oc-detail{margin-top:14px;border-radius:8px}
.field-report-heading{margin:4px 0 14px}.field-report-heading h1{margin:0;color:#0a274a;font-size:24px;letter-spacing:-.5px}.field-report-heading p{margin:4px 0 0;color:#718096;font-size:13px}
@media(max-width:1500px) and (min-width:901px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding-left:11px;padding-right:11px}.brand b{font-size:21px}.oc-kpi{padding:14px}.oc-kpi-icon{width:48px;height:48px;font-size:23px}.oc-kpi small{font-size:11px}.oc-kpi b{font-size:26px}.oc-main-grid{grid-template-columns:minmax(0,1.5fr) minmax(310px,.7fr)}}
@media(max-width:1180px) and (min-width:901px){.oc-kpis{grid-template-columns:repeat(2,1fr)}.oc-main-grid{grid-template-columns:1fr}.oc-bottom-grid{grid-template-columns:1fr 1fr}.oc-bottom-grid .oc-panel:last-child{grid-column:1/-1}}
@media(max-width:620px){body:has(#workView:not(.hidden)) .mobile-hero{display:none}.field-report-heading h1{font-size:21px}.field-stepper{position:relative;top:auto;background:#fff;border:0;border-radius:0;box-shadow:none;padding:3px 0 14px}.field-stepper:before{content:"";position:absolute;left:12%;right:12%;top:17px;border-top:2px solid #dce7f2}.field-stepper button{position:relative;border:0;background:transparent!important;box-shadow:none!important;min-height:57px;justify-content:flex-start}.field-stepper button span{border:2px solid #d6e2ef;background:#fff;color:#53647b}.field-stepper button.active span{border-color:#0864e8;background:#0864e8;color:#fff}.field-stepper button b{font-size:9px;color:#53647b}.field-stepper button.active b{color:#0b2c54}}
.oc-order-row>span:nth-child(4){display:flex;align-items:center;gap:8px}.oc-order-row>span:nth-child(4) .oc-progress{flex:1}.oc-order-row>span:nth-child(4)>b{font-size:10px;color:#4f6075}
.oc-week-contributors{margin-top:28px;padding-top:11px;border-top:1px solid #edf2f7}.oc-week-contributors>b{display:block;margin-bottom:8px;font-size:10px;color:#172b44}.oc-week-contributors>div{display:flex;flex-wrap:wrap;gap:6px}.oc-week-contributors>div>span{display:grid;grid-template-columns:24px minmax(0,1fr) 20px;align-items:center;gap:6px;min-width:145px;max-width:210px;padding:5px 7px;border:1px solid #dce7f2;border-radius:8px;background:#f7faff}.oc-week-contributors i{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#e4f0ff;color:#0864e8;font-size:8px;font-style:normal;font-weight:900}.oc-week-contributors em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334b66;font-size:9px;font-style:normal;font-weight:700}.oc-week-contributors strong{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#0864e8;color:#fff;font-size:8px}.oc-week-contributors>small{color:#8492a4;font-size:9px}
.report-edit-banner{border-color:#9dc5ff!important;background:#f1f7ff!important}.report-edit-gallery .photo{position:relative;padding-bottom:40px}.report-edit-gallery .photo>.btn{position:absolute;left:8px;right:8px;bottom:7px;width:calc(100% - 16px)}.report-editor-actions{position:sticky;bottom:-1px;z-index:5;padding:12px;background:#fffffff2;border:1px solid #dce7f2;border-radius:12px;box-shadow:0 -7px 20px #12375c12}.report-editor-actions .btn{min-width:180px}
.project-card.inactive{opacity:.82!important;background:#f5f8fc!important;border-style:dashed}.project-card.inactive>div:not(.project-card-actions){opacity:.7}.project-card.inactive .project-card-actions{opacity:1!important;position:relative;z-index:2}.project-delete-action{background:#fff0f1!important;color:#c92e3b!important;border-color:#ef9da5!important;font-weight:900!important}.project-delete-action:hover{background:#c92e3b!important;color:#fff!important;border-color:#c92e3b!important}
.report-display-btn{background:#082d5c!important;color:#fff!important;border-color:#082d5c!important;box-shadow:0 7px 16px #082d5c20}.report-display-btn:hover{background:#0b4388!important}.report-picker{display:grid;gap:10px}.report-picker-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:14px;border:1px solid #dce6f1;border-radius:12px;background:#fff}.report-picker-no{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#e9f2ff;color:#0864e8;font-weight:900}.report-picker-item>div:nth-child(2){display:grid;gap:3px}.report-picker-item b{color:#0a274a}.report-picker-item span,.report-picker-item small{color:#708096;font-size:11px}.report-picker-item>.badge{color:inherit}@media(max-width:680px){.report-picker-item{grid-template-columns:34px 1fr}.report-picker-item>.badge,.report-picker-item>.btn{grid-column:2}.report-picker-item>.btn{width:100%}}

/* Usuarios y privilegios · directorio corporativo */
.users-page{--u-navy:#071f3d;--u-blue:#1267e5;--u-cyan:#20bed8;--u-pale:#f2f7fd;--u-line:#d8e4f1}.users-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:17px;margin:5px 0 16px;padding:20px 24px;border-radius:17px;background:linear-gradient(120deg,#071f3d 0%,#0b3565 62%,#1267e5 145%);box-shadow:0 14px 32px #082d5c20;color:#fff}.users-hero:after{content:"";position:absolute;width:260px;height:260px;right:14%;top:-185px;border:42px solid #ffffff0b;border-radius:50%}.users-hero-icon,.panel-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:linear-gradient(145deg,#2182ff,#0c55cb);border:1px solid #ffffff2c;box-shadow:0 8px 18px #001a3a55;color:#fff;font-size:24px;font-weight:900}.users-hero h2{margin:3px 0 4px;font-size:23px;letter-spacing:-.025em}.users-hero p{margin:0;color:#cbdcf0;font-size:11px}.eyebrow{display:block;color:#36c9e6;font-size:8px;font-weight:900;letter-spacing:.17em}.users-hero-stats{position:relative;z-index:1;display:flex;gap:1px;border:1px solid #ffffff20;border-radius:13px;overflow:hidden;background:#ffffff0d}.users-hero-stats>div{min-width:94px;padding:10px 17px;text-align:center}.users-hero-stats>div+div{border-left:1px solid #ffffff20}.users-hero-stats b{display:block;font-size:22px}.users-hero-stats span{display:block;margin-top:1px;color:#bdd1e8;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.users-layout{display:grid;grid-template-columns:minmax(390px,.82fr) minmax(560px,1.45fr);gap:15px;align-items:start}.users-layout>.card{border:1px solid var(--u-line);border-radius:16px;padding:0;overflow:hidden;box-shadow:0 10px 28px #153a6510}.user-panel-head{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:12px;padding:17px 19px;border-bottom:1px solid var(--u-line);background:linear-gradient(180deg,#fff,#f8fbff)}.user-panel-head .panel-icon{width:40px;height:40px;border-radius:11px;font-size:18px;box-shadow:0 5px 12px #1267e52b}.user-panel-head h3{margin:2px 0 3px;font-size:15px;color:var(--u-navy)}.user-panel-head p{margin:0;line-height:1.5}.user-create-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px 11px;padding:18px 19px 5px}.user-create-fields label,.user-department-box>label,.modern-user-card label{margin:0 0 6px;color:#536780;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.user-create-fields input,.user-create-fields select,.user-department-box select,.modern-user-card input,.modern-user-card select{height:42px;border-color:#ccdced;background:#fbfdff}.user-create-fields input:focus,.user-create-fields select:focus,.modern-user-card input:focus,.modern-user-card select:focus{border-color:var(--u-blue);box-shadow:0 0 0 3px #1267e514}.user-department-box{margin:12px 19px 3px;padding:13px;border:1px solid #bdd6f2;border-radius:11px;background:#f2f8ff}.privilege-default{margin:13px 19px!important;padding:11px 13px;border:1px solid var(--u-line);border-radius:11px;background:#f8fbff}.privilege-default span,.account-switch span{display:grid;gap:2px}.privilege-default b,.account-switch b{font-size:10px;color:var(--u-navy)}.privilege-default small,.account-switch small{font-size:8px;color:#77899f;font-weight:500}.user-create-card>.permission-grid{margin:0 19px 13px}.create-user-btn{margin:1px 19px 19px;min-width:155px;height:41px;box-shadow:0 8px 17px #1267e52b!important}.create-user-btn span{font-size:16px}.directory-head{grid-template-columns:42px 1fr}.users-directory{max-height:625px;padding:13px 14px 15px;gap:10px;background:#f5f8fc}.modern-user-card{padding:0!important;border:1px solid #d6e2ef!important;border-radius:13px!important;overflow:hidden;background:#fff!important;transition:border-color .18s,box-shadow .18s,transform .18s}.modern-user-card:hover{border-color:#a8c8eb!important;box-shadow:0 9px 22px #153a6512!important;transform:translateY(-1px)}.modern-user-card.owner{border-color:#88b9f4!important;box-shadow:inset 3px 0 0 var(--u-blue)!important}.modern-user-card .user-head{align-items:flex-start;padding:13px 14px 11px}.user-identity{display:flex;align-items:center;gap:11px;min-width:0}.user-avatar{flex:0 0 auto;display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:linear-gradient(145deg,#e9f3ff,#d8e9ff);color:#075dce;border:1px solid #c8ddf7;font-size:12px;font-weight:900}.user-name-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.user-name-line b{font-size:11px;color:var(--u-navy)}.owner-mark{padding:3px 6px;border-radius:5px;background:#e8f2ff;color:#0862d5;font-size:6px;font-weight:900;letter-spacing:.1em}.modern-user-card .user-head small{margin-top:2px}.modern-user-card .chips{margin-top:5px}.role-chip{background:#f1f5fa!important;color:#5b6d82!important}.status-pill{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:900;white-space:nowrap}.status-pill i{width:6px;height:6px;border-radius:50%}.status-pill.online{color:#087a50;background:#e9f8f2;border:1px solid #bce9d8}.status-pill.online i{background:#10ae75;box-shadow:0 0 0 3px #10ae7515}.status-pill.offline{color:#a43838;background:#fff0f0;border:1px solid #f4cccc}.status-pill.offline i{background:#dd4f4f}.user-edit-panel{padding:0 14px 11px;border-top:1px solid #e7eef6;background:#fbfdff}.modern-user-card .compact-grid{gap:10px;margin-top:11px}.modern-user-card .account-switch{margin:10px 0 0!important}.modern-user-card .user-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid #e4ecf5;background:#fff}.modern-user-card .user-actions .btn{min-height:31px}.matrix-self-card,.matrix-peer-card{border-radius:13px!important}.matrix-directory{display:grid;gap:9px}.matrix-directory>h3,.matrix-directory>p{margin-left:3px}
@media(max-width:1150px){.users-layout{grid-template-columns:1fr}.users-directory{max-height:none}.user-create-card{position:static}}
@media(max-width:700px){.users-hero{grid-template-columns:46px 1fr;padding:16px}.users-hero-icon{width:44px;height:44px}.users-hero-stats{grid-column:1/-1;width:100%}.users-hero-stats>div{flex:1}.users-hero h2{font-size:19px}.user-create-fields{grid-template-columns:1fr}.modern-user-card .form-grid{grid-template-columns:1fr}.modern-user-card .user-head{gap:10px}.user-identity{align-items:flex-start}.modern-user-card .user-actions .btn{width:100%}}

/* Panel Matriz / Administración · adaptación móvil estable.
   Incluye navegadores móviles que reportan viewport de escritorio (~980 px). */
@media(max-width:1100px){
  body:has(.app-shell){overflow-x:hidden;background:#eef4fb}
  .app-shell{display:block!important;min-width:0;width:100%}
  .sidebar{position:sticky!important;top:0!important;z-index:70!important;width:100%!important;height:auto!important;min-height:0!important;padding:7px 8px!important;border:0!important;background:#071f3d!important;overflow:visible!important;box-shadow:0 5px 18px #061f3d30}
  .sidebar .brand,.sidebar-footer{display:none!important}
  .sidebar .nav{display:flex!important;gap:6px!important;margin:0!important;padding:0 0 2px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}
  .sidebar .nav::-webkit-scrollbar{display:none}.sidebar .nav button{flex:0 0 auto!important;display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:7px!important;width:auto!important;min-width:max-content!important;min-height:40px!important;padding:9px 12px!important;border-radius:9px!important;color:#bfd0e3!important;font-size:10px!important;white-space:nowrap!important}.sidebar .nav button>span:first-child{font-size:13px}.sidebar .nav button .help,.sidebar .nav-count{display:none!important}.sidebar .nav button.active{background:#1267e5!important;color:#fff!important;box-shadow:none!important}
  .workspace{width:100%;min-width:0}.topbar{position:sticky!important;top:55px!important;z-index:55!important;height:auto!important;min-height:58px!important;padding:10px 13px!important;background:#fff!important}.topbar>div:first-child{min-width:0}.topbar h1{font-size:16px!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar p{font-size:9px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{display:none!important}
  .content{width:100%!important;max-width:none!important;padding:11px 9px calc(34px + env(safe-area-inset-bottom))!important;overflow:hidden}
  .section-head{margin:12px 2px 9px!important;gap:8px!important}.section-head h2{font-size:16px!important}.section-head p{font-size:10px!important;line-height:1.4}.section-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:7px!important}.section-actions .btn{width:100%!important;margin:0!important}
  .card{max-width:100%;min-width:0;padding:13px!important;border-radius:12px!important}.two-col,.users-layout,.weekly-report-layout,.report-period-grid,.document-grid,.project-layout{grid-template-columns:minmax(0,1fr)!important}.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.stat{min-width:0;padding:12px!important}.stat b{font-size:23px!important}
  .toolbar,.filter-panel,.report-toolbar,.weekly-controls{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:9px!important}.toolbar .control,.filter-panel .control,.report-toolbar .control{width:100%!important;min-width:0!important}.toolbar .btn,.filter-panel .btn,.report-toolbar .btn{width:100%!important;margin:0!important}.seg-tabs{display:flex!important;max-width:100%;overflow-x:auto;scrollbar-width:none}.seg-tabs button{flex:0 0 auto;white-space:nowrap}
  input,select,textarea{max-width:100%!important;width:100%!important;min-width:0!important}.form-grid,.user-create-fields,.compact-grid,.permission-grid{grid-template-columns:minmax(0,1fr)!important}.data-list{max-height:none!important;overflow:visible!important;padding-right:0!important}.data-row{align-items:stretch!important;flex-direction:column!important}.row-actions,.user-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:7px!important}.row-actions .btn,.user-actions .btn{width:100%!important;margin:0!important}
  .users-hero{grid-template-columns:42px minmax(0,1fr)!important;margin:0 0 10px!important;padding:14px!important;border-radius:13px!important}.users-hero-icon{width:40px!important;height:40px!important}.users-hero h2{font-size:17px!important}.users-hero p{font-size:9px!important}.users-hero-stats{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.users-hero-stats>div{min-width:0!important;padding:8px!important}.users-layout{display:grid!important;gap:10px!important}.users-layout>.card{padding:0!important}.user-panel-head{grid-template-columns:38px minmax(0,1fr)!important;padding:13px!important}.user-panel-head .panel-icon{width:36px;height:36px}.user-panel-head h3{font-size:14px}.user-create-fields{padding:14px 13px 4px!important}.user-department-box,.privilege-default{margin-left:13px!important;margin-right:13px!important}.user-create-card>.permission-grid{margin-left:13px!important;margin-right:13px!important}.create-user-btn{width:calc(100% - 26px)!important;margin:2px 13px 14px!important}.users-directory{padding:9px!important;background:#f4f8fc!important}.modern-user-card{width:100%!important}.modern-user-card .user-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;padding:12px!important}.user-identity{min-width:0}.user-identity>div:last-child{min-width:0}.user-name-line b,.modern-user-card small{overflow-wrap:anywhere}.modern-user-card .chips{display:flex;flex-wrap:wrap}.modern-user-card .user-edit-panel{padding:0 12px 10px!important}.modern-user-card .user-actions{padding:10px 12px!important}.status-pill{align-self:start}.account-switch{align-items:flex-start!important}
  .project-grid{grid-template-columns:minmax(0,1fr)!important}.project-card{min-width:0}.assignment-save-box{align-items:stretch!important;flex-direction:column!important}.assignment-save-box .btn{width:100%!important;min-width:0!important}.case-card{grid-template-columns:minmax(0,1fr)!important}.case-actions{display:grid!important;grid-column:auto!important}.table-wrap{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:680px}.oc-layout,.oc-lower{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.oc-kpis{grid-template-columns:minmax(0,1fr)!important}.oc-order-row,.oc-table-head{min-width:650px}.oc-panel:has(.oc-order-row){overflow-x:auto}.modal{padding:0!important;align-items:end!important}.modal-box{width:100%!important;max-width:none!important;max-height:92dvh!important;border-radius:17px 17px 0 0!important}.modal-head{padding:12px!important}.modal-body{padding:11px!important}.gallery{grid-template-columns:1fr!important}
}
