/* ********************************************************************* */
/* Root */
/* ********************************************************************* */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* ========== Root ========== */

:root {
  /* Layout Breakpoints */
  --xxl-breakpoint: 1400px;
  --xl-breakpoint: 1200px;
  --lg-breakpoint: 992px;
  --md-breakpoint: 768px;
  --sm-breakpoint: 576px;
  /* Fonts */
  --main-font-family: "Inter", "Arial", sans-serif;
  /* Backgrounds */
  --main-background-color: #121212;
  --global-form-nav-background: rgba(245, 245, 247, 0.8);
  /* Main Menu */
  --main-header-height: 40px;
  /* Mitsubishi Colors */
  --mitsubishi-red: #ed0000;
  --mitsubishi-anthracite-gray: #686d71;
  --mitsubishi-cold-gray: #bfc2c4;
  --mitsubishi-concrete-gray: #e3e5e6;
  /* Color Palette ===== */
  --primary-color: #0e4bf1;
  --panel-color: #fafafa;
  --background-color: #e0e0e0;
  --text-color: #000;
  --black-light-color: #707070;
  --border-color: #e6e5e5;
  --toggle-color: #ddd;
  --box1-color: #4da3ff;
  --box2-color: #ffe6ac;
  --box3-color: #e7d1fc;
  --title-icon-color: #fff;
  /* Transitions */
  --tran-05: all 0.5s ease;
  --tran-03: all 0.3s ease;
  --tran-03: all 0.2s ease;
  --toast-animation-duration: 4s;
  /* CMS */
  --panel-border-radius: 10px;
  --border-radius-btn: 10px;
}

/* Desktop */
@media (min-width: 992px) {
  :root {
    /* Main Menu */
    --main-header-height: 40px;
    --page-container-margin: 0 35px 35px 35px;
  }
}

/* ********************************************************************* */
/* Default */
/* ********************************************************************* */

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

body {
  font-family: var(--main-font-family);
  background-color: var(--main-background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.dark-mode {
  --primary-color: #3a3b3c;
  --panel-color: #242526;
  --background-color: #000000;
  --default-text-color: #ccc;
  --black-light-color: #ccc;
  --border-color: #4d4c4c;
  --toggle-color: #fff;
  --title-icon-color: #ccc;
  --text-color: #ffffff;
  --main-background-color: #000000;
}

body.dark-mode::-webkit-scrollbar-thumb:hover,
body.dark-mode .activity-data::-webkit-scrollbar-thumb:hover {
  background: #3a3b3c;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ********************************************************************* */
/* Scrollbar */
/* ********************************************************************* */

/* Set the width of all scrollbars in WebKit-based browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  width: 15px;
}

/* Style the track (background) of all scrollbars */
*::-webkit-scrollbar-track {
  background: var(--mitsubishi-concrete-gray);
}

/* Style the draggable thumb of all scrollbars */
*::-webkit-scrollbar-thumb {
  background: var(--mitsubishi-cold-gray);
  transition: var(--tran-03);
}

/* Change the thumb color when the user hovers over it */
*::-webkit-scrollbar-thumb:hover {
  background: var(--mitsubishi-anthracite-gray);
}

li {
  list-style: none;
}

/* continua existindo */
.hidden {
  display: none !important;
}

/* ocupa espaço mas fica invisível */
.invisible {
  visibility: hidden !important;
}

/* ocupa espaço, visível ao layout, mas transparente */
.transparent {
  opacity: 0 !important;
}

h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  line-height: normal;
  font-weight: 600;
}

h1 ion-icon {
  margin: 0 10px 0 0;
}

.page-title {
  margin: 0;
  padding: 20px;
  text-align: center;
}

progress {
  width: 100%;
  max-width: 100%;
  vertical-align: baseline;
}

#page-overlay {
  display: none;
}

/* Page Backdrop */
#backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  -moz-backdrop-filter: blur(3px);
  -ms-backdrop-filter: blur(3px);
  -o-backdrop-filter: blur(3px);
  visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibilityr: hidden;
  -o-backface-visibility: hidden;
  backface-visibility: hidden;
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
  transition: all 0.5s ease-in-out;
  z-index: 100;
}

