.form-control-sm {
    display: block;
    width: 100%;
    height: auto !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    line-height: 1.42857143;
    color: #555 !important;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 2px !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.form-control {
    border-spacing: 0 !important;
    border-radius: var(--select-border-radius);
}

box-primary .group-label {
    margin: 0px;
    margin-left: 12px;
    margin-top: 6px;
    margin-bottom: 5px;
    font-size: 16px;

}

.custom-label {
    margin-top: 5px;
    margin-left: 8px;
}

.form-group nb {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    margin-left: 10px;
    /* Added margin-left */
    display: block;
}

.btn-secondary {
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: #212529;
}

.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active,
.open>.dropdown-toggle.btn-secondary {
    background-color: #dae0e5;
    border-color: #c8ced3;
    color: #212529;
    box-shadow: none;
}

.btn-secondary.disabled,
.btn-secondary:disabled {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
    opacity: 0.65;
}

/*
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 20px !important;
  position: absolute;
  top: -2px  !important;;
  right: 1px;
  width: 20px;
}*/

/*
input.form-control,
textarea.form-control,
select.form-control,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  disfplay: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-sradius: 6px !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  height: auto !important;
  line-height: unset !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0px 0px var(--mybuttons-text-transparent) !important;
}
.select2-container .select2-selection--single{
    padding: 14px 6px 0px 6px  !important;
}
.select2-container .select2-selection--multiple,
.select2-selection .select2-selection--multiple {
    padding: 0px 6px 6px 6px  !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin: 0px !important;
  background-color: var(--mybuttons-warning) !important;
  border: 2px solid var(--mybuttons-warning) !important;


  color: var(--mybuttons-text-white) !important;
  bordr: none !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  box-shadow: 0 0px 0px var(--mybuttons-warning-shadow) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--mybuttons-text-white) !important;
  cursor: pointer;  font-size: 12px !important;
  display: inline-block;
  font-weight: bold;
  margin-right: 2px;
}
input.form-control:hover,
textarea.form-control:hover,
select.form-control:hover,
.select2-container .select2-selection--single:hover,
.select2-container .select2-selection--multiple:hover {
  background-color: var(--mybuttons-text-transparent) !important;
  border-color: var(--mybuttons-gold, #4a6cf7) !important;
  color: #111 !important;
  transform: translateY(-1px) !important;
  font-weight: 500 !important;
  box-shadow: 0 0px 0px var(--mybuttons-text-transparent) !important;
}

input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus,
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
  border-color: var(--mybuttons-gold, #4a6cf7) !important;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2) !important;
  outline: none !important;
}

.form-control i {
  font-size: 16px !important;
  flex-shrink: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #475569 !important;
  line-height: 1.6 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 10px !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  min-height: 44px !important;
}

.form-control::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}


.input-group-append a{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  background-coslor: #ffffff !important;
  borsder: 1px solid #cbd5e1 !important;
  bordser-radisus: 6px !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  height: auto !important;
  line-height: unset !important;
  margin-left: -2px !important;
  z-index: 10 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0px 0px var(--mybuttons-text-transparent) !important;
}
*/
/* ============================================
   Custom Input Component Styles
   Based on quick-action-btn design system
   !important used to override any framework conflicts
   ============================================ */

/* Wrapper */
.custom-input-wrapper {
    margin-bottom: 2rem !important;
    width: 100% !important;
    display: block !important;
}

/* Label */
.custom-input-label {
    display: block !important;
    margin: 0.6rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.25rem !important;
}

.custom-input-required {
    color: #ef4444 !important;
    margin-left: 0.125rem !important;
}

