*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;background:#eef2f9;color:#1e293b;min-height:100vh;display:flex;flex-direction:column}
.top{position:sticky;top:0;z-index:50;background:linear-gradient(90deg,#143D75 0%,#1c5397 60%,#186CCC 100%);color:#fff;display:flex;align-items:center;gap:20px;padding:12px 22px;box-shadow:0 4px 18px rgba(20,61,117,.35)}
.top .brand{display:flex;align-items:center;gap:11px}
.top .logo{width:42px;height:42px;flex-shrink:0}
.top .logo img{width:42px;height:42px;border-radius:11px;box-shadow:0 3px 10px rgba(0,0,0,.3)}
.top .brand b{font-size:16.5px;display:block;letter-spacing:.4px}
.top .brand small{font-size:11px;color:#bcd4f5}
.top nav{display:flex;gap:4px;margin-left:8px}
.top nav a{color:#d6e4f8;text-decoration:none;font-size:13.5px;font-weight:600;padding:7px 13px;border-radius:9px}
.top nav a:hover{background:rgba(255,255,255,.12)}
.top nav a.on{background:#fff;color:#143D75;font-weight:800}
.trend{margin-left:auto;display:flex;align-items:center;gap:12px}
.trend .badge{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);color:#d6e4f8;font-size:11px;font-weight:700;padding:5px 12px;border-radius:999px;letter-spacing:.4px}
.btn-masuk{background:transparent;border:1.5px solid rgba(255,255,255,.4);color:#fff;text-decoration:none;font-size:12.5px;font-weight:700;padding:8px 15px;border-radius:999px}
.btn-masuk:hover{background:#fff;color:#143D75}
.wrap{flex:1;width:100%;max-width:1560px;margin:0 auto;padding:24px 20px 40px}
.foot{background:#0f2547;color:#8fb2dd;text-align:center;padding:18px;font-size:12.5px;line-height:1.7}

.hero{background:linear-gradient(135deg,#0f2547 0%,#143D75 55%,#1c5397 100%);border-radius:18px;color:#fff;padding:28px 26px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:18px;box-shadow:0 12px 30px rgba(20,61,117,.25)}
.hero-badge{display:inline-block;background:rgba(49,170,202,.2);border:1px solid rgba(49,170,202,.5);color:#7dd3fc;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;padding:5px 12px;border-radius:999px;margin-bottom:10px}
.hero h1{font-size:24px;font-weight:800;line-height:1.25;margin-bottom:8px}
.hero p{color:#bcd4f5;font-size:13px;max-width:430px;line-height:1.6}
.hero-card{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:18px 24px;min-width:250px;backdrop-filter:blur(6px)}
.hc-lbl{font-size:10.5px;letter-spacing:1px;text-transform:uppercase;color:#9fc0ea;font-weight:700}
.hc-val{font-size:29px;font-weight:800;color:#7dd3fc;margin:6px 0 4px}
.hc-sub{font-size:11px;color:#8fb2dd}

.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px;margin-bottom:16px}
.kpi{background:#fff;border:1px solid #dbe7f5;border-radius:13px;padding:14px 15px;display:flex;gap:11px;align-items:center;box-shadow:0 2px 8px rgba(20,61,117,.05)}
.kpi .ic{width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.i1{background:#e0edff}.i2{background:#ffe4e6}.i3{background:#fdf0dc}.i4{background:#dff3fb}
.kpi .tt{font-size:10.5px;color:#64748b;text-transform:uppercase;letter-spacing:.5px;font-weight:700}
.kpi .vv{font-size:16.5px;font-weight:800;margin-top:2px}
.kpi .dd{font-size:10.5px;color:#94a3b8;margin-top:1px}
.up{color:#0057B2}.dn{color:#FF6347}.warn{color:#AA806E}

.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
@media(max-width:820px){.grid2{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid #dbe7f5;border-radius:14px;padding:18px;margin-bottom:16px;box-shadow:0 2px 8px rgba(20,61,117,.05)}
.card .lbl{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.6px;font-weight:700;margin-bottom:12px}
.chartbox{position:relative;height:250px}
.tblwrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;font-size:10.5px;text-transform:uppercase;letter-spacing:.6px;color:#64748b;padding:8px 10px;border-bottom:2px solid #e8eef7;white-space:nowrap}
td{padding:10px;border-bottom:1px solid #f1f5f9;vertical-align:middle}
tr:last-child td{border-bottom:none}
tr:hover td{background:#f8fafc}
.tag{font-size:10.5px;font-weight:800;letter-spacing:.5px;padding:3px 10px;border-radius:999px}
.tag.in{background:#dff3fb;color:#0057B2}
.tag.out{background:#ffe3de;color:#d2431e}

.pbar{height:8px;border-radius:999px;background:#e8eef7;overflow:hidden}
.pbar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0057B2,#31AACA)}
.pbar.p2 i{background:linear-gradient(90deg,#AA806E,#d9a06f)}
.rowline{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #f1f5f9;font-size:13px}
.rowline:last-child{border-bottom:none}
.rowline .nm{flex:1;font-weight:600;color:#334155}
.rowline .nm small{display:block;color:#94a3b8;font-weight:400}
.rank{width:24px;height:24px;border-radius:8px;background:#e0edff;color:#143D75;font-size:11.5px;font-weight:800;display:flex;align-items:center;justify-content:center}
@media(max-width:640px){
  .top{flex-wrap:wrap;gap:10px}
  .top nav{margin-left:0;order:3;width:100%}
  .trend{margin-left:0}
  .hero{padding:22px 18px}
  .hero-card{width:100%}
}

.ic img{width:22px;height:22px}
.cat-ic{width:15px;height:15px;vertical-align:-2px;margin-right:4px}
.top .brand-logo{height:48px;width:auto;border-radius:9px;box-shadow:0 3px 12px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.18)}

.top .brand-txt b{display:block;font-size:22px;font-weight:900;letter-spacing:2.5px;color:#F5D76E;line-height:1.05;position:relative;padding-bottom:4px}
.top .brand-txt b::after{content:"";position:absolute;left:0;bottom:0;width:34px;height:3px;border-radius:3px;background:linear-gradient(90deg,#E3B93C,#F5D76E)}
.top .brand-txt small{display:block;font-size:10.5px;color:#BCD4F5;letter-spacing:1.2px;font-weight:600;margin-top:5px}

/* === Form (Input Kas Masuk FR-01) === */
.frm{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
@media(max-width:640px){.frm{grid-template-columns:1fr}}
.fld{display:flex;flex-direction:column;gap:5px}
.fld label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#64748b}
.fld input[type=text],.fld input[type=number],.fld input[type=datetime-local],.fld select,.fld textarea{width:100%;padding:9px 11px;border:1.5px solid #dbe7f5;border-radius:10px;font-size:13.5px;color:#1e293b;background:#fff;outline:none;transition:border-color .15s}
.fld input:focus,.fld select:focus,.fld textarea:focus{border-color:#0057B2}
.fld input[type=file]{padding:7px;border:1.5px dashed #dbe7f5;border-radius:10px;font-size:12.5px;color:#64748b;background:#fbfdff;width:100%}
.fld .err{color:#d2431e;font-size:11.5px;font-weight:600}
.fld .hint{font-size:11px;color:#94a3b8}
.radio-row{display:flex;gap:18px;padding:8px 2px}
.radio-row label{display:flex;gap:7px;align-items:center;font-size:13.5px;text-transform:none;letter-spacing:0;font-weight:600;color:#334155;cursor:pointer}
.radio-row input{accent-color:#0057B2;width:15px;height:15px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 18px;border-radius:10px;font-size:13px;font-weight:700;cursor:pointer;border:1.5px solid transparent;text-decoration:none}
.btn-primary{background:linear-gradient(90deg,#0057B2,#1c5397);color:#fff;box-shadow:0 4px 12px rgba(0,87,178,.25)}
.btn-primary:hover{filter:brightness(1.08)}
.btn-ghost{background:#fff;border-color:#dbe7f5;color:#475569}
.btn-ghost:hover{background:#f8fafc}
.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;filter:grayscale(.4)}
.tag.void{background:#e2e8f0;color:#475569}
.voided{opacity:.6}
.voided td{background:#f8fafc}

/* === Tab Pembayaran === */
.tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.tab-btn{padding:10px 20px;border-radius:11px;border:1.5px solid #dbe7f5;background:#fff;font-size:13px;font-weight:700;color:#475569;cursor:pointer;transition:all .15s}
.tab-btn:hover{border-color:#0057B2;color:#0057B2}
.tab-btn.on{background:linear-gradient(90deg,#0057B2,#1c5397);color:#fff;border-color:transparent;box-shadow:0 4px 12px rgba(0,87,178,.22)}
.tab-panel{display:none}
.tab-panel.on{display:block}
.tag.pending{background:#fdf0dc;color:#9a6b1f}
/* === Paginasi === */
.pagin{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.pagin-btn{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:7px 12px;border:1.5px solid #dbe7f5;border-radius:9px;font-size:12.5px;font-weight:700;color:#475569;background:#fff;text-decoration:none;transition:all .15s}
.pagin-btn:hover{border-color:#0057B2;color:#0057B2}
.pagin-btn.on{background:linear-gradient(90deg,#0057B2,#1c5397);color:#fff;border-color:transparent}
.pagin-btn.off{opacity:.5;cursor:not-allowed;background:#f8fafc}
