﻿/* ===================================
   CRUD System - Professional Corporate Design
   Expert UX/UI Clean & Intuitive System
   =================================== */

/* Enhanced Corporate CSS Variables */
:root {
    /* Primary Brand Colors - Corporate Green Theme */
    --brand-primary: #16A085;
    --brand-primary-hover: #138D75;
    --brand-primary-light: #E8F6F3;
    --brand-primary-dark: #0E6B5A;
    
    /* Secondary Corporate Colors */
    --brand-secondary: #3498DB;
    --brand-accent: #2ECC71;
    --brand-warning: #F39C12;
    --brand-danger: #E74C3C;
    
    /* Background Colors - Clean & Professional */
    --bg-card: #FFFFFF;
    --bg-body: #F7F9FC;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-light: #FAFBFC;
    --bg-subtle: #F1F4F7;
    
    /* Text Colors - High Contrast & Readable */
    --text-1: #2C3E50;
    --text-2: #34495E;
    --text-3: #7F8C8D;
    --text-muted: #95A5A6;
    --text-white: #FFFFFF;
    
    /* Border Colors - Subtle & Clean */
    --border-color: #D5DBDB;
    --border-color-light: #EAEDED;
    --border-hover: #AED6F1;
    --border-focus: var(--brand-primary);
    
    /* Border Radius - Modern & Consistent */
    --radius: 9.6px;
    --radius-sm: 6.4px;
    --radius-xs: 4.8px;
    --radius-lg: 12.8px;
    
    /* Shadows - Subtle & Professional */
    --shadow: 0 6.4px 16px rgba(44, 62, 80, 0.08);
    --shadow-sm: 0 2.4px 8px rgba(44, 62, 80, 0.06);
    --shadow-hover: 0 9.6px 22.4px rgba(44, 62, 80, 0.12);
    --shadow-focus: 0 0 0 2.4px rgba(22, 160, 133, 0.15);
    --shadow-success: 0 0 0 2.4px rgba(46, 204, 113, 0.15);
    --shadow-danger: 0 0 0 2.4px rgba(231, 76, 60, 0.15);
    
    /* Spacing - Consistent System */
    --space-1: 3.2px;
    --space-2: 6.4px;
    --space-3: 9.6px;
    --space-4: 12.8px;
    --space-5: 19.2px;
    --space-6: 25.6px;
    --space-7: 38.4px;
    --space-8: 51.2px;
    
    /* Animations - Smooth & Professional */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.15s ease-out;
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Status Colors - Clear & Intuitive */
    --success-color: #27AE60;
    --success-bg: #E8F8F5;
    --success-border: #A9DFBF;
    
    --error-color: #E74C3C;
    --error-bg: #FADBD8;
    --error-border: #F1948A;
    
    --warning-color: #F39C12;
    --warning-bg: #FDF2E9;
    --warning-border: #F8C471;
    
    --info-color: #3498DB;
    --info-bg: #EBF5FB;
    --info-border: #85C1E9;
    
    /* Glassmorphism Effects */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(16px);
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
}

/* ===================================
   SIMPLE & INTUITIVE ZONE PAGES
   Clean, Easy to Use, Attractive Design
   =================================== */

/* Simple Page Layout */
.zone-page-simple {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Simple Header */
.zone-header-simple {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: var(--space-4) 0;
    box-shadow: 0 1.6px 3.2px rgba(0,0,0,0.05);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Simple Breadcrumb */
.zone-breadcrumb-simple {
    margin-bottom: var(--space-3);
}

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: var(--transition-fast);
    background: rgba(22, 160, 133, 0.1);
}

.breadcrumb-back:hover {
    color: var(--brand-primary-hover);
    background: rgba(22, 160, 133, 0.15);
    transform: translateX(-1.6px);
}

/* Simple Title */
.zone-title-simple {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.title-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 160, 133, 0.1);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.title-content h1 {
    margin: 0 0 var(--space-1) 0;
    color: var(--text-1);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.title-content p {
    margin: 0 0 var(--space-2) 0;
    color: var(--text-3);
    font-size: 1rem;
    font-weight: 500;
}

.zone-status-simple {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.zone-status-simple .badge {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

/* Simple Content */
.zone-content-simple {
    padding: var(--space-6) 0;
}

.form-card-simple {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 1.6px 6.4px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Simple Loading */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    background: #f8f9fa;
}

.loading-content {
    text-align: center;
    padding: var(--space-6);
}

/* Responsive Design for Simple Layout */
@media (max-width: 768px) {
    .zone-title-simple {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .title-content h1 {
        font-size: 1.75rem;
    }
    
    .zone-status-simple {
        justify-content: center;
    }
    
    .container {
        padding: 0 var(--space-3);
    }
}

/* Zone Page Container */
.zone-page {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-light) 100%);
    min-height: 100vh;
    padding: 0;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Enhanced Header Design */
.zone-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-7) 0;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.zone-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1.6px, transparent 1.6px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 1.2px, transparent 1.2px),
        radial-gradient(circle at 40% 70%, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.7;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(4px) rotate(-0.5deg); }
}
/* Enhanced Header Container */
.zone-header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    position: relative;
    z-index: 2;
}

.zone-breadcrumb {
    margin-bottom: var(--space-4);
}

.zone-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-2) var(--space-4);
    border-radius: 40px;
    margin: 0;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3.2px 9.6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.zone-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.zone-breadcrumb .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.zone-breadcrumb .breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
}

.zone-breadcrumb .breadcrumb-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Header Title Section */
.zone-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.zone-title-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
    min-width: 256px;
}

.zone-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    box-shadow: 0 6.4px 12.8px rgba(0, 0, 0, 0.1);
}

.zone-title-content h1 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 1.6px 3.2px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.zone-title-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Enhanced Header Stats Cards */
.zone-stats {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
}

.zone-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: var(--space-4);
    min-width: 112px;
    max-width: 128px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 3.2px 9.6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.zone-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.8) 100%);
}

