.dashicons::before {
    font-size: 20px;
}

.aerp-hrm-task-form textarea {
    resize: vertical !important;
    max-width: 100% !important;
}
.aerp-hrm-task-form input[type="month"] {
    padding: 10px !important;
    margin-top: 6px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}
.aerp-hrm-task-form select,
.aerp-hrm-task-form textarea,
.aerp-hrm-task-form input[type="text"],
.aerp-hrm-task-form input[type="datetime-local"],
.aerp-hrm-task-form input[type="date"],
.aerp-hrm-task-form input[type="number"] {
    width: 100% !important;
    padding: 10px !important;
    margin-top: 6px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}

.aerp-hrm-task-filter-form button,
.aerp-hrm-task-form.button,
.aerp-hrm-task-form button {
    padding: 10px 22px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
}

.aerp-hrm-task-form button.button-submit {
    margin-top: 12px !important;
}

.aerp-hrm-task-add-section {
    margin-top: 40px !important;
}

.aerp-hrm-task-section-title {
    font-size: 20px !important;
    font-weight: bold !important;
    margin: 20px 0 !important;
}

.aerp-hrm-task-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999 !important;
    max-width: 100vw;
}

.aerp-hrm-task-popup.active {
    display: flex !important;
}

.aerp-hrm-task-popup-inner {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 500px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    animation: fadeIn 0.3s ease !important;
}

.aerp-hrm-task-popup-close {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #888 !important;
    cursor: pointer !important;
    transition: 0.2s !important;
}

