/* CXE_PREWORKSPACE_BOM_PICKER_V3 */

/* BOM validation */
#bom-groups tr.cxe-bom-missing > td {
    background: #fff7f8 !important;
    border-top: 1px solid rgba(220, 38, 72, .22) !important;
    border-bottom: 1px solid rgba(220, 38, 72, .22) !important;
}
#bom-groups tr.cxe-bom-missing > td:first-child {
    border-left: 3px solid #df3659 !important;
}
#bom-groups tr.cxe-bom-missing > td:last-child {
    border-right: 1px solid rgba(220, 38, 72, .22) !important;
}
#bom-groups tr.cxe-bom-missing .bom-unresolved {
    color: #c52a48 !important;
    font-weight: 800 !important;
}
#bom-groups tr.cxe-bom-missing .bom-replace {
    border-color: rgba(220, 38, 72, .42) !important;
    background: #fff !important;
    color: #c62e4c !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 72, .08) !important;
}
#bom-progress .cxe-bom-validation-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(220, 38, 72, .18);
    border-radius: 999px;
    background: #fff5f7;
    color: #b92745;
    font-size: 13px;
    font-weight: 750;
}
#bom-progress .cxe-bom-validation-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #df3659;
    box-shadow: 0 0 0 4px rgba(223, 54, 89, .1);
}

/* Light component picker */
#component-selector-modal.component-modal {
    background: rgba(23, 38, 66, .46) !important;
    backdrop-filter: blur(10px) !important;
}
#component-selector-modal .component-modal-card {
    width: min(920px, calc(100vw - 34px)) !important;
    max-height: min(820px, calc(100vh - 46px)) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%) !important;
    color: #142a4d !important;
    border: 1px solid rgba(52, 103, 255, .16) !important;
    border-radius: 22px !important;
    box-shadow: 0 28px 90px rgba(22, 50, 103, .22) !important;
    overflow: hidden !important;
}
#component-selector-modal .component-modal-head {
    padding: 20px 22px 16px !important;
    background: linear-gradient(135deg, #f8fbff, #edf4ff) !important;
    border-bottom: 1px solid rgba(52, 103, 255, .10) !important;
}
#component-selector-modal .component-modal-head h3 {
    color: #14305d !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}
#component-selector-modal .component-modal-subtitle {
    margin-top: 5px !important;
    color: #6b7f9f !important;
    font-size: 13px !important;
}
#component-selector-modal .component-modal-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(52, 103, 255, .13) !important;
    background: #fff !important;
    color: #47628d !important;
    font-size: 22px !important;
}
#component-selector-modal label[for="component-candidate-search"] {
    color: #29446f !important;
    font-size: 13px !important;
    font-weight: 750 !important;
}
#component-selector-modal #component-candidate-search {
    border: 1px solid rgba(52, 103, 255, .18) !important;
    border-radius: 12px !important;
    padding: 11px 13px !important;
    background: #f9fbff !important;
    color: #142a4d !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
#component-selector-modal #component-candidate-search:focus {
    border-color: rgba(52, 103, 255, .5) !important;
    box-shadow: 0 0 0 4px rgba(52, 103, 255, .09) !important;
}
#component-selector-modal #component-role-info {
    color: #617596 !important;
    font-size: 13px !important;
    padding: 10px 22px 0 !important;
}
#component-selector-modal #component-base-parameter-filters {
    gap: 7px !important;
    padding: 12px 22px 16px !important;
    border-bottom: 1px solid rgba(52, 103, 255, .10) !important;
}
.component-filter-caption {
    display: inline-flex;
    align-items: center;
    color: #47628d;
    font-size: 12px;
    font-weight: 700;
}
.component-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(52, 103, 255, .13);
    border-radius: 999px;
    background: #eef4ff;
    color: #31558f;
    font-size: 12px;
    font-weight: 650;
}
#component-selector-modal .component-candidates {
    padding: 12px 14px 18px !important;
    background: #f4f7fc !important;
}
#component-selector-modal .component-modal-empty {
    color: #667b9b !important;
    background: #fff !important;
    border: 1px dashed rgba(52, 103, 255, .18) !important;
    border-radius: 14px !important;
    padding: 18px !important;
}
#component-selector-modal .component-candidate {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px !important;
    gap: 18px !important;
    align-items: center !important;
    margin: 0 0 10px !important;
    padding: 15px !important;
    border: 1px solid rgba(52, 103, 255, .12) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 7px 22px rgba(36, 66, 118, .05) !important;
}
#component-selector-modal .component-candidate.best {
    border-color: rgba(31, 169, 112, .35) !important;
    box-shadow: 0 0 0 2px rgba(31, 169, 112, .055), 0 8px 24px rgba(36, 66, 118, .05) !important;
}
#component-selector-modal .component-candidate.has-component-passport {
    border-left: 4px solid #24a66d !important;
}
#component-selector-modal .component-candidate-package-image {
    border-color: rgba(52, 103, 255, .11) !important;
    background: #fff !important;
}
#component-selector-modal .component-candidate-name {
    color: #142f59 !important;
    font-size: 15px !important;
}
#component-selector-modal .component-candidate-mpn,
#component-selector-modal .component-candidate-meta {
    color: #667b9b !important;
}
#component-selector-modal .component-candidate-meta {
    font-size: 12px !important;
    line-height: 1.45 !important;
}
#component-selector-modal .component-score {
    color: #4e6589 !important;
    font-size: 12px !important;
    text-align: right !important;
}
#component-selector-modal .component-score small {
    color: #8392aa !important;
}
#component-selector-modal .component-select-button {
    width: 100% !important;
    margin-top: 10px !important;
    background: linear-gradient(135deg, #3568ff, #5b8cff) !important;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(52, 103, 255, .19) !important;
}
.component-passport-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eefbf5;
    color: #168a58;
    border: 1px solid rgba(22, 138, 88, .12);
    font-size: 11px;
    font-weight: 750;
}
.component-passport-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #20b16e;
    box-shadow: 0 0 0 4px rgba(32, 177, 110, .09);
}
#component-selector-modal .candidate-tag.good {
    background: #f0f7ff !important;
    color: #3560a0 !important;
    border-color: rgba(52, 103, 255, .12) !important;
}
#component-selector-modal .candidate-tag.bad {
    background: #fff4f5 !important;
    color: #c13a53 !important;
    border-color: rgba(193, 58, 83, .12) !important;
}

@media (max-width: 760px) {
    #component-selector-modal .component-candidate {
        grid-template-columns: 1fr !important;
    }
    #component-selector-modal .component-score {
        text-align: left !important;
    }
}
