/* ===================================
   Mapping Templates Form Styles
   =================================== */
.mapping-template-page .form-section-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 24px;
    line-height: 1.25;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 30px 0;
    /* padding-bottom: 15px; */
}

/* .mapping-template-page .commonFormSection .form-sections {
    padding: 40px;
} */
.mapping-template-page .start-job-card { 
padding:var(--space-3xl);

 }


.mapping-template-page .commonForm .headerlist .filedgroupRow:last-child {
    border-bottom: none;
}

.mapping-template-page .commonForm .headerlist .filedgroupRow .filedgroup:first-child {
    flex: 1;
    min-width: 240px;
}

.mapping-template-page .commonForm .headerlist .filedgroupRow .filedgroup:nth-child(2) {
    flex: 0 0 200px;
    max-width: 200px;
}

.mapping-template-page .commonForm .headerlist .filedgroupRow .filedgroup:last-child {
    flex: 0 0 60px;
    max-width: 60px;
}

.mapping-template-page .commonForm .formFooter {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.mapping-template-page .commonForm .formFooter .btn {
    min-width: 150px;
    padding: 12px 30px;
}

.mapping-template-page .addrowCon {
    margin-top: 20px;
    padding: 24px;
    background-color: #fff;
    border: 1px dashed #e0e0e0;
    border-radius: var(--radius-lg);
    text-align: center;
}

.mapping-template-page .addrowCon .addHeaderRowBtn {
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #221E44;
    cursor: pointer;
    padding: 0;
}
.mapping-template-page .addrowCon .addHeaderRowBtn svg circle {
    fill: #221E44;
}
.mapping-template-page .addHeaderRowBtn:hover svg circle {
    fill: var(--accent-color);
}
.mapping-template-page .addHeaderRowBtn:hover { color:var(--accent-color); }
.mapping-template-page .addrowCon .addHeaderRowBtn svg {
    width: 44px;
    height: 44px;
}

.mapping-template-page .addrowCon .addHeaderRowBtn,
.mapping-template-page .addrowCon .addHeaderRowBtn:hover,
.mapping-template-page .addrowCon .addHeaderRowBtn:focus-visible {
    opacity: 1;
    transform: none;
    background-color: transparent !important;
    box-shadow: none;
}
.mapping-template-page .commonForm .formFiledCon   {
        max-width: 980px;
}


/* ===================================
   Compact Pagination (Mobile)
   =================================== */
.compact-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    margin-bottom: 12px;
}

.compact-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.compact-control:is(:hover, :focus-visible) {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.compact-control.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.compact-page-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
}

