.modal-backdrop{position:fixed;inset:0;background:#0206178c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:2000;overscroll-behavior:contain}.modal{width:min(920px,96vw);max-height:min(92vh,92dvh);background:#1e293b;color:#f1f5f9;border-radius:18px;box-shadow:0 10px 25px -3px #0009,0 8px 16px -6px #00000080;display:flex;flex-direction:column;overflow:hidden;animation:modal-pop .18s ease-out}@keyframes modal-pop{0%{transform:translateY(6px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.modal-header,.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;background:#111827;border-color:#334155}.modal-header{border-bottom:1px solid #334155}.modal-footer{border-top:1px solid #334155}.modal-title{margin:0;font-size:18px;font-weight:700;color:#f8fafc}.modal-body{padding:18px;display:grid;grid-template-columns:1.25fr .75fr;gap:18px;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}@media (max-width: 860px){.modal-body{grid-template-columns:1fr}}.saving-overlay{position:absolute;inset:0;background:#02061773;display:grid;place-items:center;z-index:5}.spinner{width:34px;height:34px;border-radius:9999px;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.section{margin-bottom:14px}.section h4{margin:0 0 8px;font-size:14px;letter-spacing:.2px;text-transform:uppercase;color:#94a3b8}.media-box{border:1px dashed #475569;background:#0f172a;border-radius:12px;padding:10px;max-height:36vh;overflow:hidden}.media-box img{width:100%;height:auto;max-height:34vh;object-fit:contain;display:block;border-radius:10px}.receipts{display:grid;gap:8px}.receipt-item{display:flex;justify-content:space-between;align-items:center;background:#0f172a;border:1px solid #334155;color:#e2e8f0;border-radius:10px;padding:10px 12px}.btn{border:1px solid #334155;background:#1e293b;color:#f1f5f9;padding:10px 14px;min-height:44px;border-radius:10px;cursor:pointer}.btn:hover{background:#334155}.btn-primary{background:#3b82f6;color:#fff;border-color:#3b82f6}.btn-ghost{background:transparent;color:#f1f5f9;border:none;padding:8px 10px;border-radius:8px}.btn-danger{background:#ef4444;border-color:#ef4444;color:#fff}.btn-danger:hover{background:#dc2626}input,select,textarea{font-size:16px}.card{overflow-x:auto}.card table{min-width:720px}@media (max-width: 640px){.modal-backdrop{padding:0}.modal{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.modal-header,.modal-footer{position:sticky;z-index:2}.modal-header{top:0}.modal-footer{bottom:0}.modal-body{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}}.modal.small{width:min(560px,96vw)}.modal-body.single{display:block;padding:18px}.modal-footer{position:sticky;bottom:0;z-index:2}.modal-footer-grid{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px}.toast-container{position:fixed;right:16px;bottom:16px;display:grid;gap:8px;z-index:4000}.toast{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#0b1220;border:1px solid #22314b;box-shadow:0 8px 24px #00000059;min-width:180px;font-weight:600}.toast .toast-dot{width:8px;height:8px;border-radius:999px;background:#93c5fd}.toast.success .toast-dot{background:#86efac}.toast.error .toast-dot{background:#fca5a5}.skeleton{background:linear-gradient(90deg,#0c1422 25%,#0f1a2b 37%,#0c1422 63%);background-size:400% 100%;animation:shimmer 1.4s ease-in-out infinite;border-radius:10px}.skeleton-list{display:grid;gap:8px}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.progress{width:100%;height:8px;background:#0f172a;border:1px solid #334155;border-radius:8px;overflow:hidden}.progress .bar{height:100%;background:#3b82f6;transition:width .15s ease}.cc-wrap{position:relative}.cc-input{border-radius:10px;border:1px solid #2a3246;background:#0f131c;color:#eef1f5;padding:10px 32px 10px 12px;width:100%}.cc-arrow{position:absolute;right:8px;top:50%;transform:translateY(-50%);opacity:.7;pointer-events:none}.cc-popover{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);background:#0f172a;border:1px solid #334155;border-radius:10px;padding:6px;max-height:240px;overflow:auto;box-shadow:0 10px 24px #00000059}.cc-item{padding:8px 10px;border-radius:8px;cursor:pointer}.cc-item:hover{background:#1e293b}.cc-item.create{color:#93c5fd}.cc-empty{opacity:.7;padding:8px 10px}.bars{display:grid;gap:8px}.bar-row{display:flex;align-items:center;gap:10px}.bar-label{flex:0 0 160px;opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{flex:1 1 auto;height:10px;background:#0f172a;border:1px solid #334155;border-radius:10px;overflow:hidden}.bar-fill{height:100%;background:#3b82f6}input,select,textarea{font-size:16px;line-height:1.4}.table-click tr.clickable:hover{background:#0b1220;cursor:pointer}@supports (padding: max(0px)){.modal-header{padding-top:max(14px,env(safe-area-inset-top))}.modal-footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}}.auth{position:fixed;inset:0;display:grid;place-items:center;overflow:auto;background:#0b1220;z-index:0}.auth-bg{position:absolute;inset:0;pointer-events:none;background:radial-gradient(1200px 600px at 10% -10%,rgba(59,130,246,.25),transparent 60%),radial-gradient(900px 500px at 110% 110%,rgba(16,185,129,.18),transparent 55%),linear-gradient(180deg,#0b1220,#0f172a 60%,#0b1220);opacity:.9}.auth-card{position:relative;width:min(440px,94vw);background:#111827bf;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(148,163,184,.18);border-radius:16px;padding:26px 22px;box-shadow:0 20px 60px #00000073,0 6px 18px #00000059;color:#e5e7eb}.auth-header{text-align:center;margin-bottom:16px}.auth-logo{width:56px;height:56px;display:grid;place-items:center;margin:0 auto 8px;border-radius:14px;background:linear-gradient(180deg,#3b82f6,#2563eb);color:#fff;font-size:28px;box-shadow:0 10px 30px #3b82f659}.auth-header h1{margin:6px 0 2px;font-size:22px;font-weight:800;letter-spacing:.2px;color:#f8fafc}.auth-sub{margin:0;color:#94a3b8;font-size:14px}.auth-form{display:grid;gap:12px;margin-top:12px}.auth-label{display:grid;gap:6px;font-size:13px;color:#cbd5e1}.auth-input-wrap{position:relative}.auth-input{width:100%;padding:12px 14px;background:#0f172a;color:#e5e7eb;border:1px solid #334155;border-radius:12px;outline:none;font-size:16px;transition:border-color .15s,box-shadow .15s,background .15s}.auth-input:focus{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f638;background:#0b1220}.pw-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);padding:6px 10px;font-size:12px;border:none;border-radius:8px;background:#1e293bcc;color:#cbd5e1;cursor:pointer}.pw-toggle:hover{background:#334155e6}.auth-error{background:#ef44441f;border:1px solid rgba(239,68,68,.4);color:#fecaca;padding:10px 12px;border-radius:10px;font-size:14px}.auth-submit{width:100%;margin-top:2px;min-height:46px;border-radius:12px;font-weight:700;letter-spacing:.2px}.btn-primary{border:1px solid #3b82f6;background:#3b82f6;color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer}.btn-primary:hover{background:#2563eb}.auth-footer{margin-top:14px;display:flex;justify-content:center;gap:8px;font-size:13px;color:#94a3b8}.auth-link{color:#93c5fd;text-decoration:none}.auth-link:hover{text-decoration:underline}.muted{opacity:.85}@media (max-width: 420px){.auth-card{padding:22px 18px}.auth-header h1{font-size:20px}}:root{color-scheme:light dark;--bg:#0b0d12;--card:#151822;--muted:#a9b1bd;--accent:#3b82f6}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;background:#0b0d12;color:#eef1f5}.app{max-width:980px;margin:0 auto;padding:24px}.card{background:#151822;border:1px solid #22283a;border-radius:16px;padding:20px;margin-bottom:16px}.row{display:flex;gap:12px;flex-wrap:wrap}input,select,button,textarea{border-radius:10px;border:1px solid #2a3246;background:#0f131c;color:#eef1f5;padding:10px 12px}button{cursor:pointer;font-weight:600}button.primary{background:#3b82f6;border-color:#3b82f6;color:#fff}button.ghost{background:transparent}h1,h2{margin:8px 0 16px}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid #22283a;text-align:left}.badge{font-size:12px;padding:2px 8px;border-radius:999px;background:#1d2432}.right{margin-left:auto}button,.btn,.btn-primary,.btn-danger{min-height:44px}
