/* Dashboard Components */
.dashboard {
    max-width: 100%;
    width: 100%;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.welcome-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.welcome-text {
    flex: 1;
    min-width: 300px;
}

.welcome-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.welcome-section h2 .business-name {
    font-weight: 600;
    opacity: 0.95;
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.business-logo-icon {
    height: 5.5em;
    width: auto;
    max-height: 5.5em;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.welcome-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Client Stats Container */
.client-stats-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.client-stats-title {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.client-stats-wrapper {
    padding: var(--spacing-lg);
}

.client-stats-wrapper .stats-grid {
    margin-bottom: 0;
}

/* Stats Card */
.stats-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stats-card__icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.stats-card--primary {
    border: 1px solid var(--primary-color);
}

.stats-card--primary .stats-card__icon {
    background: var(--primary-color);
}

.stats-card--success {
    border: 1px solid var(--primary-color);
}

.stats-card--success .stats-card__icon {
    background: var(--primary-color);
}

.stats-card--warning {
    border: 1px solid var(--primary-color);
}

.stats-card--warning .stats-card__icon {
    background: var(--primary-color);
}

.stats-card--info {
    border: 1px solid var(--primary-color);
}

.stats-card--info .stats-card__icon {
    background: var(--primary-color);
}

.stats-card--danger {
    border: 1px solid var(--primary-color);
}

.stats-card--danger .stats-card__icon {
    background: var(--primary-color);
}

.stats-card__title {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.stats-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 0.25rem;
}

.stats-card__subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stats-card__trend {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stats-card--default {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.stats-card--info {
    border: 1px solid var(--primary-color);
}

.stats-card--warning {
    border: 1px solid var(--primary-color);
}

.stats-card--danger {
    border: 1px solid var(--primary-color);
}

/* Quick Actions */

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--gray-700);
}

.action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1.5rem;
}

.action-btn span {
    font-weight: 500;
    text-align: center;
}

/* Action button color variants */



/* Text Colors */

.text-danger {
    color: var(--danger-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        padding: var(--spacing-lg);
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }
}

/* Header User Menu Styles */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: none;
    border: none;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.user-btn:hover {
    background: var(--gray-100);
}

.user-name {
    font-weight: 500;
    color: var(--gray-700);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 220px;
    min-width: 200px;
    max-width: calc(100vw - var(--spacing-md) * 2);
    z-index: 1000;
    display: none;
    margin-top: var(--spacing-xs);
}

.user-dropdown.show {
    display: block;
}

.user-details strong {
    display: block;
    color: var(--gray-800);
}

.user-details small {
    color: var(--gray-500);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.dropdown-item.text-danger {
    color: var(--danger-color);
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: var(--danger-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--spacing-xs) 0;
}

/* General Bootstrap dropdown optimizations */
.dropdown-menu {
    max-width: calc(100vw - var(--spacing-md) * 2);
    overflow-x: hidden;
}

.dropdown-item {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.auth-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-outline {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Page Header Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    gap: var(--spacing-lg);
}

.page-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.page-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.page-title span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.page-description {
    flex: 1;
}

.page-description p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-lg);
}

/* Form Styles for Main Layout */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--gray-700);
}

.form-input, .form-select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 61, 52, 0.1);
} 

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: 1px solid var(--danger-color);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Generic Form Styles */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.form-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-xl);
    text-align: center;
    position: relative;
}

.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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.form-content {
    padding: var(--spacing-2xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.form-group label:hover {
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 61, 52, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--gray-300);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group input[type="date"] {
    font-family: inherit;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: var(--spacing-sm);
    transform: scale(1.2);
}

.required {
    color: var(--danger-color);
    font-weight: 700;
    margin-right: var(--spacing-xs);
}

.form-help {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--danger-color);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-100);
    grid-column: 1 / -1;
}

/* Centrar botones en confirmaciones de eliminación */
.form-actions.centered {
    justify-content: center;
    border-top: none;
    padding-top: 0;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
    height: auto;
}

/* Botón danger para formularios (confirmaciones) */
.btn-danger.btn-form {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
    height: auto;
    background: var(--danger-color);
    color: white;
    border: 1px solid var(--danger-color);
}

.btn-danger.btn-form:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), #0f2a22);
}