.compact-page,
.compact-ellipsis {
    min-width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.compact-page {
    border: 1px solid #e0e0e0;
    background-color: #fff;
    transition: all var(--transition-fast);
}

.compact-page:is(:hover, :focus-visible) {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.compact-page.is-active {
    border-color: var(--accent-green);
    background-color: var(--accent-green);
    color: #fff;
}

.compact-pagination-summary {
    text-align: center;
    margin: 0;
}

.batch-limit-notice {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #3D405B;
    cursor: pointer;
}

.step-two-file-types {
    cursor: pointer;
}

.step-two-upload-area.upload-area-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.upload-disabled-banner {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff4e5;
    color: #8a5b1f;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================
   Pagination Loading States
   =================================== */
.pagination-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.pagination-loading {
    opacity: 0.7;
    cursor: wait !important;
    position: relative;
}

.pagination-loading-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Pagination Loader Overlay */
.pagination-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    border-radius: 4px;
}

.pagination-loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3D405B;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.paginationsContainer {
    position: relative;
    min-height: 50px;
}

.paginationsContainer.pagination-loading-active {
    pointer-events: none;
}

/* Ensure pagination buttons maintain layout during loading */
.paginations a.pagination-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.paginations .compact-control.pagination-loading,
.paginations .compact-page.pagination-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Button Spinner Visibility
   =================================== */
.btn.btn-secondary .spinner,
.btn.btn-primary .spinner,
.btn.btn-danger .spinner {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
}

.btn.btn-outline .spinner,
.btn.btn-cancel .spinner,
button.btn .spinner {
    border-color: rgba(34, 30, 68, 0.2);
    border-top-color: #221e44;
}

/* ===================================
   MFA Resend Link Loader
   =================================== */
.resend-code-link {
    font-weight: 600;
    color: var(--accent-green);
    transition: color var(--transition-fast);
}

.resend-code-link:hover {
    color: var(--text-primary);
}

.resend-code-link.disabled {
    pointer-events: none;
    opacity: 0.5;
    color: var(--text-secondary);
}

.resend-loader-inline {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    gap: 4px;
}

.resend-loader-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(34, 30, 68, 0.2);
    border-top-color: #221e44;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.normal-badge { display: flex; margin:0 !important; align-items: center; justify-content: center; padding: 4px var(--space-sm); background-color: var(--warning-color); border-radius: var(--radius-sm); font-family: var(--font-primary); font-weight: var(--font-weight-regular); font-size: var(--font-size-sm); line-height: 1; color: var(--text-primary); }
.mt-10{margin-top: 10px;}
.mt-20{margin-top: 20px;}   
.mt-30{margin-top: 30px;}
.mt-40{margin-top: 40px;}
.mt-50{margin-top: 50px;}
.mt-60{margin-top: 60px;}
.mt-70{margin-top: 70px;}
.mt-80{margin-top: 80px;}
.mt-90{margin-top: 90px;}
.mt-100{margin-top: 100px;}
.pt-10{padding-top: 10px;}
.pt-20{padding-top: 20px;}
.pt-30{padding-top: 30px;}
.pt-40{padding-top: 40px;}
.pt-50{padding-top: 50px;}
.pt-60{padding-top: 60px;}
.pt-70{padding-top: 70px;}
.pt-80{padding-top: 80px;}
.pt-90{padding-top: 90px;}
.pt-100{padding-top: 100px;}


.mb-10{margin-bottom: 10px;}
.mb-20{margin-bottom: 20px;}   
.mb-30{margin-bottom: 30px;}
.mb-40{margin-bottom: 40px;}
.mb-50{margin-bottom: 50px;}
.mb-60{margin-top: 60px;}
.mb-70{margin-bottom: 70px;}
.mb-80{margin-bottom: 80px;}
.mb-90{margin-bottom: 90px;}
.mb-100{margin-bottom: 100px;}
.pb-10{padding-bottom: 10px;}
.pb-20{padding-bottom: 20px;}
.pb-30{padding-bottom: 30px;}
.pb-40{padding-bottom: 40px;}
.pb-50{padding-bottom: 50px;}
.pb-60{padding-bottom: 60px;}
.pb-70{padding-bottom: 70px;}
.pb-80{padding-bottom: 80px;}
.pb-90{padding-bottom: 90px;}
.pb-100{padding-bottom: 100px;}

.cancel-job-container{gap: 20px;}


.progress-bar-fill {
    width: 0%; 
    transition: width 0.3s ease;
}

.progress-bar-fill.animate {
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

span.status-completed{color: #9BCD5B;}
span.status-canceled{color: #BF2B23;}
span.status-submitted{color: #F97316;}
span.status-draft{color: #F97316;}

/* Grey out canceled job cards */
.job-card.job-canceled {
    opacity: 0.5;
    pointer-events: none;
}

.job-card.job-canceled .job-card-action,
.job-card.job-canceled .job-actions,
.job-card.job-canceled a,
.job-card.job-canceled .action-link {
    pointer-events: auto;
}

/* General btn-cancel class (outside cancel-job-container) */
.btn-cancel {
    background: #BF2B23;
    color: #FFFFFF;
    border: 2px solid #BF2B23;
    border-radius: 100px;
    padding: 7px 40px;
    font-family: acumin-pro, sans-serif, var(--font-primary);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.22em;
    text-align: center;
    display: inline-block;
}

/* Non-interactive cancel button (for canceled jobs) */
.btn-cancel-disabled {
    background: #BF2B23;
    color: #FFFFFF;
    border: 2px solid #BF2B23;
    border-radius: 100px;
    padding: 7px 40px;
    font-family: acumin-pro, sans-serif, var(--font-primary);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.22em;
    text-align: center;
    display: inline-block;
    cursor: default;
    pointer-events: none;
}

.btn-cancel-disabled:hover {
    background: #BF2B23 !important;
    color: #FFFFFF !important;
}

/* Non-interactive completed button (for completed jobs) */
.btn-completed-disabled {
    background: #9bcd5b;
    color: #FFFFFF;
    border: 2px solid #9bcd5b;
    border-radius: 100px;
    padding: 7px 40px;
    font-family: acumin-pro, sans-serif, var(--font-primary);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.22em;
    text-align: center;
    display: inline-block;
    cursor: default;
    pointer-events: none;
}

.btn-completed-disabled:hover {
    background: #9bcd5b !important;
    color: #FFFFFF !important;
}


/* ===================================
   DELETE AND DEACTIVATE CONFIRMATION TOASTS
   =================================== */

.confirmation-toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
        padding: 0 20px;
    width: 100%;
}

.confirmation-toast {
    background: #fef3c7;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 360px;
    max-width: 760px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid #f59e0b;
}

.confirmation-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.confirmation-toast.hide {
    transform: translateY(100%);
    opacity: 0;
}

.confirmation-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.confirmation-toast-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.confirmation-toast-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

.confirmation-toast-content {
    flex: 1;
}

.confirmation-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.confirmation-toast-message {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.confirmation-toast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.confirmation-toast-btn {
   cursor: pointer;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.2s;
    font-family: var(--font-primary) !important;
}
    
    
.confirmation-toast-btn-cancel {
    border: 1px solid var(--secondary-color);
    background: var(--secondary-color);
    color: var(--primary-color);
}

.confirmation-toast-btn-cancel:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color:  var(--white);

}

.confirmation-toast-btn-confirm {
    background: #BF2B23;
    color: var(--white);
    border: 1px solid #BF2B23;
}

.confirmation-toast-btn-confirm:hover {
    background: var(--white);
    color: #BF2B23;
    border-color: #BF2B23;
}

.confirmation-toast-btn-confirm:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}


.confirmation-toast-loading {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.confirmation-toast-loading.show {
    display: flex;
}

.confirmation-toast-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.confirmation-toast-loading-text {
    font-size: 12px;
    color: #a16207;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ===================================
   CUSTOM MODAL STYLES
   =================================== */

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 20px 24px;
}
.modal-body .form-input {
    border-bottom: 1px solid var(--dark-text);
}
/* .form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
} */

/* .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
} */

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #6b7280;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
}



.step-two-mapping-section {
    margin-top: 2rem;
}

.step-two-mapping-content {
    padding: 1.5rem 0;
}


.step-two-mapping-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-two-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.step-two-mapping-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.step-two-mapping-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-two-mapping-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.step-two-mapped-column {
    width: 8rem;
}

.step-two-header-column {
    width: 25%;
}

.step-two-system-column {
    width: 40%;
}

.step-two-optional-column {
    width: 15%;
}

.step-two-status-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-two-status-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-two-status-mapped {
    color: #10b981 !important;
}

.step-two-status-optional,
.step-two-status-unmapped {
    color: #ef4444 !important;
}

.step-two-header-cell {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}


.step-two-optional-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.step-two-optional-checkbox {
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    color: #3b82f6;
    cursor: pointer;
}

.step-two-optional-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.step-two-optional-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.step-two-required-field-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-two-required-field-label {
    color: #dc2626 !important;
    font-weight: 600;
    cursor: not-allowed;
}

.step-two-submit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-two-navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.step-two-file-info {
    margin-bottom: 1rem;
}

.step-two-file-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-two-document-icon {
    margin-right: 0.75rem;
}

.step-two-document-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #9ca3af;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-two-file-name-text {
    font-weight: bold;
    font-size: 1.25rem;
    color: #1f2937;
}

.step-two-file-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-two-file-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-two-file-detail-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    min-width: 80px;
}

.step-two-file-detail-value {
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 500;
}

.step-two-submit-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Map column states */
/* .map-column.complete {
    border-left: 3px solid #9BCD5B;
}

.map-column.optional {
    border-left: 3px solid #BF2B23;
}

.map-column.incomplete {
    border-left: 3px solid #BF2B23;
} */

/* Status icon states */
/* .status-icon.complete {
    background-color: #f0f9ff;
} */

/* .status-icon.optional {
    background-color: #fef2f2;
} */

/* .status-icon.incomplete {
    background-color: #fef2f2;
} */
.map-column .status-icon.incomplete { background-color: transparent; }

/* Header text truncation for long file headers */
.column-section {
    position: relative;
    min-width: 0; /* Allow flex items to shrink below content size */
}

.header-text-wrapper {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    cursor: help; /* Show help cursor to indicate tooltip */
}

.header-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    word-break: break-all;
}

/* Ensure map-column doesn't overflow */
.map-column {
    min-width: 0;
    overflow: hidden;
}

.map-column .column-section {
    min-width: 0;
    padding: 0 10px;
}

/* Required field asterisk styling */
select option {
    color: #1f2937;
}

.required-field-option {
    color: #dc2626 !important;
    font-weight: 500;
}

/* Required field display styling */
.required-field-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.required-text {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Required asterisk styling - make all asterisks red */
.required,
span.required,
.required-asterisk {
    color: #D93025 !important;
}

.select2-container--classic .select2-selection--multiple {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    min-height: 38px !important;
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
    background-color: #3b82f6 !important;
    color: white !important;
    border: none !important;
    border-radius: 0.25rem !important;
    padding: 2px 8px !important;
    margin: 2px !important;
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    margin-right: 5px !important;
}
.select2-container--classic .select2-dropdown {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
}
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
    background-color: #3b82f6 !important;
}
.select2-container--classic .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db !important;
    border-radius: 0.25rem !important;
    padding: 8px !important;
}

.uploading-file-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.uploading-file-area-icon {
    position: relative;
    margin-bottom: 1rem;
    padding-top: 60px;
}

.uploading-file-area-icon svg {
    transform: rotate(-90deg); /* Start from top */
    transition: all 0.3s ease;
}

.uploading-file-area-content {
    text-align: center;
}

.uploading-file-area-content p {
    font-size: 1rem;
    color: white;
    margin: 0;
    font-weight: bold;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}


/* Responsive design */


/* ===================================
   ROW HEADERS FOR MAPPING SECTION
   =================================== */

.row-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--font-primary);
    text-transform: uppercase;
    display: block;
    visibility: visible;
    display: none;
}



