/********** Add Your Global CSS Here **********/

body {
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
  margin: 0;
}

html h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
li,
input,
textarea,
span,
div,
body {
  margin-bottom: 0;
  font-family: 'Open Sans', sans-serif; /*'Roboto', sans-serif;*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
}

html ul {
  margin-bottom: 0;
}
.tox .tox-notification p {
  white-space: pre;
}
.scrollbar-track-y,
.scrollbar-thumb-y {
  width: 5px !important;
}

.scrollbar-track-x,
.scrollbar-thumb-x {
  height: 5px !important;
}

.scrollbar-track {
  background: rgba(222, 222, 222, 0.15) !important;
}

.scrollbar-thumb {
  border-radius: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

.ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow:after,
.ant-popover-placement-bottomLeft
  > .ant-popover-content
  > .ant-popover-arrow:after,
.ant-popover-placement-bottomRight
  > .ant-popover-content
  > .ant-popover-arrow:after,
.ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow:after,
.ant-popover-placement-topLeft
  > .ant-popover-content
  > .ant-popover-arrow:after,
.ant-popover-placement-topRight
  > .ant-popover-content
  > .ant-popover-arrow:after {
  left: 0;
  margin-left: -4px;
}

/********** Add Your Global RTL CSS Here **********/

/* Popover */

html[dir='rtl'] .ant-popover {
  text-align: right;
}

/* Ecommerce Card */

html[dir='rtl'] .isoCardInfoForm .ant-input {
  text-align: right;
}

/* Modal */

html[dir='rtl'] .has-success.has-feedback:after,
html[dir='rtl'] .has-warning.has-feedback:after,
html[dir='rtl'] .has-error.has-feedback:after,
html[dir='rtl'] .is-validating.has-feedback:after {
  left: 0;
  right: auto;
}

html[dir='rtl'] .ant-modal-close {
  right: inherit;
  left: 0;
}

html[dir='rtl'] .ant-modal-footer {
  text-align: left;
}

html[dir='rtl'] .ant-modal-footer button + button {
  margin-left: 0;
  margin-right: 8px;
}

html[dir='rtl'] .ant-confirm-body .ant-confirm-content {
  margin-right: 42px;
}

html[dir='rtl'] .ant-btn > .anticon + span,
html[dir='rtl'] .ant-btn > span + .anticon {
  margin-right: 0.5em;
}

html[dir='rtl'] .ant-btn-loading span {
  margin-left: 0;
  margin-right: 0.5em;
}

html[dir='rtl']
  .ant-btn.ant-btn-loading:not(.ant-btn-circle):not(.ant-btn-circle-outline) {
  padding-left: 25px;
  padding-right: 29px;
}

html[dir='rtl']
  .ant-btn.ant-btn-loading:not(.ant-btn-circle):not(.ant-btn-circle-outline)
  .anticon {
  margin-right: -14px;
  margin-left: 0;
}

/* Confirm */

html[dir='rtl'] .ant-modal.ant-confirm .ant-confirm-body > .anticon {
  margin-left: 16px;
  margin-right: 0;
  float: right;
}

html[dir='rtl'] .ant-modal.ant-confirm .ant-confirm-btns {
  float: left;
}

html[dir='rtl'] .ant-modal.ant-confirm .ant-confirm-btns button + button {
  margin-right: 10px;
  margin-left: 0;
}

/* Message */

html[dir='rtl'] .ant-message .anticon {
  margin-left: 8px;
  margin-right: 0;
}

/* Pop Confirm */

html[dir='rtl'] .ant-popover-message-title {
  padding-right: 20px;
  padding-left: 0;
}

html[dir='rtl'] .ant-popover-buttons {
  text-align: left;
}

/* Notification */

html[dir='rtl']
  .ant-notification-notice-closable
  .ant-notification-notice-message {
  padding-left: 24px;
  padding-right: 0;
}

html[dir='rtl']
  .ant-notification-notice-with-icon
  .ant-notification-notice-message,
html[dir='rtl']
  .ant-notification-notice-with-icon
  .ant-notification-notice-description {
  margin-right: 48px;
}

html[dir='rtl'] .ant-notification-notice-close {
  right: auto;
  left: 16px;
}

html[dir='rtl'] .ant-notification-notice-with-icon {
  left: 0;
}

.ant-notification
  .ant-notification-notice-wrapper
  .ant-notification-notice-closable
  .ant-notification-notice-message {
  padding-right: 20px;
}

/* Dropzone */

html[dir='rtl'] .dz-hidden-input {
  display: none;
}

body h3 {
  font-size: 18px;
}
.highlighted {
  border-radius: 5px;
  background: #bccef7;
  font-style: normal;
  color: #5a5b5c;
}

.react-pdf-viewer {
  margin: auto;
  width: 100%;
  /* padding: 10px; */
  box-shadow: 3px 3px 5px 4px #ccc;
  margin-top: 1px;
  /* margin-bottom: 10px; */
}

.react-pdf__Page__svg {
  display: block;
  user-select: none;
  width: 100% !important;
  height: auto !important;
}

.react-pdf__Page__svg > svg {
  width: 100%;
  height: 100%;
}

.page-controls {
  position: absolute;
  bottom: 5%;
  left: 50%;
  background: white;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity ease-in-out 0.2s;
  box-shadow: 0 30px 40px 0 rgb(16 36 94 / 20%);
  border-radius: 4px;
}
.page-controls button:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.page-controls button {
  width: 44px;
  height: 44px;
  background: white;
  border: 0;
  font: inherit;
  font-size: 0.8em;
  border-radius: 4px;
}
.page-controls span {
  font: inherit;
  font-size: 0.8em;
  padding: 0 0.5em;
}

.react-pdf-viewer:hover ~ .page-controls {
  opacity: 1;
}

.page-controls:hover {
  opacity: 1;
}

.page-controls button:hover {
  background: whitesmoke;
}
.page-controls button:focus {
  outline: none;
}
a.ant-upload-list-item-name {
  color: #1890ff;
  text-decoration: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.ant-upload-list-item-name-icon-count-1 {
  padding-right: 0px;
  padding-left: 0px;
}

.ant-upload-list-item-info > span {
  display: block;
  width: 100%;
  height: 100%;
  color: #22b9ff;
}

.ant-upload-list-item-info {
  height: 100%;
  padding: 0 12px 0 4px;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
  background-color: whitesmoke;
}
.ant-typography {
  font-size: 14px;
}
.ant-btn-primary {
  border-radius: 4px !important;
  border-color: none !important;
}

.buttom-circle-class-mobile {
  border-radius: 50% !important;
}

.ocr-view {
  min-height: 1000px;
  padding: 25px;
}

.tab-badge {
  margin-left: 3px;
}
.mce-panel-msg {
  border: 0 solid #a02424;
  /* border: 0 solid #c5c5c5; */
  /* background-color: #fff; */
  border-width: 0px 0px 0px;
}

.tox-tinymce-aux {
  z-index: 40000 !important;
}

.tox-notification--warning {
  display: none !important;
}
.new-entity-text {
  background-color: #1890ff;
  color: white;
  border-radius: 3px;
  padding: 2px 4px;
}

span.field-label {
  font-size: 0.7em;
  font-weight: 500;
  margin-left: 6px;
}

/*   Début style scroll de table ant design       */
/* width */
.ant-table-body::-webkit-scrollbar {
  width: 5px;
}

/* Track */
.ant-table-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.ant-table-body::-webkit-scrollbar-thumb {
  background: #bcbbbb;
}

/* Handle on hover */
.ant-table-body::-webkit-scrollbar-thumb:hover {
  background: #9a9797;
}
/*   Fin style scroll de table ant design       */

#layout-content-champ-intelligents-class-left {
  box-shadow: rgb(60 64 67 / 15%) -3px 0px 8px 0px;
}

#layout-content-champ-intelligents-class-right {
  box-shadow: rgb(60 64 67 / 15%) -3px 0px 8px 0px;
  margin-right: 2px;
}

