/* ============================================
   UCEVA Preinscripcion - Design System
   Color primario: Verde institucional #00A850
   ============================================ */

/* ============================================
   1. Variables de color
   ============================================ */
:root {
    --uceva-primary: #00A850;
    --uceva-primary-dark: #008c43;
    --uceva-primary-light: #e8f5ee;
    --uceva-primary-bg: rgba(0, 168, 80, 0.06);
    --uceva-primary-focus: rgba(0, 168, 80, 0.2);
    --uceva-primary-border: rgba(0, 168, 80, 0.4);
    --uceva-primary-gradient: linear-gradient(135deg, #00A850, #00c060);
    --uceva-text-primary: #2c3e50;
    --uceva-text-body: #333;
    --uceva-text-secondary: #666;
    --uceva-text-muted: #999;
    --uceva-text-disabled: #aaa;
    --uceva-bg-white: #fff;
    --uceva-bg-light: #fafafa;
    --uceva-bg-hover: #f4f4f4;
    --uceva-bg-disabled: #f0f1f3;
    --uceva-bg-page: #f0f2f5;
    --uceva-border: #e0e0e0;
    --uceva-border-hover: #bbb;
    --uceva-radius-sm: 6px;
    --uceva-radius-md: 8px;
    --uceva-radius-lg: 10px;
    --uceva-radius-xl: 14px;
    --uceva-radius-round: 50%;
    --uceva-shadow-sm: 0 1px 5px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --uceva-shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
    --uceva-shadow-lg: 0 8px 30px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    --uceva-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. Keyframe Animations
   ============================================ */
@keyframes ucevaIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes ucevaIconPulse {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.3) rotate(-15deg); }
    60% { transform: scale(1.1) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes ucevaPanelIn {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ucevaFieldFocus {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0, 168, 80, 0.15); }
    50% { box-shadow: 0 0 0 5px rgba(0, 168, 80, 0.1); }
}

@keyframes ucevaShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes ucevaLineExpand {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes ucevaDotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}

@keyframes ucevaSpinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ucevaSpinnerDash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -40; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -120; }
}

@keyframes ucevaFieldErrorPulse {
    0% { border-color: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
    50% { border-color: #e53935; box-shadow: 0 0 0 6px rgba(229, 57, 53, 0); }
    100% { border-color: var(--uceva-border); box-shadow: none; }
}

/* ============================================
   3. Body & Page Background
   ============================================ */
body {
    background: var(--uceva-bg-page) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   4. Main Form Panel - Centered with max-width
   ============================================ */
#IdFormularioResponsivePreinscripcionUceva {
    background: transparent !important;
    border: none !important;
    margin: 0 auto !important;
    max-width: 1100px !important;
    padding: 0 16px !important;
}

#IdFormularioResponsivePreinscripcionUceva > .x-panel-body {
    background: transparent !important;
    border: none !important;
}

/* ============================================
   5. Panel Styling (all child panels)
   ============================================ */
#IdFormularioResponsivePreinscripcionUceva .x-panel {
    background: var(--uceva-bg-white) !important;
    border-radius: var(--uceva-radius-xl) !important;
    box-shadow: var(--uceva-shadow-sm) !important;
    border: none !important;
    margin-bottom: 14px !important;
    transition: box-shadow var(--uceva-transition);
    animation: ucevaPanelIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

#IdFormularioResponsivePreinscripcionUceva .x-panel:hover {
    box-shadow: var(--uceva-shadow-md) !important;
}

/* Panel body - override green bodyStyle */
#IdFormularioResponsivePreinscripcionUceva .x-panel > .x-panel-body {
    background: var(--uceva-bg-white) !important;
    padding: 16px 20px 20px !important;
    border: none !important;
    border-radius: 0 0 var(--uceva-radius-xl) var(--uceva-radius-xl) !important;
}

/* Panel header */
#IdFormularioResponsivePreinscripcionUceva .x-panel > .x-panel-header {
    overflow: hidden !important;
}

/* ============================================
   6. Panel Headers
   ============================================ */
#IdFormularioResponsivePreinscripcionUceva .x-panel-header {
    background: linear-gradient(135deg, rgba(0,168,80,0.08), rgba(0,168,80,0.03)) !important;
    background-image: none;
    border: none !important;
    border-bottom: 2px solid var(--uceva-primary) !important;
    padding: 14px 20px !important;
    border-radius: var(--uceva-radius-xl) var(--uceva-radius-xl) 0 0 !important;
    position: relative;
    transition: background var(--uceva-transition);
}

#IdFormularioResponsivePreinscripcionUceva .x-panel-header:hover {
    background: linear-gradient(135deg, rgba(0,168,80,0.12), rgba(0,168,80,0.05)) !important;
}

/* Animated line under header */
#IdFormularioResponsivePreinscripcionUceva .x-panel-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--uceva-primary), transparent);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#IdFormularioResponsivePreinscripcionUceva .x-panel:hover > .x-panel-header::after {
    width: 100%;
}

