/*body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    color: #1F2937;
    padding-bottom: 50px;
}*/
.emp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 22px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap; /* stops "Register Employee" wrapping to 2 lines */
    border-radius: 8px;
}
/* --- Header --- */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 24px;
}

.page-title {
    color: #1F2937;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.page-subtitle {
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 4px;
}

/* --- Buttons --- */
.btn-register {
    background-color: #3B82F6;
    color: #ffffff;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

    .btn-register:hover {
        background-color: #2563EB;
    }

/* --- Top Filter Bar --- */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    background-color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.search-box {
    position: relative;
}

    .search-box.main-search {
        flex-grow: 1;
        max-width: 400px;
    }

    .search-box i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        font-size: 0.9rem;
    }

    .search-box input {
        padding-left: 36px;
        border: 1px solid transparent;
        border-radius: 8px;
        background-color: #F1F5F9;
        font-size: 0.85rem;
        padding-top: 10px;
        padding-bottom: 10px;
        width: 100%;
        color: #1F2937;
        transition: all 0.2s;
    }

        .search-box input:focus {
            border-color: #3B82F6;
            background-color: #ffffff;
            outline: none;
        }

.filter-selects {
    display: flex;
    gap: 16px;
}

select.form-inp {
    background-color: #F8FAFC;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #4B5563;
    width: 300px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
    font-weight: 500;
}

    select.form-inp:focus {
        border-color: #3B82F6;
        outline: none;
        background-color: #ffffff;
    }

/* --- Main Cards --- */
.main-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
/*    margin-bottom: 20px;*/
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0;
}

.search-box.small-search input {
    background-color: #F8FAFC;
    border: 1px solid #E5E7EB;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 250px;
}

/* --- Data Table --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th {
        background-color: #F3F4F6;
        color: #4B5563;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 14px 16px;
        border-bottom: 1px solid #E5E7EB;
        border-top: 1px solid #E5E7EB;
        text-align: left;
    }

        .data-table th:first-child {
            border-top-left-radius: 8px;
            border-left: 1px solid #E5E7EB;
        }

        .data-table th:last-child {
            border-top-right-radius: 8px;
            border-right: 1px solid #E5E7EB;
        }

    .data-table td {
        padding: 16px;
        border-bottom: 1px solid #F3F4F6;
        font-size: 0.85rem;
        color: #1F2937;
        font-weight: 500;
        vertical-align: middle;
    }

    .data-table tr:hover td {
        background-color: #F8FAFC;
    }

/* Avatars & Badges */
.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    vertical-align: middle;
}

.role-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.role-director {
    background-color: #E0E7FF;
    color: #4F46E5;
}

.role-vp {
    background-color: #FEE2E2;
    color: #DC2626;
}

.role-sm {
    background-color: #FEF3C7;
    color: #D97706;
}

.role-rm {
    background-color: #CCFBF1;
    color: #059669;
}

.role-mo {
    background-color: #FCE7F3;
    color: #DB2777;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    background-color: #6366F1; /* Purple Dot */
}

/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 10px;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #4B5563;
    font-weight: 500;
}

    .items-per-page select {
        border: 1px solid #E5E7EB;
        border-radius: 6px;
        padding: 6px 12px;
        font-size: 0.8rem;
        background-color: #ffffff;
    }

.pagination-controls {
    display: flex;
    gap: 6px;
}

.page-btn {
    border: 1px solid #E5E7EB;
    background-color: #ffffff;
    color: #4B5563;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

    .page-btn:hover:not(.ellipsis) {
        background-color: #F3F4F6;
    }

    .page-btn.active {
        background-color: #F3F4F6;
        color: #1F2937;
        font-weight: 700;
    }

    .page-btn.ellipsis {
        border: none;
        background: transparent;
        cursor: default;
    }

/* native: phone */
/* Phone-only (max-width 767.98px), scoped to the Employee Management page (.emp-page / .emp-modal)
   because this stylesheet is global. Desktop and tablet are untouched. */
@media (max-width: 767.98px) {
    /* Header actions (inside PageHeader) drop under the title as a two-column grid.
       PageHeader's own .shell-page-actions never shrinks, so the header must be allowed to wrap. */
    .emp-page .shell-page-header {
        flex-wrap: wrap;
    }

    .emp-page .shell-page-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 1 1 100%;
        min-width: 0;
        gap: 8px;
    }

    .emp-page .emp-action-btn {
        width: 100%;
        height: auto;
        min-height: var(--tap-min, 44px);
        padding: 8px 10px;
        font-size: 0.8rem;
        white-space: normal;
    }

    /* Filters: full-width, 44px, 16px text so iOS does not zoom on focus. */
    .emp-page .search-box input,
    .emp-page .form-inp {
        width: 100%;
        min-height: var(--tap-min, 44px);
        font-size: 16px;
    }

    /* Edit / delete icons in the table (tablet card mode uses CardActions instead). */
    .emp-page .action-icons .icon-edit,
    .emp-page .action-icons .icon-del {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    /* Bulk-upload modal slides up as a bottom sheet. */
    .emp-modal .modal-dialog {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        max-width: none;
        width: 100%;
        align-items: flex-end;
        min-height: 0;
    }

    .emp-modal .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: calc(100vh - 48px);
        max-height: calc(100dvh - 48px);
        overflow-y: auto;
        padding-bottom: var(--safe-bottom, 0px);
    }

    .emp-modal .modal-footer .btn {
        min-height: var(--tap-min, 44px);
    }
}