.zone-stat-card:hover {
    transform: translateY(-2.4px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12.8px 25.6px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.zone-stat-icon {
    width: 41.6px;
    height: 41.6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-2);
    transition: var(--transition);
    box-shadow: 0 3.2px 6.4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.zone-stat-card:hover .zone-stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.zone-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    text-shadow: 0 1.6px 3.2px rgba(0, 0, 0, 0.2);
}

.zone-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* ===================================
   SIMPLE ENTERPRISE LOADING COMPONENT
   Professional, Clean, TerraVix Branded
   =================================== */

/* Enterprise Loading Container */
.enterprise-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    position: relative;
    z-index: 1000;
}

.enterprise-loading.loading-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(6.4px);
    z-index: 9999;
}

/* Loading Container */
.enterprise-loading .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    text-align: center;
    max-width: 320px;
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Logo and Spinner Container */
.loading-spinner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
}

.logo-container {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terravix-logo {
    width: 56px;
    height: auto;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 1.6px 3.2px rgba(0, 0, 0, 0.1));
}

/* Elegant Spinner Ring */
.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2.4px solid transparent;
    border-top: 2.4px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin-elegant 2s linear infinite;
    z-index: 1;
}

.spinner-ring::before {
    content: '';
    position: absolute;
    top: -2.4px;
    left: -2.4px;
    right: -2.4px;
    bottom: -2.4px;
    border: 1.6px solid rgba(22, 160, 133, 0.1);
    border-radius: 50%;
}

@keyframes spin-elegant {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Content */
.enterprise-loading .loading-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
}

.loading-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.3;
}

.loading-subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--text-3);
    font-weight: 500;
    line-height: 1.4;
}

/* Simple Progress Bar */
.progress-container {
    width: 100%;
    max-width: 224px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 4.8px;
    background: #e9ecef;
    border-radius: 2.4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--success-color) 100%);
    border-radius: 2.4px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Background Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.8);
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 576px) {
    .enterprise-loading .loading-container {
        margin: var(--space-4);
        padding: var(--space-4);
        max-width: none;
    }
    
    .loading-spinner {
        width: 80px;
        height: 80px;
    }
    
    .logo-container {
        width: 48px;
        height: 48px;
    }
    
    .terravix-logo {
        width: 40px;
    }
    
    .loading-title {
        font-size: 1.25rem;
    }
    
    .loading-subtitle {
        font-size: 0.875rem;
    }
}

/* Accessibility and Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .spinner-ring {
        animation: none;
    }
    
    .progress-fill::after {
        animation: none;
    }
}

/* ===================================
   FORM SUBMIT COMPONENT - UX/UI PROFESIONAL
   Typography: Inter | Iconos: Material Icons
   Color: Verde TerraVix #00753A
   =================================== */

/* Simple Form Container - Sin header (controlado por página padre) */
.simple-form-container {
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

/* Simple Form Body - Contenedor principal */
.simple-form-body {
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Radzen Form Wrapper */
.simple-form-body .enterprise-form {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Fields Grid */
.enterprise-form-grid {
    margin-bottom: 25.6px;
}

.enterprise-form-grid .row {
    margin-bottom: 19.2px;
}

.enterprise-form-grid .row:last-child {
    margin-bottom: 0;
}

/* Individual Field Container */
.enterprise-form-field {
    margin-bottom: 0;
}

/* Field Label - Inter SemiBold con Material Icons */
.enterprise-form-label {
    display: flex;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 6.4px;
    letter-spacing: -0.01em;
}

.enterprise-form-label .required-indicator {
    color: #EF4444;
    margin-left: 3.2px;
    font-weight: 600;
}

/* Input Wrapper */
.enterprise-form-input-wrapper {
    position: relative;
}

/* Radzen Input Controls - Inter Regular con focus verde TerraVix */
.enterprise-form-input-wrapper .rz-textbox,
.enterprise-form-input-wrapper .rz-dropdown,
.enterprise-form-input-wrapper .rz-numeric,
.enterprise-form-input-wrapper .rz-textarea,
.enterprise-form-input-wrapper .rz-mask,
.enterprise-form-input-wrapper .rz-datepicker,
.enterprise-form-input-wrapper .form-control {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11.2px !important;
    font-weight: 400 !important;
    color: #0F172A !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
/*    border-radius: 4.8px !important;
    padding: 8px 11.2px !important;*/
    transition: all 0.18s ease !important;
    line-height: 1.5 !important;
}

.enterprise-form-input-wrapper .rz-textbox:hover,
.enterprise-form-input-wrapper .rz-dropdown:hover,
.enterprise-form-input-wrapper .rz-numeric:hover,
.enterprise-form-input-wrapper .rz-textarea:hover,
.enterprise-form-input-wrapper .form-control:hover {
    border-color: #CBD5E1 !important;
}

.enterprise-form-input-wrapper .rz-textbox:focus,
.enterprise-form-input-wrapper .rz-dropdown:focus,
.enterprise-form-input-wrapper .rz-numeric:focus,
.enterprise-form-input-wrapper .rz-textarea:focus,
.enterprise-form-input-wrapper .form-control:focus,
.enterprise-form-input-wrapper .rz-datepicker:focus-within {
    border-color: #008C45 !important;
    box-shadow: 0 0 0 2.4px rgba(0, 140, 69, 0.1) !important;
    outline: none !important;
}

/* Checkbox Wrapper - Material Design style */
.simple-checkbox-wrapper,
.enterprise-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 9.6px;
    padding: 9.6px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 4.8px;
    transition: all 0.18s ease;
}

.simple-checkbox-wrapper:hover,
.enterprise-checkbox-wrapper:hover {
    background: rgba(0, 140, 69, 0.03);
    border-color: #008C45;
}

.simple-checkbox-wrapper .rz-chkbox,
.enterprise-checkbox-wrapper .rz-chkbox {
    margin: 0;
}

.simple-checkbox-wrapper label,
.enterprise-checkbox-wrapper label {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11.2px;
    font-weight: 500;
    color: #0F172A;
    cursor: pointer;
}

/* Checkbox Label - Cuando está dentro del wrapper */
.checkbox-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11.2px;
    font-weight: 500;
    color: #0F172A;
    margin: 0;
}

/* Form Actions - Botones profesionales */
.enterprise-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 19.2px;
    border-top: 1px solid #E5E7EB;
    margin-top: 25.6px;
}

