/****************************** CUSTOMS **************************************/
:root {
  --bs-dark: black;
  --bs-light: white;
  --bs-primary-button-color: #218bd3;
  --bs-primary-button-border-color: #1e7ebe;
  --bs-sidebar-main-color: #112d5a;
  --bs-sidebar-link-hover-color: #133772;
  --bs-sidebar-link-selected-color: #163f81;
  --bs-border-radius-sm: 6px;
  --bs-font-color: #656669;
  --ad-font-size: 14px;
  --ad-font-size-plus: 1.05rem;
  --ad-font-size-less: 0.8rem;
  --ad-font-size-mini: 0.6rem;
  --ad-font-size-menu: 14px;
  --ad-font-size-super: 1.25rem;
  --ad-menu-item-color: #4d93ff;
  --ad-menu-size: 300px;
}

[data-bs-theme="light"] {
  --bs-dark-bg-subtle: #f4f6f9;
}

label {
  color: var(--bs-font-color);
  margin-bottom: 2px;
  font-weight: 600;
}

.tab-name {
  font-weight: 600;
}

iframe {
  background: white;
  border-radius: var(--bs-border-radius);
}

* {
  --scrollbar-width: thin;
  --scrollbar-width-legacy: 10px;
}

/* Modern browsers with `scrollbar-*` support */
@supports (scrollbar-width: auto) {
  * {
    scrollbar-width: var(--scrollbar-width);
  }
}

/****************************** BLOCKQUOTE **************************************/
blockquote {
  border-left: 5px solid var(--bs-secondary-border-subtle);
  border-left-style: solid;
  border-left-width: 5px;
  font-size: 17.5px;
  padding: 10px 20px;
}

/******************************** FIELDLIST **************************************/
.form-select {
  font-size: 14px !important;
}

/********************************* BUTTONS ***********************************/

.btn {
  cursor: pointer;
  white-space: nowrap;
}

.btn {
  --bs-btn-font-size: var(--ad-font-size);
  --bs-btn-active-border-color: rgba(0, 0, 0, 0.175);
}

.btn-lg {
  --bs-btn-font-size: var(--ad-font-size-super);
}

/** btn cadastrar **/
.inline-button {
  position: absolute !important;
  box-shadow: none !important;
}

[data-bs-theme="light"] .btn-default {
  background-color: white;
  border-color: var(--bs-border-color);
  color: #666;
}

[data-bs-theme="dark"] .btn-default {
  background-color: #212529;
  border-color: var(--bs-border-color);
  color: white;
}

[data-bs-theme="light"] .btn-primary {
  background-color: var(--bs-primary-button-color);
  border-color: var(--bs-primary-button-border-color);
  color: white;
}

[data-bs-theme="dark"] .btn-primary {
  background-color: #1c1f23;
  border-color: var(--bs-border-color);
  color: #fff;
}

[data-bs-theme="light"] .btn-default:hover,
[data-bs-theme="light"] .btn-default:active,
[data-bs-theme="light"] .btn-default.hover {
  background-color: #e9ecef;
  border-color: var(--bs-border-color);
  color: #2b2b2b;
}

[data-bs-theme="dark"] .btn-default:hover,
[data-bs-theme="dark"] .btn-default:active,
[data-bs-theme="dark"] .btn-default.hover {
  background-color: #1c1f23;
  border-color: var(--bs-border-color);
  color: #fff;
}

[data-bs-theme="light"] .btn-primary:hover,
[data-bs-theme="light"] .btn-primary:active,
[data-bs-theme="light"] .btn-primary.hover {
  background-color: #0084f0;
  border-color: #007ee6;
  color: white;
}

