.bscq-registry {
    width: 100%;
    font-family: inherit;
    color: #ffffff;
}

.bscq-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.bscq-summary-left {
    flex: 1;
    min-width: 0;
}

.bscq-summary-left h2 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
}

.bscq-summary-left p {
    max-width: 700px;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #d1d5db;
}

.bscq-summary-right {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.bscq-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 28px;
}

.bscq-stat {
    min-width: 0;
    padding: 20px;
    background: #333132;
    border: 1px solid #4a4748;
    border-radius: 14px;
}

.bscq-stat span {
    display: block;
    margin-bottom: 8px;
    color: #b6b2b4;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bscq-stat strong {
    display: block;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.bscq-registry-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}

.bscq-search-wrap {
    position: relative;
    min-width: 0;
}

.bscq-search-wrap::before {
    content: "⌕";
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 1;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 20px;
    pointer-events: none;
}

.bscq-registry-controls input,
.bscq-registry-controls select {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: #333132;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.bscq-registry-controls input {
    padding-left: 48px;
}

.bscq-registry-controls input:focus,
.bscq-registry-controls select:focus {
    outline: none;
    border-color: #1c7c45;
    box-shadow: 0 0 0 4px rgba(28, 124, 69, 0.14);
}

.bscq-scroll-notice {
    display: none;
}

.bscq-table-wrap {
    width: 100%;
    overflow: visible;
    background: #333132;
    border: 1px solid #4a4748;
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
}

.bscq-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.bscq-table th {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 10px;
    background: #1c7c45;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

.bscq-table th:first-child {
    border-top-left-radius: 13px;
}

.bscq-table th:last-child {
    border-top-right-radius: 13px;
    border-right: 0;
}

.admin-bar .bscq-table th {
    top: 32px;
}

.bscq-table td {
    padding: 16px 10px;
    background: #333132;
    color: #ffffff;
    border-top: 1px solid #4a4748;
    border-right: 1px solid #4a4748;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.bscq-table td:last-child {
    border-right: 0;
}

.bscq-table tbody tr:hover > td {
    background: #3b393a;
}

.bscq-table td:first-child {
    font-weight: 700;
}

/*
Desktop column widths

1 Certificate holder
2 Building or Project
3 Building typology
4 Application status
5 Total biogenic stored carbon
6 Certification date
7 Certification number
8 Minimum Lifespan (years)
9 Details
*/

.bscq-table th:nth-child(1),
.bscq-table td:nth-child(1) {
    width: 13%;
}

.bscq-table th:nth-child(2),
.bscq-table td:nth-child(2) {
    width: 14%;
}

.bscq-table th:nth-child(3),
.bscq-table td:nth-child(3) {
    width: 12%;
}

.bscq-table th:nth-child(4),
.bscq-table td:nth-child(4) {
    width: 12%;
}

.bscq-table th:nth-child(5),
.bscq-table td:nth-child(5) {
    width: 14%;
}

.bscq-table th:nth-child(6),
.bscq-table td:nth-child(6) {
    width: 10%;
}

.bscq-table th:nth-child(7),
.bscq-table td:nth-child(7) {
    width: 10%;
}

.bscq-table th:nth-child(8),
.bscq-table td:nth-child(8) {
    width: 7%;
}

.bscq-table th:nth-child(9),
.bscq-table td:nth-child(9) {
    width: 8%;
}

.bscq-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.bscq-status::before {
    display: none;
    content: none;
}

.bscq-status.certified,
.bscq-status.submitted {
    background: #dcfce7;
    color: #166534;
    box-shadow: 0 0 18px rgba(22, 101, 52, 0.2);
}

.bscq-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.bscq-status.under-review {
    background: #dbeafe;
    color: #1d4ed8;
}

.bscq-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 9px 12px;
    background: #ffffff;
    color: #1c7c45;
    border: 1px solid #1c7c45;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.bscq-details-button:hover,
.bscq-details-button.is-open {
    background: #1c7c45;
    color: #ffffff;
}

.bscq-details-row td {
    padding: 0;
    background: #333132;
}

.bscq-details-row:hover td {
    background: #333132;
}

.bscq-details {
    display: block;
    padding: 24px;
    background: #333132;
    border: 0;
}

.bscq-details-intro {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 20px;
}

.bscq-details-image {
    min-width: 0;
    margin: 0;
}

.bscq-project-image {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0;
    border-radius: 12px;
    object-fit: cover;
}

.bscq-details-description {
    min-width: 0;
    max-width: none;
    margin: 0;
}

.bscq-details-description strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.bscq-details-description p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.bscq-details-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bscq-detail-field {
    min-width: 0;
    padding: 14px;
    background: #292728;
    border: 1px solid #4a4748;
    border-radius: 8px;
}

.bscq-detail-field strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
}

