@import './constants.css';

@media (max-width: 1100px) {
  .hide-mobile {
    display: none;
  }
}

body {
  overflow: auto; /* Clearfix to contain the floated children */
  font-family: var(--main-font-family);
  background-color: #0F283E;
  color: #FFFFFF;
}

.error {
  color: #FF0000;
  position: relative;
  top: 50px;
  left: 100px;
}

.outer-container {
  display: flex; 
  flex-direction: row;
}

.inner-container {
  display: flex; 
  flex-direction: column; 
  width: 100%;
}

/* Fonts */

h1 { 
  font-family: var(--bold-font-family);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.84px;
  white-space: nowrap;
}

h1.dark {
  color: var(--font-dark);
}

h1.light {
  color: var(--font-light)
}

h2 { 
  font-family: var(--medium-font-family);
  font-size: 28px;
  font-weight: 500;
}

h2.light {
  color: var(--font-light);
}

h2.dark {
  color: var(--font-dark);
}

h3 {
  font-family: var(--medium-font-family);
  font-size: 22px;
  font-weight: 500;
}

h3.main {
  font-family: var(--main-font-family);
}

h3.light {
  color: var(--font-light);
}

h3.dark {
  color: var(--font-dark);
}

h3.italic {
  font-family: var(--light-font-family);
  font-style: italic;
}

.font-x-small {
  font-size: var(--font-x-small);
  font-weight: 400;
  color: var(--font-light);
}

.font-x-small.subtle {
  color: var(--font-subtle);
}

.font-x-small.bold {
  font-size: var(--font-x-small);
  font-weight: 500;
  font-family: var(--medium-font-family);
}

.font-small { 
  color: var(--font-light);
  font-size: var(--font-small);
  font-family: var(--main-font-family);
  font-weight: 400;
}

.font-small.light-italic {
  font-family: var(--light-font-family);
  font-style: italic;
}

.font-small.dark { 
  color: var(--font-dark);
}

.font-small.link {
  color: var(--brand-700);
  text-decoration: none;
}

.font-small.link:hover {
  color: var(--brand-600);
}

.font-small.subtle { 
  color: var(--font-subtle);
}

.font-small-bold { 
  color: var(--font-light);
  font-size: var(--font-small);
  font-family: var(--medium-font-family);
  font-weight: 500;
}

.font-small-bold.dark { 
  color: var(--font-dark);
}

.font-small.gray-medium {
  font-family: var(--medium-font-family);
  font-weight: 500;
  color: var(--font-light-secondary);
}

.font-medium { 
  color: var(--font-light);
  font-size: var(--font-medium);
  font-family: var(--main-font-family);
  font-weight: 400;
}

.font-medium-dark { 
  color: var(--font-dark);
  font-size: var(--font-medium);
  font-family: var(--main-font-family);
  font-weight: 400;
  word-wrap: break-word;
}

.font-medium.subtle {
  color: var(--font-subtle);
}

.font-medium.darkblue { 
  color: var(--base-600);
}

.font-medium.lightblue { 
  color: var(--brand-700);
}

.font-medium-bold {
  font-family: var(--medium-font-family);
  font-size: var(--font-medium);
  font-weight: 500;
}

.font-medium-bold.light {
  color: var(--font-light);
}

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

.font-medium-italic {
  font-family: var(--main-font-family);
  font-size: var(--font-medium);
  font-style: italic;
}

.font-medium-bold.darklight {
  color: #DCE2E9;
}

.font-medium-bold.dark {
  color: var(--font-dark);
  line-height: 100%;
}

.font-medium-bold.base-400 {
  color: var(--base-400);
}

.font-medium-dark-bold {
  color: var(--font-dark);
  font-size: var(--font-medium);
  font-weight: 500;
}

.font-link-medium {
  color: var(--brand-700);
  font-size: var(--font-medium);
  font-weight: 400;
  text-decoration-line: underline;
}

.font-large { 
  color: var(--font-light);
  font-size: var(--font-large);
  font-family: var(--main-font-family);
  font-weight: 400;
  white-space: nowrap;
}

