
/* Contenedor responsive */
.custom-orders-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 15px;
    box-sizing: border-box;
    overflow-x: auto;
}

/* Filtros */
.custom-orders-filters {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.custom-orders-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.custom-orders-filter-form input[type="text"],
.custom-orders-filter-form select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.custom-orders-filter-form button {
    background: #19199f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-orders-filter-form button:hover {
    background: #5a1fb8;
}

.reset-filters {
    margin-left: 10px;
    color: #19199f;
    text-decoration: none;
    font-size: 14px;
}

/* Tabla */
.custom-orders-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    background: white;
    margin: 20px 0;
}

.custom-orders-table th {
    background-color: #19199f;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ffbb32;
    color: white;
    font-weight: bold;
}

.custom-orders-table td {
    padding: 10px;
    border-bottom: 1px solid #ffbb32;
    color: #333;
}

.custom-orders-table tr:hover {
    background-color: rgba(255, 81, 8, 0.1);
}

/* Paginación */
.custom-orders-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.custom-orders-pagination a {
    display: block;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.custom-orders-pagination a:hover,
.custom-orders-pagination a.current {
    background: #19199f;
    color: white;
    border-color: #5a1fb8;
}

/* Mensajes */
.custom-orders-container > p {
    text-align: center;
    padding: 20px;
    background: #fff8e1;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-orders-container {
        margin-left: 0;
        padding: 0 10px;
    }
    
    .custom-orders-table {
        min-width: 600px;
    }
    
    .custom-orders-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reset-filters {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }
}





/* Estilos específicos para tabla de abogados */
/* Contenedor principal */
.custom-lawyers-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #19199f;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Filtros */
.custom-lawyers-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.custom-lawyers-filter-form {
    display: flex;
    flex: 1;
    gap: 10px;
}

.custom-lawyers-filter-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-lawyers-filter-form button {
    padding: 8px 15px;
    background: #19199f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.custom-lawyers-reset {
    background: #ffbb32;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Tabla (solo visible en escritorio) */
.custom-lawyers-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    display: table;
}

.custom-lawyers-table th {
    background: #19199f;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #ffbb32;
}

.custom-lawyers-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ffbb32;
    vertical-align: middle;
}

.custom-lawyers-table tr:hover {
    background-color: #ffbb32;
}

.custom-lawyers-table th:nth-child(1),
.custom-lawyers-table td:nth-child(1) {
    width: 70px;
    text-align: center;
}

/* Avatar */
.custom-lawyers-avatar {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 20px;
}

.custom-lawyers-table img {
    max-width: 50px;
    height: auto;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* Botón Zoom */
.custom-lawyers-table td:nth-child(7) {
    text-align: center;
}

.custom-lawyers-table td:nth-child(7) a {
    background: #19199f;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.custom-lawyers-table td:nth-child(7) a:hover {
    background: #19199f;
}

/* Paginación */
.custom-lawyers-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.custom-lawyers-pagination a {
    padding: 8px 15px;
    border: 1px solid #ff5108;
    border-radius: 4px;
    text-decoration: none;
    color: #ffbb32;
}

.custom-lawyers-pagination a.custom-lawyers-current {
    background: #ffbb32;
    color: white;
    border-color: #ff5108;
}

/* Debug */
.custom-lawyers-debug {
    background: #fff8e1;
    border-left: 4px solid #ffbb32;
    padding: 15px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 14px;
}

.custom-lawyers-debug h3 {
    margin-top: 0;
}

/* =================================================== */
/* ESTILOS RESPONSIVE PARA MÓVILES */
/* =================================================== */
@media (max-width: 768px) {
    /* Ocultar tabla en móviles */
    .custom-lawyers-table {
        display: none;
    }
    
    /* Mostrar tarjetas en móviles */
    .custom-lawyers-cards {
        display: block;
        margin-bottom: 20px;
    }
    
    /* Estilos para filtros en móviles */
    .custom-lawyers-filters {
        flex-direction: column;
    }

    .custom-lawyers-filter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Estilos para tarjetas */
    .custom-lawyers-card {
        background: #19199f;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-bottom: 15px;
        overflow: hidden;
    }
    
    .custom-lawyers-card-header {
        display: flex;
        align-items: center;
        padding: 15px;
        background: #19199f;
        border-bottom: 1px solid #ffbb32;
    }
    
    
    .custom-lawyers-card-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #19199f;
    }
    
    .custom-lawyers-card-avatar img {
        width: 100%;
        height: auto;
    }
    
    .custom-lawyers-card-title {
        flex: 1;
    }
    
    .custom-lawyers-card-title h3 {
        margin: 0 0 5px;
        font-size: 16px;
        color: #ffbb32;
    }
    
    .custom-lawyers-card-title p {
        margin: 0;
        font-size: 14px;
        color: #ffbb32;
    }
    
    .custom-lawyers-card-body {
        padding: 15px;
    }
    
    .custom-lawyers-card-row {
        display: flex;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.4;
    }
    
    .custom-lawyers-card-row:last-child {
        margin-bottom: 0;
    }
    
    .custom-lawyers-card-row strong {
        display: inline-block;
        min-width: 70px;
        color: #19199f;
    }
    
    /* Botón Zoom en móviles */
    .custom-lawyers-card-row a {
        background: #19199f;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 13px;
    }
}

/* =================================================== */
/* ESTILOS PARA ESCRITORIO (ocultar tarjetas) */
/* =================================================== */
@media (min-width: 769px) {
    .custom-lawyers-cards {
        display: none;
    }
}

/* Paginación responsive */
@media (max-width: 480px) {
    .custom-lawyers-pagination {
        flex-wrap: wrap;
    }
    
    .custom-lawyers-pagination a {
        padding: 6px 10px;
        font-size: 14px;
        margin-bottom: 5px;
    }
}

