html {
  height: 100%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
    min-height: 100.1lvh;
    display: flex;
    flex-direction: column;
}

.content {
	flex: 1;
}

hr {
	opacity: 0.5;
}

.bg-theme {
    background-color: #ed3237!important;
}

.footer {
  padding: 1rem;
}

.footer a {
	color: white;
}

.header img {
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
}

.row {
    margin-right: 0;
    margin-left: 0;
}

.dtoffset {
    margin-right: -15px;
    margin-left: -15px;
}

.table-condensed {
    font-size: calc(var(--bs-body-font-size) - 0.125rem);
}

.th-m{
	font-size: calc(var(--bs-body-font-size) - 0.1rem);
}

.th-sm{
	font-size: calc(var(--bs-body-font-size) - 0.3rem);
}

.li-middle{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.modalMax70{
	max-width:70vw;
	max-height:70vh;	
}

@media (min-width: 768px) {
  .modal-xl {
   width: 90%;
   max-width:1200px;
  }
}

.w-10 {
	width: 10%;
}

.w-80 {
	width: 80%;
}

.modal-mw-80 {
  max-width: 100%;
  max-height: 100%;
}

@media (min-width: 992px) {
  .modal-mw-80 {
    max-width: 80vw;
    max-height: 80vh;
  }
}

@media (max-width: 799px) {
    #img-company-logo {
        width: 31.25vw;
        height: auto;
    }
}

@media (min-width: 800px) {
    #img-company-logo {
        width: 250px;
        height: 160px;
    }
}

.mw-80{
	max-width:80vw;
}

@media (min-width: 1700px) {
  .d-1700-none {
    display: none !important;
  }
  .d-1700-block {
    display: block !important;
  }
  .d-1700-inline {
    display: inline !important;
  }
  .d-1700-inline-block {
    display: inline-block !important;
  }
}

/* Utility classes for max-width 1699px */
@media (max-width: 1699px) {
  .d-1700-none {
    display: block !important; /* Or your desired default display */
  }
  .d-1700-block {
    display: none !important;
  }
  .d-1700-inline {
    display: none !important;
  }
  .d-1700-inline-block {
    display: none !important;
  }
}

.fs150{
	font-size:150%!important;
}

.fs150 a{
	font-size:150%!important;
}

.fs125{
	font-size:125%!important;
}

.fs125 a{
	font-size:125%!important;
}

.fs100{
	font-size:100%!important;
}

.fs100 a{
	font-size:100%!important;
}

.fs90{
	font-size:90%!important;
}

.fs90 a{
	font-size:90%!important;
}

.mb80 {
	max-height: 80vh;
    overflow-y: scroll;
}

.img-fluid-vh90 {
    max-height: 90vh;
	max-width: 100%;
    object-fit: contain;
}

#toast {
    position: absolute;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
}

#toast.toast.hide{
	z-index: -1;
}

#toast.toast.show{
	z-index: 2147483647;
}

#tb-financial-data{
	min-height: 155px;
	min-width: 300px;
}

.big-checkbox{
  transform: scale(1.5)!important;
  -ms-transform: scale(1.5)!important; /* IE */
  -moz-transform: scale(1.5)!important; /* FF */
  -webkit-transform: scale(1.5)!important; /* Safari and Chrome */
  -o-transform: scale(1.5)!important; /* Opera */
  margin-top: 7px!important;
  padding: 10px!important;
}


.form-check-input-lg {
    width: 2em;
    height: 2em;
}

.c-pointer {
	cursor: pointer;
}

.img-table-sm {
	max-width: 100%;
	max-height: 38px;
}

.content-item-info-scrollable {
	overflow-y: scroll;
}

.custom-separator {
  display: flex;
  align-items: center;
  text-align: center;
}

.custom-separator span { margin-left: .25em; margin-right: .25em; }

.custom-separator::before,
.custom-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid currentcolor;
}

/* ---------------------------------------------------
    ANIMATION KEYFRAMES
----------------------------------------------------- */

@keyframes barberpole {
  100% {
    background-position: 100%;
  }
}

@keyframes gradient {
  0% {
    background-position: 0%;
  }
  50% {
    background-position: 100%;
  }	
  100% {
    background-position: 0%;
  }
}

@keyframes zoom-top {
  0% {
    background-size: 200% 200%;
    background-position: center center;
  }
  50% {
    background-size: 400% 400%;
    background-position: center top;
  }
  100% {
    background-size: 200% 200%;
    background-position: center center;
  }
}

@keyframes zoom-bottom {
  0% {
    background-size: 200% 200%;
    background-position: center center;
  }
  50% {
    background-size: 400% 400%;
    background-position: center bottom;
  }
  100% {
    background-size: 200% 200%;
    background-position: center center;
  }
}

