/**
 * Stylesheet for Documentos y Resoluciones de Utilidad (Table Style)
 */

:root {
    --doc-util-bg: #ffffff;
    --doc-util-border-color: #ffd863;
    --doc-util-header-bg: #f9f9fb;
    --doc-util-text-color: #2c3e50;
    --doc-util-link-color: #1a73e8;
    --doc-util-link-hover: #0b51c5;
    --doc-util-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    --doc-util-radius: 12px;
}

/* Container Card */
.doc-util-container {
    background-color: var(--doc-util-bg);
    border: 2px solid var(--doc-util-border-color);
    border-radius: var(--doc-util-radius);
    padding: 25px;
    margin: 20px 0;
    box-shadow: var(--doc-util-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--doc-util-text-color);
    box-sizing: border-box;
}

/* Header style matching reference image */
.doc-util-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 15px;
}

.doc-util-header-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.doc-util-header-icon img {
    height: 48px;
    width: 48px;
    object-fit: contain;
}

.doc-util-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a252f;
    margin: 0;
    line-height: 1.2;
}

/* Search Box */
.doc-util-search-wrapper {
    margin-bottom: 20px;
}

.doc-util-search-input {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #dcdde1;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.doc-util-search-input:focus {
    border-color: #f1b80f;
    box-shadow: 0 0 0 3px rgba(241, 184, 15, 0.15);
}

/* Table Style */
.doc-util-table-responsive {
    overflow-x: auto;
    border: 1px solid #eaebef;
    border-radius: 8px;
    background: #fff;
}

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

.doc-util-table th, 
.doc-util-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #eaebef;
    vertical-align: middle;
}

.doc-util-table th {
    background-color: var(--doc-util-header-bg);
    color: #57606f;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.doc-util-table tbody tr:last-child td {
    border-bottom: none;
}

.doc-util-table tbody tr:hover td {
    background-color: #fafbfc;
}

.doc-util-col-title {
    color: #2f3542;
    font-size: 14.5px;
    line-height: 1.4;
    max-width: 400px;
}

/* Tags Styling */
.doc-util-tags-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.doc-util-tag-badge {
    background-color: #fef5d9;
    color: #b08500;
    border: 1px solid rgba(226, 169, 0, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    display: inline-block;
}

.doc-util-no-tags {
    color: #a4b0be;
}

/* Button style for Links */
.doc-util-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.doc-util-link-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f1f2f6;
    color: #2f3542;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12.5px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid #dcdde1;
    white-space: nowrap;
}

.doc-util-link-btn:hover {
    background-color: #1a73e8;
    color: #ffffff;
    border-color: #1a73e8;
}

.doc-util-empty {
    padding: 15px;
    background-color: #fff9e6;
    border-left: 4px solid #ffcc00;
    border-radius: 4px;
    color: #664d03;
    font-size: 14px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .doc-util-container {
        padding: 15px;
    }
    .doc-util-title {
        font-size: 18px;
    }
    .doc-util-table th, 
    .doc-util-table td {
        padding: 10px 12px;
    }
}