/*   Début style scroll de Div className "scroll-bar-standarise-app"       */
/* width */
.scroll-bar-standarise-app::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
.scroll-bar-standarise-app::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.scroll-bar-standarise-app::-webkit-scrollbar-thumb {
  background: #bcbbbb;
}

/* Handle on hover */
.scroll-bar-standarise-app::-webkit-scrollbar-thumb:hover {
  background: #9a9797;
}
/*   Fin style scroll de Div        */

/*   Début style scroll de Div className "infinite-scroll-component"       */
/* width */
.infinite-scroll-component::-webkit-scrollbar {
  width: 5px;
}

/* Track */
.infinite-scroll-component::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.infinite-scroll-component::-webkit-scrollbar-thumb {
  background: #bcbbbb;
}

/* Handle on hover */
.infinite-scroll-component::-webkit-scrollbar-thumb:hover {
  background: #9a9797;
}
/*   Fin style scroll de Div        */

span.ant-select-selection__clear {
  margin-right: 10px;
}

/* .ant-tour .ant-tour-inner, .ant-tour .ant-tour-arrow:before, .ant-tour .ant-tour-inner .ant-tour-close {
  background-color: #424343;
  color: #fff;
} */

.class-position-style .ant-pagination .ant-select {
  position: inherit;
}