/* Enterprise Buttons - Inter Medium con Material Icons */
.enterprise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6.4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11.2px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4.8px;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.enterprise-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.enterprise-btn .btn-label {
    white-space: nowrap;
}

/* Primary Button - Verde TerraVix */
.enterprise-btn-primary {
    background: #008944;
    color: #FFFFFF;
    border-color: #008C45;
}

.enterprise-btn-primary:hover:not(:disabled) {
    background: #00753A;
    border-color: #00753A;
    box-shadow: 0 3.2px 9.6px rgba(15, 23, 42, 0.07);
}

.enterprise-btn-primary:active:not(:disabled) {
    background: #1E7E34;
    border-color: #1E7E34;
    transform: translateY(1px);
}

.enterprise-btn-primary:disabled {
    background: #94A3B8;
    border-color: #94A3B8;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Secondary Button - Outline gris */
.enterprise-btn-secondary {
    background: #FFFFFF;
    color: #64748B;
    border-color: #E5E7EB;
}

.enterprise-btn-secondary:hover:not(:disabled) {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A;
}

.enterprise-btn-secondary:active:not(:disabled) {
    background: #F1F5F9;
    transform: translateY(1px);
}

/* Button Loading State */
.indicator-label {
    display: flex;
    align-items: center;
    gap: 6.4px;
}

.enterprise-btn[data-kt-indicator="on"] .indicator-label {
    display: none;
}

.enterprise-btn[data-kt-indicator="on"] .indicator-progress {
    display: flex;
    align-items: center;
    gap: 6.4px;
}

.enterprise-btn .indicator-progress {
    display: none;
}

.btn-spinner {
    display: inline-block;
    width: 12.8px;
    height: 12.8px;
}

.spinner-ring {
    width: 12.8px;
    height: 12.8px;
    border: 1.6px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spinner-rotate 0.6s linear infinite;
}

@keyframes spinner-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-label-sm {
    font-size: 11px;
    font-weight: 500;
}

/* Form Footer Info - Security Badge */
.form-footer-info {
    display: flex;
    align-items: center;
    gap: 9.6px;
}

.form-security-badge {
    display: flex;
    align-items: center;
    gap: 4.8px;
    padding: 4.8px 9.6px;
    background: rgba(0, 140, 69, 0.08);
    border-radius: 4.8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #00753A;
}

/* Validation Messages - Inter Regular */
.enterprise-form .validation-message,
.enterprise-form .rz-message {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #EF4444;
    margin-top: 4.8px;
    display: flex;
    align-items: center;
    gap: 4.8px;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .enterprise-form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .enterprise-form-actions {
        flex-direction: column-reverse;
        gap: 9.6px;
    }
    
    .enterprise-btn {
        width: 100%;
    }
    
    .form-footer-info {
        width: 100%;
        justify-content: center;
    }
}

/* Professional Responsive Design */
@media (max-width: 768px) {
    .zone-header {
        padding: var(--space-5) 0;
    }
    
    .zone-header-container {
        padding: 0 var(--space-3);
    }
    
    .zone-header-content {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
        text-align: center;
    }
    
    .zone-title-section {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
        width: 100%;
    }
    
    .zone-title-content h1 {
        font-size: 2rem;
    }
    
    .zone-title-content p {
        font-size: 1rem;
    }
    
    .zone-stats {
        justify-content: center;
        width: 100%;
        gap: var(--space-2);
    }
    
    .zone-stat-card {
        flex: 1;
        min-width: 96px;
        max-width: 112px;
        padding: var(--space-3);
    }
    
    .zone-stat-icon {
        width: 35.2px;
        height: 35.2px;
    }
    
    .zone-stat-number {
        font-size: 1.25rem;
    }
    
    .zone-stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .zone-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }
    
    .zone-stat-card {
        width: 100%;
        max-width: 224px;
        flex-direction: row;
        text-align: left;
        padding: var(--space-3);
        gap: var(--space-3);
    }
    
    .zone-stat-icon {
        margin: 0;
        flex-shrink: 0;
    }
    
    .zone-stat-content {
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
    }
    
    .zone-content {
        padding: 0 var(--space-3) var(--space-3);
    }
    
    .zone-form-container {
        border-radius: var(--radius-sm);
    }
}

/* ===================================
   MODERN FORM CONTAINER
   =================================== */

.zone-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-4) var(--space-4);
}

.zone-form-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.zone-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.2px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--success-color) 50%, var(--info-color) 100%);
}

/* Enhanced Progress Indicator */
.zone-progress {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-color-light);
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 640px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: white;
    border-radius: var(--radius);
    border: 1.6px solid var(--brand-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.4px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--success-color) 100%);
}

.progress-step.active {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-focus);
    transform: scale(1.02);
}

.progress-step-icon {
    width: 38.4px;
    height: 38.4px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 3.2px 9.6px rgba(22, 160, 133, 0.3);
    flex-shrink: 0;
}

.progress-step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.2;
}

.progress-step-subtitle {
    font-size: 0.875rem;
    color: var(--text-3);
    font-weight: 500;
}

.progress-divider {
    flex: 1;
    height: 1.6px;
    background: var(--border-color);
    margin: 0 var(--space-4);
    position: relative;
    border-radius: 1px;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--success-color) 100%);
    border-radius: 1px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-line.completed {
    width: 100%;
}

.progress-status {
    display: flex;
    align-items: center;
}

