.text-warning,
.red,
.notifyproblem,
.completion-expired,
span.flagged-tag,
tr.flagged-tag,
span.flagged-tag a,
tr.flagged-tag a,
.moodle-dialogue-exception .param-stacktrace .stacktrace-line,
.connecting {
  color: #ff7518 !important
}

a.text-warning:hover,
a.red:hover,
a.notifyproblem:hover,
a.completion-expired:hover,
span.flagged-tag a:hover,
tr.flagged-tag a:hover,
.moodle-dialogue-exception .param-stacktrace a.stacktrace-line:hover,
a.connecting:hover,
a.text-warning:focus,
a.red:focus,
a.notifyproblem:focus,
a.completion-expired:focus,
span.flagged-tag a:focus,
tr.flagged-tag a:focus,
.moodle-dialogue-exception .param-stacktrace a.stacktrace-line:focus,
a.connecting:focus {
  color: #e45c00 !important
}

.jFiler-theme-default .jFiler-input{
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
}

.jFiler-theme-default .jFiler-input-button{
  background-color: var(--bs-body-bg) !important;
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  background-image: none !important;
}

.selectize-dropdown,
.selectize-input,
.selectize-input input{
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
}

.navbar-brand .logo img {
  width: 3rem;
  margin: 0px;
}
.navbar-brand .logo{
  padding : 1rem;
}
body  a{
  text-decoration: none;
}
body  a:hover{
  text-decoration: underline;
}

#notification-reader {
    display: none;
    transition: right 0.3s ease-in-out;
}
#notification-reader.active {
    right: 0; /* Move on-screen */
}
#notification-list {
    max-height: 500px; /* Adjust the height as needed */
    overflow-y: auto;
}
.notification-item.unread {
    background-color: var(--bs-light);
}
.notification-item.read {
    background-color: var(--bs-body-bg);
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.notification-item:last-child {
    border-bottom: none;
}

/* because of dark mode */
.navbar{
  background-color: var(--bs-body-bg);
  height: 45px;
}
.navbar .wx-nav {
    /* color: rgba(0, 0, 0, .5); */
    /* color: #555; */
    color: var(--bs-body-color);
    cursor: pointer;
    font-size: 0.80rem;
    font-weight: 600;
    text-wrap: nowrap;
}
.navbar .nav-link {
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
    text-wrap: nowrap;
    padding: .4rem;
}

#page-header .breadcrumb-item+.breadcrumb-item{
  padding-left: 0px;
}
.breadcrumb-item{
  font-size: 0.8rem;
}

/* .btn, body #page .btn{
  margin: 0px;
  font-size: 0.7rem;
  letter-spacing: .08rem;
  height: 2rem;
  padding: 0 0.7rem;
} */
#page{
  margin-top: 0px !important;
  padding-top: 0px !important;
}
.nav-right-part{
  display: inline-flex;
  max-height: 50px;
}
.nav-right-part .nav-link li{
  font-size: 1rem;
  height: 1rem;
}



.top_page_other_pages{
  cursor: pointer;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    margin-top: 100px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
}
.login-container img {
    max-width: 70% ;
    height: auto ;
    border-radius : 15px;
}

.loginpage {
  width:100%;
  height: 100% ;
  background-position: top center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  position: fixed;
}


/* if activated makes problem with many filters  */
/* .wx-view-search-bar .input-group {
  /* height: 2.0rem ;
  max-height: 2.25rem ; 
} */
.wx-view-search-bar .selectize-control.multi .selectize-input>div {
  padding: 0px !important;
  border: 0px !important;
  margin: 0px !important;
}
.wx-view-search-bar .input-group .input-group-append{
   /* search btns */
  max-height: 100%;
}

/* .wx-view-search-bar .input-group .selectize-input{
  min-height : 100% !important ;
  border: 1px solid #ccc !important;
} */

body #page .wx-view-search-bar .selectize-control{
   border:0px; /* overwrite css36 */
}


.wx-view-search-bar .input-group select{
  height : auto !important ;
}


 .wx-view-search-bar .selectize-control{
  margin-left: 0px !important;
  padding: 0px !important;
}

/* Custom styles go here */

/* Dark mode */
body.dark-mode {
  background-color: #212529;
  color: #f8f9fa;
}

.navbar-dark {
  background-color: #343a40;
}

.bg-dark {
  background-color: #343a40;
}

/* Light mode */
body.light-mode {
  background-color: #f8f9fa;
  color: #212529;
}

.navbar-light {
  background-color: #f8f9fa;
}

.bg-light {
  background-color: #f8f9fa;
}
.daterangepicker{
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}
.daterangepicker .ranges li:hover{
  background: var(--bs-body-color);
  color: var(--bs-body-bg);
}/* Light theme */
:root,
[data-bs-theme="light"] {
    --jbox-modal-bg: #ffffff;
    --jbox-modal-fg: #212529;
    --jbox-modal-border: #dee2e6;
    --jbox-overlay-bg: rgba(0, 0, 0, 0.45);
    --jbox-title-bg: #f8f9fa;
    --jbox-close-fg: #6c757d;
}

/* Dark theme */
[data-bs-theme="dark"] {
    --jbox-modal-bg: #1f1f1f;
    --jbox-modal-fg: #e9ecef;
    --jbox-modal-border: #343a40;
    --jbox-overlay-bg: rgba(0, 0, 0, 0.7);
    --jbox-title-bg: #2a2a2a;
    --jbox-close-fg: #cfd3d8;
}

/* Same jBox rules as above… */
.jBox-Modal .jBox-container, .jBox-Confirm .jBox-container , .jBox-Tooltip .jBox-container {
    background: var(--jbox-modal-bg) ;
    color: var(--jbox-modal-fg) ;
    border: 1px solid var(--jbox-modal-border) ;
}

 .jBox-Modal .jBox-title, .jBox-Confirm .jBox-title ,
.jBox-Tooltip .jBox-title{
    background: var(--jbox-title-bg) !important;
    color: var(--jbox-modal-fg) !important;
    border-bottom: 1px solid var(--jbox-modal-border) !important;
}

 .jBox-Modal .jBox-content, .jBox-Confirm .jBox-content ,
.jBox-Tooltip .jBox-content{
    color: var(--jbox-modal-fg) ;
    background: var(--jbox-modal-bg);
}

 .jBox-Modal .jBox-closeButton, .jBox-Confirm .jBox-closeButton ,
.jBox-Tooltip .jBox-closeButton{
    color: var(--jbox-close-fg) ;
    opacity: .9;
}

 .jBox-Modal .jBox-closeButton:hover, .jBox-Confirm .jBox-closeButton:hover ,
.jBox-Tooltip .jBox-closeButton:hover{
    opacity: 1;
}

.jBox-Modal .jBox-overlay, .jBox-Confirm .jBox-overlay ,
.jBox-Tooltip .jBox-overlay{
    background: var(--jbox-overlay-bg) ;
}.navbar:after{
  content: "";
  background: linear-gradient(to right,#7cab24 50%,#1f2f57 50%) ;
  top: 0;
  display: block;
  height: 0.25rem;
  position: absolute;
  right: 0;
  width: 100%;

  top: 90%;
}
.btn-group{
      margin: 0px;
        padding: 0px;
        border: 0px;
        box-shadow: none;
}

.btn:before{
  font-weight: 400;
}

.dir-rtl button{
  margin:0px;
}

.btn-group>.btn, .btn-group>.dropdown-menu, .btn-group>.popover{
  font-size: 11px;
}
.btn-sm, .btn-group-sm > .btn {
    padding: 3px 7px;
}

.dt-buttons .btn-group .btn{
  background: var(--bs-body-bg) !important;
  border: 1px solid var(--wx-border-color) !important;
  color: var(--bs-body-color) !important;
}

.dataTable .btn-group{
  border: 1px solid var(--bs-border-color) !important;
}

.dataTable a.btn{
  text-transform: capitalize !important;
}

.wx_record_btn_group{
  display: inline-flex !important;
  float:right;
}
.dir-rtl .wx_record_btn_group{
  left: 0px;
  right: unset;
}

#fgroup_id_rep_btns .fitem{
  display:inline-flex;
}
#fgroup_id_rep_btns .fitem .btn{
  font-size: 0.7rem !important;
}

/* pagination bootstrap fix button active */
.active>.page-link,
.page-link.active{
  z-index: 1 !important;
}
.fc-view-container td {
    overflow: visible !important;
}
.fc-view-container .closeon {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 20;
    overflow: visible;
}
.fc-toolbar.fc-header-toolbar {
    margin-bottom: 0px !important;
}
/* .fc-view-container table {
    margin-top: 0px;
} */
.fc-view-container .wxfcicon {
    padding: 3px;
    color: white;
    float: left;
}
.fc-external-events .fc-event {
    margin-bottom: 3px;
}
.fc-event .user_picture_div {
    position: absolute;
    top: -1px;
    right: 0;
    z-index: 2;
}

.fc-event .user_picture_div .userpicture {
    width: 16px !important;
    padding: 0px;
    margin: 0px;

}
.fc-content .fc-time,
.fc-content .fc-title {
    color: #fff;
}
/* .fc-toolbar .fc-state-active,
.fc-toolbar .ui-state-active {
    z-index: 1 !important;
} */

body #page .fc-header-toolbar .btn{
    font-size: 11px;
    margin-left: .75em;
}
body #page .fc-header-toolbar .btn-group .btn{
    margin-left: 0em;
}

.ext_events_list .fc-event{
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    background-color: #f8f9fa;
    color: #212529;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

.show-more{
  cursor: pointer;
  text-align: center;
  font-size: .7rem;
  margin: .5rem;
  opacity: .5;
}
.less-height{
  height: 250px;
  overflow: hidden;
}
.auto-height{
  height: auto;
}

.cards tbody tr {
    float: left;
}
.cards tbody td {
    display: block;
    width:20%;
}

.wxcard .card-header{
  background-color: #f5f5f5;
  border-bottom: 1px solid #f1f1f1;
  border-radius: 4px;
}
.wxcard .card-content{
  overflow-wrap: break-word;
  background: #fff ;
}
.wxcard .card-footer{
  border-top:none;
}

.fa-cover{
  font-size: 5rem;
  text-align: center;
}

.wxcard audio , .wxcard video {
  width: 100%;
  margin: 0%;
}

.wxcard .user_picture_div {
  position: absolute;
  right: -13px;
  top: -5px;
}

.wxcard .wx_record_btn_group{
  opacity: 0;
  position: absolute;
  bottom: 0px;
  right: 0px;
}
.wxcard .card-img-top{
  /* height: 6vw; */
  object-fit: contain;
}

.masonry_grid_item{
  background: #FFF;
  min-width:272px;
  /* max-width:272px;
  border:1px solid #DDD; */
  border-radius:5px;
  padding:0px;
  /* margin:5px; */
  /* height: 250px;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overflow-anchor: none;
overscroll-behavior-y: contain; */
}
.masonry_grid{
  position: relative;
  /* background: #F2F4F7; */
  /* margin-left: 4rem; */

}
.masonry_grid .wxcard{
  box-shadow: 0px 0px 3px #ddd;
  min-height: 120px;
  margin: 1rem;
}

.masonry_grid_item h5{
    border-radius: 5px 5px 0 0;
    padding: 5px;
    font-weight: 600 !important;
    text-align: center;
    width: 95%;
    text-transform: capitalize;
}

.cards-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f009" !important;
}.wx_dash{
  /*float:left;*/
  min-height:260px;
  min-width:260px;
  width:260px;
  /* direction:ltr; // Canavas not working well with RTL */
}

.wxchart .card{
  box-shadow: 0 0 2px 0px #555;
  margin: 1.5rem;
  border-radius: 5px;
  padding: 0.5rem;
}
.navbar .popover-region{
    margin-right: 0px !important;
}

/* flag the icon as connected */

.socket-connected.connected {
    background-color: #0fb635 !important;
    border-radius: 50%;
    padding: 1px;
    width: 5px;
    height: 5px;
    top: 15%;
    left: 65%;
    animation: socket-flash 1s infinite alternate;
}

@keyframes socket-flash {
    0% {
        background-color: #0fb635;
        box-shadow: 0 0 0px 1px #0fb63566;
    }
    100% {
        background-color: #579657;
        box-shadow: 0 0 1px 1px #0fb635cc;
    }
}

/* Chat container and layout */
.chat-container {
    position: fixed;
    bottom: 0;
    right: 0px;
    z-index: 1002;
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    pointer-events: none;
    padding: 0 20px;
    /* max-width: calc(100vw - 360px); / */
    overflow-x: auto;
}

.chat-container > * {
    pointer-events: auto;
}

.chat-container .chat-log.hover {
    border: 2px dashed blue;
    background-color: #f0f0f0;
}

.chat-container .wx_chat_icons {
    display: grid;
}

.chat-container .chat-img {
    width: 100%;
    cursor: zoom-in;
}

.chat-container .chat-video {
    width: 200%;
    cursor: pointer;
}

/* Chat box styles */
.chat-box {
    position: relative;
    width: 300px;
    /* height: 400px; */
    max-height: 70vh;
    bottom: 0px; 
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-right: 20px;
    pointer-events: auto;
    flex-shrink: 0; /* Prevent chat boxes from shrinking */
}

.chat-box.active {
    display: flex;
    z-index: 1002;
}

.chat-box.minimized {
    height: 45px; /* Height of the header */
}

.chat-box.minimized .messages-container,
.chat-box.minimized .chat-input-container {
    display: none;
}

.chat-box:first-child {
    margin-right: 0;
}

.chat-box, 
.chat-box * {
    pointer-events: auto;
}

/* Chat message styles */
.chat-message {
    max-width: 70%;
    margin: 1px;
    padding: 2px 0px;
    border-radius: 15px;
    position: relative;
    clear: both;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    max-width: 90%;
}