/* Header icon - green badge, properly spaced from title */
#IdFormularioResponsivePreinscripcionUceva .x-panel-header .x-panel-header-icon-default,
#IdFormularioResponsivePreinscripcionUceva .x-panel-header .x-title-icon-default {
    color: var(--uceva-bg-white) !important;
    background: var(--uceva-primary) !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    border-radius: var(--uceva-radius-md) !important;
    font-size: 13px !important;
    margin-right: 10px !important;
    padding: 0 !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--uceva-transition);
    animation: ucevaIconFloat 3s ease-in-out infinite;
}

#IdFormularioResponsivePreinscripcionUceva .x-panel:hover > .x-panel-header .x-panel-header-icon-default,
#IdFormularioResponsivePreinscripcionUceva .x-panel:hover > .x-panel-header .x-title-icon-default {
    animation: ucevaIconPulse 0.6s ease, ucevaIconFloat 3s ease-in-out 0.6s infinite;
    box-shadow: 0 4px 12px rgba(0, 168, 80, 0.3);
    transform: scale(1.1);
}

/* Header layout fix - prevent icon overlap with title */
#IdFormularioResponsivePreinscripcionUceva .x-panel-header .x-title {
    overflow: visible !important;
    padding-left: 0 !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-panel-header .x-title-text {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--uceva-text-primary) !important;
    letter-spacing: 0.3px !important;
    transition: color var(--uceva-transition);
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    padding-left: 40px !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-panel:hover > .x-panel-header .x-title-text {
    color: var(--uceva-primary-dark) !important;
}

/* ============================================
   7. Form Fields
   ============================================ */
#IdFormularioResponsivePreinscripcionUceva .x-form-trigger-wrap {
    border: none !important;
    background: transparent !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-form-text-wrap {
    border: none !important;
    background: transparent !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-form-item-body {
    background: transparent !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-form-field {
    border: 1.5px solid var(--uceva-border) !important;
    border-radius: var(--uceva-radius-md) !important;
    background: var(--uceva-bg-light) !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--uceva-text-body) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-form-field:hover {
    border-color: var(--uceva-border-hover) !important;
    background: var(--uceva-bg-white) !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-form-field:focus {
    border-color: var(--uceva-primary) !important;
    background: var(--uceva-bg-white) !important;
    box-shadow: 0 0 0 3px var(--uceva-primary-focus) !important;
    outline: none !important;
}

/* Read-only fields */
#IdFormularioResponsivePreinscripcionUceva .x-form-readonly .x-form-field,
#IdFormularioResponsivePreinscripcionUceva .x-form-field[readonly] {
    background: #f5f5f5 !important;
    color: #888 !important;
}

/* Field labels */
#IdFormularioResponsivePreinscripcionUceva .x-form-item-label {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #555 !important;
    letter-spacing: 0.2px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Combo arrow trigger */
#IdFormularioResponsivePreinscripcionUceva .x-form-arrow-trigger {
    background: transparent !important;
    border: none !important;
    color: var(--uceva-text-muted) !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

#IdFormularioResponsivePreinscripcionUceva .x-form-arrow-trigger:hover {
    color: var(--uceva-primary) !important;
}

/* Date trigger */
#IdFormularioResponsivePreinscripcionUceva .x-form-date-trigger,
#IdFormularioResponsivePreinscripcionUceva .x-form-trigger {
    background: transparent !important;
    border: none !important;
    color: var(--uceva-text-muted) !important;
    transition: color 0.2s ease;
}

#IdFormularioResponsivePreinscripcionUceva .x-form-trigger:hover {
    color: var(--uceva-primary) !important;
}

/* ============================================
   8. Combo Dropdown (BoundList)
   ============================================ */
.x-boundlist {
    border: none !important;
    border-radius: var(--uceva-radius-lg) !important;
    box-shadow: var(--uceva-shadow-lg) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overflow: hidden;
    padding: 6px 0 !important;
    animation: ucevaPanelIn 0.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.x-boundlist-item {
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--uceva-text-body) !important;
    letter-spacing: 0.2px;
    border: none !important;
    margin: 0 6px !important;
    border-radius: var(--uceva-radius-sm) !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif !important;
}

.x-boundlist-item-over {
    background: rgba(0, 168, 80, 0.08) !important;
    color: var(--uceva-primary-dark) !important;
    transform: translateX(2px);
}

.x-boundlist-selected {
    background: rgba(0, 168, 80, 0.14) !important;
    color: var(--uceva-primary-dark) !important;
    font-weight: 600 !important;
}

.x-boundlist-selected.x-boundlist-item-over {
    background: rgba(0, 168, 80, 0.2) !important;
}

.x-boundlist .x-list-plain {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}

/* Empty list message */
.uceva-empty-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px;
    color: var(--uceva-text-muted);
    font-size: 13px;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

