:root{
    --xYellow: #ffc600;
    --xInfo: rgba(255,193,7,1);
    --xInfoText: rgb(20,20,20);
    --xSky: #6ea8fe;

}

/* לדפדפני WebKit (Chrome, Safari) */
::-webkit-scrollbar {
    width: 8px; /* קבע רוחב צר יותר */
    height: 8px;
}

* {
    scrollbar-width: thin; /* הופך את סרגל הגלילה לדק יותר */
    /*scrollbar-color: #888 #f1f1f1;*/ /* צבע ידית אפור כהה, צבע רקע אפור בהיר */
}


.xWinDesktopMargin0 {
    top: 0 !important;
}

.xWinDesktopMargin1{
    top: 40px !important;
}

.xWinDesktopMargin2{
    top: 83px !important;
}

.xWinDesktopMargin3{
    top: 123px !important;
}

#xMainScreen{
    /*overflow-x: hidden;*/
}

a{
    text-decoration: none;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    margin-top: -5px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch
}


.centered-div {
    width: calc(100vw - 20px);
    height: calc(100vh - 116px);
    background-color: #2b3035;
    padding: 10px;
    padding-top: 20px;
    overflow: auto;
    box-shadow: 0 0 10px 5px rgba(255,255,255,0.3);
    border: 1px solid #000;
    scrollbar-width: thin;
}

.full-screen-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    position: relative;

}

#xLogoMenu{
    height: 25px;
    float: left;
    margin: 5px 5px 5px 0;
}

.xAlert{
    min-width: 300px;
    max-width: 75%;
    border-radius: 0;
}

.alert-dismissible {
    padding-left: 1rem !important;
}

.xPointer {
    cursor: pointer !important;
}

.xMenuStatus{
    inset-inline-end: 10px;
    top:10px;
    z-index: 10;
}

.xMainMenuListButtons {
    inset-inline-end: 10px;
    top: 10px;
    right: 135px;
    cursor: pointer;
    z-index: 10;
}

.xMainMenuButton:hover i {
    color: var(--bs-yellow) !important;
}

.xButtonUnconnected{
    inset-inline-end: 10px;
    top:10px;
    cursor: pointer;
    z-index: 10;
}

.xButtonUnconnected:hover i{
    color: var(--bs-pink) !important;
}

.xWin,.xWinDesktop{
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background-color: var(--bg-body-tertiary);
    padding: 15px 10px;
    overflow:hidden;
    padding: 0 0;
}

.xWinDesktop{
    overflow-y: auto;
    padding: 15px 7px;
}

.xMenuItemActive,.xWinMenuItemActive{
    color: var(--xYellow) !important;
}


#xMainMenu .nav-underline .nav-link,
.xWinMenu .nav-underline .nav-link,
.xWinMenuSub .nav-underline .xWinMenuSub{
    transition: none !important;
}

#xMainMenu .nav-underline .nav-link:hover,
.xWinMenu .nav-underline .nav-link:hover,
.xWinMenuSub .nav-underline .nav-link:hover{
    color: var(--xYellow) !important;
    border: none;
}

.xWinMenu{
    background-color: #636669;
    padding: 0 11px;
    height: 41px;
}

.xWinMenuSub{
    display: none;
    margin-top: -16px;
    background-color: #636669;
    padding: 0 11px;
    border-bottom: 1px solid #000;
    height: 41px;
}

#xMainMenu .nav span{
    display: inline-block;
    position: relative;
    padding-left: 3px;
    padding-right: 3px;
}