[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:active,
[data-bs-theme="dark"] .btn-primary.hover {
  background-color: #21325c;
  border-color: #192647;
  color: #fff;
}

.btn-outline-default {
  --bs-btn-color: var(--bs-font-color);
  --bs-btn-border-color: var(--bs-border-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
}

.superlight,
.superlight *,
.superlight:hover,
.superlight:active {
  color: var(--bs-secondary);
}

[data-bs-theme="light"] .superlight:hover {
  background: whitesmoke;
  border: var(--bs-border-width) solid rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .superlight:hover {
  background: #2d2d2d;
  border: var(--bs-border-width) solid rgba(255, 255, 255, 0.15);
}

[data-bs-theme="light"] .active > .page-link,
.page-link.active {
  background-color: #0084f0;
  border-color: #007ee6;
  color: white;
}

[data-bs-theme="light"] .btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  background-color: #0084f0;
  border-color: #007ee6;
  color: white;
}

/********************************* CALENDAR ********************************************/
.system-calendar {
  display: flex;
  flex-direction: column;
  background-color: var(--bs-body-bg);
  height: calc(100vh - 120px);
}

.system-calendar.menu {
  float: left;
  width: 250px;
  margin-right: 10px;
}

/****************************** CARDS **************************************/
.panel {
  margin-bottom: 20px;
}

.card {
  --bs-card-box-shadow: 0 0 5px 0 rgb(43 43 43 / 10%),
    0 11px 6px -7px rgb(43 43 43 / 10%);
  --bs-card-cap-padding-y: 0.75rem;
  --bs-card-cap-padding-x: 1.25rem;
  color: var(--bs-font-color);
}

[data-menu-theme="dark"] .container-fluid .card {
  box-shadow: var(--bs-card-box-shadow);
}

[data-menu-theme="light"][data-bs-theme="light"] .card {
  --bs-border-color-translucent: rgba(0, 0, 0, 0.12);
}

.card-title {
  margin-bottom: 0;
}

.card-header,
.panel-heading {
  font-size: var(--ad-font-size-plus);
  display: flex;
  align-items: center;
}

[data-bs-theme="light"] .card {
  --bs-card-cap-bg: white;
}

.card.noborder {
  border: 0;
  box-shadow: none;
}

.card.nomargin {
  margin: 0;
}

.card-body.card-item-content > .tformrow {
  margin: 0;
}

.right-panel .card-form {
  border: none;
}

div .panel-body.card-body.card-item-content {
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: cover;
}

/********************** Background colors (Backward compatibility) *********************/

.bg-red,
.bg-yellow,
.bg-aqua,
.bg-blue,
.bg-light-blue,
.bg-green,
.bg-navy,
.bg-teal,
.bg-olive,
.bg-lime,
.bg-orange,
.bg-fuchsia,
.bg-purple,
.bg-maroon,
.bg-black,
.bg-red-active,
.bg-yellow-active,
.bg-aqua-active,
.bg-blue-active,
.bg-light-blue-active,
.bg-green-active,
.bg-navy-active,
.bg-teal-active,
.bg-olive-active,
.bg-lime-active,
.bg-orange-active,
.bg-fuchsia-active,
.bg-purple-active,
.bg-maroon-active,
.bg-black-active,
.callout.callout-danger,
.callout.callout-warning,
.callout.callout-info,
.callout.callout-success,
.label-danger,
.label-info,
.label-warning,
.label-primary,
.label-success,
.modal-primary .modal-body,
.modal-primary .modal-header,
.modal-primary .modal-footer,
.modal-warning .modal-body,
.modal-warning .modal-header,
.modal-warning .modal-footer,
.modal-info .modal-body,
.modal-info .modal-header,
.modal-info .modal-footer,
.modal-success .modal-body,
.modal-success .modal-header,
.modal-success .modal-footer,
.modal-danger .modal-body,
.modal-danger .modal-header,
.modal-danger .modal-footer {
  color: #fff !important;
}

.bg-gray {
  color: #000;
  background-color: #d2d6de !important;
}

.bg-gray-light {
  background-color: #f7f7f7;
}

.bg-black {
  background-color: #111 !important;
}

.bg-red,
.callout.callout-danger,
.label-danger,
.modal-danger .modal-body {
  background-color: #dd4b39 !important;
}

.bg-yellow,
.callout.callout-warning,
.modal-warning .modal-body {
  background-color: #f39c12 !important;
}

.bg-aqua,
.callout.callout-info,
.modal-info .modal-body {
  background-color: #00c0ef !important;
}

.bg-blue {
  background-color: #0073b7 !important;
}

.bg-light-blue,
.label-primary,
.modal-primary .modal-body {
  background-color: #3c8dbc !important;
}

.bg-green,
.callout.callout-success,
.alert-success,
.label-success,
.modal-success .modal-body {
  background-color: #00a65a !important;
}

.bg-navy {
  background-color: #001f3f !important;
}

.bg-teal {
  background-color: #39cccc !important;
}

.bg-olive {
  background-color: #3d9970 !important;
}

.bg-lime {
  background-color: #01ff70 !important;
}

.bg-orange {
  background-color: #ff851b !important;
}

.bg-fuchsia {
  background-color: #f012be !important;
}

.bg-purple {
  background-color: #605ca8 !important;
}

.bg-maroon {
  background-color: #d81b60 !important;
}

.bg-gray-active {
  color: #000;
  background-color: #b5bbc8 !important;
}

.bg-black-active {
  background-color: #000 !important;
}

.bg-red-active,
.modal-danger .modal-header,
.modal-danger .modal-footer {
  background-color: #d33724 !important;
}

.bg-yellow-active,
.modal-warning .modal-header,
.modal-warning .modal-footer {
  background-color: #db8b0b !important;
}

.bg-aqua-active,
.modal-info .modal-header,
.modal-info .modal-footer {
  background-color: #00a7d0 !important;
}

.bg-blue-active {
  background-color: #005384 !important;
}

.bg-light-blue-active,
.modal-primary .modal-header,
.modal-primary .modal-footer {
  background-color: #357ca5 !important;
}

.bg-green-active,
.modal-success .modal-header,
.modal-success .modal-footer {
  background-color: #008d4c !important;
}

.bg-navy-active {
  background-color: #001a35 !important;
}

.bg-teal-active {
  background-color: #30bbbb !important;
}

.bg-olive-active {
  background-color: #368763 !important;
}

.bg-lime-active {
  background-color: #00e765 !important;
}

.bg-orange-active {
  background-color: #ff7701 !important;
}

.bg-fuchsia-active {
  background-color: #db0ead !important;
}

.bg-purple-active {
  background-color: #555299 !important;
}

/************************* CONTACTS **************************************/

div[page_name="SystemContactsList"] .card {
  border: 0;
  box-shadow: none;
}

.system_contacts {
  justify-content: left;
}

.system_contacts .system-contact {
  margin: unset;
  width: 50%;
  border: unset;
  padding-left: 0px;
  padding-right: 0px;
  background-color: transparent;
}

.system_contacts .system-contact .card-item-content {
  padding: 0;
}

.system_contacts .system-contact .contact-card {
  margin: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bs-light-bg-subtle);
  height: calc(100% - 20px);
  border-radius: var(--bs-border-radius);
  border: var(--bs-border-width) solid var(--bs-border-color);
}

.system_contacts .system-contact .contact-card-header {
  position: absolute;
  top: 10px;
  left: 15px;
}

.system_contacts .system-contact .contact-card-body {
  flex: 1;
  padding: 35px 15px 15px 15px;
}

.system_contacts .system-contact .contact-card-line {
  display: flex;
  flex-direction: row;
}

.system_contacts .system-contact .contact-card-description {
  display: flex;
  flex-direction: column;
  flex: 3;
}

.system_contacts .system-contact .contact-card-image {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  text-align: center;
  padding-right: 10px;
  max-width: 80px;
}

.system_contacts .system-contact .contact-card img {
  max-width: 100%;
  border-radius: 50%;
  height: auto;
}

.system_contacts .system-contact .contact-card-footer {
  padding: 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.system_contacts .system-contact .contact-card .contact-name {
  font-weight: 700;
  font-size: 18px;
  color: #3c8dbc;
  margin-bottom: 10px;
}

.system_contacts .system-contact .contact-card .contact-about {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin-bottom: 10px;
}

.system_contacts .system-contact .contact-card .contact-address,
.system_contacts .system-contact .contact-card .contact-email,
.system_contacts .system-contact .contact-card .contact-phone {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 5px;
  align-items: center;
}

.system_contacts .system-contact .contact-card .contact-about[data-content=""],
.system_contacts
  .system-contact
  .contact-card
  .contact-address[data-content=""],
.system_contacts .system-contact .contact-card .contact-email[data-content=""],
.system_contacts .system-contact .contact-card .contact-phone[data-content=""] {
  display: none;
}

/********************** Dashboards (Backward compatibility) *********************/
.info-box {
  display: block;
  min-height: 90px;
  background: var(--bs-body-bg);
  width: 100%;
  margin-bottom: 15px !important;
  box-shadow: var(--bs-card-box-shadow);
  border-radius: var(--bs-border-radius);
  border: var(--bs-border-width) solid var(--bs-border-color);
}

.info-box-icon {
  border-radius: var(--bs-border-radius);
  display: block;
  float: left;
  min-height: 75px;
  width: 90px;
  line-height: 75px;
  text-align: center;
  font-size: 45px;
  background: rgba(0, 0, 0, 0.2);
  margin: 6px;
}

.info-box-text {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: gray;
}

.info-box-number {
  display: block;
  font-weight: bold;
  font-size: 25px !important;
  color: #5f5f5f;
}

.info-box-content {
  padding: 10px 10px;
  margin-left: 100px;
}

.chart svg {
  border-radius: var(--bs-border-radius);
}

/************************* DATABASE EXPLORER **************************************/
#database_browser_container .card-body {
  padding: 0;
}

.database-containter {
  display: flex;
  flex-direction: row;
  gap: 15px;
  height: calc(100vh - 150px);
}

.database-containter > div:nth-child(1) {
  width: 300px;
}

.database-containter > div:nth-child(2) {
  flex: 1;
}

@media screen and (max-width: 550px) {
  .database-containter {
    flex-direction: column;
    height: calc(100vh - 150px);
  }

  .database-containter > div:nth-child(1) {
    width: 100%;
    flex: 3;
  }

  .database-containter > div:nth-child(2) {
    flex: 1;
    display: contents;
  }
}

#table_list_container .table-list .card {
  width: 300px;
  overflow: visible;
  border-radius: var(--bs-border-radius);
  border: var(--bs-border-width) solid var(--bs-border-color);
}

