/* Material Design - Frontend Table */
.umss-documentos-wrapper {
    margin: 2rem 0;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: rgba(0, 0, 0, 0.87);
}

.umss-documentos-table-container {
    overflow-x: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    background: #ffffff;
}

.umss-documentos-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    text-align: left;
    font-size: 14px;
}

.umss-documentos-table thead th {
    background-color: #ffffff;
    font-size: 14px;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.umss-documentos-table tbody td {
    padding: 16px;
    color: #1e1e1e;
    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 300;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    vertical-align: middle;
}

.umss-documentos-table tbody tr:last-child td {
    border-bottom: none;
}

.umss-documentos-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Category Badge (Material Chip style) */
.umss-doc-badge {
    display: inline-block;
    padding: 0 12px;
    height: 32px;
    line-height: 32px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.87);
    background-color: #a2b6ff;
    border-radius: 16px;
    white-space: nowrap;
}

/* Download Button (Material Raised) */
.umss-doc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 36px;
    background-color: #e30613;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.umss-doc-download-btn:hover {
    background-color: #303f9f;
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.umss-doc-download-btn svg {
    flex-shrink: 0;
    fill: currentColor;
}

/* Empty State */
.umss-doc-no-data {
    text-align: center;
    padding: 48px !important;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

/* Align Last Column Right on Desktop */
@media screen and (min-width: 769px) {

    .umss-documentos-table thead th:last-child,
    .umss-documentos-table tbody td:last-child {
        text-align: right;
        width: 1%;
        white-space: nowrap;
    }
}

/* Responsive Table (Stack on small screens, Material Card style) */
@media screen and (max-width: 768px) {
    .umss-documentos-table {
        border: 0;
    }

    .umss-documentos-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .umss-documentos-table tr {
        border-bottom: 4px solid #f5f5f5;
        /* separator between mobile cards */
        display: block;
        background: #fff;
    }

    .umss-documentos-table td {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 16px;
        gap: 16px;
    }

    .umss-documentos-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: rgba(0, 0, 0, 0.6);
        font-size: 13px;
        text-align: left;
        flex-shrink: 0;
        max-width: 40%;
    }

    .umss-documentos-table td:last-child {
        border-bottom: 0;
    }

    .umss-doc-download-btn {
        display: inline-flex;
        justify-content: center;
        width: auto;
        margin-top: 0;
    }
}