.xSpiner {
    width: 16px;
    height: 16px;
    border: 1px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
#xMainMenu .xSpiner {
    position: absolute !important;
    left: -12px;
    top: 15px;
    width: 12px;
    height: 12px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.x-error{
    position: absolute;
    right: 0px;
    top: -26px;
    color: #dc3545;
    padding: 0px 24px 0px 6px;
    background-color: antiquewhite;
}


.form-help-hover{
    float: left;
}

/**
* help info
**/

.form-help .from-help-text{
    display: none;
    padding: 5px;
    right: -5px;
    bottom: -6px;
    border: 1px solid gray;
    font-size: 11px;
    background-color: var(--xInfo) !important;
    color: var(--xInfoText);
    position: absolute;
    min-width: 123px;
    direction: revert;
}

.form-help{
    font-size: 9px;
    background-color: var(--xInfo);
    color: var(--xInfoText) !important;
    padding: 0 5px;
    border-radius: 100px;
    top: -21px;
    right: 5px;
    position: absolute;
    cursor: help;
    z-index: 2;
}

.form-help:hover .from-help-text{
    display: block;
}

/**
* End help info
**/

.x-password-meter {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 30%;
    bottom: 2px;
    z-index: 1001;
}

.x-password-meter .progress{
    direction: rtl;
}


.xTitleCenter {
    margin-bottom: -8px;
    font-size: min(14vw, 4rem);
    color: #40E0D0 !important;
    font-weight: bold;
    -webkit-text-stroke: 2px rgba(0,0,0,0.3);
    text-stroke: 2px rgba(0,0,0,0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.xSubTitleCenter {
    margin-bottom: 0;
    font-size: min(7vw, 2rem);
    color: #FFFF00 !important;
    font-weight: bold;
    -webkit-text-stroke: 2px rgba(0,0,0,0.3);
    text-stroke: 2px rgba(0,0,0,0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border-top: 1px solid lightslategray;
}

.xTime{
    position: relative;
}

.xTime .xSpiner{
    top: 5px;
    position: absolute;
    left: 20px;
}

.xTitlePage{
    margin: 0 !important;
    background-color: #6969695c;
    border-bottom: 1px solid darkkhaki;
    font-size: 1.2rem;
    font-weight: bold;
    color: tan;
    padding: 8px;
}

.xTitlePage i {
    color: #ffc60091;
}

.xWinClose{
    right: 9px;
    top: 8px;
}


/* Selected files */

/* Custom styling for the file input label/button */


/* Custom styling for the file input label/button to make it square and styled */
.custom-file-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 40px; /* קבוע כמו בורר צבעים מרובע */
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, border 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
    border: 2px dashed transparent; /* גבול מקווקו שקוף כברירת מחדל */
    background-color: #ff8c00; /* צבע כתום מותאם אישית */
    color: #2c3e50; /* צבע טקסט כהה */
}
.custom-file-trigger:hover {
    transform: translateY(-2px);
    background-color: #e67e00; /* כהה יותר בלחיצה */
}
/* Style for when a file is dragged over the drop zone */
.custom-file-trigger.drag-over {
    border-color: #ffc600; /* צבע גבול בעת גרירה */
    background-color: rgba(255, 198, 0, 0.2); /* רקע שקוף יותר */
    transform: scale(1.05);
}
.selected-files-list {
    margin-top: 15px;
    padding: 10px;
    background-color: #343a40; /* Bootstrap dark background */
    border-radius: 8px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #495057; /* Darker border */
}
.selected-files-list p {
    font-size: 0.9rem;
    color: #adb5bd; /* Bootstrap secondary text */
}
.selected-files-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.selected-files-list li {
    background-color: #212529; /* Bootstrap darker background */
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #f8f9fa; /* Bootstrap light text */
    border: 1px solid #343a40; /* Darker border */
}
.selected-files-list li:last-child {
    margin-bottom: 0;
}

.remove-file-btn:hover {
    background-color: #c82333;
}


/* End selected files */


.xTableParent{
    position: relative;
}

.xButtonSm{
    padding: 1px 2px;
    border: 1px solid rgba(255,255,255,0.3);
}


.tabulator-menu .tabulator-menu-item{
    width: 150px;
}

.xParentDivRelative {
    display: flex;
    align-items: center; /* יישור אנכי למרכז */
    gap: 4px; /* מרווח בין האלמנטים */
    justify-content: flex-start; /* יישור אופקי לשמאל */
    direction: rtl; /* קובע את כיוון האלמנטים */
}

.xParentDivRelative button,
.xParentDivRelative select {
    vertical-align: middle;
    border: 1px solid rgba(255,255,255,0.3);
    padding:0px 2px 3px 2px;
}

.xTable .xTableCheckboxHeaderCell{
    text-align: center !important;
}

.xTable .xTableCheckboxHeaderCell .tabulator-header-popup-button{
    float: left;
}

.xTable .xTableCheckboxHeaderCell .tabulator-col-title input {
    margin-left: -20px;
}

.tabulator-row.tabulator-selected {
    background-color: #34576c;
}

.tabulator-row {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* This rule is more specific and should work */

.tabulator.tabulator-rtl .tabulator-row .tabulator-cell:last-of-type,
.tabulator.tabulator-rtl .tabulator-header .tabulator-col:last-of-type {
    border-left: 1px solid transparent !important; /* Use !important as a last resort */
}

.tabulator .tabulator-footer{
    border-top: 1px solid rgba(255,255,255,0.3);
}

.xTable {
    border: 1px solid rgba(255,255,255,0.3);
}

.tabulator-row:last-child {
    border: unset;
}

.nav-underline .nav-link{
    padding-left: 4px;
    padding-right: 4px;
}

.nav-underline {
    --bs-nav-underline-gap: 0.6rem;
}

.xLtr{
    text-align: left;
    direction: ltr;
}

.xLtrBlock{
    text-align: left;
    direction: ltr;
    display: inline-block;
}

.xRtl{
    text-align: right;
    direction: rtl;
}

.xRtlBlock{
    text-align: right;
    direction: rtl;
    display: inline-block;
    float: right;
}

fieldset {
    border: 1px solid #5d5e60;
    padding: 19px 0;
    border-radius: 0.25rem;
    position: relative;
    border-radius: 0 !important;
    margin-left: unset !important;
    margin-right: unset !important;
    margin-top: 30px !important;
}

legend {
    font-size: 15px;
    position: absolute;
    top: -18px;
    display: inline-block;
    background-color: darkslategray;
    width: auto !important;
    margin: 0 12px;
    padding: 5px 7px !important;
    right: 0;
    border: 1px solid #5d5e60;
    min-width: 130px;
    text-align: center;
}

.xMap{
    height: 500px;
    width: 100%;
}

.xBreadcrumb{
    padding: 4px 7px;
    background-color: dimgray;
    border-bottom: 1px solid lightsteelblue;
}

.xFileManagerParent .table-responsive{
    min-height: 400px;
    background-color: #212529;
    border: solid 1px #495057;
}

.xBreadcrumb .breadcrumb{
    margin: 0;
}

.xBreadcrumb .breadcrumb-item + .breadcrumb-item::before {
    float: left;
    padding-right: 5px;
    padding-left: 5px;
    color: var(--bs-breadcrumb-divider-color);
    content: var(--bs-breadcrumb-divider, "/");
}

.xFileManagerParent table{
    margin-bottom: 0 ;
}

.xBreadcrumb span:hover{
    color: #0e1e27;
}

.xBreadcrumb nav li:last-child{
    color: #0e1e27;
}

.xFileManagerParent table tr:hover td,
.xFileSelected td{
    background-color: rgb(22, 36, 49);
}

.xFileSelected td:nth-child(2) a{
    color: rgba(255, 255, 0, 0.5);
}


.xParent {
    /*padding-left: unset !important;
    padding-right: unset !important;
    margin-right: auto;
    margin-left: auto;
    width: calc(100% - 20px);*/
}

.xFileManagerTable{
    height: 500px;
    overflow-y: auto;
}

.xFileManagerTable thead th{
    background-color: #111d27;
    border-bottom: 1px solid #fff !important;
}

.xAlertDialog {
    width: calc(100% - 50px);
    height: calc(100% - 50px);
    max-width: unset;
    max-height: unset;
}

.xAlertDialogDesktop{
    position: absolute;
    top: 80px;
    bottom: 74px;
    left: 17px;
    font-size: 14pt;
    right: 17px;
    width: auto;
}

.xAlertDialogDesktop .xParent{
    margin-right: unset;
    margin-left: unset;
    width:100%;
}

.alert-desk{
    background-color: #1a1d20;
    border: 1px solid darkgray;
}

.btn-outline-desk {
    border: 1px solid darkgray;
}

.btn-outline-desk:hover{
    background-color: darkgray;
    color: #1d1d1d;
}

.xParentButton{
    position: absolute;
    right: 17px;
    bottom: 11px;
    left: 17px;
}

.context-menu {
    display: block;
    top: 471px;
    left: 794px;
    background-color: rgb(43,42,51);
    border: 1px solid rgb(143,143,157);
    width: 200px;
    padding: 0;
    z-index: 100000;
}

.context-menu ul {
    list-style-type: none;
    padding: 0; /* מומלץ לאפס ריפוד */
    margin: 0;  /* מומלץ לאפס שוליים */
}

.context-menu ul li{
    cursor: pointer;
}

.context-menu ul li:hover{
    background-color: rgb(82,82,94);
}

.xTableButton button {
    white-space: nowrap;
    overflow: visible;
    height: auto;
}

/* גלילה ימין שמאל ללא הצגת הסקרול */
.MainButtonScroll{
    overflow-y: hidden;
    display: flex;
    overflow-x: scroll;
    flex-wrap: nowrap;
    width: calc(100% - 109px);
    gap: 5px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: 109px;}

.MainButtonScroll::-webkit-scrollbar {
    display: none;
}

.xTitleIcon{
    padding-right: 5px;
}


/* xBox1...xBox4 הגדרת קופסאות, יש 4 גרסאות צבע */
/* שימוש */
/* xBox xBox1 */

.xBox {
    background-color: #2B2D3E;
    padding: 25px 20px;
}

.xShadow {
    box-shadow: 0px 1px 15px 1px rgba(69, 65, 78, 0.08);
}

.xBox {
    padding-top: 10px;
    padding-bottom: 10px;
    text-shadow: 0 1px 1px 1px #666;
    box-shadow: 0px 1px 15px 1px rgba(69, 65, 78, 0.08);
    position: relative;
    border-radius: 5px;
}

.xBox .details {
    position: absolute;
    color: #fff;
    transform: scale(0.7) translate(-22px, 20px);
}

.xSparkBoxes strong {
    position: relative;
    z-index: 3;
    top: -8px;
    color: #fff;
}


.xBox1 {
    background-image: linear-gradient( 135deg, #ABDCFF 10%, #0396FF 100%);
}

.xBox2 {
    background-image: linear-gradient( 135deg, #2AFADF 10%, #4C83FF 100%);
}

.xBox3 {
    background-image: linear-gradient( 135deg, #FFD3A5 10%, #FD6585 100%);
}

.xBox4 {
    background-image: linear-gradient( 135deg, #EE9AE5 10%, #5961F9 100%);
}

.xBox h1,
.xBox h2,
.xBox h3,
.xBox h4,
.xBox h5,
.xBox h6,
.xBox strong {
    font-weight: 600;
}

/* End */

/* רכיב תגיות כפתור */

.xInputTagsContainer {
    border: 1px solid #495057;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    background-color: #212529;
    padding: 10px 6px 10px 5px;
}
.xInputTags {
    display: inline-flex;
    align-items: center;
    background-color: #031633;
    color: white;
    padding: .25rem .5rem;
    border-radius: .25rem;
    position: relative;
}
.xInputTags .bi-x-circle {
    margin-left: .5rem;
    cursor: pointer;
    color: #ee8c8c;;
}
.xInputTagsField {
    border: none;
    flex-grow: 1;
    min-width: 150px;
    background-color: #212529;
}
.xInputTagsField:focus {
    outline: none;
    box-shadow: none;
}

/* End */



.tabulator .tabulator-tableholder .tabulator-table {
    color: #b3b3b3;
}

.tabulator .tabulator-header .tabulator-col {
    background-color: #1c1f22;
    height: 45px;
}

.tabulator-row {
    background-color: #25292d;
}

.tabulator-row.tabulator-row-even {
    background-color: #2c3033;
}

.tabulator .tabulator-header {
    color: #b3b3b3;
}

.tabulator-row.tabulator-row-even.tabulator-selected,
.tabulator-row.tabulator-selected {
    background-color: #212e35;
}

@media (hover: hover) and (pointer: fine) {
    .tabulator-row.tabulator-selectable:hover {
        background-color: #3b4248;
    }
}

.tabulator-header{
    height: 46px;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 11px 4px;
}

.tabulator .text-success {
    --bs-text-opacity: 1;
    color: rgb(67, 162, 118) !important;
}

.tabulator .text-danger {
    --bs-text-opacity: 1;
    color: rgb(244, 89, 89);
}

select option{
    color: rgb(151, 151, 151);
}

.form-select option:focus,
select:checked option,
select:focus option,
.form-select:focus option,
select option:focus,
select option:checked{
    color: rgb(151, 151, 151) !important;
    background-color: rgba(151, 151, 151,0.4) !important;
}


.tabulator-cell.xLtrCell {
    direction: ltr;
    text-align: left;
}

.tabulator-cell.xRtrCell {
    direction: rtl;
    text-align: right;
}

select.xUiMultiple{
    height: auto !important;
    max-height: 250px;
}

/* lebel צף */
/* אם עושה בעיות, מוגדר לתת לו צבע אטום */
/* גובה קבוע מיקום קבוע */
.xUiSelect label {
    top: 9px;
    height: 28px;
    background-color: #212529;
    padding: 0 3px;
    margin: 0 4px;
}


.text-truncate-flex {
    white-space: nowrap;       /* שורה אחת בלבד */
    overflow: hidden;          /* להסתיר מעבר */
    text-overflow: ellipsis;   /* להראות '...' */
    display: block;
    width: 100%;               /* תופס את כל הרוחב שנותר */
    box-sizing: border-box;    /* כל השוליים בפנים */
}

.xAlertBody hr {
    border-style: dashed;
}

/* xChat */

.xChat {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #000;
    background-color: #2b3035;
    padding: 2px;
    overflow: hidden;
    background-image: url("/img/bg1.jpg");
}

.xChatDesktop {
    position: absolute;
    top: 78px;
    left: 10px;
    right: 10px;
    bottom: 115px;
    padding-left: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

.xChatBubble {
    background-color: #161616;
}

.xChatMsgNew{
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: 10px;
    height: 200px;
}

@media (min-width: 601px) {
    .xChatBubble {
        min-width: 30%;
    }
}

.xMsgRow:hover {
    background-color: var(--bs-dark-bg-subtle) !important;
}

.xMsgRow {
    cursor: pointer;
}