/* -- SDS Search ------------------------------------------------------------ */

.sds-search-wrap {
    margin-bottom: 24px;
}

.sds-search {
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    font-size: 1em;
    border: 1px solid var(--color-gray, #ccc);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
}

.sds-search:focus {
    border-color: var(--color-theme-blue, #3385bd);
}

/* -- SDS Table ------------------------------------------------------------- */

.sds-table-wrap {
    overflow-x: auto;
}

.sds-table {
    width: 100%;
    border-collapse: collapse;
}

.sds-table thead tr {
    border-bottom: 3px solid #ccc;
}

.sds-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 700;
    font-family:"Roboto",Arial;
    text-transform: uppercase;
    font-size: 0.9em;
    color: var(--color-text-black, #111);
    white-space: nowrap;
}

.sds-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}

.sds-table tbody tr:hover {
    background: #f5f5f5;
}

/* Column widths */
.scol-name,
.sds-table td:first-child {
    min-width: 200px;
    white-space: nowrap;
}

.scol-desc {
}

.scol-size,
.sds-table td:nth-child(3) {
    min-width: 90px;
    white-space: nowrap;
    text-align: right;
}

.scol-dl,
.sds-table td:nth-child(4) {
    white-space: nowrap;
    text-align: right;
}

.sds-dl-link {
    color: var(--color-theme-blue, #3385bd);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85em;
}

.sds-dl-link:hover {
    text-decoration: underline;
}

.sds-dl-link i {
    margin-right: 4px;
}

/* -- Download icon on name column ------------------------------------------ */

.sds-file-name {
    font-weight: 600;
}

.sds-file-name i {
    margin-right: 6px;
    color: #c0392b;
}

/* -- No results ------------------------------------------------------------ */

.sds-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-gray, #888);
    font-size: 1em;
}

/* -- Responsive: hide less important columns on small screens -------------- */

@media only screen and (max-width: 575px) {
    .sds-table thead {
        display: none;
    }

    .sds-table,
    .sds-table tbody {
        display: block;
    }

    .sds-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 12px 0;
        border-bottom: 1px solid #e5e5e5;
        gap: 2px 10px;
    }

    .sds-table td {
        padding: 0;
        border: none;
    }

    /* Name: top-left */
    .sds-table td:first-child {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        white-space: normal;
    }

    /* Description: bottom-left */
    .sds-table td:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        font-size: 0.85em;
        color: var(--color-text-gray, #888);
    }

    /* Hide file size */
    .sds-table td:nth-child(3) {
        display: none;
    }

    /* Download: right, spanning both rows, vertically centered */
    .sds-table td:nth-child(4) {
        grid-column: 2;
        grid-row: 1 / 3;
        display: flex;
        align-items: center;
    }

    /* Icon only on mobile */
    .sds-dl-link span {
        display: none;
    }
}