#toast-container.toast-bottom-center>div, #toast-container.toast-top-center>div{min-width: 360px !important;max-width: 760px !important; width: 100% !important; padding-right: 35px !important;}

/* Toastr Close Button Styling */
#toast-container .toast-close-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: none !important;
    opacity: 0.8 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
}

#toast-container .toast-close-button:hover {
    opacity: 1 !important;
    color: rgba(255, 255, 255, 1) !important;
}

#toast-container .toast-close-button:focus {
    outline: none !important;
}

/* ===================================
   DISABLED ELEMENTS
   =================================== */

.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

input[readonly],
select[readonly],
textarea[readonly] {
    cursor: not-allowed;
}

/* ===================================
   MFA SETUP FORM STYLES
   =================================== */

.mfa-qr-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


.mfa-secret-wrapper {
    text-align: center;
}

.mfa-secret-wrapper p {
    margin: 0;
}

/* ===================================
   LOGIN LOCKOUT COUNTDOWN STYLES
   =================================== */

.lockout-countdown {
    margin-top: 16px;
    padding: 16px;
    background-color: #f8d7da;
    border: 1.5px solid #dc3545;
    border-radius: 8px;
    text-align: center;
}

.lockout-message {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #721c24;
    font-family: var(--font-primary, 'Nunito Sans', sans-serif);
}