.btn-secondary {
    background: white;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Sistema de distribución de campos en filas - REEMPLAZA el grid anterior */

/* Special styling for specific field types */
.form-group input[type="email"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%236b7280" viewBox="0 0 16 16"><path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2zm13 2.383l-4.708 2.825L15 11.105V5.383zm-.034 6.876l-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741zM1 11.105l4.708-2.897L1 5.383v5.722z"/></svg>');
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    padding-right: calc(var(--spacing-md) * 2 + 16px);
}

.form-group input[type="tel"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%236b7280" viewBox="0 0 16 16"><path d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"/></svg>');
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    padding-right: calc(var(--spacing-md) * 2 + 16px);
}

/* Animation for form appearance */
.form-container {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeIn 0.4s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced form styling with visual sections */
.form-group.personal-info {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    background: linear-gradient(90deg, rgba(30, 61, 52, 0.05), transparent);
}

.form-group.contact-info {
    border-left: 4px solid var(--success-color);
    padding-left: var(--spacing-md);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), transparent);
}

.form-group.address-info {
    border-left: 4px solid var(--info-color);
    padding-left: var(--spacing-md);
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05), transparent);
}

.form-group.emergency-info {
    border-left: 4px solid var(--warning-color);
    padding-left: var(--spacing-md);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), transparent);
}

.form-group.work-info {
    border-left: 4px solid var(--secondary-color);
    padding-left: var(--spacing-md);
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.05), transparent);
}

.form-group.qualifications-info {
    border-left: 4px solid var(--info-color);
    padding-left: var(--spacing-md);
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05), transparent);
}

.form-group.status-info {
    border-left: 4px solid var(--gray-500);
    padding-left: var(--spacing-md);
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.05), transparent);
}

/* Hover effects for form sections */
.form-group:hover {
    transform: translateX(5px);
    transition: transform 0.2s ease;
}

.form-group.personal-info:hover {
    background: linear-gradient(90deg, rgba(30, 61, 52, 0.1), transparent);
}

.form-group.contact-info:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), transparent);
}

.form-group.address-info:hover {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), transparent);
}

.form-group.emergency-info:hover {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent);
}

.form-group.work-info:hover {
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.1), transparent);
}

.form-group.qualifications-info:hover {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), transparent);
}

.form-group.status-info:hover {
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.1), transparent);
}

/* Enhanced input styling */
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 61, 52, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Special styling for required fields */
.form-group label .required {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced button styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), #0f2a22);
}

/* Form help text enhancement */
.form-help {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gray-300);
}

/* Error message enhancement */
.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--danger-color);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .form-content {
        padding: var(--spacing-lg);
    }
    
    .form-group {
        margin-bottom: var(--spacing-md);
    }
    
    .form-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-xl);
        padding-top: var(--spacing-lg);
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        min-width: auto;
    }
}

/* Print styles */
@media print {
    .form-container {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    .form-header {
        background: var(--gray-100) !important;
        color: var(--gray-900) !important;
    }
    
    .form-actions {
        display: none;
    }
}

/* Filters Component */
.filters-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    width: 100%;
    box-sizing: border-box;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.filter-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-input {
    padding: var(--spacing-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 61, 52, 0.1);
}

.filter-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    width: 100%;
}

.filter-actions .btn-secondary {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
    min-width: auto;
    flex: 1;
    min-width: 0;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: auto;
    flex: 1;
    min-width: 0;
}

.btn-filter:hover {
    background: var(--primary-dark);
}

/* Pagination Component */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.page-info {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0 var(--spacing-md);
}

/* Data Table Styles */
.table-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-card__header {
    background: transparent;
    padding: 0;
    margin: 0;
}

.table-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 2px solid var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.table-container {
    overflow-x: auto;
}

.table-card__body {
    padding: var(--spacing-xl);
}

.payroll-detail-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
}

.payroll-detail-card__title {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
}

.payroll-detail-card__title i {
    font-size: 1rem;
}

.payroll-detail-card__body {
    padding: var(--spacing-xl);
}

.payroll-detail-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--spacing-lg);
}

.payroll-detail-list--horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.payroll-detail-item {
    display: flex;
    flex-direction: column;
}

