/* ==================== SALE MANAGER - NEW DESIGN ==================== */

/* AI Result Items */
.ai-result-item {
    display: flex;
    align-items: center;
    padding: var(--space-3);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.ai-result-item.clickable {
    cursor: pointer;
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.ai-result-item.clickable:hover {
    background: #eef5ff; /* safer light hover */
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ai-result-icon {
    font-size: 1.2em;
    margin-right: var(--space-2);
    min-width: 24px;
}

.ai-result-value {
    flex: 1;
    font-size: var(--font-size-sm);
}

.ai-fill-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-left: var(--space-2);
}

.ai-result-item.clickable:hover .ai-fill-hint {
    color: var(--color-text-secondary);
}

/* Ensure value text stays visible on hover */
.ai-result-item .ai-result-value,
.ai-result-item .ai-result-value strong {
    color: inherit;
}

/* Subject Management */
.subject-input-group {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.subject-input-group .neu-input {
    flex: 1;
}

.subject-templates-list {
    max-height: 300px;
    overflow-y: auto;
}

.subject-template-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    border: 1px solid var(--color-border);
}

.subject-template-info {
    flex: 1;
}

.subject-template-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.subject-template-text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.subject-template-actions {
    display: flex;
    gap: var(--space-2);
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.popup-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-lg);
}

.popup-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.popup-body {
    padding: var(--space-4);
}

.popup-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* Success/Error Message Styles */
.popup-success {
    color: var(--color-success);
}

.popup-error {
    color: var(--color-error);
}

.popup-success .popup-header h3::before {
    content: "✅ ";
}

.popup-error .popup-header h3::before {
    content: "❌ ";
}

/* Email Service Tabs */
.email-service-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
    .email-service-tabs {
        flex-direction: column;
    }
    
    .service-tab {
        width: 100%;
        justify-content: center;
    }
}

.service-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
    color: var(--color-text);
}

.service-tab:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
}

.service-tab.active {
    background: var(--color-primary);
    color: white !important;
    border-color: var(--color-primary);
}

.service-tab.active i {
    color: white !important;
}

.service-tab.active span {
    color: white !important;
}

.service-tab i {
    font-size: var(--font-size-base);
    color: inherit;
}

.service-tab:not(.active) {
    color: var(--color-text) !important;
}

.service-tab:not(.active) i {
    color: var(--color-text) !important;
}

.service-tab:not(.active) span {
    color: var(--color-text) !important;
}

.service-tab span {
    color: inherit;
    font-weight: inherit;
}

/* Ensure text visibility in active tabs */
.service-tab.active * {
    color: white !important;
}

.service-tab.active .service-name {
    color: white !important;
}

/* Service Info */
.service-info {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.service-info p {
    margin-bottom: var(--space-3);
    font-weight: 600;
    color: var(--color-text);
}

.service-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-info li {
    padding: var(--space-1) 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Form Help */
.form-help {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
    line-height: 1.4;
}

.required {
    color: var(--color-error);
    font-weight: 600;
}

/* Saved Services List */
.saved-services-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.subsection-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.saved-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.saved-service-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-success-light);
    border: 1px solid var(--color-success);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-success-dark);
}

.saved-service-item:hover {
    background: var(--color-success);
    color: white;
}

.saved-service-item i {
    font-size: var(--font-size-base);
}

.saved-service-item .service-name {
    font-weight: 600;
}

.saved-service-item .service-status {
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

.saved-service-item .service-actions {
    display: flex;
    gap: var(--space-1);
    margin-left: var(--space-2);
}

.saved-service-item .action-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: var(--font-size-xs);
}

.saved-service-item .action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.no-saved-services {
    text-align: center;
    color: var(--color-text-secondary);
    font-style: italic;
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-border);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}

:root {
    /* Directus-inspired Color Palette */
    --primary: #1a1a1a;           /* Dark Navy - Main brand color */
    --secondary: #2980B9;         /* Blue - Accent color */
    --accent: #ff6b35;            /* Orange - Call to action */
    --background: #ffffff;        /* Pure White */
    --text: #333333;              /* Dark Gray - Primary text */
    --text-light: #666666;        /* Medium Gray - Secondary text */
    --border: #e5e5e5;            /* Light Gray - Borders */
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --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;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 50%, #F8F9FA 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 100vw;
    width: 100vw;
    margin: 0;
    padding: var(--space-4);
    min-height: 100vh;
}

/* ==================== SECTION BACKGROUNDS ==================== */

/* Form Section */
.form-section {
    background: transparent;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    border: none;
    box-shadow: none;
}

/* Search Section */
.search-section {
    background: transparent;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: none;
    box-shadow: none;
}

