.ts-explorer {
    margin: 2rem 0;
    font-family: var(--e-global-typography-text-font-family, 'Inter', sans-serif);
    color: #333;
}

/* Filters */
.ts-explorer-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ts-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ts-filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.ts-filter-input,
.ts-filter-select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.ts-filter-input:focus,
.ts-filter-select:focus {
    outline: none;
    border-color: #0560A2;
    box-shadow: 0 0 0 3px rgba(5, 96, 162, 0.1);
}

/* Table */
.ts-explorer-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: white;
}

.ts-explorer-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #0560A2;
}

.ts-explorer-table thead th {
    background: #e9f6ff;
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #0560A2;
    border: 1px solid #0560A2;
}

.ts-explorer-table td {
    padding: 1rem;
    border: 1px solid #0560A2;
}

/* Care Type Header */
.ts-row-tipo th {
    background: #B53D3F !important;
    color: white;
    font-size: 1.1rem;
    padding: 1rem;
    text-align: left;
    border: 1px solid #0560A2;
}

/* Red Row Header (metadata summary) */
.ts-row-red-header td {
    background: #0560A2 !important;
    color: white;
    font-weight: 700;
    padding: 0.8rem 1rem;
    border: 1px solid #0560A2;
}

.ts-red-info-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Clinic Row */
.ts-row-clinica td {
    background: #fff !important;
}

.ts-row-clinica:nth-child(even) td {
    background: #f4faff !important;
}

.ts-row-clinica:hover td {
    background: #e9f6ff !important;
}

.ts-col-deducible,
.ts-col-cobertura {
    font-weight: 700;
    color: #0560A2;
    text-align: center;
    vertical-align: middle;
}

/* No Results */
.ts-no-results td {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-style: italic;
}

/* Hidden elements */
tr[style*="display: none"] {
    display: none !important;
}

@media (max-width: 640px) {
    .ts-red-info {
        flex-direction: column;
        align-items: flex-start;
    }
}