:root{
    --bg:#ffffff;        /* White */
    --card:#f8fafc;      /* Gray-50 */
    --muted:#64748b;     /* Slate-500 */
    --text:#1f2937;      /* Gray-800 */
    --accent:#3b82f6;    /* Blue-500 */
    --ok:#22c55e;        /* Green-500 */
    --warn:#f59e0b;      /* Amber-500 */
  }
  *{box-sizing:border-box}
  body{
    margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu;
    background:#ffffff; color:#1f2937;
  }
  .container{max-width:980px;margin:32px auto;padding:0 16px}
  h1{margin:0 0 12px}
  h2{margin:18px 0}
  .card{
    background:var(--card);
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:18px; margin:16px 0;
    box-shadow:0 4px 6px rgba(0,0,0,.1);
  }
  .muted{color:var(--muted)}
  .amarillo{background:#fef08a;color:#111827;padding:0 6px;border-radius:6px}
  .grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
  .grid-2{display:grid;gap:18px;grid-template-columns:1fr 1fr}
  .grid-form{display:grid;gap:12px;grid-template-columns:1fr 1fr;align-items:center}
  label{display:flex;flex-direction:column;gap:6px;font-weight:600}
  .grid-form label{display:block;font-weight:600;text-align:right;padding-right:12px}
  .grid-form input{width:100%}
  input{
    padding:10px;border-radius:10px;border:1px solid #d1d5db;background:#ffffff;color:var(--text);
  }
  .acciones{margin-top:16px;display:flex;gap:10px}
  button,.btn{
    background:var(--accent); color:#ffffff; font-weight:700;
    padding:10px 14px; border:none; border-radius:10px; cursor:pointer; text-decoration:none;
  }
  button.sec{background:#6b7280;color:#ffffff}
  .resumen .row{display:flex;justify-content:space-between;gap:14px;padding:8px 10px;border-bottom:1px dashed #d1d5db}
  .resumen .row span{color:var(--muted)}
  .resumen .row b{font-variant-numeric:tabular-nums}
  .resumen .row.total{color:#1f2937;background:#f1f5f9}
  .resumen .row.neto{color:#1f2937;background:#f0fdf4}
  .lista{margin:0;padding-left:18px;line-height:1.9}
  details.consts summary{cursor:pointer;color:#64748b}
  @media (max-width:800px){
    .grid-2{grid-template-columns:1fr}
    .grid-form{grid-template-columns:1fr;gap:8px}
    .grid-form label{text-align:left;padding-right:0;margin-bottom:4px}
  }
  