/* Import google webfont */
@import url('/vendors/css/poppins.css?v=0.0.1');
/* Import Font Awesome */
@import url('/vendors/css/fontawesome.min.css?v=6.5.1');
/*import theme css*/
@import url('theme.css?v=0.0.8');

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  font-size: var(--primary-font-size);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-light);
}

p {
  font-size: 14px;
}

.bg-image {
  background: url('../images/bg-02.jpeg');
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.bg-image:before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(122, 104, 174, 0.8), rgba(0, 168, 255, 0.9));
}

.bg-gray-100 {
  background: var(--color-gray-light);
}

.bg-gray-150 {
  background: #d6d6d6;
}

.bg-white-opacity-7 {
  background: var(--color-white);
}

.table {
  font-size: 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--primary-color);
  margin: 0;
}

.table th {
  font-weight: var(--font-weight-bold);
  background: var(--primary-color);
  color: var(--color-white);
  vertical-align: middle;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 5px 11px 5px;
  border: 1px solid #8877b6;
}

.table th:nth-child(1),
.table tbody td:nth-child(1) {
  display: none;
}

.th-icon {
  position: absolute;
  right: 4px;
  opacity: 0.5;
}

.table tbody tr td {
  line-height: var(--line-height-tbody);
  border: none;
}

.fa-sort-up,
.fa-sort-down {
  display: none;
}

.sorted-up .fa-sort-up,
.sorted-down .fa-sort-down {
  display: inline-block;
}

.sorted-up .fa-sort,
.sorted-down .fa-sort {
  display: none;
}

.report-filter {
  width: auto;
  font-weight: var(--font-weight-bold);
  display: flex;
}

.report-filter .form-control {
  display: inline-block;
  width: auto;
  max-width: 160px;
}

.report-filter input,
.report-filter .btn-group-vertical>.btn,
.btn-group>.btn,
.report-filter .form-select {
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
}

.report-filter .form-select:focus {
  outline: none;
  box-shadow: none;
}

.report-filter .form-select option:hover {
  background: var(--primary-color) !important;
  color: var(--color-white);
  cursor: pointer;
}

.report-filter .w-5 {
  width: 60px;
}

.report-filter .form-label {
  margin: 0;
}

.report-filter .dropdown-item {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  display: flex;
}

.report-filter .dropdown-item input {
  margin-right: 0.3rem;
}

.report-filter .dropdown-toggle:hover,
.report-filter .btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  color: var(--color-white);
  background: var(--primary-color);
}

.filter-item {
  margin-right: .5rem;
}

.page-item a {
  color: var(--primary-color);
}

.page-item a:hover {
  color: var(--color-white);
  background: var(--primary-color);
}

.calendar-icon {
  background-image: url('../images/calendar-icon.svg');
  background-repeat: no-repeat;
  background-position: 95% 50%;
  background-size: 15px 15px;
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--color-white);
  background: var(--primary-color);
}

.datepicker-dropdown {
  font-size: var(--primary-font-size);
}

.datepicker-dropdown .day {
  width: 30px;
  height: 30px;
}

.datepicker table tr td.active.active,
.datepicker table tr td.active.active:hover {
  background: var(--primary-color);
  color: var(--color-white);
}

.table-responsive {
  cursor: pointer;
}

.table-fixed-head {
  overflow: auto;
  height: calc(100vh - 50px);
}

