.ui-draggable-dragging.whenDrag {
    width: 250px !important;
    height: auto !important;
    background: #e2f0ff;
    opacity: 0.8;
    border: 1px solid #ddd;
    z-index: 99999999 !important;
    text-align: right;
    padding: 15px !important;
}

.fg-el-container.ui-draggable-dragging.whenDrag:not(.ui-sortable-helper) {
    width: 250px !important;
    height: auto !important;
    background: #e2f0ff;
    opacity: 0.8;
    border: 1px solid #ddd;
    z-index: 99999999 !important;
    text-align: right;
    padding: 15px !important;
}

.fg-el-container.ui-draggable-dragging.whenDrag:not(.ui-sortable-helper) .toolbarElement {
    display: none;
}

.flex-root {/* height:100vh; */}

.DnnModule-IranDnnBPMSKartable .flex-root, .DnnModule-IranDnnBPMS .flex-root {
    height: 100vh;
}

.DnnModule-IranDnnBPMSFormLoader .content {
    padding: 0;
}

.DnnModule-IranDnnBPMSFormLoader .container-fluid {
    padding: 0;
}

.rtl.aside-fixed.aside-minimize .DnnModule-IranDnnBPMSFormLoader .wrapper {
    padding: 0;
}

.rtl .skin-wrapper-inner .Login {
    margin: 0 !important;
    padding: .375rem .75rem !important;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

header .navbar-brand {
    min-height: 68px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

section.page-name .pagename-style {
    padding: 15px 25px;
}

.breadcrumb-style {
    padding-right: 55px;
}

section.page-name {
    background: #fff;
}

/*line-through;*/
.footer-copyright {
    background: #fff;
}

@media (min-width: 1200px) {
    .skin-wrapper-inner .container, .skin-wrapper-inner .container-lg, .skin-wrapper-inner .container-md, .skin-wrapper-inner .container-sm, .skin-wrapper-inner .container-xl {
        max-width: 1320px;
    }
}

@media (min-width: 992px) {
    .skin-wrapper-inner .container, .skin-wrapper-inner .container-lg, .skin-wrapper-inner .container-md, .skin-wrapper-inner .container-sm, .skin-wrapper-inner .container-xl, .skin-wrapper-inner .container-xxl {
        padding: 0 15px;
    }

    .skin-wrapper-inner .container-fluid {
        padding: 0
    }
}

.jstree-default {
    overflow: auto;
}

select {
    appearance: auto !important;
}

.log-critical {
    color: #8B0000 !important;
}

.log-error {
    color: #ff2626 !important;
}

.log-warning {
    color: #FFA500 !important;
}

.log-information {
    color: #3699ff !important;
}

.log-verbose {
    color: #000000 !important;
}

.log-invalid {
    color: #696969FF !important;
    text-decoration: underline;
}

a.jstree-anchor {
    overflow: auto;
}

.text-left {
    direction: ltr;
}

.text-right {
    direction: rtl;
}

input::placeholder {
    font-style: italic;
}

input:-ms-input-placeholder{
    font-style: italic;
}

input::-webkit-input-placeholder {
    font-style: italic;
}

input::-ms-input-placeholder{
    font-style: italic;
}

.hint{
    margin-left: 4px;
    margin-right: 4px;
    color: orange;
}


::placeholder {
    color: lightgray !important;
    font-style: italic !important;
    font-weight: lighter !important;
}

/* برای مرورگر Firefox */
::-moz-placeholder {
    color: lightgray !important;
    font-style: italic !important;
    font-weight: lighter !important;
}

/* برای مرورگر Chrome قدیمی */
::-webkit-input-placeholder {
    color: lightgray !important;
    font-style: italic !important;
    font-weight: lighter !important;
}

/* برای مرورگر Internet Explorer */
:-ms-input-placeholder {
    color: lightgray !important;
    font-style: italic !important;
    font-weight: lighter !important;
}

/* برای مرورگر Edge */
::-ms-input-placeholder {
    color: lightgray !important;
    font-style: italic !important;
    font-weight: lighter !important;
}

.form-check-label{
    margin-right: 1.5em;
}

/* Searchable dropdown styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    padding: 0!important;
}

.custom-select-wrapper.form-control > div[disabled] {
    background: #e9ecef;
    cursor: not-allowed;
}

.custom-dropdown {
    overscroll-behavior: contain;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    border: 1px solid #ccc;
    max-height: 250px;
    overflow-y: auto;
    cursor: auto;
    padding-top: 4px;
}

.custom-dropdown .option:nth-child(2) {
    margin-top: 8px;
}
.body-no-scroll {
    overflow: hidden;
    height: 100vh;
}


.custom-dropdown {
    max-height: 250px;
    overflow-y: auto;
    position: relative;
    min-width: max-content;
    overflow-x: clip;
}
.optionselected{
    background: #c1ddf9;
}

.custom-dropdown {
    position: relative; /* needed for absolute positioning of pseudo-element */
}

.custom-dropdown input[type="search"] {
    box-shadow: rgb(255 255 255) 0px 0px 0px 8px, rgb(229 241 255 / 65%) 0px 10px 6px -1px, rgb(255 255 255) 0px 8px 0px inset!important;
    position: sticky;
    top: 0;
    margin: 4px 4px 4px 1rem !important;
    width: calc(100% - 1rem - -8px);
    border-radius: 5px !important;
    z-index: 2;
    background-color: white;
    padding: 6px 10px;
}
.custom-dropdown {
    scroll-behavior: smooth;
}

.custom-dropdown .option {
    padding: 8px 12px;
    cursor: pointer;
}
.custom-dropdown .option:hover,
.custom-dropdown .option.bg-light {
    background-color: #c8d2db;
}

.input-group-prepend {
    height: fit-content;
    min-height: 38px;
}
.input-group {
    position: relative;
    width: 100%;
    display: flex;
    /*flex-wrap: nowrap !important;*/
    align-items: stretch;
}
.input-group .custom-select-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}
.custom-select-wrapper .form-control.d-flex.justify-content-between.align-items-center {
    border-bottom-right-radius: 0!important;
    border-top-right-radius: 0!important;
    border-bottom-left-radius: 0.45rem!important;
    border-top-left-radius: 0.45rem!important;
}