.uceva-empty-list i {
    font-size: 16px;
    opacity: 0.5;
}

.x-boundlist .x-list-plain::-webkit-scrollbar { width: 5px; }
.x-boundlist .x-list-plain::-webkit-scrollbar-track { background: transparent; }
.x-boundlist .x-list-plain::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
.x-boundlist .x-list-plain::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ============================================
   9. Buttons
   ============================================ */

/* Primary action buttons (Enviar, Guardar) */
#IdFormularioResponsivePreinscripcionUceva .x-btn {
    border-radius: var(--uceva-radius-lg) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    transition: all var(--uceva-transition) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

/* Green buttons */
#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background-color:#00A850"],
#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background-color: #00A850"],
#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background:#00A850"] {
    background: var(--uceva-primary-gradient) !important;
    box-shadow: 0 3px 12px rgba(0, 168, 80, 0.3), 0 1px 4px rgba(0,0,0,0.1) !important;
    border-radius: var(--uceva-radius-xl) !important;
    color: white !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background-color:#00A850"]:hover,
#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background-color: #00A850"]:hover,
#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background:#00A850"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(0, 168, 80, 0.4), 0 2px 8px rgba(0,0,0,0.12) !important;
    filter: brightness(1.08);
}

#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background-color:#00A850"]:active,
#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background-color: #00A850"]:active,
#IdFormularioResponsivePreinscripcionUceva .x-btn[style*="background:#00A850"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 168, 80, 0.3) !important;
}

/* Button inner text */
#IdFormularioResponsivePreinscripcionUceva .x-btn .x-btn-inner {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}

/* Button icons */
#IdFormularioResponsivePreinscripcionUceva .x-btn .x-btn-icon-el {
    transition: transform var(--uceva-transition);
}

#IdFormularioResponsivePreinscripcionUceva .x-btn:hover .x-btn-icon-el {
    transform: scale(1.15) rotate(-5deg);
}

/* ============================================
   10. Toolbar
   ============================================ */
#IdFormularioResponsivePreinscripcionUceva .x-toolbar {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 6px 16px !important;
}

/* ============================================
   11. Logo Panel
   ============================================ */
#id_panel_logo_formulario {
    background: var(--uceva-bg-white) !important;
    border-radius: var(--uceva-radius-xl) !important;
    box-shadow: var(--uceva-shadow-sm) !important;
    overflow: hidden !important;
}

#id_panel_logo_formulario > .x-panel-body {
    background: var(--uceva-bg-white) !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#id_panel_logo_formulario img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   12. Verification Panel (reCAPTCHA note)
   ============================================ */
#id_panel_informacion_de_verificacion {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

#id_panel_informacion_de_verificacion > .x-panel-body {
    background: transparent !important;
}

.uceva-recaptcha-note {
    text-align: center;
    font-size: 11px;
    color: var(--uceva-text-muted);
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
}

.uceva-recaptcha-note a {
    color: var(--uceva-primary);
    text-decoration: none;
}

.uceva-recaptcha-note a:hover {
    text-decoration: underline;
}

.uceva-recaptcha-note i {
    margin-right: 4px;
}

/* ============================================
   13. Field Error Highlight
   ============================================ */
.uceva-field-error-highlight,
.uceva-field-error-highlight .x-form-field {
    animation: ucevaFieldErrorPulse 1.5s ease 2 !important;
    border-color: #e53935 !important;
}

/* ============================================
   14. SweetAlert2 UCEVA Theme - Card Style
   ============================================ */
.uceva-swal-popup {
    border-radius: 20px !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    box-shadow: 0 25px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08) !important;
    border: none !important;
    padding: 28px 24px 20px !important;
    background: white !important;
    overflow: visible !important;
}

/* No top bar on swal popups */
.uceva-swal-popup::before {
    display: none !important;
}

.uceva-swal-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--uceva-text-primary) !important;
    margin-top: 4px !important;
}

/* Card body text */
.uceva-swal-popup .swal2-html-container {
    font-size: 14px !important;
    color: var(--uceva-text-secondary) !important;
    line-height: 1.6 !important;
    margin-top: 8px !important;
    padding: 0 8px !important;
}

/* Card icon */
.uceva-swal-popup .swal2-icon {
    margin: 12px auto 8px !important;
    transform: scale(0.9);
}

/* Card buttons area */
.uceva-swal-popup .swal2-actions {
    margin-top: 18px !important;
    gap: 10px;
}

.uceva-swal-confirm {
    background: var(--uceva-primary-gradient) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 11px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 4px 14px rgba(0, 168, 80, 0.3) !important;
    transition: all var(--uceva-transition) !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
}

.uceva-swal-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 168, 80, 0.4) !important;
    filter: brightness(1.08);
}

.uceva-swal-confirm:active {
    transform: translateY(0) !important;
}