.table-responsive tbody {
  line-height: var(--line-height-tbody);
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-outline-primary:hover {
  background: var(--hover-primary-color);
  border-color: var(--hover-primary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.data-filter .col-auto {
  margin: 0.6rem 0;
}

.flex-items-wrap {
  flex-wrap: wrap;
}

.pagination .page-item .page-link {
  font-size: var(--primary-font-size);
  cursor: pointer;
  padding: 0.3rem 0.75rem;
}

.pagination .page-item .page-link {
  outline: none;
  box-shadow: none;
}

.pagination .page-item .page-link:focus {
  background-color: var(--primary-color);
  color: var(--color-white);
}

.page-item:first-child .page-link {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.page-item:last-child .page-link {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

/* Tooltip Styles */
.custom-tooltip .tooltip-inner {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 5px 10px;
}

.custom-tooltip .tooltip-arrow {
  border-color: var(--color-dark);
}

.flatpickr-day.selected {
  background: var(--primary-color);
  color: var(--color-white);
  border-color: var(--primary-color);
}

.flatpickr-day.selected:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

span.flatpickr-weekday {
  color: var(--primary-color);
}

.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
  outline: none;
  border: none;
}

.bootstrap-select>.dropdown-toggle.bs-placeholder {
  background: var(--color-white);
  color: var(--color-dark);
  line-height: 1.4rem;
}

.bootstrap-select>.dropdown-toggle.bs-placeholder:active,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus {
  color: var(--color-white);
  background: var(--primary-color);
}

.bootstrap-select>.dropdown-toggle.bs-placeholder:hover,
.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select>select.mobile-device:focus+.dropdown-toggle {
  background: var(--primary-color);
  color: var(--color-white);
  border: none;
  outline: none !important;
  box-shadow: none;
  line-height: 1.4rem;
}

.multi-selection .dropdown-menu {
  max-width: 200px;
  max-height: 250px;
  overflow: auto;
}

.multi-selection .no-results {
  white-space: pre-wrap;
}

.multi-selection .form-control {
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  padding: 0.15rem 0.3rem;
  font-size: var(--primary-font-size);
}

.multi-selection .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.multi-selection .btn.show {
  color: var(--color-white);
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.multi-selection .btn:hover {
  border-color: var(--primary-color);
}

.bootstrap-select>.dropdown-toggle:after {
  font-family: FontAwesome;
  content: "\f107";
  font-style: normal;
  font-size: var(--primary-font-size);
  border: none;
  margin-top: 0;
}

.bootstrap-select>.dropdown-toggle:hover:after {
  color: var(--color-white);
}

.bootstrap-select>.dropdown-toggle:active:after,
.bootstrap-select>.dropdown-toggle:focus:after {
  color: var(--color-white);
}

.report-filter .form-select option:hover {
  background: var(--primary-color) !important;
  color: var(--color-white);
  cursor: pointer;
}

.bootstrap-select .bs-ok-default:after {
  content: "";
  font-family: FontAwesome;
  font-style: normal;
  font-size: 10px;
  color: var(--primary-color);
}

table tbody tr:hover td {
  background: #ede7ff;
  color: var(--color-dark);
}

.datepicker-dropdown {
  font-size: var(--primary-font-size);
}

.datepicker-dropdown .day {
  width: 30px;
  height: 30px;
}

.datepicker table tr td.active.active,
.datepicker table tr td.active.active:hover {
  background: var(--primary-color);
  color: var(--color-white);
}

.datepicker table tr td.today,
.datepicker table tr td.today.disabled,
.datepicker table tr td.today.disabled:hover,
.datepicker table tr td.today:hover {
  background-image: linear-gradient(to bottom, #e9d6ff, #f7efff);
}

.table-responsive {
  cursor: pointer;
}

.data-filter .col-auto {
  margin: 0.6rem 0;
}

.flex-items-wrap {
  flex-wrap: wrap;
}

.page-item:first-child .page-link {
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* Tooltip Styles */
.custom-tooltip .tooltip-inner {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 5px 10px;
}

.custom-tooltip .tooltip-arrow {
  border-color: var(--color-dark);
}

.flatpickr-day.selected {
  background: var(--primary-color);
  color: var(--color-white);
  border-color: var(--primary-color);
}

.flatpickr-day.selected:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
  outline: none;
  border: none;
}

.multi-selection .dropdown-menu {
  max-width: 200px;
  max-height: 250px;
  overflow: auto;
}

.multi-selection .no-results {
  white-space: pre-wrap;
}

.multi-selection .form-control {
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  padding: 0.15rem 0.3rem;
  font-size: var(--primary-font-size);
}

.multi-selection .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.bootstrap-select>.dropdown-toggle.bs-placeholder {
  color: var(--color-dark);
}

.bootstrap-select>.dropdown-toggle.bs-placeholder:hover,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active {
  color: var(--color-white);
}

.loading-spinner-container {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 1000;
}

.spinner-border {
  position: fixed;
  top: 40%;
  left: 50%;
  width: 60px;
  height: 60px;
  color: var(--primary-color);
}

.filter-item .dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
}

.mx-w-90{
  width: 90px !important;
}

/* styles for aggregates table */
.aggregates thead tr th{
  text-align: right;
  border-bottom: 1px solid var(--color-gray-light);
  padding: 0.3rem;
}

.aggregates tbody tr td{
  padding: 0.2rem 0.3rem;
}

.aggregates tbody tr td:nth-child(even){
  text-align: right;
}

.aggregates tbody tr:nth-child(odd) {
  background-color: var(--color-gray-light);
}

/* styles for custom switch toggle */
.form-switch{
  padding-left: 0;
}

.form-check-input:focus {
  box-shadow: none;
}

.form-check-input.switch-toggle {
  padding: 0.8rem 1.5rem;
  margin-left: 0.3em !important;
}

.form-check-input.switch-toggle:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.bg-primary-light {
  background-color: var(--primary-color-light);
}

/* styles for extra selectors */
.toggle-extra-selectors {
  position: relative;
}

.toggle-extra-selectors.active{
  border-color: var(--primary-color);
}

.toggle-extra-selectors::after{
  content: "";
  position: absolute;
  top: 22px;
  left: 5px;
  border-width: 10px;
  border-style: solid;
  border-color: #c7c7c7 transparent transparent transparent;
  transform: rotate(180deg);
  display: none; 
}

.toggle-extra-selectors.active::after{
  display: block;
}

.extra-selectors {
  position: absolute;
  z-index: 999;
  left: 0;
  right: 0;
  background-color: #e1e1e1f2;
  padding: 0.5rem;
  box-shadow: 0px 7px 10px #00000052;
  border: 4px solid #c0c0c0dd;
  border-radius: 25px;
  margin: 0 auto;
  top: 50px;
  max-width: 1450px;
}

.extra-selectors .content-wrapper {
  display: flex;
  justify-content: center;
}

.selector-item {
  display: flex;
  align-items: center;
  width: 25%;
}

.selector-item label {
  white-space: nowrap;
  padding: 0 0.5rem;
  font-weight: var(--font-weight-bold);
  overflow: hidden;
  text-overflow: ellipsis;
}

.extra-selectors::after {
  content: none;
  position: absolute;
  top: -22px;
  left: 72.2%;
  border-width: 10px;
  border-style: solid;
  border-color: #c7c7c7 transparent transparent transparent;
  transform: rotate(180deg); 
} 

.btn:disabled {
  border-color: #c7c7c7;
  background: none;
  color: #c7c7c7;
  opacity: unset;
}
.btn:disabled .fa{
  color: var(--primary-color);
}

/* TODO: styles of small screens */
@media (max-width: 1170px) {
  .report-filter {
    display: block;
  }

  .extra-selectors {
    position: relative;
    top: 0;
    border-top-left-radius: 14px;
    width: 100%;
  }

  .extra-selectors .content-wrapper{
    display: block;
  }

  .selector-item {
    margin-bottom: 0.5rem;
    width: 100%;
  }
}

/* style for resizable table cols */
.table-resizable {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

.table-resizable th, .table-resizable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-resizable th.resizable-col .resizer {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 5px;
  background-color: #9587bb;
  cursor: ew-resize;
  display: none;
}
.table-resizable th.resizable-col:hover .resizer {
  display: block;
}

/* error message */
.show-error {
  font-size: var(--primary-font-size);
  color: var(--bs-danger-text-emphasis);
  border: none;
  padding: 0 5px;
  text-decoration-line: underline;
  text-decoration-style: dotted;
}
.show-error:hover {
  background:var(--bs-danger-text-emphasis);
  text-decoration: none;
}

pre {
 font-size: var(--primary-font-size);
 margin: 0;
}

.error-content .alert{
  position: absolute;
  width: fit-content;
  min-width: 45%;
  top: 1%;
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 9;
}

.error-message-details {
  font-size: var(--primary-font-size);
  background: var(--bs-danger-text-emphasis);
  border-radius: 5px;
  color: var(--color-white);
  padding: 0.5rem;
  margin: 0;
}


/* modal popup animation centered zoomin */
.modal.fade .modal-dialog { 
  transform: scale(0.1); 
  transition: transform 0.3s ease-out;
 }
.modal.fade.show .modal-dialog { 
  transform: scale(1); 
 }

 /** TODO: generalize styles for editable table with readonly cells - replace tooltips **/
.editabletable td {
  position: relative;
}

.update-success td {
  background: var(--bg-update-success);
}
.color-primary {
  color: var(--primary-color);
}
.border-color-primary {
  border: 1px solid var(--primary-color);
  border-color: var(--primary-color);
}

/* TODO: Fix detail styles for editable table */
.editabletable .open-row-detail:hover::after, .toggle-row-detail td:hover::after {
  visibility: hidden;
}

.toggle-row-detail b{
  font-weight: 600;
}

.toggle-row-detail ul {
  column-count: 4;
  column-gap: 10px;
  padding: 0 0 15px 0;
  margin: 0;
  line-height: 32px;
  break-inside: avoid-column;
}
.toggle-row-detail .valuetext {
  margin-left: 5px;
}
.toggle-row-detail .txtarea{
  display: flex;
}
.toggle-row-detail .txtarea .valuetext{
  text-wrap: auto;
  font-size: 12px;
  line-height: 18px;
  padding-top: 5px;
}
.text-area{
  width: 280px;
  background: none;
  border: 0;
  margin: 0 3px;
  border-radius: 0;
  line-height: 21px;
  max-height: 100px;
  padding: 5px;
}

.text-area:focus{
  outline: none;
  box-shadow: none;
  background: var(--color-white);
}

.text-area:hover{
  background: var(--color-white);
}

.text-area:disabled{
  background: none;
  border: none;
  color: var(--color-dark);
  resize: none;
}

.toggle-row-detail ul li{
  list-style: none;
  text-align: left;
}

.toggle-row-detail ul li b{
  margin-right: 5px;
  font-weight: 600;
}
.toggle-row-detail ul li .grouped-title{
  text-decoration: underline;
}

.toggle-row-detail .grouped-title{
  font-weight: 700;
  text-decoration: underline;
}

.toggle-row-detail ul li ul {
  column-count: 1;
  padding: 0 0 0 10px;
  line-height: 28px;
}

.toggle-row-detail ul li ul li{
  display: flex;
}

.text-hd-input{
  /* border: 1px solid #a5a5a5;
  background: white;
  border-radius: 25px;
  padding: 0 5px 0 7px;
  margin: 0px 5px;
  width: fit-content; */
  border: 0;
    background: none;
    /* border-radius: 25px; */
    padding: 0 5px 0 7px;
    margin: 0px 5px;
    width: fit-content;
    line-height: 23px;
}

.text-hd-input:hover{
  background: var(--color-white);
}

.text-hd-input:focus{
  outline: none;
  box-shadow: none;
  background: var(--color-white);
}

.text-hd-input:disabled{
  background: none;
  border: none;
  color: var(--color-dark);
}

.select-options{
  /* background: white;
  border: 1px solid #a5a5a5;
  border-radius: 25px;
  padding: 5px;
  z-index: 1; */
  text-align: left;
  background: none;
  border: 0;
  outline: none;
  cursor: pointer;
  padding: 0 0.3rem;
  border-radius: 0;
  line-height: 23px;
}

.table-striped.editabletable tbody > tr:nth-child(4n+1) td{
  background-color: var(--color-gray-light);
}
.table-striped.editabletable tbody > tr:nth-child(4n+1).update-success td{
  background-color: var(--bg-update-success);
}

.table-striped.editabletable tbody > tr:hover td{
  background-color: #dbd6ec;
}

.editabletable tbody tr:nth-of-type(odd) td:hover{
  background-color: var(--color-primary);
  transform: scale(1.06);
  transition: transform 0.3s ease-out;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
}

.editabletable tbody tr:nth-of-type(odd) td.open-row-detail{
  transform: unset;
}

.editabletable tbody tr:nth-of-type(odd) td.open-row-detail:hover{
  font-size: 14px;
  transition: font-size 0.2s ease-in-out;
  background-color: #dbd6ec;
}

/* styles for editable cells */
.editable-cell {
  position: relative;
}

.editable-cell.text-area{
  display: inline-flex;
}
.text-area:focus{
  outline: none;
  box-shadow: none;
}

/* Show option tools on hover only for that element */
.editable-cell:hover > .option-tools .copy-btn{
  display: inline-block;
}

/* Initially hide option tools and input/select elements */
.option-tools .copy-btn {
  display: none;
}

.option-tools .editpen{
  display: inline-block;
  color: var(--color-dark-medium);
  font-size: 0.7rem;
  opacity: 0.5;
}
.editable-cell:hover > .option-tools .editpen{
  color: var(--primary-color);
  opacity: 1;
  font-size: normal;
}

.editable-cell.active .option-tools{
  display: inline-block;
}

.editable-cell select{
  text-align: left;
  background: none;
  outline: none;
  cursor: pointer;
  border-radius: 0;
  line-height: 23px;
}

.editable-cell select:hover{
  appearance: auto;
  background: var(--color-white);
}
.editable-cell select:disabled{
  appearance: none;
  color: var(--color-dark);
}

.editable-cell select:disabled:hover{
  background: none;
  border: none;
}

.editable-cell.active select{
  background: var(--color-white);
  padding: 0.1rem 0.3rem;
  appearance: auto;
}

.option-tools .fa{
  margin: 0 0px 0 5px;
}

.option-tools .fa:hover{
  scale: 1.2;
  transition: scale 0.3s ease-in-out;
}

.rounded-25{
  border-radius: 25px;
}

.approve-content .fa-shake{
  --fa-animation-duration: 3s;
  --fa-shake-scale: 1.5;
}
.editabletable .fa-beat{
  --fa-animation-duration: 2s;
  --fa-beat-scale: 1.2;
}
td.entry-edited {
  background: var(--bg-entry-edited);
  color: var(--color-dark-medium);
}
.editabletable tbody > tr:nth-child(4n+1) td.entry-edited{
  background: var(--bg-entry-edited-odd);
}

td.entry-edited-content{
  background: var(--bg-entry-edited-content);
}

td.entry-edited:hover, td.entry-approved:hover, td.toggle-btn-detail:hover{
  background: var(--color-white) !important;
  color: var(--color-dark);
}

.btn-reload-page{
  cursor: pointer;
}

td.entry-approved{
  background: var(--bg-entry-approved);
}
.editabletable tbody > tr:nth-child(4n+1) td.entry-approved{
  background: var(--bg-entry-approved-odd);
}

.text-alert-warning{
  color: var(--text-alert-warning);
}

.color-secondary{
  color: var(--color-dark-medium);
}


.border-btm{
  border-bottom: 1px solid #0000004d;
}