.chat-message.sent {
    float: right;
    color: #333;
    margin-left: 20%;
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-message.received {
    float: left;
    color: #333;
    margin-right: 20%;
    margin-right: auto;
}

.chat-message.highlighted {
    animation: highlight-message 2s ease;
}

/* Message content styling */
.chat-container .message-content {
    word-wrap: break-word;
    padding: 0 4px;
    position: relative;
}

.chat-container .message-content::before {
    display: none;
}
.user-list .dots-button{
    padding: 5px 10px;
    border: 1px solid transparent;
}
.user-list .dots-button:hover{
    border: 1px solid #ddd;
}
/* Message metadata */
.message-meta {
    font-size: 9px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
    color: #95a5a6;
}


/* Reply functionality */
.message-actions {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

/* Add hover state to show message actions */
.chat-message:hover .message-actions {
    opacity: 1;
}

.sent .message-actions {
    left: -30px;
}

.received .message-actions {
    right: -30px;
}

/* Reply button */
.btn-reply {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #6c757d;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-reply:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

/* Chat input container */
.chat-input-container {
    padding: 10px;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    flex-shrink: 0;
}

/* Reply preview */
.reply-preview {
    padding: 8px 12px;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.reply-preview-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9em;
}

.reply-text {
    color: #495057;
    font-size: 0.9em;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-left: 8px;
    border-left: 2px solid #17a2b8;
}

/* Replied message in chat */
.replied-message {
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-box.maximized{
    /* width: 70%;
    position: fixed;
    z-index: 1002;
    background: #fff;
    left: calc(20%); */
    height: 90%;
    width: 80%;
    position: fixed;
    z-index: 1002;
    background: #fff;
    left: calc(10%);
    top: 15%;
    box-shadow: 0px 0px 5px 2px #555;
}

.replied-message:hover {
    background: rgba(0,0,0,0.05);
}

.replied-message .reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2196f3;
    font-size: 0.85em;
    margin-bottom: 4px;
}

.replied-message .reply-header i {
    font-size: 12px;
}

.replied-message .reply-text {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 18px;
    border-left: 2px solid #2196f3;
}

/* Sent message with reply styling */
.chat-message.sent .replied-message {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 6px;
}

.chat-message.sent .replied-message .reply-header {
    color: #333;
}

.chat-message.sent .replied-message .reply-text {
    color: #333;
    border-left-color: #2196f3;
    opacity: 0.8;
}
.chat-container .message-content{
    border-radius: 12px;
    padding: 8px;
    max-width: 75%;
}
.chat-container .chat-message.sent .message-content {
    background: #d3e7fd;
    border-bottom-right-radius: 3px;

}
.chat-container .chat-message.received .message-content {
    background: var(--bs-light);
    border-bottom-left-radius: 3px;
}

/* Chat header */
.chat-header {
    padding: 4px;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
    flex-shrink: 0;
}
.message-reaction{
    color: #95a5a6;
    background-color: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    position: absolute;
    bottom : -10px;
    left: -10px;
    border-radius: 43%;
    padding: 3px;
    box-shadow: 1px 1px 1px var(--bs-border-color);
    font-size: 8px;
}
/* left because its alwayes sent message */
.message-internal-user {
    position: absolute;
    top: 14px;
    font-size: 8px;
    left: 0px;
    color: #ccc;
}
/* right because its alwayes received message */
.message-group-contact{
    position: absolute;
    bottom: 27px;
    font-size: 8px;
    right: 0px;
    color: #ccc;
    max-width: 22%;
}
.chat-header .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0; /* Enable text truncation */
    font-size: 12px;
    margin: 5px;
}

.chat-header .user-picture , .chat-container .user-picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-header .user-name {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.chat-header .user-status {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.chat-header .user-status .fa-circle {
    font-size: 8px;
}

.chat-header .chat-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.chat-header .btn-audio-call,
.chat-header .btn-video-call,
.chat-header .btn-minimize,
.chat-header .btn-maximize,
.chat-header .btn-close {
    padding: 4px;
    border: none;
    background: none;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.chat-header .btn-close:hover { color: #e74c3c; }
.chat-header .btn-audio-call:hover { color: #28a745; }
.chat-header .btn-video-call:hover { color: #2196f3; }
.chat-header .btn-minimize:hover { color: #2c3e50; }

/* Chat body */
.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Messages container */
.messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: calc(100% - 90px); /* Account for header and input */
    min-height: 0; /* Enable proper flexbox scrolling */
}

.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #ced4da;
}

/* Chat footer */
.chat-footer {
    padding: 10px;
    border-top: 1px solid var(--bs-border-color);
    min-height: 60px;
    flex-shrink: 0;
    background: var(--bs-body-bg);
}

.chat-footer .input-group {
    display: flex;
    gap: 5px;
}

/* Input wrapper */
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bs-body-bg);
    border-radius: 20px;
    padding: 4px 8px;
    position: relative;
}

.input-wrapper.has-content .btn-send {
    display: flex;
}

.input-wrapper.has-content .btn-voice {
    display: none;
}

/* Chat input */
.chat-input {
    resize: none;
    flex: 1;
    border: none;
    background: none;
    padding: 8px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 20px;
    outline: none;
    margin: 0;
    width: auto !important;
    padding: 7px;
    height: 100% !important;
    max-width: 80%;
}

.message-status {
    display: inline-block;
    
    font-size: 12px;
}

.message-status .fa-check {
    color: #95a5a6;
}

.message-status .fa-check-double {
    color: #95a5a6;
}

.message-status .text-primary {
    color: #3498db !important;
}

/* Button styles */
.btn-icon {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #495057;
}

.btn-voice,
.btn-send,
.btn-attachment {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--bs-body-color);
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.btn-voice:hover,
.btn-send:hover,
.btn-attachment:hover {
    background: var(--bs-light);
    color: var(--bs-body-color);
}

.btn-send {
    color: var(--bs-primary);
    display: none;
}

/* User list container */
.user-list-container {
    position: relative;
    right: 20px;
    bottom: 0;
    width: 300px;
    max-height: 70vh;
    background: var(--bs-body-bg);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    min-height: 70vh;
    border: 1px solid var(--bs-border-color);
}

.user-list-container.active {
    display: flex;
}

/* User list header */
#user-list-header {
    padding: 12px 15px;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-list-title {
    font-weight: 500;
    color: var(--bs-body-color);
    font-size: 14px;
    margin: 0;
}

/* User list */
#user-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: var(--bs-body-bg);
}

#user-list::-webkit-scrollbar {
    width: 6px;
}

#user-list::-webkit-scrollbar-track {
    background: transparent;
}

#user-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

#user-list::-webkit-scrollbar-thumb:hover {
    background: #ced4da;
}

/* User search */
.chat_users_search-wrapper {
    padding: 10px;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.chat_users_search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.chat_users_search:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.1);
}

/* User item */
.winix-user {
    padding: 8px 8px !important;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* User avatar */
.user-avatar {
    position: relative;
    margin: 0;
    width: 30px;
    height: 30px;
}

.user-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 4px;
}
.chat-icon{
    position: absolute;
    left: 50%;
    top: 3%;
    padding: 0px 6px;
    border-radius: 0% 0% 25% 25%;
    background: #ddd;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    font-size: 10px;
}
/* User status */
.user_status {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
    color: #95a5a6;
    opacity: 0.7;
}

.user_status .fa-circle {
    font-size: 8px;
}

.user_status.online , .user_status.online .fa-circle {
    color: #28a745 !important;
    opacity: 1 !important;
}


/* User info */
.user-info {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.user-name {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #95a5a6;
}

/* Badge */
.badge-container {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.badge {
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
    background: #17a2b8;
    color: white;
    border-radius: 10px;
}

/* Time display */
.user-info time {
    font-size: 0.65em;
    color: #6c757d;
}

.chat-last-access-user {
    font-size: 11px;
    color: #95a5a6;
    white-space: nowrap;
    margin-left: auto;
}

/* Close button */
.chat-box-close-btn {
    cursor: pointer;
    padding: 4px 8px;
    color: #95a5a6;
    transition: color 0.2s;
    font-size: 16px;
    border-radius: 4px;
}

.chat-box-close-btn:hover {
    color: #e74c3c;
    background: rgba(0,0,0,0.05);
}

/* Voice recording styles */
.recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 20px;
    color: #dc3545;
    animation: pulse 1.5s infinite;
}

.recording-indicator span {
    font-size: 14px;
    color: #666;
}

.recording-indicator .btn-stop-recording {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.recording-indicator .btn-stop-recording:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Audio message styling */
.audio-message {
    width: 170px;
    max-width: 100%;
}

.audio-message audio {
    width: 160%;
    height: 36px;
    border-radius: 18px;
}

.audio-message audio::-webkit-media-controls-panel {
    background: #f8f9fa;
}

.sent .audio-message audio::-webkit-media-controls-panel {
    background: rgba(255,255,255,0.1);
}

.audio-message audio::-webkit-media-controls-current-time-display,
.audio-message audio::-webkit-media-controls-time-remaining-display {
    color: #666;
}

.sent .audio-message audio::-webkit-media-controls-current-time-display,
.sent .audio-message audio::-webkit-media-controls-time-remaining-display {
    color: rgba(255,255,255,0.9);
}

/* Call container */
#call-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
}

#call-container.active {
    display: flex;
}

/* Floating call controls */
.floating-call-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 10px;
    z-index: 1999;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 220px;
}

.floating-call-controls.active {
    display: flex;
}

.floating-call-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-call-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-call-title .call-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #28a745;
}

.floating-call-title .call-status.audio-only {
    background: #17a2b8;
}

.floating-call-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.floating-call-buttons button {
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
}

.floating-call-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.floating-call-buttons button.active {
    background: #2196f3;
}

.floating-call-buttons button.muted {
    background: #dc3545;
}

.floating-call-buttons button.end-call {
    background: #dc3545;
    grid-column: span 2;
}

.floating-call-buttons button.end-call:hover {
    background: #c82333;
}

.floating-call-duration {
    color: white;
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
}

/* Font Awesome icons */
/* .fa {
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
} */

.fa-smile:before { content: "\f118"; }
.fa-microphone:before { content: "\f130"; }
.fa-paper-plane:before { content: "\f1d8"; }
.fa-phone:before { content: "\f095"; }
.fa-video:before { content: "\f03d"; }
.fa-minus:before { content: "\f068"; }
.fa-times:before { content: "\f00d"; }

.chat-actions .fa {
    font-size: 14px;
}

.btn-audio-call .fa-phone {
    transform: rotate(90deg);
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes highlight-message {
    0% { background-color: rgba(33, 150, 243, 0.2); }
    100% { background-color: inherit; }
}

/* Emoji picker styles */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
    margin-bottom: 8px;
    width: 280px;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.emoji-item:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* Button styles */
.btn-emoji {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.btn-emoji:hover {
    color: #495057;
    background-color: rgba(0,0,0,0.05);
}

/* Input wrapper adjustments */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bs-body-bg);
    border-radius: 20px;
    padding: 1px;
}

/* Scrollbar styles for emoji picker */
.emoji-picker::-webkit-scrollbar {
    width: 6px;
}

.emoji-picker::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-picker::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.emoji-picker::-webkit-scrollbar-thumb:hover {
    background: #ced4da;
}

/* Call notification */
.call-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    overflow: hidden;
    animation: slide-in 0.3s ease;
}

/* Calling notification (outgoing call) */
.call-notification.calling {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
}

.call-notification.calling .call-type {
    color: #17a2b8;
    animation: pulse 1.5s infinite;
}

.call-notification.calling .btn-end-call {
    background: #dc3545;
    color: white;
    width: 100%;
}

.call-notification.calling .btn-end-call:hover {
    background: #c82333;
}

.call-notification-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.caller-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.caller-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.caller-details {
    flex: 1;
}

.caller-name {
    font-weight: 500;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.call-type {
    font-size: 13px;
    color: #6c757d;
}

.call-notification-actions {
    display: flex;
    padding: 10px;
    gap: 10px;
}

.call-notification-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-accept-call {
    background: #28a745;
    color: white;
}

.btn-accept-call:hover {
    background: #218838;
}

.btn-reject-call {
    background: #dc3545;
    color: white;
}

.btn-reject-call:hover {
    background: #c82333;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Highlight dropzone when dragging files over it */
.chat-box.hover {
    border: 2px dashed #2196f3 !important;
    background-color: rgba(33, 150, 243, 0.1) !important;
}

/* Confirmation message for file upload */
.upload-confirmation {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Voice Preview Container and Controls */
.voice-preview-container {
    width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 5px;
}

.voice-preview-container audio {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
}

.voice-preview-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-send-voice, .btn-cancel-voice {
    flex: 1;
    border: none;
    padding: 8px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-send-voice {
    background-color: #28a745;
    color: white;
}

.btn-send-voice:hover {
    background-color: #218838;
}

.btn-cancel-voice {
    background-color: #dc3545;
    color: white;
}

.btn-cancel-voice:hover {
    background-color: #c82333;
}

/* Typing indicator styles */
.status-text.typing {
    color: #2196f3;
    font-style: italic;
    font-size: 12px;
    display: inline-block;
    animation: typing-pulse 1.4s infinite;
}

@keyframes typing-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
.last_message_text {
    font-size: .5em;
}/* fix dashboard padding */
.pagelayout-mydashboard #region-main{
  padding: 1.25rem;
}

.dashboard_search_container{
  text-align: center;
}
.dashboard_search_container #dashboardlinks_search {
  border-radius: 5px ;
  border:1px solid #ddd ;
}

.dashboardlinks{
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  position: relative;
  /* margin: 20px; */
}
.dashboardlinks .dash_other_pages{
  cursor: pointer;
  position: absolute;
  padding: 0.5rem;
  /* transition: none; */
  opacity: .2;
  float: left;
  top: 2%;
  right: 8%;
  transition: all 0.3s ease 0s;
  /* z-index: 5 ; // conflict with chat */
  z-index: auto ;
}

.dashboardlinks .wxicon:hover .dash_other_pages:before{
  content: "\f0d7" !important;
}

.dashboardlinks .wxicon{
  margin-left: 0;
  position: relative;
}
.dashboardlinks .wxicon a{
  position: relative;
}
.dashboardlinks .wxicon {
    padding: 10px 0;
    width: 33.33333333%;
}
@media (min-width: 576px) {
  .dashboardlinks .wxicon {
    width: 25%;
 }
}
@media (min-width: 768px){
  .dashboardlinks .wxicon {
   width: 20%;
  }

}
@media (min-width: 970px){
  .dashboardlinks .wxicon {
    width: 16%;
  }
}
.dashboardlinks .wxicon {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3%;
  text-decoration: none;
  text-align: center;
  outline: none;
  transition: all 0.3s ease 0s;
}
.dashboardlinks .dashlabel{
  /* text-shadow: 2px 2px 7px #bbb; */
    font-weight: 500;
    font-size: .90rem;
    text-transform: capitalize;
}
.dashboardlinks .wxicon .dashicon.small{
  font-size: 1.5rem;
  border-radius: 10% 10% 50%;
}
.dashboardlinks .wxicon .dashicon{
  /* font-size: 40px; */
  font-size: 2.5rem;
  position: relative;
  width: 80%;
  /* width: 70px; */
  max-width: 70px;
  overflow: hidden;
  margin: auto;
  border-radius: 10%;
  transition: all 0.3s ease 0s;
  box-shadow: 0 8px 0 -10px var(--bs-shadow-color);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--wx-border-color);
  padding: 8px;
}
.dashboardlinks .wxicon .dashicon:hover{
box-shadow: 0 8px 15px -10px var(--bs-shadow-color);
transform: translateY(-1px);
}
.dashboardlinks .wxicon .dashiconlabel{
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 4px 0;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

.dashboard-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f200" !important;
}

.wxnumbercard h5{
  text-align: left;
}
div.dts div.dt-scroll-body table, div.dts div.dataTables_scrollBody table{
    z-index: 0 !important;
}
table.dataTable thead tr>.dtfc-fixed-start,
table.dataTable thead tr>.dtfc-fixed-end,
table.dataTable tfoot tr>.dtfc-fixed-start,
table.dataTable tfoot tr>.dtfc-fixed-end{
    z-index: 0 !important;
}
.dataTable{
    margin-bottom: 2rem;
    box-shadow: 0px 0px 2px 1px var(--bs-border-color);
    border-radius: 8px;
}

table.dataTable thead>tr>th div.dt-column-header span.dt-column-title,
table.dataTable thead>tr>th div.dt-column-footer span.dt-column-title,
table.dataTable tfoot>tr>th div.dt-column-header span.dt-column-title,
table.dataTable tfoot>tr>th div.dt-column-footer span.dt-column-title
{

    white-space: nowrap;
    /* white-space: break-spaces; */
}

div.dts tbody td{
  white-space: normal !important;
}

.table>:not(caption)>*>*{
  padding: .3rem 0.3rem !important;
}
table.dataTable td:first-child{
  padding: .3rem 0.5rem !important;
}

table.dataTable .img-thumbnail{
  width: 1.4rem;
  margin: 0px 0.5rem 0px 0px;
}

table.dataTable.display tbody tr>.sorting_1{
  line-height: inherit;
  background-color:transparent !important;
}

table.dataTable .group{
  font-weight: bold;
}

table.dataTable thead th{
  border-bottom: 2px solid #dee2e6 !important;
}

.datatable td , .datatable tr{
  overflow: visible !important ;
  font-size:12px;
}
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th, .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td, .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th, .dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td{
  white-space: inherit;
  overflow-wrap: anywhere;
  /*overflow: visible;*/
}

.dataTables_length select{
  width: auto;
}

div.dt-button-collection{
  max-height: 300px !important;
  overflow: auto !important;
}

.datatable_as_selector thead{
   display:none;
}

table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before{
color: #000 !important;
border-radius: none !important;
box-shadow: none !important;
font-family: FontAwesome !important;
font-size: 20px !important;
content: "\f0dd" !important;
background-color: transparent !important;
text-shadow: 0px 2px 3px #000;
}
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before{
  content: "\f0de" !important;
  background-color: transparent !important;
}

div.DTS div.dataTables_scrollBody table{
  z-index: 1 !important;
}

.datatable-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f039" !important;
}