.progress-badge {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 3.2px 9.6px rgba(22, 160, 133, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design for Progress */
@media (max-width: 768px) {
    .progress-container {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
    }
    
    .progress-divider {
        width: 1.6px;
        height: 32px;
        margin: var(--space-2) 0;
        align-self: center;
    }
    
    .progress-line.completed {
        height: 100%;
    }
    
    .progress-step {
        width: 100%;
        justify-content: flex-start;
    }
    
    .progress-status {
        justify-content: center;
        margin-top: var(--space-2);
    }
}

/* ===================================
   PROFESSIONAL CORPORATE CHECKBOX SYSTEM
   Modern, Clean & Intuitive Design
   =================================== */

/* ===================================
   RADZEN CHECKBOX - COMPLETE OVERRIDE
   =================================== */

/* Base Checkbox Styles - Clean & Modern */
.rz-chkbox-box,
.rz-checkbox .rz-chkbox-box {
    width: 19.2px !important;
    height: 19.2px !important;
    border: 1.6px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--bg-card) !important;
    transition: var(--transition) !important;
    position: relative !important;
    box-shadow: var(--shadow-sm) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover State - Intuitive Feedback */
.rz-chkbox-box:hover,
.rz-checkbox .rz-chkbox-box:hover {
    border-color: var(--brand-primary) !important;
    background: var(--brand-primary-light) !important;
    transform: scale(1.08) !important;
    box-shadow: var(--shadow-focus) !important;
}

/* Checked State - Clear Visual Feedback */
.rz-chkbox-checked .rz-chkbox-box,
.rz-checkbox.rz-chkbox-checked .rz-chkbox-box {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-success) !important;
    animation: checkboxCheck 0.3s ease-out !important;
}

/* Check Icon - Professional & Clear */
.rz-chkbox-icon,
.rz-checkbox .rz-chkbox-icon {
    color: var(--text-white) !important;
    font-size: 12.8px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Focus State - Accessibility */
.rz-chkbox-box:focus,
.rz-checkbox .rz-chkbox-box:focus {
    outline: none !important;
    box-shadow: var(--shadow-focus) !important;
    border-color: var(--brand-primary) !important;
}

/* ===================================
   SIMPLE & INTUITIVE CHECKBOX
   Clean, Functional, Easy to Use
   =================================== */

/* Simple Checkbox Wrapper */
.simple-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: white;
    border: 1.6px solid #e9ecef;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    cursor: pointer;
}

.simple-checkbox-wrapper:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2.4px rgba(22, 160, 133, 0.1);
}

/* Radzen Checkbox Override - Simple & Clean */
.simple-checkbox {
    position: relative;
    flex-shrink: 0;
}

.simple-checkbox .rz-chkbox-box {
    width: 19.2px !important;
    height: 19.2px !important;
    border: 1.6px solid #dee2e6 !important;
    border-radius: 4.8px !important;
    background: white !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.simple-checkbox .rz-chkbox-box:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 1.6px rgba(22, 160, 133, 0.1) !important;
}

.simple-checkbox.rz-chkbox-checked .rz-chkbox-box {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.simple-checkbox .rz-chkbox-icon {
    color: white !important;
    font-size: 11.2px !important;
    font-weight: bold !important;
}

/* Checkbox Label */
.checkbox-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.label-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.2;
}

.checkbox-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    transition: var(--transition-fast);
}

.checkbox-status.active {
    color: var(--success-color);
    background: var(--success-bg);
}

.checkbox-status.inactive {
    color: var(--text-3);
    background: #f8f9fa;
}

/* Focus States for Accessibility */
.simple-checkbox:focus-within .rz-chkbox-box {
    box-shadow: 0 0 0 2.4px rgba(22, 160, 133, 0.2) !important;
    outline: none !important;
}

/* Mobile Optimization */
@media (max-width: 576px) {
    .simple-checkbox-wrapper {
        padding: var(--space-4);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .simple-checkbox {
        align-self: center;
    }
    
    .checkbox-label {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   ENHANCED CHECKBOX CONTAINER
   =================================== */

/* Professional Checkbox Wrapper */
.rz-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--space-3) !important;
    cursor: pointer !important;
    padding: var(--space-3) !important;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition) !important;
    user-select: none !important;
    min-height: 38.4px !important;
    position: relative !important;
}

.rz-checkbox:hover {
    background: rgba(22, 160, 133, 0.05) !important;
    transform: translateY(-1px) !important;
}

.rz-checkbox:active {
    transform: translateY(0) !important;
}

/* Checkbox Labels - Clean Typography */
.rz-checkbox .rz-checkbox-label,
.rz-chkbox-label {
    color: var(--text-1) !important;
    font-weight: 500 !important;
    font-size: var(--font-size-base) !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex: 1 !important;
}

/* ===================================
   ENTERPRISE CHECKBOX WRAPPER
   Advanced Corporate Design
   =================================== */

.enterprise-checkbox-wrapper {
    background: var(--bg-card);
    border: 1.6px solid var(--border-color-light);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin: var(--space-3) 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.enterprise-checkbox-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3.2px;
    height: 100%;
    background: var(--border-color-light);
    transition: var(--transition);
}

.enterprise-checkbox-wrapper:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-focus);
    transform: translateY(-1.6px);
    background: var(--brand-primary-light);
}

.enterprise-checkbox-wrapper:hover::before {
    background: var(--brand-primary);
    width: 4.8px;
}

.enterprise-checkbox-wrapper.checked {
    background: var(--brand-primary-light);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-success);
}

.enterprise-checkbox-wrapper.checked::before {
    background: var(--brand-primary);
    width: 4.8px;
}

/* ===================================
   CORPORATE CHECKBOX COMPONENTS
   =================================== */

/* Professional Checkbox Component */
.enterprise-checkbox {
    margin-right: var(--space-3) !important;
    flex-shrink: 0 !important;
}

.enterprise-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-1);
    font-size: var(--font-size-base);
    line-height: 1.5;
    width: 100%;
    gap: var(--space-3);
}

.checkbox-text {
    font-weight: 600;
    transition: var(--transition);
    flex: 1;
}

.checkbox-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--space-2) var(--space-3);
    border-radius: 40px;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-status.active {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-border);
}

.checkbox-status.inactive {
    background: var(--error-bg);
    color: var(--error-color);
    border: 1px solid var(--error-border);
}