#countdown-timer {
    font-weight: 600;
    font-size: 16px;
    color: #dc3545;
}

/* ===================================
   MFA RESEND BUTTON STYLES
   =================================== */

.resend-container {
    margin-top: 0;
    padding-top: 0;
}

.resend-container .login-form {
    margin-top: 0;
    padding-top: 0;
    gap: 0;
}

.resend-container .button-block {
    margin-top: 0;
    gap: 0;
}

#resend-form {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.resend-error-message {
    margin-top: 10px;
}


/* ===================================
   ORGANIZATION FORM CHECKBOX STYLES
   =================================== */

.commonForm .filedCol #assign_notifications_enabled {
    width: 20px;
    height: 20px;
    margin: 0 0 0 12px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

/* ===================================
   BOX CONNECTION ALERT STYLES
   =================================== */

.box-connection-alert {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #FFF3CD;
    border: 1px solid #FFC107;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.box-connection-alert > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.box-connection-alert strong {
    color: #856404;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.box-connection-alert p {
    color: #856404;
    margin: 0;
    font-size: 14px;
}

.box-connection-alert a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

/* ===================================
   UNSAVED CHANGES MODAL STYLES
   =================================== */

.leave-page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 64, 91, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leave-page-modal-content {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0px 4px 20px rgba(99, 99, 99, 0.2);
    position: relative;
}

