:root {
  --modern-font-size: 12px;
  --modern-color: #fff;
  --modern-bg-color: #539883;
}

html, body {
  font-size: var(--modern-font-size) !important;
}

.ratios-file-preview-container {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #fff;
}

.sidebar {
  font-size: 13px !important;
  top: 6px;
  left: 6px;
  margin-top: 0px !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  background: transparent !important;
  width: 235px !important;
}

.sidebar-menu li a {
  margin-right: 4px !important;
}

.sidebar-menu li.active > a {
  color: var(--modern-color) !important;
  background: var(--modern-bg-color) !important;
}

.btn {
  font-size: var(--modern-font-size) !important;
}

.dataTables_wrapper .dropdown-menu.show:has(ul),
.dataTables_wrapper .dropdown-menu.show:has(.list-group) {
  max-height: 300px !important;
  overflow-y: scroll;
}

.popover-body:has(ul),
.popover-body:has(.list-group) {
  max-height: 300px !important;
  overflow-y: scroll;
}

.input-daterange.input-group .btn.btn-default.form-control {
  min-width: 150px;
}

.general-form .form-control {
  font-size: var(--modern-font-size) !important;
}

.app-alert:not(#ajaxModal .app-alert) {
  z-index: 9999 !important;
  bottom: 55px !important;
}

.table-responsive tbody tr.even td {
    background: #f6f8f9;
}

table.dataTable thead th {
  background: #f6f8f9;
}

.navbar-custom {
  background: transparent !important;
  padding-right: 10px;
  padding-left: 10px;
}

.navbar .container-fluid {
  background: #fff;
  border-radius: 5px;
  min-height: 60px;
}

.nav-tabs li .active, .nav-tabs li.active {
  font-weight: bold;
  border: none;
  color: #494949 !important;
  background: #f6f8f9 !important;
  border-bottom: 2px solid #c1d2db !important;
  border-radius: 0;
  cursor: default;
}

.nav-tabs li:not(.title-tab):after {
  display: block;
  background-color: #a0aeb5;
  content: "";
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  position: absolute;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}

.select2-results .select2-highlighted {
  color: var(--modern-color) !important;
  background: var(--modern-bg-color) !important;
}

.select2-results li {
  padding: 5px;
}

.select2-drop {
  -webkit-box-shadow: unset !important;
  box-shadow: unset !important;
}

.select2-container .select2-choice > .select2-chosen {
  margin-top: 3px;
}

@media (max-width: 990px) {
  .sidebar-toggled .sidebar-off {
      left: -250px;
  }
  #search_topbar {
    display: none;
  }
}

.sidebar-menu {
  height: calc(100vh - 147px) !important;
  overflow: scroll;
  padding: 19px 0;
  border-radius: 5px !important;
  padding-top: 10px !important;
}

.sidebar-scroll {
  height: calc(100% - 77px) !important;
  position: relative !important;
  border-radius: 5px !important;
  margin-top: 70px !important;
}

.brand-logo img {
  max-height: 40px;
}

.brand-logo-mini {
  width: 70px !important;
}

.sidebar-brand {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  padding-left: 30px;
  padding-top: 10px;
  border-radius: 5px !important;
  height: 60px;
  width: 235px;
}

.page-wrapper {
  padding-top: 12px;
  padding-right: 10px;
  padding-left: 10px;
}

.page-container {
  position: relative;
}

.modal-backdrop {
  --bs-backdrop-zindex: 1050;
  --bs-backdrop-bg: #000;
  --bs-backdrop-opacity: 1 !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--bs-backdrop-zindex);
  width: 100vw;
  height: 100vh;
  background-color: var(--bs-backdrop-bg);
  background-color: rgb(155 158 165 / 70%);
  backdrop-filter: blur(3px);
}

/*Write your custom css in this file.*/

input[type="radio"] {
  width: 1.5rem !important;
  height: 1.5rem !important;
  color: #43ad7d !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  background: none !important;
  border: 0 !important;
  outline: 0 !important;
  flex-grow: 0 !important;
  border-radius: 50% !important;
  background-color: #FFFFFF !important;
  transition: background 300ms !important;
  cursor: pointer !important;
  margin-right: 5px !important;
  margin-top: 0px !important;
  padding: 0px !important;
}


/* Pseudo element for check styling */

input[type="radio"]::before {
  content: "" !important;
  color: transparent !important;
  display: block !important;
  width: inherit !important;
  height: inherit !important;
  border-radius: inherit !important;
  border: 0 !important;
  background-color: transparent !important;
  background-size: contain !important;
  box-shadow: inset 0 0 0 1px #CCD3D8 !important;
}


/* Checked */

input[type="radio"]:checked {
  background-color: var(--modern-bg-color) !important;
}

input[type="radio"]:checked::before {
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E") !important;
}


/* Disabled */

input[type="radio"]:disabled {
  background-color: #CCD3D8 !important;
  opacity: 0.84 !important;
  cursor: not-allowed !important;
}


/* IE */

