/* Tùy chỉnh Popup (Đăng nhập/Đăng ký, Thêm/Sửa/Xóa nhân viên) */
.um-auth-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.um-auth-popup.is-active {
    display: flex;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.um-auth-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.um-auth-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    z-index: 99999 !important;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
	pointer-events: auto;
}
.um-employee-popup-content {
	max-width: 900px;
}
.um-auth-popup-content h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.um-auth-popup-content .um-form-group {
    margin-bottom: 15px;
    text-align: left;
		position: relative;
	z-index: 99999 !important;
}

.um-auth-popup-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.um-auth-popup-content .um-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
}

.um-auth-popup-content button.primary, .um-submit-btn {
    background-color: #008000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.um-auth-popup-content button.primary:hover, .um-submit-btn:hover {
    background-color: #006400;
}

.um-auth-popup-content .um-auth-status {
    margin: 10px 0;
    min-height: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.um-auth-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    margin: 0;
    min-height: unset;
    padding: 0;
}

.um-auth-popup-close:hover {
    color: #333;
}

.um-auth-footer {
    margin-top: 10px;
    font-size: 14px;
}

.um-auth-footer a {
    color: #008000;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.um-auth-footer a:hover {
    color: #006400;
}


/* --- Giao diện Dashboard --- */
.user-manage-dashboard-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    font-family: Arial, sans-serif;
    min-height: 600px;
	overflow: hidden;
}

.um-dashboard-nav-container {
    flex-shrink: 0;
	flex-basis: 200px;
    border-right: 1px solid #e5e5e5;
}

.um-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:20px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.um-profile-avatar {
    width: 80px;
    height: 80px;
    background-color: #f1f1f1;
    border-radius: 50%;
}

.um-profile-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.um-dashboard-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.um-dashboard-menu li {
	margin: 0 !important;
}

.um-dashboard-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: background-color 0.2s;
}

.um-dashboard-menu li a:hover {
    background-color: #f5f5f5;
}

.um-dashboard-menu li.active a {
    background-color: #f1f1f1;
    color: #000;
    font-weight: bold;
}

.um-dashboard-content-container {
    flex-grow: 1;
    padding: 30px;
}

.um-dashboard-content-container h1 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.um-dashboard-tab-content h2 {
    font-size: 24px;
    color: #444;
    margin-bottom: 15px;
}

.um-profile-field, .um-ref-card {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.um-profile-field label {
    font-weight: bold;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.um-profile-field span {
    display: inline-block; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
}

.um-ref-card h3 {
    font-size: 20px;
    color: #006400;
    margin: 0 0 15px 0;
}

.um-ref-link-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.um-ref-link-display input[type=text] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
	margin: 0;
	height: 38px;
}

.um-ref-link-display button {
    padding: 10px 15px;
    cursor: pointer;
    background: #008000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s;
	margin: 0;
	text-wrap: nowrap;
	font-weight: 500;
	min-height: unset;
	line-height: normal;
	height: 38px;
	display: flex;
    align-items: center;
}

.um-ref-link-display button:hover {
    background-color: #006400;
}


/* --- Styling for Employee Management Tab --- */
.um-employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.um-employee-header h2 {
    margin: 0;
    border: none;
    padding: 0;
	width: fit-content;
}

.um-add-employee-btn {
    background-color: var(--primary-color);
    color: #fff !important;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
	text-wrap: nowrap;
}


.um-employee-table-container {
    overflow-x: auto;
}

.um-employee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 14px;
	white-space: nowrap;
}

.um-employee-table th, .um-employee-table td {
    padding: 0 15px !important;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
	height: 70px; 
	vertical-align: center;
}
.um-employee-table th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #333;
}

.um-employee-table tbody tr:hover {
    background-color: #fcfcfc;
}
.um-employee-table tbody tr:last-child td {
    border-bottom: none;
}

.um-employee-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.um-user-avatar {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.um-user-details {
    display: flex;
    flex-direction: column;
}

.um-user-name {
    font-weight: bold;
    color: #333;
}

.um-user-email {
    color: #777;
    font-size: 12px;
}

.um-status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}
.um-status-badge.active {
    background-color: #e6f7e6;
    color: #387038;
}
.um-status-badge.inactive {
    background-color: #fcebeb;
    color: #a94442;
}

.um-action-cell {
    width: 120px;
    text-align: center;
}

.um-action-btn {
    padding: 8px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1;
	margin: 0;
}

.um-edit-btn {
    background-color: #f1f1f1;
    color: #555;
}

.um-edit-btn:hover {
    background-color: #007bff;
    color: #fff;
}

.um-delete-btn {
    background-color: #f1f1f1;
    color: #555;
}

.um-delete-btn:hover {
    background-color: #dc3545;
    color: #fff;
}

.um-no-data {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}
@media(max-width:849px) {
	.user-manage-dashboard-wrapper {
		display: block;
		min-height: unset;
	}
	.um-dashboard-nav-container {
		display: flex;
		align-items:center;
		border-bottom: 1px solid #f1f1f1;
		justify-content: space-between;
	}
	.um-profile-header {
		display: block;
		padding: 10px;
		margin: 0;
		border: none;
	}
	.um-profile-avatar {
		width: 50px;
		height: 50px;
	}
	.um-dashboard-menu {
		display: flex;
	}
	.um-dashboard-menu li.active a {
		background: none;
	}
	.um-dashboard-content-container {
		padding: 20px 10px;
	}
	.um-employee-table{
		min-width: 900px;
		overflow: scroll;
	}
	.um-employee-header {
		gap: 10px;
		flex-wrap: wrap;
	}
}
@media(max-width: 549px) {
	.um-dashboard-nav-container {
		flex-direction: column;
	}
	.um-dashboard-tab-content h2 {
		font-size: 18px;
	}
	.um-dashboard-menu li a {
		padding: 10px;
	}
}