/* On Fly Editing */
.on_fly{
  border:0px;
  background:none;
   /* border-bottom:1px solid #ddd; */
  /*width:100px;*/
  /* width:100%; */
  height:100%;
  margin:0px;
  max-width: 100%;
}
.on_fly{
  border:1px dashed transparent;
}
table.dataTable tbody tr:hover .on_fly{
  border-bottom:1px solid #aaa;
}

.empty_on_fly_field{
  opacity: .2;
  /* border:1px dashed #ddd !important; */
  /* border-radius: 5px; */
  font-style: italic;
  font-size: .6rem;
}
.table > tr:hover .empty_on_fly_field {
  text-align: center;
  border:1px dashed #ddd;
  border-radius: 5px;
}
.table > tr:hover .empty_on_fly_field:after{
  content: "\f067" !important;
  font :normal normal normal 14px/1 FontAwesome;
}

.on_fly_popup{
  height: 20px;
  min-width: 50%;
  display: inline-block;
  border:1px dashed transparent;
  padding-left: 5px;
  padding-right: 2px;
  cursor: pointer;
}

table.dataTable td .comment{
  padding:2px;
  text-align:initial;
  color:#555;
  font-size:11px;
}
table.dataTable td .comment:not(:empty) {
    border:1px solid #ddd;
}

table.dataTable tbody tr:hover .on_fly_popup{
  border:1px dashed #ddd;
  border-radius: 5px;
}
table.dataTable tbody tr:hover .on_fly_popup:after{
  content: " \f040";
  color:#aaa;
  font :normal normal normal 14px/1 FontAwesome;
  position: absolute;
}
.onflychanged{
  background: orange;
}

table .wx_record_link{
  width:100%;
  height:100%;
  cursor: pointer;
  display: block;
  background-color: unset !important;
}

table .link_sup_label  {
  color:red;
  font-size:100%;
  position: absolute;
  top: 6px;
  right: 1px;
  background: #fff;
  font-weight: bold;
}

table .dropdown-menu{
  left:auto;
  right: 0;
}
.dir-rtl table .dropdown-menu{
  left:0;
  right: auto !important;
}

.generaltable .dropdown-menu li a , .dataTable .dropdown-menu li a {
  padding: 3px 14px;
  cursor: pointer;
}

.dir-rtl .generaltable .dropdown-menu li a , .dir-rtl .dataTable .dropdown-menu li a {
  text-align: right;
}

.generaltable{
  word-break: keep-all;
}

.generaltable td {
    overflow: visible;;
}

table td{
      width:auto;
      /* max-width: 160px; // make problem with attendance lists in m3.6 */
      overflow: visible;  /* was hidden */
}

.dir-rtl .table th , .dir-rtl .table td{
  text-align: right;
}

.dataTable .card-img-top{
  max-width: 5rem;
}.jBox-container  .dropdown-menu {
  max-height: 350px;
  position: absolute;
  top: auto; /* Remove top positioning */
  left: auto; /* Remove left positioning */
  right: 4px; /* Adjust right positioning */
  bottom: calc(100% - 260px); /* Adjust bottom positioning */
  transform: none; /* Remove transform */
  will-change: auto; /* Remove will-change */
}

.sql_generator .dropdown-menu {
  overflow-y: auto;
  z-index: 9999;
}
.sql_generator .dropdown-menu a , .sql_generator .dropdown-menu li {
  z-index: initial;
  /* position: relative; */
}

.dropdown-tree .grouping  , .dropdown-tree .calculate {
  float : right ;
  display: none ;
}
.dropdown-tree .grouping.visible  , .dropdown-tree .calculate.visible {
  display: unset ;
}
/* .dropdown-tree a{
  width: 85% ;
} */

.dropdown-menu{
      box-shadow: 0 0 2px;
}

.dropdown-item:focus,
.dropdown-item:hover,
.dropdown-item:active {
  text-decoration: none;
}
.dropdown-menu .submenu  li {
  padding: 2px 10px ;
  cursor:pointer;
  display: block;
}
.dropdown-menu .submenu  a , .dropdown-menu .submenu  span {
  font-size: 10px;
}

.jBox-container  .activities_menu .dropdown-item{
 font-size: .9rem ;
 white-space: initial;
}
.jBox-container  .activities_menu .dropdown-item p , .jBox-container  .activities_menu .dropdown-item small{
 white-space: initial;
}

.user_picture_div{
  cursor: pointer;
  width: fit-content;
}
.jBox-container .dropdown-item {
  font-size: 13px;
  padding: .1rem .1rem ;
  cursor: pointer;

}
.jBox-container .dropdown-item a{
  /* line-height: 5px; */
  color: var(--bs-body-color);
}
.jBox-container .dropdown-item .btn{
  padding: 0px;
  font-size: 10px
}
.jBox-container .divider{
  border-bottom: 0.1px solid #dee2e6;
   margin: 5px 0px ;
}

.list-group-compact{
  padding: 0px;
  margin: 0px;
}
.list-group-item{
  cursor: pointer;

}
.list-group-compact .list-group-item{
    padding: 5px;
}
.list-group-compact .list-group-item:hover{
    color:#fff;
    background:#555;
    box-shadow: inset 1px;
}

.wxactivitieslist{
  max-width: 100%;
}
.wxactivitieslist b{
  color: #333;
  font-size: .7rem;
  background-color: var(--bs-body-bg);
  display: block;
  padding: 0.2rem;
}
.wxactivitieslist .dropdown-item{
  font-size: .8rem;
text-overflow: ellipsis;
overflow: hidden;
  border-bottom: 0.1px solid #eee;
cursor: pointer;
}
.wxactivitieslist .more{
  text-align:center;
  display:block;
  font-size: .7rem;
}

.navbar .nav li.dropdown>.dropdown-toggle .caret{
  display: none ;
}

.activity-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f0e7" !important;
}

.map-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f041" !important;
}

.composite-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f0db" !important;
}

.gantt-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f0ae" !important;
}

.calendar-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f073" !important;
}
.cke_textarea_inline{
  padding: 1rem;
}
.cke_textarea_inline li{
  list-style:unset;
}

.cke_textarea_inline{
    min-height: 100px;
}

/* CKEDITOR */
.cke_editable{
  border: 1px solid #ddd;
  width: 100%;
}

.cke_editable p{
  /* margin-bottom: .1rem; */
  margin-bottom: initial;
  font-size: .8rem;
}

.ck-editor__editable_inline {min-height: 400px;}
.ck.ck-editor__main .ck-content {
    height: 239px;
}

.html_edeting_content br {
  content: "";
  /* height: 0.25rem; */
  display: block;
}
.html_edeting_content p {
  margin-bottom: 0rem;
  line-height: 1.2rem;
}

.record_extra_info p{
  margin-bottom: .1rem;
}

.record_extra_info p{
  white-space: initial;
}

/* fix code mirror line height */
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like{
  margin : 0px !important;
}

.md-wysiwyg-editor-wrapper li{
  list-style: unset;
}
/* View Filters */
.block_wx_side .filter_view_field{
  min-width: 45%;
    margin: 2px;
}

.globalfilterfieldsbtn{
    /* left: 265px; */
    left: 13.5rem;
    position: absolute;
    top: 0px;
    font-size: 17px !important;
    padding: 7px;
    cursor: pointer;
    width: 25px;
    color: #aaa;
}
.dir-rtl .globalfilterfieldsbtn{
  right: 13rem;
}
.globalserachbtn{
  margin: 0px;
}

.wxchoosedfilters{
  margin: 6px;
  display: contents;
}
.choosedfilter{
  border: 1px solid var(--bs-border-color);
  border-radius: 25px;
  margin-right: 5px;
  padding: 3px;
  font-size: 11px;
  font-weight: bold;
  display: inline-flex;
  line-height: 20px;
}
.choosedfilter a{
  padding: 2px 4px;
  margin-left: 2px;
  border : 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  border-radius: 25px;
  cursor: pointer;
  line-height: 16px;
}

.Top-globalfilterfields , .Side-globalfilterfields {
 text-align: left;
}
.dir-rtl .Top-globalfilterfields , .dir-rtl .Side-globalfilterfields {
 text-align: right;
 direction: rtl;
}
.Top-globalfilterfields{
  list-style: none;
  text-align: left;
  box-shadow: 0px 2px 4px 0px #aaa;
  padding: 10px;
  margin-left: 10px;
  /* opacity: .9; */
  position: absolute;
  background: #FFF;
  width: 85%;
  z-index: 99;
  top: 100%;
}

.wxhiddenfilters{
  /* list-style: none;
  text-align: left;
  box-shadow: 0px 2px 4px 0px #aaa;
  padding: 10px;
  margin-left: 10px; */
  /* opacity: .9; */
  /* position: absolute; */
  /* background: #FFF;
  width: auto;
  min-width: 300px; */
  /* z-index: 99; */
  /* display: none; */
  /* top: 100%; */

  padding-bottom: 200px;
}
.wxhiddenfilters input , .wxhiddenfilters select
,.wx-bulk-actions-bar input , .wx-bulk-actions-bar select
{
    font-size: 12px;
}

.wxhiddenfilters .row
, .wx-bulk-actions-bar .row
{
  width:100%;
  margin: 3px 0px;
}
.wxhiddenfilters .row div , .wxhiddenfilters .row b
, .wx-bulk-actions-bar .row div , .wx-bulk-actions-bar .row b
{
  vertical-align: middle;
}

.wxhiddenfilters .row .wxfilterslabel
,.wx-bulk-actions-bar .row .wxfilterslabel
{
  text-align: right;
      vertical-align: middle;
          line-height: 26px;
}

.block_wx_side .btn-success{
  min-width: 85% !important;
}

.filter_view_field ,.filter_view_field .selectize-input{
 color:var(--bs-body-color);
 background: var(--bs-body-bg);
 border-radius: 0px;
 border: 1px solid var(--wx-border-color) !important;
 padding: 3px !important;
 min-height: 26px !important;
}
.filter_view_field.select{
  border: 1px solid var(--wx-border-color) !important;
  color: var(--bs-body-color) !important;
}
.filter_view_field.select:focus-visible,.filter_view_field.select:focus,.filter_view_field.select:active{
  border: 1px solid var(--wx-border-color) !important;
}

.filter_view_field.select:checked{
  color: #fff;
}

.filter_view_field.selectize-control{
  min-width: auto !important;
}

.filter_view_field .selectize-input .item{
  background: var(--bs-body-bg);
}

.wxhiddenfilters .filter_view_field{
  width: 100%;
}
.wxfilterslabel{
  width: 100%;
}

.Side-globalfilterfields{
  list-style: none;
    text-align: left;
    box-shadow: inset 0px -2px 6px 2px #aaa;
    padding: 10px;
    margin-left: 10px;
    opacity: .9;
}

.globalfilterfields label{
  font-size: 12px;
}

.wx_choosed_filter{
  opacity:1 !important;
  font-weight:bold;
  color:#000 !important;
}

/* View Search Bar */
.wx-view-search-bar .date_view_filter{
  width: auto !important;
  max-width: 300px;
}

.wx-view-search-bar .wx_date_filter{
  width: 125px;
}
.wx-view-search-bar select , .wx-view-search-bar input , .wx-view-search-bar .selectize-control{
  margin-left : 3px ;
  padding: 3px;
}

.wx-view-search-bar .selectize-input.full{
  background: none;
}

.wx-view-search-bar input[type="text"]{
    min-width: auto !important;
}

.view-top-bar{
  width: 100% !important;
  display: inline-block !important;
}

.wx-view-search-bar{
  direction: inherit;
  width:auto;
  float: left;
  display: block;
  font-size: .75rem;
}
.dir-rtl .wx-view-search-bar{
  float:right;
}

.block_wx_side .wx-view-search-bar .wx-view-global-search{
  width: 80%;
}
.wx-view-search-bar .wx-view-global-search {
  width: 15rem;
  max-width: 85% !important;
  border: 1px solid var(--bs-border-color);
  border-radius: 2px;
  padding: 5px 25px;
  /* background-image: url(https://www.w3schools.com/css/searchicon.png); */
  background-position: 4px 4px;
  background-repeat: no-repeat;
}
.dir-rtl .wx-view-search-bar .wx-view-global-search{
  background-position: 265px 4px;
}

.view_group_by_btn{
  float: right;
  margin: 0px 3px !important;
  font-size: .7rem !important;
}
.view_group_by_list{
  float:right;
  background: #f9f9f9 ;
  /* font-size: 12px; */
  padding: 0px 3px 0px 10px;
  box-shadow: 0px 0px 2px #ddd;
}
.view_group_by_list select{
  border:0px;
  background: transparent ;
  width: auto;
  padding: .375rem 1.75rem .375rem .75rem;
}

.dsp_multi_slct{
  border:1px solid #ddd;
  padding: 2px 5px 2px 5px;
  margin: 10px 2px 2px 0px;
  border-radius: 10px;
}

.view_styles_group{
  float: right;
}
.dir-rtl .view_styles_group{
  float: left;
}

.viewwxdivtools span,.viewwxdivtools a{
  text-transform :lowercase !important;
  cursor: pointer;
}
.viewwxdivtools{
  /* position: fixed;
  right: 15px;
  display: grid;
  z-index: 2;
  border: 1px dotted orange;
  background: #eee; */

  /* to run with mobile and tablet */
  display: block !important;
}

.wx-view-master-buttons span , .wx-view-master-buttons a, .wx-view-master-buttons .btn{
  text-transform: capitalize !important;
}

.wx-view-master-buttons .dropdown-menu{
  padding:0px;
  border-radius: 3px;
}
.wx-view-master-buttons .dropdown-menu li a{
  padding:7px;
  width:auto !important;
  cursor: pointer;
}

.wx_design_columns{
  float: right;
  margin-right: 5px;
}
.wx_view_columns li {
  display: flex;
}
.wx_view_columns li a{
  padding: 2px 10px !important;
}
.wx_view_columns li .choose_col{
  width:70%;
}
.wx_view_columns li .sort_col{
  width:30%;
}

.wxsfmenu a:after {
    content: "\f0da";
    font-family: 'FontAwesome';
    position: absolute;
    right: 10px;
}
.inside_wxsf{
  display: none;
  padding: 0px;
    margin: 0px;
}
.wxfiltersmenu , .wxbactionsmenu{
  padding: 0px;
  margin: 0px;
}
.wxfiltersmenu hr, .wxbactionsmenu hr{
  margin-top: .3rem;
  margin-bottom: .3rem;
}

.winixhiddenfilters .dropdown-menu {
  transform: none !important;
  top:100% !important;
  overflow: visible;
}
.winixhiddenfilters{
  /* position: absolute;
  top: 0px; */
  width: auto;
}

