/* Behavior and responsive details not provided by Bootstrap 3. */
#attendancePopup .modal-dialog,
#employeeExpiringModal .modal-dialog {
    max-width: 560px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform .25s ease, opacity .25s ease;
}

#attendancePopup.in .modal-dialog,
#employeeExpiringModal.in .modal-dialog {
    opacity: 1;
    transform: translateY(0);
}

#attendancePopup .modal-content,
#employeeExpiringModal .modal-content {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#attendancePopup .modal-header,
#employeeExpiringModal .modal-header {
    color: #fff;
}

.employee-expiring-header {
    background-color: #f0ad4e;
    border-color: #eea236;
}

.popup-close,
.popup-close:hover,
.popup-close:focus {
    color: #fff;
    opacity: .9;
    text-shadow: none;
}

.popup-icon {
    display: inline-block;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 24px;
    line-height: 52px;
    animation: popupIconIn .4s ease both;
}

.popup-subtitle {
    margin: 6px 0 0;
}

.popup-image {
    max-height: 240px;
    margin-bottom: 20px;
}

.popup-action {
    min-width: 130px;
}

.popup-grid {
    margin-right: -5px;
    margin-left: -5px;
}

.popup-grid-item {
    padding-right: 5px;
    padding-left: 5px;
}

.popup-grid-item .well {
    margin-bottom: 10px;
}

.popup-count {
    display: block;
    font-size: 22px;
}

@keyframes popupIconIn {
    from {
        opacity: 0;
        transform: scale(.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 767px) {

    #attendancePopup,
    #employeeExpiringModal {
        padding-right: 0 !important;
    }

    #attendancePopup .modal-dialog,
    #employeeExpiringModal .modal-dialog {
        margin: 10px;
    }

    #attendancePopup .modal-content,
    #employeeExpiringModal .modal-content {
        max-height: calc(100vh - 20px);
    }

    .popup-action {
        display: block;
        width: 100%;
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #attendancePopup .modal-dialog,
    #employeeExpiringModal .modal-dialog,
    .popup-icon {
        animation: none;
        transition: none;
    }
}