#table_list_container .table-list .card .card-header {
  font-size: var(--ad-font-size);
  font-weight: normal;
}

#table_list_container .table-list .card .btn {
  font-size: var(--ad-font-size-less);
}

#table_list_container .table-list .card .card-footer {
  border-top: 0;
  padding: 8px !important;
}

#table_list_container .table-list .card:hover {
  border-color: var(--bs-primary-border-subtle);
}

#table_list_container > div > .card > .card-header {
  position: relative;
  padding-bottom: 15px;
}

#table_list_container .table-list .card .card-header.card-item-title {
  background: var(--bs-light-bg-subtle) !important;
}

#table_list_container .card .card-header.card-item-title {
  padding: 10px !important;
}

#table_list_container .card .card-footer .btn {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/****************************** DATAGRIDS **************************************/
.card-body > .table {
  margin-bottom: 0;
}

.table.dataTable thead th {
  border-bottom: 0;
  padding: 10px 10px;
}

.table > :not(caption) > * > * {
  border-bottom-width: 0;
  border-top-width: var(--bs-border-width);
  color: var(--bs-font-color);
  font-size: var(--ad-font-size);
}

table.dataTable thead th,
table.dataTable thead td {
  border-bottom: 1 solid red;
}

.table thead th {
  border-top: unset;
  color: #444;
}