.uceva-swal-cancel {
    background: #f5f5f5 !important;
    color: var(--uceva-text-body) !important;
    border: 1.5px solid var(--uceva-border) !important;
    border-radius: 12px !important;
    padding: 11px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all var(--uceva-transition) !important;
    font-family: 'Inter', sans-serif !important;
}

.uceva-swal-cancel:hover {
    background: #eee !important;
    border-color: #ccc !important;
    transform: translateY(-1px) !important;
}

/* Card close button */
.uceva-swal-popup .swal2-close {
    color: var(--uceva-text-muted) !important;
    font-size: 28px !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.uceva-swal-popup .swal2-close:hover {
    color: var(--uceva-text-body) !important;
    transform: rotate(90deg);
}

/* Swal icons color override */
.swal2-icon.swal2-success {
    border-color: var(--uceva-primary) !important;
    color: var(--uceva-primary) !important;
}

.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
    background-color: var(--uceva-primary) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(0, 168, 80, 0.3) !important;
}

/* Toast styling - also card-like */
.swal2-popup.swal2-toast {
    border-radius: 14px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06) !important;
    font-family: 'Inter', sans-serif !important;
    border-left: 4px solid var(--uceva-primary) !important;
    padding: 12px 16px !important;
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar {
    background: var(--uceva-primary) !important;
}

/* Backdrop */
.swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.35) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ============================================
   16. Datepicker - Modern Calendar
   ============================================ */
.x-datepicker {
    border: none !important;
    border-radius: var(--uceva-radius-xl) !important;
    box-shadow: var(--uceva-shadow-lg) !important;
    overflow: hidden;
    font-family: 'Inter', sans-serif !important;
    animation: ucevaPanelIn 0.2s ease both;
}

.x-datepicker-header {
    background: linear-gradient(135deg, var(--uceva-primary), #00c060) !important;
    border: none !important;
    padding: 14px 10px !important;
}

.x-datepicker-month .x-btn-inner-default-small {
    color: white !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
}

.x-datepicker-month .x-btn-default-small {
    background: transparent !important;
    border: none !important;
}

.x-datepicker-prev,
.x-datepicker-next {
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.x-datepicker-prev:hover,
.x-datepicker-next:hover {
    opacity: 1;
    transform: scale(1.15);
}

.x-datepicker-prev a,
.x-datepicker-next a {
    color: white !important;
}

.x-datepicker-column-header {
    color: var(--uceva-text-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif !important;
    padding: 10px 0 6px !important;
}

.x-datepicker-cell {
    padding: 2px !important;
}

.x-datepicker-date {
    border-radius: var(--uceva-radius-sm) !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    text-align: center;
    transition: all 0.15s ease;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer;
    border: none !important;
}

.x-datepicker-date:hover {
    background: rgba(0, 168, 80, 0.08) !important;
    color: var(--uceva-primary-dark) !important;
}

.x-datepicker-selected .x-datepicker-date {
    background: var(--uceva-primary) !important;
    color: white !important;
    font-weight: 600 !important;
}

.x-datepicker-today .x-datepicker-date {
    border: none !important;
    font-weight: 700 !important;
    color: var(--uceva-primary) !important;
}

.x-datepicker-today.x-datepicker-selected .x-datepicker-date {
    color: white !important;
}

.x-datepicker-prevday .x-datepicker-date,
.x-datepicker-nextday .x-datepicker-date {
    color: #ccc !important;
}

.x-datepicker-footer {
    border-top: 1px solid var(--uceva-border) !important;
    background: var(--uceva-bg-light) !important;
    padding: 8px !important;
}

.x-datepicker-footer .x-btn {
    border: 1.5px solid var(--uceva-primary) !important;
    border-radius: var(--uceva-radius-md) !important;
    background: white !important;
    padding: 4px 16px !important;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif !important;
}

.x-datepicker-footer .x-btn .x-btn-inner-default-small {
    color: var(--uceva-primary) !important;
    font-weight: 600 !important;
}

.x-datepicker-footer .x-btn:hover {
    background: var(--uceva-primary) !important;
}

.x-datepicker-footer .x-btn:hover .x-btn-inner-default-small {
    color: white !important;
}

/* Month/Year picker inside datepicker */
.x-datepicker-month-picker {
    border: none !important;
    background: white !important;
    font-family: 'Inter', sans-serif !important;
}

.x-datepicker-mp-item {
    border-radius: var(--uceva-radius-sm) !important;
    transition: background 0.15s ease;
    font-family: 'Inter', sans-serif !important;
}

.x-datepicker-mp-item:hover {
    background: rgba(0, 168, 80, 0.08) !important;
}

.x-datepicker-mp-sel {
    background: var(--uceva-primary) !important;
    color: white !important;
    border-radius: var(--uceva-radius-sm) !important;
}

/* Date trigger icon */
.x-form-date-trigger {
    background: transparent !important;
    border: none !important;
    color: var(--uceva-primary) !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.x-form-date-trigger:hover {
    color: var(--uceva-primary-dark) !important;
    transform: scale(1.1);
}

/* ============================================
   17. MessageBox Override (fallback)
   ============================================ */
.x-message-box {
    border-radius: var(--uceva-radius-xl) !important;
    box-shadow: var(--uceva-shadow-lg) !important;
    border: none !important;
}

.x-message-box .x-window-header {
    background: var(--uceva-primary) !important;
    border: none !important;
    border-radius: var(--uceva-radius-xl) var(--uceva-radius-xl) 0 0 !important;
}

.x-message-box .x-window-header .x-title-text {
    color: white !important;
    font-weight: 600 !important;
}

.x-message-box .x-btn {
    border-radius: var(--uceva-radius-md) !important;
}

/* ============================================
   18. Window Override
   ============================================ */
.x-window {
    border-radius: var(--uceva-radius-xl) !important;
    box-shadow: var(--uceva-shadow-lg) !important;
    border: none !important;
    overflow: hidden;
}

.x-window > .x-window-header {
    background: var(--uceva-primary) !important;
    border: none !important;
}

.x-window > .x-window-header .x-title-text {
    color: white !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
}

/* ============================================
   19. Grid (search results)
   ============================================ */
.x-grid {
    border-radius: var(--uceva-radius-lg) !important;
    overflow: hidden;
}

.x-grid .x-grid-header-ct {
    background: var(--uceva-bg-light) !important;
    border-bottom: 2px solid var(--uceva-border) !important;
}

.x-grid .x-column-header {
    background: transparent !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
}

.x-grid .x-grid-row:hover .x-grid-cell {
    background: rgba(0, 168, 80, 0.06) !important;
}

.x-grid .x-grid-row-selected .x-grid-cell {
    background: rgba(0, 168, 80, 0.12) !important;
}

/* ============================================
   20. Textarea
   ============================================ */
#IdFormularioResponsivePreinscripcionUceva .x-form-textarea {
    border: 1.5px solid var(--uceva-border) !important;
    border-radius: var(--uceva-radius-md) !important;
    background: var(--uceva-bg-light) !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#IdFormularioResponsivePreinscripcionUceva .x-form-textarea:focus {
    border-color: var(--uceva-primary) !important;
    box-shadow: 0 0 0 3px var(--uceva-primary-focus) !important;
}

/* ============================================
   21. Page Scrollbar
   ============================================ */
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 168, 80, 0.3) transparent;
}

body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: rgba(0, 168, 80, 0.3); border-radius: 10px; }
body::-webkit-scrollbar-thumb:hover { background: rgba(0, 168, 80, 0.5); }