.adv_filters_list_search{
  padding: 3px !important;
  margin: 0px 0px;
  font-size: 13px;
  line-height: 6px;
  height: 1.5rem !important;
  border: 1px solid #ddd;
  border-radius: 0.2rem;
  width: 100%;
}

.wx-bulk-actions-bar .selectize-control{
  width: auto !important;
}
.wx-bulk-actions-bar select{
  margin-left: 3px;
  margin-right: 3px;
}
.wx-bulk-actions-bar select , .wx-bulk-actions-bar input , .wx-bulk-actions-bar input[type="text"]{
  width:auto !important;
  min-width:auto !important;
}

.winix_bulk_dropdown{
  text-align: center;
  /* display: block; */
}

.bulkselectall{
  margin: 6px;
  height: 20px;
}
/* Form Styles */
.mform .fields-group{
  display:inline-flex;
}
.mform .fields-group .fitem , .mform .fields-group .felement{
  display:inline-flex;
  width:auto !important;
}

.mform input{
  border-radius: 0px !important;
}
.mform select{
  background: var(--bs-body-bg) !important;
}

.mform .req{
    float:right;
    position: absolute;
    right: 67%;
}
.dir-rtl .mform .req{
    float:left;
    left: 67%;
    right:auto;
}

.form-group .form-check-inline.fitem{
  display: block;
  width: 100%;
}

.form_label_above_element .form-group.row {
    display: flex;
    flex-direction: column;
}
.form_label_above_element .form-group.row .felement {
    max-width: 98%;
    width:98;
}
.form_label_above_element .form-group.row .field-label {
    width: 98%;
    max-width: 98%;
}

.form-under-label-help{
  font-style: oblique;
  font-weight: lighter;
  font-size: smaller;
}
.form-under-element-help{
  /* font-style: oblique; */
  /* font-weight: 400; */
  font-size: xx-small;
  letter-spacing: .4px;
  color: #999;
  margin: 0px 14px;
}

.mform .wx_field_freeze select ,.mform .wx_field_freeze .custom-select ,.mform .wx_field_freeze input ,.mform .wx_field_freeze textarea{
  border: 0px !important;
  border-bottom: 0px !important;
  background: none !important;
  resize: none !important;
}
.mform .wx_field_freeze .selectize-input{
  border: 0px !important;
  background: none !important;
}
.mform .wx_field_freeze .selectize-input:after {
  content: none !important;
}

body #page form .form-control:disabled,body #page form .form-control[readonly]{
  border:0px;
  border: 0px !important;
  border-radius: 0;
}

.fitem_ffile{
  display: flex;
}
.fitem_ffile .fitemtitle{
  width:25%;
  max-width:25%;
}
.fitem_ffile .fitemtitle .req{
  right: 75%;
}

.fdescription.required{
  width: 100%;
  text-align: end;
}

.mform #fgroup_id_submittion{
  padding: 0.5rem;
  /* background: #f9f9f9; */
  box-shadow: 0px 0px 2px 1px var(--bs-shadow-color);
  position: -webkit-sticky;
  position: sticky;
  bottom: -18px;
  background: var(--bs-body-bg);
  /* padding: 8px 0px 0px; */
  margin: 0px 0px !important;
  border-top: 2px solid var(--bs-border-color);
  right: 0px;
  /* box-shadow: 0 -5px 30px 0px #eee; */
  z-index: 1;
}
.jBox-content .mform #fgroup_id_submittion{
    position: -webkit-sticky;
    position: sticky;
    bottom: -18px;
    background: var(--bs-body-bg);
    /* padding: 8px 0px 0px;
    margin: 0px 0px !important; */
    /* border-top: 2px solid #777; */
    right: 0px;
    box-shadow: 0px 0px 3px 1px var(--bs-shadow-color);
    z-index: 1;
}

.jBox-content .mform{
  max-height: 100% !important;
}

/* Fixing checkboxes in category questions which hided by awosome checkbox css  */
#categoryquestions .checkbox input[type="checkbox"]{
    opacity :1 !important;
    position: relative;
}