[data-bs-theme="light"] .table {
  --bs-table-striped-color: #212529;
  --bs-table-striped-bg: rgba(248, 248, 248, 0.5);
}

/********************************* DIALOGS ********************************************/
div:where(.swal2-container) {
  z-index: 10000;
}

.modal-backdrop.fade {
  opacity: var(--bs-backdrop-opacity) !important;
}

div#swal2-html-container.swal2-html-container {
  font-size: var(--ad-font-size);
  color: var(--bs-font-color);
}

button.swal2-confirm.swal2-styled {
  background-color: var(--bs-primary);
}

/********************************* DRIVE ********************************************/
.system-drive {
  display: flex;
  flex-direction: column;
  background-color: var(--bs-body-bg);
  height: calc(100vh - 120px);
}

.system-drive.menu {
  float: left;
  width: 250px;
  margin-right: 10px;
}

.system-drive .system-drive-container {
  display: flex;
  flex-direction: row;
}

.system-drive .tbreadcrumb li span {
  font-size: 13px;
}

.system-drive-menu {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.system-drive-menu .list-group {
  margin-top: 15px;
}

.system-drive-content {
  padding: 10px;
  width: 100%;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
}

/***************************** DROPDOWN **********************************/
.btn.btn-default.btn-sm.dropdown-toggle {
  font-size: 13px;
}

.dropdown-menu[widget="tdropdown"] .dropdown-item,
.dropdown-iconview .dropdown-item {
  font-size: var(--ad-font-size);
}

.dropdown-menu {
  --bs-dropdown-font-size: var(--ad-font-size);
}

/** submenus **/
.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
  right: 100%;
  left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
  display: block;
}

