.af{--ink:#171717;--muted:#666666;--gold:#d4af37;--line:#e4e4e4;color:var(--ink);font:14px/1.6 "Plus Jakarta Sans",sans-serif}
.af *{box-sizing:border-box}.af h1,.af h2,.af p{margin-top:0}.af h1{font-size:clamp(25px,4vw,36px);letter-spacing:-.035em;line-height:1.2}.af h2{font-size:19px;letter-spacing:-.02em}.af a{color:#171717;text-decoration:none;font-weight:650}.af a:hover{text-decoration:underline}.af small{display:block;color:var(--muted);font-size:12px}.af input,.af select,.af textarea{display:block;width:100%;min-width:0;border:1px solid #d4af37;background:#fff;border-radius:9px;padding:11px 12px;font:inherit;color:var(--ink)}.af input:focus,.af select:focus,.af textarea:focus{outline:3px solid #d4af3733;border-color:#d4af37}.af label{display:block;font-size:13px;font-weight:650}.af label small{font-weight:400;margin-top:5px}.af button,.af .af-btn{display:inline-flex;justify-content:center;align-items:center;min-height:43px;padding:10px 17px;border-radius:9px;border:1px solid #080808;background:#080808;color:#fff;font:650 13px/1.4 "Plus Jakarta Sans",sans-serif;cursor:pointer;text-decoration:none;gap:6px}.af button:hover,.af .af-btn:hover{background:#202020;text-decoration:none}.af button:disabled{opacity:.5;cursor:wait}.af .af-secondary{background:#fff;color:#080808;border-color:#d4af37}.af .af-secondary:hover{background:#fff7d6}.af .af-danger{background:#fff1ef;color:#9a3a28;border-color:#f1ccc5}.af-page{margin:0;background:#f5f5f5;min-height:100vh}.af-wrap{max-width:1180px;margin:auto;padding:35px 28px 70px}.af-header{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#080808;color:#fff;padding:18px max(24px,calc((100vw - 1124px)/2));border-bottom:3px solid #d4af37}.af-header img{width:135px;height:50px;object-fit:contain}.af-header .af-tag{font-size:11px;color:#f5d76e;letter-spacing:.12em;text-transform:uppercase}.af-header form{margin:0}.af-header button{border-color:#d4af37;background:transparent}.af-header small{color:#cccccc}.af-header a{color:#fff}.af-intro{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.af-eyebrow{font-size:11px;font-weight:800;letter-spacing:.1em;color:#171717;text-transform:uppercase;margin-bottom:9px}.af-muted{color:var(--muted)}.af-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0 26px}.af-kpi{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;min-width:0}.af-kpi span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.af-kpi strong{display:block;font-size:clamp(21px,2.8vw,30px);letter-spacing:-.035em;overflow-wrap:anywhere}.af-card{padding:25px;border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:22px}.af-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.af-form{display:grid;gap:16px}.af-form .af-full{grid-column:1/-1}.af-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.af-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #e4e4e4;padding-bottom:13px;margin-bottom:23px}.af-tabs a{padding:9px 15px;border-radius:8px;font-size:13px}.af-tabs a[aria-current=page]{color:#fff;background:#0a0a0a}.af-notice{padding:14px 17px;margin:17px 0;border-radius:10px;background:#fff7d6;color:#171717;border:1px solid #e5c34b}.af-error{background:#fff2ec;border-color:#efd3c3;color:#8d3d26}.af-success{background:#ecf6ee;border-color:#cce5d3;color:#265f36}.af-table{max-width:100%;overflow:auto}.af table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.af th{background:#f5f5f5;font-weight:650;color:#666666;white-space:nowrap}.af th,.af td{padding:13px 14px;border-bottom:1px solid #e8e8e8;vertical-align:top}.af td{min-width:115px}.af td small{margin-top:4px}.af-badge{display:inline-block;padding:4px 9px;background:#fff7d6;border-radius:6px;font-size:11px;line-height:1.4}.af-empty{text-align:center;color:var(--muted);padding:40px!important}.af-linkbox{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.af-linkbox input{flex:1;min-width:190px;background:#fafafa}.af-qr{display:flex;gap:25px;align-items:center}.af-qr img{width:180px;height:180px;max-width:100%;border:1px solid #e4e4e4;border-radius:10px}.af-auth{width:min(100% - 36px,440px);margin:8vh auto}.af-auth .af-card{padding:32px}.af-auth-logo{display:block;width:150px;max-height:65px;object-fit:contain;margin:0 auto 30px}.af-auth h1{font-size:27px}.af-bottom{margin-top:32px;font-size:12px;color:var(--muted)}.af-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.af-filter input{width:min(100%,300px)}.af-admin{margin-top:20px}.af-admin .af-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.af-summary{display:flex;gap:20px;flex-wrap:wrap}.af-summary b{font-size:22px}.af-inline-form{margin:0}.af-hidden{display:none!important}
@media(max-width:720px){.af-wrap{padding:25px 16px 45px}.af-header{padding:15px 17px}.af-header img{width:112px;height:42px}.af-header .af-tag{display:none}.af-intro{display:block}.af-kpis,.af-admin .af-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.af-kpi{padding:15px}.af-kpi strong{font-size:23px}.af-grid{grid-template-columns:1fr}.af-card{padding:19px 16px}.af-qr{flex-direction:column;align-items:flex-start}.af-auth .af-card{padding:25px}.af-tabs a{padding:8px 11px}.af-intro h1{margin-bottom:12px}.af-header form button{padding:8px 11px;min-height:38px}}

.af-disclosure>summary{cursor:pointer;font-weight:750;font-size:15px;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px}
.af-disclosure>summary:after{content:'+';font-size:21px;line-height:1;color:#d4af37}.af-disclosure[open]>summary:after{content:'−'}.af-disclosure>summary::-webkit-details-marker{display:none}.af-disclosure-body{padding-top:22px}.af-disclosure:not([open]){padding-top:17px;padding-bottom:17px}
.af-search{align-items:end;gap:12px;background:#f5f5f5;padding:15px;border-radius:10px}.af-search label{flex:1;min-width:155px}.af-search .af-search-text{flex:2;min-width:210px}.af-search input{width:100%}.af-search button,.af-search .af-btn{flex:0 0 auto}.af-history{margin:18px 0}.af-history>summary{cursor:pointer;font-weight:700}.af-history li{margin:8px 0}.af-wallet{grid-template-columns:repeat(4,minmax(0,1fr))}.af-wallet .af-kpi:first-child{background:#080808;color:#fff}.af-wallet .af-kpi:first-child span{color:#f5d76e}
@media(max-width:720px){.af-wallet{grid-template-columns:repeat(2,minmax(0,1fr))}.af-search label,.af-search .af-search-text{min-width:100%;flex-basis:100%}.af-header .af-actions>span{max-width:140px;overflow-wrap:anywhere}}
.af .af-bottom{margin-top:24px}
@media(max-width:720px){.af-wallet .af-kpi strong{font-size:clamp(16px,4.5vw,23px);white-space:nowrap;overflow-wrap:normal}}
@media(max-width:370px){.af-wallet{grid-template-columns:1fr}.af-wallet .af-kpi strong{font-size:24px}}

/* Halaman detail pencairan */
.af .af-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;font-size:13px;color:var(--muted)}
.af .af-back:hover{color:var(--ink)}
.af-detail-head h1{margin-bottom:6px}
.af-status{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;border:1px solid transparent}
.af-status:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.af-status-wait{background:#fff7d6;color:#7a5b00;border-color:#efd77a}
.af-status-ok{background:#ecf6ee;color:#265f36;border-color:#cce5d3}
.af-status-bad{background:#fff2ec;color:#8d3d26;border-color:#efd3c3}
.af-status-mute{background:#f1f1f1;color:#555;border-color:#e0e0e0}
.af-detail-head .af-status{font-size:13px;padding:7px 14px}
.af-steps{list-style:none;margin:6px 0 0;padding:0;display:flex;gap:0;counter-reset:s}
.af-steps li{flex:1;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;min-width:0}
.af-steps li:not(:first-child):before{content:'';position:absolute;top:16px;right:50%;width:100%;height:2px;background:#e4e4e4;z-index:0}
.af-steps li.is-done:before,.af-steps li.is-skip:before,.af-steps li.is-current:before,.af-steps li.is-error:before{background:#d4af37}
.af-step-dot{position:relative;z-index:1;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;background:#fff;border:2px solid #e4e4e4;color:#999}
.af-step-label{font-size:12.5px;font-weight:650;color:#999;padding:0 4px}
.af-step-label small{font-weight:400}
.is-done .af-step-dot{background:#080808;border-color:#080808;color:#f5d76e}
.is-done .af-step-label,.is-current .af-step-label{color:var(--ink)}
.is-current .af-step-dot{border-color:#d4af37;color:#080808;background:#fff7d6;box-shadow:0 0 0 4px #d4af3726}
.is-skip .af-step-dot{border-style:dashed;border-color:#d4af37;color:#b8952a}
.is-error .af-step-dot{background:#fff2ec;border-color:#d9876a;color:#8d3d26}
.is-error .af-step-label{color:#8d3d26}
.af-next{margin:20px 0 0;padding:13px 15px;background:#f7f7f7;border-radius:10px;font-size:13px}
.af-detail-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0}
.af-detail-kpis .af-kpi:first-child{background:#080808;color:#fff}
.af-detail-kpis .af-kpi:first-child span{color:#f5d76e}
.af .af-kpi-sm{font-size:16px!important;letter-spacing:0;font-weight:700}
.af-dl{display:grid;grid-template-columns:minmax(110px,max-content) 1fr;gap:10px 18px;margin:0 0 14px}
.af-dl dt{color:var(--muted);font-size:13px}
.af-dl dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.af-dl dd small{font-weight:400}
.af .af-num{text-align:right;white-space:nowrap}
.af tfoot th{background:#fafafa;color:var(--ink);font-size:14px;border-bottom:0}
.af-timeline{list-style:none;margin:0;padding:0 0 0 4px}
.af-timeline li{position:relative;padding:0 0 18px 26px;border-left:2px solid #ececec}
.af-timeline li:last-child{border-left-color:transparent;padding-bottom:0}
.af-timeline li:before{content:'';position:absolute;left:-7px;top:4px;width:12px;height:12px;border-radius:50%;background:#d4af37;border:2px solid #fff;box-shadow:0 0 0 1px #d4af37}
.af-timeline li.af-tone-ok:before{background:#2f7a45;box-shadow:0 0 0 1px #2f7a45}
.af-timeline li.af-tone-bad:before{background:#c0583a;box-shadow:0 0 0 1px #c0583a}
.af-timeline li.af-tone-mute:before{background:#999;box-shadow:0 0 0 1px #999}
.af-timeline p{margin:6px 0 0;padding:9px 12px;background:#f7f7f7;border-radius:8px;font-size:13px}
.af-danger-zone{border-color:#f1ccc5}
.af-empty-state{text-align:center;padding:45px 25px}
.af .af-btn-sm{min-height:34px;padding:6px 12px;font-size:12px;white-space:nowrap}
@media(max-width:720px){
.af-detail-head{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.af-detail-kpis{grid-template-columns:1fr 1fr}
.af-detail-kpis .af-kpi:first-child{grid-column:1/-1}
.af-steps{flex-direction:column;gap:14px}
.af-steps li{flex-direction:row;text-align:left;align-items:center;gap:12px}
.af-steps li:not(:first-child):before{top:auto;bottom:100%;right:auto;left:16px;width:2px;height:14px}
.af-dl{grid-template-columns:1fr;gap:2px}
.af-dl dd{margin-bottom:10px}
}
.af-items td{min-width:0}
.af-items td b{display:block}
.af-chip{display:inline-block;margin-bottom:5px;padding:2px 8px;border-radius:5px;background:#f3f3f3;color:#555;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
@media(max-width:720px){.af-grid>.af-card{margin-bottom:0}.af-detail-head~.af-grid{margin-bottom:22px}}
@media(max-width:720px){.af-steps{margin-bottom:6px}}

/* Kartu nominal detail pencairan: tema memaksa teks gelap, kunci warnanya di sini */
body.af .af-kpis>.af-kpi.af-kpi-main,body .af .af-kpis>.af-kpi.af-kpi-main{background:#0a0a0a;border-color:#333}
body.af .af-kpis>.af-kpi.af-kpi-main strong,body .af .af-kpis>.af-kpi.af-kpi-main strong{color:#f5d76e}
body.af .af-kpis>.af-kpi.af-kpi-main>span,body .af .af-kpis>.af-kpi.af-kpi-main>span{color:#f5d76e}
body.af .af-detail-kpis .af-kpi>span,body .af .af-detail-kpis .af-kpi>span{min-height:0}

/* Tarif komisi */
.af-rate-now{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.af-rate-now>div{background:#f7f7f7;border:1px solid #ececec;border-radius:11px;padding:13px 15px}
.af-rate-now span{display:block;font-size:12px;color:var(--muted)}
.af-rate-now b{font-size:16px}
.af-rate-form{grid-template-columns:1fr 1fr;align-items:start}
.af-rate-form fieldset{border:1px solid #ececec;border-radius:12px;padding:14px 16px 16px;margin:0;min-width:0}
.af-rate-form legend{font-weight:750;font-size:13px;padding:0 6px}
.af-rate-form fieldset>small{margin-top:8px}
.af-rate-form .af-notice,.af-rate-form .af-actions{grid-column:1/-1;margin:0}
.af-rate-pair{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:end}
.af-rate-per{padding-bottom:12px;font-weight:700;color:var(--muted)}

/* Progres tayangan */
.af-progress{margin:4px 0 14px;padding:14px 16px;border:1px solid #ececec;border-radius:12px;background:#fafafa}
.af-progress-head{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-bottom:9px}
.af-progress-head span{color:var(--muted)}
.af-progress-bar{height:8px;border-radius:99px;background:#ececec;overflow:hidden}
.af-progress-bar i{display:block;height:100%;background:linear-gradient(90deg,#d4af37,#f3d875);border-radius:99px;min-width:4px}
.af-progress small{margin-top:9px}

@media(max-width:720px){
.af-rate-now,.af-rate-form{grid-template-columns:1fr}
.af-rate-pair{grid-template-columns:1fr 1fr}
.af-rate-per{display:none}
}

/* Mobile: kartu tabel boleh turun baris (admin.css memaksa nowrap), jarak kartu bertumpuk konsisten */
@media(max-width:720px){
body .af .af-table .kaba-card-table td,body .af .af-table .kaba-card-table td small{white-space:normal;overflow-wrap:anywhere}
body.af .af-grid:has(>.af-card),body .af .af-grid:has(>.af-card){gap:0;margin-bottom:0}
body.af .af-detail-head,body .af .af-detail-head{margin-bottom:18px}
.af .af-progress-head{flex-wrap:wrap}
}

/* Status saldo di bawah Sumber Komisi */
.af-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 16px;border:1px solid #ececec;border-radius:12px;overflow:hidden}
.af-flow>div{padding:12px 16px;background:#fafafa}
.af-flow>div+div{border-left:1px solid #ececec}
.af-flow span{display:block;font-size:12px;color:var(--muted)}
.af-flow b{font-size:16px}
.af .af-booking-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 22px}
.af-cta{display:flex;align-items:center;justify-content:space-between;gap:20px}
.af-cta h2{margin-bottom:6px}.af-cta p{margin:0}
.af-cta .af-btn{flex:0 0 auto}
@media(max-width:720px){
.af-flow{grid-template-columns:1fr}
.af-flow>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.af-flow>div+div{border-left:0;border-top:1px solid #ececec}
.af-flow b{font-size:14px}
.af .af-booking-sum{grid-template-columns:1fr 1fr;gap:10px}
.af .af-booking-sum .af-kpi-main{grid-column:1/-1}
.af-cta{flex-direction:column;align-items:stretch}
}
/* Tile aktivitas: satu baris rapi di desktop, 2 kolom di HP */
body .af .af-kpis.af-stat-grid,body.af .af-kpis.af-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:12px}
body .af .af-stat-grid>.af-kpi,body.af .af-stat-grid>.af-kpi{min-width:0;min-height:0}
@media(max-width:720px){body .af .af-kpis.af-stat-grid,body.af .af-kpis.af-stat-grid{grid-template-columns:1fr 1fr;gap:10px}body .af .af-stat-grid>.af-kpi:last-child:nth-child(odd),body.af .af-stat-grid>.af-kpi:last-child:nth-child(odd){grid-column:1/-1}}

/* V4: riwayat tarif, hapus record */
.af-subsection{margin-top:24px;padding-top:20px;border-top:1px solid #ececec}
.af-subsection h3{font-size:15px;margin:0 0 14px}
.af-rate-log p{background:transparent;padding:0;margin:4px 0 0}
.af .af-locked{display:inline-block;padding:4px 8px;border-radius:6px;background:#f3f3f3;color:#666;font-size:11px;max-width:180px}
.af-delete-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.af-delete-form label{flex:1 1 220px;max-width:320px}
@media(max-width:720px){.af-delete-form{flex-direction:column;align-items:stretch}.af-delete-form label{flex:none;max-width:none}}
.af-count{display:inline-block;margin-left:4px;padding:0 7px;border-radius:99px;background:#0000000f;font-size:11px;font-weight:700}
.af-tabs a[aria-current=page] .af-count{background:#ffffff26}
.af-row-delete{display:flex;gap:6px;align-items:center;min-width:220px}
.af-row-delete input{min-width:0;flex:1;padding:7px 9px!important;min-height:34px!important;font-size:12px!important}
@media(max-width:720px){.af-row-delete{min-width:0}.af-row-delete input{font-size:16px!important}}
.af-rate-now{grid-template-columns:repeat(3,minmax(0,1fr))}
.af-rate-now small{margin-top:3px}
.af-rate-form .af-full-field{grid-column:1/-1}
@media(max-width:720px){.af-rate-now{grid-template-columns:1fr}}
.af .af-minus{color:#b23b22}
.af .af-locked{white-space:normal}

/* Kelola Data: kartu pilihan jenis data */
.af-datatypes{margin:0 0 24px}
.af-datatypes-label{display:block;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#666;margin-bottom:10px}
.af-datatypes-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.af a.af-datatype{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon count" "text text";gap:14px 12px;align-items:start;padding:16px;border:1px solid #e4e4e4;border-radius:16px;background:#fff;color:#171717;text-decoration:none;box-shadow:0 4px 16px #00000005;transition:border-color .15s,box-shadow .15s,transform .15s}
.af a.af-datatype:hover{border-color:#d4af37;box-shadow:0 8px 22px #d4af3722;text-decoration:none;transform:translateY(-1px)}
.af-datatype-icon{grid-area:icon;width:42px;height:42px;border-radius:12px;background:#fff6d6;color:#9b7a1c;display:flex;align-items:center;justify-content:center}
.af-datatype-icon svg{width:22px;height:22px}
.af-datatype-count{grid-area:count;justify-self:end;text-align:right;line-height:1.1}
.af-datatype-count strong{display:block;font-size:24px;font-weight:800;letter-spacing:-.03em}
.af-datatype-count em{font-style:normal;font-size:11px;color:#777;font-weight:600}
.af-datatype-text{grid-area:text;min-width:0}
.af-datatype-text b{display:block;font-size:14px;line-height:1.3}
.af .af-datatype-text small{display:block;margin-top:3px;font-size:12px;line-height:1.45;color:#777}
.af a.af-datatype.is-active{background:#0a0a0a;border-color:#0a0a0a;color:#fff;box-shadow:0 10px 26px #0000002a}
.af a.af-datatype.is-active:after{content:'';position:absolute;left:16px;right:16px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#d4af37}
.af-datatype.is-active .af-datatype-icon{background:#d4af37;color:#111}
.af-datatype.is-active .af-datatype-count em,.af .af-datatype.is-active .af-datatype-text small{color:#cfcfcf}
.af-datatype.is-active .af-datatype-count strong{color:#f5d76e}
@media(max-width:1100px){.af-datatypes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
  .af-datatypes-grid{gap:10px}
  .af a.af-datatype{padding:13px;gap:10px 8px;border-radius:14px}
  .af-datatype-icon{width:36px;height:36px;border-radius:10px}
  .af-datatype-icon svg{width:19px;height:19px}
  .af-datatype-count strong{font-size:20px}
  .af-datatype-text b{font-size:13px}
  .af .af-datatype-text small{display:none}
}