/* Form Style 5 */
.form-style-5{
	/* max-width: 500px; */
	padding: 10px 20px;
	background: #f4f7f8;
	margin: 10px auto;
	padding: 20px;
	background: #f4f7f8;
	border-radius: 8px;
	font-family: Georgia, "Times New Roman", Times, serif;
}
.form-style-5 fieldset{
	border: none;
}
.form-style-5 legend {
	font-size: 1.4em;
	margin-bottom: 10px;
}
.form-style-5 label {
	display: block;
	margin-bottom: 8px;
}
.form-style-5 input[type="text"],
.form-style-5 input[type="date"],
.form-style-5 input[type="datetime"],
.form-style-5 input[type="email"],
.form-style-5 input[type="number"],
.form-style-5 input[type="search"],
.form-style-5 input[type="time"],
.form-style-5 input[type="url"],
.form-style-5 textarea,
.form-style-5 select {
	font-family: Georgia, "Times New Roman", Times, serif;
	background: rgba(255,255,255,.1) ;
	border: none !important;
	border-radius: 4px;
	font-size: 15px;
	margin: 0;
	outline: 0;
	padding: 10px !important;
	width: 100%;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	background-color: #e8eeef;
	color:#8a97a0;
	-webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
	box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
	margin-bottom: 30px;
}
.form-style-5 input[type="text"]:focus,
.form-style-5 input[type="date"]:focus,
.form-style-5 input[type="datetime"]:focus,
.form-style-5 input[type="email"]:focus,
.form-style-5 input[type="number"]:focus,
.form-style-5 input[type="search"]:focus,
.form-style-5 input[type="time"]:focus,
.form-style-5 input[type="url"]:focus,
.form-style-5 textarea:focus,
.form-style-5 select:focus{
	background: #d2d9dd ;
}
.form-style-5 select {
  -webkit-appearance: menulist-button;
  appearance: menulist;
  height: 35px;
  min-height: 35px;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.form-style-5 .number {
	background: #1abc9c;
	color: #fff;
	height: 30px;
	width: 30px;
	display: inline-block;
	font-size: 0.8em;
	margin-right: 4px;
	line-height: 30px;
	text-align: center;
	text-shadow: 0 1px 0 rgba(255,255,255,0.2);
	border-radius: 15px 15px 15px 0px;
}

.form-style-5 input[type="submit"],
.form-style-5 input[type="button"]
{
	position: relative;
	display: block;
	padding: 19px 39px 18px 39px;
	color: #FFF;
	margin: 0 auto;
	background: #1abc9c;
	font-size: 18px;
	text-align: center;
	font-style: normal;
	width: 100%;
	border: 1px solid #16a085;
	border-width: 1px 1px 3px;
	margin-bottom: 10px;
}
.form-style-5 input[type="submit"]:hover,
.form-style-5 input[type="button"]:hover
{
	background: #109177;
}

/* Fast Form */
.wx-fast-form {
  width:100%;
  display: inline-block;
  text-align: center;
  border-radius: 14px;
  box-shadow: inset 0px 0px 3px 1px var(--bs-border-color);
  padding : 0px 15px;
}
.wx-fast-form h6{
  display: none;
}
.wx-fast-form form{
  position: relative;
}
.wx-fast-form .fitem .felement{
  width:100% !important;
}

.wx-fast-form .fitem .felement .fdate_time_selector select{
  min-width: auto !important ;
  width:auto !important;
}

.wx-fast-form .femptylabel  , .wx-form-embed .femptylabel{
  display: none;
}
.wx-fast-form .form-item,.wx-fast-form .fitem  , .wx-form-embed .form-item , .wx-form-embed .fitem{
  margin-bottom: 0px !important;
  width:auto;
  min-width: 98% !important;
  display: inline-table;
  margin-left: 15px;
  text-align: center;
}
.wx-form-embed .mform label .req , .wx-form-embed .mform label .adv {
  position: absolute !important;
}
.wx-fast-form .row , .wx-form-embed .row{
  /*width:auto;*/
  width:100%;
  display: inline-flex;
}
.wx-fast-form .row .col{
  width:auto !important;
}
.wx-fast-form .mform .fitem .felement , .dir-rtl .wx-fast-form .mform .fitem .felement{
  margin-right: unset !important;
  margin-left: unset !important;
  text-align: center;
  display: table-row;
}

.wx-fast-form  .fitem div.fitemtitle , .dir-rtl .wx-fast-form  .fitem div.fitemtitle {
  width:auto !important;
  text-align: inherit;
}

.wx-fast-form .mform .fitem .fbutton , .dir-rtl .wx-fast-form .mform .fitem .fbutton{
  background-color: var(--bs-body-bg) !important;
}

/* .wx-fast-form  .fitem .felement , .wx-form-embed  .fitem .felement {
  margin-left: 0px !important;
} */
.wx-form-embed   .fitem .felement select, .wx-form-embed   .fitem .felement input[type="text"], .wx-form-embed   .fitem .felement input[type="button"]
, .wx-form-embed   .fitem .felement input[type="password"], .wx-form-embed   .fitem .felement textarea {
  padding:2px 8px !important;
  height: auto;
  margin: 1px !important;
  width:98% !important;
  min-width: 98% !important;
}

.wx-form-embed{
  width: 100%;
  min-width: 650px;
  text-align: center;
}

.wx-form-column-header {
  display: block;
  margin: 5px;
  text-align: initial;
  box-shadow:-1px -1px 0px 1px var(--bs-border-color);
  padding: 5px;
  color: var(--bs-body-color);
  text-transform: uppercase;
  background: var(--bs-body-bg);
}
.wx-form-column-header:before{
  content: "\f061";
  font: normal normal normal 14px/1 FontAwesome;
  padding: 5px;
}
.wx-js-form{
  /* box-shadow: 0px 0px 1px 1px #ddd; */
  box-shadow: 0px 0px 1px 1px var(--jbox-overlay-bg);
  padding: 10px;
  border-radius: 5px;
  /* background: #fff; */
}

/* Multi Insert Form */
.wx_multi_insert{
  box-shadow: inset 0px 0px 4px var(--bs-border-color);
  padding: 8px;
  width: 99% !important;
  max-width: 99% !important;
  clear: both;
  margin: 2px;
  background: var(--bs-body-bg);
  text-align: -webkit-center;
}

.wx_multi_insert_group{
  /*display: inline-flex;*/
  width: auto !important;
  margin: 0 auto !important;
  font-size: 9px !important;
}

.wx_multi_insert_group .col {
  padding-left: .2rem;
  padding-right: .2rem;
}

.have_margin .wx_multi_insert_group{
  margin-left: 34% !important;
}

.mform .wx_multi_insert_group .fitem{
  margin-bottom:0px !important;
}

form .stock-item-field{
  width: 95% !important;
}

.wx_multi_insert_group .fitemtitle{
  display:none;
  width:0px;
}
.wx_multi_insert_group .felement{
  width:100% !important;
  /* margin-left: 1% !important; */
  font-size: 10px;
  margin: 0px;
  padding: 0px;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
.wx_multi_insert_group .felement select
, .wx_multi_insert_group .felement .selectize-input > *
, .wx_multi_insert_group .felement input[type="text"]
{
  font-size: 10px ;
}

.wx_multi_insert_group .felement .selectize-control{
    width:100% !important;
    min-width:100% !important;
}

.wx_multi_insert_group span.error{
  /*position: absolute;*/
  padding:0px;
}

.wx_multi_insert_group select , .wx_multi_insert_group input[type="text"] , .wx_multi_insert_group .selectize{
  /*max-width: 200px !important;
  min-width: 130px !important;*/
  width: 100% !important;
  height: 28px !important;
  min-width: 100% !important;
  padding:5px;
}
.wx_multi_insert_group textarea {
  height: 28px;
}

.wx_multi_insert_group .wx_field_freeze{
  border-bottom: 1px solid var(--bs-border-color) !important;
}

.wx_multi_insert_group_total{
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  background-color: var(--bs-body-bg);
  font-size:11px !important;
  text-align: right;
  white-space: nowrap;
  /* height: 15px; */
}
.wx_multi_insert_group_total .footer_label{
  float : right ;
  max-width: 100%;
  overflow: hidden;
}

.wx_multi_insert_group_total input[type="text"]{
  background-color: var(--bs-body-bg);
  max-width:100%;
  height: 16px !important;
  border:0px !important;
  text-align: center;
  padding: 0px !important;
  overflow: visible !important;
  text-overflow: ellipsis;
  font-size: 9px !important;
}

.mform .wx_multi_insert_group .selectize-input{
   width: 100% !important;
   min-width: auto !important;
   padding: 0px !important;
   padding-right: 25px !important;
}

.multi_insert_adder_nbr{
      width: 2.5rem;
      padding: 0px;
      border: 0px solid #ddd;
      background: transparent;
      margin: 5px;
}

/* Inline Form */
table.dataTable tbody .wx_inline_form td{
  padding: 1px;
}
.wx_inline_form input{
  width: 100%;
  max-width: 100%;
  min-width: 100%;
}
body #page .wx_inline_form input[type=submit]{
  display: none;
}
.wx_inline_form input:not([type=checkbox]){
  border:none;
  box-shadow: inset 0px 0px 2px #999;
  padding: 2px;
}
.wx_inline_form input:focus{
  -webkit-box-shadow: none;
  box-shadow: none;
  border:none;
}
.wx_inline_form .selectize-control{
  min-width: 95%;
}
.wx_inline_form .selectize-input{
  padding: 2px;
  min-height:95%;
  border:none;
  box-shadow: inset 0px 0px 2px #999;
}
.wx_inline_form .selectize-input input{
  width: auto ;
  min-width: auto;
}

.dt_inline_add_btn{
  float: right ;
}

/* Activity Form */
.activity_form{
  transition: all 0.3s ease 0s;
  width: 100%;
}
.activity_mark{
  font-size: 20px;
}

/* Grade Table */
.gradertable td input{
  width: 5rem;
}
.gradertable .headrow td{
  height: 15px;
  background: #fcfcfc;
  padding: .4rem;
  border: 1px solid #ddd;
  font-size: .7rem ;
}
body {
  min-height: 100vh !important;
}

body{
  height:100%;
}

.hidden{
  display: none;
}

fieldset.hidden{
    display: inherit !important;
    visibility: inherit !important;
}

.cursor-pointer{
  cursor: pointer;
}

html[data-bs-theme="dark"] .form-control::placeholder {
  color: #555;
}

/* For Firefox */
html[data-bs-theme="dark"] input:-moz-placeholder {
  color: #555;
}

/* For Internet Explorer 10-11 */
html[data-bs-theme="dark"] input:-ms-input-placeholder {
  color: #555;
}

/* For Microsoft Edge */
html[data-bs-theme="dark"] input::-ms-input-placeholder {
  color: #555;
}

/* Light: keep the classic white inverse */
:root,
[data-bs-theme="light"] .fa-inverse {
  color: #fff !important;
}

/* Dark: use body background or an emphasis color for contrast */
:root,[data-bs-theme="dark"] .fa-inverse {
  /* Option A: on colored circles, use page bg to "cut out" the glyph */
  color: var(--bs-body-bg) !important;
/* Option B (comment A out, use this instead): brighter emphasis for contrast
  color: var(--bs-emphasis-color) !important;
  */
}

li{
  list-style: none;
}

/* Spinner */
.spinner {
    position: relative;
    opacity: 0.6;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    width: 15px;
    height: 15px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spinner 1s linear infinite;

}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Relaxing Paragraph */
.relaxing-paragraph {
    font-family: "Segoe UI", Arial, sans-serif; /* Use a comfortable font */
    font-size: 16px; /* Adjust font size as needed */
    line-height: 1.5; /* Increase line height for better readability */
    color: #333; /* Set text color to a soothing shade */
    margin: 0; /* Remove default margin */
    padding: 16px; /* Add padding for breathing space */
}

.relaxing-paragraph:hover {
    color: #555; /* Lighten text color on hover for a subtle effect */
}

/* Congrats Animation */
.congrats-container {
      position: relative;
      text-align: center;
    }

    .congrats-icon {
      font-size: 4rem;
      color: #ff9800;
      animation: fadeIn 1s ease-in-out;
    }

    .firework {
      position: absolute;
      font-size: 1.5rem;
      color: #ff5722;
      opacity: 0;
      animation: explode 1.5s infinite ease-out;
    }

    /* Fireworks positioned around the icon */
    .firework:nth-child(2) { top: 0px; left: 60%; transform: translate(-50%, 0); animation-delay: 0s; }
    .firework:nth-child(3) { top: 20%; left: 100px; transform: translate(0, -50%); animation-delay: 0.2s; }
    .firework:nth-child(4) { top: 100px; left: 80%; transform: translate(-50%, 0); animation-delay: 0.4s; }
    .firework:nth-child(5) { top: 20%; left: 90px; transform: translate(0, -50%); animation-delay: 0.6s; }
    .firework:nth-child(6) { top: 20px; left: 30px; animation-delay: 0.8s; }
    .firework:nth-child(7) { top: 30px; left: 70px; animation-delay: 1s; }

    .congrats-message {
      font-size: 1.5rem;
      color: #333;
      margin-top: 20px;
      animation: fadeIn 1.5s ease-in-out;
    }

    @keyframes explode {
      0% {
        opacity: 1;
        transform: scale(0.5);
      }
      80% {
        opacity: 0.8;
        transform: scale(2.5);
      }
      100% {
        opacity: 0;
        transform: scale(3);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

/* Thumb Container */
.thumb-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full screen height */
}

#thumb-icon {
  font-size: 100px; /* Adjust size as needed */
  color: #007bff; /* Adjust color as needed */
}

.animate {
  animation: animateThumb 2s;
}

@keyframes animateThumb {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Shortcut */
.shortcut-cover{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #00000094; padding: 10px;
  width: 80%;
  height: 80%;

}
.shortcut-letter {
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  width: 14px;
  text-align: center;
  box-shadow: 0px 0px 1px #000;
  border-radius: 3px;
  font-size: 12px;
}

/* jBox Container */
.jBox-container ::-webkit-scrollbar {
  width: 7px;
}
.jBox-container ::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.jBox-container ::-webkit-scrollbar-thumb {
  background: #888;
}
.jBox-container ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.jBox-container .view-master-btns{
  /* text-align: center; */
  right: 0px;
  margin: .2rem;
}

.jBox-wrapper{
      text-align: inherit !important;
}

/* Winix Bot */
.winix_bot{
  position: fixed;
  /* width: 150px; */
  right: 3rem;
  top: 5rem;
  display: block;
  z-index: 1;
}
.jBox-wix_bot_jbox_theme{
  opacity: .5;
}
.jBox-wix_bot_jbox_theme .jBox-container{
  background: #f3f3f3;
  top:4rem;
}

.jBox-wix_bot_jbox_theme .bot_text{
  /* font-style: italic; */
  font-size: 11px;
}

/* Customize */
.wx_customize_actions{
  width: 100%;
  text-align: right;
  display: inline-flex;
  background: #ddd ;
}
.wx_customize_actions .fa{
  margin: 5px;
}
.wx_customize_el{
  border:1px dotted #ddd;
  padding: 1px;
}
.wx_customize_el_move{
  /* position: absolute; */
  right: 0px;
  top:-22px;
}
.wx_customize_el_remove{
  /* position: absolute; */
  right: 20px;
  top:-22px;
}
.wx_customize_el_edit{
  /* position: absolute; */
  right: 40px;
  top:-22px;
}

/* Notes */
.wxnote-select{
  background: transparent ;
  font-size: .8rem;
  border: 0;
  color: #555;
  width: auto !important;
}
.wxnote-template{
  float: right;
}

.wxnote-privacy{
  background: transparent ;
  font-size: .8rem;
  border: 0;
  clear: both;
  float: right;
  color: #555;
}

/* Speech */
.speech_startDictation{
  position: absolute;
    right: 0px;
    top: 0px;
    width: 2rem;
}

/* Search */
.wx_search_bar{
  position: relative;
  /*width:220px;*/
}
.wx_search_input{
  /*color : #000 ;*/
  margin: 6px;
  opacity : .4 ;
  width:98%;
  border: 0px;
  box-shadow: inset 0px 0px 1px 1px #AAA;
  border-radius: 3px;
  padding: 8px 0 8px 28px ;
  background-image: url(https://www.w3schools.com/css/searchicon.png);
  background-position: 4px 6px;
  background-repeat: no-repeat;
  transition-property: opacity;
  min-width: 20rem;
  height: 2rem;
}
.wx_search_input:focus{
    opacity: .9;
}

.wx_search_result{
  position: absolute;
  background: var(--bs-body-bg);
  width:125%;
  padding :0;
      right: -29px;
  max-height: 254px;
  overflow: auto;
  z-index: 99;
  border-color: rgba(0, 0, 0, .15);
  border-radius: 2px;
  box-shadow:0 4px 6px 2px rgba(0, 0, 0, .10);
}
.wx_search_result li{
  width:100%;
  list-style: none;
}
.wx_search_result li a{
  display:block;
  padding:10px;
  color: #000 !important;
  font-size: 12px;
}

/* Date Range Picker */
.dir-rtl .daterangepicker.ltr .ranges,.dir-rtl  .daterangepicker.ltr .drp-calendar{
  float:right;
}
.wx_daterangepicker{
    cursor: pointer; padding: 2px 10px; border-bottom: 1px solid #ccc;display: inline-flex;margin: 0px 10px;
}
.wx_daterangepicker span{
    width: 180px;
    font-size: 11px;
}

@media (min-width: 564px) {
   .daterangepicker.ltr {
        text-align: left;
  }

}

/* Date Selector */
#dateselector-calendar-panel{
  z-index: 999999 !important;
}

/* User Picture */
.userpicture{
  border-radius: 25px;
  box-shadow: 0px 0px 5px 0px #777;
}

/* Blocks */
.block {
    border-color: #ddd;
    /* border-radius: 5px; */
}
.block .header{
    background: #f9f9f9;
}

.block_course_overview .welcome_area{
  display: inline-flex;
}
.block_course_overview .welcome_area img{
  border-radius: 40px;
  /* box-shadow: 0px 0px 5px 1px #555; */
  vertical-align: middle;
  margin-top: 15px;
}
.block_course_overview h2 {
  font-size: 14px;
  line-height:15px;
}
.block_course_overview .coursebox {
  padding:5px;
  border-radius: 5px;
}
.block_course_overview .coursebox{
  border-left:5px solid #E24D4D;
}
.block_course_overview .coursebox:nth-child(5n){
  border-left:5px solid #64B5F6;
}
.block_course_overview .coursebox:nth-child(even){
  border-left:5px solid #FFB74D;
}
.block_course_overview .coursebox:nth-child(3n){
  border-left:5px solid #81C784;
}
.block_course_overview .content h2.title{
  margin:3px;
}

/* Navbar */
.navbar .nav>li{
  cursor: pointer;
      max-height: 43px;
}

/* Icons */
.mgc-lg , .mgr-lg{
  width:19px !important;
}

/* Help Links */
.helplink , .sitelink{
  display: none ;
}

/* Counters */
.count-container.empty{
  display: none ;
}
.navbar .count-container{
    padding: 2px;
    border-radius: 3px;
    background-color: red;
    color: white;
    font-weight: bold;
}
.wx_counter.empty{
  display: none ;
}
.wx_counter{
  background: red;
  padding: 2px;
  color: #fff;
  position: relative;
  bottom: 1ex;
  font-size: 80%;
  vertical-align: super;
}

/* Announcements */
.wx_announcments{
  padding:5px;
  text-align: initial;
  margin-left: 2rem;
  margin-right: 2rem;
}
.wx_announcments .announcment {
  padding:10px;
  margin: 5px;
  box-shadow: 0px 0px 2px var(--bs-shadow-color);
  border-radius: 5px;
}
.wx_announcments .announcment h5 {
  margin-bottom: 0px;
}

/* Overview */
#wx_overview{
  direction:ltr;
}

/* Rating */
.br-theme-fontawesome-stars .br-widget{
  height:17px !important;
}

/* Map Labels */
.gmaplabels{
  color: #000;
 background: #fff;
 font-weight: bold;
 text-align: center;
 padding: 3px;
 width: 80px;
 border-radius: 6px;
 box-shadow: 0 0 5px 0px #777;
 font-family: "Greta";
 opacity: .5 !important;
 font-size:13px;
}

/* Sound */
.soundexisttext{
  color:green;
  font-size: 10px;
}

/* Composite View */
.composite_view{
  margin: 5px ;
}
.composite_element{
  /* border-left: 3px solid #ddd;
  border-right: 3px solid #ddd; */
  /* box-shadow: inset 0px 0px 3px 1px var(--bs-border-color); */
  box-shadow: 0px 0px 1px 1px var(--jbox-overlay-bg);
  padding: 1rem;
  margin: 0px;
  border-radius: 11px;
  /* background: #fff; */
}

/* Exp Container */
.exp-container .exp-notification{
      right: 0px !important;
      left: unset !important;
}
.map_autocomplete_text{
  width: 35.5rem;
}

/* Moodle Dialogue */
.moodle-dialogue-base .moodle-dialogue{
  z-index: 700 ;
}

/* UI Widgets */
.ui-widget-header{
    background: none !important ;
    border: none !important;
    font-size: 13px;
}
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 13px;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active{
  font-weight: bold !important ;
}
.ui-widget-content{
  background: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active{
  border: 1px solid var(--bs-border-color) !important;
  background: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}
.ui-widget.ui-widget-content{
  border: 1px solid var(--bs-border-color) !important;
}

/*Fixing Tabs right to left*/
.dir-rtl .ui-tabs { direction: rtl; }
.dir-rtl .ui-tabs .ui-tabs-nav li.ui-tabs-selected, .dir-rtl .ui-tabs .ui-tabs-nav li.ui-state-default {float: right; }
.dir-rtl .ui-tabs .ui-tabs-nav li a { float: right; }
.dir-rtl .ui-widget ,.dir-rtl .ui-widget input,.dir-rtl .ui-widget select,.dir-rtl .ui-widget textarea,.dir-rtl .ui-widget button{
   font-family: "Greta" !important;
}

/* User Menu */
.usermenu .moodle-actionmenu{
  margin:0px ;
}

/* Felement Number */
.felement .number{
  padding: 0px;
  text-align: right;
}
.jstree-table-header-regular{
  background-color: var(--bs-body-bg) !important;
}

.jstree-table-midwrapper{
  max-width: 100% !important;
}

.jstree-table-cell span{
  max-width: 100%;
  overflow: hidden;
}

.jstree-anchor{
  z-index: 2;
}

.jstree .link_sup_label {
  color:red;
  right: -3px;
  background: none;
}
.jstree-table-cell{
  height: 24px;
}
.jstree-table-cell p{
  margin: 0px;
}
div.jstree-table-cell-root-core_navigation_view{
  line-height: 24px !important;

}

.jstree-table-cell , .jstree-table-column , .jstree-table-midwrapper , .jstree-table-wrapper {
  overflow:visible !important;
}
div.jstree-table-midwrapper a.jstree-clicked:before, .jstree-table-midwrapper a.jstree-hovered:before {
    width: 100% !important;
}
.jstree-table-cell .btn-sm , .jstree-table-cell .btn{
  height:22px !important;
  padding: 0px 5px !important;
  font-size: 10px !important;
}
div.jstree-table-cell-root-g_entity_tree_view {
    line-height: 24px;
    min-height: 24px;
    height: 24px;
    margin-top: .45px;
}

.jstree-table-wrapper{
  max-width: 100% !important;
}

.jstree-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f03c" !important;
}
.kanban-item{
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}
.kanban-board-header{
  background-color: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
}
.kanban-board-header-title{
  color: var(--bs-body-color) !important;
}
.kanban-drag{
  background-color: var(--bs-secondary-bg) !important;
  color: var(--bs-body-color) !important;
}

/* fixing drag in height problem */
.kanban-container{
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  /* this remove scroll */
  /* margin: 7px; */
}
.kanban-board{
  float: none !important;
}
.kanban-board .kanban-drag{
  /* 100% make the parent div overflow */
  height: 98% !important;
}
/* End of fixing drag in height problem */
.kanban-item textarea{
  width: 100%;
}

.dir-rtl .kanban-item .badge-wxnotes{
  right: 13rem;
}

.kanban-item .badge-wxnotes{
  position: absolute;
  right: 0rem;
  top: 14px;
}

.kanban-item .user_picture_div , .wxcard .user_picture_div{
  position: relative;
}
.dir-rtl .kanban-item .userpicture{
  right: 30.3rem;
}
.kanban-item .userpicture  {
  position: absolute;
  /* z-index: 1; */
  right: -30px;
  top: -20px;
}
.kanban-item div{
  position: relative;
}
.kanban-item .wx_record_btn_group {
  opacity: 0 ;
  position: absolute ;
  bottom: -10px ;
  right: -10px ;
  /* the below added to prevent btns to go to the next card and this is very bad */
  display: flex ;
  justify-content: flex-end ;
  white-space: nowrap ;
  overflow: hidden ;
  max-width: 100% ;
}

.kanban-board header .kanban-title-board{
  display: inline-flex !important ;
  max-width: 85% !important;
}
.kanban-item .wx_record_btn_group .btn  ,.wxcard .wx_record_btn_group .btn {
  height: 1.6rem !important;
  padding: 0 .7rem !important;
  line-height: 2.3em !important;
}
.kanban-item:hover .wx_record_btn_group ,.wxcard:hover .wx_record_btn_group{
  opacity: 1;
}
.kanban-board{
  background: #f9f9f9 !important;
  box-shadow: 0 0 1px 0px #aaa;
}
.kanban-title-button{
      height: 22px;
}
.kanban-board .kanban-drag{
  padding: 0px !important;
}

.kanban_show_more{
      position: absolute;
      bottom: -20px;
      background: #eee;
      width: 100%;
      text-align: center;
      cursor: pointer;
      padding: 0px;
}

.kanban-item .on_fly_barrating{
  display: inline-flex;
}
.kanban-item br{
  height: .5rem;
}
.kanban-item{
  margin: 0px;
  padding: 10px !important;
  /* line-height: 1.7; */
  line-height: 1rem;
  font-size: 13px;
  box-shadow: 0 0 1px #BBB;
  margin-bottom: 30px;
}

.kanban-item .on_fly_popup{
  height: 15px;
  padding-left: 0px;
  padding-right: 0px;
  min-width: 5rem;
}

.kanban-container .link_sup_label{
  color: red;
  font-size: 100%;
  position: absolute;
  top: 3px;
  right: 0px;
  background: #dfdfdfa8 !important;
  border-radius: 3px;
  padding: 7px 3px;
}

.kanban-style-btn:before{
  font-family: FontAwesome !important;
  content: "\f0db" !important;
}
.wx_wide_nav li{
  list-style: none;
}

.wx_wide_nav a{
  text-transform: capitalize;
  /* font-family: "Lato"; */
  font-weight: 500;
  font-size: .75rem;
}
.wx_wide_nav li a{
  height: 1.3rem;
  /* display: inline-block; */
  display: block;
  max-width: 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-rtl .wx_wide_nav a{
  font-family: "Greta";
}

.wx_wide_nav h5{
  font-size: 15px;
  box-shadow: -1px 0px 1px #999;
  border-radius: 25px 0px 0px 25px;
}

.wx_wide_nav{
  padding: 3px;
  column-count: 3;
  width: 670px;
  opacity:1;
  max-height: 700px;
  max-width: 100%;
}

.wx_top_wide_nav{
    /* max-width: 55%; */
    max-width: 65%;
    overflow: hidden;
    scroll-padding: 0px;

    scale: none;
    /* scrollbar-width: none; */
    display: flex;
    margin-left: 1%;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
      display: none;
    }
}
.scroll-arrow {
  width: 2%; /* Adjust as needed */
  max-height: 100%; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 25%; 
  border: 1px solid var(--bs-border-color);
}
/* .scroll-arrow.left-arrow{
  left: 5vw;
}
.scroll-arrow.right-arrow{
  right: 36%;
} */

.scroll-arrow span {
  font-size: 24px;
  color: #555; /* Adjust arrow color */
}

.top_page_other_pages{
  font-size: .8rem;
  padding: 0.2rem 0.1rem;
}

.wx_record_link{
  cursor: pointer;
}
/* Landscape styles */
.a1-landscape {
    width: 841mm; /* A1 landscape width */
    height: 594mm; /* A1 landscape height */
}
.a2-landscape {
    width: 594mm; /* A2 landscape width */
    height: 420mm; /* A2 landscape height */
}
.a3-landscape {
    width: 420mm; /* A3 landscape width */
    height: 297mm; /* A3 landscape height */
}
.a4-landscape {
    width: 297mm; /* A4 landscape width */
    height: 210mm; /* A4 landscape height */
}
.a5-landscape {
    width: 210mm; /* A5 landscape width */
    height: 148mm; /* A5 landscape height */
}
.a6-landscape {
    width: 148mm; /* A6 landscape width */
    height: 105mm; /* A6 landscape height */
}
.a7-landscape {
    width: 105mm; /* A7 landscape width */
    height: 74mm; /* A7 landscape height */
}

/* Portrait styles */
.a1-portrait {
    width: 594mm; /* A1 portrait width */
    height: 841mm; /* A1 portrait height */
}
.a2-portrait {
    width: 420mm; /* A2 portrait width */
    height: 594mm; /* A2 portrait height */
}
.a3-portrait {
    width: 297mm; /* A3 portrait width */
    height: 420mm; /* A3 portrait height */
}
.a4-portrait {
    width: 210mm; /* A4 portrait width */
    height: 297mm; /* A4 portrait height */
}
.a5-portrait {
    width: 148mm; /* A5 portrait width */
    height: 210mm; /* A5 portrait height */
}
.a6-portrait {
    width: 105mm; /* A6 portrait width */
    height: 148mm; /* A6 portrait height */
}
.a7-portrait {
    width: 74mm; /* A7 portrait width */
    height: 105mm; /* A7 portrait height */
}

#rep_container{
  box-shadow: inset 0px 0px 5px var(--bs-border-color);
  padding: 2px;
  background: var(--bs-body-bg);
  display: flex;
  justify-content: center; /* Center horizontally */
  /* align-items: center; */
  height: 900px;
}

