﻿/* =============================================================================
   RutaTurismo360 - Global Form Template Styles
   ============================================================================= 

   Este archivo contiene estilos reutilizables para formularios de creación/edición
   siguiendo las directrices establecidas en .github/DESIGN_GUIDELINES.md

   Prefijo: rt360- (RutaTurismo360)
   Última actualización: Marzo 2026
   Versión: 1.2.0

   CHANGELOG:
   - v1.2.0: rt360-filter-chips y rt360-filter-chip para selectores de período rápido
   - v1.1.0: Banner y watermark para modo demo
   - v1.0.9: Clases rt360-stripe-result-icon para páginas StripeSuccess/StripeCancel
   - v1.0.8: Secciones 17-18 movidas a global-pricing-template.css y global-payments-template.css
   - v1.0.7: Notificaciones movidas a global-notifications.css
   - v1.0.6: Drive Explorer movido a global-drive-template.css
   - v1.0.5: Settings/Preferences movido a global-settings-template.css
   - v1.0.4: Tabs movidos a global-tabs-template.css
   - v1.0.3: DataGrid movido a global-grid-template.css
   - v1.0.2: Placeholders en tema oscuro, readonly, campos requeridos
   - v1.0.0: Versión inicial con formularios, headers, stats, switches, helpers
   ============================================================================= */

/* =============================================================================
   -1. FILTER CHIPS — Selector de períodos rápidos y filtros tipo chip
   =============================================================================
   Uso: <div class="rt360-filter-chips">
            <button class="rt360-filter-chip rt360-filter-chip--active">Este mes</button>
            <button class="rt360-filter-chip">Mes anterior</button>
        </div>
   ============================================================================= */

.rt360-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.rt360-filter-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    padding: 0.28rem 0.7rem !important;
    border-radius: 2rem !important;
    border: 1px solid var(--border-color, #dee2e6) !important;
    background: transparent !important;
    color: var(--text-color, #495057) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease !important;
    white-space: nowrap !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    min-width: unset !important;
    box-shadow: none !important;
    text-transform: none !important;
}

html[data-theme="dark"] .rt360-filter-chip {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.rt360-filter-chip:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: rgba(var(--primary-rgb, 58, 107, 252), 0.06) !important;
    box-shadow: none !important;
    transform: none !important;
}

.rt360-filter-chip--active {
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    color: #fff !important;
}

.rt360-filter-chip--active:hover {
    opacity: 0.9 !important;
}

/* =============================================================================
   0. MODO DEMO — Banner superior + Watermark
   ============================================================================= */

/**
 * Banner fijo en la parte superior de la app durante el modo demo.
 * Uso: <div class="rt360-demo-banner">
 */
.rt360-demo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(90deg, #ff6f00 0%, #ff8f00 50%, #ff6f00 100%);
    background-size: 200% 100%;
    animation: rt360-demo-banner-slide 3s linear infinite;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.4);
    pointer-events: none;
}

.rt360-demo-banner .rt360-demo-banner-link {
    pointer-events: auto;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0;
}

.rt360-demo-banner .rt360-demo-banner-link:hover {
    opacity: 0.85;
}

@keyframes rt360-demo-banner-slide {
    0%   { background-position: 200% 0; }
    100% { background-position: 0% 0; }
}

/**
 * Ajuste del contenido principal cuando el banner está activo.
 * Uso: agregar clase rt360-demo-active al .app-container
 */
.rt360-demo-active .app-sidebar,
.rt360-demo-active .app-content {
    margin-top: 28px;
}

/**
 * Watermark diagonal sobre el contenido de la página.
 * Se inserta como pseudo-elemento sobre .app-main
 */
.rt360-demo-active .app-main::before {
    content: "DEMO";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    color: rgba(255, 111, 0, 0.055);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 0.25em;
    user-select: none;
}

[data-theme="dark"] .rt360-demo-active .app-main::before {
    color: rgba(255, 143, 0, 0.07);
}

/* =============================================================================
   1. LAYOUT & CONTAINERS
   ============================================================================= */

.rt360-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.rt360-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4) !important;
}

.rt360-btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(118, 75, 162, 0.3) !important;
}

.rt360-btn-secondary {
    background: white !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
    transition: all 0.3s ease !important;
}