input[type="radio"]::-ms-check {
  content: "" !important;
  color: transparent !important;
  display: block !important;
  width: inherit !important;
  height: inherit !important;
  border-radius: inherit !important;
  border: 0 !important;
  background-color: transparent !important;
  background-size: contain !important;
  box-shadow: inset 0 0 0 1px #CCD3D8 !important;
}

input[type="radio"]:checked::-ms-check {
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E") !important;
}

.form-check-input {
  width: 1.5rem !important;
  height: 1.5rem !important;
  color: var(--modern-bg-color) !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  background: none !important;
  border: 0 !important;
  outline: 0 !important;
  flex-grow: 0 !important;
  border-radius: 50% !important;
  background-color: #FFFFFF !important;
  transition: background 300ms !important;
  cursor: pointer !important;
  margin-right: 5px !important;
  margin-top: 0px !important;
  padding: 0px !important;
}

.form-check-input::before {
  content: "" !important;
  color: transparent !important;
  display: block !important;
  width: inherit !important;
  height: inherit !important;
  border-radius: inherit !important;
  border: 0 !important;
  background-color: transparent !important;
  background-size: contain !important;
  box-shadow: inset 0 0 0 1px #CCD3D8 !important;
}


/* Checked */

.form-check-input:checked {
  background-color: var(--modern-bg-color) !important;
}

.form-check-input:checked::before {
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E") !important;
}


/* Disabled */

.form-check-input:disabled {
  background-color: #CCD3D8 !important;
  opacity: 0.84 !important;
  cursor: not-allowed !important;
}


/* IE */

.form-check-input::-ms-check {
  content: "" !important;
  color: transparent !important;
  display: block !important;
  width: inherit !important;
  height: inherit !important;
  border-radius: inherit !important;
  border: 0 !important;
  background-color: transparent !important;
  background-size: contain !important;
  box-shadow: inset 0 0 0 1px #CCD3D8 !important;
}

.form-check-input:checked::-ms-check {
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E") !important;
}

.dropdown-header {
    font-size: 1rem;
	font-weight: bold;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

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

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

.filter-section-container {
  padding: 10px 15px;
}

.filter-section-flex-row {
  display: flex;
}

.filter-section-left {
  flex: 1;
}

.filter-section-right {
  flex: 0 0 auto;
  text-align: right;
}

.filter-item-box {
  display: inline-block;
  margin: 5px;
}

.datatable-export {
  float: left;
}

.smart-filter-dropdown-container .search-filter {
  margin: 0 10px 10px 10px;
  width: 280px;
  border-color: #e2e7f1;
}

.dropdown-menu .list-group-item:not(.inline-loader) {
  border: none !important;
  padding: 10px 15px;
}

.list-group-item:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}
.list-group-item:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.list-group-item {
  border: none;
  padding: 10px 15px;
}

.invoice-preview {
  max-width: 1200px !important;
}

/* ------------------------------------------- */
/* RATIOS DESIGN VERSION 2 */
/* ------------------------------------------- */

:root {
  --ratios-design-card-border: 1px solid #f0f0f0;
  --ratios-design-card-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

html, body, .page-container, .scrollable-page, #page-content, #left-menu-toggle-mask, #pre-loader {
  background: #eff1f5 !important;
}

.card {
  border: var(--ratios-design-card-border) !important;
  box-shadow: var(--ratios-design-card-box-shadow) !important;
  -webkit-box-shadow: var(--ratios-design-card-box-shadow) !important;
}

.sidebar-brand {
  border: var(--ratios-design-card-border) !important;
  box-shadow: var(--ratios-design-card-box-shadow) !important;
  -webkit-box-shadow: var(--ratios-design-card-box-shadow) !important;
}

.sidebar-scroll {
  border: var(--ratios-design-card-border) !important;
}

#sidebar-menu li.expand > a::before, #sidebar-menu li.expand > a::after {
  border-width: 0 0.2rem 0.2rem 0 !important;
}

.navbar .container-fluid {
  border: var(--ratios-design-card-border) !important;
  box-shadow: var(--ratios-design-card-box-shadow) !important;
  -webkit-box-shadow: var(--ratios-design-card-box-shadow) !important;
}

.nav.nav-tabs:not(.settings) {
  border-top: var(--ratios-design-card-border) !important;
  border-left: var(--ratios-design-card-border) !important;
  border-right: var(--ratios-design-card-border) !important;
  border-bottom: none !important;
  background: #f9fbfc !important;
}

.nav-tabs li .active, .nav-tabs li.active {
  background: #ffffff !important;
}

.page-title:not(.no-bg) {
  background: #f9fbfc !important;
}

.widget-container .card {
  border: var(--ratios-design-card-border) !important;
  box-shadow: var(--ratios-design-card-box-shadow) !important;
  -webkit-box-shadow: var(--ratios-design-card-box-shadow) !important;
}

.tippy-helper {
  width: 18px;
  cursor: pointer;
  display: inline-block;
}

.tippy-box[data-theme~="custom"] {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: rgba(23, 73, 77, 0.15) 0px 20px 30px;
  color: #000;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 500px;
  max-height: 400px;
  font-size: 13px;
}

.tippy-text-view {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #000;
  text-decoration-style: dotted;
}

