﻿.priority-accordion{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.accordion-item{
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.accordion-header-title{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 20px;
    cursor:pointer;
    border:0;
    background:#f7f7f7;
    font-size:18px;
    font-weight:600;
}

.accordion-header-title:hover{
    background:#efefef;
}

.accordion-icon{
    transition:.3s;
}

.accordion-item.active .accordion-icon{
    transform:rotate(180deg);
}

.accordion-content-wrapper{
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
    padding:0 20px;
    
}

.accordion-item.active .accordion-content-wrapper{
    padding: 20px;
}

/* Estilos para la tabla de atención prioritaria */
/* Contenedor opcional para permitir scroll horizontal si es necesario */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    font-size: 15px;
}

.table-responsive thead {
    background: #842432;
    color: #fff;
}

.table-responsive thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.table-responsive tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    line-height: 1.5;
}

.table-responsive tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.table-responsive tbody tr:hover {
    background: #eef6fb;
    transition: background .25s ease;
}

.table-responsive tbody td:first-child {
    font-weight: 600;
    color: #842432;
    width: 35%;
}

@media (max-width: 768px) {

    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    th,
    td,
    tr {
        display: block;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive table {
        box-shadow: none;
        background: transparent;
    }

    .table-responsive tbody tr {
        background: #fff;
        border: 1px solid #dce3ea;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
        overflow: hidden;
    }

    .table-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        padding: 14px 18px;
        border-bottom: 1px solid #ececec;
    }

    .table-responsive tbody td:last-child {
        border-bottom: none;
    }

    .table-responsive tbody td::before {
        font-weight: 700;
        color: #005b96;
        flex: 0 0 42%;
    }

    .table-responsive tbody td:nth-child(1)::before {
        content: "Servicio";
    }

    .table-responsive tbody td:nth-child(2)::before {
        content: "¿Cómo se prioriza?";
    }

    .table-responsive tbody td:first-child {
        width: auto;
    }
}