/****************************** FONT **************************************/
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: local("Montserrat-Regular"),
    url("fonts/Montserrat-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400;
  src: local("Montserrat-Italic"),
    url("fonts/Montserrat-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100;
  src: local("Montserrat-ExtraLight"),
    url("fonts/Montserrat-ExtraLight.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100;
  src: local("Montserrat-ExtraLightItalic"),
    url("fonts/Montserrat-ExtraLightItalic.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  src: local("Montserrat-Bold"),
    url("fonts/Montserrat-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 700;
  src: local("Montserrat-BoldItalic"),
    url("fonts/Montserrat-BoldItalic.ttf") format("truetype");
}

/********************** FOOTER / NAV **********************************/
footer {
  padding: 1rem;
  border-top: 1px solid;
  border-color: var(--bs-border-color);
  color: #869099;
  z-index: 1;
}

[data-bs-theme="light"] footer {
  background-color: #fff;
}

[data-bs-theme="dark"] footer {
  background-color: black;
}

/************************************ BF FORMS ********************************/
.form-control {
  font-size: var(--ad-font-size);
}

.control-label label {
  font-weight: 600;
  color: #444;
}

/************ NATIVE FORM FIELDS OUTSIDE Bootstrap forms (copy of BS5 .form-control) ***************/
.tfield {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-font-color);
  appearance: none;
  background-color: var(--bs-body-bg);
  background-clip: padding-box;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tfield_disabled {
  padding: 0.375rem 0.75rem;
}

.tfield:focus {
  color: var(--bs-font-color);
  background-color: var(--bs-body-bg);
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tfield {
  font-size: var(--ad-font-size);
}

[data-bs-theme="dark"] .tcombo_disabled {
  background-color: var(--bs-secondary-bg) !important;
}

.tcombo {
  color: var(--bs-font-color);
}

*,
::after,
::before {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: var(--ad-font-size);
  opacity: 1;
  overflow-y: scroll;
  margin: 0;
}

a {
  cursor: pointer;
  text-decoration: none;
}

.text-right {
  text-align: right !important;
}

.float-right {
  float: right !important;
}

table.vertical-middle td {
  vertical-align: middle;
}

[data-bs-theme="light"] .popover {
  --bs-popover-header-bg: white;
}

.fade {
  opacity: 1 !important;
}

.toggle-wrapper .btn-group .btn-outline-secondary {
  border-color: var(--bs-border-color);
}

/************************************ FOLDER ICON VIEW  ********************************/
.folder-box {
  width: 100%;
  max-width: 200px;
  border-radius: var(--bs-border-radius);
  border: 2px solid var(--bs-secondary-bg);
  background-color: var(--bs-body-bg);
  user-select: none;
  padding: 10px;
  display: flex;
  align-items: center;
  cursor: auto;
  height: 82px;
  color: var(--bs-font-color);
  overflow: hidden;
  margin-left: 1px;
  margin-right: 1px;
  word-break: break-word;
  cursor: pointer;
}

.folder-box:hover {
  border-color: var(--bs-primary-border-subtle);
  color: var(--bs-secondary-color);
}

.filesystem-icon {
  font-size: 26px;
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  flex-shrink: 0;
  text-align: center;
  padding-top: 14px;
  padding: 8px;
}

.folder-box-name {
  line-height: 17px;
  white-space: nowrap;
  width: 100px;
  text-overflow: ellipsis;
  max-height: 60px;
}

.folder-box-name.expand {
  /* color: red; */
  white-space: normal;
}

[data-type="folder_back"] .folder-box > .item-ellipsis {
  display: none !important;
}

.folder-box > .item-ellipsis {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 15px;
  display: none;
  text-align: center;
}

.folder-box:hover > .item-ellipsis {
  display: block;
  color: rgba(1, 123, 255, 1);
}

.folder-box > .item-ellipsis:hover {
  background: rgba(1, 123, 255, 1);
  color: white;
  border-radius: 5px;
}

.ui-droppable-hover .folder-box {
  border-color: var(--bs-primary);
}

/************************* INLINE EDITING **************************************/
.inlineediting input {
  border: var(--bs-border-width) solid var(--bs-border-color);
  outline: none;
  border-radius: var(--bs-border-radius);
  width: 100%;
}

/****************************** KANBAN **************************************/
.kanban-item > .kanban-item-content > .tformrow {
  margin: 0;
}

.kanban-item.drag > .kanban-item-content label {
  cursor: move;
}

/********************** LABELS (Backward compatibility) *********************/
.label-primary,
.label-secondary,
.label-success,
.label-danger,
.label-warning,
.label-info,
.label-light,
.label-dark {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: var(--ad-font-size-less);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.label-primary {
  background-color: #0d6efd !important;
}

.label-secondary {
  background-color: #6c757d !important;
}

.label-success {
  background-color: #198754 !important;
}

.label-danger {
  background-color: #dc3545 !important;
}

.label-warning {
  background-color: #ffc107 !important;
}

.label-info {
  background-color: #0dcaf0 !important;
}

.label-light {
  background-color: #f8f9fa !important;
}

.label-dark {
  background-color: #212529 !important;
}

/************************************ LAYOUT SKELETON ********************************/

.wrapper {
  align-items: stretch;
  display: flex;
  width: 100%;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
  width: 100%;
}

[data-menu-theme="dark"] .main,
[data-bs-theme="dark"] .main {
  background: var(--bs-dark-bg-subtle);
}

.content {
  flex: 1;
  max-width: 100vw;
  width: 100vw;
}

@media (min-width: 768px) {
  .content {
    max-width: auto;
    width: auto;
  }
}

/********************************** MAILBOX *********************************************/
.left-mailbox {
  float: left;
  width: 250px;
  margin-right: 10px;
}

.right-mailbox {
  overflow: hidden;
}

.right-mailbox.nopadding .card-body {
  padding: 0;
}

@media (max-width: 767.98px) {
  #sidebar.collapsed {
    margin-left: calc(-1 * var(--ad-menu-size));
  }

  #sidebar {
    margin-left: 0;
  }

  .navbar,
  footer {
    width: 100vw;
  }

  main.content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .card.mobile .card-header {
    display: block;
  }

  .card.mobile .header-actions {
    display: grid;
  }

  .system_contacts .system-contact {
    width: 100% !important;
  }
}

/****************************** MODALS **********************************/
.bootbox .icon-dialog {
  color: var(--bs-secondary);
}

.bootbox-body {
  /* overflow: auto; */
}

.modal-dialog .modal-content .modal-header {
  /*display: block;*/
}

.modal {
  --bs-modal-zindex: 2055;
  /* over windows */
}

.modal.tinputdialog {
  --bs-modal-width: 800px;
}

/*********************************************** TOPNAVBAR **************************************************/
.navbar {
  min-height: 52px;
}

.navbar {
  --bs-navbar-padding-x: 5px;
  --bs-navbar-padding-y: 5px;
}

[data-bs-theme="light"] .navbar {
  background: white;
}

.popover {
  --bs-popover-body-padding-x: 10px;
  --bs-popover-body-padding-y: 10px;
}

.popover img {
  max-width: 100%;
}

.popover {
  max-width: 800px;
}

/******************************** POST ********************************************/
.system_post .card-item {
  width: 100%;
  margin: 0;
  margin-bottom: 20px;
}

.system_post .card-item .title-system-post {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.system_post .card-item .title-system-post img {
  height: 35px;
  width: 35px;
  border-radius: 50%;
}

.system_post .card-item .title-system-post div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.system_post .card-item .title-system-post div span {
  color: var(--bs-primary-text-emphasis);
  font-size: var(--ad-font-size-super);
}

.system_post .card-item .title-system-post div span.badge {
  font-size: var(--ad-font-size-less);
}

.system_post .card-item .title-system-post div small {
  color: var(--bs-secondary);
}

.system_post .card-item .post-title {
  display: flex;
  font-weight: bold;
  flex-direction: column;
  font-size: var(--ad-font-size-plus);
  padding: 20px;
  padding-bottom: 0;
}

.system_post .card-item .post-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: var(--bs-secondary-text-emphasis);
}

.system_post .card-item .post-info {
  color: var(--bs-secondary-text-emphasis);
  padding-left: 20px;
  display: flex;
}

.system_post .card-item .post-actions {
  display: flex;
  flex-direction: row;
  border-top: var(--bs-border-width) solid var(--bs-border-color);
}

.system_post .card-item .post-actions a.like[liked="1"] {
  color: var(--bs-primary-text-emphasis);
}

.system_post .card-item .post-actions a {
  color: var(--bs-secondary-text-emphasis);
  padding: 10px;
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: center;
  width: 100%;
}

.system_post .card-item .post-actions a.like:not([liked="1"]) .fas {
  display: none;
}

.system_post .card-item .post-actions a.like[liked="1"] .far {
  display: none;
}

.system_post .card-item .post-actions a i {
  margin: auto 0px;
}

.system_post .post-comments > div.post-comment {
  display: flex;
  flex-direction: column;
  position: relative;
  color: gray;
  background: var(--bs-light-bg-subtle);
  border-radius: var(--bs-border-radius);
  margin: 10px;
  padding: 12px 10px 15px 55px;
}

.system_post .post-comments > div > img {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  left: 5px;
}

.system_post .post-comments > div > .post-comment-date {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
}

.system_post .post-comments > div > b {
  color: var(--bs-secondary-text-emphasis);
}

/********************** PROGRESS BARS (Backward compatibility) *********************/
.progress,
.progress-stacked {
  --bs-progress-height: 1.5rem;
}

.progress-bar-light-blue,
.progress-bar-primary {
  background-color: #3c8dbc;
}

.progress-bar-green,
.progress-bar-success {
  background-color: #00a65a;
}

.progress-bar-aqua,
.progress-bar-info {
  background-color: #00c0ef;
}

.progress-bar-yellow,
.progress-bar-warning {
  background-color: #f39c12;
}

.progress-bar-red,
.progress-bar-danger {
  background-color: #dd4b39;
}

/********************** SELECT 2 *****************************************/
.select2-dropdown {
  border-color: var(--bs-border-color);
}

.select2-container--default .select2-selection--single,
.select2-selection .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  height: unset !important;
  border-radius: var(--bs-border-radius);
  border-color: var(--bs-border-color);
  background: var(--bs-body-bg);
  border-width: var(--bs-border-width);
  outline: none;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  color: var(--bs-font-color);
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 85%;
}

.select2-selection__clear {
  padding-right: 5px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  outline: none;
  border-radius: var(--bs-border-radius);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .select2-dropdown {
  background: var(--bs-body-bg);
}

[data-bs-theme="dark"]
  .select2-container--default
  .select2-results__option[aria-selected="true"] {
  background-color: var(--bs-primary);
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: var(--bs-secondary-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  float: right;
  margin-left: 2px;
}

/*********************************************** SIDEBAR **************************************************/

#sidebar {
  max-width: var(--ad-menu-size);
  min-width: var(--ad-menu-size);
  transition: all 0.35s ease-in-out;
  font-family: "Montserrat" !important;
  z-index: 1;

  position: sticky;
  top: 0;
  bottom: 0;
  max-height: 100vh;
  overflow-y: auto;
}

[data-menu-theme="light"] #sidebar {
  background: var(--bs-sidebar-main-color);
  box-shadow: inset -7px 2px 0px -6px rgba(0, 0, 0, 0.1);
}

[data-menu-theme="dark"] #sidebar {
  /* background: var(--bs-dark); */
  background: var(--bs-sidebar-main-color) !important;
}

#sidebar.collapsed {
  margin-left: calc(-1 * var(--ad-menu-size));
}

@media (min-width: 767.98px) {
  [data-menu-theme="dark"] #sidebar:not(.collapsed) {
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22),
      inset -7px 2px 0px -6px rgba(0, 0, 0, 0.1) !important;
  }
}

