
*{
  box-sizing:border-box;
  margin:0;
  padding:0
}

body{
  background:#F8FAFC;
  color:#1E293B;
  font-family:'Inter',sans-serif;
  padding:20px
}

.angka-mono{
  font-family:'Inter',sans-serif;
  font-weight:700
}

header{
  margin-bottom:30px;
  text-align:center
}

header h1{
  font-size:28px;
  font-weight:700;
  color:#1E293B
}

.dashboard-grid{
  display:grid;
  grid-template-columns:4fr 8fr;
  gap:30px;
  align-items:start
}

.sidebar{
  display:flex;
  flex-direction:column;
  gap:20px;
  position:sticky;
  top:20px;
  width:100%
}

.form-card,
.main-area{
  display:flex;
  flex-direction:column
}

.form-card{
  padding:24px;
  height:100%
}

.main-area{
  gap:20px
}

.summary-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px
}

.balance-card{
  background:#fff;
  padding:20px;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:15px;
  box-shadow:0 4px 6px rgba(0,0,0,0.05);
  transition:transform 0.2s ease
}

.balance-card:hover{
  transform:translateY(-2px)
}

.card-icon{
  width:50px;
  height:50px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px
}

.ar-card .card-icon{
  background:#ECFDF5;
  color:#10B981
}

.ap-card .card-icon{
  background:#FEF2F2;
  color:#F43F5E
}

.net-card .card-icon{
  background:#F0F9FF;
  color:#3B82F6
}

.card-content p{
  color:#64748B;
  font-size:14px;
  margin-bottom:5px
}

.card-content h2{
  font-size:24px;
  font-weight:700;
  margin:0
}

.ar-card h2{
  color:#10B981
}

.ap-card h2{
  color:#F43F5E
}

.net-card h2{
  color:#3B82F6
}

.card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 6px rgba(0,0,0,0.05);
  overflow:hidden
}

.hidden{
  display:none
}

.payment-summary{
  display:grid;
  gap:14px;
  margin-bottom:24px;
  color:#394149
}

.payment-summary div{
  display:grid;
  gap:4px;
  padding:14px 16px;
  background:#F8FAFF;
  border-radius:12px;
  border:1px solid #E5E7EB
}

.payment-summary strong{
  display:block;
  font-size:13px;
  color:#475569;
  font-weight:600
}

.payment-summary span{
  display:block;
  font-size:18px;
  font-weight:700;
  color:#0F172A
}

.payment-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px
}

.btn-submit,
.btn-cancel{
  padding:14px 20px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  transition:all 0.2s ease
}

.btn-submit{
  width:100%;
  background:linear-gradient(135deg,#3B82F6,#1D4ED8);
  color:#fff;
  font-size:16px;
  font-weight:600
}

.btn-submit:hover{
  background:linear-gradient(135deg,#1D4ED8,#1E40AF);
  transform:translateY(-1px);
  box-shadow:0 6px 12px rgba(59,130,246,0.2)
}

.btn-cancel{
  background:#F3F4F6;
  color:#374151
}

.btn-cancel:hover{
  background:#E5E7EB
}

.form-section{
  margin-bottom:24px
}

.form-section h4{
  font-size:16px;
  font-weight:600;
  color:#374151;
  margin-bottom:16px;
  border-bottom:1px solid #E5E7EB;
  padding-bottom:8px
}

.form-group{
  margin-bottom:16px
}

label{
  display:block;
  color:#374151;
  font-size:14px;
  font-weight:500;
  margin-bottom:6px
}

input,
select{
  width:100%;
  padding:12px 16px;
  border:1px solid #D1D5DB;
  border-radius:8px;
  font-family:inherit;
  font-size:14px;
  transition:border-color 0.2s ease
}

input:focus,
select:focus{
  outline:none;
  border-color:#3B82F6;
  box-shadow:0 0 0 3px rgba(59,130,246,0.1)
}

.history-card{
  padding:0
}

.table-responsive{
  overflow-x:auto;
  max-height:500px;
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow:0 4px 6px rgba(0,0,0,0.05)
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px
}

th,
td{
  padding:16px 12px;
  text-align:left;
  border-bottom:1px solid #F3F4F6
}

th{
  background:#F9FAFB;
  font-weight:600;
  color:#374151;
  position:sticky;
  top:0;
  z-index:1
}

th:nth-child(4),
td:nth-child(4),
th:nth-child(7),
td:nth-child(7),
th:nth-child(8),
td:nth-child(8),
th:nth-child(9),
td:nth-child(9){
  text-align:right
}

th:nth-child(10),
td:nth-child(10),
th:nth-child(11),
td:nth-child(11){
  text-align:center
}

tbody tr:nth-child(even){
  background:#F9FAFB
}

tbody tr:hover{
  background:#F3F4F6
}

.badge{
  display:inline-block;
  padding:4px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  text-align:center
}

.badge.ar,
.badge.lunas{
  background:#ECFDF5;
  color:#10B981
}

.badge.ap{
  background:#FEF2F2;
  color:#F43F5E
}

.kolom-aksi{
  display:flex;
  gap:8px;
  justify-content:center
}

.btn-aksi{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-size:16px;
  transition:background-color 0.2s ease,transform 0.2s ease
}

.btn-aksi:hover{
  transform:translateY(-1px)
}

.btn-edit{
  background:#ECFDF5;
  color:#10B981
}

.btn-edit:hover{
  background:#D1FAE5
}

.btn-lunas{
  background:#FEF3C7;
  color:#D97706
}

.btn-lunas:hover{
  background:#FDE68A
}

.btn-hapus{
  background:#FEE2E2;
  color:#B91C1C
}

.btn-hapus:hover{
  background:#FECACA
}