/* ============================================
   22. Responsive
   ============================================ */
@media (max-width: 800px) {
    #IdFormularioResponsivePreinscripcionUceva {
        padding: 0 8px !important;
    }
}

@media (max-width: 425px) {
    #IdFormularioResponsivePreinscripcionUceva .x-panel-header .x-title-text {
        font-size: 13px !important;
    }

    #IdFormularioResponsivePreinscripcionUceva .x-form-field {
        font-size: 16px !important;
    }

    .uceva-swal-popup {
        width: 95% !important;
    }
}

/* ============================================
   23. Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   24. Focus-visible (keyboard navigation)
   ============================================ */
#IdFormularioResponsivePreinscripcionUceva .x-form-field:focus-visible {
    box-shadow: 0 0 0 3px var(--uceva-primary-focus) !important;
    outline: none !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--uceva-primary-focus) !important;
    outline: none !important;
}

/* ============================================
   25a. No Preinscripciones Message
   ============================================ */
.uceva-no-preinscripciones {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--uceva-bg-page);
    font-family: 'Inter', sans-serif;
}

.uceva-no-preinscripciones-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.uceva-no-preinscripciones-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(135deg, #f57c00, #ffb74d);
}

.uceva-no-preinscripciones-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(245, 124, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.uceva-no-preinscripciones-icon i {
    font-size: 32px;
    color: #f57c00;
}

.uceva-no-preinscripciones-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--uceva-text-primary);
    margin: 0 0 10px;
}

.uceva-no-preinscripciones-card p {
    font-size: 14px;
    color: var(--uceva-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   25b. Loading Mask - Modern Spinner
   ============================================ */
.x-mask {
    background: rgba(255, 255, 255, 0.75) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.x-mask-msg {
    background: var(--uceva-bg-white) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06) !important;
    padding: 24px 32px !important;
}

.x-mask-msg-inner {
    background: transparent !important;
    border: none !important;
    background-image: none !important;
}

.x-mask-msg-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--uceva-text-secondary) !important;
    background: transparent !important;
    background-image: none !important;
    padding-left: 36px !important;
    position: relative !important;
}

