.mrl-bvd,
.mrl-bvd * {
    box-sizing: border-box;
}

.mrl-bvd {
    --mrl-bvd-navy: #0b3158;
    --mrl-bvd-navy-deep: #061f39;
    --mrl-bvd-teal: #008f88;
    --mrl-bvd-text: #4f6072;
    --mrl-bvd-muted: #718091;
    --mrl-bvd-border: #d4dfeb;
    --mrl-bvd-soft: #f7fafd;

    width: min(1180px, calc(100vw - 40px));
    max-width: 1180px;
    margin: 0 0 54px;
    padding: 36px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid var(--mrl-bvd-border);
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(8, 43, 82, .07);
    color: var(--mrl-bvd-text);
    overflow: hidden;
}

.mrl-bvd__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.mrl-bvd__header > div:first-child {
    max-width: 760px;
}

.mrl-bvd__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--mrl-bvd-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mrl-bvd h2 {
    margin: 0 0 10px;
    color: var(--mrl-bvd-navy);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.mrl-bvd__header p {
    margin: 0;
    color: var(--mrl-bvd-text);
    font-size: 15px;
    line-height: 1.65;
}

.mrl-bvd__count {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 13px 16px;
    background: var(--mrl-bvd-soft);
    border: 1px solid var(--mrl-bvd-border);
    border-radius: 12px;
    text-align: center;
}

.mrl-bvd__count strong {
    display: block;
    color: var(--mrl-bvd-navy);
    font-size: 25px;
    line-height: 1;
}

.mrl-bvd__count span {
    display: block;
    margin-top: 5px;
    color: var(--mrl-bvd-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.mrl-bvd__toolbar {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, .9fr);
    align-items: end;
    gap: 22px;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--mrl-bvd-soft);
    border: 1px solid #e0e7ef;
    border-radius: 14px;
}

.mrl-bvd__search-wrap label {
    display: block;
    margin-bottom: 7px;
    color: var(--mrl-bvd-navy);
    font-size: 13px;
    font-weight: 800;
}

.mrl-bvd__search-control {
    display: flex;
    align-items: center;
    min-height: 50px;
    background: #ffffff;
    border: 1px solid #c8d5e2;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mrl-bvd__search-control:focus-within {
    border-color: var(--mrl-bvd-teal);
    box-shadow: 0 0 0 3px rgba(0, 143, 136, .11);
}

.mrl-bvd__search-control > span {
    padding-left: 15px;
    color: var(--mrl-bvd-teal);
    font-size: 23px;
    line-height: 1;
}

.mrl-bvd__search-control input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0 !important;
    padding: 0 14px 0 10px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: #223b55 !important;
    font: inherit;
    font-size: 14px;
}

.mrl-bvd__search-control input::placeholder {
    color: #8795a5;
    opacity: 1;
}

.mrl-bvd__toolbar-note {
    margin: 0;
    color: var(--mrl-bvd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.mrl-bvd__table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--mrl-bvd-border);
    border-radius: 14px;
    background: #ffffff;
}

.mrl-bvd__table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 13px;
}

.mrl-bvd__table thead {
    background: #f1f6fa;
}

.mrl-bvd__table th,
.mrl-bvd__table td {
    padding: 14px 12px;
    border: 0 !important;
    border-bottom: 1px solid #e4eaf0 !important;
    text-align: left;
    vertical-align: middle;
}

.mrl-bvd__table th {
    color: #536577;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.mrl-bvd__table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.mrl-bvd__table tbody tr:hover td {
    background: #fbfdff;
}

.mrl-bvd__product,
.mrl-bvd__product:visited {
    color: var(--mrl-bvd-navy) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.mrl-bvd__product:hover,
.mrl-bvd__product:focus {
    color: var(--mrl-bvd-teal) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.mrl-bvd__batch {
    display: inline-block;
    max-width: 180px;
    padding: 4px 7px;
    overflow-wrap: anywhere;
    background: #eef5f8;
    border: 1px solid #d6e2e8;
    border-radius: 6px;
    color: #24455f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    line-height: 1.35;
}

.mrl-bvd__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 146px;
}

.mrl-bvd__lab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 9px;
    margin-top: 7px;
    color: #617586;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
}