/* Table Section */
.table-section {
    background: transparent;
    border-radius: var(--radius-xl);
    padding: 0;
    margin-bottom: var(--space-6);
    border: none;
    box-shadow: none;
}

/* Pagination Section */
.pagination-section {
    background: transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    border: none;
    box-shadow: none;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.08) 0%, rgba(41, 128, 185, 0.12) 100%);
    padding: var(--space-6) 0;
    margin-bottom: var(--space-8);
    box-shadow: 
        0 2px 8px rgba(41, 128, 185, 0.1),
        0 1px 4px var(--shadow-light);
    border-bottom: 2px solid rgba(41, 128, 185, 0.15);
}

/* Section Titles */
.section-title {
    background: transparent;
    color: var(--primary);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-6);
    border-left: 4px solid var(--secondary);
    box-shadow: none;
}

/* ==================== NEUMORPHISM COMPONENTS ==================== */

/* Cards */
.neu-card {
    background: transparent;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: none;
    transition: all var(--transition-normal);
    border: none;
}

.neu-card:hover {
    transform: none;
    box-shadow: none;
}

.neu-card--compact {
    padding: var(--space-6);
}

/* Inputs */
.neu-input,
.neu-select,
.neu-textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--text);
    transition: all var(--transition-normal);
    box-shadow: 
        inset 2px 2px 4px var(--shadow-light),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.neu-input:focus,
.neu-select:focus,
.neu-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 
        0 0 0 2px rgba(41, 128, 185, 0.15),
        inset 2px 2px 4px var(--shadow-light),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

/* Custom Select Dropdown Styling */
.neu-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: var(--space-10);
}

.neu-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232980B9' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Select Options Styling */
.neu-select option {
    background: #FFFFFF;
    color: var(--text);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    border: none;
    outline: none;
}

.neu-select option:hover {
    background: rgba(41, 128, 185, 0.1);
    color: var(--secondary);
}

.neu-select option:checked,
.neu-select option:selected {
    background: var(--secondary);
    color: #FFFFFF;
    font-weight: 600;
}

/* Enhanced Select Styling for Seamless Look */
.neu-select {
    position: relative;
}