.core_reports_menu .dropdown-item{
  display:flex;
  border-bottom: 0.1px solid #eee;
}
.responsive-btn-group {
    position: relative;
    font-family: inherit;
    font-size: 0.75rem;
}


/* Desktop: Show button group normally */
@media (min-width: 992px) {
    .responsive-btn-group .btn-group {
        display: flex !important;
    }
}

/* Mobile/Tablet: Transform to dropdown-like appearance */
@media (max-width: 991.98px) {
    .responsive-btn-group {
        position: relative;
    }

    .responsive-btn-group .btn-group {
        position: relative;
        display: block !important;
    }

    /* Hide all original buttons/links by default */
    .responsive-btn-group .btn-group .btn {
        display: none !important;
    }

    /* Create "Actions" dropdown button */
    .responsive-btn-group .btn-group::before {
        content: attr(title) "  ";
        display: block;
        width: 100%;
        padding: 0.375rem 0.75rem;
        margin-bottom: 0;
        font-weight: 400;
        line-height: 1;
        /* color: #fff; */
        /* background-color: var(--bs-primary);*/
        border: 1px solid var(--bs-border-color);
        border-radius: 0.375rem;
        cursor: pointer;
        text-align: center;
        position: relative;
        z-index: 0;
        transition: all 0.15s ease-in-out;
        user-select: none;
        text-decoration: none;
    }

    /* Add dropdown arrow */
    .responsive-btn-group .btn-group::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0.25rem;
        transform: translateY(-50%);
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        z-index: 1;
        pointer-events: none;
        transition: transform 0.2s ease;
    }

    /* Hover effect for Actions button */
    .responsive-btn-group .btn-group:hover::before {
        /* background-color: var(--bs-primary);
        border-color: var(--bs-border-color); */
    }

    /* Active/clicked state - rotate arrow */
    .responsive-btn-group.active .btn-group::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Floating popup menu for both buttons and links */
    .responsive-btn-group.active .btn,
    .responsive-btn-group:focus-within .btn {
        display: block !important;
        position: absolute;
        width: auto;
        border-radius: 0;
        text-align: left;
        background-color: #fff !important;
        color: #212529 !important;
        border: 1px solid #dee2e6 !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        z-index: 1;
        margin: 0;
        top: 100%;
        text-decoration: none !important;
        padding: 0.375rem 0.75rem;
        font-weight: 400;
        line-height: 1.5;
        white-space: nowrap;
        
    }

    /* Position each dropdown item (works for both buttons and links) */
    .responsive-btn-group.active .btn:nth-child(1),
    .responsive-btn-group:focus-within .btn:nth-child(1) {
        top: calc(100% + 1px);
        border-top-left-radius: 0.375rem;
        border-top-right-radius: 0.375rem;
    }

    .responsive-btn-group.active .btn:nth-child(2),
    .responsive-btn-group:focus-within .btn:nth-child(2) {
        top: calc(100% + 1px + 25px);
        border-top: 0;
        margin-top: -1px;
    }

    .responsive-btn-group.active .btn:nth-child(3),
    .responsive-btn-group:focus-within .btn:nth-child(3) {
        top: calc(100% + 1px + 50px);
        border-top: 0;
        margin-top: -1px;
    }

    .responsive-btn-group.active .btn:nth-child(4),
    .responsive-btn-group:focus-within .btn:nth-child(4) {
        top: calc(100% + 1px + 75px);
        border-top: 0;
        margin-top: -1px;
        border-bottom-left-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }

    .responsive-btn-group.active .btn:nth-child(5),
    .responsive-btn-group:focus-within .btn:nth-child(5) {
        top: calc(100% + 1px + 100px);
        border-top: 0;
        margin-top: -1px;
        border-bottom-left-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }

    .responsive-btn-group.active .btn:nth-child(6),
    .responsive-btn-group:focus-within .btn:nth-child(6) {
        top: calc(100% + 1px + 125px);
        border-top: 0;
        margin-top: -1px;
        border-bottom-left-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }
    .responsive-btn-group.active .btn:nth-child(7),
    .responsive-btn-group:focus-within .btn:nth-child(7) {
        top: calc(100% + 1px + 150px);
        border-top: 0;
        margin-top: -1px;
        border-bottom-left-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }
    .responsive-btn-group.active .btn:nth-child(8),
    .responsive-btn-group:focus-within .btn:nth-child(8) {
        top: calc(100% + 1px + 175px);
        border-top: 0;
        margin-top: -1px;
        border-bottom-left-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }
    .responsive-btn-group.active .btn:nth-child(9),
    .responsive-btn-group:focus-within .btn:nth-child(9) {
        top: calc(100% + 1px + 200px);
        border-top: 0;
        margin-top: -1px;
        border-bottom-left-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }

    /* Hover effects for dropdown items */
    .responsive-btn-group.active .btn:hover,
    .responsive-btn-group:focus-within .btn:hover {
        background-color: #f8f9fa !important;
        color: #212529 !important;
        text-decoration: none !important;
    }

    /* Actions button styling when expanded */
    .responsive-btn-group.active .btn-group::before {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

    /* Show title attribute as text in mobile */
    .responsive-btn-group.active .btn[title]::after,
    .responsive-btn-group:focus-within .btn[title]::after {
        content: " (" attr(title) ")";
        font-size: 0.875em;
        color: #6c757d;
        font-weight: normal;
    }

    /* Backdrop to close dropdown when clicking outside */
    .responsive-btn-group.active::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        z-index: 999;
    }
}.ribbon {
    width: 140px;
    height: 150px;
    overflow: hidden;
    position: absolute !important;
}

.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid #2980b9;
}

.ribbon span {
    z-index: 0;
    position: absolute;
    display: grid;
    align-items: center;
    width: 225px;
    height: 23px;
    padding: 0 44px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    font: 700 14px/1 'Lato', sans-serif;
    font-size: calc(.7vw);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    text-align: center;
    overflow: hidden;
    user-select: none;
}

/* Support for multiple spans stacked vertically */
.ribbon span:nth-child(2) {
    height: 20px;
    font-size: calc(.65vw);
}

.ribbon span:nth-child(3) {
    height: 18px;
    font-size: calc(.6vw);
}

.ribbon span:nth-child(4) {
    height: 16px;
    font-size: calc(.55vw);
}

.ribbon-top-right {
    margin-top: -10px;
    right: -10px;
}

.dir-rtl .ribbon-top-right {
    margin-top: -10px;
    left: -10px;
    right: auto;
}

.ribbon-top-right::before,
.ribbon-top-right::after {
    border-top-color: black;
    border-right-color: black;
}

.ribbon-top-right::before {
    top: 0;
    left: 0;
}

.ribbon-top-right::after {
    bottom: 0;
    right: 0;
}

.ribbon-top-right span {
    left: -15px;
    top: 25px;
    transform: rotate(45deg);
}

.ribbon-top-right span:nth-child(2) {
    top: 50px;
}

.ribbon-top-right span:nth-child(3) {
    top: 72px;
}

.ribbon-top-right span:nth-child(4) {
    top: 92px;
}

.dir-rtl .ribbon-top-right span {
    left: -60px;
    top: 25px;
    transform: rotate(-45deg);
}

.dir-rtl .ribbon-top-right span:nth-child(2) {
    top: 50px;
}

.dir-rtl .ribbon-top-right span:nth-child(3) {
    top: 72px;
}

.dir-rtl .ribbon-top-right span:nth-child(4) {
    top: 92px;
}
.wxcard .ribbon-top-right {
    margin-top: 0px;
    right: 0px;
}.selectize-input{
  z-index: auto !important ;
}

.selectize-control.rtl .selectize-input > input , .selectize-control .selectize-input > input{
  border-bottom: 0px !important;
}
/* text it self */
.selectize-control.multi .selectize-input>div
, body #page form .selectize-input input[type="text"]
, .selectize-dropdown [data-selectable].option
{
  font-size: 12px;
}

.selectize-input > *{
     white-space: nowrap;
     display: inline-block;
     overflow: visible;
}
/* // styling the arrow */
.selectize-control.single .selectize-input:after{
  right: 4px !important;
  left:auto !important;
}

.dir-rtl .selectize-control.single .selectize-input:after{
  left: 4px !important;
  right:auto !important;
}

.mform .selectize-input input[type="text"]{
  /*height : auto ;*/
  position: absolute;
}

.selectize-control{
  display:inline-flex;min-width:200px
}

.selectize-input {
  padding-right:10px !important;
  min-width: 100px !important;
}
.selectize-input div.item + input {
   display: none;
 }

.selectize-input{
  background: var(--bs-body-bg) !important;
}

.selectize-dropdown , .selectize-dropdown-content{
 white-space: nowrap;
 display: inline-block;
 overflow: visible;
 width: auto;
 min-width: 100%;
 overflow: visible;
 background: var(--bs-body-bg) !important;
 color: var(--bs-body-color) !important;
}

.selectize-link{
  position: absolute;
  right: 20px;
  cursor: pointer;
  opacity: .5;
  margin: 3px;
}
.dir-rtl .selectize-link {
  left: 20px;
  right: auto;
}
.selectize-link:hover{
  opacity: 1;
}

.wxchart .selectize-control{
  font-size: .7rem;
    height: 0.5rem;
    min-width: auto;
}
.wxchart .selectize-control .selectize-input{
  min-height: auto;
  height: 32px;
  border-bottom: 1px solid #ddd !important;
}
table.treetable {
  border:0px !important;;
}
table.treetable thead tr th{
  border: 1px solid var(--bs-border-color) !important;
  padding: 5px !important;
  font-size: 11px !important;
  font-weight: bold !important;
  background: var(--bs-body-bg) !important;
}
table.treetable tbody tr td{
  padding: 4px !important;
}
table.treetable tbody tr td input{
  font-size:11px !important;
}
table.treetable tr.selected , table.treetable thead th{
  color: #000 !important;
}

.wxlogstable{
  background: #eee;
}
.wxlogstable tr {
  border:0px solid #ddd;
}
.wxlogstable td:nth-child(1) {
  width: 3rem;
  text-align: right ;
}
.wxlogstable td{
  vertical-align: top;
  padding: .2rem;
}
.wxlogstable .message-content {
  padding: 5px;
  box-shadow: inset 0 0 3px #555;
  border-radius: 7px;
  text-align: initial;
}

.wx-summary-list{
  cursor: pointer;
}
.wxdevformfield , .wxdevformfield_dropdown , .wxdevform_translate{
    opacity: 0.3;
}.wizard {
  display: flex;
    justify-content: center;
    width: 100%;
    margin: 15px;
  /* justify-content: space-between; */
}

.wizard-step {
  padding: 10px 15px;
  color: #ffffff;
  background-color: #dfdfdf40;
  text-decoration: none;
  border-radius: 25px;
}
.wizard-step a{
  color: #ffffff;
}

.wizard-step.active {
  background-color: #73859f;
  color: #fff !important;
}
/* .wizard-step.active:before {
  content:' > ' ;
} */

#fgroup_id_wx_wizard_submittion_btns .col-md-9{
  display: flex !important;
  justify-content: space-between !important;
}
#fgroup_id_wx_wizard_submittion_btns .col-md-9 .btn{
  background-color: #73859f !important;
  color: #fff !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important ;
}
/* override drawflow.css */
.drawflow .drawflow-node {
    background: #ffffff;
    width: auto !important;
}
.drawflow .drawflow-node.selected {
    background: #007bff;
}

/* Workflow Editor Styles */
.workflow-container {
    display: flex;
    height: 100vh;
    background: #f8f9fa;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.workflow-main {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Node Palette Styles */
.node-palette {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    /* z-index: 1000; */
    z-index: 1;
}

.node-palette h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

/* Node Search Styles */
.node-search-container {
    position: relative;
    margin-bottom: 15px;
}

.node-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    background: #f8f9fa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.node-search-input:focus {
    outline: none;
    border-color: #007bff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.node-search-input::placeholder {
    color: #adb5bd;
}

.node-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 14px;
    pointer-events: none;
}