.x-mask-msg-text::before {
    content: '' !important;
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: -10px !important;
    border: 3px solid rgba(0, 168, 80, 0.2) !important;
    border-top-color: var(--uceva-primary) !important;
    border-radius: 50% !important;
    animation: ucevaSpinnerRotate 0.8s linear infinite !important;
    background: none !important;
    background-image: none !important;
}

/* ============================================
   25c. Admin Buttons - Consistent Style
   ============================================ */
#id_panel_botones_funciones_para_perfiles .x-btn {
    border-radius: var(--uceva-radius-lg) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.3px !important;
    padding: 8px 14px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    margin: 4px !important;
}

#id_panel_botones_funciones_para_perfiles .x-btn:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.08);
}

#id_panel_botones_funciones_para_perfiles .x-btn .x-btn-inner {
    font-family: 'Inter', sans-serif !important;
    color: white !important;
}

/* ============================================
   25d. Grid Enhanced
   ============================================ */
.x-grid .x-grid-cell {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    border-color: #f0f0f0 !important;
    padding: 6px 8px !important;
}

.x-grid .x-grid-row-alt .x-grid-cell {
    background: var(--uceva-bg-light) !important;
}

.x-grid .x-column-header-text {
    font-weight: 600 !important;
    color: var(--uceva-text-primary) !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.x-grid .x-column-header-over {
    background: rgba(0, 168, 80, 0.06) !important;
}

/* Grid paging toolbar */
.x-grid .x-toolbar-docked-bottom {
    background: var(--uceva-bg-light) !important;
    border-top: 1px solid var(--uceva-border) !important;
    font-family: 'Inter', sans-serif !important;
}

/* ============================================
   25e. Autorizacion Imagen Panel
   ============================================ */
#id_panel_autorizacion_uso_imagen > .x-panel-header {
    background: linear-gradient(135deg, rgba(0,168,80,0.08), rgba(0,168,80,0.03)) !important;
}

#id_panel_autorizacion_uso_imagen .x-fieldset {
    border: 1.5px solid var(--uceva-border) !important;
    border-radius: var(--uceva-radius-lg) !important;
    padding: 12px !important;
    margin: 8px 0 !important;
}

#id_panel_autorizacion_uso_imagen .x-fieldset-header {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: var(--uceva-text-primary) !important;
}

/* ============================================
   25f. Legal Text Cards (replaces HtmlEditor)
   ============================================ */
.uceva-legal-card {
    background: var(--uceva-bg-light);
    border: 1px solid var(--uceva-border);
    border-radius: var(--uceva-radius-lg);
    max-height: 160px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}

.uceva-legal-card-body {
    padding: 14px 18px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--uceva-text-secondary);
}

.uceva-legal-card-body p { margin: 0 0 8px; }
.uceva-legal-card-body b,
.uceva-legal-card-body strong { color: var(--uceva-text-primary); font-weight: 600; }

.uceva-legal-card::-webkit-scrollbar { width: 5px; }
.uceva-legal-card::-webkit-scrollbar-track { background: transparent; }
.uceva-legal-card::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }

/* ============================================
   25g. Direction DIAN Window + All Windows
   ============================================ */
.x-window {
    border-radius: var(--uceva-radius-xl) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08) !important;
    border: none !important;
    overflow: hidden;
}