#sidebar span {
  font-size: var(--ad-font-size-menu);
}

.sidebar-system-name {
  display: block;
  margin: auto;
}

[data-menu-theme="light"] .sidebar-system-name {
  color: black;
}

[data-menu-theme="dark"] .sidebar-system-name {
  background: rgba(0, 0, 0, 0.15);
  color: white;
}

.sidebar-menu-title {
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  margin: 10px;
  display: block;
}

[data-menu-theme="light"] .sidebar-menu-title {
  color: black;
}

[data-menu-theme="dark"] .sidebar-menu-title {
  color: white;
}

#sidebar .sidebar-system-name .name {
  font-size: var(--ad-font-size-super);
}

#sidebar-logo-horizontal {
  width: 190px !important;
  height: 52px !important;
}

.sidebar-logo {
  width: 100%;
  height: auto;
  display: inline-block;
  padding: 5px;
}

.sidebar-user-wrapper {
  text-align: center;
  padding: 10px;
  color: #fff;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 10px;
}

.sidebar-user-name {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.sidebar-dropdown {
  padding-left: 10px;
}

.sidebar-nav {
  flex-grow: 1;
  list-style: none;
  margin-bottom: 0;
  padding-left: 5px;
  margin-left: 0;
  padding: 10px;
}

.sidebar-header {
  color: #e9ecef;
  font-size: 0.75rem;
  padding: 1.5rem 1.5rem 0.375rem;
}

a.sidebar-link {
  padding: 8px;
  position: relative;
  display: block;
  font-size: var(--ad-font-size-menu);
  margin-left: 5px;
  margin-right: 10px;
  border-radius: 7px;
  margin-bottom: 5px;
  padding-left: 10px;
}

[data-menu-theme="light"] a.sidebar-link {
  color: #555;
}

[data-menu-theme="dark"] a.sidebar-link {
  color: #c2c7d0;
}

#side-menu .sidebar-item .active{
 background-color:var(--bs-sidebar-link-selected-color) !important;
}

