/* =========================
   RAKYAT.EPARIT.COM
   RESPONSIVE CSS PRO
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    overflow-x:hidden;
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f7fb;
    color:#172033;
}

/* HEADER */
.top{
    background:linear-gradient(135deg,#0b6b3a,#13a05f);
    color:#fff;
    padding:30px 20px;
}

.wrap{
    width:100%;
    max-width:1100px;
    margin:auto;
}

.brand{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo{
    width:66px;
    height:66px;
    border-radius:18px;
    background:#fff;
    color:#0b6b3a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:24px;
    flex-shrink:0;
}

.top h1{
    font-size:30px;
    margin:0;
    line-height:1.2;
}

.top p{
    margin-top:8px;
    opacity:.95;
}

/* NAVIGATION */
.nav{
    background:#fff;
    box-shadow:0 4px 18px rgba(0,0,0,.06);
    position:sticky;
    top:0;
    z-index:999;
}

.nav .wrap{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    padding:12px 18px;
}

.nav a{
    text-decoration:none;
    color:#0b6b3a;
    font-weight:700;
    padding:10px 14px;
    border-radius:999px;
}

.nav a:hover,
.btn{
    background:#0b6b3a;
    color:#fff !important;
}

/* HERO */
.hero{
    padding:35px 18px;
}

/* GRID */
.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.card{
    background:#fff;
    border-radius:22px;
    padding:22px;
    box-shadow:0 8px 25px rgba(0,0,0,.07);
    border:1px solid #eef1f5;
}

.card h3{
    margin-bottom:10px;
}

.card .icon{
    font-size:38px;
    margin-bottom:10px;
}

/* BUTTON */
.btn{
    display:inline-block;
    padding:12px 18px;
    border-radius:12px;
    text-decoration:none;
    border:none;
    cursor:pointer;
    font-weight:800;
}

.btn2{
    background:#eef8f2;
    color:#0b6b3a !important;
}

/* FORM */
.formbox{
    max-width:850px;
    margin:28px auto;
    background:#fff;
    padding:26px;
    border-radius:24px;
    box-shadow:0 8px 25px rgba(0,0,0,.07);
}

label{
    display:block;
    margin-top:12px;
    margin-bottom:5px;
    font-size:13px;
    font-weight:700;
}

.input,
select,
textarea{
    width:100%;
    padding:13px;
    border:1px solid #d9e0ea;
    border-radius:13px;
    font-size:15px;
}

textarea{
    min-height:120px;
}

/* ROW */
.row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.row.four{
    grid-template-columns:repeat(4,1fr);
}

/* ALERT */
.alert{
    padding:14px 16px;
    border-radius:14px;
    margin:15px 0;
}

.success{
    background:#e9fff1;
    border:1px solid #bdf0d0;
    color:#075c31;
}

/* TABLE */
.table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.table th,
.table td{
    padding:11px;
    border-bottom:1px solid #eee;
    text-align:left;
    font-size:14px;
}

.badge{
    background:#e9fff1;
    color:#075c31;
    padding:6px 10px;
    border-radius:999px;
    font-weight:800;
}

/* PRINT */
.print-head{
    border-bottom:3px solid #0b6b3a;
    padding-bottom:12px;
    margin-bottom:20px;
}

.print-box{
    border:1px solid #ddd;
    border-radius:12px;
    min-height:110px;
    padding:14px;
}

.sign-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    margin-top:30px;
}

.sign-grid hr{
    border:0;
    border-top:1px solid #333;
}

.line-space{
    min-height:70px;
}

.action-table th{
    width:30%;
}

.footer{
    text-align:center;
    padding:25px;
    color:#667;
}

/* =========================
   MOBILE
========================= */

@media(max-width:850px){

    .brand{
        flex-direction:column;
        text-align:center;
    }

    .top h1{
        font-size:22px;
    }

    .nav .wrap{
        overflow-x:auto;
        flex-wrap:nowrap;
        white-space:nowrap;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .row{
        grid-template-columns:1fr;
    }

    .row.four{
        grid-template-columns:1fr 1fr;
    }

    .sign-grid{
        grid-template-columns:1fr;
    }

    .card{
        padding:18px;
    }

    .formbox{
        margin:15px;
        padding:18px;
    }

    .compact th,
    .compact td{
        display:block;
        width:100%;
    }

    .compact tr{
        display:block;
        margin-bottom:10px;
        border:1px solid #eee;
        border-radius:12px;
        overflow:hidden;
    }
}

/* PHONE */
@media(max-width:480px){

    .top{
        padding:20px 15px;
    }

    .top h1{
        font-size:20px;
    }

    .top p{
        font-size:13px;
    }

    .logo{
        width:55px;
        height:55px;
        font-size:20px;
    }

    .hero{
        padding:20px 12px;
    }

    .card{
        padding:16px;
    }

    .btn{
        width:100%;
        text-align:center;
    }

    .row.four{
        grid-template-columns:1fr;
    }

    input,
    textarea,
    select{
        font-size:16px;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }
}

/* PRINT */
@media print{

    @page{
        size:A4;
        margin:10mm;
    }

    .nav,
    .footer,
    .btn,
    .no-print{
        display:none !important;
    }

    body{
        background:#fff;
    }

    .formbox,
    .card{
        box-shadow:none;
    }

    .print-form{
        font-size:12px;
    }

    .print-form h2{
        font-size:18px;
    }

    .print-form h3{
        font-size:14px;
    }

    .table th,
    .table td{
        padding:6px;
        font-size:12px;
    }
}