.neu-select:focus {
    border-color: var(--secondary);
    box-shadow: 
        0 0 0 2px rgba(0, 212, 170, 0.15),
        inset 2px 2px 4px var(--shadow-light),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Custom Dropdown List Container */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-dropdown .dropdown-toggle {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 
        inset 2px 2px 4px var(--shadow-light),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-dropdown.open .dropdown-toggle {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom-color: transparent;
    box-shadow: 
        inset 2px 2px 4px var(--shadow-light),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8),
        0 2px 4px var(--shadow-light);
}

.custom-dropdown .dropdown-toggle:hover {
    border-color: var(--secondary);
    box-shadow: 
        0 0 0 2px rgba(41, 128, 185, 0.1),
        inset 2px 2px 4px var(--shadow-light),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.custom-dropdown .dropdown-toggle:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 
        0 0 0 2px rgba(41, 128, 185, 0.15),
        inset 2px 2px 4px var(--shadow-light),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.custom-dropdown .dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 
        0 8px 16px var(--shadow-medium),
        0 4px 8px var(--shadow-light);
    z-index: 1000;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all var(--transition-normal);
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown .dropdown-item {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.custom-dropdown .dropdown-item:first-child {
    padding-top: var(--space-4);
}

.custom-dropdown .dropdown-item:last-child {
    border-bottom: none;
    padding-bottom: var(--space-4);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.custom-dropdown .dropdown-item:hover {
    background: rgba(41, 128, 185, 0.1);
    color: var(--secondary);
}

.custom-dropdown .dropdown-item.selected {
    background: var(--secondary);
    color: #FFFFFF;
    font-weight: 600;
}

.custom-dropdown .dropdown-item.selected:hover {
    background: var(--secondary);
    color: #FFFFFF;
}

.neu-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.neu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    box-shadow: 
        4px 4px 8px var(--shadow-light),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.neu-btn:active {
    transform: translateY(1px);
    box-shadow: 
        2px 2px 4px var(--shadow-light),
        -2px -2px 4px rgba(255, 255, 255, 0.9);
}

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

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

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

.neu-btn--ghost {
    background: #FFFFFF;
    color: var(--text);
    border: 1px solid var(--border);
}

.neu-btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

.neu-btn--lg {
    padding: var(--space-5) var(--space-8);
    font-size: var(--font-size-lg);
}

/* ==================== LAYOUT SYSTEM ==================== */

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Spacing */
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ==================== HEADER ==================== */

.header {
    background: #FFFFFF;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: 
        8px 8px 16px var(--shadow-light),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo {
    width: 64px;
    height: 64px;
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    box-shadow: 
        6px 6px 12px var(--shadow-light),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-info h1 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-1);
}

.brand-info .company {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
}

.brand-info .website {
    font-size: var(--font-size-sm);
    color: var(--secondary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* ==================== FORM SECTIONS ==================== */

.form-section {
    background: #FFFFFF;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: 
        8px 8px 16px var(--shadow-light),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-sm);
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text);
}

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

/* Single Row Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    align-items: start;
}

.form-field {
    display: flex;
        flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.form-field .form-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-1);
}

.form-field .neu-input,
.form-field .neu-select {
    width: 100%;
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    box-sizing: border-box;
}

/* Additional Person Cards */
.additional-person {
    margin-bottom: var(--space-4);
}

.additional-person .person-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-3);
}

.additional-person .section-title {
    color: var(--secondary);
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.radio-item {
    flex: 1;
    position: relative;
}

.radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-label {
    display: flex;
        align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 600;
    box-shadow: 
        6px 6px 12px var(--shadow-light),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.radio-label:hover {
    transform: translateY(-1px);
}

.radio-input:checked + .radio-label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 
        6px 6px 12px rgba(255, 107, 107, 0.3),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

/* ==================== TABLE ==================== */

.table-section {
    background: #FFFFFF;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: 
        8px 8px 16px var(--shadow-light),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.table-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: 
        inset 4px 4px 8px var(--shadow-light),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.data-table th {
    background: var(--background);
    color: var(--text);
    padding: var(--space-4) var(--space-3);
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: var(--space-3);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table tbody tr:hover {
    background: rgba(78, 205, 196, 0.05);
}

/* ==================== SEARCH & FILTERS ==================== */

.search-section {
    background: #FFFFFF;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: 
        6px 6px 12px var(--shadow-light),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.search-row {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box .neu-input {
    padding-left: var(--space-10);
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto;
    gap: var(--space-3);
    align-items: center;
}

/* Email List Styling */
.email-list {
    line-height: 1.4;
}

.email-item {
    margin-bottom: var(--space-1);
    font-size: var(--font-size-sm);
}

.email-item:last-child {
    margin-bottom: 0;
}

.email-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.email-item a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Phone List Styling */
.phone-list {
    line-height: 1.4;
}

.phone-item {
    margin-bottom: var(--space-1);
    font-size: var(--font-size-sm);
}

.phone-item:last-child {
    margin-bottom: 0;
}

/* Table Content Styling */
.note-line {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-style: italic;
    margin-top: var(--space-1);
}

/* Table Column Width Adjustments */
/* STT and Loại columns - compact size */
.data-table th:nth-child(1), /* STT column */
.data-table td:nth-child(1) {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
}

.data-table th:nth-child(2), /* Loại column */
.data-table td:nth-child(2) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
}

.data-table th:nth-child(7), /* Sản phẩm column */
.data-table td:nth-child(7) {
    width: 550px;
    min-width: 550px;
    max-width: 550px;
}

.data-table th:nth-child(8), /* Note column */
.data-table td:nth-child(8) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.data-table th:nth-child(3), /* Tên / Công ty & Quốc gia column */
.data-table td:nth-child(3) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

.data-table th:nth-child(4), /* Email column */
.data-table td:nth-child(4) {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

.data-table th:nth-child(6), /* Website column */
.data-table td:nth-child(6) {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.data-table th:nth-child(9), /* Trạng thái column */
.data-table td:nth-child(9) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.data-table th:nth-child(10), /* Thao tác column */
.data-table td:nth-child(10) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.country-line {
    font-weight: 700;
    color: var(--secondary);
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

.data-table td {
    font-size: var(--font-size-sm);
}

.data-table td:has(.note-line) {
    font-size: var(--font-size-xs);
}

.note-cell {
    font-size: var(--font-size-xs) !important;
    color: var(--text-light);
    font-style: italic;
}

.pagination-section {
    background: #FFFFFF;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin-top: var(--space-8);
    box-shadow: 
        6px 6px 12px var(--shadow-light),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
}

.pagination-info {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin: 0 var(--space-4);
}

/* ==================== MODAL ==================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.75);
    z-index: 1000;
    padding: 0;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: var(--radius-2xl);
    padding: 0;
    max-width: 600px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 25px 50px rgba(26, 26, 26, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.modal-content--large {
    max-width: 1000px;
    max-height: 85vh;
    width: 85%;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e6ba8 100%);
    padding: var(--space-6);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #FFFFFF;
        margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: var(--font-size-lg);
    color: #FFFFFF;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
        justify-content: center;
    }
    
.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.modal-body {
        flex: 1;
    padding: var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    background: var(--background);
    padding: var(--space-6);
    border-top: 1px solid var(--border);
}

/* Modal Content Sections */
.modal-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-left: 4px solid var(--secondary);
    box-shadow: 
        2px 2px 4px var(--shadow-light),
        -2px -2px 4px rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--border);
}

.modal-section-title i {
    color: var(--primary);
}

.type-icon {
    margin-left: var(--space-3);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.type-icon.type-person {
    background: rgba(41, 128, 185, 0.1);
    color: var(--secondary);
}

.type-icon.type-company {
    background: rgba(26, 26, 26, 0.1);
    color: var(--primary);
}

/* Radio Button Container Styles */
.radio-item {
    position: relative;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-item .radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    border: 2px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition-normal);
    box-shadow: 
        2px 2px 4px var(--shadow-light),
        -2px -2px 4px rgba(255, 255, 255, 0.9);
}

.radio-item .radio-label:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 
        4px 4px 8px var(--shadow-medium),
        -4px -4px 8px rgba(255, 255, 255, 0.95);
}

.radio-item input[type="radio"]:checked + .radio-label {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 
        4px 4px 8px rgba(255, 107, 53, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.radio-item input[type="radio"]:checked + .radio-label:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 
        6px 6px 12px rgba(255, 107, 53, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 0.95);
}

/* Modal Contact Items */
.modal-contact-item {
    margin-bottom: var(--space-1);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.modal-contact-item:last-child {
    margin-bottom: 0;
}

.modal-contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.modal-contact-item a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.modal-field {
    display: flex;
    margin-bottom: var(--space-3);
    align-items: flex-start;
}

.modal-field:last-child {
    margin-bottom: 0;
}

.modal-field-label {
    font-weight: 600;
    color: var(--text);
    min-width: 150px;
    margin-right: var(--space-4);
    font-size: var(--font-size-sm);
}

.modal-field-value {
    flex: 1;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    word-break: break-word;
}

.modal-field-value.empty {
    color: var(--text-light);
    font-style: italic;
}

.modal-field-value.required {
    color: var(--primary);
    font-weight: 600;
}

.modal-field-value.status {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.modal-field-value.status.chua_lien_he {
    background: rgba(108, 117, 125, 0.1);
    color: #6C757D;
}

.modal-field-value.status.cho_phan_hoi {
    background: rgba(253, 126, 20, 0.1);
    color: #FD7E14;
}

.modal-field-value.status.replied {
    background: rgba(32, 201, 151, 0.1);
    color: #20C997;
}

.modal-field-value.type {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.modal-field-value.type.company {
    background: rgba(214, 51, 132, 0.1);
    color: #D63384;
}

.modal-field-value.type.person {
    background: rgba(32, 201, 151, 0.1);
    color: #20C997;
}

/* Additional Persons in Modal */
.modal-additional-persons {
    margin-top: var(--space-4);
}

.modal-person-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    border: 1px solid var(--border);
}

.modal-person-card:last-child {
    margin-bottom: 0;
}

.modal-person-title {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from { 
    opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to { 
    opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==================== TABLE STYLES ==================== */

/* Data Table - Compact view, fit screen */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 
        0 2px 8px var(--shadow-light),
        0 1px 4px var(--shadow-light);
    table-layout: auto; /* Auto layout to fit content */
    /* Dynamic scaling support */
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

/* Dynamic scaling utilities */
.dynamic-scale {
    transition: all 0.3s ease;
}

.dynamic-scale th,
.dynamic-scale td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

/* Auto-fit table columns */
.auto-fit-table {
    table-layout: fixed; /* Fixed layout for consistent percentages */
    width: 100%;
    max-width: 100%;
}

.auto-fit-table th,
.auto-fit-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 6px;
}

/* Ensure 100% content display on all devices */
.data-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

/* Laptop scroll behavior */
@media (min-width: 769px) {
    .data-table {
        min-width: 1200px !important;
        width: 1200px !important;
    }
    
    .table-container {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
}

.data-table th,
.data-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enable horizontal scroll for table */
.table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Custom scrollbar for laptop */
.table-container::-webkit-scrollbar {
    height: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Scroll indicator for laptop */
.table-container::after {
    content: "← Cuộn ngang để xem thêm →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 8px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
}

.data-table th {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.25) 0%, rgba(41, 128, 185, 0.35) 100%);
    color: var(--primary);
    padding: var(--space-4);
    text-align: left;
    font-weight: 700;
    font-size: var(--font-size-sm);
    border-bottom: 2px solid rgba(41, 128, 185, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-table td {
    background: #FFFFFF;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
    font-size: var(--font-size-sm);
    vertical-align: top;
}

.data-table tr:hover td {
    background: rgba(41, 128, 185, 0.05);
}

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

/* Table Container - Compact view, no scroll */
.table-container {
    overflow-x: visible;
    overflow-y: visible;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 2px 8px var(--shadow-light),
        0 1px 4px var(--shadow-light);
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* MacBook Air specific table container */
@media (max-width: 1366px) {
    .table-container {
        min-width: 1200px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--background);
    }
    
    .table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .table-container::-webkit-scrollbar-track {
        background: var(--background);
        border-radius: 4px;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }
    
    .table-container::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
}

/* Responsive table wrapper */
.table-wrapper {
    min-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Smooth scrolling for table */
.table-container {
    scroll-behavior: smooth;
}

/* Add scroll indicators for horizontal scroll */
.table-container::after {
    content: "← Kéo để xem thêm →";
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    padding: var(--space-2);
    background: var(--background);
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    z-index: 5;
}

/* Enhanced scroll indicator for mobile desktop mode */
@media (max-width: 768px) {
    .table-container::after {
        content: "👆 Kéo ngang để xem tất cả cột";
        font-size: 11px;
        padding: var(--space-1);
        background: linear-gradient(90deg, var(--primary-light), var(--primary));
        color: white;
        border-radius: 4px;
        margin: var(--space-1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Hide scroll indicator on larger screens */
@media (min-width: 1025px) {
    .table-container::after {
        display: none;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Surface 7 Pro and similar tablets (1024px and below) - Compact view */
@media (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
        overflow-y: visible;
        width: 100%;
        max-width: 100%;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .data-table {
        font-size: 9px;
        width: 100%;
        table-layout: fixed; /* Fixed layout for consistent percentages */
    }
    
    .data-table th,
    .data-table td {
        padding: 3px 4px;
        white-space: nowrap;
    overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Percentage-based column widths - Total: 100% */
    .data-table th:nth-child(1), /* STT column */
    .data-table td:nth-child(1) {
        width: 4%;
        text-align: center;
    }
    
    .data-table th:nth-child(2), /* Loại column */
    .data-table td:nth-child(2) {
        width: 4%;
        text-align: center;
    }
    
    .data-table th:nth-child(3), /* Ngày column */
    .data-table td:nth-child(3) {
        width: 7%;
    }
    
    .data-table th:nth-child(4), /* Tên / Công ty & Quốc gia column */
    .data-table td:nth-child(4) {
        width: 18%;
    }
    
    .data-table th:nth-child(5), /* Email column */
    .data-table td:nth-child(5) {
        width: 16%;
    }
    
    .data-table th:nth-child(6), /* Website column */
    .data-table td:nth-child(6) {
        width: 9%;
    }
    
    .data-table th:nth-child(7), /* Sản phẩm column */
    .data-table td:nth-child(7) {
        width: 16%;
    }
    
    .data-table th:nth-child(8), /* Note column */
    .data-table td:nth-child(8) {
        width: 5%;
    }
    
    .data-table th:nth-child(9), /* Trạng thái column */
    .data-table td:nth-child(9) {
        width: 9%;
    }
    
    .data-table th:nth-child(10), /* Thao tác column */
    .data-table td:nth-child(10) {
        width: 10%;
    }
}

/* Mobile Desktop Mode (768px and below) - Chrome desktop mode on mobile */
@media (max-width: 768px) {
    .container {
        padding: var(--space-1);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Form improvements for small screens */
    .form-section {
        padding: var(--space-2);
    }
    
    .form-row {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .form-field {
        width: 100%;
    }
    
    .neu-input,
    .neu-select,
    .neu-textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Search and filter improvements */
    .search-filters {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .search-filters .neu-input,
    .search-filters .neu-select {
        width: 100%;
    }
    .table-container {
        overflow-x: auto;
        overflow-y: visible;
        width: 100%;
        max-width: 100%;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .data-table {
        font-size: 8px;
        width: 100%;
        table-layout: fixed; /* Fixed layout for consistent percentages */
    }
    
    .data-table th,
    .data-table td {
        padding: 2px 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Percentage-based column widths for mobile - Total: 100% */
    .data-table th:nth-child(1), /* STT column */
    .data-table td:nth-child(1) {
        width: 3%;
        text-align: center;
    }
    
    .data-table th:nth-child(2), /* Loại column */
    .data-table td:nth-child(2) {
        width: 3%;
        text-align: center;
    }
    
    .data-table th:nth-child(3), /* Ngày column */
    .data-table td:nth-child(3) {
        width: 6%;
    }
    
    .data-table th:nth-child(4), /* Tên / Công ty & Quốc gia column */
    .data-table td:nth-child(4) {
        width: 20%;
    }
    
    .data-table th:nth-child(5), /* Email column */
    .data-table td:nth-child(5) {
        width: 18%;
    }
    
    .data-table th:nth-child(6), /* Website column */
    .data-table td:nth-child(6) {
        width: 10%;
    }
    
    .data-table th:nth-child(7), /* Sản phẩm column */
    .data-table td:nth-child(7) {
        width: 18%;
    }
    
    .data-table th:nth-child(8), /* Note column */
    .data-table td:nth-child(8) {
        width: 5%;
    }
    
    .data-table th:nth-child(9), /* Trạng thái column */
    .data-table td:nth-child(9) {
        width: 8%;
    }
    
    .data-table th:nth-child(10), /* Thao tác column */
    .data-table td:nth-child(10) {
        width: 7%;
    }
}

/* MacBook Air 13" (1366px and below) - Keep all columns visible */
@media (max-width: 1366px) {
    .container {
        padding: var(--space-2);
    }
    
    .data-table {
        font-size: var(--font-size-xs);
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-2);
    }
    
    /* Optimize for MacBook Air 13" - all columns visible */
    .data-table th:nth-child(1), /* STT column */
    .data-table td:nth-child(1) {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        text-align: center;
    }
    
    .data-table th:nth-child(2), /* Loại column */
    .data-table td:nth-child(2) {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        text-align: center;
    }
    
    .data-table th:nth-child(3), /* Ngày column */
    .data-table td:nth-child(3) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .data-table th:nth-child(4), /* Tên / Công ty & Quốc gia column */
    .data-table td:nth-child(4) {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
    
    .data-table th:nth-child(5), /* Email column */
    .data-table td:nth-child(5) {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
    }
    
    .data-table th:nth-child(6), /* Website column */
    .data-table td:nth-child(6) {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .data-table th:nth-child(7), /* Sản phẩm column */
    .data-table td:nth-child(7) {
        width: 250px;
        min-width: 250px;
        max-width: 250px;
    }
    
    .data-table th:nth-child(8), /* Note column */
    .data-table td:nth-child(8) {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .data-table th:nth-child(9), /* Trạng thái column */
    .data-table td:nth-child(9) {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .data-table th:nth-child(10), /* Thao tác column */
    .data-table td:nth-child(10) {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
}

/* Removed duplicate media query - using the compact view above */

/* Tablet and smaller (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: var(--space-1);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Form improvements for small screens */
    .form-section {
        padding: var(--space-2);
    }
    
    .form-row {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .form-field {
        width: 100%;
    }
    
    .neu-input,
    .neu-select,
    .neu-textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Search and filter improvements */
    .search-filters {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .search-filters .neu-input,
    .search-filters .neu-select {
        width: 100%;
    }
    
    .data-table {
        font-size: 11px;
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-1);
    }
    
    /* Further reduce column widths */
    .data-table th:nth-child(7), /* Sản phẩm column */
    .data-table td:nth-child(7) {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
    
    .data-table th:nth-child(6), /* Website column */
    .data-table td:nth-child(6) {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    .data-table th:nth-child(3), /* Tên / Công ty & Quốc gia column */
    .data-table td:nth-child(3) {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    .data-table th:nth-child(4), /* Email column */
    .data-table td:nth-child(4) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .data-table th:nth-child(8), /* Note column */
    .data-table td:nth-child(8) {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
    
    .data-table th:nth-child(9), /* Trạng thái column */
    .data-table td:nth-child(9) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .data-table th:nth-child(10), /* Thao tác column */
    .data-table td:nth-child(10) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    /* Hide some less important columns on very small screens */
    .data-table th:nth-child(2), /* Type column */
    .data-table td:nth-child(2) {
        display: none;
    }
}

/* Mobile Desktop Mode - Very small viewport (480px and below) */
@media (max-width: 480px) {
    .table-container {
        min-width: 800px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--background);
    }
    
    .table-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .table-container::-webkit-scrollbar-track {
        background: var(--background);
        border-radius: 2px;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
    
    .data-table {
        font-size: 9px;
    }
    
    .data-table th,
    .data-table td {
        padding: 2px 4px;
    }
    
    /* Ultra-compact column widths for very small mobile desktop mode */
    .data-table th:nth-child(1), /* STT column */
    .data-table td:nth-child(1) {
        width: 25px;
        min-width: 25px;
        max-width: 25px;
        text-align: center;
    }
    
    .data-table th:nth-child(2), /* Loại column */
    .data-table td:nth-child(2) {
        width: 30px;
        min-width: 30px;
        max-width: 30px;
        text-align: center;
    }
    
    .data-table th:nth-child(3), /* Ngày column */
    .data-table td:nth-child(3) {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
    
    .data-table th:nth-child(4), /* Tên / Công ty & Quốc gia column */
    .data-table td:nth-child(4) {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }
    
    .data-table th:nth-child(5), /* Email column */
    .data-table td:nth-child(5) {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .data-table th:nth-child(6), /* Website column */
    .data-table td:nth-child(6) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .data-table th:nth-child(7), /* Sản phẩm column */
    .data-table td:nth-child(7) {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
    }
    
    .data-table th:nth-child(8), /* Note column */
    .data-table td:nth-child(8) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .data-table th:nth-child(9), /* Trạng thái column */
    .data-table td:nth-child(9) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .data-table th:nth-child(10), /* Thao tác column */
    .data-table td:nth-child(10) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: var(--space-1);
    }
    
    .data-table {
        font-size: 10px;
    }
    
    .data-table th,
    .data-table td {
        padding: 4px;
    }
    
    /* Even more aggressive column reduction */
    .data-table th:nth-child(7), /* Sản phẩm column */
    .data-table td:nth-child(7) {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
    }
    
    .data-table th:nth-child(6), /* Website column */
    .data-table td:nth-child(6) {
        display: none;
    }
    
    .data-table th:nth-child(8), /* Note column */
    .data-table td:nth-child(8) {
        display: none;
    }
    
    /* Show only essential columns */
    .data-table th:nth-child(1), /* STT */
    .data-table td:nth-child(1),
    .data-table th:nth-child(3), /* Name/Company */
    .data-table td:nth-child(3),
    .data-table th:nth-child(4), /* Email */
    .data-table td:nth-child(4),
    .data-table th:nth-child(5), /* Phone */
    .data-table td:nth-child(5),
    .data-table th:nth-child(7), /* Product */
    .data-table td:nth-child(7),
    .data-table th:nth-child(9), /* Status */
    .data-table td:nth-child(9),
    .data-table th:nth-child(10), /* Actions */
    .data-table td:nth-child(10) {
        display: table-cell;
    }
}

/* ==================== TABLE STYLES ==================== */

/* Data Table - Compact view, fit screen */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 
        0 2px 8px var(--shadow-light),
        0 1px 4px var(--shadow-light);
    table-layout: auto; /* Auto layout to fit content */
    /* Dynamic scaling support */
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

/* Dynamic scaling utilities */
.dynamic-scale {
    transition: all 0.3s ease;
}

.dynamic-scale th,
.dynamic-scale td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

/* Auto-fit table columns */
.auto-fit-table {
    table-layout: fixed; /* Fixed layout for consistent percentages */
    width: 100%;
    max-width: 100%;
}

.auto-fit-table th,
.auto-fit-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 6px;
}

/* Ensure 100% content display on all devices */
.data-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

/* Laptop scroll behavior */
@media (min-width: 769px) {
    .data-table {
        min-width: 1200px !important;
        width: 1200px !important;
    }
    
    .table-container {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
}

.data-table th,
.data-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enable horizontal scroll for table */
.table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Custom scrollbar for laptop */
.table-container::-webkit-scrollbar {
    height: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Scroll indicator for laptop */
.table-container::after {
    content: "← Cuộn ngang để xem thêm →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 8px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
}

/* ==================== FOOTER ==================== */

.footer {
    background: #FFFFFF;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin-top: var(--space-8);
    text-align: center;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    box-shadow: 
        6px 6px 12px var(--shadow-light),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .container {
        padding: var(--space-3);
    }
    
    .header-content {
        flex-direction: column;
    text-align: center;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .filter-row .search-box {
        order: 1;
    }
    
    .filter-row select {
        order: 2;
    }
    
    .filter-row button {
        order: 3;
    }
    
    .table-actions {
        justify-content: center;
    }
    
    .neu-card,
    .form-section,
    .table-section {
        padding: var(--space-6);
    }
    
    /* Form Responsive */
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .form-field {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-2);
    }
    
    .neu-card,
    .form-section,
    .table-section {
        padding: var(--space-4);
    }
    
    .brand-info h1 {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-lg);
    }
}

/* ==================== UTILITIES ==================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-light); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success/Error Messages */
.message {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    font-weight: 600;
    display: none;
}

.message.success {
    background: rgba(78, 205, 196, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.message.error {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* ==================== DYNAMIC FIELD CONTAINERS ==================== */

/* Email field styles */
.email-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.email-field input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.email-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-add-email,
.btn-remove-email {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

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

.btn-add-email:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.btn-remove-email {
    background: #ef4444;
    color: white;
}

.btn-remove-email:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.is-duplicate {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Container styles for dynamic fields */
#emailContainer,
#phoneContainer,
#whatsappContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#emailContainer .email-field:last-child,
#phoneContainer .email-field:last-child,
#whatsappContainer .email-field:last-child {
    margin-bottom: 0;
}

/* ==================== DUAL SAVE BUTTONS ==================== */

.neu-btn--primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.neu-btn--primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.neu-btn--secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.neu-btn--secondary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.neu-btn--primary i,
.neu-btn--secondary i {
    margin-right: 8px;
    font-size: 16px;
}

/* ==================== EMAIL MODAL STYLES ==================== */

.email-form {
    max-width: 100%;
}

.email-form .form-section {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.email-form .section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.email-form .section-title i {
    color: var(--secondary);
}

/* Radio Options */
.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--secondary);
    background: rgba(41, 128, 185, 0.05);
}

.radio-option input[type="radio"] {
    margin: 0;
    accent-color: var(--secondary);
}

.radio-option input[type="radio"]:checked + span {
    color: var(--secondary);
    font-weight: 600;
}

/* Form Help */
.form-help {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: rgba(41, 128, 185, 0.05);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary);
}

.form-help h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.placeholder-item {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
}

.placeholder-item:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Email Type Toggle */
#singleEmailSection,
#bulkEmailSection {
    transition: all 0.3s ease;
}

#singleEmailSection.hidden,
#bulkEmailSection.hidden {
    display: none;
}

/* Textarea Styles */
.neu-textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text);
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 100px;
}

.neu-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

/* Email Modal Specific */
#emailModal .modal-content--large {
    max-width: 800px;
    width: 90vw;
}

#emailModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Loading States */
.email-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.email-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.email-message {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

.email-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.email-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    #emailModal .modal-content--large {
        width: 95vw;
        margin: var(--space-4);
    }
    
    .email-form .form-section {
        padding: var(--space-3);
    }
    
    .placeholder-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .radio-option {
        flex-direction: column;
        text-align: center;
    }
}

/* Email Preview Buttons in Modal */
.email-preview-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.email-preview-buttons .neu-btn {
    font-size: 12px;
    padding: 6px 12px;
}
/* ==================== RESPONSIVE FULL-COLUMN VIEW ==================== */

/* Cho phép cuộn ngang trên toàn bộ form và bảng */
.form-section,
.table-section {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* mượt trên iPhone */
}

/* Bảng dữ liệu cuộn ngang gọn gàng */
.table-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

/* Giữ nguyên layout nhiều cột mà không vỡ khung */
.form-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr)); /* Giữ cột nhưng cho phép co */
  gap: var(--space-4);
}

/* Giúp input không bị quá nhỏ trên mobile */
.form-field {
  min-width: 220px;
}

/* Khi trên màn hình cực nhỏ (dưới 480px), cho phép cuộn ngang toàn bộ form */
@media (max-width: 480px) {
  body {
    overflow-x: auto;
  }

  .container {
    min-width: 100%;
    overflow-x: auto;
  }

  .form-section,
  .table-section {
    padding-bottom: 1rem;
  }
}

/* ==================== FULL WIDTH FIX (FINAL) ==================== */

/* Toàn trang không giới hạn chiều ngang */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  
  /* Bỏ giới hạn container */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Cho phần bảng full 100% chiều ngang */
  .table-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Cho phép cuộn ngang nếu bảng dài */
  .table-container {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Bảng full width, không thu nhỏ */
  .data-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse !important;
  }
  
  /* Giữ thẻ th/td gọn gàng và đều nhau */
  .data-table th, .data-table td {
    padding: 10px 12px !important;
    text-align: left !important;
    white-space: nowrap !important;
  }
  
  /* Bỏ bo góc và bóng các phần section khác */
  .form-section, .search-section, .pagination-section {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 10px !important;
    margin: 0 auto !important;
  }
  
  /* Làm header dính full ngang */
  .header, .header-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 10px !important;
    box-shadow: none !important;
  }
  
  /* Giữ nút hành động sang mép phải */
  .table-header, .table-actions {
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  /* Override tất cả container cũ */
  .container, .main-container, .wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Override tất cả section */
  .section, .form-section, .table-section, .search-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Override header */
  .header, .header-content, .navbar, .nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Force full width for all elements */
  * {
    max-width: 100% !important;
  }
  
  /* Group action buttons at the right corner (override spread layout) */
  .table-header .table-actions {
    margin-left: auto !important;
    justify-content: flex-end !important;
    width: auto !important;
    gap: var(--space-3) !important;
  }
  