#backdrop.is-visible {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.black-overlay:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.6;
  transition: all 0.5s ease-out;
  background-color: #000000;
}

.box_container {
  margin: 0;
  padding: 0;
}

/* ======================== PAGE NAV ======================== */

.pagination {
  display: flex;
  flex-direction: column;
  padding: 0;
  width: max-content;
  text-align: center;
  list-style: none;
}

.page-nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
}

.pages-nav {
  display: inline-flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pages-nav li {
  display: inline-flex;
}

.pages-nav li a,
.pages-nav li button {
  display: flex;
  align-items: center;
  font-size: 12px;
  line-height: normal;
  font-weight: 700;
  color: #101010;
  float: left;
  padding: 10px 15px;
  text-decoration: none;
  transition: background-color 0.3s;
  border-top: 1px solid #101010;
  border-bottom: 1px solid #101010;
  border-left: none;
  border-right: none;
  outline: none;
}

.pages-nav li:first-child a,
.pages-nav li:first-child button {
  padding: 10px 15px;
  border-left: 1px solid #101010;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.pages-nav li:last-child a,
.pages-nav li:last-child button {
  padding: 10px 15px;
  border-right: 1px solid #101010;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.pages-nav li a.active,
.pages-nav li button.active {
  background-color: #101010;
  color: #ffffff;
  border: 1px solid transparent;
}

.pages-nav li a:hover:not(.active),
.pages-nav li button:hover:not(.active) {
  background-color: #d3d3d3;
}

/* ********************************************************************* */
/* Data Tables */
/* ********************************************************************* */

.data-table,
.data-table th,
.data-table td {
  border: none;
}

.data-table {
  border: none;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
  border-spacing: 0px;
  margin-left: auto;
  margin-right: auto;
}

.data-table thead {
  color: #000000;
}

.data-table thead tr {
  border-bottom: 2px solid #000000;
}

.data-table tbody {
  min-height: 200px;
}

.data-table caption {
  display: none;
}

.data-table tr {
  border: none;
  cursor: default;
  border-bottom: 1px solid #d9d9d9;
}

.data-table tbody tr:hover {
  background-color: #eaeaea !important;
}

.data-table tbody tr:nth-child(even) {
  background-color: #f7f7f7;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table th,
.data-table td {
  padding: 10px 7px;
  font-size: 11px;
  line-height: normal;
  word-wrap: break-word;
}

.data-table th {
  letter-spacing: 0;
  border-bottom: none;
}

@media screen and (max-width: 950px) {

  .data-table,
  .data-table th,
  .data-table td {
    border: 0;
  }

  .data-table {
    border: 0;
  }

  .data-table caption {
    font-size: 10px;
  }

  .data-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .data-table tr {
    display: block;
    background-color: #ffffff;
    margin-bottom: 20px;
  }

  .data-table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: 12px;
    text-align: right;
  }

  .data-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }
}

#table_no_data {
  display: block;
  min-height: 200px;
  margin: 0 auto;
  padding: 20px 0 0 0;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

/* ********************************************************************* */
/* Date Range Picker */
/* ********************************************************************* */

/* Container principal: posicionado relativo */
#date_range_container {
  position: relative;
}

/* O picker é posicionado absoluto; os valores de top e left são definidos dinamicamente */
.custom-daterangepicker {
  display: none;
  position: absolute;
  min-width: 100%;
  max-width: 100%;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  flex-flow: wrap;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  margin-top: 1px;
  padding: 0;
  background-color: #ffffff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: 4px 9px 10px 0px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
}

.custom-daterangepicker.show {
  opacity: 1;
  transform: translateY(0);
}

/* Contêiner de conteúdo que agrupa os painéis esquerdo e direito */
.drp-content {
  display: flex;
  width: 100%;
}

/* Painel esquerdo com largura fixa */
.drp-left {
  display: flex;
  /* justify-content: flex-start; */
  flex-direction: column;
  /* border-right: 1px solid #eee; */
  padding: 10px;
  gap: 3px;
}

/* Painel direito: oculto inicialmente; será exibido quando Custom Range for selecionado */
.drp-right {
  display: none;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 8px;
  display: none;
  flex: 1 0 0%;
}

.drp-right label {
  margin-bottom: 5px;
  font-size: 13px;
}

/* Calendários */
.drp-calendars {
  gap: 8px;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.calendar-box {
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  padding: 5px;
  font-size: 12px;
  min-width: auto;
  flex: 1 0 0%;
}

.calendar-box:last-child {
  margin-right: 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.calendar-header .drp-nav {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 3px;
}

.calendar-header .arrow {
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  padding: 0 5px;
}

.calendar-table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
}

.calendar-table thead th {
  color: #666;
  font-weight: normal;
  padding-bottom: 3px;
  font-size: 12px;
}

.calendar-table tbody td {
  width: 28px;
  height: 28px;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border-radius: 0;
}

.calendar-table td .day-span {
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  margin: 0 auto;
  border-radius: 50%;
  transition: background-color 0.1s;
}

.calendar-table td:not(.invalid):not(.hover-start-date):not(.hover-end-date):hover .day-span {
  background-color: #eee;
  border-radius: 50%;
}

.calendar-table td.other-month .day-span {
  color: #aaa;
}

.calendar-table td.today .day-span {
  background-color: #000 !important;
  color: #fff;
  border-radius: 50% !important;
}

.calendar-table td.in-range {
  background-color: #cce5ff;
}

/*.calendar-table td.today-in-range .day-span {
  background-color: #cce5ff !important;
  color: inherit !important;
}*/

.calendar-table td.start-date {
  background-color: #007bff;
  color: #fff;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.calendar-table td.end-date {
  background-color: #007bff;
  color: #fff;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.calendar-table td.start-date.end-date {
  border-radius: 20px;
}

.calendar-table td.today.start-date .day-span,
.calendar-table td.today.end-date .day-span,
.calendar-table td.today.hover-start-date .day-span,
.calendar-table td.today.hover-end-date .day-span {
  background-color: inherit !important;
  color: inherit !important;
  border-radius: inherit !important;
}

.calendar-table td.today.in-range {
  background-color: #cce5ff !important;
}

.calendar-table td.invalid .day-span {
  color: #ccc;
  background-color: #f1f1f1;
  cursor: not-allowed;
}

.calendar-table td.hover-range {
  background-color: #e6f2ff;
}

.calendar-table td.hover-start-date {
  background-color: #66b3ff !important;
  color: #fff !important;
  border-top-left-radius: 20px !important;
  border-bottom-left-radius: 20px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.calendar-table td.hover-end-date {
  background-color: #66b3ff !important;
  color: #fff !important;
  border-top-right-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.calendar-table td.start-date:hover .day-span,
.calendar-table td.end-date:hover .day-span {
  background-color: inherit !important;
}

/* Footer: ficará abaixo do contêiner de conteúdo; oculto por padrão */
.drp-footer {
  display: none;
  position: sticky;
  bottom: 0;
  padding: 8px;
  border-top: 1px solid #eee;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
}

.drp-footer .drp-selection {
  float: left;
  font-size: 13px;
  margin-top: 4px;
}

.drp-footer button {
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
}

.drp-clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.drp-footer .arrow {
  display: inline-block;
  margin: 0 5px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .drp-calendars {
    flex-direction: column;
  }

  .calendar-box {
    margin-right: 0;
    margin-bottom: 8px;
  }
}