/* Custom CSS for Bootstrap 5 used for applying btn style to elements like navbar toggler */
.btn-override {
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.btn-override:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.btn-override:focus {
    box-shadow: none;
}

/* Custom CSS for Bootstrap 5 text-nowrap breakpoints */
@media (min-width: 576px) {
  .text-sm-nowrap {
    white-space: nowrap !important;
  }
}

@media (min-width: 768px) {
  .text-md-nowrap {
    white-space: nowrap !important;
  }
}

@media (min-width: 992px) {
  .text-lg-nowrap {
    white-space: nowrap !important;
  }
}

@media (min-width: 1200px) {
  .text-xl-nowrap {
    white-space: nowrap !important;
  }
}

@media (min-width: 1400px) {
  .text-xxl-nowrap {
    white-space: nowrap !important;
  }
}

/* Custom CSS for Bootstrap 5 focus-ring */

.focus-ring-no-shadow:focus {
    box-shadow: none!important;
}

/* Custom CSS for Boostrap 5 file input */

.custom-file-button input[type=file] {
  margin-left: -2px !important;
}

.custom-file-button input[type=file]::-webkit-file-upload-button {
  display: none;
}

.custom-file-button input[type=file]::file-selector-button {
  display: none;
}

.custom-file-button:hover label {
  backdrop-filter: brightness(85%);
  cursor: pointer;
}

/* Custom CSS for Boostrap 5 tooltips */

.custom-tooltip {
  --bs-tooltip-bg: var(--bs-tertiary-bg);
  --bs-tooltip-color: var(--bs-body-color);
}

.custom-tooltip-secondary {
  --bs-tooltip-bg: var(--bs-secondary-bg);
  --bs-tooltip-color: var(--bs-body-color);
}

.custom-tooltip-primary {
  --bs-tooltip-bg: var(--bs-primary);
  --bs-tooltip-color: var(--bs-light);
}
.custom-tooltip-primary-subtle {
  --bs-tooltip-bg: var(--bs-primary-bg-subtle);
  --bs-tooltip-color: var(--bs-body-colorr);
}

.custom-tooltip-success {
  --bs-tooltip-bg: var(--bs-success);
  --bs-tooltip-color: var(--bs-light);
}
.custom-tooltip-success-subtle {
  --bs-tooltip-bg: var(--bs-success-bg-subtle);
  --bs-tooltip-color: var(--bs-body-color);
}

.custom-tooltip-danger {
  --bs-tooltip-bg: var(--bs-danger);
  --bs-tooltip-color: var(--bs-light);
}
.custom-tooltip-danger-subtle {
  --bs-tooltip-bg: var(--bs-danger-bg-subtle);
  --bs-tooltip-color: var(--bs-body-color);
}

.custom-tooltip-warning {
  --bs-tooltip-bg: var(--bs-warning);
  --bs-tooltip-color: var(--bs-dark);
}
.custom-tooltip-warning-subtle {
  --bs-tooltip-bg: var(--bs-warning-bg-subtle);
  --bs-tooltip-color: var(--bs-body-color);
}

.custom-tooltip-info {
  --bs-tooltip-bg: var(--bs-info);
  --bs-tooltip-color: var(--bs-body-bg);
}
.custom-tooltip-info-subtle {
  --bs-tooltip-bg: var(--bs-info-bg-subtle);
  --bs-tooltip-color: var(--bs-body-bg);
}


/* Custom CSS for swiper.js */

.swiper-container {
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.gallery-top {
  height: 80%;
  width: 100%;
}

.gallery-thumbs {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
}

.gallery-thumbs .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  opacity: 1;
  background-color: rgba(255,255,255,0.65);
  border: 2px solid grey;
}

.swiper-pagination-bullet-active {	
  background-color: rgba(255,255,255,0.85);
  border: 2px solid black;
}

.swiper-pagination-bullets {
  bottom: 2px;
}

.swiper-container-banner {
  width: 100%;
  height: 100vh;
  max-width: 800px;
  max-height: 160px;
  overflow: hidden;
}

/* banner swiper */
#banner {
	position: relative;
}

.swiper-slide-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.slide-captions-bottom {
  top: 85%!important;
  transform: translateY(-85%)!important;
}

.slide-captions-top {
  top: 15%!important;
  transform: translateY(-15%)!important;
}

.slide-captions {
  display: none; /* Disabled by default, enabled by JS if captions are needed */
  z-index: 9;
  position: absolute;
  left: 2%;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  padding: 0.5rem;
  border-radius: 12px;
}

.slide-captions .current-title {
	font-size: 1.2rem;
}

