body{
    margin:0;
    background:#f5f7fa;
    font-family:sans-serif;
}

.container{
    max-width:1100px;
    margin:auto;
    padding:20px;
}

/* TOPBAR */
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.topbar-actions{
    display:flex;
    gap:10px;
}

.btn-secondary{
    padding:8px 12px;
    background:#eee;
    border:none;
    border-radius:6px;
}

/* KPI */
.dashboard{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.kpi{
    flex:1;
    min-width:160px;
    background:#fff;
    padding:15px;
    border-radius:10px;
}

.kpi-label{
    font-size:12px;
    color:#666;
}

.kpi-value{
    font-size:18px;
    font-weight:bold;
}

.kpi-value.red{ color:#c0392b; }
.kpi-value.green{ color:#0a7a2f; }

/* BUTTON */
.btn-main{
    padding:10px 16px;
    background:#2271b1;
    color:#fff;
    border:none;
    border-radius:8px;
    margin:15px 0;
}

/* TABLE */
.table-wrap{
    max-height:400px;
    overflow:auto;
}

.pro-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.pro-table th,
.pro-table td{
    padding:12px;
    border-bottom:1px solid #eee;
}

.pro-table th{
    background:#f1f3f6;
    position:sticky;
    top:0;
}

.pro-table td:nth-child(3){
    text-align:right;
}

.actions{
    display:flex;
    justify-content:center;
    gap:5px;
}

.badge{
    padding:4px 8px;
    border-radius:6px;
    font-size:12px;
}

.green{background:#eaf8ea;color:#0a7a2f;}
.red{background:#ffe5e5;color:#a40000;}
.yellow{background:#fff8d9;color:#9a6a00;}

/* MODAL */
.modal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.4);
}

.modal-box{
    background:#fff;
    padding:20px;
    border-radius:10px;
    width:400px;
}

.sf-line{
    display:flex;
    gap:10px;
    margin-bottom:10px;
}

.sf-line label{
    width:130px;
}

.sf-line input,
.sf-line textarea,
.sf-line select{
    flex:1;
    padding:6px;
}

.sf-actions{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.sf-btn{
    padding:8px;
    border:none;
    border-radius:6px;
}

.sf-btn-save{ background:#2271b1; color:#fff; }
.sf-btn-close{ background:#ddd; }

/* USERS */
.user-row{
    display:flex;
    justify-content:space-between;
    margin:5px 0;
}