*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#f5f7f8;color:#172126}a{text-decoration:none;color:inherit}.top{background:#0c7f68;color:white;padding:13px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:10px}.brand div{display:flex;flex-direction:column}.brand small{opacity:.8}.top nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.logo{width:48px;height:48px;border-radius:14px;background:white;color:#0c7f68;display:grid;place-items:center;font-weight:900;font-size:24px}.logo.sm{width:36px;height:36px;border-radius:10px;font-size:18px}.container{max-width:1280px;margin:auto;padding:28px}.head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.head h1{margin:0 0 5px}.muted{color:#68767d}.small{font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat{background:white;border:1px solid #e1e7e8;border-radius:14px;padding:17px}.stat span{color:#6e7a80;font-size:13px}.stat b{display:block;font-size:30px;margin-top:4px}.green b{color:#16805f}.amber b{color:#a56a00}.red b{color:#b43f3f}.toolbar{display:grid;grid-template-columns:1fr 200px auto;gap:10px;margin-bottom:15px}.toolbar input,.toolbar select,input,textarea{padding:11px 12px;border:1px solid #ccd5d8;border-radius:9px;background:white;font:inherit;width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid #ccd5d8;border-radius:9px;background:white;font-weight:700;cursor:pointer}.btn.primary{background:#0c7f68;border-color:#0c7f68;color:white}.btn.success{background:#25835d;border-color:#25835d;color:white}.btn.danger{background:#b84242;border-color:#b84242;color:white}.tiny{padding:6px 9px;font-size:12px}.table{overflow:auto;background:white;border:1px solid #e1e7e8;border-radius:14px}table{border-collapse:collapse;width:100%;min-width:900px}th,td{padding:13px;border-bottom:1px solid #edf0f1;text-align:left}th{font-size:12px;color:#68767d;text-transform:uppercase;background:#fafbfb}.code{font-family:monospace;font-size:15px}.badge{display:inline-flex;padding:5px 9px;border-radius:99px;font-size:12px;font-weight:800}.badge.free{background:#e4f5ee;color:#176b50}.badge.assigned{background:#fff2d9;color:#8c5c00}.badge.used{background:#fde5e5;color:#9e3838}.panel{background:white;border:1px solid #e1e7e8;border-radius:14px;padding:22px}.panel label{display:flex;flex-direction:column;gap:7px;font-weight:700}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}dl{display:grid;grid-template-columns:130px 1fr;gap:12px}dt{font-weight:700;color:#68767d}dd{margin:0}.history{padding:12px 0;border-bottom:1px solid #eee}.alert{padding:12px 14px;border-radius:10px;margin-bottom:16px}.alert.success{background:#e5f6ef;color:#17664e}.alert.danger{background:#fdeaea;color:#923a3a}.auth{min-height:100vh;display:grid;place-items:center;background:#eef6f4}.auth-card{width:min(420px,92vw);background:white;padding:30px;border-radius:18px;box-shadow:0 18px 60px rgba(0,0,0,.1)}.auth-card form{display:grid;gap:14px;margin-top:20px}.auth-card label{display:flex;flex-direction:column;gap:7px;font-weight:700}.auth-card .logo{margin-bottom:14px}@media(max-width:800px){.top{flex-direction:column;align-items:flex-start}.container{padding:18px}.stats{grid-template-columns:1fr 1fr}.toolbar,.grid,.detail-grid{grid-template-columns:1fr}.full{grid-column:auto}.head{align-items:flex-start;flex-direction:column}}

/* V2: tipos de voucher */
.type-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 18px}.type-card{background:white;border:1px solid #e1e7e8;border-radius:14px;padding:16px;transition:.15s ease}.type-card:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(0,0,0,.06)}.type-card-head{display:flex;gap:9px;align-items:center;min-height:42px}.type-card-head strong{font-size:14px}.type-total{display:block;font-size:27px;margin:12px 0 7px}.type-mini{display:flex;flex-wrap:wrap;gap:8px;color:#68767d;font-size:11px}.type-pill{display:inline-flex;align-items:center;white-space:nowrap;padding:4px 8px;border-radius:7px;font-size:11px;font-weight:900;letter-spacing:.02em;margin-right:5px}.type-1d{background:#e9f3ff;color:#205d96}.type-2d{background:#eee9ff;color:#5b42a2}.type-1d24h{background:#fff1d9;color:#8a5a00}.type-2d24h{background:#e7f7ed;color:#206f47}.type-name{display:block;margin-top:4px;color:#68767d;white-space:nowrap}.toolbar-4{grid-template-columns:minmax(260px,1fr) 250px 190px auto}.filter-summary{display:flex;justify-content:space-between;align-items:center;margin:-2px 0 12px;color:#68767d;font-size:13px}.filter-summary a{color:#0c7f68;font-weight:800}.import-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:18px}.import-form{display:grid;gap:18px}.import-form select,.panel select{padding:11px 12px;border:1px solid #ccd5d8;border-radius:9px;background:white;font:inherit;width:100%}.type-help{display:grid;gap:12px}.type-help>div{display:flex;align-items:flex-start;gap:8px;border-bottom:1px solid #edf0f1;padding-bottom:11px}.type-help p{margin:0;font-size:13px;line-height:1.45}.detail-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:1000px){.type-stats{grid-template-columns:1fr 1fr}.toolbar-4{grid-template-columns:1fr 1fr}.import-layout{grid-template-columns:1fr}}@media(max-width:600px){.type-stats,.toolbar-4{grid-template-columns:1fr}.type-mini{justify-content:space-between}}