/* Input Container */
.custom-input-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Icon Styles */
.custom-input-icon {
    position: absolute !important;
    left: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    pointer-events: none !important;
    z-index: 10 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

/* Icon with Select2 - ensure icon appears above Select2 container */
.custom-input-container .custom-input-icon {
    z-index: 10 !important;
}

.custom-input-container .select2-container {
    z-index: 1 !important;
    position: relative !important;
}

/* Remix Icon specific styling */
.custom-input-icon i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

/* SVG Icon styling */
.custom-input-icon svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

/* Base Input Field */
.custom-input-field {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background-color: white !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background-image: none !important;
}

/* Input with Icon */
.custom-input-field--with-icon {
    padding-left: 44px !important;
}

/* Button Style Variant - Matches the quick-action-btn design */
.custom-input-field--button {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 18px !important;
    padding-left: 44px !important;
    background-color: white !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
}

.custom-input-field--button:hover {
    background-color: #f8fafc !important;
    border-color: #4a6cf7 !important;
    color: #4a6cf7 !important;
    transform: translateY(-1px) !important;
}

.custom-input-field--button:focus {
    outline: none !important;
    border-color: #4a6cf7 !important;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Regular Input Focus State */
.custom-input-field:focus {
    outline: none !important;
    background-color: #f8fafc !important;
    border-color: #4a6cf7 !important;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1) !important;
}

/* Right Button Container */
.custom-input-right-button {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
    height: 100% !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    pointer-events: auto !important;
}

.custom-input-right-button>* {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    margin-left: -1px !important;
    min-height: 100% !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    z-index: 21 !important;
}


.custom-input-left-button a,
.custom-input-left-button button,
.custom-input-left-button btn,
.custom-input-right-button .form-control {
    color: #475569 !important;

    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.custom-input-right-button a,
.custom-input-right-button button {
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

.custom-input-container--with-right-button .select2-container {
    margin-right: 36px !important;
}

/* Input with Right Button - add padding */
.custom-input-field--with-right-button {
    padding-right: 50px !important;
    /* border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important; */
}

/* Select2 with Right Button */
.custom-input-container--with-right-button .select2-container .select2-selection--single,
.custom-input-container--with-right-button .select2-container .select2-selection--multiple {
    padding-right: 50px !important;
    /* border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important; */
}

.custom-input-field:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Placeholder */
.custom-input-field::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

/* Disabled State */
.custom-input-field:disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    border-color: #e2e8f0 !important;
}

.custom-input-field:disabled:hover {
    transform: none !important;
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

/* Readonly State */
.custom-input-field:read-only {
    background-color: #f8fafc !important;
    cursor: default !important;
    border-color: #cbd5e1 !important;
}

/* Error State */
.custom-input-field--error {
    border-color: #ef4444 !important;
}

.custom-input-field--error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.custom-input-field--error:hover {
    border-color: #dc2626 !important;
}

.custom-input-error {
    margin-top: 0.25rem !important;
    font-size: 12px !important;
    line-height: 1rem !important;
    color: #ef4444 !important;
    display: block !important;
}

/* ============================================
   Size Variations
   ============================================ */

/* Small Size */
.custom-input-wrapper--sm .custom-input-field {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.custom-input-wrapper--sm .custom-input-field--with-icon {
    padding-left: 36px !important;
}

.custom-input-wrapper--sm .custom-input-icon {
    left: 12px !important;
    font-size: 14px !important;
}

.custom-input-wrapper--sm .custom-input-icon i {
    font-size: 14px !important;
}

.custom-input-wrapper--sm .custom-input-field--button {
    padding: 8px 12px !important;
    padding-left: 36px !important;
    font-size: 12px !important;
}

/* Large Size */
.custom-input-wrapper--lg .custom-input-field {
    padding: 16px 20px !important;
    font-size: 14px !important;
}

.custom-input-wrapper--lg .custom-input-field--with-icon {
    padding-left: 52px !important;
}

.custom-input-wrapper--lg .custom-input-icon {
    left: 20px !important;
    font-size: 18px !important;
}

.custom-input-wrapper--lg .custom-input-icon i {
    font-size: 18px !important;
}

.custom-input-wrapper--lg .custom-input-field--button {
    padding: 16px 20px !important;
    padding-left: 52px !important;
    font-size: 14px !important;
}

/* ============================================
   Input Type Specific Styles
   ============================================ */

/* Number Input - Remove spinners */
input[type="number"].custom-input-field::-webkit-inner-spin-button,
input[type="number"].custom-input-field::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"].custom-input-field {
    -moz-appearance: textfield !important;
}

/* Search Input - Remove default decorations */
input[type="search"].custom-input-field::-webkit-search-decoration,
input[type="search"].custom-input-field::-webkit-search-cancel-button,
input[type="search"].custom-input-field::-webkit-search-results-button,
input[type="search"].custom-input-field::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
}

/* ============================================
   Date, Datetime, and Time Inputs - Remove default icons
   ============================================ */

/* Chrome, Edge, Safari, Opera */
input[type="date"].custom-input-field::-webkit-calendar-picker-indicator,
input[type="datetime-local"].custom-input-field::-webkit-calendar-picker-indicator,
input[type="time"].custom-input-field::-webkit-calendar-picker-indicator {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    display: block !important;
    background: transparent !important;
}

/* Remove any remaining padding or cursor space */
input[type="date"].custom-input-field,
input[type="datetime-local"].custom-input-field,
input[type="time"].custom-input-field {
    background-image: none !important;
    background-color: white !important;
    cursor: pointer !important;
    position: relative !important;
}

/* Firefox */
input[type="date"].custom-input-field,
input[type="datetime-local"].custom-input-field,
input[type="time"].custom-input-field {
    -moz-appearance: textfield !important;
}

/* Password Input - Remove reveal button */
input[type="password"].custom-input-field::-ms-reveal,
input[type="password"].custom-input-field::-ms-clear {
    display: none !important;
}

/* File Input */
input[type="file"].custom-input-field {
    padding: 8px 12px !important;
}

/* File Input with Icon - ensure icon doesn't overlap with browse button */
input[type="file"].custom-input-field--with-icon {
    padding-left: 44px !important;
}

input[type="file"].custom-input-field::file-selector-button {
    padding: 8px 12px !important;
    margin-right: 12px !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
}

input[type="file"].custom-input-field::file-selector-button:hover {
    background-color: #f1f5f9 !important;
    border-color: #4a6cf7 !important;
    color: #4a6cf7 !important;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .custom-input-field {
        border: 1px solid #000 !important;
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    .custom-input-icon {
        color: #000 !important;
    }

    .custom-input-error {
        color: #000 !important;
    }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */

.custom-input-field:focus-visible {
    outline: 2px solid #4a6cf7 !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .custom-input-field {
        border-width: 2px !important;
    }

    .custom-input-field:focus {
        border-width: 3px !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .custom-input-field,
    .custom-input-field--button {
        transition: none !important;
    }

    .custom-input-field--error {
        animation: none !important;
    }

    .custom-input-field--button:hover,
    .custom-input-field--button:focus {
        transform: none !important;
    }
}

/* ============================================
   Animations
   ============================================ */

/* Shake animation for error state */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

.custom-input-field--error {
    animation: shake 0.4s ease-in-out !important;
}

/* Pulse animation for loading state (optional) */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.custom-input-field--loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
    pointer-events: none !important;
}

/* ============================================
   Utility Classes
   ============================================ */

/* No margin bottom */
.custom-input-wrapper--no-margin {
    margin-bottom: 0 !important;
}

/* Compact spacing */
.custom-input-wrapper--compact {
    margin-bottom: 0.75rem !important;
}

/* Spacious */
.custom-input-wrapper--spacious {
    margin-bottom: 2rem !important;
}

/* Full width container */
.custom-input-wrapper--full {
    width: 100% !important;
}

/* Inline (for horizontal forms) */
.custom-input-wrapper--inline {
    display: inline-block !important;
    width: auto !important;
    margin-right: 1rem !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 640px) {
    .custom-input-field {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

    .custom-input-wrapper--inline {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
}


/* ============================================
   Custom Select Component Styles
   Add this to your existing CSS
   ============================================ */

/* Select Field Specific Styles */
.custom-select-field {
    height: auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}


/* Select with Icon */
.custom-select-field.custom-input-field--with-icon {
    background-position: right 12px center !important;
}

/* Select Button Style */
.custom-select-field.custom-input-field--button {
    background-position: right 16px center !important;
}

/* Select Focus State */
.custom-select-field:focus {
    outline: none !important;
    background-color: #f8fafc !important;
    border-color: #4a6cf7 !important;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1) !important;
}

/* Select Hover State */
.custom-select-field:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Select Disabled State */
.custom-select-field:disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    border-color: #e2e8f0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Select Option Styles */
.custom-select-field option {
    padding: 8px 12px !important;
    color: #475569 !important;
    background-color: white !important;
}

.custom-select-field option:hover,
.custom-select-field option:checked {
    background-color: #f8fafc !important;
    color: #4a6cf7 !important;
}

.custom-select-field option:disabled {
    color: #94a3b8 !important;
    background-color: #f1f5f9 !important;
}

/* Size Variations for Select */
.custom-input-wrapper--sm .custom-select-field {
    background-position: right 8px center !important;
    background-size: 14px !important;
    padding-right: 32px !important;
}

.custom-input-wrapper--lg .custom-select-field {
    background-position: right 16px center !important;
    background-size: 18px !important;
    padding-right: 48px !important;
}



/* Print Styles for Select */
@media print {
    .custom-select-field {
        border: 1px solid #000 !important;
        background: transparent !important;
        color: #000 !important;
        background-image: none !important;
    }
}

/* ============================================
   Advanced Dropzone Styles - Modern Design
   ALL STYLES USE !important TO PREVENT OVERRIDES
   Based on advanced-dropzone component
   ============================================ */

/* Dropzone Wrapper - HIGH SPECIFICITY */
.custom-dropzone-wrapper,
div.custom-dropzone-wrapper,
.custom-input-wrapper .custom-dropzone-wrapper {
    width: 100% !important;
    margin-bottom: 0.5rem !important;
    position: relative !important;
    display: block !important;
}

/* Main Dropzone Container - HIGH SPECIFICITY */
.custom-dropzone,
div.custom-dropzone,
.custom-dropzone-wrapper .custom-dropzone,
.custom-input-wrapper .custom-dropzone {
    border: 2px dashed #d1d5db !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    text-align: center !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Dropzone Hover State - HIGH SPECIFICITY */
.custom-dropzone:hover,
div.custom-dropzone:hover,
.custom-dropzone-wrapper .custom-dropzone:hover,
.custom-input-wrapper .custom-dropzone:hover {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1) !important;
}

/* Dropzone Active/Drag State - HIGH SPECIFICITY */
.custom-dropzone.dz-drag-hover,
div.custom-dropzone.dz-drag-hover,
.custom-dropzone-wrapper .custom-dropzone.dz-drag-hover,
.custom-input-wrapper .custom-dropzone.dz-drag-hover {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2) !important;
}

/* Focus State for Accessibility */
.custom-dropzone:focus-within {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
    border-color: #3b82f6 !important;
}

/* Error State */
.custom-dropzone.error {
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
}

/* Dropzone Content */
.dropzone-content {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    padding: 0 !important;
}

/* Hide content when existing image is present */
.custom-dropzone.has-existing-image .dropzone-content {
    display: none !important;
}

/* Show content when no existing image */
.custom-dropzone:not(.has-existing-image) .dropzone-content {
    display: block !important;
}

/* Dropzone Icon */
.dropzone-icon {
    font-size: 3rem !important;
    color: #6b7280 !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

.custom-dropzone:hover .dropzone-icon {
    color: #3b82f6 !important;
    transform: scale(1.1) !important;
}

.custom-dropzone.dz-drag-hover .dropzone-icon {
    color: #10b981 !important;
    transform: scale(1.2) !important;
}

/* Dropzone Text */
.dropzone-main-text {
    color: #374151 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.125rem !important;
}

.dropzone-sub-text {
    color: #6b7280 !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
}

.dropzone-sub-text.text-muted {
    color: #9ca3af !important;
}

.custom-dropzone:hover .dropzone-main-text {
    color: #3b82f6 !important;
}

.custom-dropzone.dz-drag-hover .dropzone-main-text {
    color: #10b981 !important;
}

.custom-dropzone:hover .dropzone-sub-text {
    color: #5b7280 !important;
    opacity: 1 !important;
}

/* Choose Files Button */
.dropzone-content button,
.dropzone-content .btn {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

.dropzone-content button:hover,
.dropzone-content .btn:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.dropzone-content button:active,
.dropzone-content .btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

/* Existing File Preview */
.existing-file-preview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.existing-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
    display: block !important;
    background-color: #f9fafb !important;
}

.existing-file-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(145, 128, 0, 0.8), rgba(180, 160, 0, 0.8)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 12px !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 10px !important;
    backdrop-filter: blur(2px) !important;
}

.existing-file-preview:hover .existing-file-overlay {
    opacity: 1 !important;
    transform: scale(1.02) !important;
}

.existing-file-name {
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.remove-existing-file {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 18px !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3) !important;
}

.remove-existing-file:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.4) !important;
}

/* Preview Container */
.dropzone-preview-container {
    margin-top: 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* File Preview Items */
.dropzone-file-preview {
    position: relative !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.dropzone-file-preview:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.dropzone-file-preview img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    background-color: #f9fafb !important;
}

.dropzone-file-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

.dropzone-file-remove {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    background: #ef4444 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

.dropzone-file-remove:hover {
    background: #dc2626 !important;
    transform: scale(1.1) !important;
}

/* Error State */
.custom-dropzone.custom-input-field--error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.custom-dropzone.custom-input-field--error:hover {
    border-color: #dc2626 !important;
    background-color: #fee2e2 !important;
}

/* Loading State */
.custom-dropzone.dz-processing {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.custom-dropzone.dz-processing::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin: -10px 0 0 -10px !important;
    border: 2px solid var(--mybuttons-gold, #4a6cf7) !important;
    border-top: 2px solid transparent !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Success State */
.custom-dropzone.dz-success {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    animation: successPulse 0.6s ease-in-out !important;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Progress Bar */
.dropzone-progress {
    margin-top: 1rem !important;
    display: none !important;
}

.dropzone-progress.show {
    display: block !important;
}

.dropzone-progress .progress {
    height: 8px !important;
    border-radius: 4px !important;
    background-color: #e5e7eb !important;
    overflow: hidden !important;
}

.dropzone-progress .progress-bar {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8) !important;
    transition: width 0.3s ease !important;
}

.dropzone-progress .progress-text {
    margin-top: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Error Messages */
.dropzone-errors {
    margin-top: 1rem !important;
    padding: 0.75rem !important;
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
    color: #dc2626 !important;
    font-size: 0.875rem !important;
    display: none !important;
}

.dropzone-errors.show {
    display: block !important;
}

/* Preview Container */
.dropzone-preview-container {
    background: #f8fafc !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    border: 1px solid #e5e7eb !important;
    margin-top: 1rem !important;
    display: none !important;
}

.dropzone-preview-container.show {
    display: block !important;
}

.preview-header h6 {
    font-weight: 600 !important;
    color: #374151 !important;
}

.preview-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.preview-item {
    position: relative !important;
    background: white !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
    flex: 0 0 calc(25% - 0.75rem) !important;
    max-width: calc(25% - 0.75rem) !important;
}

.preview-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.preview-item img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

.preview-item-info {
    margin-top: 0.5rem !important;
    text-align: center !important;
}

.preview-item-name {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    margin-bottom: 0.25rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.preview-item-size {
    font-size: 0.7rem !important;
    color: #9ca3af !important;
}

.preview-item-remove {
    position: absolute !important;
    top: 0.25rem !important;
    right: 0.25rem !important;
    background: rgba(239, 68, 68, 0.9) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    opacity: 0 !important;
}

.preview-item:hover .preview-item-remove {
    opacity: 1 !important;
}

.preview-item-remove:hover {
    background: #dc2626 !important;
    transform: scale(1.1) !important;
}

/* Animation for new items */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-item.new {
    animation: slideInUp 0.3s ease !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-dropzone {
        padding: 1.5rem 1rem !important;
    }

    .dropzone-icon {
        font-size: 2.5rem !important;
    }

    .dropzone-main-text {
        font-size: 1rem !important;
    }

    .preview-item {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
    }
}

@media (max-width: 576px) {
    .preview-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Existing Image State */
.custom-dropzone.has-existing-image {
    border-color: #d1d5db !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.custom-dropzone.has-existing-image:hover {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Error Messages */
.dropzone-error-message {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
    color: #dc2626 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .custom-dropzone {
        min-height: 120px !important;
    }

    .dropzone-icon {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }

    .dropzone-main-text {
        font-size: 14px !important;
    }

    .dropzone-sub-text {
        font-size: 12px !important;
    }

    .dropzone-file-preview img {
        width: 80px !important;
        height: 80px !important;
        object-fit: contain !important;
        object-position: center !important;
        background-color: #f9fafb !important;
    }
}

/* ============================================
   MAXIMUM SPECIFICITY OVERRIDE PROTECTION
   These rules have the highest specificity to prevent any overrides
   ============================================ */

/* Force dropzone styles with maximum specificity */
.custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone,
div.custom-input-wrapper div.custom-dropzone-wrapper div.custom-dropzone,
body .custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone {
    border: 2px dashed #d1d5db !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ffffff 0%, var(--mybuttons-text-transparent, #f8fafc) 100%) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 150px !important;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force hover states with maximum specificity */
.custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone:hover,
div.custom-input-wrapper div.custom-dropzone-wrapper div.custom-dropzone:hover,
body .custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone:hover {
    border-color: var(--mybuttons-gold, #4a6cf7) !important;
    background-color: var(--mybuttons-text-transparent, #f8fafc) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px var(--mybuttons-gold-outline-shadow, rgba(74, 108, 247, 0.15)) !important;
}

/* Force drag states with maximum specificity */
.custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone.dz-drag-hover,
div.custom-input-wrapper div.custom-dropzone-wrapper div.custom-dropzone.dz-drag-hover,
body .custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone.dz-drag-hover {
    border-color: var(--mybuttons-gold, #4a6cf7) !important;
    background-color: var(--mybuttons-text-transparent, #f0f4ff) !important;
    border-style: solid !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px var(--mybuttons-gold-shadow, rgba(74, 108, 247, 0.25)) !important;
}

/* Force content styles with maximum specificity */
.custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone .dropzone-content,
div.custom-input-wrapper div.custom-dropzone-wrapper div.custom-dropzone div.dropzone-content,
body .custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone .dropzone-content {
    text-align: center !important;
    padding: 20px !important;
    z-index: 3 !important;
    position: relative !important;
    pointer-events: none !important;
}

/* Force icon styles with maximum specificity */
.custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone .dropzone-icon,
div.custom-input-wrapper div.custom-dropzone-wrapper div.custom-dropzone .dropzone-icon,
body .custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone .dropzone-icon {
    font-size: 48px !important;
    color: #6b7280 !important;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

/* Force text styles with maximum specificity */
.custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone .dropzone-main-text,
div.custom-input-wrapper div.custom-dropzone-wrapper div.custom-dropzone .dropzone-main-text,
body .custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone .dropzone-main-text {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    margin: 0 0 8px 0 !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone .dropzone-sub-text,
div.custom-input-wrapper div.custom-dropzone-wrapper div.custom-dropzone .dropzone-sub-text,
body .custom-input-wrapper .custom-dropzone-wrapper .custom-dropzone .dropzone-sub-text {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    opacity: 0.8 !important;
}

/* ============================================
   Fix Alignment for Select2 inside Custom Input
   ============================================ */

/* Ensure the select2 container fills the input area */
.custom-input-container .select2-container {
    flex: 1 !important;
    width: 100% !important;
}



/* Match the select2 height and padding with other custom inputs */
.select2 .select2-container .select2-container--bootstrap,
.custom-input-container .select2-container--bootstrap .select2-selection--single,
.custom-input-container .select2-container--default .select2-selection--single {
    height: auto !important;
    /* same as .custom-input-field */
    padding: 12px 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: white !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}


.custom-input-container .select2-container--bootstrap .select2-selection--multiple,
.custom-input-container .select2-container--default .select2-selection--multiple {
    height: auto !important;
    /* same as .custom-input-field */
    padding: 10px 10px !important;
    xpadding-top: 6px !important;
    padding-right: 0px !important;
    min-height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: white !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: top !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

/* If there's an icon on the left, add padding to the select2 box */
.custom-input-container:has(.custom-input-icon) .select2-container .select2-selection--single,
.custom-input-container .custom-input-icon~.select2-container .select2-selection--single,
.custom-input-container .custom-input-icon+.select2-container .select2-selection--single,
.custom-input-container:has(.custom-input-icon) .select2-container .select2-selection--multiple,
.custom-input-container .custom-input-icon~.select2-container .select2-selection--multiple,
.custom-input-container .custom-input-icon+.select2-container .select2-selection--multiple {
    padding-left: 44px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    Xmargin: 0px !important;
    xfont-size: 14px !important;
}

.xselect2-container--default .select2-selection--multiple .select2-selection__rendered {

    margin: 0 !important;
    ;
    margin-top: 0px !important;
    ;
    padding: 0 !important;
    padding-left: 0px !important;
    ;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 1px !important;
    ;

}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 2px !important;
    ;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    /* background-color: #e4e4e4;
  border: 1px solid #aaa;
    border-top-color: rgb(170, 170, 170);
    border-right-color: rgb(170, 170, 170);
    border-bottom-color: rgb(170, 170, 170);
    border-left-color: rgb(170, 170, 170);
  border-radius: 4px;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 5px;
  padding: 0 5px;*/

    background-color: var(--mybuttons-gold) !important;
    color: var(--mybuttons-text-white) !important;
    border: none !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    vcolor: #6F4E37 !important;
    vbackground-color: #F5DEB3 !important;
}

.select2-selection__choice__remove {
    color: var(--mybuttons-text-white) !important;
    padding-right: 5px !important;
    font-size: 13px !important;
    margin-top: -2px !important;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 2px !important;
    width: 100% !important;
}

/*
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 20px !important;
  position: absolute;
  top: -2px  !important;;
  right: 1px;
  width: 20px;
}*/

/* Keep the arrow aligned properly */
.custom-input-container .select2-selection__arrow {
    top: 36% !important;
    transform: translateY(-50%) !important;
    right: 8px !important;
    position: absolute !important;
}

/* Replace arrow with your SVG */
.custom-input-container .select2-selection__arrow b {
    border: none !important;
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px !important;
}

/* Align the displayed value nicely */
.custom-input-container .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 0px !important;
    color: #475569 !important;
    font-weight: 500 !important;
    margin-top: 0px !important;
}

/* Adjust padding for Select2 when icon is present */
.custom-input-container:has(.custom-input-icon) .select2-selection__rendered {
    padding-left: 0px !important;
}

/* Hide the tiny clear "×" button unless hovered */
.custom-input-container .select2-selection__clear {
    color: #a1a1aa !important;
    margin-right: 2px !important;
    margin-top: 2px !important;
    line-height: normal !important;
    width: 15px !important;
    height: 15px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px !important;
}

.custom-input-container .select2-selection__clear:hover {
    color: #ef4444 !important;
}

/*top right bottom left*/
.custom-form-box {
    padding: 15px 20px 10px 15px !important;
    box-shadow: none !important;
    border: 1px solid #999 !important;
    border-top: 2px solid #777 !important;

    position: relative !important;
    margin: 0px !important;
    background-color: #ffffff !important;


    border-radius: 10px !important;
    xxxbox-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px !important;
}