: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 (Pengembalian) ---------- */
.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{
    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{
    border-color:var(--green-deep);
}

/* ---------- 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 (Pengembalian Hari Ini) ---------- */
.table-panel{
    background:var(--mint);
    border-radius:18px;
    padding:20px 22px;
}

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

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

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

.status-tag{
    display:inline-flex;
    align-items:center;

    padding:5px 18px;
    border-radius:20px;

    font-size:12px;
    font-weight:600;
    color:#fff;
}
.status-tag.ontime{
    background:var(--green-deep);
}
.status-tag.late{
    background:var(--red-late);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1100px){
    .field-row{grid-template-columns:1fr;}
    .return-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;}
}