.leave-page-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.leave-page-modal-close:hover {
    background-color: #f5f5f5;
}

.leave-page-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #3D405B;
    font-family: acumin-pro, sans-serif;
    line-height: 1.5;
}

.leave-page-modal-message {
    font-size: 16px;
    margin: 0 0 30px 0;
    color: #666666;
    font-family: acumin-pro, sans-serif;
    line-height: 1.75;
    letter-spacing: 0.28px;
}

.leave-page-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-leave-page,
.btn-save-draft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 40px;
    height: auto;
    border-radius: 100px;
    font-family: acumin-pro, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2222222222222223;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-leave-page {
    background: var(--text-secondary);
    color: #FFFFFF;
    border-color:var(--text-secondary);
}

.btn-leave-page:hover:not(:disabled) {
    background: transparent;
    border-color: var(--text-secondary);
    color:var(--text-secondary);
}

.btn-save-draft {
    background: #9BCD5B;
    color: #3D405B;
    border-color: #9BCD5B;
}

.btn-save-draft:hover:not(:disabled) {
    background: #3D405B;
    color: #FFFFFF;
    border-color: #3D405B;
}

.btn-leave-page:disabled,
.btn-save-draft:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================
   DRAFT EDIT LOADER STYLES
   =================================== */

.draft-edit-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 64, 91, 0.8);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.draft-edit-loader-content {
    text-align: center;
    color: #FFFFFF;
}

.draft-edit-loader-spinner {
    margin-bottom: 20px;
}

