/* ===========================================================
   WMS-HR
   Version : 0.0.9
=========================================================== */


/* ===========================================================
   GLOBAL
=========================================================== */

html,
body {

    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size:14px;
    background:#f1f1f1;

}


/* ===========================================================
   HEADER
=========================================================== */

.w3-top .w3-bar {

    height:48px;
    line-height:48px;

}


/* ===========================================================
   SIDEBAR
=========================================================== */

.w3-sidebar {

    width:250px;
    background:#ffffff;

}


.w3-sidebar .w3-bar-item {

    font-weight:500;
    padding:12px 18px;

}


.w3-sidebar .w3-bar-item:hover {

    background:#f1f1f1;

}


/* ===========================================================
   MAIN
=========================================================== */

.w3-main {

    min-height:calc(100vh - 48px);

}



/* ===========================================================
   CARD
=========================================================== */

.card {

    background:#fff;

    border-radius:6px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}



/* ===========================================================
   TABLE
=========================================================== */

table {

    width:100%;

    border-collapse:collapse;

}


table th {

    background:#1976D2;

    color:#fff;

    text-align:left;

    padding:10px;

}


table td {

    padding:10px;

    border-bottom:1px solid #ddd;

}



/* ===========================================================
   FORM
=========================================================== */

input,
select,
textarea {

    width:100%;

}



/* ===========================================================
   BUTTON
=========================================================== */

.btn {

    min-width:100px;

}



/* ===========================================================
   FOOTER
=========================================================== */

footer {

    color:#666;

}



/* ===========================================================
   EMPLOYEE LIST
=========================================================== */


/* Header */

.employee-list-header {

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}



.employee-add-button {

    white-space:nowrap;

}



.employee-search {

    width:100%;

}




/* Desktop Table */

.employee-table-view {

    display:block;

}



.employee-table-wrapper {

    width:100%;

}



.employee-empty {

    text-align:center;

    padding:20px;

}



/* ===========================================================
   EMPLOYEE STATUS
=========================================================== */


.employee-status {

    display:inline-block;

    padding:4px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:bold;

}



.employee-status-active {

    background:#d9f7d9;

    color:#1b5e20;

}



.employee-status-inactive {

    background:#f8d7da;

    color:#721c24;

}




/* ===========================================================
   EMPLOYEE MOBILE CARD
=========================================================== */


.employee-card-view {

    display:none;

}



.employee-card {

    background:#ffffff;

    border:1px solid #ddd;

    border-radius:8px;

    padding:15px;

    margin-bottom:15px;

}



.employee-card-header {

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

}



.employee-card-number {

    font-weight:bold;

    margin-right:5px;

}



.employee-card-name {

    margin-top:8px;

    font-size:18px;

    font-weight:bold;

}



.employee-card-detail {

    margin-top:15px;

    line-height:1.8;

}



.employee-card-footer {

    margin-top:15px;

}



/* ===========================================================
   RESPONSIVE
=========================================================== */


@media(max-width:768px) {


    .employee-list-header {

        flex-direction:column;

        align-items:flex-start;

        gap:10px;

    }



    .employee-table-view {

        display:none;

    }



    .employee-card-view {

        display:block;

    }


}



@media(min-width:769px) {


    .employee-table-view {

        display:block;

    }



    .employee-card-view {

        display:none;

    }


}
/* ===========================================================
   PAYROLL COMPONENT
   =========================================================== */

.component-table-view {
    display: block;
    width: 100%;
}

.component-card-view {
    display: none;
}

.component-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.component-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.component-card-code {
    font-size: 13px;
    color: #666;
}

.component-card-name {
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
}

.component-card-detail {
    margin-top: 15px;
    line-height: 1.8;
}

.component-card-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.component-card-detail-label {
    color: #666;
}

.component-card-detail-value {
    text-align: right;
    font-weight: 500;
}

.component-card-footer {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.component-card-footer .w3-button {
    flex: 1;
    text-align: center;
}

.component-search {
    width: 100%;
}

.component-header {
    margin-bottom: 20px;
}

.component-header-title {
    margin: 0;
}

.component-header-subtitle {
    margin-top: 5px;
}

.component-add-button {
    white-space: nowrap;
}


/* ===========================================================
   MOBILE
   =========================================================== */

@media (max-width: 768px) {

    .component-table-view {
        display: none;
    }

    .component-card-view {
        display: block;
    }

    .component-header {
        display: block;
    }

    .component-header-title {
        font-size: 24px;
    }

    .component-add-button {
        display: block;
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    .component-search {
        margin-bottom: 5px;
    }

}


/* ===========================================================
   DESKTOP
   =========================================================== */

@media (min-width: 769px) {

    .component-table-view {
        display: block;
    }

    .component-card-view {
        display: none;
    }

}