/**
 * Estilos Exclusivos: Gestión de Equipos - VEM Torneos
 * Versión: 4.1.0 - Producción Hardened
 * @package VEM\Torneos
 */

/* REGLA GLOBAL OBLIGATORIA */
.vem-hidden {
    display: none !important;
}

/* ==========================================================================
   1. CONTENEDOR GENERAL Y FILTROS SUPERIORES
   ========================================================================== */
.vem-teams-management-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#vem-teams-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
    display: block !important;
}

/* Encabezado exclusivo de Gestión de Equipos con gama naranja institucional y ensanchado */
.vem-teams-management-wrapper .vem-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff8f1 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-left: 5px solid #ea580c;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(124, 45, 18, 0.06);
    width: 100% !important;
    box-sizing: border-box !important;
}

.vem-teams-management-wrapper .vem-section-header h2 {
    margin: 0 !important;
    color: #7c2d12 !important;
    font-size: 24px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}

.vem-teams-management-wrapper .vem-section-actions {
    flex: 0 0 auto;
}

.vem-teams-management-wrapper #vem-add-team-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px !important;
    background: #ea580c !important;
    border: 1px solid #ea580c !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.vem-teams-management-wrapper #vem-add-team-main-btn:hover {
    background: #c2410c !important;
    border-color: #c2410c !important;
    box-shadow: 0 7px 16px rgba(194, 65, 12, 0.25);
    transform: translateY(-1px);
}

.vem-teams-management-wrapper #vem-add-team-main-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(234, 88, 12, 0.2),
        0 7px 16px rgba(194, 65, 12, 0.22);
}

/* ==========================================================================
   2. TABLA DE EQUIPOS (DATATABLES INTEGRATION Y ENSANCHADO)
   ========================================================================== */
.vem-teams-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 15px 0 !important;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Encabezado Principal adaptado a la gama naranja */
.vem-teams-table thead tr:first-child th {
    background: #ea580c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 14px 12px !important;
    text-align: left;
    font-size: 14px;
    border: none !important;
}

/* Segunda Fila de Filtros */
.vem-teams-table thead tr.vem-teams-column-filters th {
    background: #fff8f1 !important;
    padding: 8px 6px !important;
    border-bottom: 2px solid #fed7aa !important;
}

.vem-teams-table .vem-team-column-filter {
    width: 100% !important;
    height: 34px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    color: #334155 !important;
    box-sizing: border-box !important;
}

.vem-teams-table .vem-team-column-filter:focus {
    border-color: #ea580c !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15) !important;
}

/* Cebreado Visible, Hover y Bordes Laterales Deterministas de Instancia */
.vem-teams-table tbody tr:nth-child(even) {
    background: #f1f5f9;
}
.vem-teams-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.vem-teams-table tbody tr:hover {
    background: #e0f2fe !important;
    transition: background 0.15s ease-in-out;
}

.vem-teams-table tbody td {
    padding: 12px !important;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle !important;
}