a.sidebar-link.active,
a.sidebar-link.active:hover {
  background: var(--bs-sidebar-selected-item-color-color) !important;
  color: white !important;
  font-weight: bold;
}

[data-menu-theme="dark"] a.sidebar-link:hover {
  color: #fff;
  background: var(--bs-sidebar-link-hover-color) !important;
}

[data-menu-theme="light"] a.sidebar-link:hover {
  color: black;
  background: rgba(0, 0, 0, 0.03);
}

[data-menu-theme="dark"] a.sidebar-link[aria-expanded="true"] {
  /* background: rgba(255, 255, 255, 0.15); */
  background: var(--bs-sidebar-link-hover-color) !important;
  color: white;
}

[data-menu-theme="light"] a.sidebar-link[aria-expanded="true"] {
  background: rgba(0, 0, 150, 0.06);
  color: black;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0 0.15rem 0.15rem 0;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 40%;
  transform: rotate(-135deg);
  transition: all 0.2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all 0.2s ease-out;
}

[data-menu-theme="light"] #sidebar .border-bottom {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-menu-theme="dark"] #sidebar .border-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.avatar {
  height: 40px;
  width: 40px;
}

.note-popover {
  position: absolute;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.note-popover > .popover-arrow {
  display: none;
}

.note-editable > table {
  border-collapse: collapse;
}

/********************* TIPPY BOX LIGHT BORDER *************************/
.tippy-box[data-theme~="light-border"] {
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 8, 16, 0.25);
  color: #333;
  box-shadow: 0 4px 14px -2px rgba(0, 8, 16, 0.08);
}

.tippy-box[data-theme~="light-border"] > .tippy-backdrop {
  background-color: #fff;
}

.tippy-box[data-theme~="light-border"] > .tippy-arrow:after,
.tippy-box[data-theme~="light-border"] > .tippy-svg-arrow:after {
  content: "";
  position: absolute;
  z-index: -1;
}

.tippy-box[data-theme~="light-border"] > .tippy-arrow:after {
  border-color: transparent;
  border-style: solid;
}

.tippy-box[data-theme~="light-border"][data-placement^="top"]
  > .tippy-arrow:before {
  border-top-color: #fff;
}

.tippy-box[data-theme~="light-border"][data-placement^="top"]
  > .tippy-arrow:after {
  border-top-color: rgba(0, 8, 16, 0.35);
  border-width: 7px 7px 0;
  top: 17px;
  left: 1px;
}

.tippy-box[data-theme~="light-border"][data-placement^="top"]
  > .tippy-svg-arrow
  > svg {
  top: 16px;
}

.tippy-box[data-theme~="light-border"][data-placement^="top"]
  > .tippy-svg-arrow:after {
  top: 17px;
}