.fake-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fake-select-text + i {
    flex-shrink: 0;
}

.custom-select-wrapper i.fa-chevron-down {
    transition: transform 0.25s ease;
}

.custom-select-wrapper i.fa-chevron-down.open {
    transform: rotate(180deg); /* down → up */
}

/* mobile logo */

.header-mobile a img {
    width: 100%;
    max-width: 110px;
}
/* modal css */
.modal.fade.show {
    backdrop-filter: blur(2px);
    background: #2d455e45;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-dropdown {
    z-index: 10070 !important;
}

.select2-selection__rendered{
    text-align: right;
    line-height: 20px; !important;
}

.select2-selection--single {
    height: calc(1.5em + 1.3rem + 2px) !important;
    border-radius: 0 .25rem .25rem 0 !important;
    border: 1px solid rgb(229, 234, 238) !important; 
}
/* switch */
.switch-control {
    margin-bottom: 15px;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch-label {
    margin-left: 10px;
    margin-bottom: 0;
    flex: 1;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;   /* slightly smaller */
    height: 24px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;  /* shorthand for top:0; right:0; bottom:0; left:0 */
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

input:checked + .slider {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.6);
}

input:checked + .slider:before {
    transform: translateX(26px);
}
/* Video Player Themes */
.video-player-element.theme-simple {
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-player-element.theme-glassy {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    -webkit-backdrop-filter: blur(10px);
}

/* Theme Selector Badges */
.theme-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.theme-badge {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #e9ecef;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ced4da;
    font-size: 14px;
}

.theme-badge:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.theme-badge.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Switch Control Improvements */
.switch-control {
    margin-bottom: 15px;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch-label {
    margin-left: 10px;
    margin-bottom: 0;
    flex: 1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Label positioning */
.fg-Label-element {
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

/* video player temes */

/* Video Player Themes */
.video-player-element.theme-simple {
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-player-element.theme-glassy {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    -webkit-backdrop-filter: blur(10px);
}

/* Theme Selector Badges */
.theme-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.theme-badge {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #e9ecef;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ced4da;
    font-size: 14px;
}

.theme-badge:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.theme-badge.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Switch Control Improvements */
.switch-control {
    margin-bottom: 15px;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch-label {
    margin-left: 10px;
    margin-bottom: 0;
    flex: 1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Label positioning */
.fg-Label-element {
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}
.fg-el-placeholder {
    display: flex;
    flex-direction: column;
}

/* Readonly file upload styles - hide interactive elements when parent has disabledInputs */
.disabledInputs .upload-area {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.disabledInputs .add-file-btn {
    display: none !important;
}

.disabledInputs .delete-file-btn,
.disabledInputs .delete-uploader-btn {
    display: none !important;
}

.disabledInputs .upload-content {
    display: none !important;
}

.disabledInputs .dashed-border {
    border: none !important;
}

/* Hide size/type helper text paragraphs inside readonly containers */
.disabledInputs .card .mb-3 > p.text-muted2.small,
.disabledInputs .card .mb-3 p.text-muted2.small,
.disabledInputs .upload-content p.text-muted2.small { display: none !important; }

/* Simplified readonly file presentation */
.file-readonly-row {
    background: #f8f9fa;
    border: 1px solid #e2e5e9;
    border-radius: 6px;
    padding: .5rem .75rem;
    position: relative;
    min-height: 46px;
}
.file-readonly-row .file-readonly-icon {
    margin: 0 .25rem 0 0;
    color: #6c757d;
}
.file-readonly-row .file-readonly-name {
    font-weight: 500;
    color: #343a40;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}
@media (max-width: 576px){
    .file-readonly-row .file-readonly-name { max-width: 200px; }
}
.file-readonly-row .file-readonly-download {
    margin-inline-start: auto;
}
.file-readonly-row .file-readonly-download span { font-size: .75rem; }


/* Custom styles to further restrict video controls */
.video-player-element::-webkit-media-controls-download-button {
    display: none !important;
}

.video-player-element::-webkit-media-controls-overlay-play-button {
    display: block !important;
}

/* Hide fullscreen button in some browsers when disabled */
.video-player-element.no-fullscreen::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.dashed-border {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
}

.dashed-border.required-field {
    border: 2px dashed red!important;
}

.dashed-border:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.dashed-border.drag-over {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-content {
    pointer-events: none;
    z-index: 2;
    text-align: center;
}

.upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.progress-bar {
    width: 0%;
    height: 4px;
    background: #007bff;
    transition: width 0.3s ease;
    border-radius: 2px;
    margin: 0 20px;
}

.preview-container-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.preview-container-modern img,
.preview-container-modern video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-container-modern .file-info {
    text-align: center;
    padding: 10px;
}

.delete-btn-modern {
    background: #dc3545;
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 5px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 4;
}

.delete-btn-modern:hover {
    background: #c82333;
    transform: scale(1.1);
}

.file-upload-wrapper {
    position: relative;
}

.uploaded-file-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.text-muted2{
    color: #4e71f6;
}

/* Hide playback speed UI when disabled - comprehensive approach for different browser implementations */
/* Chrome/Edge - Basic playback rate button */
video[data-playback-rate-enabled="false"]::-webkit-media-controls-playback-rate-button { display: none !important; }

/* Chrome/Edge - Speed in settings menu */
video[data-playback-rate-enabled="false"]::-webkit-media-controls-speed-rate { display: none !important; }

/* Chrome/Edge - Settings menu completely if needed (last resort) */
video[data-playback-rate-enabled="false"]::-webkit-media-controls-panel [aria-label*="setting"],
video[data-playback-rate-enabled="false"]::-webkit-media-controls-panel [aria-label*="Setting"],
video[data-playback-rate-enabled="false"]::-webkit-media-controls-panel button:last-child:not([aria-label*="full"]):not([aria-label*="pip"]) { visibility: hidden !important; }

/* Firefox approach */
video[data-playback-rate-enabled="false"] > div[class*="control"] div[class*="playback"],
video[data-playback-rate-enabled="false"] > div[class*="control"] div[class*="speed"] { display: none !important; }

/* Safari approach */
video[data-playback-rate-enabled="false"]:not(:hover) > :not(:where(*)) { display: none !important; }
video[data-playback-rate-enabled="false"] > div:not([class]) > div:not([class]) > button:nth-of-type(3) { display: none !important; }
video[data-playback-rate-enabled="false"]::-webkit-media-controls-playback-rate-button { display: none !important; }

/* Chrome/Edge - Speed in settings menu */
video[data-playback-rate-enabled="false"]::-webkit-media-controls-speed-rate { display: none !important; }

/* Chrome/Edge - Settings menu completely if needed (last resort) */
video[data-playback-rate-enabled="false"]::-webkit-media-controls-panel [aria-label*="setting"],
video[data-playback-rate-enabled="false"]::-webkit-media-controls-panel [aria-label*="Setting"],
video[data-playback-rate-enabled="false"]::-webkit-media-controls-panel button:last-child:not([aria-label*="full"]):not([aria-label*="pip"]) { visibility: hidden !important; }

/* Firefox approach */
video[data-playback-rate-enabled="false"] > div[class*="control"] div[class*="playback"],
video[data-playback-rate-enabled="false"] > div[class*="control"] div[class*="speed"] { display: none !important; }

/* Safari approach */
video[data-playback-rate-enabled="false"]:not(:hover) > :not(:where(*)) { display: none !important; }
video[data-playback-rate-enabled="false"] > div:not([class]) > div:not([class]) > button:nth-of-type(3) { display: none !important; }
video[data-playback-rate-enabled="false"] > div:not([class]) > div:not([class]) > div { display: none !important; }