/* ===================================
   CHECKBOX ANIMATIONS
   =================================== */

@keyframes checkboxCheck {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkboxPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 160, 133, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(22, 160, 133, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 160, 133, 0);
    }
}

/* Apply pulse animation on check */
.rz-chkbox-checked .rz-chkbox-box {
    animation: checkboxCheck 0.3s ease-out, checkboxPulse 0.6s ease-out 0.3s !important;
}

/* ===================================
   ENHANCED FORM COMPONENTS
   Clean & Professional Styling
   =================================== */

/* Enhanced Radzen Form Controls */
.rz-textbox,
.rz-dropdown,
.rz-numeric,
.rz-datepicker-input,
.rz-textarea,
.rz-mask {
    border: 1.6px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: var(--space-3) !important;
    font-size: var(--font-size-base) !important;
    transition: var(--transition) !important;
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text-1) !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    min-height: 38.4px !important;
}

.rz-textbox:hover,
.rz-dropdown:hover,
.rz-numeric:hover,
.rz-datepicker-input:hover,
.rz-textarea:hover,
.rz-mask:hover {
    border-color: var(--border-hover) !important;
    box-shadow: var(--shadow) !important;
    transform: translateY(-1px) !important;
}

.rz-textbox:focus,
.rz-dropdown:focus,
.rz-numeric:focus,
.rz-datepicker-input:focus,
.rz-textarea:focus,
.rz-mask:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-focus) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
}

/* Professional Select Styling */
.enterprise-select,
.rz-dropdown {
    border: 1.6px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition) !important;
}

.enterprise-select:hover,
.rz-dropdown:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-focus) !important;
}

/* Form Labels - Professional Typography */
.rz-text,
.enterprise-form-label {
    color: var(--text-1) !important;
    font-weight: 600 !important;
    font-size: var(--font-size-base) !important;
    margin-bottom: var(--space-2) !important;
    font-family: 'Inter', sans-serif !important;
}

/* ===================================
   MODERN CHECKBOX CONTAINER
   Clean Corporate Design
   =================================== */

.enterprise-checkbox-container {
    width: 100%;
    margin: var(--space-3) 0;
}

.modern-checkbox-wrapper {
    background: var(--bg-card);
    border: 1.6px solid var(--border-color-light);
    border-radius: var(--radius);
    padding: var(--space-4);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.modern-checkbox-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3.2px;
    height: 100%;
    background: var(--border-color-light);
    transition: var(--transition);
}

.modern-checkbox-wrapper:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-focus);
    transform: translateY(-1.6px);
    background: var(--brand-primary-light);
}

.modern-checkbox-wrapper:hover::before {
    background: var(--brand-primary);
    width: 4.8px;
}

.modern-checkbox-wrapper.checked {
    background: var(--brand-primary-light);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-success);
}

.modern-checkbox-wrapper.checked::before {
    background: var(--brand-primary);
    width: 4.8px;
}

/* Modern Corporate Checkbox */
.modern-corporate-checkbox {
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.checkbox-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.checkbox-main-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.4;
    margin: 0;
}

.checkbox-status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: 40px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid;
}

.status-badge.status-active {
    background: var(--success-bg);
    color: var(--success-color);
    border-color: var(--success-border);
}

.status-badge.status-inactive {
    background: var(--error-bg);
    color: var(--error-color);
    border-color: var(--error-border);
}

.status-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.checkbox-description {
    font-size: var(--font-size-sm);
    color: var(--text-3);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* ===================================
   RESPONSIVE CHECKBOX DESIGN
   =================================== */

@media (max-width: 768px) {
    .modern-checkbox-wrapper {
        padding: var(--space-3);
        gap: var(--space-3);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkbox-main-label {
        font-size: var(--font-size-base);
    }
    
    .checkbox-status-indicator {
        align-self: flex-start;
    }
    
    .status-badge {
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-size-xs);
    }
}

.enterprise-checkbox-wrapper.checked {
    background: var(--brand-primary-light);
    border-color: var(--brand-primary);
}

/* ===================================
   FORM FIELD ENHANCEMENTS
   =================================== */

.rz-textbox,
.rz-dropdown,
.rz-numeric,
.rz-datepicker-input {
    border: 1.6px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: var(--space-3) !important;
    font-size: 0.9375rem !important;
    transition: var(--transition) !important;
    background: white !important;
    box-shadow: var(--shadow-sm) !important;
}

.rz-textbox:hover,
.rz-dropdown:hover,
.rz-numeric:hover,
.rz-datepicker-input:hover {
    border-color: var(--border-hover) !important;
    box-shadow: var(--shadow) !important;
}

.rz-textbox:focus,
.rz-dropdown:focus,
.rz-numeric:focus,
.rz-datepicker-input:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-focus) !important;
    outline: none !important;
}

/* Form Labels */
.rz-text {
    color: var(--text-1) !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    margin-bottom: var(--space-1) !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .zone-header {
        padding: var(--space-5) 0;
    }
    
    .zone-header-container {
        padding: 0 var(--space-3);
    }
    
    .zone-header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .zone-title-section {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }
    
    .zone-title-content h1 {
        font-size: 2rem;
    }
    
    .zone-stats {
        justify-content: center;
        width: 100%;
    }
    
    .zone-stat-card {
        min-width: 96px;
    }
    
    .zone-content {
        padding: 0 var(--space-3) var(--space-3);
    }
    
    .zone-progress {
        padding: var(--space-3);
    }
    
    .progress-step {
        padding: var(--space-2);
    }
}
/* ===================================
   ENTERPRISE FORM SUBMIT COMPONENT
   Professional Checkbox & Form Styling
   =================================== */

/* Form Container */
.enterprise-form-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Form Header */
.enterprise-form-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
}

.enterprise-form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="20" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="20" cy="70" r="2" fill="rgba(255,255,255,0.06)"/></svg>');
    opacity: 0.7;
}

.form-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.form-icon-wrapper {
    flex-shrink: 0;
}

