:root { --navy:#071b45; --blue:#2563ff; --cyan:#38d5ff; --teal:#22c7a9; --ink:#0b1b3a; --muted:#6b7890; --line:#dfe6f3; --bg:#f2f5fd; }
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; background:var(--bg); color:var(--ink); font-size:14px; }

.topbar { background:var(--navy); color:#fff; display:flex; align-items:center; gap:20px; padding:12px 22px; position:sticky; top:0; z-index:10; }
.topbar .brand { display:flex; align-items:center; gap:10px; }
.topbar .brand img { width:36px; height:36px; object-fit:contain; }
.topbar .wm { font-weight:800; font-size:18px; } .topbar .wm span { color:var(--cyan); }
.topbar nav { display:flex; gap:6px; flex:1; }
.topbar nav a { color:#c9d6f5; text-decoration:none; padding:7px 12px; border-radius:8px; font-weight:600; }
.topbar nav a:hover { background:#10244d; color:#fff; }
.topbar nav a.btn { background:var(--blue); color:#fff; }
.topbar .who { font-size:13px; color:#c9d6f5; } .topbar .who a { color:var(--cyan); }

main { max-width:1000px; margin:26px auto; padding:0 18px 60px; }
.head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
h1 { font-size:22px; color:var(--navy); }
h2 { font-size:15px; color:var(--navy); margin-bottom:12px; }
.hint { color:var(--muted); margin-bottom:14px; }

.btn { display:inline-block; background:var(--blue); color:#fff; border:none; border-radius:9px; padding:9px 16px; font-weight:700; text-decoration:none; cursor:pointer; font-size:14px; }
.btn.ghost { background:#fff; color:var(--blue); border:1.5px solid var(--blue); }
.btn.small { padding:5px 10px; font-size:12px; }
.btn.big { padding:12px 22px; font-size:15px; }

.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:18px; }
.card label { display:flex; flex-direction:column; gap:6px; font-weight:600; font-size:13px; color:var(--muted); margin-bottom:12px; }
input, select, textarea { border:1.5px solid var(--line); border-radius:8px; padding:9px 11px; font-size:14px; font-family:inherit; color:var(--ink); width:100%; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--blue); }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.grid3 .span2 { grid-column:span 2; }
.row-inline { display:flex; gap:8px; align-items:center; }
.row-inline input { flex:1; }
.tc-hint { align-self:end; color:var(--muted); font-size:12px; font-weight:500; padding-bottom:9px; }
.num { text-align:right; }

.t { width:100%; border-collapse:collapse; background:#fff; border-radius:10px; overflow:hidden; }
.t th { background:var(--navy); color:#fff; text-align:left; padding:10px 12px; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.t td { border-bottom:1px solid var(--line); padding:10px 12px; }
.t a { color:var(--blue); font-weight:700; text-decoration:none; }

.cot-form .items td { vertical-align:top; }
.cot-form .items .desc { resize:vertical; }
.cot-form .num { width:110px; text-align:right; }
.cot-form .del { background:#fde; color:#d33; border:none; border-radius:6px; width:26px; height:26px; font-weight:800; cursor:pointer; }
.totals .resumen { background:#f4f7fd; border-radius:10px; padding:14px; }
.resumen .r { display:flex; justify-content:space-between; padding:5px 0; font-size:14px; }
.resumen .r.total { border-top:2px solid var(--navy); margin-top:6px; padding-top:9px; font-size:17px; font-weight:800; color:var(--navy); }
.actions { display:flex; justify-content:flex-end; gap:10px; margin-top:6px; }

.prev { width:100%; height:80vh; border:1px solid var(--line); border-radius:10px; background:#fff; }

.login-body { background:var(--navy); display:flex; align-items:center; justify-content:center; height:100vh; }
.login { background:#fff; border-radius:16px; padding:38px; width:340px; display:flex; flex-direction:column; gap:14px; text-align:center; }
.login .login-cat { width:60px; height:60px; margin:0 auto; }
.login h1 { font-size:18px; color:var(--navy); } .login h1 span { color:var(--blue); }
.login .err { color:#d33; font-size:13px; }
