﻿/* View Mode Toggle */
.view-mode-toggle-minimal {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

    .view-mode-toggle-minimal .btn-group {
        border-radius: 0.2rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    .view-mode-toggle-minimal .btn {
        padding: 0.15rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 500;
        border: 1px solid #dee2e6;
        transition: all 0.15s ease-in-out;
        min-width: auto;
    }

        .view-mode-toggle-minimal .btn:first-child {
            border-top-left-radius: 0.2rem;
            border-bottom-left-radius: 0.2rem;
        }

        .view-mode-toggle-minimal .btn:last-child {
            border-top-right-radius: 0.2rem;
            border-bottom-right-radius: 0.2rem;
            border-left: none;
        }

    .view-mode-toggle-minimal .btn-check:checked + .btn {
        background-color: #6c757d;
        border-color: #6c757d;
        color: white;
    }

    .view-mode-toggle-minimal .btn:hover {
        background-color: #f8f9fa;
        border-color: #6c757d;
    }

    .view-mode-toggle-minimal .btn-check:checked + .btn:hover {
        background-color: #5a6268;
        border-color: #5a6268;
    }

/* Dialog and Form Containers */
.affiliate-editor-dialog .e-dialog {
    max-width: 95vw;
    max-height: 90vh;
}

.affiliate-editor-dialog .e-dlg-content {
    padding: 1.5rem;
    /* Removed max-height and overflow-y as they were commented out */
}

.simple-form-container,
.guided-form-container {
    min-height: 200px;
}

.guided-form-container {
    max-height: 80vh;
    overflow-y: auto;
    padding-top: 1rem;
}

/* Stepper Styles */
.stepper-editor-wrapper {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 0;
}

    .stepper-editor-wrapper .e-stepper {
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

/* Stepper connector lines - make steps take equal space */
.e-stepper .e-stepper-steps {
    justify-content: stretch !important;
}

.e-stepper .e-step-container {
    position: relative;
    flex: 1 1 0 !important;
}

.e-stepper .e-step-container:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 26px);
    width: calc(100% - 52px);
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.e-stepper .e-step-container.e-step-completed:not(:last-child)::after {
    background-color: var(--foo-blue2, #0b3b60);
}

.e-stepper .e-step-container.e-step-valid:not(:last-child)::after {
    background-color: #28a745;
}

.e-stepper .e-step-container .e-step-connector {
    border-top: 1px solid #dee2e6;
    width: 100%;
    height: 1px;
    position: relative;
    margin: 0 10px;
}

.e-stepper .e-stepper-progressbar > .e-progressbar-value {
    background-color: #28a745;
}

.e-stepper .e-step-selected:not(.e-step-error) .e-text,
.e-stepper .e-step-selected:not(.e-step-error) .e-label,
.e-stepper .e-step-completed:not(.e-step-error) .e-text,
.e-stepper .e-step-completed:not(.e-step-error) .e-label {
    color: #28a745;
}

/* Global Stepper Indicator Styles */
.e-stepper .e-step-container .e-indicator {
    background-color: #dee2e6 !important;
    border-color: #dee2e6 !important;
    position: relative;
    z-index: 2;
}

.e-stepper .e-step-container.e-step-completed .e-indicator {
    background-color: var(--foo-blue2, #0b3b60) !important;
    border-color: var(--foo-blue2, #0b3b60) !important;
}

.e-stepper .e-step-container.e-step-inprogress .e-indicator,
.e-stepper .e-step-container.e-step-inprogress .e-indicator:focus,
.e-stepper .e-step-container.e-step-inprogress .e-indicator:active,
.e-stepper .e-step-container.e-step-selected .e-indicator,
.e-stepper .e-step-container.e-step-current .e-indicator {
    background-color: var(--foo-blue, #00A0DD) !important;
    border-color: var(--foo-blue, #00A0DD) !important;
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 2px, var(--foo-blue3, #066E9F) 0px 0px 0px 4px, rgb(255, 255, 255) 0px 0px 0px 8px !important;
}

.e-stepper .e-step-container.e-step-valid .e-indicator {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 2px, #28a745 0px 0px 0px 4px, rgb(255, 255, 255) 0px 0px 0px 8px !important;
}

/* Step Content */
.step-content-container {
    min-height: 200px;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.step-content h4 {
    color: #495057;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.step-description {
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Review Summary */
.review-summary {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    padding: .5rem 0.75rem;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
}

    .summary-item:last-child {
        border-bottom: none;
    }

    .summary-item strong {
        min-width: 120px;
        color: #495057;
        margin-right: 1rem;
    }

/* Stepper Navigation */
.stepper-navigation {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
    flex-shrink: 0;
}

    .stepper-navigation .btn {
        min-width: 120px;
        font-weight: 500;
    }

    .stepper-navigation .ms-auto {
        margin-left: auto !important;
    }

/* Form Controls */
.form-floating label {
    font-weight: 500;
    color: #6c757d;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Syncfusion DropDownList Height Fix - Match Bootstrap Form Controls */
/* Scope to forms only to avoid affecting grid pagers */
/* Targets both e-input-group (standard) and e-float-input (FloatLabelType.Auto) variants */
.step-content-container .e-ddl.e-lib.e-input-group,
.step-content-container .e-ddl.e-lib.e-input-group.e-control-wrapper,
.step-content-container .e-ddl.e-lib.e-float-input,
.step-content-container .e-ddl.e-lib.e-float-input.e-control-wrapper,
.step-content-container .e-ddl .e-input-group,
.step-content-container .e-ddl .e-input-group.e-control-wrapper,
.simple-form-container .e-ddl.e-lib.e-input-group,
.simple-form-container .e-ddl.e-lib.e-input-group.e-control-wrapper,
.simple-form-container .e-ddl.e-lib.e-float-input,
.simple-form-container .e-ddl.e-lib.e-float-input.e-control-wrapper,
.simple-form-container .e-ddl .e-input-group,
.simple-form-container .e-ddl .e-input-group.e-control-wrapper,
.guided-form-container .e-ddl.e-lib.e-input-group,
.guided-form-container .e-ddl.e-lib.e-input-group.e-control-wrapper,
.guided-form-container .e-ddl.e-lib.e-float-input,
.guided-form-container .e-ddl.e-lib.e-float-input.e-control-wrapper,
.guided-form-container .e-ddl .e-input-group,
.guided-form-container .e-ddl .e-input-group.e-control-wrapper,
.form-floating > .e-ddl.e-lib.e-input-group,
.form-floating > .e-ddl.e-lib.e-input-group.e-control-wrapper,
.form-floating > .e-ddl.e-lib.e-float-input,
.form-floating > .e-ddl.e-lib.e-float-input.e-control-wrapper,
.form-floating > .e-ddl .e-input-group,
.form-floating > .e-ddl .e-input-group.e-control-wrapper {
    min-height: calc(3.5rem + 2px) !important;
    height: calc(3.5rem + 2px) !important;
}

.step-content-container .e-ddl .e-input-group input.e-input,
.step-content-container .e-ddl .e-input-group.e-input-focus input.e-input,
.step-content-container .e-ddl.e-input-group input.e-input,
.step-content-container .e-ddl.e-input-group.e-input-focus input.e-input,
.step-content-container .e-ddl.e-float-input input.e-input,
.step-content-container .e-ddl.e-float-input.e-input-focus input.e-input,
.simple-form-container .e-ddl .e-input-group input.e-input,
.simple-form-container .e-ddl .e-input-group.e-input-focus input.e-input,
.simple-form-container .e-ddl.e-input-group input.e-input,
.simple-form-container .e-ddl.e-input-group.e-input-focus input.e-input,
.simple-form-container .e-ddl.e-float-input input.e-input,
.simple-form-container .e-ddl.e-float-input.e-input-focus input.e-input,
.guided-form-container .e-ddl .e-input-group input.e-input,
.guided-form-container .e-ddl .e-input-group.e-input-focus input.e-input,
.guided-form-container .e-ddl.e-input-group input.e-input,
.guided-form-container .e-ddl.e-input-group.e-input-focus input.e-input,
.guided-form-container .e-ddl.e-float-input input.e-input,
.guided-form-container .e-ddl.e-float-input.e-input-focus input.e-input,
.form-floating > .e-ddl .e-input-group input.e-input,
.form-floating > .e-ddl .e-input-group.e-input-focus input.e-input,
.form-floating > .e-ddl.e-input-group input.e-input,
.form-floating > .e-ddl.e-input-group.e-input-focus input.e-input,
.form-floating > .e-ddl.e-float-input input.e-input,
.form-floating > .e-ddl.e-float-input.e-input-focus input.e-input {
    height: calc(3.5rem + 2px) !important;
    padding: 1rem 2.5rem 1rem 0.75rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
}

/* Placeholder font size to match form controls - slightly smaller */
.step-content-container .e-ddl .e-input-group input.e-input::placeholder,
.step-content-container .e-ddl input.e-input::placeholder,
.simple-form-container .e-ddl .e-input-group input.e-input::placeholder,
.simple-form-container .e-ddl input.e-input::placeholder,
.guided-form-container .e-ddl .e-input-group input.e-input::placeholder,
.guided-form-container .e-ddl input.e-input::placeholder,
.form-floating > .e-ddl .e-input-group input.e-input::placeholder,
.form-floating > .e-ddl input.e-input::placeholder {
    font-size: 0.9375rem !important;
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Form-floating specific styles */
.form-floating > .e-ddl {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.form-floating > .e-ddl .e-input-group {
    padding: 0 !important;
}

.form-floating > .e-ddl .e-input-group input.e-input,
.form-floating > .e-ddl.e-input-group input.e-input {
    padding-top: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    padding-left: 0.75rem !important;
    padding-right: 2.5rem !important;
    font-size: 0.9375rem !important;
}

/* Syncfusion FloatLabelType.Auto - Match Bootstrap form-floating appearance */
/* Add Bootstrap-style border to the Syncfusion float-input wrapper */
.step-content-container .e-ddl.e-float-input,
.simple-form-container .e-ddl.e-float-input,
.guided-form-container .e-ddl.e-float-input {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    position: relative !important;
    background-color: #fff !important;
    margin: 0 !important;
}

/* Remove Syncfusion's default bottom-border-only style on inner elements */
.step-content-container .e-ddl.e-float-input::before,
.step-content-container .e-ddl.e-float-input::after,
.simple-form-container .e-ddl.e-float-input::before,
.simple-form-container .e-ddl.e-float-input::after,
.guided-form-container .e-ddl.e-float-input::before,
.guided-form-container .e-ddl.e-float-input::after {
    display: none !important;
}

/* Label: match Bootstrap form-floating > label exactly */
/* Use high-specificity selectors to override Syncfusion defaults */
.simple-form-container .e-ddl.e-lib.e-float-input label.e-float-text,
.simple-form-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-top,
.simple-form-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-bottom,
.step-content-container .e-ddl.e-lib.e-float-input label.e-float-text,
.step-content-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-top,
.step-content-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-bottom,
.guided-form-container .e-ddl.e-lib.e-float-input label.e-float-text,
.guided-form-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-top,
.guided-form-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-bottom {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
    height: 100% !important;
    padding: 1rem 0.75rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    border: 1px solid transparent !important;
    transform-origin: 0 0 !important;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Label when floated to top (value is selected) - match Bootstrap scale/translate */
.simple-form-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-top,
.simple-form-container .e-ddl.e-lib.e-control-wrapper.e-float-input .e-float-text.e-label-top,
.step-content-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-top,
.step-content-container .e-ddl.e-lib.e-control-wrapper.e-float-input .e-float-text.e-label-top,
.guided-form-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-top,
.guided-form-container .e-ddl.e-lib.e-control-wrapper.e-float-input .e-float-text.e-label-top {
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem) !important;
    height: auto !important;
}

/* Label when no value (placeholder state) - full size, centered vertically */
.simple-form-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-bottom,
.step-content-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-bottom,
.guided-form-container .e-ddl.e-lib.e-float-input .e-float-text.e-label-bottom {
    transform: none !important;
}

/* Input text - target Syncfusion's actual input class (e-dropdownlist, not e-input) */
/* Push value down below floated label, matching Bootstrap form-floating */
.simple-form-container .e-ddl.e-lib.e-float-input input.e-dropdownlist,
.simple-form-container .e-ddl.e-lib.e-float-input input.e-control,
.step-content-container .e-ddl.e-lib.e-float-input input.e-dropdownlist,
.step-content-container .e-ddl.e-lib.e-float-input input.e-control,
.guided-form-container .e-ddl.e-lib.e-float-input input.e-dropdownlist,
.guided-form-container .e-ddl.e-lib.e-float-input input.e-control {
    padding: 1.625rem 2.5rem 0.625rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    height: calc(3.5rem + 2px) !important;
    border: none !important;
    background: transparent !important;
}

/* Focus state - match Bootstrap form-control:focus */
.step-content-container .e-ddl.e-float-input.e-input-focus,
.simple-form-container .e-ddl.e-float-input.e-input-focus,
.guided-form-container .e-ddl.e-float-input.e-input-focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Ensure dropdown icon aligns properly */
.step-content-container .e-ddl .e-input-group .e-input-group-icon,
.step-content-container .e-ddl .e-clear-icon,
.step-content-container .e-ddl.e-float-input .e-input-group-icon,
.simple-form-container .e-ddl .e-input-group .e-input-group-icon,
.simple-form-container .e-ddl .e-clear-icon,
.simple-form-container .e-ddl.e-float-input .e-input-group-icon,
.guided-form-container .e-ddl .e-input-group .e-input-group-icon,
.guided-form-container .e-ddl .e-clear-icon,
.guided-form-container .e-ddl.e-float-input .e-input-group-icon,
.form-floating > .e-ddl .e-input-group .e-input-group-icon,
.form-floating > .e-ddl .e-clear-icon,
.form-floating > .e-ddl.e-float-input .e-input-group-icon {
    min-height: calc(3.5rem + 2px) !important;
    line-height: calc(3.5rem + 2px) !important;
    font-size: 0.875rem !important;
}

/* Status Switch */
.form-check-input.switch-lg {
    width: 3rem;
    height: 1.5rem;
    transform: scale(1.2);
}

.form-check-input.switch-colored:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input.switch-colored:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert ul {
    padding-left: 1.5rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* Tag Chooser */
.adp-tag-chooser .custom-radio-btn {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    transition: all 0.15s ease-in-out;
}

.adp-tag-chooser .btn-check:checked + .custom-radio-btn {
    background-color: var(--foo-blue2) !important;
    border-color: var(--foo-blue2) !important;
    color: white !important;
}

.adp-tag-chooser .custom-radio-btn:hover {
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #495057 !important;
}

.adp-tag-chooser .btn-check:checked + .custom-radio-btn:hover {
    background-color: var(--foo-blue2) !important;
    border-color: var(--foo-blue2) !important;
    color: white !important;
}
/* CSS for disabled dropdown options */
.disabled-option {
    background-color: #f8f9fa !important; /* Light gray background */
    color: #000000 !important; /* Black text */
    opacity: 0.7 !important; /* Slightly faded */
    font-style: italic; /* Italicized for emphasis */
}

/* Alternative darker shaded version */
.disabled-option-dark {
    background-color: #e9ecef !important; /* Darker gray background */
    color: #000000 !important; /* Black text */
    opacity: 0.8 !important;
    font-style: italic;
}
/*These area form thead Disabled roles/affiliates*/
/* Version with strikethrough for extra emphasis */
.disabled-option-strikethrough {
    background-color: #f8f9fa !important;
    color: #000000 !important;
    text-decoration: line-through;
    opacity: 0.7 !important;
    font-style: italic;
}

/* Ensure disabled options can't be hovered */
option.disabled-option:hover,
option[disabled].disabled-option:hover {
    background-color: #f8f9fa !important;
    color: #000000 !important;
}

/* For better browser compatibility */
select option[disabled] {
    background-color: #f8f9fa !important;
    color: #000000 !important;
    opacity: 0.7 !important;
}

/* Bootstrap-friendly version */
.form-select option.disabled-option,
.form-control option.disabled-option {
    background-color: #f8f9fa !important;
    color: #000000 !important;
    opacity: 0.7 !important;
    font-style: italic;
}