.draft-edit-loader-text {
    font-family: acumin-pro, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

/* ===================================
   ERROR MESSAGE STYLES
   =================================== */

.error-message {
    font-size: 13px !important;
}

.resent-button-block{display: flex;flex-direction: column;gap: 10px;}

.role-span, .creator-span, .submitted-span, .duedate-span, .assigned-span {
    position: relative;
    padding-left: 8px;
    margin-left: 8px;
}

.role-span:after, .creator-span:after, .submitted-span:after, .duedate-span:after, .assigned-span:after {
    content: '';
    position: absolute;
    background: #000;
    width: 2px;
    height: 15px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.role-span.no-separator:after, .creator-span.no-separator:after, .submitted-span.no-separator:after, .duedate-span.no-separator:after, .assigned-span.no-separator:after {
    display: none;
}

.link-line .action-link {
    position: relative;
    padding-left: 8px;
    margin-left: 8px;
}

.link-line .action-link:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 15px;
    transform: translateY(-50%);
    top: 50%;
    left: 0;
    background: #000;
}
.link-line .action-link:first-child:after {
    display: none;
}

.link-line .action-link:first-child {
    padding-left: 0;
    margin-left: 0;
}




.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover{color: #ccc !important;}

.draft-files-section {
    margin: 15px 0;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.draft-files-section .draft-files-section-header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.draft-files-section .draft-files-section-header strong {
    font-size: 15px;
    color: #3D405B;
}

.draft-files-section .draft-files-section-header span {
    font-size: 15px;
    color: #666;
}

.draft-files-section .draft-files-section-files {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0;
}

.draft-files-section .draft-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    min-width: 0; /* Allow flex items to shrink */
}

.draft-files-section .draft-file-item:last-child {
    border-bottom: none;
}

.draft-files-section .draft-file-name-wrapper {
    flex: 1;
    min-width: 0; /* Allow text truncation */
    overflow: hidden;
}

.draft-files-section .draft-files-section-files-name {
    color: #333;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    cursor: help; /* Show tooltip cursor */
}

.draft-files-section .draft-file-status-wrapper {
    flex-shrink: 0; /* Don't shrink status badge */
    display: flex;
    align-items: center;
}

.draft-files-section .draft-files-section-files-status-map {
    color: #9BCD5B;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

.draft-files-section .draft-files-section-files-status-partial {
    color: #F97316;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

.draft-files-section .draft-files-section-files-status-for-mapping {
    color: #BF2B23;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}   


.field-error-message{color: #dc3545; font-size: 14px !important; width: 100%;text-align: center; }

.admin-dashboard-main .jobs-and-faqs-container {justify-content: flex-start;}

.filedgroup.organizationCon {
    position: relative;
    margin-bottom:10px;
}

div#error_organization_id {
    position: absolute;
    top: 100%;
}

.page-users-create .commonForm .filedgroup, .page-profile-edit .commonForm .filedgroup {
    position: relative;
}

.page-users-create .error-message,.page-users-create .field-error-message, .page-profile-edit .error-message,.page-profile-edit .field-error-message {
    position: absolute;
    top: 100%;
    width: 100%;
    text-align: left;
}



@media ( max-width: 768px ) {
    .confirmation-toast { min-width: 100%; }
    .mapping-template-page .start-job-card {
        padding: var(--space-xl);
    }
    .compact-control, .compact-page { width:25px; height:25px; }
    .mapping-template-page .addrowCon .addHeaderRowBtn {
        flex-direction: column;
    }

    .row-header {
      display: block;
    }

    .organization-span {
        width: 100%;
    }
    
    .role-span, .creator-span, .submitted-span, .duedate-span, .assigned-span {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .role-span:after, .creator-span:after, .submitted-span:after, .duedate-span:after, .assigned-span:after {
        display: none;
    }


  }
  @media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}


@media ( max-width:575px ){
    #toast-container.toast-bottom-center>div, #toast-container.toast-top-center>div { min-width:100% !important; }
}

/* Automapping Loader Styles */
@keyframes spin {
    0% { transform:rotate(0deg); }
    100% { transform:rotate(360deg); }
}

.automapping-loader {
    padding: 10px 20px;
    margin: 10px 0;
    text-align: center;
    background: #EEEEEE;
    border: 2px solid #B8B7BE;
    border-radius: var(--radius-lg);
}

.automapping-loader-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.automapping-loader-spinner {
    width: 18px;
    height: 18px;
    position: relative;
}

.spinner-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d3dc;
    border-top-color: #3D405B;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

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

.automapping-loader-text {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* Show pointer cursor for clickable controls on uploads pages */
.file-info-component .file-actions .btn-map-headers,
.file-info-component .file-actions .btn-mapping-headers,
.file-info-component .file-actions .btn-edit,
.file-info-component .file-details .delete-file {
    cursor: pointer;
}

.btn-error-header {
    background: #ffe5e5;
    color: #dc3545;
    border: 1px solid #dc3545;
    cursor: not-allowed;
}

.btn-error-header .alert-icon svg path {
    stroke: #dc3545;
}

.cursor-pointer {
    cursor: pointer !important;
}

.btn-edit.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.edit-disabled-message {
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #dc3545;
}

.edit-disabled-message.visible {
    display: block;
}

/* Disabled file listing section during upload/mapping */
.file-info-component-wrapper.file-listing-disabled {
    pointer-events: none;
    opacity: 0.6;
    user-select: none;
    position: relative;
}

.file-info-component-wrapper.file-listing-disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    border-radius: 20px;
    pointer-events: none;
}

.file-info-component-wrapper.file-listing-disabled * {
    pointer-events: none !important;
    cursor: not-allowed !important;
}