.aerp-hrm-task-popup-close:hover {
    color: #111 !important;
    transform: scale(1.1) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.aerp-hrm-custom-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: white
        url('data:image/svg+xml;utf8,<svg fill="%2364748b" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
        no-repeat right 12px center !important;
    background-size: 16px 16px !important;
    padding-right: 36px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    height: 42px !important;
    font-size: 15px !important;
    transition: 0.2s !important;
}

.aerp-hrm-toast {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: #2563eb !important;
    color: #fff !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 14px !important;
    animation: fadeInToast 0.3s ease !important;
}

.aerp-hrm-toast.warning {
    background: #fbbf24 !important;
}
.aerp-hrm-toast.error {
    background: #ef4444 !important;
}

.aerp-hrm-toast button {
    padding: 0 !important;
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    font-size: 16px !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
}

.aerp-hrm-toast button:hover {
    color: #fff !important;
    opacity: 1 !important;
}

@keyframes fadeInToast {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aerp-hrm-task-filter-form {
    padding: 20px 25px;
    justify-content: end !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    border-radius: 10px !important;
}

.aerp-hrm-task-filter-form input[type="text"],
.aerp-hrm-task-filter-form select {
    padding: 10px 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    width: 200px !important;
    max-width: 100% !important;
}

.aerp-hrm-task-filter-form input[type="text"]:focus,
.aerp-hrm-task-filter-form select:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

.aerp-hrm-task-filter-form button {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .aerp-hrm-task-filter-form {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    /* .aerp-hrm-task-filter-form input[type="text"]{
        width: 94% !important;
    } */
    .aerp-hrm-task-filter-form input[type="text"],
    .aerp-hrm-task-filter-form select,
    .aerp-hrm-task-filter-form button {
        width: 100% !important;
    }
}

.profile-card {
    grid-column: 1 / -1;
    padding-bottom: 0 !important;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}
.profile-info {
    flex: 1;
}
.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.aerp-profile-meta {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.text-primary {
    color: #2563eb !important;
}
.text-total {
    color: #1e40af !important;
    font-size: 1.3em;
}
/* Responsive */
@media (max-width: 700px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Base Styles */
.aerp-hrm-dashboard {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}
.aerp-hrm-dashboard h1,
.aerp-hrm-dashboard h2,
.aerp-hrm-dashboard h3 {
    color: #1e293b !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}
.aerp-hrm-dashboard h1 {
    font-size: 28px !important;
}
.aerp-hrm-dashboard h2 {
    font-size: 18px !important;
}
.aerp-hrm-dashboard h3 {
    font-size: 15px !important;
}
/* Header Profile */
.aerp-profile-header {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.aerp-profile-avatar {
    margin-right: 25px;
}

.aerp-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.aerp-profile-info h1 {
    margin: 0;
    font-size: 28px;
    color: #1e293b;
}

.aerp-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    color: #64748b;
}

.aerp-profile-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.aerp-profile-meta i {
    font-size: 16px;
    color: #64748b;
}
/* .dashicons:before{
    font-size: large;
} */

.aerp-profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #64748b;
    font-size: 14px;
}

.aerp-profile-contact a {
    color: #3b82f6;
    text-decoration: none;
}

.aerp-profile-contact a:hover {
    text-decoration: underline;
}

/* Cards */
.aerp-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
/* .aerp-card.attendance-card{
    padding: 20px;
} */
.aerp-card.aerp-task-list {
    box-shadow: none !important;
    margin-bottom: 0 !important;
}
.aerp-card-header {
    padding: 20px 25px;
    /* border-bottom: 1px solid #f1f5f9; */
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.aerp-card-header h2 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.aerp-card-header h2 i {
    color: #3b82f6;
}

/* Salary Overview */
.aerp-salary-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .aerp-salary-overview {
        grid-template-columns: 1fr;
    }
}

.aerp-salary-summary {
    padding-bottom: 20px;
}

.aerp-salary-month-form {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: end;
    padding: 20px;
}

.aerp-salary-month-form .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aerp-salary-month-form label {
    font-size: 14px;
    color: #64748b;
}

.aerp-salary-month-form input[type="month"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.aerp-salary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px 20px;
}

.aerp-stat-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.aerp-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.aerp-stat-icon.bg-blue {
    background: #3b82f6;
}

.aerp-stat-icon.bg-green {
    background: #10b981;
}

.aerp-stat-icon.bg-orange {
    background: #f97316;
}

.aerp-stat-icon.bg-teal {
    background: #009688;
}

.aerp-stat-icon.bg-purple {
    background: #8b5cf6;
}

.aerp-stat-info {
    flex: 1;
}

.aerp-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 3px;
}

.aerp-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.aerp-salary-total-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    margin: 0 20px;
}

.aerp-total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.aerp-total-item:first-child {
    border-bottom: 1px dashed #e2e8f0;
}

.aerp-total-value {
    font-weight: 600;
    font-size: 16px;
}

.aerp-total-value.positive {
    color: #10b981;
}

.aerp-total-value.highlight {
    color: #1d4ed8;
    font-size: 18px;
}

/* Salary Details */
.aerp-salary-details {
    padding-bottom: 20px;
}

.aerp-detail-sections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 900px) {
    .aerp-detail-sections {
        grid-template-columns: 1fr;
    }
}

.aerp-detail-section h3 {
    margin: 0 0 15px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.aerp-detail-section h3 i {
    font-size: 14px;
}

.aerp-detail-list {
    list-style: none;
    padding: 0 10px !important;
    margin: 0;
}

.aerp-detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f1f5f9;
}

.aerp-detail-list li:last-child {
    border-bottom: none;
}

.aerp-text-success {
    color: #10b981 !important;
}

.aerp-text-danger {
    color: #ef4444 !important;
}

.aerp-text-info {
    color: #3b82f6 !important;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Calculation Results */
.aerp-salary-calculation {
    padding-bottom: 20px;
}

.aerp-calculation-results {
    padding: 20px;
}

.aerp-result-section {
    margin-bottom: 25px;
}

.aerp-result-section h3 {
    margin: 0 0 15px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.aerp-result-section h3 i {
    font-size: 14px;
    color: #64748b;
}

.aerp-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.aerp-result-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 15px;
}

.aerp-result-item span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.aerp-result-item strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
}

.aerp-result-totals {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
}

/* Cost Breakdown */
.aerp-cost-breakdown {
    padding-bottom: 20px;
}

.aerp-cost-items {
    padding: 20px;
    max-height: 400px;
    overflow-y: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.aerp-cost-items::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.aerp-cost-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.aerp-cost-item:last-child {
    border-bottom: none;
}

.aerp-cost-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.aerp-cost-item.positive .aerp-cost-icon {
    background: #ecfdf5;
    color: #10b981;
}

.aerp-cost-item.negative .aerp-cost-icon {
    background: #fef2f2;
    color: #ef4444;
}

.aerp-cost-details {
    flex: 1;
}

.aerp-cost-details span {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 3px;
}

.aerp-cost-details strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.aerp-cost-item.positive .aerp-cost-details strong {
    color: #10b981;
}

.aerp-cost-item.negative .aerp-cost-details strong {
    color: #ef4444;
}

/* Rewards & Fines */
.aerp-rewards-fines {
    padding-bottom: 20px;
}

.aerp-rf-tabs {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    padding: 0 20px;
}

.aerp-rf-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aerp-rf-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.aerp-rf-content {
    padding: 20px;
    display: none;
}

.aerp-rf-content.active {
    display: block;
}

.aerp-rf-items {
    max-height: 400px;
    overflow-y: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.aerp-rf-items::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.aerp-rf-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.aerp-rf-item:last-child {
    border-bottom: none;
}

.aerp-rf-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.aerp-rf-item.positive .aerp-rf-icon {
    background: #ecfdf5;
    color: #10b981;
}

.aerp-rf-item.negative .aerp-rf-icon {
    background: #fef2f2;
    color: #ef4444;
}

.aerp-rf-details {
    flex: 1;
}

.aerp-rf-amount {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}

.aerp-rf-item.positive .aerp-rf-amount {
    color: #10b981;
}

.aerp-rf-item.negative .aerp-rf-amount {
    color: #ef4444;
}

.aerp-rf-reason {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 5px;
}

.aerp-rf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
}

.aerp-rf-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aerp-rf-meta i {
    font-size: 12px;
}

/* Salary Timeline */
.aerp-salary-timeline {
    padding-bottom: 20px;
}

.aerp-timeline-container {
    padding: 20px;
    max-height: 400px;
    overflow-y: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.aerp-timeline-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.aerp-timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 25px;
}

.aerp-timeline-item:last-child {
    margin-bottom: 0;
}

.aerp-timeline-date {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
}

.aerp-timeline-content {
    display: flex;
}

.aerp-timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #dbeafe;
}

.aerp-timeline-info {
    flex: 1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 15px;
}

.aerp-timeline-salary {
    font-weight: 500;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aerp-timeline-allowance {
    font-size: 13px;
    color: #64748b;
    margin-left: 10px;
}

/* Quick Links */
.aerp-main-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
    padding: 0 10px;
    position: relative;
}

.aerp-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 16px 12px;
    color: #1a2233;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.18s;
    min-width: 80px;
    flex: 1 1 auto;
    max-width: 250px;
}

.aerp-menu-item .aerp-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: #fff;
}