.x-window > .x-window-header {
    background: linear-gradient(135deg, var(--uceva-primary), #00c060) !important;
    border: none !important;
    padding: 12px 18px !important;
}

.x-window > .x-window-header .x-title-text {
    color: white !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}

.x-window > .x-window-header .x-tool-img {
    color: white !important;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.x-window > .x-window-header .x-tool-img:hover { opacity: 1; }

.x-window > .x-panel-body,
.x-window > .x-window-body {
    background: var(--uceva-bg-white) !important;
    border: none !important;
}

.x-window .x-toolbar-docked-bottom {
    background: var(--uceva-bg-light) !important;
    border-top: 1px solid var(--uceva-border) !important;
    padding: 8px 12px !important;
}

.x-window .x-toolbar-docked-bottom .x-btn {
    border-radius: var(--uceva-radius-md) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}

.x-window .x-form-field {
    border: 1.5px solid var(--uceva-border) !important;
    border-radius: var(--uceva-radius-md) !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.2s ease !important;
}

.x-window .x-form-field:focus {
    border-color: var(--uceva-primary) !important;
    box-shadow: 0 0 0 3px var(--uceva-primary-focus) !important;
}

.x-window .x-form-item-label {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
}

.x-window .x-form-arrow-trigger,
.x-window .x-form-trigger {
    background: transparent !important;
    border: none !important;
}

/* Window body content */
.x-window .x-window-body {
    padding: 4px !important;
}

/* Window inner panels */
.x-window .x-panel {
    border: none !important;
    box-shadow: none !important;
    background: var(--uceva-bg-white) !important;
}

.x-window .x-panel-body {
    background: var(--uceva-bg-white) !important;
    border: none !important;
}

/* Window fieldsets */
.x-window .x-fieldset {
    border: 1.5px solid var(--uceva-border) !important;
    border-radius: var(--uceva-radius-lg) !important;
    padding: 10px 14px !important;
    margin: 6px 4px !important;
}

.x-window .x-fieldset-header {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: var(--uceva-text-primary) !important;
    padding: 0 6px !important;
}

/* Window radio buttons */
.x-window .x-form-radio-group .x-form-cb-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
}

/* Window buttons - green style */
.x-window .x-btn {
    border-radius: var(--uceva-radius-md) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.x-window .x-btn[style*="background-color:#00A850"],
.x-window .x-btn[style*="background-color: #00A850"],
.x-window .x-btn[style*="background:#00A850"] {
    background: linear-gradient(135deg, var(--uceva-primary), #00c060) !important;
    box-shadow: 0 2px 8px rgba(0, 168, 80, 0.25) !important;
    border: none !important;
    border-radius: var(--uceva-radius-lg) !important;
}

.x-window .x-btn:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.06);
}

/* Window toolbar */
.x-window .x-toolbar {
    background: var(--uceva-bg-light) !important;
    border: none !important;
    border-top: 1px solid var(--uceva-border) !important;
}

/* ============================================
   25. Print Styles
   ============================================ */
@media print {
    body { background: white !important; }
    #IdFormularioResponsivePreinscripcionUceva .x-panel {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    #IdFormularioResponsivePreinscripcionUceva .x-btn { display: none !important; }
    #IdFormularioResponsivePreinscripcionUceva .x-toolbar { display: none !important; }
}

/* ============================================
   26. Legal Sections - Card Style
   ============================================ */

/* Legal panels (proteccion datos, reglamento, autorizacion) as compact cards */
#id_panel_aviso_legal_proteccion_datos,
#id_panel_reglamento_institucion,
#id_panel_autorizacion_uso_imagen {
    border-left: 4px solid var(--uceva-primary) !important;
    border-radius: 0 var(--uceva-radius-xl) var(--uceva-radius-xl) 0 !important;
}

#id_panel_aviso_legal_proteccion_datos > .x-panel-header,
#id_panel_reglamento_institucion > .x-panel-header,
#id_panel_autorizacion_uso_imagen > .x-panel-header {
    background: linear-gradient(135deg, rgba(0,168,80,0.06), rgba(0,168,80,0.02)) !important;
    border-bottom: 1px solid rgba(0,168,80,0.15) !important;
    padding: 12px 18px !important;
}

/* Textarea inside legal panels */
#id_panel_aviso_legal_proteccion_datos .x-form-textarea,
#id_panel_reglamento_institucion .x-form-textarea,
#id_panel_autorizacion_uso_imagen .x-form-textarea {
    background: var(--uceva-bg-light) !important;
    border: 1px solid #eee !important;
    border-radius: var(--uceva-radius-md) !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: var(--uceva-text-secondary) !important;
}

/* ============================================
   27. Unified Legal Section Container
   ============================================ */
#id_panel_terminos_unificado {
    border-left: 4px solid var(--uceva-primary) !important;
    border-radius: 0 var(--uceva-radius-xl) var(--uceva-radius-xl) 0 !important;
}

/* ============================================
   28. Toast Notifications (DsNotify style)
   ============================================ */
#ds-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ds-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16,24,40,0.2), 0 4px 8px rgba(16,24,40,0.08);
    padding: 12px 40px 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
}

.ds-toast.ds-toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.ds-toast.ds-toast-closing {
    opacity: 0;
    transform: translateX(120%);
}

.ds-toast-icon {
    font-family: 'Font Awesome 6 Free', FontAwesome;
    font-weight: 900;
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.ds-toast-msg {
    flex: 1;
    font-size: 13.5px;
    color: #1b2a4e;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}

.ds-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-family: 'Font Awesome 6 Free', FontAwesome;
    font-weight: 900;
    font-size: 11px;
    color: #98a2b3;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.ds-toast-close:hover {
    background: #f2f4f7;
    color: #344054;
}

.ds-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    opacity: 0.75;
    animation: ds-toast-progress 3.5s linear forwards;
}

@keyframes ds-toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