.tippy-box[data-theme~="light-border"][data-placement^="bottom"]
  > .tippy-arrow:before {
  border-bottom-color: #fff;
  bottom: 16px;
}

.tippy-box[data-theme~="light-border"][data-placement^="bottom"]
  > .tippy-arrow:after {
  border-bottom-color: rgba(0, 8, 16, 0.35);
  border-width: 0 7px 7px;
  bottom: 17px;
  left: 1px;
}

.tippy-box[data-theme~="light-border"][data-placement^="bottom"]
  > .tippy-svg-arrow
  > svg {
  bottom: 16px;
}

.tippy-box[data-theme~="light-border"][data-placement^="bottom"]
  > .tippy-svg-arrow:after {
  bottom: 17px;
}

.tippy-box[data-theme~="light-border"][data-placement^="left"]
  > .tippy-arrow:before {
  border-left-color: #fff;
}

.tippy-box[data-theme~="light-border"][data-placement^="left"]
  > .tippy-arrow:after {
  border-left-color: rgba(0, 8, 16, 0.35);
  border-width: 7px 0 7px 7px;
  left: 17px;
  top: 1px;
}

.tippy-box[data-theme~="light-border"][data-placement^="left"]
  > .tippy-svg-arrow
  > svg {
  left: 11px;
}

.tippy-box[data-theme~="light-border"][data-placement^="left"]
  > .tippy-svg-arrow:after {
  left: 12px;
}

.tippy-box[data-theme~="light-border"][data-placement^="right"]
  > .tippy-arrow:before {
  border-right-color: #fff;
  right: 16px;
}

.tippy-box[data-theme~="light-border"][data-placement^="right"]
  > .tippy-arrow:after {
  border-width: 7px 7px 7px 0;
  right: 17px;
  top: 1px;
  border-right-color: rgba(0, 8, 16, 0.35);
}

.tippy-box[data-theme~="light-border"][data-placement^="right"]
  > .tippy-svg-arrow
  > svg {
  right: 11px;
}

.tippy-box[data-theme~="light-border"][data-placement^="right"]
  > .tippy-svg-arrow:after {
  right: 12px;
}

.tippy-box[data-theme~="light-border"] > .tippy-svg-arrow {
  fill: #fff;
}

.tippy-box[data-theme~="light-border"] > .tippy-svg-arrow:after {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);
  background-size: 16px 6px;
  width: 16px;
  height: 6px;
}

/********************** THEME TOGGLER **********************************/

.theme-toggle {
  position: fixed;
  top: 50%;
  transform: translateY(-65%);
  text-align: center;
  z-index: 10;
  right: 0;
  left: auto;
  border: none;
  background-color: var(--bs-font-color);
}

html[data-bs-theme="dark"] .theme-toggle .fa-sun,
html[data-bs-theme="light"] .theme-toggle .fa-moon {
  cursor: pointer;
  padding: 10px;
  display: block;
  font-size: 1.25rem;
  color: #fff;
}

html[data-bs-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

html[data-bs-theme="light"] .theme-toggle .fa-sun {
  display: none;
}

/******************************** WIKI ********************************************/
#system-wiki-search-table thead {
  display: none;
}

#system-wiki-search-table tbody .tdatagrid_cell {
  border: unset;
}

.system-wiki-result {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.system-wiki-result a {
  font-size: var(--ad-font-size-super);
}

.system-wiki-result .description {
  color: var(--bs-secondary-text-emphasis);
}

.system-wiki-view-title {
  display: flex;
  flex-direction: column;
}

.system-wiki-view-title div {
  font-size: 1.5rem;
  font-weight: 600;
}

.system-wiki-view-title small {
  color: var(--bs-secondary-text-emphasis);
}

.system-wiki-tags {
  float: right;
}

/*********************** WINDOWS *******************************************/
.ui-dialog .ui-dialog-content {
  padding: 1px !important;
}

.ui-widget.ui-widget-content {
  border: var(--bs-border-width) solid var(--bs-border-color);
}

.ui-widget-content,
.ui-widget-content a {
  color: var(--bs-font-color);
}

.ui-corner-all {
  border-radius: var(--bs-border-radius);
}

.ui-widget {
  font-family: inherit;
  font-size: inherit;
}

.ui-dialog > .ui-dialog-titlebar > .ui-button {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background-color: var(--bs-secondary-bg-subtle);
  border-color: var(--bs-secondary-border-subtle);
}

.ui-dialog-title {
  color: var(--bs-font-color);
}

.ui-dialog-titlebar {
  height: 50px;
  background: var(--bs-body-bg);
  border-bottom: var(--bs-border-width) solid var(--bs-border-color);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ui-dialog .ui-dialog-titlebar-close {
  right: 0.5em;
}

.ui-dialog .ui-dialog-buttonpane {
  border-color: var(--bs-border-color);
  background: var(--bs-body-bg);
}

/********************************** NAV TABS **********************************/
ul.nav.nav-tabs {
  font-weight: 500;
}