.bscq-detail-field span {
    display: block;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.bscq-footer {
    margin-top: 18px;
    color: #d1d5db;
    font-weight: 700;
}

.bscq-mobile-list {
    display: none;
}

.bscq-card {
    min-width: 0;
    padding: 22px;
    background: #333132;
    color: #ffffff;
    border: 1px solid #4a4748;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.15);
}

.bscq-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.bscq-card p {
    margin: 0 0 10px;
    color: #d1d5db;
    overflow-wrap: anywhere;
}

.bscq-card p strong {
    color: #ffffff;
}

.bscq-card-details {
    margin-top: 18px;
    padding-top: 18px;
    background: #333132;
    border-top: 1px solid #4a4748;
}

.bscq-card-details .bscq-details-intro {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

.bscq-card-details .bscq-project-image {
    max-width: 100%;
}

@media (max-width: 1200px) and (min-width: 992px) {
    .bscq-summary {
        gap: 24px;
    }

    .bscq-registry-controls {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
        gap: 12px;
    }

    .bscq-table th {
        padding: 12px 7px;
        font-size: 12px;
    }

    .bscq-table td {
        padding: 14px 7px;
        font-size: 13px;
    }

    .bscq-details-button {
        padding: 8px;
        font-size: 11px;
    }

    .bscq-status {
        padding: 6px 10px;
        font-size: 11px;
    }

    .bscq-details-intro {
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
        gap: 20px;
    }

    .bscq-details-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .bscq-summary {
        display: block;
    }

    .bscq-summary-left h2 {
        font-size: 32px;
    }

    .bscq-summary-right {
        margin-top: 12px;
        white-space: normal;
    }

    .bscq-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bscq-registry-controls {
        grid-template-columns: 1fr;
    }

    .bscq-table-wrap {
        display: none;
    }

    .bscq-mobile-list {
        display: grid;
        gap: 16px;
    }

    .bscq-card-details .bscq-details-intro {
        grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.15fr);
        gap: 20px;
    }

    .bscq-details-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bscq-footer {
        margin-bottom: 14px;
    }
}

@media (max-width: 782px) {
    .admin-bar .bscq-table th {
        top: 46px;
    }
}

@media (max-width: 700px) {
    .bscq-card-details .bscq-details-intro,
    .bscq-details-intro {
        grid-template-columns: 1fr;
    }

    .bscq-project-image {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .bscq-summary {
        margin-bottom: 24px;
    }

    .bscq-summary-left h2 {
        font-size: 28px;
    }

    .bscq-summary-left p {
        font-size: 16px;
    }

    .bscq-stats {
        grid-template-columns: 1fr;
    }

    .bscq-stat {
        padding: 18px;
    }

    .bscq-stat strong {
        font-size: 26px;
    }

    .bscq-registry-controls {
        gap: 12px;
    }

    .bscq-registry-controls input,
    .bscq-registry-controls select {
        height: 52px;
    }

    .bscq-detail-field {
        padding: 13px;
    }

    .bscq-details-fields {
        grid-template-columns: 1fr;
    }

    .bscq-card {
        padding: 18px;
    }

    .bscq-card h3 {
        font-size: 19px;
    }

    .bscq-details-button {
        width: 100%;
    }
}