.class-position-style .ant-pagination .ant-select-dropdown {
  position: fixed;
}

button.tox-button.tox-button--icon.tox-button--naked.tox-browse-url {
  display: none;
}

/* .ant-table-thead > tr > th {
  border-right: 1px solid #E4E6E9;
} */

.ant-table-thead > tr > .ant-table-cell::after {
  position: absolute;
  top: 50%;
  inset-inline-end: 0;
  width: 1px;
  height: 75%;
  background-color: #e4e6e9;
  transform: translateY(-50%);
  transition: background-color 0.2s;
  content: '';
}

.ant-table-thead > tr > th:last-child {
  border-right: none;
}
.custom-row td:last-child {
  border-right: none;
}

/** Custom **/

.isoRight {
  margin: 0;
}

.topbar-notif-el {
  margin: auto !important;
  width: 80% !important;
}

.isoDropdownListItem .topbar-notif-el p {
  margin: 0;
}

.ant-btn-primary {
  background-color: #1890ff !important; /* Set your primary color */
  border-color: #1890ff !important; /* Ensure border matches */
  color: white !important; /* Text color */
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background-color: #40a9ff !important; /* Slightly lighter on hover */
  border-color: #40a9ff !important;
}

.buttonSetAsCurrentStatus {
  background-color: #1890ff !important; /* Set your primary color */
  border-color: #1890ff !important; /* Ensure border matches */
  color: white !important; /* Text color */
}

.buttonSetAsCurrentStatus:hover,
.buttonSetAsCurrentStatus:focus {
  background-color: #40a9ff !important; /* Slightly lighter on hover */
  border-color: #40a9ff !important;
}

.buttonStyleDisabled {
  background-color: #f9f9f9f9 !important;
  color: #cac7c7 !important;
  border: 1px solid #d9d9d9d9 !important;
}

.ant-btn-primary:disabled {
  background-color: #f9f9f9f9 !important;
  color: #cac7c7 !important;
  border: 1px solid #d9d9d9d9 !important;
}

.add-new-btn-module {
  /* max-width: 100%; */
  margin-left: 10px;
}

.add-new-btn-module > ion-android-add {
  margin-right: 5px;
}

/* .tags-tree-side-bar {
  width: 100% !important;
  display: block !important;
  margin-top: 16px !important;
  text-align: center !important;
} */
.bibliotheque-container {
  width: 100%;
  padding: 20px 0;
}

.center-horizontally-vertically {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.modal-list {
  margin-top: 25px;
  background-color: whitesmoke;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  padding: 10px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-list > div {
  border-bottom: 1px solid #636363;
  padding: 8px 12px;
}

.modal-list > div:last-child {
  border-bottom: none;
}

.contract-tags-side-bar {
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

.bibliotheque-container {
  width: 100%;
  padding: 20px 0;
}