.tippy-box[data-theme~='custom'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: #eef2f6;
}
.tippy-box[data-theme~='custom'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: #eef2f6;
}
.tippy-box[data-theme~='custom'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: #eef2f6;
}
.tippy-box[data-theme~='custom'][data-placement^='left-end'] > .tippy-arrow::before {
  border-left-color: #eef2f6;
}
.tippy-box[data-theme~='custom'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: #eef2f6;
}
.tippy-box[data-theme~='custom'][data-placement^='right-end'] > .tippy-arrow::before {
  border-right-color: #eef2f6;
}

.btn {
  outline: 0 !important;
  box-shadow: none !important;
}

.btn-primary {
  border-color: #539883;
  background-color: #539883;
}

.btn-info {
  background: #373737;
  border: 1px solid #373737;
}

.btn-info:hover, .btn-info:active, .btn-info:focus, .btn-info.show {
  background: #000;
  border: 1px solid #000;
}

.filter-multi-select .dropdown-menu {
  padding: 0px;
  padding-left: 6px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.client-widget-section {
  padding: 0px;
  padding-right: 15px;
}

[class*="fixed-header"] {
  position: sticky;
  top: 0px;
  z-index: 1000;
  display: none;
  border-radius: 5px;
  max-width: 100%;
  overflow-x: auto;
}

[class*="fixed-header"] thead {
  display: table;
  table-layout: fixed;
  width: 100%;
}

[class*="fixed-header"] th {
  background-color: #f6f8f9;
  border-top: 1px solid #f2f2f2;
  border-bottom: 1px solid #f2f2f2;
  padding: 15px 10px !important;
}

[class*="fixed-header"]::-webkit-scrollbar {
  height: 8px;
}

.fixed-header-planning-table::-webkit-scrollbar-thumb {
  background-color: transparent !important;
}

.gold-badge {
  color: #4d5e69;
  padding: 6px;
  font-weight: bold;
  background: #f7f0df;
  margin-top: 0px !important;
}

.select2-drop {
  background: #f6f8f9;
}

.select2-search input {
  border-radius: 5px;
}

.select2-dropdown-open [class^=select2-choice] {
  border-top: 1px solid #e5e5e5 !important;
  border-left: 1px solid #e5e5e5 !important;
  border-right: 1px solid #e5e5e5 !important;
}

textarea, .general-form textarea {
  height: 50px;
  min-height: 50px;
  resize: none;
  overflow: hidden;
}

.app-alert {
  background-color: #ffffff !important;
  border: var(--ratios-design-card-border) !important;
  box-shadow: var(--ratios-design-card-box-shadow) !important;
  -webkit-box-shadow: var(--ratios-design-card-box-shadow) !important;
  color: #7b818f !important;
  font-size: 13px;
  border-radius: 5px !important;
  border-bottom-left-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}

.progress-bar {
  background-color: #e1e2e3 !important;
}

.app-alert.alert-success {
  border-top: 3px solid #4d9883 !important;
}
.app-alert.alert-danger {
  border-top: 3px solid #f5325c !important;
}
.app-alert.alert-warning {
  border-top: 3px solid #f5a732 !important;
}

.general-form .form-control:focus, .general-form .form-control.white:focus {
  border-bottom: 2px solid;
}

.datatable-tools .dataTables_length {
  margin-right: 10px;
}

td.dropdown-option button:hover {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

table.dataTable td,
table.dataTable th {
    white-space: nowrap;
}

table.dataTable th {
  cursor: pointer;
}

.filter-section-flex-row .filter-section-left, .filter-section-flex-row .filter-section-right {
  height: 43px;
}

.card-body:has(.dataTables_wrapper) {
    padding: 0 !important;
}

.DTCR_pointer {
  display: none !important;
}

.DTCR_clonedTable {
  display: none !important;
}

.dataTables_wrapper tr th.dtfc-fixed-left::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: -10px !important;
    width: 10px !important;
    height: 100% !important;
    pointer-events: none !important;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0)) !important;
    z-index: 100 !important;
    opacity: 1;
}

.dataTables_wrapper td.dtfc-fixed-left::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: -10px !important;
    width: 10px !important;
    height: 100% !important;
    pointer-events: none !important;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0)) !important;
    z-index: 100 !important;
    opacity: 1;
}

.table-drag-scroll {
  cursor: grab;
  -webkit-user-select: text;
  user-select: text;
}

.table-drag-scroll.dragging {
  cursor: grabbing !important;
  -webkit-user-select: none;
  user-select: none;
}

.cloned-header {
  position: relative;
  top: -1px;
}

.dataTables_filter {
    margin: 0 0px 10px -10px;
    float: right;
}

.dataTables_processing.card {
  z-index: 5;
}

html.in-iframe .sidebar,
html.in-iframe .navbar {
    display: none !important;
}

html.in-iframe #left-menu-toggle-mask {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.in-iframe .page-container {
    margin-top: 0 !important;
    margin-left: 0 !important;
}

html.in-iframe .page-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.truncate-link {
  display: inline-block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table .dropdown-menu.dropdown-menu-end.show {
    right: 57px !important;
    left: auto;
    top: 0 !important;
}