
:root{
  --bg:#eef3ff;--card:#fff;--text:#0f172a;--muted:#64748b;--line:#d7deec;
  --primary:#2952d5;--shadow:0 14px 35px rgba(15,23,42,.08)
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif}
.app{width:100%;max-width:430px;margin:0 auto;padding:12px 12px 24px}
.card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:16px;margin-bottom:14px}
.top h1{margin:10px 0 8px;font-size:34px;line-height:1.02}
.sub{margin:0 0 12px;color:var(--muted);font-size:15px}
.badge{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#dbeafe;color:#1e40af;font-size:12px;font-weight:800}
.legend{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.legend span{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted)}
.dot{width:12px;height:12px;border-radius:50%;display:inline-block;border:1px solid #cbd5e1}
.dot.livre{background:#fff}.dot.reservado{background:#fde68a;border:none}.dot.pago{background:#22c55e;border:none}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat{background:#f8fbff;border:1px solid var(--line);border-radius:16px;text-align:center;padding:12px 8px}
.stat strong{display:block;font-size:24px}.stat small{color:var(--muted);font-size:12px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.section-head h2,.card h2{margin:0;font-size:22px}
.status-box{margin-bottom:12px;padding:10px 12px;border-radius:14px;background:#eff6ff;color:#1d4ed8;font-size:14px;font-weight:700;word-break:break-word}
.status-box.success{background:#dcfce7;color:#166534}.status-box.error{background:#fee2e2;color:#991b1b}
.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.number{aspect-ratio:1/1;border-radius:18px;border:2px solid #cbd5e1;background:#fff;font-size:18px;font-weight:800;color:#000}
.number.selected{border-color:#2952d5;background:#dbeafe;color:#1e3a8a}
.number.reservado{background:#fef3c7;border-color:#f59e0b;color:#92400e}
.number.pago{background:#dcfce7;border-color:#16a34a;color:#166534}
.number:disabled{opacity:1}
.resume-line{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.resume-line.total{font-size:22px;font-weight:800}
.form{display:flex;flex-direction:column;gap:10px;margin-top:14px}
label{font-size:14px;font-weight:700}
input,textarea{width:100%;border:1px solid #cbd5e1;border-radius:16px;padding:14px;font:inherit;margin-top:6px;background:#fff}
textarea{resize:none}
.btn{border:none;border-radius:16px;padding:14px 16px;font:inherit;font-weight:800}
.btn-primary{background:#2952d5;color:#fff}.btn-light{background:#eff6ff;color:#1e40af}.btn-green{background:#dcfce7;color:#166534}.btn-red{background:#fee2e2;color:#991b1b}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.65);display:flex;align-items:flex-end;justify-content:center;padding:12px;z-index:1000}
.modal.hidden{display:none}
.modal-box{width:100%;max-width:430px;background:#fff;border-radius:22px 22px 0 0;padding:18px;position:relative}
.close-btn{position:absolute;top:8px;right:12px;width:36px;height:36px;border:none;background:transparent;font-size:30px;line-height:1}
.payment-summary{color:#64748b;font-size:15px}
.modal-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
.admin-list{display:flex;flex-direction:column;gap:10px}
.admin-item{border:1px solid #d7deec;border-radius:18px;padding:12px;background:#f8fbff}
.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.admin-number{font-size:24px;font-weight:800}
.admin-status{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;text-transform:lowercase}
.admin-status.livre{background:#e2e8f0;color:#334155}.admin-status.reservado{background:#fef3c7;color:#92400e}.admin-status.pago{background:#dcfce7;color:#166534}
.admin-name{font-size:16px;font-weight:700;margin-bottom:10px;word-break:break-word}
.admin-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
