@import url("../theme/theme.css");
:root{
  --bg:#f5f7fb; --text:#0f172a; --muted:#475569; --line:#e5e9f2;
  --card:#ffffff; --primary:#1e88e5; --primary-2:#1565c0; --accent:#00acc1;
  --ok:#22c55e; --warn:#f59e0b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;background:#f5f7fb;color:#0f172a}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.topbar{background:linear-gradient(90deg,#1e88e5,#1565c0);color:#fff}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{display:flex;gap:12px;align-items:center}
.brand__logo{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:#fff;color:#1e88e5;font-weight:800}
.brand__text{display:flex;flex-direction:column;font-size:.9rem}
.nav__link{color:#e3f2fd;text-decoration:none;font-weight:600;margin-left:12px;opacity:.9}
.nav__link:hover{opacity:1;text-decoration:underline}
.content{padding:20px 0 30px}
.grid{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}
.card{background:#fff;border:1px solid #e5e9f2;border-radius:14px;box-shadow:0 10px 24px rgba(16,24,40,.05);padding:16px}
.card__header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e9f2;padding-bottom:10px;margin-bottom:10px}
.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field input,.field select{padding:12px 12px;border:1px solid #e5e9f2;border-radius:10px;background:#f9fbff;outline:none}
.hint{color:#475569}
.input-group{display:flex;gap:8px}
.withsuffix{position:relative}
.withsuffix input{padding-right:48px}
.suffix{position:absolute;right:0;top:0;height:100%;width:44px;display:grid;place-items:center;border-left:1px solid #e5e9f2;background:#eef2f7;border-top-right-radius:10px;border-bottom-right-radius:10px;color:#475569;font-weight:600}
.fieldset{border:1px dashed #e5e9f2;border-radius:12px;padding:12px;margin-top:12px}
.fieldset__title{font-weight:700;margin-bottom:8px}
.explain{margin:4px 0 6px;color:#475569;font-size:.95rem}
.actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.btn{background:linear-gradient(90deg,#1e88e5,#00acc1);color:#fff;border:none;padding:12px 16px;border-radius:10px;font-weight:700;cursor:pointer}
.btn--ghost{background:#fff;color:#1e88e5;border:1px solid #1e88e5}
.resultado{min-height:180px;display:flex;align-items:center;justify-content:center;border:1px dashed #e5e9f2;border-radius:12px;background:#f9fbff}
.result{width:100%}
.result__row{display:flex;align-items:center;justify-content:space-between;padding:10px 8px;border-bottom:1px solid #e5e9f2}
.result__row--total{background:#eef6ff}
.result__row--grand{background:#e9fbe9}
.footer{border-top:1px solid #e5e9f2;padding:14px 0;color:#475569;font-size:.95rem;margin-top:10px}
.hidden{display:none}
.badge{background:#e6f9ed;color:#166534;border:1px solid #bbf7d0;padding:6px 10px;border-radius:999px;font-weight:700;font-size:.85rem}
.mode{display:flex;gap:10px;align-items:center}