/* Node Category Styles */
.node-category {
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.category-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.category-toggle-icon {
    font-size: 10px;
    color: #6c757d;
    margin-right: 8px;
    transition: transform 0.2s ease;
    width: 12px;
    text-align: center;
}

.node-category h4 {
    margin: 0;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.category-count {
    background: #e9ecef;
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.palette-nodes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    max-height: 500px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.palette-nodes.collapsed {
    max-height: 0;
    padding: 0 8px;
    overflow: hidden;
    opacity: 0;
}

/* Scrollbar for palette nodes */
.palette-nodes::-webkit-scrollbar {
    width: 4px;
}

.palette-nodes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.palette-nodes::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.palette-nodes::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.palette-node {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
    -webkit-touch-callout: none;
}

.palette-node:hover {
    background: #e7f1ff;
    border-color: #007bff;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0,123,255,0.15);
}

.palette-node:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.palette-node-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 5px;
    margin-right: 10px;
    color: #6c757d;
    font-size: 12px;
    flex-shrink: 0;
}

.palette-node:hover .palette-node-icon {
    background: #007bff;
    color: #ffffff;
}

.palette-node-name {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Workflow Canvas Styles */
#workflow {
    flex: 1;
    position: relative;
    background: #ffffff;
    background-image: 
        radial-gradient(circle, #e9ecef 1px, transparent 1px);
    background-size: 20px 20px;
    overflow: hidden;
    margin-left: 280px; /* Make room for the fixed palette */
    height: 100vh;
}

/* Let Drawflow handle its own positioning and styling */

/* Minimal node styling that works with Drawflow */
/* Minimal Node Design */
.node-content-minimal {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 120px;
    max-width: 180px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    cursor: default;
}

.node-content-minimal:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.node-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #495057;
    font-size: 14px;
}

.node-name {
    font-size: 13px;
    font-weight: 500;
    color: #212529;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.node-menu-trigger {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 12px;
}

.node-content-minimal:hover .node-menu-trigger {
    opacity: 1;
}

.node-menu-trigger:hover {
    background: #f0f0f0;
    color: #495057;
}

/* Node Menu Dropdown */
.node-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.node-menu-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.node-menu-dropdown .menu-item {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #495057;
    transition: background 0.15s ease;
    font-family: inherit;
}

.node-menu-dropdown .menu-item:hover {
    background: #f8f9fa;
    color: #212529;
}

.node-menu-dropdown .menu-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.node-menu-dropdown .menu-item-danger {
    color: #dc3545;
}

.node-menu-dropdown .menu-item-danger:hover {
    background: #fee;
    color: #c82333;
}

/* Let Drawflow handle node type specific styling */

/* Let Drawflow handle its own connection styling */

/* Let Drawflow handle its own node styling */

/* Let Drawflow handle its own node content styling */

/* Let Drawflow handle its own node type styling */

/* Let Drawflow handle its own input/output and animation styling */

/* Let Drawflow handle its own animations */

/* Toolbar Styles */
.workflow-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border-right: 1px solid #e9ecef;
}

.toolbar-group:last-child {
    border-right: none;
}

.workflow-toolbar button {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #495057;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 40px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

.workflow-toolbar button:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.workflow-toolbar button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.zoom-level {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}


/* Responsive Design */
@media (max-width: 768px) {
    .node-palette {
        width: 100%;
        height: 200px;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    #workflow {
        margin-left: 0;
        height: calc(100vh - 200px);
    }
    
    .palette-nodes {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
    }
    
    .palette-node {
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .workflow-toolbar {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px;
        justify-content: center;
    }
}


/* ==================== TOOL NODE CONNECTION STYLES ==================== */

/* Nodes that accept tool inputs - add space at bottom */
.drawflow-node.has-tool-inputs {
    padding-bottom: 35px;
}

.drawflow-node.has-tool-inputs .node-content-minimal {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Tool input - the last input on nodes with tool inputs, positioned at bottom center */
.drawflow-node.has-tool-inputs .inputs .input.tool-input {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: -10px !important;
    transform: translateX(-50%) !important;
    background: #6f42c1 !important;
    border: 3px solid #9b59b6 !important;
    width: 20px !important;
    height: 20px !important;
    z-index: 10;
}

.drawflow-node.has-tool-inputs .inputs .input.tool-input:hover {
    background: #8e44ad !important;
    transform: translateX(-50%) scale(1.3) !important;
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.6);
}

/* Tool input label (below the node) */
.tool-input-label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    white-space: nowrap;
    color: #6f42c1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tool-input-label i {
    margin-right: 3px;
}

/* Tool nodes (nodes that connect to tool inputs) - add space at top */
.drawflow-node.is-tool-node {
    padding-top: 35px;
    border-color: #6f42c1;
}

.drawflow-node.is-tool-node .node-content-minimal {
    border-color: #6f42c1;
}

.drawflow-node.is-tool-node .node-content-minimal .node-icon-wrapper {
    color: #6f42c1;
}

/* Tool output - the last output on tool nodes, positioned at top center */
.drawflow-node.is-tool-node .outputs .output.tool-output {
    position: absolute !important;
    right: auto !important;
    left: 50% !important;
    top: -10px !important;
    transform: translateX(-50%) !important;
    background: #6f42c1 !important;
    border: 3px solid #9b59b6 !important;
    width: 20px !important;
    height: 20px !important;
    z-index: 10;
}

.drawflow-node.is-tool-node .outputs .output.tool-output:hover {
    background: #8e44ad !important;
    transform: translateX(-50%) scale(1.3) !important;
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.6);
}

/* Tool output label (above the node) */
.tool-output-label {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #6f42c1;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Output path labels for multi-output nodes (If/Else, Switch, etc.) */
.output-path-label {
    position: absolute;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}

/* Tool connection line style - purple dashed */
.drawflow .connection.tool-connection .main-path {
    stroke: #6f42c1 !important;
    stroke-width: 3px !important;
    stroke-dasharray: 8, 4 !important;
}

/* Style connections going to/from tool inputs/outputs */
.drawflow svg path[class*="node_in_node"][class*="input_"]:last-of-type,
.drawflow svg path[class*="node_out_node"][class*="output_"]:last-of-type {
    stroke: #6f42c1;
}

/* Tool node in palette */
.palette-node[data-node-class="tool_node"] {
    border-left: 3px solid #6f42c1;
}

.palette-node[data-node-class="tool_node"] .palette-node-icon {
    background: #6f42c1;
    color: white;
}


/* ==================== SUB-NODE CONNECTION STYLES ==================== */

/* Sub-node base styling */
.drawflow-node.is-subnode {
    border-radius: 20px;
    min-width: 120px;
}

.drawflow-node.is-subnode .node-content-minimal {
    border-radius: 16px;
    padding: 10px 15px;
}

/* Sub-node type colors */
.drawflow-node.subnode-embedding {
    border-color: #17a2b8 !important;
}

.drawflow-node.subnode-embedding .node-content-minimal {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #17a2b8;
}

.drawflow-node.subnode-embedding .node-icon-wrapper {
    background: #17a2b8;
}

.drawflow-node.subnode-memory {
    border-color: #28a745 !important;
}

.drawflow-node.subnode-memory .node-content-minimal {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #28a745;
}

.drawflow-node.subnode-memory .node-icon-wrapper {
    background: #28a745;
}

.drawflow-node.subnode-vectorstore {
    border-color: #fd7e14 !important;
}

.drawflow-node.subnode-vectorstore .node-content-minimal {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #fd7e14;
}

.drawflow-node.subnode-vectorstore .node-icon-wrapper {
    background: #fd7e14;
}

.drawflow-node.subnode-outputparser {
    border-color: #6c757d !important;
}

.drawflow-node.subnode-outputparser .node-content-minimal {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-color: #6c757d;
}

.drawflow-node.subnode-outputparser .node-icon-wrapper {
    background: #6c757d;
}

/* Sub-node inputs (on left side, different from tool inputs) */
.drawflow-node.has-subnode-inputs .inputs .input.subnode-input {
    background: #17a2b8 !important;
    border: 2px solid white !important;
    box-shadow: 0 0 5px rgba(23, 162, 184, 0.5);
}

.drawflow-node.has-subnode-inputs .inputs .input.subnode-input-embedding {
    background: #17a2b8 !important;
}

.drawflow-node.has-subnode-inputs .inputs .input.subnode-input-memory {
    background: #28a745 !important;
}

.drawflow-node.has-subnode-inputs .inputs .input.subnode-input-vectorstore {
    background: #fd7e14 !important;
}

.drawflow-node.has-subnode-inputs .inputs .input.subnode-input:hover {
    transform: translateX(-50%) scale(1.3) !important;
}

/* Sub-node outputs */
.drawflow-node.is-subnode .outputs .output.subnode-output {
    background: var(--subnode-color, #17a2b8) !important;
    border: 2px solid white !important;
    width: 14px !important;
    height: 14px !important;
    box-shadow: 0 0 5px rgba(23, 162, 184, 0.5);
}

.drawflow-node.is-subnode .outputs .output.subnode-output-embedding {
    background: #17a2b8 !important;
}

.drawflow-node.is-subnode .outputs .output.subnode-output-memory {
    background: #28a745 !important;
}

.drawflow-node.is-subnode .outputs .output.subnode-output-vectorstore {
    background: #fd7e14 !important;
}

.drawflow-node.is-subnode .outputs .output.subnode-output-outputparser {
    background: #6c757d !important;
}

.drawflow-node.is-subnode .outputs .output.subnode-output:hover {
    transform: translateX(-50%) scale(1.3) !important;
}

/* Sub-node input/output labels */
.subnode-input-label {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #17a2b8;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 4px;
}

.subnode-output-label {
    position: absolute;
    top: -24px;
    right: 10px;
    font-size: 12px;
    color: #17a2b8;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Sub-node in palette */
.palette-node[data-node-class^="subnode_"] {
    border-left: 3px solid #17a2b8;
}

.palette-node[data-node-class="subnode_embedding"] {
    border-left-color: #17a2b8;
}

.palette-node[data-node-class="subnode_memory"] {
    border-left-color: #28a745;
}

.palette-node[data-node-class="subnode_vectorstore"] {
    border-left-color: #fd7e14;
}

.palette-node[data-node-class="subnode_outputparser"] {
    border-left-color: #6c757d;
}

.palette-node[data-node-class^="subnode_"] .palette-node-icon {
    color: white;
}

.palette-node[data-node-class="subnode_embedding"] .palette-node-icon {
    background: #17a2b8;
}

.palette-node[data-node-class="subnode_memory"] .palette-node-icon {
    background: #28a745;
}

.palette-node[data-node-class="subnode_vectorstore"] .palette-node-icon {
    background: #fd7e14;
}

.palette-node[data-node-class="subnode_outputparser"] .palette-node-icon {
    background: #6c757d;
}

/* ==================== EXECUTION VISUALIZATION STYLES ==================== */

/* Execution states for nodes */
.drawflow-node.execution-pending {
    opacity: 0.6;
    border-color: #ffc107 !important;
}

.drawflow-node.execution-pending::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #ffc107;
    border-radius: 8px;
    animation: pulse-pending 1.5s infinite;
}

@keyframes pulse-pending {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.drawflow-node.execution-completed {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3), 0 4px 12px rgba(40, 167, 69, 0.2) !important;
}

.drawflow-node.execution-completed .node-content-minimal {
    background: #d4edda !important;
    border-color: #28a745 !important;
}

.drawflow-node.execution-completed .node-content-minimal .node-name {
    color: #155724 !important;
    font-weight: 600;
}

.drawflow-node.execution-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3), 0 4px 12px rgba(220, 53, 69, 0.2) !important;
}

.drawflow-node.execution-error .node-content-minimal {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
}

.drawflow-node.execution-error .node-content-minimal .node-name {
    color: #721c24 !important;
    font-weight: 600;
}

.drawflow-node.execution-skipped {
    opacity: 0.5;
    border-color: #6c757d !important;
}

.drawflow-node.execution-skipped .node-content-minimal {
    background: #e9ecef !important;
    border-color: #6c757d !important;
    opacity: 0.7;
}

/* Execution badge on nodes */
.execution-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.execution-badge:hover {
    transform: scale(1.1);
}

.execution-badge-completed {
    background: #28a745;
    color: white;
}

.execution-badge-error {
    background: #dc3545;
    color: white;
}

.execution-badge-skipped {
    background: #6c757d;
    color: white;
}

.execution-duration {
    font-size: 10px;
    opacity: 0.9;
}

/* Node Play Button for re-execution */
.node-play-btn {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: 2px solid white;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    padding: 0;
}

.node-play-btn:hover {
    background: #0056b3;
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 3px 10px rgba(0,123,255,0.4);
}

.node-play-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.node-play-btn i {
    margin-left: 2px; /* Optical center for play icon */
}

/* Start node highlight */
.execution-start-node {
    box-shadow: 0 0 0 3px #007bff, 0 4px 15px rgba(0,123,255,0.3) !important;
}

/* Connection path visualization */
.connection-dimmed {
    opacity: 0.2 !important;
    stroke: #adb5bd !important;
}

.connection-executed {
    opacity: 1 !important;
    stroke: #28a745 !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 4px rgba(40, 167, 69, 0.5));
}

.connection-not-executed {
    opacity: 0.4 !important;
    stroke: #dc3545 !important;
    stroke-dasharray: 8, 4 !important;
}

/* ==================== EXECUTION HISTORY PANEL STYLES ==================== */

.execution-history-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.history-toolbar {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.history-toolbar button {
    padding: 6px 12px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.history-toolbar button:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.btn-clear-all {
    color: #dc3545;
}

.btn-clear-all:hover {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.history-table-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.execution-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.execution-history-table thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.execution-history-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.execution-history-table td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.execution-row {
    transition: background 0.2s ease;
}

.execution-row:hover {
    background: #f8f9fa;
}

.exec-id {
    font-weight: 600;
    color: #6c757d;
}

.exec-status .status-completed {
    color: #28a745;
}

.exec-status .status-error {
    color: #dc3545;
}

.exec-status .status-running {
    color: #ffc107;
}

.exec-actions {
    display: flex;
    gap: 4px;
}

.btn-view-exec,
.btn-delete-exec {
    width: 28px;
    height: 28px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-view-exec:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-delete-exec:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.execution-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #6c757d;
}

.execution-history-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ==================== EXECUTION STATS STYLES ==================== */

.execution-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card.stat-wide {
    grid-column: span 2;
}

.stat-card.stat-success {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
}

.stat-card.stat-error {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #ffffff 100%);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 5px;
}

.stat-value.stat-small {
    font-size: 14px;
    font-weight: 500;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== NODE EXECUTION DETAILS MODAL ==================== */

.node-execution-details {
    padding: 15px;
}

.node-execution-details h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

.node-execution-details p {
    margin: 8px 0;
    font-size: 14px;
}

.node-execution-details .status-completed {
    color: #28a745;
    font-weight: 600;
}

.node-execution-details .status-error {
    color: #dc3545;
    font-weight: 600;
}

.node-execution-details .error-msg {
    background: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    color: #721c24;
}

.execution-data {
    margin-top: 15px;
}

.execution-data pre {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

/* ==================== EXECUTION SECTION STYLES ==================== */

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

.execution-section h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
}

.execution-section h5 i {
    margin-right: 8px;
    color: #6c757d;
}

.execution-details-section {
    margin-top: 8px;
}

.execution-details-section summary {
    cursor: pointer;
    font-size: 12px;
    color: #007bff;
    padding: 4px 0;
    user-select: none;
}

.execution-details-section summary:hover {
    text-decoration: underline;
}

.execution-pre {
    background: #ffffff;
    padding: 10px;
    border-radius: 4px;
    font-size: 11px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    margin-top: 8px;
}

/* Credential Info Styles */
.credential-info {
    font-size: 12px;
}

.credential-info p {
    margin: 6px 0;
    color: #495057;
}

.credential-fields {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.credential-fields strong {
    display: block;
    margin-bottom: 6px;
    color: #495057;
}

.credential-fields-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credential-fields-list li {
    padding: 4px 0;
    color: #6c757d;
    font-size: 11px;
}

.credential-fields-list li i {
    margin-right: 6px;
}

.text-success {
    color: #28a745;
}

/* Tool Parameters and Credential Styles */
.tool-parameters,
.tool-credential {
    margin-bottom: 10px;
    padding: 8px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.tool-parameters strong,
.tool-credential strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #495057;
}

.tool-parameters pre {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    font-size: 10px;
    max-height: 120px;
    overflow-y: auto;
    margin: 0;
    border: 1px solid #e9ecef;
}

.tool-credential {
    font-size: 11px;
    color: #6c757d;
}

.tool-credential small {
    display: block;
    margin-top: 4px;
    color: #868e96;
}

/* ==================== TOOL EXECUTION STYLES ==================== */

.tool-executions-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tool-executions-section h5 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.tool-executions-section h5 i {
    color: #6f42c1;
    margin-right: 8px;
}

.tool-executions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-execution-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #6f42c1;
}

.tool-execution-item.tool-status-error {
    border-left-color: #dc3545;
}

.tool-execution-item.tool-status-completed {
    border-left-color: #28a745;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tool-header strong {
    color: #495057;
    font-size: 13px;
}

.tool-duration {
    font-size: 11px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
}

.tool-type {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 8px;
    font-style: italic;
}

.tool-error {
    background: #f8d7da;
    color: #721c24;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.tool-details {
    margin-top: 8px;
}

.tool-details summary {
    cursor: pointer;
    font-size: 12px;
    color: #007bff;
    padding: 4px 0;
}

.tool-details summary:hover {
    text-decoration: underline;
}

.tool-arguments,
.tool-result {
    margin-top: 8px;
}

.tool-arguments strong,
.tool-result strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #495057;
}

.tool-arguments pre,
.tool-result pre {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    margin: 0;
}

/* AI Arguments Section - Highlighted display for AI generated parameters */
.ai-arguments-section {
    margin: 10px 0;
    padding: 10px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e8f8 100%);
    border: 1px solid #4a90d9;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.ai-arguments-section strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #0066cc;
}

.ai-arguments-section strong i {
    margin-right: 5px;
}

.ai-arguments-section .ai-args-pre {
    background: #ffffff;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #b8d4f0;
    margin: 0;
    color: #333;
}

/* Tool Configuration Section */
.tool-config-section {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.tool-config-section strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #495057;
}

.tool-config-section strong i {
    margin-right: 5px;
}

.tool-config-section pre {
    background: #ffffff;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    margin: 0;
}

/* ==================== TOOLBAR EXECUTE BUTTON STYLES ==================== */

.toolbar-execute .btn-execute {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border-color: #28a745 !important;
}

.toolbar-execute .btn-execute:hover {
    background: linear-gradient(135deg, #218838 0%, #1abc9c 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.toolbar-execute .btn-history {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%) !important;
    color: white !important;
    border-color: #6c757d !important;
}

.toolbar-execute .btn-history:hover {
    background: linear-gradient(135deg, #5a6268 0%, #868e96 100%) !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .workflow-container {
        background: #1a1a1a;
    }
    
    .node-palette {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .node-palette h3,
    .node-category h4,
    .palette-node-name {
        color: #e9ecef;
    }
    
    .node-search-input {
        background: #404040;
        border-color: #555555;
        color: #e9ecef;
    }
    
    .node-search-input:focus {
        background: #333333;
        border-color: #007bff;
    }
    
    .node-search-input::placeholder {
        color: #888888;
    }
    
    .node-search-icon {
        color: #888888;
    }
    
    .node-category {
        background: #333333;
        border-color: #404040;
    }
    
    .category-header {
        background: linear-gradient(135deg, #404040 0%, #333333 100%);
    }
    
    .category-header:hover {
        background: linear-gradient(135deg, #4a4a4a 0%, #404040 100%);
    }
    
    .category-count {
        background: #555555;
        color: #adb5bd;
    }
    
    .category-toggle-icon {
        color: #adb5bd;
    }
    
    .palette-node {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .palette-node:hover {
        background: #404040;
        border-color: #007bff;
    }
    
    .palette-node-icon {
        background: #404040;
        color: #adb5bd;
    }
    
    .palette-node:hover .palette-node-icon {
        background: #007bff;
        color: #ffffff;
    }
    
    .palette-nodes::-webkit-scrollbar-track {
        background: #333333;
    }
    
    .palette-nodes::-webkit-scrollbar-thumb {
        background: #555555;
    }
    
    .palette-nodes::-webkit-scrollbar-thumb:hover {
        background: #666666;
    }
    
    /* Dark mode minimal nodes */
    .node-content-minimal {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .node-content-minimal:hover {
        border-color: #007bff;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    
    .node-content-minimal .node-icon-wrapper {
        color: #adb5bd;
    }
    
    .node-content-minimal .node-name {
        color: #e9ecef;
    }
    
    .node-menu-trigger {
        color: #888888;
    }
    
    .node-menu-trigger:hover {
        background: #404040;
        color: #e9ecef;
    }
    
    .node-menu-dropdown {
        background: #2d2d2d;
        border-color: #404040;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    
    .node-menu-dropdown .menu-item {
        color: #e9ecef;
    }
    
    .node-menu-dropdown .menu-item:hover {
        background: #404040;
        color: #ffffff;
    }
    
    .node-menu-dropdown .menu-item-danger {
        color: #ff6b6b;
    }
    
    .node-menu-dropdown .menu-item-danger:hover {
        background: #4a1f1f;
        color: #ff8787;
    }
    
    /* Dark mode execution states for minimal nodes */
    .drawflow-node.execution-completed .node-content-minimal {
        background: #1e4d2e !important;
        border-color: #28a745 !important;
    }
    
    .drawflow-node.execution-completed .node-content-minimal .node-name {
        color: #90ee90 !important;
    }
    
    .drawflow-node.execution-error .node-content-minimal {
        background: #4d1f1f !important;
        border-color: #dc3545 !important;
    }
    
    .drawflow-node.execution-error .node-content-minimal .node-name {
        color: #ff8787 !important;
    }
    
    .drawflow-node.execution-skipped .node-content-minimal {
        background: #2d2d2d !important;
        border-color: #6c757d !important;
        opacity: 0.5;
    }
    
    /* Dark mode history panel */
    .history-toolbar {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .history-toolbar button {
        background: #404040;
        border-color: #555555;
        color: #e9ecef;
    }
    
    .history-toolbar button:hover {
        background: #555555;
    }
    
    .execution-history-table thead {
        background: #333333;
    }
    
    .execution-history-table th {
        color: #e9ecef;
        border-color: #404040;
    }
    
    .execution-history-table td {
        border-color: #404040;
    }
    
    .execution-row:hover {
        background: #404040;
    }
    
    .btn-view-exec,
    .btn-delete-exec {
        background: #404040;
        border-color: #555555;
        color: #e9ecef;
    }
    
    .stat-card {
        background: linear-gradient(135deg, #333333 0%, #2d2d2d 100%);
        border-color: #404040;
    }
    
    .stat-value {
        color: #e9ecef;
    }
    
    .node-execution-details {
        background: #2d2d2d;
        color: #e9ecef;
    }
    
    .node-execution-details h4 {
        color: #e9ecef;
    }
    
    .execution-data pre {
        background: #333333;
        border-color: #404040;
        color: #e9ecef;
    }
    
    /* Dark mode sub-node styles */
    .drawflow-node.subnode-embedding .node-content-minimal {
        background: linear-gradient(135deg, #1a3a4a 0%, #0d2836 100%);
        border-color: #17a2b8;
    }
    
    .drawflow-node.subnode-memory .node-content-minimal {
        background: linear-gradient(135deg, #1a3a1a 0%, #0d280d 100%);
        border-color: #28a745;
    }
    
    .drawflow-node.subnode-vectorstore .node-content-minimal {
        background: linear-gradient(135deg, #3a2a1a 0%, #281e0d 100%);
        border-color: #fd7e14;
    }
    
    .drawflow-node.subnode-outputparser .node-content-minimal {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
        border-color: #6c757d;
    }
    
    .subnode-input-label,
    .subnode-output-label {
        background: rgba(45, 45, 45, 0.95);
        color: #e9ecef;
    }
    
    .palette-node[data-node-class^="subnode_"] {
        background: #2d2d2d;
    }
    
    /* Dark mode output path labels */
    .output-path-label {
        background: #2d2d2d !important;
        border-color: #404040 !important;
    }
    
    /* Dark mode execution section styles */
    .execution-section {
        background: #333333;
        border-color: #404040;
    }
    
    .execution-section h5 {
        color: #e9ecef;
    }
    
    .execution-section h5 i {
        color: #adb5bd;
    }
    
    .execution-details-section summary {
        color: #4dabf7;
    }
    
    .execution-pre {
        background: #2d2d2d;
        border-color: #404040;
        color: #e9ecef;
    }
    
    .credential-info p {
        color: #e9ecef;
    }
    
    .credential-fields {
        border-color: #404040;
    }
    
    .credential-fields strong {
        color: #e9ecef;
    }
    
    .credential-fields-list li {
        color: #adb5bd;
    }
    
    .tool-parameters,
    .tool-credential {
        background: #333333;
        border-color: #404040;
    }
    
    .tool-parameters strong,
    .tool-credential strong {
        color: #e9ecef;
    }
    
    .tool-parameters pre {
        background: #2d2d2d;
        border-color: #404040;
        color: #e9ecef;
    }
    
    .tool-credential {
        color: #adb5bd;
    }
    
    .tool-credential small {
        color: #868e96;
    }
    
    /* Dark mode tool connection styles */
    .drawflow-node.has-tool-inputs .inputs .input.tool-input {
        background: #7b4bb8 !important;
        border-color: #9b59b6 !important;
    }
    
    .drawflow-node.has-tool-inputs .inputs .input.tool-input:hover {
        background: #8e44ad !important;
    }
    
    .drawflow-node.is-tool-node .outputs .output.tool-output {
        background: #7b4bb8 !important;
        border-color: #9b59b6 !important;
    }
    
    .drawflow-node.is-tool-node .outputs .output.tool-output:hover {
        background: #8e44ad !important;
    }
    
    .tool-input-label,
    .tool-output-label {
        background: rgba(45, 45, 45, 0.95);
        color: #9b59b6;
    }
    
    .drawflow-node.is-tool-node {
        border-color: #7b4bb8;
    }
    
    .palette-node[data-node-class="tool_node"] {
        border-left-color: #7b4bb8;
    }
    
    .palette-node[data-node-class="tool_node"] .palette-node-icon {
        background: #7b4bb8;
    }
    
    /* Dark mode tool execution styles */
    .tool-executions-section {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .tool-executions-section h5 {
        color: #e9ecef;
    }
    
    .tool-execution-item {
        background: #333333;
    }
    
    .tool-header strong {
        color: #e9ecef;
    }
    
    .tool-duration {
        background: #404040;
        color: #adb5bd;
    }
    
    .tool-type {
        color: #adb5bd;
    }
    
    .tool-error {
        background: #4a2832;
        color: #f8d7da;
    }
    
    .tool-details summary {
        color: #4dabf7;
    }
    
    .tool-arguments strong,
    .tool-result strong {
        color: #e9ecef;
    }
    
    .tool-arguments pre,
    .tool-result pre {
        background: #2d2d2d;
        border-color: #404040;
        color: #e9ecef;
    }
    
    /* Dark mode AI arguments section */
    .ai-arguments-section {
        background: linear-gradient(135deg, #1a3a5c 0%, #1e4976 100%);
        border-color: #4a90d9;
        border-left-color: #4dabf7;
    }
    
    .ai-arguments-section strong {
        color: #74c0fc;
    }
    
    .ai-arguments-section .ai-args-pre {
        background: #1a2a3a;
        border-color: #2c5282;
        color: #e9ecef;
    }
    
    .tool-config-section {
        background: #333333;
        border-color: #404040;
    }
    
    .tool-config-section strong {
        color: #e9ecef;
    }
    
    .tool-config-section pre {
        background: #2d2d2d;
        border-color: #404040;
        color: #e9ecef;
    }
    
    .node-execution-details {
        background: #2d2d2d;
        color: #e9ecef;
    }
    
    .node-execution-details h4 {
        color: #e9ecef;
    }
    
    .execution-data pre {
        background: #333333;
        border-color: #404040;
        color: #e9ecef;
    }
}

/* ==================== SELECTION & CLIPBOARD ==================== */

/* Selected nodes */
.drawflow-node.node-selected {
    box-shadow: 0 0 0 3px var(--bs-primary, #0d6efd), 0 0 12px rgba(13, 110, 253, 0.4) !important;
    z-index: 10;
}

.drawflow-node.node-selected .node-content-minimal {
    border-color: var(--bs-primary, #0d6efd);
}

/* Selection Box (Shift+drag) */
.selection-box {
    border: 2px dashed var(--bs-primary, #0d6efd);
    background: rgba(13, 110, 253, 0.1);
    border-radius: 4px;
    display: none;
}

/* ==================== CONTEXT MENU ==================== */

.context-menu {
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    box-shadow: var(--bs-box-shadow-lg);
    min-width: 180px;
    padding: 6px 0;
    display: none;
}

.context-menu-title {
    padding: 8px 14px;
    font-size: 11px;
    color: var(--bs-secondary, #6c757d);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    margin-bottom: 4px;
}

.context-menu-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--bs-body-color, #212529);
    transition: background 0.15s ease;
}

.context-menu-item:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-primary, #0d6efd);
}

.context-menu-item i {
    width: 16px;
    text-align: center;
    color: var(--bs-secondary, #6c757d);
}

.context-menu-item:hover i {
    color: var(--bs-primary, #0d6efd);
}

.context-menu-separator {
    height: 1px;
    background: var(--bs-border-color, #dee2e6);
    margin: 4px 0;
}

/* ==================== JSON DIALOG ==================== */

.json-dialog-overlay {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.json-dialog {
    background: var(--bs-body-bg, #fff);
    border-radius: 12px;
    box-shadow: var(--bs-box-shadow-lg);
    width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.json-dialog.json-dialog-wide {
    width: 800px;
}

.json-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.json-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.json-dialog-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.json-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.json-dialog-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.json-dialog-body p {
    margin: 0 0 12px 0;
    color: var(--bs-secondary-color, #6c757d);
}

.json-textarea {
    width: 100%;
    font-family: var(--bs-font-monospace);
    font-size: 12px;
    padding: 12px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    resize: vertical;
    background: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-body-color, #212529);
}

.json-textarea:focus {
    outline: none;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.json-dialog-info {
    margin-top: 12px;
    padding: 12px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    line-height: 1.6;
}

.json-dialog-info i {
    color: var(--bs-primary, #0d6efd);
}

.json-dialog-footer {
    padding: 16px 20px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* n8n Import Button */
.btn-n8n-import {
    background: linear-gradient(135deg, #ff6d5a, #ea4c4c) !important;
    border: none !important;
    color: #fff !important;
}

.btn-n8n-import:hover {
    background: linear-gradient(135deg, #ea4c4c, #d43d3d) !important;
}

/* Clipboard Indicator */
.clipboard-indicator {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 9999;
    display: none;
    box-shadow: var(--bs-box-shadow);
}

.clipboard-indicator.visible {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: wf-slide-in 0.3s ease;
}

@keyframes wf-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