@media screen and (min-width: 1400px) {
  .slide-captions .current-title {
    font-size: 1.2rem;
  }
}
@media screen and (max-width: 1200px) {
  .slide-captions .current-title {
    font-size: 1.1rem;
  }
}
@media screen and (max-width: 992px) {
  .slide-captions .current-title {
    font-size: 1.0rem;
  }
}
@media screen and (max-width: 768px) {
  .slide-captions .current-title {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 576px) {
  .slide-captions .current-title {
    font-size: 0.8rem;
  }
}

/* Custom CSS to make HTML 5 invalid align work nicely without changing HTML */
th[align="left"] {
  text-align: left;
}

th[align="center"] {
  text-align: center;
}

th[align="right"] {
  text-align: right;
}

td[align="left"] {
  text-align: left;
}

td[align="center"] {
  text-align: center;
}

td[align="right"] {
  text-align: right;
}

/* Custom CSS for toastui-editor */
.toastui-editor-contents {
	font: inherit;
}

.toastui-editor-contents table {
	width: 100%;
}

.toastui-editor-contents table th {
  color: var(--bs-emphasis-color)!important;
  background-color: var(--bs-light-bg-subtle)!important;
  font-weight: 500!important;
}

.toastui-editor-contents table th p {
  color: var(--bs-emphasis-color)!important;
}

.toastui-editor-contents hr {
    opacity: 1;
}

/* CSS for Home Cards grid layout */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 9px;
  width: 100%;
}

#home-card-1 {
    grid-column: 1 / span 1;
    grid-row: 1 / span 2;
}

#home-card-2 {
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
}

#home-card-3 {
    grid-column: 3 / span 1;
    grid-row: 1 / span 1;
}

#home-card-4 {
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
}

#home-card-5 {
    grid-column: 3 / span 1;
    grid-row: 2 / span 1;
}

@media (max-width: 1400px) {
	.home-cards {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(3, 1fr);
	}
		
	#home-card-2 {
	  grid-column: 2 / span 1;
	  grid-row: 1 / span 1;
	}
	
	#home-card-3 {
	  grid-column: 2 / span 1;
	  grid-row: 2 / span 1;
	}
	
	#home-card-4 {
	  grid-column: 1 / span 1;
	  grid-row: 3 / span 1;
	}
	
	#home-card-5 {
	  grid-column: 2 / span 1;
	  grid-row: 3 / span 1;
	}
}

@media (max-width: 1200px) {
	.home-cards {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(6, 1fr);
	}
	
	#home-card-1 {
		grid-column: 1 / span 1;
		grid-row: 1 / span 2;
	}
	
	#home-card-2 {
		grid-column: 1 / span 1;
		grid-row: 3 / span 1;
	}
	
	#home-card-3 {
		grid-column: 1 / span 1;
		grid-row: 4 / span 1;
	}
	
	#home-card-4 {
		grid-column: 1 / span 1;
		grid-row: 5 / span 1;
	}
	
	#home-card-5 {
		grid-column: 1 / span 1;
		grid-row: 6 / span 1;
	}
}


/* Fix material-symbols-outlined when inside th-m class, should be smaller */
.th-m > span.material-symbols-outlined {
    font-size: 1.35rem;
}

/* Fix material-symbols-outlined when inside th-sm class, should be smaller */
.th-sm > span.material-symbols-outlined {
    font-size: 1.1rem;
}


/* Item info images are fluid, prevent the parent <td> from becoming too small */
.min-info-width {
	min-width: 50px;
}

/* For vanilla-picker (js color picker) */
/* Checkered button background with ::before pseudo element which holds the foreground color */
.checkered-button {
  position: relative;
  background: 
    linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,
    linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;
}

.checkered-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  z-index: -1;
  border-radius: 6px
}

.layout_default .picker_editor input {
    font-size: 0.75rem;
}

.layout_default .picker_sample {
	display: none;	
}

.layout_default .picker_editor {
    width: 11rem;
}

.picker_cancel {
    display: none;
}

/* For toastui-editor */
.toastui-editor-defaultUI .toastui-editor-md-tab-container {
    background: var(--bs-body-bg);
}

/* For bootstrap-select  */
.dropdown-item:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-secondary-bg-subtle);
}

.bootstrap-select .dropdown-menu {
    z-index: 9999;
}

.bootstrap-select .dropdown-menu li a {
    border-bottom: 1px dotted currentColor;
}

/* For typeahead  */
.tt-menu {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;
}
.search-box-menu{ /* Firefox fix  */
    width: 100%;
    min-width: 18.75rem !important;
}

p.tt-suggestion{
	margin-bottom: 0;
}

p.tt-suggestion.tt-selectable.tt-cursor:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-secondary-bg-subtle);
    cursor: pointer;
}



/* Custom CSS for marquee */
.marquee {
  --gap: 1rem;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll 60s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

.marquee-reverse .marquee-content {
  animation-direction: reverse;
}

.marquee-content > * {
  flex: 0 0 auto;
  text-align: center;
  margin-right: 2rem;
}

/* Custom CSS for Data Tables */
.dataTable td {
	vertical-align: middle;
}

.dt-extra-content {
    margin-bottom: .5rem !important;
}

.dt-extra-title {
	font-weight: bold;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
  color: inherit;
  border: none;
  box-sizing: initial;
  margin-right: auto;
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: bottom;
  content: "\e7cd";
}

table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>th.dtr-control:before {
  border: none;
  content: "\f5d2";
}