.ds-toast-info    { border-left: 4px solid #1570ef; }
.ds-toast-success { border-left: 4px solid #12b76a; }
.ds-toast-warning { border-left: 4px solid #f79009; }
.ds-toast-error   { border-left: 4px solid #d92d20; }

@media (max-width: 600px) {
    #ds-toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    .ds-toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Attention flash - subtle red glow on invalid field */
.ds-attention-flash {
    animation: ds-attention-pulse 2s ease-in-out !important;
    border-radius: 8px;
}

.ds-attention-flash .x-form-field {
    border-color: #e53935 !important;
    background: #fff8f8 !important;
    transition: border-color 0.5s ease, background 0.5s ease !important;
}

@keyframes ds-attention-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 45, 32, 0);
    }
    15% {
        box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.25);
        background: rgba(254, 228, 226, 0.2);
    }
    40% {
        box-shadow: 0 0 0 6px rgba(217, 45, 32, 0.15);
        background: rgba(254, 228, 226, 0.15);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
        background: rgba(254, 228, 226, 0.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 45, 32, 0);
        background: transparent;
    }
}

/* ============================================
   28b. reCAPTCHA Card (kept for reference)
   ============================================ */
.uceva-recaptcha-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8faf9;
    border: 1.5px solid #d4edda;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    max-width: 700px;
    margin: 4px auto;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.uceva-recaptcha-card:hover {
    border-color: var(--uceva-primary);
    box-shadow: 0 4px 16px rgba(0, 168, 80, 0.1);
}

.uceva-recaptcha-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5ee;
    border-radius: 12px;
}

.uceva-recaptcha-card-content {
    flex: 1;
    min-width: 0;
}

.uceva-recaptcha-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--uceva-text-primary);
    margin-bottom: 4px;
}

.uceva-recaptcha-card-text {
    font-size: 12.5px;
    color: var(--uceva-text-secondary);
    line-height: 1.5;
}

.uceva-recaptcha-card-links {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.uceva-recaptcha-card-links a {
    color: var(--uceva-primary);
    text-decoration: none;
    font-weight: 500;
}

.uceva-recaptcha-card-links a:hover {
    text-decoration: underline;
}

.uceva-recaptcha-card-links span {
    color: var(--uceva-text-muted);
}

.uceva-recaptcha-card-logo {
    flex-shrink: 0;
    text-align: center;
}

.uceva-recaptcha-card-logo-text {
    font-size: 9px;
    color: var(--uceva-text-muted);
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .uceva-recaptcha-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px;
    }

    .uceva-recaptcha-card-links {
        justify-content: center;
    }
}

/* Mostrar badge flotante nativo de Google reCAPTCHA v3 junto al objeto propio.
   El badge aparece en la esquina inferior derecha; colapsado por defecto
   y expandido al hacer hover (comportamiento nativo). */
.grecaptcha-badge {
    visibility: visible !important;
    z-index: 9999 !important;
}

/* Ocultar el badge de reCAPTCHA cuando el formulario está en modo administrador
   (el body recibe la clase 'modo-admin' desde PrescripcionUcevaResponsive.js). */
body.modo-admin .grecaptcha-badge {
    visibility: hidden !important;
    display: none !important;
}

/* ============================================
   Panel de botones administrador
   Estilo tipo "toolbar": contenedor con fondo suave, bordes redondeados
   y sombra sutil. NO sobreescribe el color/fondo nativo de los botones Ext,
   solo mejora espaciado y el efecto hover.
   ============================================ */
#id_panel_botones_funciones_para_perfiles {
    background: linear-gradient(135deg, #f8faf9 0%, #eef4f1 100%) !important;
    border: 1px solid #d4edda !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 12px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 168, 80, 0.08) !important;
}

#id_panel_botones_funciones_para_perfiles .x-panel-body {
    background: transparent !important;
}

#id_panel_botones_funciones_para_perfiles .x-btn {
    margin: 4px 6px !important;
    border-radius: 8px !important;
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.12s ease !important;
}

#id_panel_botones_funciones_para_perfiles .x-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
    filter: brightness(1.04);
}

/* ============================================
   29. Data Fields Distribution
   ============================================ */

/* Spacing between fields */
#IdFormularioResponsivePreinscripcionUceva .x-column-layout-ct > .x-form-item {
    margin-bottom: 8px !important;
}

/* ============================================
   30. Specific Panel Overrides
   ============================================ */

/* Transparent panels - no card styling */
#IdFormularioResponsivePreinscripcionUceva #id_panel_botones_funciones,
#IdFormularioResponsivePreinscripcionUceva #id_panel_botones_funciones_para_perfiles,
#IdFormularioResponsivePreinscripcionUceva #id_panel_final,
#IdFormularioResponsivePreinscripcionUceva #id_panel_informacion_de_verificacion {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    animation: none !important;
}

#IdFormularioResponsivePreinscripcionUceva #id_panel_botones_funciones > .x-panel-body,
#IdFormularioResponsivePreinscripcionUceva #id_panel_botones_funciones_para_perfiles > .x-panel-body,
#IdFormularioResponsivePreinscripcionUceva #id_panel_final > .x-panel-body,
#IdFormularioResponsivePreinscripcionUceva #id_panel_informacion_de_verificacion > .x-panel-body {
    background: transparent !important;
    padding: 4px 0 !important;
}

/* Nested panels inside main panels - no extra card styling */
#IdFormularioResponsivePreinscripcionUceva .x-panel .x-panel {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

#IdFormularioResponsivePreinscripcionUceva .x-panel .x-panel > .x-panel-body {
    padding: 0 !important;
}
