
body[data-theme="dark"] .sv-question__title--answer 
{
    background: #222e3c;
}

body[data-theme="light"] .sv-question__title--answer 
{
    background: #fff;
}

.sv-boolean__switch 
{
    background: #007bff;
}

.sv-question__title 
{
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0.25em 0.44em;
    cursor: default;
    font-size: 1.3125rem;
    word-break: break-word;
    font-weight: 400;
    font-family: var(--bs-body-font-family);
}

.sv-title 
{
    font-size: 0.875rem;
    font-weight: bolder;
    font-family: var(--bs-body-font-family);
    font-style: normal;
    font-stretch: normal;
    letter-spacing: normal;
}

body[data-theme="dark"] .sv-title 
{
    color : #bdc0c5;
}

body[data-theme="light"] .sv-title 
{
    color : #495057;
}

.sv-item 
{
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    position: relative;
    cursor: pointer;
}

.sv-panel .sv-question__title 
{
    font-size: .875rem;
    padding-left: 0.55em;
}

.sv-table__cell--header 
{
    font-family: var(--bs-body-font-family);
    font-weight: normal;
    text-align: left;
    font-size: .825rem;
    font-weight: 600;
}

.sv-matrixdynamic__add-btn 
{
    background-color: #007bff;
}

.sv-matrixdynamic__remove-btn 
{
    background-color: #6c757d!important;
}

.sv-file__choose-btn:not(.sv-file__choose-btn--disabled) 
{
    background-color: #007bff;
    display: inline-block;
}

.sv-list__item.sv-list__item--selected .sv-list__item-body, .sv-list__item.sv-list__item--selected:hover .sv-list__item-body, .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body, .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body, li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body 
{
    background-color: #ddd;
    color: var(--primary-foreground, #222e3c);
    font-weight: 400;
}

.sv-row:not(:last-child) 
{
    padding-bottom: 0.5em;
}

.sv-table tr:first-child .sv-table__cell 
{
    padding-top: 0.5em;
}

.sv-table tbody tr:last-child .sv-table__cell 
{
    padding-bottom: 0.5em;
}

 .sv-table th:first-child 
{
    padding-left: 0em !important;
}

.modal-body 
{
    flex: 1 1 auto;
    position: relative;
}

.sv-footer.sv-action-bar 
{
    min-height: var(--base-line-height, 2em);
    padding: 2.5em 0 0.87em 0;
    margin-left: auto;
    display: flex;
    justify-content: center;
}

.sv-question 
{
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--bs-body-font-family);
  padding-left: var(--sv-element-add-padding-left, 0px);
  padding-right: var(--sv-element-add-padding-right, 0px);
  padding-bottom: .5em;
}
  
.sv-selectbase .sv-selectbase\_\_item.sv-q-col-1 
{ 
    display: flex;
    padding-right: 0;
}
 