/* Barras Laterales Cromáticas por Instancia */
tr.vem-team-stage-row {
    border-left: 4px solid #cbd5e1;
}
tr.vem-team-stage-row.vem-team-stage-color-0 { border-left-color: #64748b; }
tr.vem-team-stage-row.vem-team-stage-color-1 { border-left-color: #3b82f6; }
tr.vem-team-stage-row.vem-team-stage-color-2 { border-left-color: #10b981; }
tr.vem-team-stage-row.vem-team-stage-color-3 { border-left-color: #f59e0b; }
tr.vem-team-stage-row.vem-team-stage-color-4 { border-left-color: #8b5cf6; }
tr.vem-team-stage-row.vem-team-stage-color-5 { border-left-color: #ec4899; }
tr.vem-team-stage-row.vem-team-stage-color-6 { border-left-color: #06b6d4; }
tr.vem-team-stage-row.vem-team-stage-color-7 { border-left-color: #f97316; }
tr.vem-team-stage-row.vem-team-stage-color-8 { border-left-color: #14b8a6; }

/* ==========================================================================
   3. BADGES DE INSTANCIA COMPACTOS
   ========================================================================== */
.vem-team-stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.vem-team-stage-badge.vem-team-stage-color-0 { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.vem-team-stage-badge.vem-team-stage-color-1 { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.vem-team-stage-badge.vem-team-stage-color-2 { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.vem-team-stage-badge.vem-team-stage-color-3 { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.vem-team-stage-badge.vem-team-stage-color-4 { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.vem-team-stage-badge.vem-team-stage-color-5 { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.vem-team-stage-badge.vem-team-stage-color-6 { background: #ecfeff; color: #0e7490; border-color: #c5f6fa; }
.vem-team-stage-badge.vem-team-stage-color-7 { background: #fff7ed; color: #c2410c; border-color: #ffedd5; }
.vem-team-stage-badge.vem-team-stage-color-8 { background: #f0fdfa; color: #0f766e; border-color: #ccfbf1; }

/* ==========================================================================
   4. BOTONES DE ACCIÓN (GRILLA / FILAS)
   ========================================================================== */
.vem-team-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.vem-team-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer;
    line-height: 1 !important;
}

.vem-team-actions .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    display: inline-block;
    vertical-align: middle;
}

/* Integrantes */
.vem-view-players {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: #ffffff !important;
}
.vem-view-players:hover {
    background: #005177 !important;
    border-color: #005177 !important;
}

/* Editar */
.vem-edit-team {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
.vem-edit-team:hover {
    background: #b45309 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}

/* Eliminar */
.vem-delete-team {
    background: #fff5f5 !important;
    border-color: #fee2e2 !important;
    color: #c53030 !important;
}
.vem-delete-team:hover {
    background: #c53030 !important;
    border-color: #c53030 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   5. COMPONENTES NATIVOS DE DATATABLES INTERNOS Y BLINDAJE DE ANCHO ESCRITORIO
   ========================================================================== */
#vem-teams-table_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#vem-teams-table_wrapper .dataTables_scroll {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#vem-teams-table_wrapper .dataTables_scrollHead,
#vem-teams-table_wrapper .dataTables_scrollHeadInner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#vem-teams-table_wrapper .dataTables_scrollHeadInner > table {
    width: 100% !important;
    max-width: 100% !important;
}

#vem-teams-table_wrapper .dataTables_scrollBody {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#vem-teams-table_wrapper .dataTables_scrollBody > table {
    width: 100% !important;
    max-width: 100% !important;
}

#vem-teams-table_wrapper .dataTables_length,
#vem-teams-table_wrapper .dataTables_filter {
    padding: 10px 0;
    font-size: 14px;
    color: #475569;
}

#vem-teams-table_wrapper .dataTables_filter input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    margin-left: 8px;
    background: #ffffff;
}

#vem-teams-table_wrapper .dataTables_info {
    padding-top: 15px;
    font-size: 13px;
    color: #64748b;
}

#vem-teams-table_wrapper .dataTables_paginate {
    padding-top: 12px;
}

#vem-teams-table_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin-left: 4px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 600;
}

#vem-teams-table_wrapper .dataTables_paginate .paginate_button.current,
#vem-teams-table_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #ea580c !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}

#vem-teams-table_wrapper .dataTables_paginate .paginate_button:hover {
    background: #fff8f1 !important;
    color: #ea580c !important;
}

/* ==========================================================================
   6. MODAL ESTRUCTURAL DE GESTIÓN (FAIL-SAFE CENTRADO)
   ========================================================================== */
#vem-team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.58);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99990;
    box-sizing: border-box;
    padding: 20px;
}

#vem-team-modal .vem-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 760px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: vemModalFadeIn 0.2s ease-out;
    overflow: hidden;
}

@keyframes vemModalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

#vem-team-modal .vem-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

#vem-team-modal h3#vem-team-modal-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

#vem-team-modal .vem-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.15s;
}

#vem-team-modal .vem-modal-close-btn:hover {
    color: #0f172a;
}

#vem-team-modal .vem-modal-body {
    padding: 24px;
    overflow-y: auto;
    box-sizing: border-box;
}

#vem-team-modal .vem-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================================================
   7. RESUMEN INFORMATIVO DE EDICIÓN (VISUAL SHIELD)
   ========================================================================== */
.vem-team-edit-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

/* Cambiar dinámicamente si se abre en modo lectura restrictivo */
.vem-team-edit-summary {
    background-color: #f0f9ff;
    border-color: #bae6fd;
}

.vem-team-edit-summary-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #0369a1;
}

.vem-team-edit-summary-header .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.vem-team-edit-summary-header strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0c4a6e;
}

.vem-team-edit-summary-header small {
    display: block;
    font-size: 11px;
    color: #0284c7;
    margin-top: 1px;
    line-height: 1.35;
}

/* Estructura de Grilla de Solo Lectura */
.vem-team-edit-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.vem-team-summary-item:nth-child(1),
.vem-team-summary-item:nth-child(2),
.vem-team-summary-item:nth-child(3) {
    grid-column: span 2;
}

.vem-team-summary-item:nth-child(4) {
    grid-column: 1 / -1;
}

.vem-team-summary-item:nth-child(5),
.vem-team-summary-item:nth-child(6) {
    grid-column: span 3;
}

.vem-team-summary-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 11px;
    box-sizing: border-box;
}

.vem-team-summary-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.vem-team-summary-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Atenuación semántica de valores vacíos */
.vem-team-summary-item strong:contains("Aún no cargado"),
#vem-team-summary-coach:empty,
#vem-team-summary-delegate:empty {
    color: #94a3b8;
    font-weight: 400;
}

.vem-team-summary-item small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.3;
}

/* ==========================================================================
   8. FORMULARIO E INPUTS DEL MODAL
   ========================================================================== */
#vem-team-form .vem-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#vem-team-form .vem-form-group {
    display: flex;
    flex-direction: column;
}