.payroll-detail-list dt {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.payroll-detail-list--horizontal .payroll-detail-item dt {
    margin-bottom: var(--spacing-xs);
}

.payroll-detail-list dt i {
    font-size: 0.875rem;
    width: 18px;
    text-align: center;
    color: var(--gray-500);
}

.payroll-detail-list dt .text-success,
.payroll-detail-list dt .text-info,
.payroll-detail-list dt .text-danger {
    color: inherit;
}

.payroll-detail-list dd {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 500;
    padding-left: calc(18px + var(--spacing-sm));
}

.payroll-detail-list--horizontal .payroll-detail-item dd {
    padding-left: calc(18px + var(--spacing-sm));
}

.payroll-net-label {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--gray-200);
    font-size: 0.875rem !important;
    color: var(--primary-color) !important;
}

.payroll-net-label i {
    color: var(--primary-color) !important;
}

.payroll-net-value {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    padding-left: calc(18px + var(--spacing-sm)) !important;
    margin-top: var(--spacing-xs) !important;
}

@media (max-width: 768px) {
    .payroll-detail-card__body {
        padding: var(--spacing-lg);
    }
    
    .payroll-detail-list {
        gap: var(--spacing-md);
    }
    
    .payroll-net-value {
        font-size: 1.5rem !important;
    }
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.data-table th,
.data-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    background: var(--primary-color);
    font-weight: 600;
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-lg) var(--spacing-xl);
}

.data-table th:first-child {
    border-top-left-radius: var(--radius-md);
}

.data-table th:last-child {
    border-top-right-radius: var(--radius-md);
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: var(--gray-50);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.table-header-label {
    font-weight: 600;
    color: white;
    font-size: 0.75rem;
}

.sortable-header {
    text-decoration: none !important;
    color: inherit;
    display: block;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.sortable-header:hover {
    opacity: 0.9;
    text-decoration: none !important;
}

.sortable-header:visited {
    text-decoration: none !important;
}

.sortable-header .table-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.sort-icon {
    font-size: 0.7rem;
    color: white;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.sortable-header:hover .sort-icon {
    opacity: 1;
    color: white;
}

.table-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-icon.btn-danger:hover {
    background: #fef2f2;
    color: var(--danger-color);
}

/* Badge Styles */
.badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-primary {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Page Header Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-lg);
}

.header-content h1 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--gray-900);
    font-size: 1.75rem;
    font-weight: 600;
}

.header-content p {
    margin: 0;
    color: var(--gray-600);
}

.header-actions {
    display: flex;
    gap: var(--spacing-md);
}

/* Facility specific styles */