.sv-container-modern 
{
    color: var(--text-color, #404040);
    font-size: var(--font-size, 0.825rem);
    font-family: var(--bs-body-font-family);
    margin-bottom: 0px;
}

.sv-body__footer.sv-footer.sv-action-bar 
{
    margin-top: 0px;
}

.sv-footer.sv-action-bar 
{
    min-height: var(--base-line-height, 2em);
    padding-top: 1em;
    margin-left: auto;
    display: flex;
    justify-content: center;
}

.sv-remaining-character-counter
{
    float: right;
}

.sv-file__sign
{
    overflow-wrap: break-word;
}

.sv-file__preview 
{
    width: 100%;
    display: inline-block;
    padding-right: 23px;
    position: relative;
    margin-top: 1.25em;
    vertical-align: top;
}

.sv-components-column--expandable 
{
    width: 100%;
    flex-grow: 1;
}

.sv-file img
{
    height: auto;
    max-width: 100%;
}

.sv-svg-icon .sv_q_dd_clean-button-svg
{
    display: none;
}

.sv-components-column .sv-components-row
{
    max-width: 100% !important; 
}

.sv-question 
{
    overflow: hidden;
    box-sizing: border-box;
    font-family: var(--bs-body-font-family);
    padding-left: var(--sv-element-add-padding-left, 0px);
    padding-right: var(--sv-element-add-padding-right, 5px);
}

.sv-text 
{
    /* height: auto; */
    font-family: var(--bs-body-font-family);
}

input.sv-text, textarea.sv-comment, select.sv-dropdown 
{
    font-family: var(--bs-body-font-family)!important;
    color: var(--text-color, #495057)!important;
    background-color: var(--inputs-background-color, white)!important;
    font-size: .875rem !important;
}

.sv-list__item-body 
{
    font-family: var(--bs-body-font-family)!important;
    font-size: .925rem!important;
}

.sv-question__description 
{
    font-size: .825rem;
    word-break: break-word;
    font-family: var(--bs-body-font-family);
}

.sv-btn--navigation, .sv-matrixdynamic__add-btn, .sv-file__choose-btn, .sv-paneldynamic__add-btn
{
    background-color: #3b7ddd !important;
    border-radius: 0.2rem;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.3rem 0.85rem;
    line-height : 1.5;
    border : 1px solid #3b7ddd !important;
    border-width: 1px;
    text-align: center;
    vertical-align: middle;
}

.sv-btn--navigation:hover, .sv-matrixdynamic__add-btn:hover, .sv-file__choose-btn:hover, .sv-paneldynamic__add-btn:hover
{
    background-color: #326abc !important;
    border-color: #2f64b1 !important;
    text-decoration: none;
    color: #fff !important;
}

.sv-btn.sv-file__choose-btn  
{
    background-color: #f4f4f4 !important;
    color:  rgba(64, 64, 64, 0.5) !important;
    border : 1px solid rgba(64, 64, 64, 0.5)  !important;
    border-radius: 1.214em;
}

.sv-btn.sv-file__choose-btn:hover
{
    color:  #545658 !important;
    border-color: #545658 !important;
}

.sv-btn.sv-matrixdynamic__add-btn, .sv-btn.sv-paneldynamic__add-btn
{
    padding: 0.2rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.1rem !important;
    background-color: #6c757d !important;
    color: #fff !important;
    border : 1px solid #6c757d  !important;
}

.sv-btn.sv-matrixdynamic__add-btn:hover, .sv-btn.sv-paneldynamic__add-btn:hover
{
    background-color: #5c636a !important;
    color:  #fff !important;
    border-color: #565e64 !important;
}

.sv-btn.sv-matrixdynamic__remove-btn, .sv-btn.sv-paneldynamic__remove-btn 
{
    border-radius: 0.2rem;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.3rem 0.85rem;
    line-height : 1.5;
    border-width: 1px;
    text-align: center;
    vertical-align: middle;
}

body[data-theme="dark"] .sv-btn.sv-matrixdynamic__remove-btn, 
body[data-theme="dark"] .sv-btn.sv-paneldynamic__remove-btn 
{
    color: #e1e1e1 !important;
    background-color: #222e3c !important;
}

body[data-theme="light"] .sv-btn.sv-matrixdynamic__remove-btn, 
body[data-theme="light"] .sv-btn.sv-paneldynamic__remove-btn 
{
    color: #545658 !important;
    background-color: #ffffff !important;
}

@media only screen and (min-width: 1000px) 
{
    .sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar
    {
        margin-right: 2%;
        margin-left: 2%;
    }
}

.sv-question__footer 
{
    float: inline-end;
}

.sv-action-bar.sv-panel__footer 
{
    flex-direction: row-reverse !important;
} 

.sv-btn.sv-paneldynamic__add-btn
{
    float: inline-end;
}

.sv-file__clean-btn
{
    display: none !important;
}

.sv-table td:last-child, .sv-table th:last-child 
{
    padding-right: 0em !important;
}

.sv-table__cell:not(:first-child) 
{
    padding-left: 0em !important;
}

/* .sv-table__cell--actions .sv-action-bar 
{
    margin-left: -15px  !important;
    margin-right: -15px  !important;
} */

body[data-theme="dark"] .sv-comment, 
body[data-theme="dark"] .sv-text, 
body[data-theme="dark"] .sv-dropdown, 
body[data-theme="dark"] .select2-container--default .select2-selection--single 
{
    border: 1px solid #4e5863;
    border-radius: 0.2rem;
}

body[data-theme="light"] .sv-comment, 
body[data-theme="light"] .sv-text, 
body[data-theme="light"] .sv-dropdown, 
body[data-theme="light"] .select2-container--default .select2-selection--single 
{
    border: 1px solid #dee2e6;
    border-radius: 0.2rem;
}

.sv-comment:focus, .sv-text:focus
{
    border-color: #9dbeee !important;
    box-shadow: 0 0 0 .25rem rgba(59, 125, 221, .25);
}

.sv-dropdown:focus, .sv-dropdown:focus-within 
{
    border-color: #9dbeee !important;
    box-shadow: 0 0 0 .25rem rgba(59, 125, 221, .25);
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus 
{
    border-color: #9dbeee !important;
    box-shadow: 0 0 0 .25rem rgba(59, 125, 221, .25);
}

.sv-body__page
{
    margin-top: 1em !important;
}

.sv-panel .sv-row:not(:last-child) 
{
    padding-bottom: .5em !important;
}

.sv-remaining-character-counter 
{
    float: right;
    font-size: 12px;
    margin-top: 5px;
}

.sv-table td:first-child
{
    padding-left: 0em !important; 
}

.sv-table__cell 
{
    padding: .5em 0;
}

.sv-dropdown__filter-string-input
{
    font-size: .875rem !important;
}

.sv-dropdown .sv-string-viewer
{
    font-size: 0.875em;
}

body[data-theme="dark"] .sv-dropdown .sv-string-viewer
{
    color: #bdc0c5;
}

body[data-theme="light"] .sv-dropdown .sv-string-viewer 
{
    color: #495057;
}

.sv-dropdown__value .sv-string-viewer
{
    line-height: 21px;
}

.sv-dropdown__value
{
    font-family: inherit;
}

input.sv-text::placeholder,
textarea.sv-comment::placeholder 
{
  color: #888;
}

.sv-dropdown 
{
    height: 2.35em;
}

.sv-dropdown:focus, .sv-dropdown:focus-within
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve'%3E%3Cpolygon fill='%23e1e1e1' points='2,2 0,4 5,9 10,4 8,2 5,5'/%3E%3C/svg%3E");
}

body[data-theme="dark"] .sv-dropdown
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve'%3E%3Cpolygon fill='%23e1e1e1' points='2,2 0,4 5,9 10,4 8,2 5,5'/%3E%3C/svg%3E");
}

body[data-theme="light"] .sv-dropdown
{
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2010%2010%27%3E%3Cpolygon%20fill%3D%27%23404040%27%20points%3D%272%2C2%200%2C4%205%2C9%2010%2C4%208%2C2%205%2C5%27%2F%3E%3C%2Fsvg%3E");
}

p.subtitle /* html form description */
{
    margin-bottom: .5rem;
}

.select2-container--classic .select2-selection--multiple:focus,.select2-container--classic .select2-selection--multiple:focus-within 
{
   
    border: 1px solid #9dbeee !important;
    box-shadow: 0 0 0 .25rem rgba(59, 125, 221, .25) !important;
}

.select2-container--classic.select2-container--open .select2-selection--multiple 
{
    border: 1px solid #9dbeee !important;
    box-shadow: 0 0 0 .25rem rgba(59, 125, 221, .25) !important;
}

.select2-container--classic.select2-container--open .select2-dropdown 
{
    border: 1px solid #aaa !important;
}

.sv-popup .sv-string-viewer
{
    font-size: 0.875em;
}

.sv-boolean input:focus~.sv-boolean__switch /* Adjustments for toggle border */
{
    outline: 1px solid #007bff;
}

body[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b 
{
    border-color: #e1e1e1 transparent transparent transparent;
}

body[data-theme="light"] .select2-container--default .select2-selection--single .select2-selection__arrow b 
{
    border-color: #404040 transparent transparent transparent;
}

.sv-question.sv-row__question.sv-row__question--small /* Adjustments for location lat and lang fields */
{
    --sv-element-add-padding-right: 5px !important;
}

.my-list-item .list-item_text /* Dropdown displayed after selecting a letter size. */
{
    font-size: 0.875em !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder /* Dropdown placeholder letter size. */
{
    color: #939ba2;
    font-weight: 400;
    font-size: 0.875em !important;
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice
{
    padding: 0 5px;
    margin : 1px 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice 
{
    margin : 1px 2px;
}

.select2-container--default .select2-selection--multiple
{
    line-height: 28px;
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove
{
    margin-left: 8px;
    float: inline-end;
}

body[data-theme="dark"] .select2-container--default .select2-selection--multiple
{
    border: solid #4e5863 1px;
}

body[data-theme="light"] .select2-container--default .select2-selection--multiple
{
    border: solid #dee2e6 1px;
}

.sv-tagbox__item
{
    border: 1px solid #aaa;
    color: #222e3c !important;
    padding-block: 0em;
}

body[data-theme="dark"] .sv-tagbox__item
{
    background-color: #e1e1e1 !important;
}

body[data-theme="light"] .sv-tagbox__item
{
    background-color: #e4e4e4 !important;
}

.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled)
{
    height: 1.95em;
    padding: .15em;
    padding-inline-end: 1.5em;
}

.sv-tagbox_clean-button 
{
    padding: 6px 5px;
}

.sv-tagbox__item .sv-tagbox__item-text .sv-string-viewer 
{
    color: #222e3c !important; 
}

.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use 
{
    fill: #222e3c !important;
}

.sv-tagbox__item_clean-button-svg 
{
    margin: 4px 6px;
    width: 14px;
    height: 14px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove 
{   
    margin-left: 6px;
    float: inline-end;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice
{
    font-size: 0.875em !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option
{
    font-size: 0.875em !important;
}

.select2-container--bootstrap-5 .select2-selection
{
    font-size: .875em !important;
    padding: .25em 0 .25em .25em !important;
}

body[data-theme=light] .select2-container--bootstrap-5 .select2-selection
{
    border: 1px solid #dee2e6;
}

body[data-theme=dark] .select2-container--bootstrap-5 .select2-selection
{
    border: 1px solid #4e5863;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted 
{
    color: #ffffff !important;
    background-color: #5897fb !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    display: flex
;
    flex-direction: row;
    align-items: center;
    padding: .35em .65em;
    margin: .15rem;    
    font-size: 1rem;
    color: #212529;
    cursor: auto;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice
{
    flex-direction: row-reverse !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove 
{
    width: 10px !important;
    height: 10px !important;
    margin: 4px 6px !important;

}

.custom_form_control::-webkit-file-upload-button 
{
    background-color: #f4f4f4 !important;
    color: rgba(64, 64, 64, 0.5) !important;
    border: 1px solid rgba(64, 64, 64, 0.5) !important;
    border-radius: 1.214em !important;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.3rem 0.85rem;
    line-height: 1.5;
    margin-right: 1em;
}

.custom_form_control::-webkit-file-upload-button:hover 
{
    color: #545658 !important;
    border: 1px solid #545658 !important;
}

body[data-theme=light]  .custom_form_control
{
    background-color: #f4f4f4;
    border: none;
    color: #9D9D9D;
}

body[data-theme=dark]  .custom_form_control
{
    background-color: #a2a8af;
    border: none;
    color: #ffff;
} 

.custom_img_preview
{
    font-size: 16px !important;
}

body[data-theme=light] .custom_img_preview
{
    color: #404040 !important;
}

body[data-theme=dark] .custom_img_preview
{
    color: #f9f5f5 !important;
}

#remove_file_value, #url_remove_file_value, #qa_remove_file_value 
{
    display: none;
}

.sv-checkbox--checked .sv-checkbox__svg 
{
    background-color: #3b7ddd !important;
}

.sv-item__control:focus+.sv-item__decorator 
{
    border-color: #3b7ddd !important;
}

body[data-theme=light] .card-title 
{
    color: #495057 !important;
}

body[data-theme=dark] .card-title 
{
    color: #d3d5d8 !important;
}

.card-subtitle 
{
    color: #939ba2 !important;
}

.alert-message 
{
    font-size: 14px !important;
}

.sv-text 
{
    font-size: 0.875em;
}

body[data-theme=light] div .sv-text 
{
    color: #495057 ;
}

body[data-theme=dark] div .sv-text 
{
    color: #bdc0c5 ;
} 

.sv-footer__prev-btn, .sv-footer__next-btn
{
    color: #3b7ddd !important;
    border: 1px solid #3b7ddd !important;
    background-color: transparent !important;
}

.sv-footer__prev-btn:hover, .sv-footer__next-btn:hover 
{
    color: #fff !important;
    background-color: #3b7ddd !important;
    border-color: #3b7ddd !important;
}

body[data-theme=light] .sv-question__title--error 
{
    background-color: #ffffff;
}

body[data-theme=dark] .sv-question__title--error 
{
    background-color: #222e3c;
}

.btn-close-sm
{
    font-size: 0.8em;
}

.btn-close:focus 
{
    box-shadow: 0 0 0 0.25rem rgb(255, 255, 255);
}

.tl-item {
    border-radius: 3px;
    position: relative;
    display: flex;
}

.tl-item > * {
    padding: 10px;
}

.tl-item:last-child .tl-dot:after {
    display: none;
}

.tl-item.active .tl-dot:before {
    border-color: #448bff;
    box-shadow: 0 0 0 4px rgba(68, 139, 255, 0.2);
}

.tl-dot {
    position: relative;
    border-color: rgba(160, 175, 185, 0.15);
}

.tl-dot:after,
.tl-dot:before {
    content: '';
    position: absolute;
    border-color: inherit;
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.tl-dot:after {
    width: 0;
    height: auto;
    top: 25px;
    bottom: -15px;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    border-radius: 0;
}

.b-primary {
    border-color: #448bff !important;
}

.select2-search--inline
{
    display: contents !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice
{
    margin-bottom: 0rem !important;
}

.sv-footer__complete-btn
{
    border-radius: 0.3rem;
    font-size: 1rem;
    padding: 0.4rem 1rem;
    width: 217px;
}

.sv-file__no-file-chosen {
    display: contents;
}

/* Move Preview button to the left */
#sv-nav-preview.sv-action 
{
    order: -1;
}

/* Push Next button to the right */
#sv-nav-next.sv-action 
{
    margin-left: auto;
}

/* Ensure hidden buttons (like Complete) do not affect layout */
.sv-action--hidden 
{
    display: none !important; 
}     