/* Main Container - Flexible Direction */
.afb-emp-container {
    max-width: 1400px;
    margin: 30px auto;
    font-family: inherit;
}

/* RTL Specific Styles */
.afb-emp-container[dir="rtl"] .afb-emp-manager {
    border-right: 5px solid #2a5298;
    border-left: none;
}

.afb-emp-container[dir="rtl"] .afb-emp-manager-badge {
    margin-left: 0;
    margin-right: 0;
}

.afb-emp-container[dir="rtl"] .afb-position-icon {
    margin-left: 8px;
    margin-right: 0;
}

.afb-emp-container[dir="rtl"] .afb-emp-admin-badge {
    margin-right: 8px;
    margin-left: 0;
}

/* LTR Specific Styles */
.afb-emp-container[dir="ltr"] .afb-emp-manager {
    border-left: 5px solid #2a5298;
    border-right: none;
}

.afb-emp-container[dir="ltr"] .afb-position-icon {
    margin-right: 8px;
    margin-left: 0;
}

.afb-emp-container[dir="ltr"] .afb-emp-admin-badge {
    margin-left: 8px;
    margin-right: 0;
}

/* Header */
.afb-emp-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 30px;
    color: white;
}

.afb-emp-title h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 600;
	color: white;
}

.afb-emp-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: normal;
}

.afb-emp-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.afb-emp-stat {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
}

/* Manager Card */
.afb-emp-manager {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.afb-emp-manager-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    flex-shrink: 0;
}

.afb-emp-manager-info {
    flex: 1;
}

.afb-emp-manager-label {
    background: #e8f0fe;
    color: #2a5298;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.afb-emp-manager-info h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #1e3c72;
}

.afb-emp-manager-position {
    margin: 0;
    color: #666;
}

.afb-emp-manager-position i {
    margin-left: 8px;
}

/* RTL margin for manager position icon */
.afb-emp-container[dir="rtl"] .afb-emp-manager-position i {
    margin-left: 0;
    margin-right: 8px;
}

/* Filters */
.afb-emp-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    border: 1px solid #e9ecef;
}

.afb-emp-filter-group {
    flex: 1;
    min-width: 180px;
}

.afb-emp-filter-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.afb-emp-filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Table */
.afb-emp-table-wrapper {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.afb-emp-table-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.afb-emp-table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c72;
}

.afb-emp-table-title i {
    margin-left: 8px;
}

.afb-emp-container[dir="rtl"] .afb-emp-table-title i {
    margin-left: 0;
    margin-right: 8px;
}

.afb-emp-table-count {
    color: #666;
}

.afb-emp-badge {
    background: #2a5298;
    color: white;
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 600;
    margin-left: 5px;
}

.afb-emp-container[dir="rtl"] .afb-emp-badge {
    margin-left: 0;
    margin-right: 5px;
}

.afb-emp-table-responsive {
    overflow-x: auto;
}

.afb-emp-table {
    width: 100%;
    border-collapse: collapse;
}

.afb-emp-table th {
    background: #f1f3f5;
    padding: 12px 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.afb-emp-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.afb-emp-table tr:hover {
    background: #f8f9fa;
}

.afb-emp-name {
    font-weight: 600;
	font-size: 1rem
    color: #1e3c72;
}

.afb-emp-admin-badge {
    display: inline-block;
    margin-left: 8px;
    color: #2a5298;
    font-size: 12px;
}

.afb-emp-container[dir="rtl"] .afb-emp-admin-badge {
    margin-left: 0;
    margin-right: 8px;
}

.afb-position-icon {
    margin-right: 8px;
    font-size: 14px;
    width: 20px;
    display: inline-block;
    text-align: center;
}

.afb-emp-container[dir="rtl"] .afb-position-icon {
    margin-right: 0;
    margin-left: 8px;
}

.afb-emp-no-position {
    color: #999;
    font-style: italic;
}

/* Head of Records */
.afb-emp-head-records {
    background-color: #d1e7dd !important;
}

.afb-emp-head-records:hover {
    background-color: #b8dfc9 !important;
}

/* View Button */
.afb-emp-view {
    background: #e8f0fe;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    color: #2a5298;
    transition: all 0.2s;
}

.afb-emp-view:hover {
    background: #2a5298;
    color: white;
}

/* Empty State */
.afb-emp-empty {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.afb-emp-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* Error */
.afb-emp-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

/* Modal */
.afb-emp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afb-emp-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
}

.afb-emp-modal-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.afb-emp-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.afb-emp-modal-close {
    font-size: 24px;
    cursor: pointer;
}

.afb-emp-modal-body {
    padding: 20px;
}

.afb-emp-detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.afb-emp-detail-row:last-child {
    border-bottom: none;
}

.afb-emp-detail-label {
    width: 120px;
    font-weight: 600;
    color: #555;
}

.afb-emp-detail-value {
    flex: 1;
    color: #333;
}

/* RTL Modal Styles */
.afb-emp-modal-content[dir="rtl"] .afb-emp-detail-label {
    text-align: right;
}

.afb-emp-modal-content[dir="ltr"] .afb-emp-detail-label {
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .afb-emp-manager {
        flex-direction: column;
        text-align: center;
    }
    
    .afb-emp-detail-row {
        flex-direction: column;
    }
    
    .afb-emp-detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .afb-emp-filters {
        flex-direction: column;
    }
    
    .afb-emp-filter-group {
        width: 100%;
    }
    
    .afb-emp-table th,
    .afb-emp-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}