.cbf-dr {
    --cbf-dr-black: #000;
    --cbf-dr-blue: #1f79bd;
    --cbf-dr-grey: #d8d8d8;
    --cbf-dr-gold: #d2ad2f;
    --cbf-dr-gold-strong: #e0be00;
    --cbf-dr-gold-soft: #f8edbd;
    --cbf-dr-grid: #e5e5e5;
    --cbf-dr-text: #111;
    background: #fff;
    border: 1px solid var(--cbf-dr-blue);
    color: var(--cbf-dr-text);
    font-family: "Segoe UI", Arial, sans-serif;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
    overflow-x: hidden;
    overflow-x: clip;
    position: relative;
    width: 100vw;
}

@supports (width: 100dvw) {
    .cbf-dr {
        margin-left: -50dvw;
        margin-right: -50dvw;
        width: 100dvw;
    }
}

.cbf-dr * {
    box-sizing: border-box;
}

.cbf-dr-header {
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(240px, 1fr) minmax(360px, 660px);
    gap: clamp(14px, 2vw, 24px);
    align-items: center;
    min-height: 138px;
    padding: 14px clamp(16px, 3vw, 34px) 12px;
    background: var(--cbf-dr-black);
    border-bottom: 2px solid var(--cbf-dr-blue);
}

.cbf-dr-logo {
    display: block;
    width: clamp(86px, 8vw, 118px);
    height: clamp(86px, 8vw, 118px);
    object-fit: contain;
}

.cbf-dr-title {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 2px #777;
    white-space: nowrap;
}

.cbf-dr-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 10px 20px;
    min-width: 0;
}

.cbf-dr-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 8px 18px;
    border: 3px solid var(--cbf-dr-gold);
    border-radius: 999px;
    background: var(--cbf-dr-gold-soft);
    color: #c39c24;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.cbf-dr-links a:hover,
.cbf-dr-links a:focus {
    background: var(--cbf-dr-gold);
    color: #fff;
    text-decoration: underline;
}

.cbf-dr-filter-band {
    display: grid;
    grid-template-columns: minmax(300px, max-content) minmax(0, 1fr);
    gap: clamp(14px, 2.5vw, 28px);
    align-items: center;
    padding: 12px clamp(16px, 3vw, 34px) 14px;
    background: var(--cbf-dr-grey);
}

.cbf-dr-slicers {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
}

.cbf-dr-slicer {
    min-width: 150px;
    padding: 8px 10px 10px;
    background: #eee;
}

.cbf-dr-slicer label {
    display: grid;
    gap: 8px;
    color: #222;
    font-size: 20px;
    font-weight: 700;
}

.cbf-dr-slicer select {
    width: 100%;
    height: 32px;
    border: 0;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 16px;
    padding: 4px 8px;
}

.cbf-dr-status-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 10px;
    min-width: 0;
}

.cbf-dr-status-row button {
    min-height: 76px;
    border: 2px solid var(--cbf-dr-gold-strong);
    border-radius: 3px;
    background: #fff;
    color: #000;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.15;
    padding: 8px;
    white-space: normal;
}

.cbf-dr-status-row button[aria-pressed="true"] {
    background: var(--cbf-dr-gold-strong);
}

.cbf-dr-table-area {
    padding: 14px clamp(16px, 3vw, 34px) 22px;
    background: #fff;
}

.cbf-dr-result-line {
    margin: 0 0 6px;
    color: #666;
    font-size: 14px;
}

.cbf-dr-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--cbf-dr-grid);
}

.cbf-dr-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}

.cbf-dr-table th,
.cbf-dr-table td {
    height: 34px;
    padding: 7px 8px;
    border-bottom: 1px solid var(--cbf-dr-grid);
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.cbf-dr-table th {
    background: #f1f1f1;
    color: #111;
    font-weight: 700;
}

.cbf-dr-table tbody tr:nth-child(even) {
    background: #f8f8f8;
}

.cbf-dr-table tbody tr:hover {
    background: #fff4cf;
}

.cbf-dr-table th:nth-child(1) {
    width: 92px;
}

.cbf-dr-table th:nth-child(2),
.cbf-dr-table th:nth-child(3) {
    width: 100px;
}

.cbf-dr-table th:nth-child(4) {
    width: 112px;
}

.cbf-dr-table th:nth-child(5),
.cbf-dr-table th:nth-child(6),
.cbf-dr-table th:nth-child(7) {
    width: 74px;
}

.cbf-dr-table th:nth-child(8) {
    width: 116px;
}

.cbf-dr-table th:nth-child(9),
.cbf-dr-table th:nth-child(10) {
    width: 100px;
}

.cbf-dr-table th:nth-child(11) {
    width: 142px;
}

.cbf-dr-table th:nth-child(12) {
    width: 162px;
}

.cbf-dr-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cbf-dr-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.cbf-dr-sort span {
    min-width: 10px;
    color: #8f6f00;
    font-weight: 700;
}

.cbf-dr-empty {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--cbf-dr-grid);
    background: #f8f8f8;
}

@media (max-width: 1180px) {
    .cbf-dr-header {
        grid-template-columns: 112px 1fr;
    }

    .cbf-dr-logo {
        width: 98px;
        height: 98px;
    }

    .cbf-dr-links {
        grid-column: 1 / -1;
    }

    .cbf-dr-filter-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cbf-dr {
        border-left: 0;
        border-right: 0;
    }

    .cbf-dr-header {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
        padding: 12px;
    }

    .cbf-dr-logo {
        height: 76px;
        width: 76px;
    }

    .cbf-dr-title {
        font-size: 24px;
        white-space: normal;
    }

    .cbf-dr-links {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .cbf-dr-links a {
        min-height: 44px;
        padding: 8px 12px;
    }

    .cbf-dr-filter-band {
        padding: 12px;
    }

    .cbf-dr-slicers {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .cbf-dr-slicer {
        min-width: 0;
    }

    .cbf-dr-status-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .cbf-dr-status-row button {
        min-height: 54px;
        padding: 8px 6px;
    }

    .cbf-dr-table-area {
        padding: 12px;
    }

    .cbf-dr-table {
        min-width: 980px;
    }
}

@media (max-width: 420px) {
    .cbf-dr-slicers,
    .cbf-dr-status-row {
        grid-template-columns: 1fr;
    }
}