.aerp-menu-text {
    text-align: center;
    word-break: break-word;
}

.aerp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2179c4;
    padding: 10px;
}

/* Màu sắc giữ nguyên như cũ */
.aerp-menu-icon.bg-blue {
    background: #2179c4;
}

.aerp-menu-icon.bg-green {
    background: #1abc9c;
}

.aerp-menu-icon.bg-orange {
    background: #f39c12;
}

.aerp-menu-icon.bg-red {
    background: #e74c3c;
}

.aerp-menu-item.active,
.aerp-menu-item:hover {
    background: #e9f2fa;
    color: #2179c4;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.13);
}

/* Responsive styles */
@media (max-width: 768px) {
    .aerp-main-menu {
        padding: 0 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .aerp-main-menu::-webkit-scrollbar {
        display: none;
    }

    .aerp-menu-item {
        min-width: 70px;
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .aerp-menu-item .aerp-menu-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .aerp-main-menu {
        position: relative;
        flex-direction: column;
        gap: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
    }
    .aerp-main-menu.active {
        max-height: 600px;
    }

    .aerp-menu-item {
        flex-direction: row;
        max-width: 100%;
        padding: 12px 16px;
        gap: 12px;
        align-items: center;
        text-align: left;
    }

    .aerp-menu-item .aerp-menu-icon {
        margin-bottom: 0;
    }

    .aerp-mobile-toggle {
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #2179c4;
        color: white;
        border-radius: 8px;
        width: 50px;
        height: 50px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
}
/* Popup */
.aerp-popup {
    max-width: 100vw !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.aerp-hrm-task-popup h1,
.aerp-hrm-task-popup h2,
.aerp-hrm-task-popup h3,
.aerp-popup h1,
.aerp-popup h2,
.aerp-popup h3 {
    color: #1e293b !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}
.aerp-hrm-task-popup h1,
.aerp-popup h1 {
    font-size: 28px !important;
}
.aerp-hrm-task-popup h2,
.aerp-popup h2 {
    font-size: 18px !important;
}
.aerp-hrm-task-popup h3,
.aerp-popup h3 {
    font-size: 15px !important;
}

.aerp-popup.active {
    display: flex;
}

.aerp-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.aerp-popup-content {
    margin: 50px auto;
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: popupFadeIn 0.3s ease;
}

.aerp-popup-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aerp-popup-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aerp-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 5px;
    line-height: 1;
}

.aerp-popup-body {
    padding: 20px;
    overflow: hidden;
}

/* Form Styles */
.aerp-form .form-group {
    margin-bottom: 20px;
}

.aerp-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aerp-form label i {
    font-size: 14px;
    color: #64748b;
}

.aerp-form select,
.aerp-form input[type="text"],
.aerp-form input[type="number"],
.aerp-form input[type="date"],
.aerp-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    background-color: #fff;
}

.aerp-form select:focus,
.aerp-form input[type="text"]:focus,
.aerp-form input[type="number"]:focus,
.aerp-form input[type="date"]:focus,
.aerp-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.aerp-form textarea {
    min-height: 100px;
    resize: vertical;
}

.aerp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

/* Buttons */
.aerp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 8px;
}

.aerp-btn-primary {
    background: #3b82f6;
    color: white;
}

.aerp-btn-primary:hover {
    background: #2563eb;
    color: #fff;
}
.aerp-task-update-status-btn,
.aerp-btn-secondary {
    background: #e1e5e9;
    color: #64748b;
}

.aerp-btn-secondary:hover,
.aerp-task-update-status-btn:hover {
    background: #3b82f6;
    color: #fff;
}
.aerp-btn-danger:hover {
    background: #ef4444;
    color: #fff;
}
/* No Data */
.aerp-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.aerp-no-data i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.aerp-no-data p {
    margin: 0;
    font-size: 14px;
}

/* Notices */
.aerp-notice {
    padding: 12px 20px;
    margin: 0 20px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aerp-notice.success {
    background: #ecfdf5;
    color: #065f46;
}

.aerp-notice.warning {
    background: #fffbeb;
    color: #92400e;
}

.aerp-notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aerp-notice-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 5px;
}

/* Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .aerp-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .aerp-profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .aerp-profile-meta,
    .aerp-profile-contact {
        justify-content: center;
    }

    .aerp-salary-month-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .aerp-form-actions {
        flex-direction: column;
    }

    .aerp-btn {
        width: 100%;
    }
}

/* Attendance Card */

.aerp-ratio-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aerp-ratio-selector select {
    flex: 1;
}

.aerp-ratio-selector input[type="number"] {
    width: 80px;
}

/* Attendance History */
.aerp-attendance-history {
    padding-bottom: 20px;
}

.aerp-attendance-list {
    max-height: 500px;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.aerp-attendance-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.aerp-attendance-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.aerp-attendance-item:hover {
    background: #f8fafc;
}

.aerp-attendance-item.off-day {
    opacity: 0.7;
}

.aerp-attendance-date {
    width: 60px;
    text-align: center;
    margin-right: 15px;
}

.aerp-attendance-day {
    font-size: 24px;
    font-weight: 600;
    color: #3b82f6;
}

.aerp-attendance-month {
    font-size: 12px;
    color: #64748b;
}

.aerp-attendance-info {
    flex: 1;
}

.aerp-attendance-type {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.aerp-attendance-ratio {
    font-size: 14px;
    color: #64748b;
}

.aerp-attendance-note {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.aerp-attendance-time {
    font-size: 14px;
    color: #64748b;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #ecfdf5;
    color: #065f46;
}

.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
}

/* aerp-pagination */
.aerp-pagination {
    display: flex;
    justify-content: center;
    /* margin-top: 20px; */
    padding: 0px 0px 0px 20px;
}

.aerp-pagination a,
.aerp-pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 4px;
    font-size: 14px;
}

.aerp-pagination a {
    background: #f1f5f9;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.aerp-pagination a:hover {
    background: #e2e8f0;
}

.aerp-pagination .current {
    background: #3b82f6;
    color: white;
}

.aerp-pagination .dots {
    background: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .aerp-attendance-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .aerp-attendance-date {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .aerp-attendance-day {
        font-size: 18px;
    }

    .aerp-attendance-time {
        align-self: flex-end;
        margin-top: 5px;
    }
}

/* Task List Styles */
.aerp-task-list {
    padding: 0;
}

.aerp-task-item {
    padding: 20px;
    border: 1px solid #f1f5f9;
    transition: background 0.2s;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.aerp-task-item:hover {
    background: #f8fafc;
}

.aerp-task-item.assigned {
    border-left: 4px solid #f59e0b;
}

.aerp-task-item.done {
    border-left: 4px solid #10b981;
}

.aerp-task-item.failed {
    border-left: 4px solid #ef4444;
}

.aerp-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.aerp-card.aerp-task-header {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.aerp-task-title h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.aerp-task-meta {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 14px;
    color: #64748b;
}

.aerp-task-meta i {
    margin-right: 5px;
}

.aerp-task-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.aerp-task-content {
    margin-top: 15px;
}

.aerp-task-content p {
    margin: 0 0 15px 0;
    color: #334155;
    line-height: 1.6;
    word-break: break-all;
}

.aerp-task-status-form {
    margin: 15px 0;
}

.aerp-status-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aerp-status-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    font-size: 14px;
    width: fit-content;
}

/* Comment Styles */
.aerp-task-comments {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.aerp-task-comments h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aerp-comment-list {
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.aerp-comment-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.aerp-comment-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.aerp-comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.aerp-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.aerp-comment-author {
    font-weight: 500;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 4px;
}

.aerp-badge-admin {
    background: #ecfdf5;
    color: #065f46;
}

.aerp-badge-user {
    background: #dbeafe;
    color: #1d4ed8;
}

.aerp-comment-date {
    font-size: 12px;
    color: #64748b;
}

.aerp-comment-content {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.aerp-no-comments {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.aerp-no-comments i {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.aerp-comment-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    box-sizing: border-box;
    resize: vertical;
}

/* No Tasks */
.aerp-no-tasks {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.aerp-no-tasks i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.aerp-no-tasks p {
    margin: 0;
    font-size: 16px;
}
.aerp-popup.active {
    display: block;
}
/* Responsive */
@media (max-width: 768px) {
    .aerp-task-header {
        flex-direction: column;
    }

    .aerp-task-actions {
        margin-top: 10px;
        align-self: flex-end;
    }

    .aerp-status-form {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Login Card */
.aerp-card.login-card {
    max-width: 420px;
    margin: 60px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(52, 152, 219, 0.1), 0 1.5px 6px rgba(44, 62, 80, 0.06);
    padding: 36px 36px 28px 36px;
    font-family: "Segoe UI", "Roboto", Arial, sans-serif;
    border: 1px solid #eaf1fb;
    transition: box-shadow 0.2s;
}

.aerp-card.login-card:hover {
    box-shadow: 0 8px 40px rgba(52, 152, 219, 0.18), 0 2px 8px rgba(44, 62, 80, 0.1);
}

.aerp-card.login-card .card-header {
    text-align: center;
    margin-bottom: 28px;
}

.aerp-card.login-card .card-header h2 {
    font-weight: 700;
    color: #2179c4;
    margin: 0;
    letter-spacing: 1px;
}

.aerp-card.login-card .aerp-form {
    padding: 0;
}

.aerp-card.login-card .form-group {
    margin-bottom: 22px;
}

.aerp-card.login-card label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
    color: #2d3a4a;
    font-size: 1rem;
}

.aerp-card.login-card label .dashicons {
    font-size: 1.1em;
    color: #2179c4;
    margin-right: 5px;
    vertical-align: -2px;
}

.aerp-card.login-card input[type="text"],
.aerp-card.login-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dbeafe;
    border-radius: 8px;
    font-size: 1.08rem;
    background: #fafdff;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #2d3a4a;
    box-sizing: border-box;
}

.aerp-card.login-card input[type="text"]:focus,
.aerp-card.login-card input[type="password"]:focus {
    border-color: #2179c4;
    outline: none;
    box-shadow: 0 0 0 2px #e3f0fc;
    background: #fff;
}

.aerp-card.login-card .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.aerp-card.login-card .remember-me label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 400;
    color: #6b7a90;
    font-size: 0.98rem;
}

.aerp-card.login-card .remember-me input {
    margin-right: 8px;
}

.aerp-card.login-card .form-actions {
    margin-top: 10px;
}

.aerp-card.login-card .aerp-login-btn {
    width: 100%;
    background: linear-gradient(90deg, #2179c4 0%, #3498db 100%);
    color: #fff;
    border: none;
    padding: 13px 0;
    border-radius: 8px;
    font-size: 1.13rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.aerp-card.login-card .aerp-login-btn:hover {
    background: linear-gradient(90deg, #3498db 0%, #2179c4 100%);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.13);
}

.aerp-card.login-card .aerp-login-btn .dashicons {
    font-size: 1.2em;
    margin-right: 2px;
    vertical-align: -2px;
}

/* Toàn bộ thanh cuộn */
::-webkit-scrollbar {
  width: 10px;      /* scrollbar dọc */
  height: 10px;     /* scrollbar ngang */
}

/* Phần nền */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Phần kéo */
::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

/* Khi hover */
::-webkit-scrollbar-thumb:hover {
  background: #666;
}


#aerp-notification-container{
    top: 96px;
}
/* Responsive */
@media (max-width: 768px) {
    #aerp-notification-container{
        top: 160px;
    }
}
