#juris-app {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #222;
}

#juris-filters {
    background: #f7f7f9;
    border: 1px solid #e6e6ee;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

#juris-filters .filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

#juris-filters .filter {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#juris-filters .filter label {
    font-weight: 600;
    font-size: 0.95rem;
}

#juris-filters input[type="date"],
#juris-filters select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#juris-filters fieldset.filter-tags {
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 10px 12px;
}

#juris-filters fieldset.filter-tags legend {
    font-weight: 700;
}

#juris-filters fieldset.filter-tags label {
    margin-right: 12px;
    font-weight: 500;
}

#juris-filters button {
    padding: 8px 12px;
    border: 0;
    background: #222;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

#juris-filters #clear {
    background: #aaa;
}

#results {
    display: grid;
    gap: 12px;
}

.case {
    border: 1px solid #eaeaf0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.case-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.case-rol {
    font-weight: 800;
    text-decoration: none;
    color: #1a4;
}

.case-fecha {
    color: #666;
    font-size: 0.9rem;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    font-size: 0.95rem;
    color: #333;
    margin: 8px 0;
}

.case-resultados {
    font-weight: 600;
    color: #333;
    margin: 6px 0;
}

.case-tags .chip {
    display: inline-block;
    background: #eef8ff;
    border: 1px solid #d5e9ff;
    color: #0366d6;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-right: 6px;
}

.case-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #222;
    color: #fff;
    text-decoration: none;
}

.file-link {
    color: #0a58ca;
    text-decoration: none;
}

.case-detail {
    border: 1px solid #eaeaf0;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.case-detail h2 {
    margin: 0 0 6px;
}

.case-detail .muted {
    color: #666;
}

.case-detail .files {
    margin: 8px 0;
    padding-left: 18px;
}

.case-detail .file-link {
    color: #0a58ca;
}

.empty {
    padding: 16px;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 12px;
    color: #666;
}

.error {
    padding: 16px;
    background: #fff3f3;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
    color: #842029;
}

.pager {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 8px 0 16px;
}

.pg {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
}

.pg[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.pg-info {
    font-size: 0.95rem;
    color: #444;
}