.mrl-bvd__lab-meta span + span::before {
    content: "•";
    margin-right: 9px;
    color: #9aabb8;
}

.mrl-bvd__button,
.mrl-bvd__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.mrl-bvd__button--primary,
.mrl-bvd__button--primary:visited {
    background: var(--mrl-bvd-navy);
    border-color: var(--mrl-bvd-navy);
    color: #ffffff !important;
}

.mrl-bvd__button--primary:hover,
.mrl-bvd__button--primary:focus {
    background: var(--mrl-bvd-navy-deep);
    border-color: var(--mrl-bvd-navy-deep);
    color: #ffffff !important;
}

.mrl-bvd__button--secondary,
.mrl-bvd__button--secondary:visited {
    background: #ffffff;
    border-color: #b9cbd8;
    color: var(--mrl-bvd-navy) !important;
}

.mrl-bvd__button--secondary:hover,
.mrl-bvd__button--secondary:focus {
    background: #eff8f7;
    border-color: #85bbb6;
    color: #076a65 !important;
}

.mrl-bvd__empty {
    display: grid;
    gap: 4px;
    padding: 30px 20px;
    color: var(--mrl-bvd-text);
    text-align: center;
}

.mrl-bvd__empty[hidden] {
    display: none !important;
}

.mrl-bvd__empty strong {
    color: var(--mrl-bvd-navy);
    font-size: 16px;
}

.mrl-bvd__empty span {
    color: var(--mrl-bvd-muted);
    font-size: 13px;
}

.mrl-bvd__empty--initial {
    border: 1px solid var(--mrl-bvd-border);
    border-radius: 14px;
    background: var(--mrl-bvd-soft);
}

.mrl-bvd__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--mrl-bvd-muted);
    font-size: 11px;
    line-height: 1.45;
}

.mrl-bvd__dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    background: var(--mrl-bvd-teal);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 143, 136, .09);
}

@media (max-width: 980px) {
    .mrl-bvd {
        width: calc(100vw - 30px);
        padding: 28px;
    }

    .mrl-bvd__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .mrl-bvd__count {
        min-width: 130px;
        text-align: left;
    }

    .mrl-bvd__toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }
}

@media (max-width: 820px) {
    .mrl-bvd__table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .mrl-bvd__table,
    .mrl-bvd__table tbody,
    .mrl-bvd__table tr,
    .mrl-bvd__table td {
        display: block;
        width: 100%;
    }

    .mrl-bvd__table thead {
        display: none;
    }

    .mrl-bvd__table tbody {
        display: grid;
        gap: 13px;
    }

    .mrl-bvd__table tbody tr {
        padding: 7px 15px;
        background: #ffffff;
        border: 1px solid var(--mrl-bvd-border);
        border-radius: 13px;
        box-shadow: 0 8px 22px rgba(8, 43, 82, .045);
    }

    .mrl-bvd__table tbody tr:hover td {
        background: transparent;
    }

    .mrl-bvd__table td {
        display: grid;
        grid-template-columns: minmax(105px, 34%) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        min-height: 42px;
        padding: 11px 0;
        border-bottom: 1px solid #e8edf2 !important;
    }

    .mrl-bvd__table td:last-child {
        border-bottom: 0 !important;
    }

    .mrl-bvd__table td::before {
        content: attr(data-label);
        color: #728091;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .045em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .mrl-bvd__actions {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .mrl-bvd {
        width: calc(100vw - 30px);
        margin-bottom: 36px;
        padding: 22px 16px;
        border-radius: 16px;
    }

    .mrl-bvd__header {
        margin-bottom: 20px;
    }

    .mrl-bvd__header p {
        font-size: 14px;
    }

    .mrl-bvd__toolbar {
        padding: 14px;
    }

    .mrl-bvd__search-control > span {
        display: none;
    }

    .mrl-bvd__search-control input[type="search"] {
        padding-left: 13px !important;
    }

    .mrl-bvd__table td {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
    }

    .mrl-bvd__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .mrl-bvd__button,
    .mrl-bvd__button:visited {
        width: 100%;
        min-height: 40px;
        white-space: normal;
        text-align: center;
    }
}

.mrl-bvd__table tr[hidden] {
    display: none !important;
}
