*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
:root{--coral:#FF8E7A;--coral2:#F2786A;--ink:#3B2F3A;--muted:#8a7a86;--line:#F3E3DE;--bg:#FFF7F3}
html,body{background:var(--bg)}
body{font-family:'Be Vietnam Pro',-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--ink);font-size:14px;max-width:520px;margin:0 auto;min-height:100vh}
button,input,select,textarea{font:inherit;color:inherit}
.hidden{display:none!important}
#view{padding:calc(env(safe-area-inset-top) + 8px) 16px calc(96px + env(safe-area-inset-bottom))}
.hd{padding:10px 2px 12px;display:flex;align-items:center;gap:10px}
.hd h1{font-size:21px;font-weight:700;flex:1}
.back{font-size:24px;background:none;border:0;padding:0 6px 0 0;cursor:pointer}
.av{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#FFB4A2,#FFD6C9);display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}
.card{background:#fff;border-radius:18px;box-shadow:0 4px 14px rgba(240,128,110,.10);padding:12px 14px;margin-bottom:10px}
.ct{font-weight:700;font-size:15px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.ct small,.link{font-weight:500;color:var(--coral2);font-size:12.5px;cursor:pointer;background:none;border:0}
.row{display:flex;align-items:center;gap:10px;padding:7px 0}
.row+.row{border-top:1px dashed var(--line)}
.click{cursor:pointer}
.muted{color:var(--muted);font-size:12px}
.b{font-weight:700}.f1{flex:1;min-width:0}.right{text-align:right}
.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip{display:inline-block;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap;border:0}
button.chip{cursor:pointer}
.s-cho_xac_nhan{background:#FFF1C9;color:#9A6B00}.s-da_xac_nhan{background:#DCEBFF;color:#2D5FA8}.s-da_den{background:#EADFFF;color:#6A45B8}.s-hoan_thanh{background:#D5F5E8;color:#1E8A5F}.s-huy{background:#F1ECEE;color:#9B8A92;text-decoration:line-through}
.t0{background:#EFEAEC;color:#6b5d64}.t1{background:#E6EBF2;color:#55657a}.t2{background:#FFF0C2;color:#A06E00}.t3{background:linear-gradient(90deg,#C9B6FF,#FFB4C8);color:#4a2a6b}
.sample{background:#FFF1EC;color:#C2410C;font-size:10px;padding:1px 6px;border-radius:8px;font-weight:600}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.stat{border-radius:18px;padding:12px 14px}.stat .v{font-size:19px;font-weight:800;margin-top:4px}
.peach{background:linear-gradient(135deg,#FFD9CF,#FFC2B3)}.mint{background:linear-gradient(135deg,#D3F5E8,#B5EBD6)}.lav{background:linear-gradient(135deg,#E9E0FF,#D7C8FF)}.pl{background:linear-gradient(135deg,#FFE3DA,#EDE3FF)}
.bar{height:8px;background:#F6E8E4;border-radius:8px;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,#FF9E8A,#C9A8FF);border-radius:8px}
.ic{width:34px;height:34px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;border:0}
.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:520px;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -4px 16px rgba(240,128,110,.12);display:flex;justify-content:space-around;padding:9px 4px calc(10px + env(safe-area-inset-bottom));z-index:10}
.tab{display:flex;flex-direction:column;align-items:center;font-size:10.5px;color:#a8989f;gap:3px;flex:1;background:none;border:0;cursor:pointer}
.tab span{font-size:19px;filter:grayscale(1);opacity:.55}.tab.on{color:var(--coral2);font-weight:700}.tab.on span{filter:none;opacity:1}
.btn{background:linear-gradient(90deg,#FF8E7A,#FFA98F);color:#fff;font-weight:700;border-radius:16px;padding:13px;text-align:center;font-size:15px;box-shadow:0 6px 14px rgba(242,120,106,.3);border:0;width:100%;cursor:pointer}
.btn:disabled{opacity:.5}
.btn2{background:#fff;color:var(--coral2);border:1.5px solid #FFCFC4;border-radius:14px;padding:9px 12px;font-weight:600;cursor:pointer}
.btn-sm{padding:6px 10px;font-size:12.5px;border-radius:12px}
.danger{color:#C0392B;border-color:#F5C6C0}
.plus{background:var(--coral);color:#fff;font-size:22px;width:38px;height:38px;border-radius:13px;border:0;cursor:pointer;box-shadow:0 4px 10px rgba(242,120,106,.3)}
.seg{display:flex;background:#F6E8E4;border-radius:14px;padding:3px;margin-bottom:10px;overflow-x:auto;gap:2px}
.seg button{flex:1;text-align:center;padding:7px 8px;border-radius:11px;font-size:12.5px;color:var(--muted);background:none;border:0;white-space:nowrap;cursor:pointer}
.seg .on{background:#fff;color:var(--coral2);font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.06)}
label.f{display:block;margin-bottom:9px}label.f>span{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
.inp,input.inp,select.inp,textarea.inp{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:10px 11px;font-size:15px;background:#FFFBFA;outline:none}
.inp:focus{border-color:var(--coral)}
.search{display:flex;gap:8px;margin-bottom:10px}
.cb{width:20px;height:20px;accent-color:#5CC49E}
.modal{position:fixed;inset:0;background:rgba(59,47,58,.35);z-index:20;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--bg);width:100%;max-width:520px;max-height:92vh;overflow:auto;border-radius:24px 24px 0 0;padding:16px 16px calc(20px + env(safe-area-inset-bottom))}
.toast{position:fixed;top:calc(14px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:14px;z-index:30;font-size:13.5px;max-width:90%;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.toast.err{background:#C0392B}
.days{display:flex;justify-content:space-between;text-align:center;padding:8px}
.days button{width:42px;padding:6px 0;border-radius:12px;border:0;background:none;cursor:pointer}
.days .on{background:var(--coral);color:#fff}
.cal{display:flex;overflow-x:auto}
.col{flex:1;min-width:96px;position:relative;border-left:1px dashed var(--line)}
.ev{position:absolute;left:3px;right:3px;border-radius:12px;padding:5px 7px;font-size:11px;line-height:1.3;overflow:hidden;cursor:pointer;border:0;text-align:left}
.hour{font-size:10.5px;color:#a8989f;border-top:1px solid #F6E8E4;padding-top:2px}
.pay{display:flex;align-items:center;gap:10px;border:1.5px solid var(--line);border-radius:14px;padding:9px 10px;margin-bottom:6px;cursor:pointer;background:#fff;width:100%;text-align:left}
.pay.on{background:#FFF1EC;border-color:var(--coral)}
.chart{display:flex;height:150px;align-items:flex-end}
.chart>div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}
.chart i{display:block;width:22px;border-radius:8px 8px 4px 4px;background:#EDE3FF}.chart .cur i{background:linear-gradient(#FF8E7A,#FFC2B3)}
table.perm{width:100%;border-collapse:collapse;font-size:12px}table.perm td,table.perm th{padding:6px 2px;text-align:center;border-bottom:1px dashed var(--line)}table.perm td:first-child{text-align:left}
.login{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:20px}
.empty{color:var(--muted);text-align:center;padding:14px 0;font-size:13px}
.warn{background:#FFF6E5}
.ev.one{white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;gap:3px}
