/* PMD_GENERAL_STAFF_NOTE_R24
 * Scoped PayMyDine treatment for the legacy General Staff Note Bootstrap modal.
 */

#addGeneralStaffNoteModal .modal-dialog {
    width: min(720px, calc(100vw - 32px)) !important;
    max-width: 720px !important;
    margin: 42px auto !important;
    transform: none !important;
    transition: none !important;
}

#addGeneralStaffNoteModal .modal-content {
    overflow: hidden !important;
    border: 1px solid #d9e7ee !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 28px 80px rgba(27,55,74,.22) !important;
}

#addGeneralStaffNoteModal .modal-header {
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 18px 22px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5eef3 !important;
    background: #ffffff !important;
}

#addGeneralStaffNoteModal .modal-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #102a3a !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: -.02em !important;
}

/* The old Font Awesome glyphs are the broken square icons in the screenshot. */
#addGeneralStaffNoteModal .modal-title > i,
#addGeneralStaffNoteModal #generalStaffNoteSubmitBtn > i {
    display: none !important;
}

#addGeneralStaffNoteModal .btn-close,
#addGeneralStaffNoteModal .close {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d7e4eb !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    color: #173752 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

#addGeneralStaffNoteModal .btn-close:hover,
#addGeneralStaffNoteModal .btn-close:focus,
#addGeneralStaffNoteModal .close:hover,
#addGeneralStaffNoteModal .close:focus {
    border-color: #b9cdd7 !important;
    background-color: #f8fbfd !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(50,130,130,.08) !important;
}

#addGeneralStaffNoteModal .modal-body {
    margin: 0 !important;
    padding: 24px !important;
    background: #ffffff !important;
    color: #173752 !important;
}

#addGeneralStaffNoteModal .form-group {
    margin: 0 0 22px !important;
}

#addGeneralStaffNoteModal .form-group:last-child {
    margin-bottom: 0 !important;
}

#addGeneralStaffNoteModal label,
#addGeneralStaffNoteModal #note-suggestions-container > label {
    display: block !important;
    margin: 0 0 8px !important;
    color: #263f52 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

#addGeneralStaffNoteModal .text-danger {
    color: #c83c32 !important;
}

#addGeneralStaffNoteModal #generalStaffNoteText {
    display: block !important;
    width: 100% !important;
    min-height: 156px !important;
    max-height: 290px !important;
    margin: 0 !important;
    padding: 14px 15px !important;
    border: 1px solid #cfdee6 !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    color: #173752 !important;
    outline: none !important;
    box-shadow: none !important;
    resize: vertical !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#addGeneralStaffNoteModal #generalStaffNoteText::placeholder {
    color: #8597a2 !important;
    opacity: 1 !important;
}

#addGeneralStaffNoteModal #generalStaffNoteText:focus {
    border-color: #83b5ad !important;
    box-shadow: 0 0 0 3px rgba(7,95,79,.08) !important;
}

#addGeneralStaffNoteModal .form-text,
#addGeneralStaffNoteModal small.form-text {
    display: block !important;
    margin: 7px 0 0 !important;
    color: #71828e !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

#addGeneralStaffNoteModal #note-suggestions-container {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e5eef3 !important;
}

#addGeneralStaffNoteModal #note-suggestions-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    margin: 0 !important;
}

#addGeneralStaffNoteModal #note-suggestions-buttons .btn,
#addGeneralStaffNoteModal #note-suggestions-buttons button {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 13px !important;
    border: 1px solid #d8e5eb !important;
    border-radius: 11px !important;
    background: #f8fbfd !important;
    color: #28465a !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    transform: none !important;
}

#addGeneralStaffNoteModal #note-suggestions-buttons .btn:hover,
#addGeneralStaffNoteModal #note-suggestions-buttons button:hover,
#addGeneralStaffNoteModal #note-suggestions-buttons .btn:focus,
#addGeneralStaffNoteModal #note-suggestions-buttons button:focus {
    border-color: #a9c9ca !important;
    background: #f2f9f8 !important;
    color: #174d50 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(50,130,130,.07) !important;
}

#addGeneralStaffNoteModal .modal-footer {
    min-height: 78px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 17px 22px !important;
    border: 0 !important;
    border-top: 1px solid #e5eef3 !important;
    background: #ffffff !important;
}

#addGeneralStaffNoteModal .modal-footer .btn-secondary,
#addGeneralStaffNoteModal .modal-footer .btn-primary,
#addGeneralStaffNoteModal #generalStaffNoteSubmitBtn {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    min-width: 116px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    transform: none !important;
}

#addGeneralStaffNoteModal .modal-footer .btn-secondary {
    border: 1px solid #cfdee6 !important;
    background: #ffffff !important;
    color: #28465a !important;
}

#addGeneralStaffNoteModal .modal-footer .btn-secondary:hover,
#addGeneralStaffNoteModal .modal-footer .btn-secondary:focus {
    border-color: #b8ccd6 !important;
    background: #f8fbfd !important;
    color: #173752 !important;
    outline: none !important;
}

#addGeneralStaffNoteModal .modal-footer .btn-primary,
#addGeneralStaffNoteModal #generalStaffNoteSubmitBtn {
    border: 1px solid #075f4f !important;
    background: #075f4f !important;
    color: #ffffff !important;
    box-shadow: 0 9px 22px rgba(7,95,79,.15) !important;
}

#addGeneralStaffNoteModal .modal-footer .btn-primary:hover,
#addGeneralStaffNoteModal #generalStaffNoteSubmitBtn:hover,
#addGeneralStaffNoteModal .modal-footer .btn-primary:focus,
#addGeneralStaffNoteModal #generalStaffNoteSubmitBtn:focus {
    border-color: #064b40 !important;
    background: #064b40 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(7,95,79,.10), 0 9px 22px rgba(7,95,79,.15) !important;
}

#addGeneralStaffNoteModal .modal-footer .btn:disabled {
    opacity: .55 !important;
    cursor: wait !important;
}

@media (max-width: 760px) {
    #addGeneralStaffNoteModal .modal-dialog {
        width: calc(100vw - 20px) !important;
        margin: 10px auto !important;
    }

    #addGeneralStaffNoteModal .modal-header,
    #addGeneralStaffNoteModal .modal-body,
    #addGeneralStaffNoteModal .modal-footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #addGeneralStaffNoteModal .modal-footer .btn-secondary,
    #addGeneralStaffNoteModal .modal-footer .btn-primary,
    #addGeneralStaffNoteModal #generalStaffNoteSubmitBtn {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }
}
