:root{
  --bg-0:#07111F;
  --bg-1:#0B1526;
  --bg-2:#0F172A;
  --surface:#162033;
  --surface-2:#1B273A;
  --surface-3:#223048;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);
  --text:#F8FAFC;
  --text-soft:#B5C0D2;
  --text-muted:#7C8AA0;
  --primary:#6366F1;
  --primary-2:#3B82F6;
  --accent-cyan:#22D3EE;
  --accent-emerald:#10B981;
  --accent-amber:#F59E0B;
  --accent-rose:#FB7185;
  --shadow-soft:0 10px 30px rgba(0,0,0,.20);
  --shadow-card:0 18px 50px rgba(2,8,23,.30);
  --shadow-panel:0 24px 60px rgba(2,8,23,.38);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:12px;
}
*,*::before,*::after{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text);background:radial-gradient(circle at top right, rgba(34,211,238,.07), transparent 22%),radial-gradient(circle at top left, rgba(99,102,241,.10), transparent 26%),linear-gradient(180deg, #07111F 0%, #0B1526 40%, #0A1423 100%);min-height:100vh}
.topbar.hidden,.app-shell.hidden,#appPanel.hidden,#loginPanel.hidden,.runtime-screen.hidden,.tab-content.hidden{display:none!important}
h1,h2,h3,h4,h5,h6{margin:0;color:var(--text);font-weight:800;letter-spacing:-0.02em}h1{font-size:clamp(1.8rem,2.8vw,2.7rem)}h2{font-size:clamp(1.4rem,2vw,2rem)}h3{font-size:1.12rem}.muted{color:var(--text-muted)!important}.eyebrow{display:inline-block;margin-bottom:8px;font-size:.78rem;font-weight:700;letter-spacing:.10em;text-transform:uppercase;color:var(--accent-amber)}
html,body,.container,#appPanel,.app-shell,.tab-content,.card,.module-card,.checklist-card,.ot-module,.ot-menu,.ot-form,.ot-form-section,.check-section,.table-wrap,.list,.ot-list,.runtime-list,.runtime-orders{min-width:0!important}.container{width:100%;max-width:100%;padding:28px;overflow-x:hidden!important}#appPanel.app-shell{width:100%!important}.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start;padding-top:20px}
.topbar{position:sticky;top:0;z-index:200;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(8,14,26,.72);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.topbar *{pointer-events:auto}.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand-mark,.login-logo-clean{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;color:#fff;font-weight:800;background:linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);box-shadow:0 8px 20px rgba(16,185,129,.18)}.brand h1{margin:0;font-size:1.3rem;font-weight:800;line-height:1.1}.brand p{margin:2px 0 0;font-size:.9rem;color:var(--text-muted)}.top-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:nowrap}.status-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border-radius:999px;border:1px solid rgba(16,185,129,.24);background:linear-gradient(180deg, rgba(16,185,129,.12), rgba(16,185,129,.05));color:#D1FAE5;font-size:.83rem;font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}.status-pill::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent-emerald);box-shadow:0 0 10px rgba(16,185,129,.7)}
#logoutBtn,.logout-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-width:148px!important;height:42px!important;padding:0 18px!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.045)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--text)!important;font-size:.88rem!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;box-shadow:0 10px 24px rgba(0,0,0,.18);cursor:pointer!important;user-select:none;transition:all .22s ease}#logoutBtn:hover,.logout-button:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.20)!important;background:rgba(255,255,255,.07)!important}#logoutBtn:active,.logout-button:active{transform:translateY(0)}#logoutBtn[disabled],.logout-button[disabled]{opacity:.65;cursor:not-allowed!important}
.tabs{position:sticky;top:92px;display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:rgba(255,255,255,.04);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:var(--shadow-panel)}.tab-btn{position:relative;display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px 14px 18px;border:none;border-radius:16px;background:transparent;color:var(--text-soft);font:inherit;font-weight:700;cursor:pointer;transition:all .22s ease;overflow:hidden}.tab-btn::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:999px;background:transparent;transition:all .22s ease}.tab-btn:hover{color:var(--text);background:rgba(255,255,255,.04)}.tab-btn.active{color:#fff;background:linear-gradient(90deg, rgba(34,211,238,.12), rgba(99,102,241,.10));border:1px solid rgba(255,255,255,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}.tab-btn.active::before{background:linear-gradient(180deg, var(--accent-cyan), var(--accent-emerald));box-shadow:0 0 12px rgba(34,211,238,.35)}
.card,.module-card,.checklist-card,.ot-module{padding:24px;border:1px solid rgba(255,255,255,.08);border-radius:var(--radius-xl);background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)),linear-gradient(135deg, rgba(34,211,238,.02), rgba(245,158,11,.015)),var(--surface);box-shadow:var(--shadow-card)}
.module-head,.runtime-head,.runtime-section-title,.runtime-screen-head,.checklist-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.dashboard,.runtime-stats{display:grid;gap:16px;margin-bottom:18px}.dashboard article,.runtime-stats article{padding:18px 18px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 10px 24px rgba(2,8,23,.18)}.dashboard article strong,.runtime-stats article strong{display:block;margin-bottom:8px;font-size:2.1rem;font-weight:800;color:#fff}
.login-screen{min-height:calc(100vh - 40px);display:grid;place-items:center;padding:48px 24px}.login-card{width:min(100%, 480px);padding:34px;border:1px solid rgba(255,255,255,.08);border-radius:28px;background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), rgba(15,23,42,.72);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:var(--shadow-panel)}.login-header-clean{display:grid;gap:10px;margin-bottom:24px}.login-kicker{font-size:.8rem;font-weight:700;letter-spacing:.10em;text-transform:uppercase;color:var(--accent-amber)}.login-header-clean p{margin:0;font-size:1rem;color:var(--text-muted)}
input,select,textarea{width:100%;min-width:0;padding:14px 16px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:linear-gradient(180deg, #0D1830, #0A1428);color:var(--text);font:inherit;font-size:.98rem;outline:none;transition:border-color .18s ease, box-shadow .18s ease, background .18s ease}input::placeholder,textarea::placeholder{color:#8090A8}input:hover,select:hover,textarea:hover{border-color:rgba(255,255,255,.16)}input:focus,select:focus,textarea:focus{border-color:var(--accent-cyan);box-shadow:0 0 0 4px rgba(34,211,238,.12),0 10px 24px rgba(34,211,238,.08);background:linear-gradient(180deg, #11203A, #0D1830)}
button,.login-primary-btn,.ot-menu-btn,.module-head button,.checklist-title button,#exportConsumosBtn,.ot-form button[type="submit"],#equipoForm button,#consumoForm button,#checklistForm button[type="submit"]{border:none;border-radius:16px;font:inherit;font-weight:800;cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, filter .18s ease}.login-primary-btn,.ot-menu-btn,.module-head button,.checklist-title button,#exportConsumosBtn,.ot-form button[type="submit"],#equipoForm button,#consumoForm button,#checklistForm button[type="submit"]{position:relative;overflow:hidden;padding:14px 18px;color:#fff;background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);box-shadow:0 14px 30px rgba(99,102,241,.28)}.login-primary-btn:hover,.ot-menu-btn:hover,.module-head button:hover,.checklist-title button:hover,#exportConsumosBtn:hover,.ot-form button[type="submit"]:hover,#equipoForm button:hover,#consumoForm button:hover,#checklistForm button[type="submit"]:hover{transform:translateY(-1px);filter:brightness(1.05);box-shadow:0 18px 34px rgba(99,102,241,.34)}.password-reset-link,.ot-back-btn{padding:12px 16px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.03);color:#E2E8F0;font-weight:700}
.grid-form{display:grid;gap:14px}.list,.ot-list,.runtime-list,.runtime-orders{display:grid;gap:16px}.item,.ot-card{padding:18px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));box-shadow:0 10px 24px rgba(2,8,23,.18)}.item strong,.ot-card strong{color:#fff;font-size:1rem}.item small,.ot-card small{display:block;margin-top:6px;color:var(--text-muted)}.ot-card pre{margin:14px 0 0;white-space:pre-wrap;word-break:break-word;color:#C7D2E3;font-family:inherit;font-size:.92rem}
.table-wrap,.checklist-table-wrap,.consumos-table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01))}.check-table,.table-wrap table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.check-table th,.check-table td,.table-wrap table th,.table-wrap table td{min-width:110px;padding:12px 10px;border-bottom:1px solid rgba(255,255,255,.05);vertical-align:middle}.check-table th,.table-wrap table th{color:#E5EEF9;font-size:.88rem;font-weight:800;background:rgba(255,255,255,.025)}.check-table .row-label,.table-wrap table .row-label{min-width:180px;color:#F8FAFC;font-weight:700}
.check-mobile-section{display:grid!important;gap:12px!important}.check-mobile-list{display:grid!important;gap:12px!important}.check-mobile-card{display:grid!important;gap:12px!important;padding:16px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:18px!important;background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015))!important;box-shadow:0 10px 24px rgba(2,8,23,.18)!important}.check-mobile-card h4{margin:0!important;color:#F8FAFC!important;font-size:1rem!important;font-weight:800!important}.check-mobile-fields{display:grid!important;gap:10px!important}.check-mobile-field{display:grid!important;gap:6px!important}.check-mobile-field span{color:var(--accent-cyan)!important;font-size:.78rem!important;font-weight:800!important}
.ot-view{display:none!important}.ot-view.active{display:block!important}.ot-menu{display:grid!important;gap:18px!important}.ot-menu-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important}.ot-form{display:grid!important;gap:18px!important}.ot-form-section{display:grid!important;gap:14px!important;padding:18px!important;border-radius:18px!important;border:1px solid rgba(255,255,255,.07)!important;background:rgba(255,255,255,.015)!important}.ot-back-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:220px!important;min-height:42px!important;padding:0 14px!important;margin-bottom:14px!important}
.file-label{display:grid!important;gap:8px!important;padding:14px!important;border:1px dashed rgba(255,255,255,.16)!important;border-radius:16px!important;background:rgba(255,255,255,.02)!important;color:#E5EEF9!important}.message{margin-top:8px;font-size:.92rem;color:var(--accent-cyan)}
@media(max-width:1024px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.dashboard,.runtime-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-form{grid-template-columns:repeat(2,minmax(0,1fr))}.list,.ot-list,.runtime-list,.runtime-orders{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr;gap:18px}.tabs{position:fixed;left:12px;right:12px;bottom:12px;top:auto;z-index:220;flex-direction:row;justify-content:space-between;align-items:center;padding:10px;border-radius:22px;background:rgba(8,18,37,.80)}.tab-btn{flex:1 1 0;justify-content:center;padding:12px 8px;font-size:.78rem;flex-direction:column;gap:8px}.tab-btn::before{left:50%;top:auto;bottom:0;width:28px;height:3px;transform:translateX(-50%)}.container{padding:16px 16px 94px}.dashboard,.runtime-stats,.grid-form,.list,.ot-list,.runtime-list,.runtime-orders,.ot-menu-actions{grid-template-columns:1fr}.check-table{display:none}}
@media(max-width:560px){.topbar{padding:12px 14px;gap:10px}.brand h1{font-size:1rem}.brand p{font-size:.8rem}.top-actions{gap:8px}.status-pill{padding:8px 10px;min-height:34px;font-size:.72rem}#logoutBtn,.logout-button{min-width:126px!important;height:36px!important;padding:0 12px!important;font-size:.78rem!important}.login-card{padding:26px 20px;border-radius:24px}.card,.module-card,.checklist-card,.ot-module{padding:16px}.module-head,.runtime-head,.runtime-section-title,.runtime-screen-head,.checklist-title{flex-direction:column;align-items:stretch;gap:12px}.check-mobile-card{padding:14px}}
