/* === LMS3 Approval — frontend overrides ===================================
 * Project-specific styling for lms3approval plugins. Kept in the theme so
 * vendor edits aren't needed.
 * The !important markers override theme/Resources/Public/Css/Forms.css which
 * forces a 2px black border on every input via input[type=...] !important.
 * ========================================================================== */

.lms3approval-fe__search {
    align-items: center;
    margin: 0;
}

.lms3approval-fe__search input[type="text"].form-control,
.lms3approval-fe__search input[type="search"].form-control {
    flex: 1;
    height: auto !important;
    min-height: 44px;
    padding: 8px 14px !important;
    font-size: 15px !important;
    line-height: 1.4;
    color: #3F444C;
    background-color: #ffffff !important;
    border: 1px solid #d6d8dc !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    -webkit-box-shadow: 0 0 0 100px #ffffff inset !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lms3approval-fe__search input[type="text"].form-control::placeholder,
.lms3approval-fe__search input[type="search"].form-control::placeholder {
    color: #9EA1A1;
    opacity: 1;
}

.lms3approval-fe__search input[type="text"].form-control:focus,
.lms3approval-fe__search input[type="text"].form-control:focus-visible,
.lms3approval-fe__search input[type="search"].form-control:focus,
.lms3approval-fe__search input[type="search"].form-control:focus-visible {
    border-color: #DA1B47 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(218, 27, 71, .15) !important;
}

.lms3approval-fe__search .btn,
.lms3approval-fe__search button[type="submit"] {
    flex: none;
    margin: 0 !important;
    min-height: 44px;
    padding: 0 22px !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background: #DA1B47;
    border: 1px solid #DA1B47 !important;
    border-radius: 6px !important;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.lms3approval-fe__search .btn:hover,
.lms3approval-fe__search .btn:focus-visible,
.lms3approval-fe__search button[type="submit"]:hover,
.lms3approval-fe__search button[type="submit"]:focus-visible {
    color: #ffffff;
    background: #b91639;
    border-color: #b91639;
    outline: none;
    box-shadow: 0 0 0 3px rgba(218, 27, 71, .15);
}

/* === Review modal sizing ================================================== */
.lms3approval-fe-modal .modal-dialog,
.modal[id^="pf-"] .modal-dialog {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .lms3approval-fe-modal .modal-dialog,
    .modal[id^="pf-"] .modal-dialog {
        max-width: 720px;
    }
}