.font-large.dark { 
  color: var(--font-dark);
}

.font-large.subtle { 
  color: var(--font-subtle);
}


.font-large-italic { 
  color: white;
  font-size: var(--font-large);
  font-family: var(--main-font-family);
  font-style: italic;
  font-weight: 400;
  word-wrap: break-word;
}

.font-large-bold {
  color: var(--font-light);
  font-size: var(--font-large);
  font-family: var(--medium-font-family);
  font-weight: 500;
  word-wrap: break-word;
}

.font-large-bold.dark {
  color: var(--font-dark);
}

.font-xl {
  color: var(--font-light);
  font-family: var(--main-font-family);
  font-size: 20px;
  font-weight: 400;
}

.font-xl-bold {
  color: var(--font-light);
  font-family: var(--medium-font-family);
  font-size: 20px;
  font-weight: 400;
}

.font-xl.dark {
  color: var(--font-dark);
}

.font-link {
  color: var(--brand-700);
  font-size: var(--font-large);
  font-weight: 400;
  text-decoration-line: underline;
}

.italics {
  font-style: italic;
}

a:hover {
  color: var(--brand-600);
}

.font-subtle {
  color: var(--font-subtle);
}

/* Layout */

.flex {
  display: flex;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-double-centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-vertical-centered {
  display: flex;
  align-items: center;
}

.flex-horizontal-centered {
  display: flex;
  justify-content: center;
}

.flex-vertical-space-between {
  display: flex;
  align-content: space-between;
}

.layout-centered {
  display: flex;
  flex-direction: column;
  font-style: normal;
  line-height: normal;
  margin-left: auto;
  margin-right: auto;
}

.responsive-padding {
  padding: 52px 200px; /* Default for larger screens */
}

/* Medium screens */
@media (max-width: 1700px) {
  .responsive-padding {
    padding-left: 100px;
    padding-right: 100px;
  }
}

/* Small screens */
@media (max-width: 1400px) {
  .responsive-padding {
    padding-left: 30px;
    padding-right: 30px;  }
}

.reports-page-padding{
  padding: 52px 200px; /* Default for larger screens */
}

@media (max-width: 1850px) {
  .reports-page-padding {
    padding-left: 100px;
    padding-right: 100px;
  }
}

@media (max-width: 1550px) {
  .reports-page-padding {
    padding-left: 30px;
    padding-right: 30px;
  }
}


.responsive-padding-long {
  padding: 52px 200px; /* Default for larger screens */
}

@media (max-width: 1700px) {
  .responsive-padding-long {
    padding-left: 100px;
    padding-right: 100px;
  }
}

@media (max-width: 1100px) {
  .responsive-padding-long {
    padding-left: 60px;
    padding-right: 60px;
  }
}

.align-right {
  margin-left: auto;
}

html, body {
  overflow-x: hidden;
}


.flex-space-between {
  display: flex;
  justify-content: space-between;
}

.no-margin {
  margin: 0px;
}

.no-shrink {
  flex-shrink: 0;
}

.grid {
  display: grid;
  width: 100%;
  grid-auto-flow: row;
  margin-bottom: 52px;
}

.grid.smallbox {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.margin_right_auto {
  margin-right:auto;
}

@media screen and (max-width: 2300px) {
  .grid.smallbox {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 2000px) {
  .grid.smallbox {
    grid-template-columns: 1fr 1fr 1fr 1fr
  }
}

@media screen and (max-width: 1500px) {
  .grid.smallbox {
    grid-template-columns: 1fr 1fr 1fr ;
  }
}

@media screen and (max-width: 1100px) {
  .grid.smallbox {
    grid-template-columns: 1fr 1fr;
  }
}

.grid.largebox {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

@media screen and (max-width: 2600px) {
  .grid.largebox {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}


@media screen and (max-width: 2200px) {
  .grid.largebox {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 1800px) {
  .grid.largebox {
    grid-template-columns: 1fr 1fr;
  }
}

.inline-grid {
  display: inline-grid;
}

.margin_right_auto {
  margin-right: auto;
}

/* Colors */
.active_color {
  color: #2EFFA8
}

.inactive_color {
  color: #E25050
}

.active_background_color {
  background-color: #2EFFA8
}

.inactive_background_color {
  background-color: #E25050
}

/* Checkbox */
.check-box {
  height: 20px;
  width: 20px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 2px solid var(--brand-700);
}

.check-box.selected {
  background: var(--brand-700);
}

.checkmark {

}

/* Dropdown menus */

.dropdown_arrow {
  height: 24px;
  width: 24px;
}

.dropdown_field {
  width: 165px;
  border-radius: 8px;
  background: var(--color-white);
  padding: 2px; 
  box-sizing: border-box;
  display: flex;
  flex-direction: column; 
  position: fixed; 
  z-index: 1;
  margin-top: 5px;
  margin-bottom: 5px;
}


.scrollable-dropdown::-webkit-scrollbar {
  width: 7px;
}

.scrollable-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable-dropdown::-webkit-scrollbar-thumb {
  background: var(--brand-900);
  border-radius: 8px;
}

.scrollable-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--brand-800);
}

.scrollable-dropdown {
  max-height: var(--dropdown-max-height); 
  overflow-y: auto;
}

@media (max-height: 962px) {
  .scrollable-dropdown.userpopup {
    height: calc(var(--dropdown-max-height) - (962px - 100vh));
    min-height: calc(var(--dropdown-max-height) - 140px);
  }
}

.dropdown_content_box {
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/*.dropdown_content_box:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dropdown_content_box:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}*/

.dropdown_content_box img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.dropdown_content_box:hover {
  background-color: var(--brand-500);
}

/* Status bar */

.status-bar { 
  height: 100%;
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 10px;
  padding-right: 7px;
  background: var(--color-active);
  border-radius: 4px;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  display: inline-flex;
  line-height: 24px;
}

.status-bar.sporadic {
  background: var(--color-sporadic-light);
}

.status-icon { 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  position: relative;
}

/* Input field */
.custom_input_txt {
  background-color: var(--color-white);
  border-radius: 6px;
  border: 2px solid var(--color-white);
  padding: 12px 12px 12px 16px;
  color: var(--font-dark);
  font-size: var(--font-medium);
  line-height: 110%;
}

input::placeholder {
  color: var(--font-subtle-extra-dark);
  font-size: var(--font-medium);
  font-family: var(--main-font-family);
  font-weight: 400; 
}

textarea:focus, input:focus{
  outline: none;
}

/* Status */

.status-label {
  display: flex;
  padding: 1px 7px 1px 10px;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
}

.status-label.red {
  background: var(--color-inactive-light);
}

.status-label.yellow {
  background: var(--color-sporadic-light);
}

.colored-circle-status {
  height: 10px;
  width: 10px;
  border-radius: 50%;
}

.colored-circle-status.high {
  background: var(--color-active);
}

.colored-circle-status.medium {
  background: var(--color-sporadic);
}

.colored-circle-status.low {
  background: var(--color-inactive);
}

.cleaning-status-now {
  gap: 6px;
  padding: 6px;
  border-radius: 6px;
  background: var(--base-500);
}

.alert-count-status {
  padding: 3px 4px 3px 10px;
  gap: 8px;
  border-radius: 4px;
}

.alert-count-status.green {
  background: var(--brand-500);
}

.alert-count-status.red {
  background: var(--color-inactive-light);
}

.alert-count-status-circle {
  height: 20px;
  width: 20px;
  border-radius: 50%;
}

.alert-count-status-circle.green {
  background: var(--color-active-dark);
}

.alert-count-status-circle.red {
  background: var(--color-inactive);
}

/* Table */
.site-tb-inline {
  border-radius: 8px;
  padding: 24px;
  background: var(--base-700);
  gap: 23px;
}

.net-property {
  padding: 8px 0px;
  border-bottom: 1.5px solid var(--base-600);
}

.box-vessel-name-holder {
  height: 31px; 
  font-style:italic; 
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--base-600);
}

/* Buttons and icons */

button {
  border-color: transparent;
}

.button-sidebar {
  width: 100%;
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--base-900);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
  color: #A3B8C2; /* Default text color */
}

.sidebar-submodules {
  max-height: 300px;
  overflow-y: auto;
  
}

.sidebar-submodules::-webkit-scrollbar {
  width: 7px;
}

.sidebar-submodules::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-submodules::-webkit-scrollbar-thumb {
  background: var(--base-800);
  border-radius: 8px;
}

.sidebar-submodules::-webkit-scrollbar-thumb:hover {
  background: var(--base-700);
}

.button-sidebar-submodule {
  padding: 8px 12px 8px 40px;
  margin-right: 8px;
  border-radius: 6px;
  background: var(--base-900);
}

.button-sidebar-submodule:hover {
  background: var(--base-800);
}

.button-sidebar-submodule.selected {
  background: var(--base-600);
}

.button-sidebar-submodule.selected:hover {
  background: var(--base-600);
}

.sidebar-submodule-font {
  font-size: var(--font-medium);
  font-family: var(--medium-font-family);
  font-weight: 500;
  line-height: 24px;
  color: var(--base-400);
}

.sidebar-submodule-font.selected {
  color: var(--font-light);
}


.sidebar-icon {
  width: 16px;
  height: 16px;
}

.sidebar-arrow {
  width: 24px;
  height: 24px;
}

.sidebar-arrow.selected {
  transform: rotate(180deg);
}

.button-sidebar:hover {
  background-color: var(--base-700) ;
}

.button-sidebar.selected { /* Add a class for the selected state */
  background-color: var(--brand-600); /* Changed to light blue */
  color: #051E33; /* Text color changed to dark blue */
}

.button-sidebar:focus {
  outline: none;
  background-color: var(--brand-600); /* Changed to light blue */
  color: #051E33; /* Text color changed to dark blue */
}

.sidebar-count {
  height: 25px;
  width: 25px;
  background: var(--color-inactive);
  border-radius: 50%;
}

.text {
  text-align: left;
  font-size: 16px;
  font-family: var(--medium-font-family);
  font-weight: 500;
  word-wrap: break-word;
}

.button-plus {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 12px 20px;
  padding-left: 8.41px;
  gap: 8px;
  border-radius: 6px;
  background: var(--brand-700);
}

.button-plus:hover {
  background: var(--brand-600);
}

.button-logout {
  height: 48px;
  width: 100%;
  border-radius: 8px;
  padding: 12px 14px 12px 14px;
  align-items: left;
  display: flex;
  flex-direction: row;
  gap: 10px;
  background: transparent;
  color: #A3B8C2;
}

/*.button-sidebar {
  width: 100%;
  height: 65px;
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--base-800);
  border-radius: 8px;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  display: inline-flex;
  color: #A3B8C2; 
}*/

.button-logout:hover {
  background-color: var(--base-700);
}

.button-logout:active {
  background-color: var(--brand-600);
}

.annotate-nav-btn {
  display: flex;
  padding: 10px 16px;
  justify-content:right;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  border-radius: 6px;
  border: 1.5px solid #76E9F4;
}

.annotate-nav-btn.gray {
  border: 1.5px solid var(--base-400);
}

.annotate-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.annotate-btn-font {
  color: #76E9F4;
  line-height: 120%;
}

.annotate-btn-font.gray {
  color: var(--base-400);
  line-height: 120%;
}

.link-img:hover {
  border: 1px solid #d0d0d0;
}

.icon-trash {
  display: flex;
  padding: 6px;
  border-radius: 6px;
}

.icon-trash:hover {
  box-shadow: 0px 0px 2px 2px var(--base-400), 0px 0px 0px 2px var(--base-500);

}

.icon-plus {
  display: flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.standard-button-hollow {
  padding: 10px 24px;
  border-radius: 6px;
  border: 1.5px solid var(--base-400);
  background: transparent;
}

.standard-button-hollow:hover {
  background: var(--base-700);
}

.standard-button-filled {
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--brand-700);
}

.standard-button-filled:hover {
  background: var(--brand-600);
}

.standard-button-filled.red {
  background: var(--color-inactive);
}

.standard-button-filled.red:hover {
  background: var(--color-inactive-light);
}


.alertify .ajs-body,
.alertify .ajs-content,
.alertify .ajs-header,
.alertify .ajs-footer {
  color: black;
}

/* If you specifically want to target the message content */
.alertify .ajs-content {
  color: black;
}

/* Language dropdown */
.language_settings {
  padding: 6px 10px;
  background-color: transparent;
  display: inline-flex; 
  align-items: center;
  gap: 8px;
  position: relative; 
  cursor: pointer;
  border: none; 
  border-radius: 8px;
}

.language_settings:hover {
  background-color: var(--base-700);
}

.language_settings.selected {
  background-color: var(--base-600);
}

.flag {
  height: 20.7px;
  width: 20.7px;
}

.lang_dropdown_field {
  width: 37.7px; 
  background-color: var(--font-light);
  border-radius: 15px; 
  padding: 6px 8.5px; 
  box-shadow: 0 0 10px rgba(0,0,0,0.1); 
  display: block;
  flex-direction: column; 
  align-items: center; 
  position: fixed; 
  z-index: 1;
  margin-top: 5px;
}

.dropdown_flag {
  margin-bottom: 5px; 
  display: block;
  width: 100%;
  text-decoration: none;
}

.dropdown_flag img {
  max-width: 100%;
  display: block; 
}

.dropdown_flag:last-child {
  margin-bottom: 0; 
}

/* Standard dropdown button */
.standard-dropdown-btn {
  padding: 10px 14px;
  background: var(--base-800);
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 2px solid var(--base-600);
}

.standard-dropdown-btn.disabled {
  pointer-events: none !important; 
  opacity: 0.5 !important;
}

.standard-dropdown-btn:hover {
  background: var(--base-700);
}

.standard-dropdown-btn.selected {
  background: var(--base-600);
}

.standard-dropdown-btn.clearable {
  background: var(--base-500);
  border-radius: 6px 0px 0px 6px;
  border: 2px solid var(--base-500);
}

.standard-dropdown-btn.clearable:hover {
  background: var(--base-400);
  border: 2px solid var(--base-400);
}

.dropdown-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--base-600);
  border-radius: 0px 6px 6px 0px;
  padding: 12px; 
}

.dropdown-clear:hover {
  background: var(--base-400);

}

.user_profile_btn {
  padding: 0px 10px;
  margin: 10px 0px;
  border-radius: 8px;
}

.user_profile_btn:hover {
  background: var(--base-700);
}

/* Datepicker */
.daterange {
  width: auto;
  height: auto;
  background: transparent;
  padding: 0px;
  border: none;
  color: var(--font-light);
}

#initial_time_button {
  color: var(--font-light);
}

/* User */
.user-popup {
  position: fixed;
  padding: 15px 15px 50px 50px;
  z-index: 1000;

  border-radius: 8px;
  /* Drop */
  box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.15);
  top: 50%;
  left: 50%;

  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  border-left: 10px solid var(--base-500);
  background: var(--base-700);
}

.user_profile_button {
  position: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  background: var(--base-500);
}

.user_profile_button:hover {
  background: var(--base-400);
}

/* Pagination panel */

.pagination-panel {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.pagination-nav {
  display: flex;
  flex-direction: row;
}

.pagination-btn {
  display: flex;
  width: 32px;
  height: 32px;
}

.pagination-btn.arrow {
  padding: 8px;
}

.pagination-btn.not_selected {
  display: flex; 
  justify-content: center; 
  align-items: center
}

.pagination-btn.not_selected:hover {
  background-color: var(--base-600);
  border-radius: 3px;
}

.pagination-btn.selected {
  display: flex; 
  justify-content: center; 
  align-items: center;
  border-radius: 3px;
  background-color: var(--brand-800);
}

.disabled-click {
  pointer-events: none;
}