.hrms-avatar {
    align-items: center;
    background: #2563eb;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;
}

.hrms-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hrms-avatar-lightbox-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: fit-content;
    line-height: 0;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.table-avatar .hrms-avatar-lightbox-trigger {
    float: left;
    margin-right: 10px;
}

.table-avatar .hrms-avatar-lightbox-trigger + a {
    display: block;
    padding-left: 0;
}

.table-avatar .hrms-avatar-lightbox-trigger .avatar {
    margin: 0;
}

.hrms-employee-detail-head .hrms-avatar-lightbox-trigger {
    margin: 0;
}

.hrms-avatar-lightbox-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 155, 68, 0.35);
    outline: 0;
}

.hrms-dp-lightbox .modal-body {
    align-items: center;
    background: #111;
    display: flex;
    height: min(68vh, 620px);
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    width: 100%;
}

.hrms-dp-lightbox [data-dp-lightbox-image] {
    border-radius: 8px;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

#dp_lightbox .modal-dialog {
    max-width: min(820px, calc(100vw - 32px));
    width: min(820px, calc(100vw - 32px));
}

#dp_lightbox .modal-content {
    max-height: calc(100vh - 32px);
}

.hrms-avatar-xs {
    font-size: 12px;
    height: 32px;
    min-width: 32px;
    width: 32px;
}

.hrms-avatar-header {
    font-size: 12px;
    height: 32px;
    min-width: 32px;
    width: 32px;
}

.hrms-avatar-profile {
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    font-size: 34px;
    height: 120px;
    min-width: 120px;
    width: 120px;
}

.profile-img .hrms-avatar-profile {
    display: inline-flex;
}

.hrms-avatar-detail {
    font-size: 22px;
    height: 64px;
    min-width: 64px;
    width: 64px;
}

.hrms-employee-detail-head {
    align-items: center;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 18px;
}

.hrms-employee-detail-title {
    min-width: 0;
}

.hrms-employee-detail-grid {
    clear: both;
    row-gap: 4px;
}

.hrms-employee-detail-grid p {
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.profile-avatar-control {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    position: relative;
}

.profile-avatar-control > [data-profile-avatar] {
    border-radius: 50%;
    display: inline-flex;
}

.profile-avatar-edit {
    align-items: center;
    background: rgba(0, 0, 0, 0.58);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.profile-avatar-control:hover .profile-avatar-edit,
.profile-avatar-edit:focus-visible {
    opacity: 1;
}

.profile-avatar-edit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.header .user-img {
    align-items: center;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-right: 6px;
    min-width: 34px;
    position: relative;
    vertical-align: middle;
    width: 34px;
}

.header .user-img .hrms-avatar-header {
    display: inline-flex;
    flex: 0 0 34px;
    height: 34px;
    line-height: 34px;
    min-width: 34px;
    width: 34px;
}

.header .user-img .hrms-avatar-header img {
    border-radius: 50%;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.header .user-img > img {
    border-radius: 50%;
    display: block;
    height: 34px;
    object-fit: cover;
    width: 34px;
}

.header .user-img .status {
    bottom: -1px;
    right: 0;
    z-index: 2;
}

.header .user-menu.nav > li > a.hrms-notification-toggle {
    min-width: 48px;
    padding: 0 14px;
    position: relative;
    text-align: center;
}

.header .user-menu.nav > li > a.hrms-notification-toggle .hrms-notification-count {
    align-items: center;
    background-color: #7460ee;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    height: 18px;
    justify-content: center;
    line-height: 18px;
    min-width: 18px;
    padding: 0 5px;
    position: absolute;
    right: 4px;
    top: 10px;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table,
.table-responsive > table {
    min-width: 760px;
}

.dropdown-menu {
    z-index: 3000;
}

.hrms-floating-dropdown {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    margin: 0 !important;
    z-index: 5000 !important;
}

.hrms-notification-unread > .dropdown-item {
    background: #fff8f0;
}

.hrms-notification-read > .dropdown-item {
    opacity: 0.72;
}

.hrms-notification-mark {
    color: #ff9b44;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.hrms-status-badge {
    border-radius: 999px;
    color: #fff !important;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    text-transform: capitalize;
}

.hrms-status-success { background: #28a745; }
.hrms-status-warning { background: #ff9b44; }
.hrms-status-danger { background: #e63c3c; }
.hrms-status-info { background: #2563eb; }
.hrms-status-secondary { background: #6c757d; }

.hrms-time-field .form-control {
    background: #fff;
}

.hrms-time-field .input-group-text {
    background: #fff;
    border-color: #e3e3e3;
    color: #555;
    cursor: pointer;
}

.bootstrap-datetimepicker-widget .timepicker-picker table td {
    height: 34px;
    line-height: 34px;
}

.hrms-stepper {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.hrms-step {
    align-items: center;
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    color: #555;
    display: inline-flex;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    padding: 10px;
}

.hrms-step span {
    align-items: center;
    background: #ddd;
    border-radius: 50%;
    color: #555;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.hrms-step.is-active {
    background: #fff4ec;
    border-color: #ff9b44;
    color: #ff7a00;
}

.hrms-step.is-active span,
.hrms-step.is-complete span {
    background: #ff9b44;
    color: #fff;
}

.hrms-step-panel {
    display: none;
}

.hrms-step-panel.is-active {
    display: block;
}

.hrms-step-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.hrms-alert-container {
    bottom: 92px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 32px));
    pointer-events: none;
    position: fixed;
    right: 28px;
    z-index: 20000;
}

.hrms-floating-alert {
    align-items: flex-start;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    color: #fff;
    display: flex;
    font-weight: 600;
    gap: 14px;
    justify-content: space-between;
    margin: 0;
    min-width: 280px;
    opacity: 1;
    padding: 14px 16px;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 150ms ease, transform 150ms ease;
}

.hrms-floating-alert.is-hiding {
    opacity: 0;
    transform: translateY(8px);
}

.hrms-floating-alert.alert-success { background: #28a745; }
.hrms-floating-alert.alert-danger { background: #dc3545; }
.hrms-floating-alert.alert-warning {
    background: #ff9b44;
    color: #1f1f1f;
}
.hrms-floating-alert.alert-info { background: #2563eb; }
.hrms-floating-alert.alert-secondary { background: #6c757d; }

.hrms-alert-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin: -2px -2px 0 0;
    opacity: 0.85;
    padding: 0;
}

.hrms-alert-close:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .hrms-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hrms-alert-container {
        bottom: 86px;
        left: 16px;
        max-width: none;
        right: 16px;
    }

    .hrms-floating-alert {
        min-width: 0;
        width: 100%;
    }

    #dp_lightbox .modal-dialog {
        margin: 12px auto;
        max-width: calc(100vw - 24px);
        width: calc(100vw - 24px);
    }

    .hrms-dp-lightbox .modal-body {
        height: min(62vh, 460px);
        padding: 12px;
    }
}
