:root{
    --green-deep:#308f59;
    --green-dark:#225a3a;
    --peach:#ffedd8;
    --mint:#cef3de;
    --text-dark:#0e0e0e;
    --red-late:#c0392b;
    --sidebar-w:220px;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
    font-family:'Poppins',sans-serif;
    color:var(--text-dark);
    background:#fff;
    font-size:13px;
}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}

.app{
    display:flex;
    min-height:100vh;
}

/* ---------- SIDEBAR (sama dengan dashboardpetugas) ---------- */
.sidebar{
    width:var(--sidebar-w);
    flex-shrink:0;

    background:var(--green-deep);
    border-radius:0 28px 28px 0;

    display:flex;
    flex-direction:column;

    padding:24px 20px;
    color:#fff;
}

.sidebar-brand{
    display:flex;
    align-items:center;
    gap:10px;

    margin-bottom:38px;
}
.sidebar-brand img{
    width:34px;
    height:40px;
    object-fit:contain;
    flex-shrink:0;
}
.sidebar-brand span{
    font-size:12px;
    font-weight:500;
    line-height:1.35;
}

.sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:19px;
}
.sidebar-link{
    display:flex;
    align-items:center;
    gap:11px;

    font-size:13px;
    font-weight:400;
    line-height:1.3;
    color:rgba(255,255,255,.85);
}
.sidebar-link.active{
    font-weight:700;
    color:#fff;
}
.sidebar-link svg{flex-shrink:0;width:15px;height:15px;}

.sidebar-admin{
    margin-top:auto;
    display:flex;
    align-items:center;
    gap:10px;

    font-size:13px;
    font-weight:600;
    color:#fff;
}
.sidebar-admin svg{width:17px;height:17px;}

/* ---------- MAIN CONTENT ---------- */
.main-content{
    flex:1;
    padding:28px 34px 40px;
    min-width:0;
}

.page-title{
    font-size:24px;
    font-weight:600;
    margin-bottom:20px;
}

/* ---------- FORM PANEL (Pembayaran Denda) ---------- */
.form-panel{
    background:var(--mint);
    border-radius:18px;
    padding:20px 22px 24px;

    display:flex;
    flex-direction:column;
    gap:16px;

    margin-bottom:20px;
}

.field-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.field{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.field label{
    font-size:13px;
    font-weight:500;
}
.field input,
.field select{
    height:40px;

    background:#fff;
    border:1px solid rgba(0,0,0,.2);
    border-radius:10px;

    padding:0 14px;

    font-family:inherit;
    font-size:13px;
    color:var(--text-dark);
    outline:none;
}
.field input:focus,
.field select:focus{
    border-color:var(--green-deep);
}
.field select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230e0e0e' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 14px center;
    cursor:pointer;
}

/* ---------- ACTIONS (Batal / Simpan) ---------- */
.actions{
    display:flex;
    justify-content:flex-end;
    gap:14px;
    margin-top:4px;
}
.modal-btn{
    flex:0 0 auto;
    min-width:130px;
    height:42px;

    border-radius:22px;

    font-size:14px;
    font-weight:600;

    display:flex;
    align-items:center;
    justify-content:center;
}
.modal-btn.outline{
    background:#fff;
    border:1px solid rgba(0,0,0,.25);
    color:var(--text-dark);
}
.modal-btn.outline:hover{
    background:rgba(0,0,0,.05);
}
.modal-btn.filled{
    background:var(--green-deep);
    color:#fff;
}
.modal-btn.filled:hover{
    background:var(--green-dark);
}

/* ---------- TABLE PANEL (Pembayaran Hari Ini) ---------- */
.table-panel{
    background:var(--mint);
    border-radius:18px;
    padding:20px 22px;
}

.section-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:18px;
}

.fine-table{
    width:100%;
    border-collapse:collapse;
}
.fine-table thead th{
    text-align:left;
    font-size:13px;
    font-weight:400;

    padding-bottom:12px;
    border-bottom:1px solid rgba(0,0,0,.2);
}
.fine-table thead th:first-child{padding-left:4px;}
.fine-table thead th:last-child{text-align:right;}
.fine-table tbody td{
    font-size:13px;
    text-align:left;
    padding:11px 4px;
    border-bottom:1px solid rgba(0,0,0,.12);
    vertical-align:middle;
}
.fine-table tbody td:last-child{text-align:right;}
.fine-table tbody tr:last-child td{
    border-bottom:none;
}

.status-tag{
    font-weight:500;
    color:var(--text-dark);
}
.status-tag.paid{
    color:var(--green-deep);
    font-weight:600;
}
.status-tag.unpaid{
    color:var(--red-late);
    font-weight:600;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1100px){
    .field-row{grid-template-columns:1fr;}
    .fine-table{display:block;overflow-x:auto;white-space:nowrap;}
}
@media (max-width:900px){
    .app{flex-direction:column;}
    .sidebar{
        width:100%;
        border-radius:0 0 28px 28px;
        flex-direction:row;
        align-items:center;
        flex-wrap:wrap;
        gap:16px;
    }
    .sidebar-nav{flex-direction:row;flex-wrap:wrap;}
    .sidebar-admin{margin-top:0;}
    .actions{flex-direction:column;}
    .actions .modal-btn{width:100%;min-width:0;}
}