.form-icon-badge {
    width: 51.2px;
    height: 51.2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3.2px 9.6px rgba(0, 0, 0, 0.1);
}

.form-header-text {
    flex: 1;
    min-width: 160px;
}

.form-title {
    margin: 0 0 var(--space-1) 0;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 0 1.6px 3.2px rgba(0, 0, 0, 0.1);
}

.form-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.form-header-badge {
    flex-shrink: 0;
}

/* Form Body */
.enterprise-form-body {
    padding: var(--space-5);
}

.enterprise-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.enterprise-form-field {
    margin-bottom: 19.2px;
}

.enterprise-form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-1);
    font-size: 0.9375rem;
    letter-spacing: 0.025em;
}

.label-text {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.label-text.required {
    position: relative;
}

.required-indicator {
    color: var(--error-color);
    font-weight: 700;
    margin-left: var(--space-1);
}

.enterprise-form-input-wrapper {
    position: relative;
}

/* ===================================
   PROFESSIONAL CHECKBOX STYLES
   Enhanced Radzen Checkbox Design
   =================================== */

/* Enhanced Checkbox Wrapper */
.enterprise-checkbox-wrapper {
    background: white;
    border: 1.6px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    margin: var(--space-2) 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.enterprise-checkbox-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3.2px;
    height: 100%;
    background: var(--border-color);
    transition: var(--transition);
}

.enterprise-checkbox-wrapper:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-focus);
    transform: translateY(-1.6px);
    background: var(--brand-primary-light);
}

.enterprise-checkbox-wrapper:hover::before {
    background: var(--brand-primary);
}

.enterprise-checkbox-wrapper.checked {
    background: var(--brand-primary-light);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-focus);
}

.enterprise-checkbox-wrapper.checked::before {
    background: var(--brand-primary);
}

/* Professional Checkbox Component */
.enterprise-checkbox {
    margin-right: var(--space-3) !important;
}

.enterprise-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-1);
    font-size: 0.9375rem;
    line-height: 1.4;
    width: 100%;
}

.checkbox-text {
    font-weight: 600;
    transition: var(--transition);
}

.checkbox-status {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem var(--space-2);
    border-radius: 40px;
    transition: var(--transition);
}

.checkbox-status.active {
    background: var(--success-bg);
    color: var(--success-color);
}

.checkbox-status.inactive {
    background: var(--error-bg);
    color: var(--error-color);
}

/* Radzen Checkbox Override for Professional Look */
.rz-chkbox-box,
.rz-checkbox .rz-chkbox-box {
    width: 17.6px !important;
    height: 17.6px !important;
    border: 1.6px solid var(--border-color) !important;
    border-radius: var(--radius-xs) !important;
    background: white !important;
    transition: var(--transition) !important;
    position: relative !important;
    box-shadow: var(--shadow-sm) !important;
}

.rz-chkbox-box:hover,
.rz-checkbox .rz-chkbox-box:hover {
    border-color: var(--brand-primary) !important;
    background: var(--brand-primary-light) !important;
    transform: scale(1.05) !important;
    box-shadow: var(--shadow-focus) !important;
}

.rz-chkbox-checked .rz-chkbox-box,
.rz-checkbox.rz-chkbox-checked .rz-chkbox-box {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-focus) !important;
}

.rz-chkbox-icon,
.rz-checkbox .rz-chkbox-icon {
    color: white !important;
    font-size: 11.2px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* Enhanced Radzen Components */
.rz-textbox,
.rz-dropdown,
.rz-numeric,
.rz-datepicker-input,
.rz-textarea,
.rz-mask {
    border: 1.6px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: var(--space-3) !important;
    font-size: 0.9375rem !important;
    transition: var(--transition) !important;
    background: white !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text-1) !important;
    font-weight: 500 !important;
}

.rz-textbox:hover,
.rz-dropdown:hover,
.rz-numeric:hover,
.rz-datepicker-input:hover,
.rz-textarea:hover,
.rz-mask:hover {
    border-color: var(--border-hover) !important;
    box-shadow: var(--shadow) !important;
    transform: translateY(-1px) !important;
}

.rz-textbox:focus,
.rz-dropdown:focus,
.rz-numeric:focus,
.rz-datepicker-input:focus,
.rz-textarea:focus,
.rz-mask:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-focus) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
}

/* Professional Select Styling */
.enterprise-select {
    border: 1.6px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background: white !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition) !important;
}

.enterprise-select:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-focus) !important;
}

/* Form Actions */
.enterprise-form-actions {
    padding: var(--space-4) var(--space-5);
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

.enterprise-btn {
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.enterprise-btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.enterprise-btn-primary:hover {
    background: var(--brand-primary-hover);
    box-shadow: var(--shadow);
    transform: translateY(-1.6px);
}

.enterprise-btn-secondary {
    background: white;
    color: var(--text-1);
    border: 1.6px solid var(--border-color);
}

.enterprise-btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

/* ===================================
   RESPONSIVE FORM DESIGN
   =================================== */

@media (max-width: 768px) {
    .enterprise-form-header {
        padding: var(--space-4);
    }
    
    .form-header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .enterprise-form-body {
        padding: var(--space-4);
    }
    
    .enterprise-form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .enterprise-form-actions {
        padding: var(--space-3);
        flex-direction: column;
    }
    
    .enterprise-btn {
        width: 100%;
        justify-content: center;
    }
    
    .enterprise-checkbox-wrapper {
        padding: var(--space-2);
    }
}

.crud__stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1.6px);
}

.crud__stat-icon {
    flex-shrink: 0;
}

.crud__stat-info {
    display: flex;
    flex-direction: column;
}

.crud__stat-number {
    font-size: 19.2px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1;
    margin-bottom: 1.6px;
}

.crud__stat-label {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   LOADING STATE
   =================================== */

.crud__loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-top: var(--space-4);
}

.crud__loading-content {
    text-align: center;
    max-width: 240px;
}

.crud__loading-spinner {
    margin-bottom: var(--space-4);
}

