:root{--navy:#071a2f;--blue:#2563eb;--red:#dc2626;--orange:#f97316;--green:#16a34a;--bg:#f4f6fa;--card:#fff;--line:#e5e7eb;--text:#0f172a;--muted:#64748b}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:Arial,Helvetica,sans-serif}button,input,select,textarea{font-family:inherit}button{cursor:pointer;border:0}svg{width:18px;height:18px}.loginPage,.publicPage{background:linear-gradient(135deg,#f8fafc,#fee2e2);justify-content:center;align-items:center;min-height:100vh;padding:22px;display:flex}.loginCard,.publicCard{border:1px solid var(--line);background:#fff;border-radius:28px;width:100%;max-width:420px;padding:30px;box-shadow:0 24px 60px #0f172a24}.loginLogo{object-fit:contain;max-width:180px;max-height:95px;margin:0 auto 14px;display:block}.loginCard h1,.publicCard h1{text-align:center;color:var(--navy);margin:0;font-size:34px}.loginCard p{text-align:center;color:var(--muted);margin:6px 0 20px}.loginCard label,.publicCard label{color:#334155;margin-top:10px;font-size:13px;font-weight:800;display:block}input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:14px;width:100%;margin:7px 0;padding:13px;font-size:15px}textarea{resize:vertical;min-height:86px}.primary,.redBtn{background:var(--blue);color:#fff;border-radius:13px;justify-content:center;align-items:center;gap:8px;padding:12px 16px;font-weight:900;display:inline-flex}.primary.full,.redBtn{width:100%;margin-top:10px}.redBtn{background:var(--red)}.error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca;border-radius:12px;margin:10px 0;padding:10px}.app{min-height:100vh;display:flex}.sidebar{background:var(--navy);color:#fff;z-index:20;width:270px;padding:18px;position:fixed;top:0;bottom:0;left:0}.brand{align-items:center;gap:10px;margin-bottom:24px;display:flex}.brand img{object-fit:contain;background:#fff;border-radius:14px;width:56px;height:56px;padding:6px}.brand b{font-size:20px;display:block}.brand small{color:#cbd5e1}.sidebar button{color:#fff;text-align:left;background:0 0;border-radius:13px;align-items:center;gap:10px;width:100%;margin-bottom:6px;padding:13px;font-weight:700;display:flex}.sidebar button.active,.sidebar button:hover{background:#ffffff1f}main{width:calc(100% - 270px);margin-left:270px;padding:24px}.topbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;display:flex}.topbar h1{color:var(--navy);margin:0;font-size:29px}.topbar p{color:var(--muted);margin:4px 0 0}.hero{background:linear-gradient(135deg,var(--navy),#123c69);color:#fff;border-radius:24px;justify-content:space-between;align-items:center;margin-bottom:16px;padding:24px;display:flex}.hero h2{margin:0}.hero p{color:#cbd5e1;margin:6px 0 0}.metrics{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px;display:grid}.metric{border:1px solid var(--line);background:#fff;border-radius:20px;padding:18px;box-shadow:0 8px 22px #0f172a0d}.metric span{color:var(--muted);font-size:13px;font-weight:700;display:block}.metric strong{color:var(--blue);font-size:34px}.metric.accent strong{color:var(--orange)}.panel{border:1px solid var(--line);background:#fff;border-radius:22px;margin-bottom:16px;padding:18px;box-shadow:0 8px 22px #0f172a0d}.head,.panelHead{justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px;display:flex}.head h2,.panelHead h2{color:var(--navy);margin:0}.op,.demand,.company{border:1px solid var(--line);background:#fff;border-radius:16px;align-items:center;gap:12px;margin-bottom:9px;padding:13px;display:flex}.op{cursor:pointer}.clientLogo{background:#f8fafc;border:2px solid #e5e7eb;border-radius:14px;flex:none;justify-content:center;align-items:center;width:54px;height:54px;display:flex;overflow:hidden}.clientLogo img{object-fit:contain;width:100%;height:100%;padding:4px}.op b,.demand b,.company b{display:block}.op small,.demand small,.company small{color:var(--muted);font-size:12px;display:block}.op .right{text-align:right;margin-left:auto}.op .right b{color:var(--navy);display:block}.bar{background:#e5e7eb;border-radius:999px;width:170px;height:7px;margin-top:8px;overflow:hidden}.bar span{background:var(--green);height:100%;display:block}.badge{color:#1d4ed8;background:#dbeafe;border-radius:999px;align-items:center;padding:5px 9px;font-size:12px;font-weight:900;display:inline-flex}.badge.convocado{color:#166534;background:#dcfce7}.badge.reserva{color:#92400e;background:#fef3c7}.formGrid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;display:grid}.formGrid .wide{grid-column:span 2}.grow{flex:1}.demand button{color:#0f172a;background:#f1f5f9;border-radius:11px;align-items:center;gap:6px;padding:9px 11px;font-weight:800;display:inline-flex}.list{gap:8px;display:grid}.detail{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.detail h2{color:var(--navy);margin:0}.detail p{color:var(--muted);margin:6px 0}.detail button{color:#0f172a;background:#f1f5f9;border-radius:11px;align-items:center;gap:6px;padding:9px 11px;font-weight:800;display:inline-flex}.linkBox{word-break:break-all;background:#f8fafc;border:1px dashed #94a3b8;border-radius:14px;padding:13px}.tableWrap{overflow:auto}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid var(--line);text-align:left;padding:12px;font-size:14px}th{color:#334155;background:#f8fafc}td button{background:#f1f5f9;border-radius:9px;margin:2px;padding:7px 9px}.search{border:1px solid var(--line);background:#f8fafc;border-radius:13px;align-items:center;gap:8px;padding:0 10px;display:flex}.search input{background:0 0;border:0;min-width:250px;margin:0}.empty{color:var(--muted);text-align:center;background:#f8fafc;border-radius:16px;padding:20px}.pdf{background:#e5e7eb;border-radius:20px;margin-bottom:16px;padding:18px}.pdfSheet{background:#fff;width:794px;min-height:1123px;margin:14px auto 0;padding:42px;box-shadow:0 12px 35px #0000002e}.pdfSheet header{border-bottom:2px solid #111827;justify-content:space-between;align-items:center;padding-bottom:16px;display:flex}.pdfSheet header img{max-width:155px;max-height:90px}.pdfSheet h1{margin:0}.pdfGrid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.pdfGrid div{border:1px solid #d1d5db;padding:11px}.pdfGrid .span{grid-column:span 2}.pdfGrid small{color:#6b7280;text-transform:uppercase;font-size:10px;display:block}.pdfList{border:1px solid #d1d5db}.pdfList div{border-bottom:1px solid #e5e7eb;justify-content:space-between;padding:12px;display:flex}.pdfSheet footer{color:#4b5563;border-top:1px solid #d1d5db;margin-top:28px;padding-top:12px;font-size:12px}.publicCard{border-top:8px solid var(--red)}.publicLogo{object-fit:contain;max-width:180px;max-height:95px;margin:0 auto 12px;display:block}.publicCard .cargo{text-align:center;color:var(--red);margin-top:4px;font-weight:900}.publicInfo{background:#fff5f5;border:1px solid #fecaca;border-radius:18px;margin:16px 0;padding:12px}.publicInfo div{border-bottom:1px solid #fecaca;padding:8px}.publicInfo div:last-child{border-bottom:0}.publicInfo small{color:#991b1b;text-transform:uppercase;font-size:10px;font-weight:900;display:block}.success{color:#166534;text-align:center;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:18px;padding:18px}@media (width<=900px){.sidebar{width:100%;height:auto;position:static}.app{display:block}main{width:100%;margin-left:0;padding:14px}.topbar{flex-direction:column;align-items:flex-start}.metrics{grid-template-columns:1fr 1fr}.formGrid{grid-template-columns:1fr}.formGrid .wide{grid-column:span 1}.bar{width:100%}.demand{flex-direction:column;align-items:flex-start}.pdfSheet{width:100%;min-height:auto;padding:22px}.pdfGrid{grid-template-columns:1fr}.pdfGrid .span{grid-column:span 1}.search input{min-width:100px}}@media print{body{background:#fff}.sidebar,.topbar,.panel:not(.pdf),.primary{display:none!important}main{width:100%;margin:0;padding:0}.pdf{background:#fff;padding:0;display:block!important}.pdfSheet{box-shadow:none;width:100%;min-height:auto}}