.rt360-btn-secondary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: #764ba2 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.25) !important;
}

.rt360-btn-secondary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(118, 75, 162, 0.2) !important;
}

/* Dark mode - ajustes para mejor contraste */
[data-theme="dark"] .rt360-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #667eea !important;
}

[data-theme="dark"] .rt360-btn-secondary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/**
 * Switch con gradiente primario (mismo estilo que rt360-btn-primary)
 * Uso: <RadzenSwitch class="rt360-switch" @bind-Value="@value" />
 * Estructura Radzen 9: .rz-switch > .rz-switch-circle[::before = thumb]
 * Estado checked: .rz-switch.rz-switch-checked
 */
.rt360-switch.rz-switch-checked .rz-switch-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.4) !important;
    transition: background .3s ease, box-shadow .3s ease;
}

.rt360-switch .rz-switch-circle:before,
.rt360-switch.rz-switch-checked .rz-switch-circle:before {
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .rt360-switch.rz-switch-checked .rz-switch-circle {
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.6) !important;
}


/**
 * Contenedor principal de formularios
 * Uso: <RadzenStack class="rt360-form-container">
 */
.rt360-form-container {
    max-width: 94%;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .rt360-form-container {
        max-width: 100%;
        margin: 0;
    }
}

/**
 * Separador visual entre secciones
 * Uso: <RadzenStack class="rt360-form-divider">
 */
.rt360-form-divider {
    border-top: 1px solid var(--rz-border-color);
    margin: 1rem 0;
}
/* 2. HEADER CON GRADIENTE => global-cards-template.css */

/* =============================================================================
   3. SECCIONES CON TÍTULOS
   ============================================================================= */

/**
 * Título de sección con borde inferior
 * Uso: <RadzenText class="rt360-section-title">
 */
.rt360-section-title {
    margin-bottom: 1rem;
    color: var(--rz-text-color);
    border-bottom: 2px solid var(--rz-primary);
    padding-bottom: 0.5rem;
}

/**
 * Ícono dentro del título de sección
 * Uso: <RadzenIcon class="rt360-section-icon">
 */
.rt360-section-icon {
    vertical-align: middle;
}
/* 4. STAT CARDS / KPIs => global-cards-template.css */

/* =============================================================================
   5. BOTONES DE ACCIÓN
   ============================================================================= */

/**
 * Botones de formularios (Large con ancho mínimo)
 * Uso: <RadzenButton class="rt360-form-button">
 */
.rt360-form-button {
    min-width: 140px;
}
/* 6. SWITCH CARDS => global-cards-template.css */

/* =============================================================================
   7. HELPER TEXTS
   ============================================================================= */

/**
 * Textos de ayuda en campos
 * Uso: <RadzenText class="rt360-helper-text">
 */
.rt360-helper-text {
    color: var(--rz-text-secondary-color);
}

/**
 * Caption general (textos pequeños)
 * Uso: <RadzenText class="rt360-caption">
 */
.rt360-caption {
    color: var(--rz-text-secondary-color);
    margin: 0;
    font-size: var(--rz-text-caption-font-size, 0.75rem);
    line-height: 1.4;
}

/* =============================================================================
   8. CAMPOS DE FORMULARIO
   ============================================================================= */

/**
 * Ancho completo para FormField
 * Uso: <RadzenFormField class="rt360-field-full">
 */
.rt360-field-full {
    width: 100%;
}

/**
 * Validador con margen superior
 * Uso: <RadzenRequiredValidator class="rt360-validator">
 */
.rt360-validator {
    display: block;
    margin-top: 0.25rem;
}

/* =============================================================================
   8.1. PLACEHOLDERS (Tema Claro y Oscuro)
   ============================================================================= */

/**
 * Estilos de placeholder para inputs de Radzen
 * Asegura visibilidad óptima en ambos temas
 */

/* TEMA CLARO - Placeholders grises oscuros */
.rz-textbox::placeholder,
.rz-textarea::placeholder,
.rz-numeric input::placeholder,
.rz-dropdown input::placeholder,
.rz-autocomplete input::placeholder,
.rz-password input::placeholder {
    color: #999999;
    opacity: 1;
}