.crud__loading-title {
    margin: 0 0 var(--space-2) 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
}

.crud__loading-text {
    margin: 0;
    color: var(--text-2);
    font-size: 11.2px;
}

/* ===================================
   CONTENT SECTION
   =================================== */

.crud__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.crud__toolbar-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.crud__grid-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.crud__grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.crud__grid-title h4 {
    margin: 0 0 3.2px 0;
    font-size: 14.4px;
    font-weight: 600;
    color: var(--text-1);
}

.crud__grid-subtitle {
    font-size: 11.2px;
    color: var(--text-2);
}

.crud__selection-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.crud__selection-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--brand-primary);
    color: white;
    padding: 3.2px 6.4px;
    border-radius: 12.8px;
    font-size: 11px;
    font-weight: 500;
}

.crud__selected-item {
    font-size: 11.2px;
    color: var(--text-2);
    font-weight: 500;
}

/* ===================================
   RESPONSIVE PAGE HEADER
   =================================== */

@media (max-width: 768px) {
    .crud__page-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
    }
    
    .crud__page-title {
        min-width: auto;
    }
    
    .crud__page-heading {
        font-size: 19.2px !important;
    }
    
    .crud__page-stats {
        justify-content: center;
    }
    
    .crud__stat-card {
        flex: 1;
        min-width: 96px;
    }
    
    .crud__grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .crud__selection-info {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===================================
   TOOLBAR COMPONENT
   =================================== */

.crud__toolbar {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.crud__toolbar .btn-group {
    display: flex;
    gap: var(--space-1);
    align-items: center;
}

.crud__toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 11.2px;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
    min-height: 35.2px;
    cursor: pointer;
}

.crud__toolbar .btn-primary {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.crud__toolbar .btn-primary:hover {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.crud__toolbar .btn-light {
    background: white;
    color: var(--text-1);
    border-color: var(--border-color);
}

.crud__toolbar .btn-light:hover {
    background: var(--bg-body);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.crud__toolbar .btn[data-kt-indicator="on"] {
    position: relative;
    pointer-events: none;
}

.crud__toolbar .btn .indicator-progress {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.crud__toolbar .btn .ki-duotone {
    font-size: 12.8px;
}

/* Mobile toolbar adjustments */
@media (max-width: 768px) {
    .crud__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }
    
    .crud__toolbar .btn-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .crud__toolbar .btn {
        flex: 1;
        min-width: 96px;
        justify-content: center;
    }
    
    .crud__toolbar .btn .d-none.d-md-inline {
        display: inline !important;
    }
}

/* ===================================
   DATA GRID COMPONENT
   =================================== */

.crud__grid {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-2);
    overflow: hidden;
}

.crud__grid .rz-datagrid {
    border: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.crud__grid .rz-datagrid-header {
    background: var(--bg-body);
    border-bottom: 1.6px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.crud__grid .rz-datagrid-header .rz-cell {
    font-weight: 600;
    color: var(--text-1);
    padding: var(--space-3);
    border-right: 1px solid var(--border-color-light);
}

.crud__grid .rz-datagrid-row {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color-light);
}

.crud__grid .rz-datagrid-row:hover {
    background: var(--brand-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.crud__grid .rz-datagrid-row-selected {
    background: var(--brand-primary-light);
    border-left: 3.2px solid var(--brand-primary);
}

.crud__grid .rz-datagrid-cell {
    padding: var(--space-3);
    border-right: 1px solid var(--border-color-light);
    color: var(--text-2);
}

.crud__grid .rz-badge {
    font-weight: 500;
    padding: 3.2px 6.4px;
    border-radius: 16px;
    font-size: 11px;
}

/* Grid actions column */
.crud__grid-actions {
    display: flex;
    gap: var(--space-1);
    justify-content: center;
    align-items: center;
}

.crud__grid-actions .rz-button {
    padding: 4.8px;
    border-radius: 4.8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25.6px;
    min-height: 25.6px;
    background: white;
    color: var(--text-2);
}

.crud__grid-actions .rz-button:hover {
    transform: scale(1.1);
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Empty state */
.crud__grid .is-empty {
    text-align: center;
    padding: var(--space-6);
    color: var(--text-3);
}

.crud__grid .is-empty p {
    font-size: 14.4px;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-2);
}

.crud__grid .is-empty small {
    font-size: 11.2px;
}

/* Responsive grid */
@media (max-width: 768px) {
    .crud__grid {
        padding: var(--space-1);
        margin: 0 -6.4px;
    }
    
    .crud__grid .rz-datagrid {
        font-size: 11.2px;
    }
    
    .crud__grid .rz-datagrid-header .rz-cell,
    .crud__grid .rz-datagrid-cell {
        padding: var(--space-2);
    }
    
    .crud__grid .rz-datagrid {
        overflow-x: auto;
    }
    
    .crud__grid-actions {
        flex-direction: column;
        gap: 3.2px;
    }
    
    .crud__grid-actions .rz-button {
        min-width: 22.4px;
        min-height: 22.4px;
        padding: 3.2px;
    }
}

/* ===================================
   FORM COMPONENT
   =================================== */

.crud__form {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-4);
    max-width: 960px;
    margin: 0 auto;
}

.crud__form-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1.6px solid var(--border-color-light);
}

.crud__form-header .ki-duotone {
    color: var(--brand-primary);
}

.crud__form-header h2 {
    margin: 0;
    color: var(--text-1);
    font-weight: 600;
    font-size: 19.2px;
}

.crud__form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.crud__form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.crud__form-field .form-label {
    font-weight: 500;
    color: var(--text-1);
    margin-bottom: var(--space-1);
}

.crud__form-field .form-label .required::after {
    content: " *";
    color: var(--error-color);
}

.crud__form-field .rz-textbox,
.crud__form-field .rz-dropdown,
.crud__form-field .rz-numeric,
.crud__form-field .rz-datepicker {
    border: 1px solid var(--border-color);
    /*border-radius: var(--radius-sm);*/
    padding: var(--space-2) var(--space-3);
    font-size: 11.2px;
    transition: var(--transition);
    background: white;
}

.crud__form-field .rz-textbox:focus,
.crud__form-field .rz-dropdown:focus,
.crud__form-field .rz-numeric:focus,
.crud__form-field .rz-datepicker:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2.4px var(--brand-primary-light);
    outline: none;
}

.crud__form-field .form-check-input {
    margin: 0;
}

.crud__form-field .form-check-input:focus {
    box-shadow: 0 0 0 2.4px var(--brand-primary-light);
}

/* Keep Radzen input action icons fully visible */
.enterprise-form-input-wrapper .rz-numeric,
.enterprise-form-input-wrapper .rz-datepicker,
.crud__form-field .rz-numeric,
.crud__form-field .rz-datepicker {
    padding: 0 !important;
}

.enterprise-form-input-wrapper .rz-datepicker > .rz-inputtext,
.crud__form-field .rz-datepicker > .rz-inputtext,
.enterprise-form-input-wrapper .rz-numeric > .rz-numeric-input,
.crud__form-field .rz-numeric > .rz-numeric-input {
    box-sizing: border-box;
}

/* Validation messages */
.crud__form-field .validation-message {
    color: var(--error-color);
    font-size: 11px;
    margin-top: var(--space-1);
}

/* Form actions */
.crud__actions {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color-light);
}

.crud__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 11.2px;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
    min-height: 35.2px;
    min-width: 96px;
    justify-content: center;
    cursor: pointer;
}

.crud__actions .btn-primary {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.crud__actions .btn-primary:hover {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.crud__actions .btn-secondary {
    background: white;
    color: var(--text-2);
    border-color: var(--border-color);
}

.crud__actions .btn-secondary:hover {
    background: var(--bg-body);
    border-color: var(--text-2);
    color: var(--text-1);
}

/* Mobile form adjustments */
@media (max-width: 768px) {
    .crud__form {
        padding: var(--space-3);
        margin: 0 -6.4px;
        border-radius: 0;
    }
    
    .crud__form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .crud__actions {
        flex-direction: column-reverse;
    }
    
    .crud__actions .btn {
        width: 100%;
    }
}

/* ===================================
   LOADING STATES
   =================================== */

.is-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 1.6px solid transparent;
    border-top: 1.6px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   ERROR STATES
   =================================== */

.is-error {
    background: var(--error-bg);
    border: 1px solid var(--error-color);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    margin: var(--space-3) 0;
    color: var(--error-color);
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.crud__toolbar .btn:focus,
.crud__actions .btn:focus,
.crud__grid-actions .btn:focus {
    outline: 1.6px solid var(--brand-primary);
    outline-offset: 1.6px;
}

.crud__form-field input:focus,
.crud__form-field select:focus,
.crud__form-field textarea:focus {
    outline: 1.6px solid var(--brand-primary);
    outline-offset: 1.6px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   RADZEN COMPONENT OVERRIDES
   =================================== */

/* Radzen DataGrid improvements */
.crud__grid .rz-datatable,
.crud__grid .rz-datagrid {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.crud__grid .rz-datatable-header,
.crud__grid .rz-datagrid-header {
    background-color: var(--bg-body) !important;
    border-bottom: 1.6px solid var(--border-color) !important;
}

.crud__grid .rz-datatable-header th,
.crud__grid .rz-datagrid-header th {
    background-color: transparent !important;
    color: var(--text-1) !important;
    font-weight: 600 !important;
    padding: var(--space-3) !important;
    border-right: 1px solid var(--border-color-light) !important;
}

.crud__grid .rz-datatable-data tr,
.crud__grid .rz-datagrid-data tr {
    border-bottom: 1px solid var(--border-color-light) !important;
    transition: var(--transition) !important;
}

.crud__grid .rz-datatable-data tr:hover,
.crud__grid .rz-datagrid-data tr:hover {
    background-color: var(--brand-primary-light) !important;
}

.crud__grid .rz-datatable-data td,
.crud__grid .rz-datagrid-data td {
    padding: var(--space-3) !important;
    border-right: 1px solid var(--border-color-light) !important;
    color: var(--text-2) !important;
    vertical-align: middle !important;
}

.crud__grid .rz-paginator {
    border-top: 1px solid var(--border-color) !important;
    background: var(--bg-body) !important;
    padding: var(--space-3) !important;
}

.crud__grid .rz-paginator .rz-paginator-pages {
    display: flex !important;
    gap: var(--space-1) !important;
}

.crud__grid .rz-paginator .rz-paginator-page {
    border-radius: var(--radius-sm) !important;
    transition: var(--transition) !important;
}

.crud__grid .rz-paginator .rz-paginator-page.rz-state-active {
    background: var(--brand-primary) !important;
    color: white !important;
}

/* Radzen Form improvements */
.crud__form .rz-fieldset {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: var(--space-4) !important;
}

.crud__form .rz-fieldset-legend {
    background: var(--bg-card) !important;
    color: var(--text-1) !important;
    font-weight: 600 !important;
    padding: 0 var(--space-2) !important;
}

/* Radzen Button improvements */
.crud .rz-button {
    border-radius: var(--radius-sm) !important;
    transition: var(--transition) !important;
}

.crud .rz-button.rz-button-success {
    background: var(--success-color) !important;
}

.crud .rz-button.rz-button-danger {
    background: var(--error-color) !important;
}

.crud .rz-button.rz-button-light {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-2) !important;
}

.crud .rz-button.rz-button-light:hover {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: white !important;
}

/* Radzen Badge improvements */
.crud .rz-badge-success {
    background: var(--success-color) !important;
    color: white !important;
}

.crud .rz-badge-danger {
    background: var(--error-color) !important;
    color: white !important;
}

/* Radzen Notification improvements */
.crud .rz-notification {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
}

/* Toolbar specific Radzen button styles */
.crud__toolbar .rz-button {
    min-height: 35.2px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
}

.crud__toolbar .rz-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow) !important;
}