/* Button Enhancements */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Empty State Button */
.empty-state .btn-primary {
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.empty-state .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header Actions */
.header-actions .btn-primary {
    min-width: 160px;
    justify-content: center;
}



/* Detail Styles */
.detail-section {
    margin-bottom: var(--spacing-xl);
}

.detail-section h3 {
    color: var(--gray-800);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
}

.detail-section h4 {
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.detail-item label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.detail-item span {
    color: var(--gray-900);
    font-size: 1rem;
}

.features-grid {
    margin-top: var(--spacing-lg);
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.feature-tag {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Person Styles - genérico para residentes, staff, etc. */
.person-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.person-name {
    font-weight: 500;
    color: var(--gray-900);
}

.person-detail {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.room-info {
    font-weight: 500;
    color: var(--primary-color);
}

.no-room {
    font-style: italic;
    color: var(--gray-500);
}

/* City Autocomplete styles */
.city-autocomplete {
    position: relative;
    width: 100%;
    z-index: 9999;
}

/* Contenedor específico para el autocompletado en formularios */
#city-autocomplete-container {
    position: relative;
    z-index: 9999;
}

/* Asegurar que el grupo de formulario del autocompletado tenga el contexto correcto */
.form-group-autocomplete {
    position: relative;
    z-index: 9999;
}

.city-search {
    width: 100%;
}

.city-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 99999;
    margin-top: 0.25rem;
}

.city-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.city-item:last-child {
    border-bottom: none;
}

.city-item:hover {
    background-color: var(--bg-hover);
}

.city-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.city-province {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.city-external {
    background-color: var(--bg-light);
    border-left: 3px solid var(--primary-color);
}

.city-external-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
    .filters-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .filters-form {
        gap: var(--spacing-md);
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .filter-group {
        width: 100%;
        min-width: 0;
    }
    
    .filter-label {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .filter-input {
        width: 100%;
        padding: var(--spacing-sm);
        font-size: 0.9rem;
        box-sizing: border-box;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        border-top: 1px solid var(--gray-200);
    }
    
    .filter-actions .btn-filter,
    .filter-actions .btn-secondary {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: stretch;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .header-actions .btn-primary {
        min-width: auto;
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    /* User dropdown mobile optimizations */
    .user-menu {
        position: relative;
    }
    
    .user-dropdown {
        position: fixed !important;
        top: auto !important;
        right: var(--spacing-md) !important;
        left: var(--spacing-md) !important;
        width: auto !important;
        max-width: none !important;
        margin-top: var(--spacing-sm);
        transform: translateY(0);
    }
    
    .user-btn {
        max-width: 150px;
    }
    
    .user-name {
        font-size: 0.875rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Business switch dropdown mobile optimizations */
    .business-switch .dropdown-item {
        font-size: 0.85rem;
        padding: 8px 10px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .business-switch .dropdown-item .badge {
        font-size: 0.65rem;
        padding: 2px 4px;
        margin-left: 4px;
    }
    
    /* General dropdown menu mobile optimizations */
    .dropdown-menu {
        max-width: calc(100vw - var(--spacing-md) * 2) !important;
        left: var(--spacing-md) !important;
        right: var(--spacing-md) !important;
        width: auto !important;
    }
    
    .dropdown-item {
        font-size: 0.875rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        right: var(--spacing-sm) !important;
        left: var(--spacing-sm) !important;
    }
    
    .user-btn {
        max-width: 120px;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .dropdown-item {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .dropdown-item i {
        font-size: 0.9rem;
    }
    
    /* Filtros de búsqueda - Responsive adicional para pantallas muy pequeñas */
    .filters-card {
        padding: var(--spacing-sm);
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--gray-200);
        border-bottom: 1px solid var(--gray-200);
    }
    
    .filters-grid {
        gap: var(--spacing-sm);
    }
    
    .filter-label {
        font-size: 0.8rem;
    }
    
    .filter-input {
        font-size: 0.875rem;
        padding: 0.625rem;
    }
    
    .filter-actions {
        gap: var(--spacing-xs);
    }
    
    .filter-actions .btn-filter,
    .filter-actions .btn-secondary {
        padding: 0.75rem var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* Badges para la tabla del personal */
.profession-badge {
    background: var(--info-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.years-badge {
    background: var(--success-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Selector de iconos */
.icon-selector {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    background: white;
}

.icon-search {
    margin-bottom: var(--spacing-md);
}

.icon-search input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: var(--spacing-sm);
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    background: var(--gray-50);
}

.icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    color: var(--gray-600);
}

.icon-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.icon-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.selected-icon-display {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.selected-icon-display i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Sidebar con submenús */
.nav-item.has-submenu {
    position: relative;
}

.nav-item.has-submenu .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-item.has-submenu .nav-link.active .submenu-arrow {
    color: white;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

.submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--gray-50);
    border-left: 3px solid var(--primary-color);
    margin-left: var(--spacing-md);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.nav-item.has-submenu.open .submenu {
    max-height: 500px;
}

.submenu-item {
    list-style: none;
}

.submenu-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    margin: 0 var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.submenu-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.submenu-link.active {
    background: var(--gray-200);
    border-left-color: white;
}

.submenu-link i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* Sistema de distribución de campos en filas - SIMPLE */
.form-fields-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--spacing-lg) !important;
}

.form-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: var(--spacing-lg) !important;
}

/* Secciones de formulario */

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-color);
}

/* Valores de moneda y porcentaje */
.currency-value {
    font-weight: 600;
}

.currency-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.currency-link:hover {
    color: var(--primary-color-dark) !important;
    text-decoration: underline;
}

.text-link,
.table-link {
    color: var(--primary-color) !important;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.text-link:hover,
.table-link:hover {
    color: var(--primary-color-dark) !important;
    text-decoration: underline;
}

.percentage-value {
    font-weight: 500;
}

/* Responsive simple */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* Bulk Selection Styles */
.bulk-selection-controls {
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--gray-200);
}

.bulk-select-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.bulk-select-label:hover {
    background-color: var(--gray-100);
}

.bulk-select-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transform: scale(1.2);
    margin: 0;
}

.bulk-select-text {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.data-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transform: scale(1.2);
}

.highlight-row {
    background-color: #fff3cd !important;
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { background-color: #fff3cd; }
    50% { background-color: #ffc107; }
}

/* Importar estilos de documentos */
@import url("documents.620bffb58d36.css");