/* Forzar que el nombre ocupe ancho completo si los hermanos se ocultan */
#vem-team-form .vem-form-group:not(.vem-team-create-only) {
    grid-column: 1 / -1;
}

#vem-team-form label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

#vem-team-form .vem-input-field,
#vem-team-form select {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
}

#vem-team-form .vem-input-field:focus,
#vem-team-form select:focus {
    border-color: #ea580c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

#vem-team-name {
    width: 100% !important;
}

/* Campo principal editable */
#vem-team-form .vem-team-name-field {
    grid-column: 1 / -1;
    padding: 16px;
    background: #fff8f1;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
    border-radius: 10px;
}

#vem-team-form .vem-team-name-field label {
    color: #7c2d12;
    font-size: 14px;
    font-weight: 700;
}

#vem-team-form .vem-team-name-field #vem-team-name {
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 600;
    border-color: #fed7aa !important;
}

#vem-team-form .vem-team-field-help {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

/* Responsable dentro del sistema */
.vem-team-owner-field-wrapper {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    box-sizing: border-box;
}

.vem-team-owner-field-wrapper .vem-form-group {
    grid-column: auto;
    width: 100%;
    margin: 0;
}

.vem-team-owner-field-wrapper .vem-form-group label {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

/* Primera ayuda: explicación del selector */
.vem-team-owner-field-wrapper .vem-form-group .vem-team-owner-help {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

/* Segunda ayuda: alcance del cambio */
.vem-team-owner-field-wrapper > .vem-team-owner-help {
    display: block;
    position: relative;
    margin-top: 12px;
    padding: 10px 12px 10px 34px;
    background: #fff8f1;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #7c2d12;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.vem-team-owner-field-wrapper > .vem-team-owner-help::before {
    content: "i";
    position: absolute;
    top: 10px;
    left: 12px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ea580c;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}

/* ==========================================================================
   9. BOTONES DE ACCIÓN PRINCIPALES DEL MODAL
   ========================================================================== */
#vem-team-modal-cancel,
#vem-team-modal-save {
    height: 40px;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-sizing: border-box;
}

#vem-team-modal-save {
    background: #ea580c !important;
    border: 1px solid #ea580c !important;
    color: #ffffff !important;
}
#vem-team-modal-save:hover {
    background: #c2410c !important;
    border-color: #c2410c !important;
}

#vem-team-modal-cancel {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
#vem-team-modal-cancel:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* ==========================================================================
   10. ESTADOS DE FLUJO INTERNOS (LOADING, ERROR Y VACÍO)
   ========================================================================== */