/* TEMA OSCURO - Placeholders grises claros (mayor contraste) */
[data-theme="dark"] .rz-textbox::placeholder,
[data-theme="dark"] .rz-textarea::placeholder,
[data-theme="dark"] .rz-numeric input::placeholder,
[data-theme="dark"] .rz-dropdown input::placeholder,
[data-theme="dark"] .rz-autocomplete input::placeholder,
[data-theme="dark"] .rz-password input::placeholder {
  color: rgba(180, 180, 180, 0.8);
  opacity: 1;
}

[data-theme="dark"] .rz-form-field-content {
  color: rgba(180, 180, 180, 0.8);
  opacity: 1;
}

/* FOCUS - Placeholder más tenue cuando el campo está activo */
.rz-textbox:focus::placeholder,
.rz-textarea:focus::placeholder,
.rz-numeric input:focus::placeholder,
.rz-dropdown input:focus::placeholder,
.rz-autocomplete input:focus::placeholder,
.rz-password input:focus::placeholder {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

/* =============================================================================
   9. UTILIDADES
   ============================================================================= */

/**
 * Texto sin margen
 * Uso: <RadzenText class="rt360-no-margin">
 */
.rt360-no-margin {
    margin: 0;
}

/**
 * Espaciado inferior pequeño
 * Uso: <div class="rt360-mb-small">
 */
.rt360-mb-small {
    margin-bottom: 0.5rem;
}

/**
 * Espaciado inferior mediano
 * Uso: <div class="rt360-mb-medium">
 */
.rt360-mb-medium {
    margin-bottom: 1rem;
}

/**
 * Espaciado inferior grande
 * Uso: <div class="rt360-mb-large">
 */
.rt360-mb-large {
    margin-bottom: 2rem;
}

/* =============================================================================
   10. RESPONSIVE HELPERS
   ============================================================================= */

/**
 * Padding para secciones de loading
 * Uso: <RadzenStack class="rt360-loading-section">
 */
.rt360-loading-section {
    padding: 3rem;
}

/**
 * Ícono grande para estados vacíos
 * Uso: <RadzenIcon class="rt360-empty-icon">
 */
.rt360-empty-icon {
    font-size: 3rem;
    color: var(--rz-text-disabled-color);
}

/**
 * Texto para estados vacíos
 * Uso: <RadzenText class="rt360-empty-text">
 */
.rt360-empty-text {
    color: var(--rz-text-secondary-color);
}

/* =============================================================================
   11. DATA GRID
   ============================================================================= */

/**
 * DataGrid con bordes redondeados
 * Uso: <RadzenDataGrid class="rt360-datagrid-rounded">
 */
.rt360-datagrid-rounded {
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

/* Borde redondeado para el contenedor de la tabla */
.rt360-datagrid-rounded .rz-datatable-scrollable-wrapper {
    border-radius: var(--radius-md, 8px);
}

/* Borde redondeado para headers */
.rt360-datagrid-rounded .rz-datatable-thead > tr:first-child > th:first-child {
    border-top-left-radius: var(--radius-md, 8px);
}

.rt360-datagrid-rounded .rz-datatable-thead > tr:first-child > th:last-child {
    border-top-right-radius: var(--radius-md, 8px);
}

/* Borde redondeado para última fila (si no hay paginador) */
.rt360-datagrid-rounded .rz-datatable-tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: var(--radius-md, 8px);
}

.rt360-datagrid-rounded .rz-datatable-tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: var(--radius-md, 8px);
}

/* Borde redondeado para el paginador */
.rt360-datagrid-rounded .rz-paginator {
    border-bottom-left-radius: var(--radius-md, 8px);
    border-bottom-right-radius: var(--radius-md, 8px);
}

/* =============================================================================
   12. PÁGINAS DE LISTADO (INDEX)
   ============================================================================= */

/**
 * Título principal de páginas Index (h1)
 * Uso: <RadzenText class="rt360-page-title">
 */
.rt360-page-title {
    margin: 0;
    font-size: var(--rz-text-h4-font-size, 2.125rem);
    font-weight: var(--rz-text-h4-font-weight, 700);
    line-height: 1.235;
}

/**
 * Subtítulo de páginas Index
 * Uso: <RadzenText class="rt360-page-subtitle">
 */