.vem-teams-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.vem-teams-loading .dashicons.spin {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #ea580c;
    animation: vemSpin 1s infinite linear;
}

@keyframes vemSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vem-teams-empty-state {
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    font-style: italic;
    font-size: 14px;
}

.vem-error-msg {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================================
   11. SECCIÓN ADAPTATIVA Y RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */

@media (min-width: 1025px) {
    .vem-teams-management-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: -1%;
        margin-right: -1%;
    }
}

/* TABLETS (DISEÑO INTERMEDIO) */
@media (min-width: 641px) and (max-width: 1024px) {
    #vem-team-modal .vem-modal-content {
        max-width: 90%;
    }
}

/* MÓVILES (PANTALLAS COMPACTAS) */
@media (max-width: 640px) {
    #vem-team-modal {
        padding: 6px;
    }

    #vem-team-modal .vem-modal-content {
        max-height: 98vh;
        border-radius: 10px;
    }

    #vem-team-modal .vem-modal-header {
        padding: 12px 14px;
    }

    #vem-team-modal h3#vem-team-modal-title {
        font-size: 16px !important;
    }

    #vem-team-modal .vem-modal-close-btn {
        font-size: 24px;
    }

    #vem-team-modal .vem-modal-body {
        padding: 10px;
    }

    .vem-teams-management-wrapper .vem-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }

    .vem-teams-management-wrapper .vem-section-header h2 {
        font-size: 20px !important;
    }

    .vem-teams-management-wrapper .vem-section-actions,
    .vem-teams-management-wrapper #vem-add-team-main-btn {
        width: 100%;
    }

    .vem-teams-management-wrapper #vem-add-team-main-btn {
        min-height: 42px;
    }

    .vem-team-edit-summary {
        padding: 9px;
        margin-bottom: 10px;
    }

    .vem-team-edit-summary-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    .vem-team-edit-summary-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .vem-team-summary-item:nth-child(1),
    .vem-team-summary-item:nth-child(2),
    .vem-team-summary-item:nth-child(3),
    .vem-team-summary-item:nth-child(4),
    .vem-team-summary-item:nth-child(5),
    .vem-team-summary-item:nth-child(6) {
        grid-column: 1 / -1;
    }

    .vem-team-summary-item {
        padding: 8px 9px;
    }

    #vem-team-form .vem-form-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    #vem-team-form .vem-team-name-field,
    .vem-team-owner-field-wrapper {
        padding: 10px;
    }

    #vem-team-form label,
    #vem-team-form .vem-team-name-field label,
    .vem-team-owner-field-wrapper .vem-form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    #vem-team-form .vem-input-field,
    #vem-team-form select,
    #vem-team-form .vem-team-name-field #vem-team-name {
        height: 39px !important;
        min-height: 39px !important;
        padding: 0 9px !important;
        font-size: 13px !important;
    }

    #vem-team-form .vem-team-field-help,
    .vem-team-owner-field-wrapper .vem-form-group .vem-team-owner-help {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.3;
    }

    .vem-team-owner-field-wrapper > .vem-team-owner-help {
        margin-top: 7px;
        padding: 7px 9px 7px 30px;
        font-size: 11px;
        line-height: 1.3;
    }

    .vem-team-owner-field-wrapper > .vem-team-owner-help::before {
        top: 7px;
        left: 10px;
    }

    #vem-team-modal .vem-modal-footer {
        flex-direction: row;
        padding: 9px 12px;
        gap: 8px;
    }

    #vem-team-modal-cancel,
    #vem-team-modal-save {
        width: 50% !important;
        height: 38px;
        padding: 0 10px !important;
        font-size: 13px !important;
    }

    /* Ocultamiento del texto de los botones en fila manteniendo el Core Táctil */
    .vem-team-actions .button {
        min-width: 40px;
        height: 40px;
        padding: 0 !important;
        justify-content: center;
    }

    .vem-team-actions .button .vem-button-label {
        display: none !important;
    }

    .vem-team-actions .button .dashicons {
        margin-right: 0 !important;
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
}