.rt360-page-subtitle {
    color: var(--rz-text-secondary-color);
    font-size: var(--rz-text-body2-font-size, 0.875rem);
}
/* 13. CARDS UTILITARIAS => global-cards-template.css */

/* =============================================================================
   14. DARK MODE OVERRIDES
   ============================================================================= */

/**
 * Mejoras de contraste para Dark Mode
 * Aplica cuando html[data-theme="dark"] está presente
 */

html[data-theme="dark"] .rt360-page-title {
    color: var(--text-white) !important;
}

html[data-theme="dark"] .rt360-page-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Helper texts y labels con mejor contraste en dark */
html[data-theme="dark"] .rt360-helper-text,
html[data-theme="dark"] .rt360-switch-helper,
html[data-theme="dark"] .rt360-caption,
html[data-theme="dark"] .rt360-empty-text {
    color: rgba(40, 130, 245, 0.8) !important;
}



/* Labels de estadísticas con mejor visibilidad en dark */
html[data-theme="dark"] .rt360-stat-label {
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 500;
}

/* Textos de solo lectura en dark */
html[data-theme="dark"] .rt360-readonly-label,
html[data-theme="dark"] .rt360-readonly-value {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Cards de solo lectura con fondo más visible en dark */
html[data-theme="dark"] .rt360-readonly-card {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Switch labels con mejor contraste en dark */
html[data-theme="dark"] .rt360-switch-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Sección títulos en dark */
html[data-theme="dark"] .rt360-section-title {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Leyenda de campos requeridos en dark */
html[data-theme="dark"] .rt360-required-legend {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* =============================================================================
   DARK MODE — Radzen Text Styles (global)
   Radzen compila body1/body2/caption con colores CSS fijos que no reaccionan
   al tema automáticamente; los sobreescribimos aquí para garantizar legibilidad.
   ============================================================================= */

/*html[data-theme="dark"] .rz-stack .rz-text-body2 {
    color: rgba(255, 255, 255, 0.75) !important;
}

html[data-theme="dark"] .rz-stack .rz-text-body1 {
    color: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="dark"] .rz-stack .rz-text-caption {
    color: rgba(255, 255, 255, 0.60) !important;
}

html[data-theme="dark"] .rz-stack .rz-text-overline {
    color: rgba(255, 255, 255, 0.55) !important;
}*/

/* =============================================================================
   DARK MODE — DataGrid: fondo de celdas
   Los overrides completos de DataGrid en dark mode están centralizados en
   global-grid-template.css (sección 13).
   ============================================================================= */

/* =============================================================================
   DARK MODE — TABS
   Centralizado en global-tabs-template.css (secciones 8, 9 y 10).
   ============================================================================= */

/* =============================================================================
   15. CAMPOS DE SOLO LECTURA (READ-ONLY)
   ============================================================================= */

/**
 * Label/Caption para campos de solo lectura
 * Uso: <RadzenText class="rt360-readonly-label">
 */
.rt360-readonly-label {
    color: var(--rz-text-secondary-color);
}

/**
 * Valor de campo de solo lectura (tema claro)
 * Uso: <RadzenText class="rt360-readonly-value">
 */
.rt360-readonly-value {
    font-weight: 500;
    color: var(--rz-text-color);
}

/* TEMA OSCURO - Valores más claros para mejor legibilidad */
[data-theme="dark"] .rt360-readonly-value {
    color: rgba(255, 255, 255, 0.95);
}

/**
 * Ícono decorativo en campos de solo lectura
 * Uso: <RadzenIcon class="rt360-readonly-icon">
 */
.rt360-readonly-icon {
    vertical-align: middle;
    color: var(--rz-primary);
}

/* TEMA OSCURO - Ícono más visible */
[data-theme="dark"] .rt360-readonly-icon {
    opacity: 0.9;
}

/**
 * Card para campo de solo lectura
 * Uso: <RadzenCard class="rt360-readonly-card">
 */
.rt360-readonly-card {
    background-color: var(--rz-base-100);
}

/* TEMA OSCURO - Fondo ligeramente más claro */
[data-theme="dark"] .rt360-readonly-card {
    background-color: rgba(255, 255, 255, 0.05);
}

/* =============================================================================
   NOTIFICACIONES - BELL & DRAWER
   Centralizado en global-notifications.css
   ============================================================================= */

/* =============================================================================
   16. CAMPOS REQUERIDOS CON ASTERISCO (*)
   ============================================================================= */

/**
 * Clase para marcar campos como requeridos visualmente
 * Uso: <RadzenFormField class="rt360-field-required">
 * 
 * Agrega automáticamente un asterisco rojo (*) al final del label
 */
.rt360-field-required > label::after,
.rt360-field-required .rz-form-field-label::after {
    content: " *";
    color: var(--rz-danger, #f44336);
    font-weight: 600;
    margin-left: 0.25rem;
}

/**
 * Asterisco para labels independientes (RadzenLabel)
 * Uso: <RadzenLabel class="rt360-label-required">
 */
.rt360-label-required::after {
    content: " *";
    color: var(--rz-danger, #f44336);
    font-weight: 600;
    margin-left: 0.25rem;
}

/**
 * Versión alternativa: Asterisco inline (para casos específicos)
 * Uso: <span class="rt360-required-mark">*</span>
 */
.rt360-required-mark {
    color: var(--rz-danger, #f44336);
    font-weight: 600;
    margin-left: 0.25rem;
}

/**
 * Animación sutil para campos requeridos vacíos (opcional)
 * Uso: <RadzenFormField class="rt360-field-required rt360-field-required--empty">
 */
.rt360-field-required--empty:focus-within {
    animation: rt360-pulse-required 1s ease-in-out;
}

@keyframes rt360-pulse-required {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/**
 * Soporte para tema oscuro - Asterisco más visible
 */
[data-theme="dark"] .rt360-field-required > label::after,
[data-theme="dark"] .rt360-field-required .rz-form-field-label::after,
[data-theme="dark"] .rt360-label-required::after,
[data-theme="dark"] .rt360-required-mark {
    color: #ff5252;
}

/**
 * Helper text adicional para campos requeridos
 * Uso: <RadzenText class="rt360-required-helper">
 */
.rt360-required-helper {
    color: var(--rz-text-secondary-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.rt360-required-helper::before {
    content: "* ";
    color: var(--rz-danger, #f44336);
    font-weight: 600;
}

/**
 * Estilo para leyenda de campos requeridos (al final del formulario)
 * Uso: <RadzenText class="rt360-required-legend">
 */
.rt360-required-legend {
    color: var(--rz-text-secondary-color);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.rt360-required-legend::before {
    content: "* ";
    color: var(--rz-danger, #f44336);
    font-weight: 600;
}

/* =============================================================================
   TABS RESPONSIVOS
   Centralizado en global-tabs-template.css (sección 9).
   ============================================================================= */
/* =============================================================================
   16. DRIVE EXPLORER
   Centralizado en global-drive-template.css
   ============================================================================= */
/* =============================================================================
   PREFERENCES PANEL + SETTINGS PAGE
   Centralizado en global-settings-template.css
   ============================================================================= */
/* =============================================================================
   17. PRICING CARDS
   Centralizado en global-pricing-template.css
   ============================================================================= */
/* =============================================================================
   18. PAGOS DE CLIENTES
   Centralizado en global-payments-template.css
   ============================================================================= */

/* =============================================================================
   19. AVATAR / FOTO DE PERFIL
   → Centralizado en global-cards-template.css
   ============================================================================= */
/* =============================================================================
   20. SIDEBAR INFO CARDS
   → Centralizado en global-cards-template.css
   ============================================================================= */
/* =============================================================================
   21. UTILIDADES DE COLOR DE TEXTO
   → Centralizado en global-utilities.css
   ============================================================================= */
/* =============================================================================
   22. UTILIDADES DE ÍCONO
   → Centralizado en global-utilities.css
   ============================================================================= */

/* =============================================================================
   23. SECTION HEADER (título + acción en línea)
   Wrapper para secciones con título y botón/acción a la derecha.
   Uso: <RadzenStack class="rt360-section-header">
        <RadzenText class="rt360-section-title rt360-section-title--flex">
   ============================================================================= */

.rt360-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rt360-section-title--flex {
    flex: 1;
}

/* =============================================================================
   24. ALERT LIST
   → Centralizado en global-alerts-template.css
   ============================================================================= */
/* =============================================================================
   25. UTILIDADES DE ESPACIADO E INPUT
   → Centralizado en global-utilities.css
   ============================================================================= */


/* =============================================================================
   26. SECCIÓN DE PERMISOS (asignación de permisos a roles)
   ============================================================================= */

/**
 * Card contenedora de un grupo de permisos
 * Uso: <RadzenCard Variant="Variant.Outlined" class="rt360-permission-group-card">
 */
.rt360-permission-group-card {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.10);
    transition: border-color 0.15s ease;
}

.rt360-permission-group-card:hover {
    border-color: var(--rz-primary);
}

/**
 * Item individual de permiso (checkbox + texto)
 * Uso: <RadzenStack class="rt360-permission-item">
 */
.rt360-permission-item {
    padding: 0.3rem 0.25rem;
    border-radius: 4px;
    transition: background 0.1s ease;
}

.rt360-permission-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

/**
 * Nombre del módulo/grupo de permisos
 * Uso: <RadzenText class="rt360-permission-group-label">
 */
.rt360-permission-group-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rz-text-color);
}

/**
 * Código del permiso (ej: USERS.CREATE)
 * Uso: <RadzenText class="rt360-permission-code">
 */
.rt360-permission-code {
    font-weight: 600;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--rz-primary);
}

/**
 * Descripción compacta de un permiso
 * Uso: <RadzenText class="rt360-helper-text rt360-permission-desc">
 */
.rt360-permission-desc {
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--rz-text-secondary-color);
}

/* ── DARK MODE — Sección de Permisos ─────────────────────────────────────── */

html[data-theme="dark"] .rt360-permission-group-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .rt360-permission-group-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--rz-primary);
}

html[data-theme="dark"] .rt360-permission-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .rt360-permission-group-label {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] .rt360-permission-code {
    color: #ce93d8 !important;
}

html[data-theme="dark"] .rt360-permission-desc {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* =============================================================================
   ACCESS DENIED PAGE (rt360-access-denied-*)
   Página 403 - Acceso Restringido
   ============================================================================= */

.rt360-access-denied-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.rt360-access-denied-container {
    max-width: 560px;
    width: 100%;
    text-align: center;
}

/* Ícono con gradiente */
.rt360-access-denied-badge {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.35);
}

.rt360-access-denied-lock-icon {
    font-size: 3rem !important;
    color: white !important;
}

/* Código 403 */
.rt360-access-denied-code {
    font-size: 4.5rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

/* Textos */
.rt360-access-denied-title {
    color: var(--rz-text-color) !important;
    font-weight: 700 !important;
}

.rt360-access-denied-subtitle {
    color: var(--rz-text-secondary-color, #666) !important;
}

.rt360-access-denied-description {
    color: var(--rz-text-secondary-color, #666) !important;
    max-width: 440px;
    line-height: 1.6;
}

/* Card de razones */
.rt360-access-denied-reasons-card {
    width: 100%;
    text-align: left;
    border-left: 4px solid #667eea !important;
    background: var(--rz-base-background-color) !important;
}

.rt360-access-denied-info-icon {
    color: #667eea !important;
    font-size: 1.2rem !important;
}

.rt360-access-denied-chevron {
    color: #764ba2 !important;
    font-size: 1rem !important;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Contacto */
.rt360-access-denied-contact {
    color: var(--rz-text-secondary-color, #888) !important;
    font-style: italic;
}

/**
 * Ícono inline en el texto de contacto
 * Uso: <RadzenIcon class="rt360-access-denied-contact-icon">
 */
.rt360-access-denied-contact-icon {
    font-size: 0.9rem !important;
    vertical-align: middle;
    margin-right: 4px;
}

/* Dark mode */
html[data-theme="dark"] .rt360-access-denied-badge {
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.5);
}

html[data-theme="dark"] .rt360-access-denied-reasons-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: #667eea !important;
}

/* =============================================================================
   NOT FOUND PAGE (rt360-not-found-*)
   Página 404 - Página No Encontrada
   ============================================================================= */

.rt360-not-found-badge {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(245, 87, 108, 0.35);
}

.rt360-not-found-code {
    font-size: 4.5rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.rt360-not-found-suggestions-card {
    width: 100%;
    text-align: left;
    border-left: 4px solid #f5576c !important;
    background: var(--rz-base-background-color) !important;
}

.rt360-not-found-tips-icon {
    color: #f5576c !important;
    font-size: 1.2rem !important;
}

/* Dark mode */
html[data-theme="dark"] .rt360-not-found-badge {
    box-shadow: 0 8px 32px rgba(245, 87, 108, 0.5);
}

html[data-theme="dark"] .rt360-not-found-suggestions-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: #f5576c !important;
}

/* =============================================================================
   15. TEXTAREA DE CÓDIGO / EDITOR
   ============================================================================= */

/**
 * Textarea con fuente monoespaciada (HTML, CSS, JSON)
 * Uso: <RadzenTextArea class="rt360-textarea-code">
 */
.rt360-textarea-code.rz-textarea,
.rt360-textarea-code {
    font-family: "Consolas", "Courier New", monospace !important;
    font-size: 13px;
    width: 100%;
}

/* =============================================================================
   16. ETIQUETA UPPERCASE MUTED
   ============================================================================= */

/**
 * Etiqueta de sección en uppercase, color secundario
 * Uso: <RadzenText class="rt360-field-label-uppercase">
 */
.rt360-field-label-uppercase {
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =============================================================================
   17. CSS PREVIEW (editor de plantillas de email)
   ============================================================================= */

/**
 * Contenedor del preview de CSS
 * Uso: <div class="rt360-css-preview-wrapper">
 */
.rt360-css-preview-wrapper {
    border: 1px solid var(--rz-border-disabled-color);
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
    background: #fff;
}

/**
 * Barra de chrome estilo macOS para el preview
 * Uso: <div class="rt360-css-preview-bar">
 */
.rt360-css-preview-bar {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid var(--rz-border-disabled-color);
}

/**
 * Etiqueta muted dentro de la barra de preview
 * Uso: <RadzenText class="rt360-css-preview-label">
 */
.rt360-css-preview-label {
    color: #999;
    margin-left: 6px;
    font-size: 0.8rem;
}

/**
 * Área de contenido renderizado del preview
 * Uso: <div class="rt360-css-preview-content">
 */
.rt360-css-preview-content {
    padding: 16px;
    background: #fff;
    color: #333;
}

/**
 * Estado vacío del preview de CSS
 * Uso: <RadzenStack class="rt360-css-preview-empty">
 */
.rt360-css-preview-empty {
    height: 200px;
    color: var(--rz-text-secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/**
 * Ícono de estado vacío en el preview de CSS
 * Uso: <RadzenIcon class="rt360-css-preview-icon">
 */
.rt360-css-preview-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    color: var(--rz-text-secondary-color);
}

/* =============================================================================
   18. UTILIDAD — SELECT CON FLEX
   ============================================================================= */

/**
 * DropDown expandible en una fila flex
 * Uso: <RadzenDropDown class="rt360-select-flex">
 */
.rt360-select-flex {
    flex: 1;
    min-width: 200px;
}

/* ── DARK MODE — Secciones 15-18 ─────────────────────────────────────── */

html[data-theme="dark"] .rt360-css-preview-wrapper {
    background: var(--rz-base-background-color);
    border-color: var(--rz-border-color);
}

html[data-theme="dark"] .rt360-css-preview-bar {
    background: var(--rz-base-200);
    border-color: var(--rz-border-color);
}

html[data-theme="dark"] .rt360-css-preview-content {
    background: var(--rz-base-100);
    color: var(--rz-text-color);
}

html[data-theme="dark"] .rt360-field-label-uppercase {
    color: rgba(255, 255, 255, 0.55);
}

/* =============================================================================
   FIN DEL ARCHIVO
   ============================================================================= */

/* =============================================================================
   STRIPE RESULT PAGES (StripeSuccess / StripeCancel)
   Clases: rt360-stripe-result-icon, rt360-stripe-result-icon--success/cancel
   ============================================================================= */

.rt360-stripe-result-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.rt360-stripe-result-icon--success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.35);
}

.rt360-stripe-result-icon--cancel {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(245, 87, 108, 0.35);
}

.rt360-stripe-result-icon .rzi {
    font-size: 3rem !important;
    color: white !important;
}
