:root {
  /* ===== Colors ===== */
  --error-color: #f17272;
  --body-color: #fafafa;
  --sidebar-color: #fff;
  --tr-color: #fff;
  --tr-border-color: #e6e6e6;
  --primary-color: #034e94;
  --primary-color-light: #f5f5f5;
  --toggle-color: #ffffff;
  --text-color: rgb(46, 46, 46);
  --scroll-color: rgb(182, 182, 182);
}

body.dark {
  --body-color: #18191a;
  --sidebar-color: #242526;
  --tr-color: #2b2b2c;
  --tr-border-color: #39393a;
  --primary-color: #034e94;
  --primary-color-light: #3a3b3c;
  --toggle-color: #fff;
  --text-color: rgb(255, 255, 255);
  --scroll-color: rgb(182, 182, 182);
}

.text-dark {
  color: #2e2e2e !important;
}

.form-group label {
  margin-left: 5px !important;
  margin-bottom: 2px;
}

.sub-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-buttons p {
  opacity: 0.5;
  cursor: pointer;
  margin: 0px;
}

.sub-buttons p:hover {
  opacity: 1;
}

.overflow-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
}

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,400;1,700&display=swap");
/* QuillJs */
#quill-editor {
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
}

.ql-editor.ql-blank::before {
  font-size: 16px;
  color: rgb(46, 46, 46);
  opacity: 0.7;
}

.ql-contanier,
.ql-snow {
  background: white;
  color: rgb(0, 0, 0);
  border-radius: 0 0 10px 10px;
}

.ql-toolbar {
  border-radius: 10px 10px 0 0;
}
/* Set dropdown font-families */
#toolbar-container .ql-font span[data-label="Sans Serif"]::before {
  font-family: "Sans Serif";
}

#toolbar-container .ql-font span[data-label="Montserrat"]::before {
  font-family: "Montserrat";
}

#toolbar-container .ql-font span[data-label="Inconsolata"]::before {
  font-family: "Inconsolata";
}

#toolbar-container .ql-font span[data-label="Roboto"]::before {
  font-family: "Roboto";
}

#toolbar-container .ql-font span[data-label="Mirza"]::before {
  font-family: "Mirza";
}

#toolbar-container .ql-font span[data-label="Arial"]::before {
  font-family: "Arial";
}
/* Set content font-families */

.ql-font-montserrat {
  font-family: "Montserrat";
}

.ql-font-inconsolata {
  font-family: "Inconsolata";
}

.ql-font-roboto {
  font-family: "Roboto";
}

.ql-font-mirza {
  font-family: "Mirza";
}

.ql-font-arial {
  font-family: "Arial";
}
/* ----------------- */

.main-container {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-wrap: nowrap;
  height: 100dvh;
  max-height: 100dvh;
}

.grid-btn-div {
  max-width: 100% !important;
  display: grid;
  grid-template-columns: 83% minmax(15%, 100%);
  gap: 15px;
}

.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 25px;
}

.table,
td {
  color: var(--text-color) !important;
}

.table th {
  background-color: var(--tr-color);
  border: 1px solid var(--tr-border-color);
  vertical-align: middle !important;
}

.table {
  min-width: 700px;
  max-width: 100%;
  overflow-x: hidden !important;
}
.table tbody td {
  border-style: none !important;
  vertical-align: middle !important;
}
.table tbody td p {
  margin-bottom: auto;
}

.table tbody tr:nth-child(2n) {
  background-color: var(--tr-color) !important;
}

.form-check-input {
  float: none !important;
}

/* ============Emisor Card ============ */
.icon-card {
  border-radius: 25px !important;
  min-height: 250px;
  display: flex;
}

.icon-card .card-icon {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.icon-card .card-icon i {
  font-size: 34px;
}

.icon-card p {
  margin-bottom: 5px;
}

.icon-card .card-data .card-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-card .card-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  flex-grow: 1;
}

.icon-card .full-icon {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 64px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s ease;
  text-decoration: none;
}

.icon-card .full-icon:hover {
  opacity: 1;
}
/* ==================================== */

/* Estilos Filtro Form */
.filtro-form {
  display: grid;
  grid-template-columns: minmax(150px, 100%) 115px;
  gap: 10px;
}

.filtro-form-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.filtro-form-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: 110px;
}

.filtro-form-buttons > * {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 50px;
}

/* media query de 500px */
@media only screen and (max-width: 500px) {
  .filtro-form {
    grid-template-columns: 1fr;
  }
  .filtro-form-buttons {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .filtro-form-buttons > * {
    width: 100%;
  }
}
/* ==================================== */

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

.data-text,
.data-text-light {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

.text-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

.data-text p,
.data-text-light p {
  max-width: calc(100% - 40px);
  overflow-wrap: break-word;
}

.table-data-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.table-data-text p {
  margin-bottom: 5px;
}

.right {
  text-align: right;
}

.data-text p,
.data-text-light p {
  margin-bottom: 0;
}

.data-text:nth-child(2n) {
  background-color: var(--primary-color-light);
}

.data-text-light:nth-child(2n) {
  background-color: var(--sidebar-color);
}

.btn-warning {
  background-color: #ffc401 !important;
  border: #ffc401 !important;
}

.btn-dark {
  background-color: #323233 !important;
  border: #323233 !important;
}

.btn-border {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  width: 50px;
  height: 50px;
  border-radius: 15px;
  border: 2px solid var(--text-color) !important;
  opacity: 0.8;
  transition: 0.2s ease;
}

.btn-border:hover {
  opacity: 1;
  background-color: var(--text-color);
  color: var(--sidebar-color);
}

.btn-border.danger:hover {
  opacity: 1;
  background-color: var(--error-color);
  border: 2px solid var(--error-color) !important;
  color: white;
}

.btn-danger {
  background-color: var(--error-color) !important;
  border: var(--error-color) !important;
}

.full {
  position: fixed;
  top: 0;
  left: 0;
}
.text-small {
  font-size: 18px !important;
}

.text-error {
  color: var(--error-color);
  padding-left: 15px;
}

.link-button {
  border: none;
  background-color: transparent;
  display: inline;
}

.read-only {
  cursor: not-allowed;
  pointer-events: none;
  background-color: #c2c2c2 !important;
}

.button_to {
  display: inline;
}

.flex-container {
  min-width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-container-between {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-container-between p {
  margin-bottom: 0;
}

.flex-container-start {
  width: 100%;
  height: 100%;
  margin-top: 50px;
  margin-bottom: 20px;
  min-height: calc(100dvh - 100px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.dashboard-card {
  max-width: 100% !important;
  width: 100%;
  max-height: 400px;
  overflow: auto;
}

.dashboard-card.sm {
  max-height: 350px;
}

.card {
  width: 100%;
  max-width: 700px;
  padding: 15px !important;
}

.center {
  display: block;
  text-align: center;
}

.margin-s {
  margin-top: 10px !important;
}

.margin-m {
  margin-top: 20px !important;
}

.rounded {
  border-radius: 10px !important;
}

.hover-link {
  cursor: pointer;
  text-decoration: none;
  color: #202020;
  opacity: 0.7;
}

.hover-link:hover {
  color: #202020;
  opacity: 1;
}

.input-group-text {
  background-color: transparent !important;
  border-radius: 0 10px 10px 0 !important;
}

.btn-primary {
  background-color: #034e94 !important;
  opacity: 0.9;
  transition: 0.2s;
  border: none;
}

.btn-success {
  background-color: #00913c !important;
  opacity: 0.9;
  transition: 0.2s;
  border: none;
}

.btn-primary:hover {
  background-color: #034e94 !important;
  opacity: 1;
}

.transparent-button {
  background-color: transparent !important;
  border: none;
  display: flex;
  cursor: pointer;
}

.row {
  width: 100% !important;
  /* margin: 0px !important; */
}

.position-bottom {
  display: block;
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
}

label {
  margin-left: 15px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  grid-gap: 10px;
  padding: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  grid-gap: 10px;
  padding: 10px;
}

.grid-3:nth-child(2n) {
  background-color: var(--primary-color-light);
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: white;
}

.small {
  min-width: 350px !important;
}

.modal-content {
  background-color: var(--primary-color-light) !important;
  padding: 10px;
}

/* Tabs Bootsrap */
.nav {
  --bs-nav-link-color: var(--text-color) !important;
}

.nav-link:not(.active):hover {
  color: var(--text-color) !important;
}

.tab-content {
  background-color: var(--body-color) !important;
  color: var(--text-color) !important;
  min-height: 100px;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.pill-success.active {
  background-color: #00913c !important;
}

.pill-danger.active {
  background-color: #dc3545 !important;
}

.pill {
  opacity: 0.7;
}

.pill.active {
  opacity: 1;
  color: white !important;
}

.pill:not(.active):hover {
  background-color: var(--primary-color-light) !important;
}

.establecimientos-div {
  max-height: 300px;
}

@media only screen and (max-width: 1000px) {
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .sidebar.close {
    width: 0 !important;
    padding: 0;
  }

  .sidebar.close header {
    display: none;
  }

  .sidebar.close .horizontal-bar {
    left: 0 !important;
    width: 100vw !important;
  }

  .home {
    left: 0 !important;
    width: 100vw !important;
    padding: 25px 0 0 0 !important;
  }
}

@media only screen and (max-width: 800px) {
  .grid-btn-div {
    grid-template-columns: 1fr;
  }
}

/* ===== Scrollbar CSS ===== */
/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/** {
  scrollbar-width: thin;
  scrollbar-color: #4A4A4A #9E9E9E;
}*/

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
*::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #242526;
}

*::-webkit-scrollbar-track:hover {
  background-color: #242526;
}

*::-webkit-scrollbar-track:active {
  background-color: #242526;
}

*::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #535353;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #535353;
}

*::-webkit-scrollbar-thumb:active {
  background-color: #535353;
}

.label-btn {
  background-color: #c0c0c0;
  color: var(--text-color);
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.label-btn i {
  margin-left: 5px;
}

.remember-text {
  margin-top: 20px;
  opacity: 0.7;
}
.remember-text p {
  margin: 0;
}

.campos-grid p {
  display: inline-block;
  margin: 5px 10px;
}

.readonly {
  background-color: #c2c2c2 !important;
  cursor: not-allowed;
}

.title-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Air dateṕicker */
.air-datepicker {
  --adp-day-name-color: var(--primary-color) !important;
  --adp-cell-background-color-selected: var(--primary-color) !important;
  --adp-cell-background-color-selected-hover: var(--primary-color) !important;
  --adp-accent-color: var(--primary-color) !important;
}

.form-check {
  margin-top: 5px;
  padding: 0 0 0 30px !important;
}

input[type="checkbox"] {
  cursor: pointer;
}

.select2 {
  height: 50px;
  padding: 6px 12px;
  font-family: "Montserrat" !important;
  font-size: 16px;
  color: #18191a !important;
}

.select2-sm {
  height: 38px;
  line-height: 26px;
}

.dte-list {
  list-style: none;
  padding: 10px 0;
  min-width: 250px;
  width: 100%;
  max-height: 300px;
  overflow: auto;
  margin: 0;
}

.dte-list.sm {
  max-height: 250px;
}

.dte-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0;
  padding: 10px;
}

.dte-list li p {
  margin: 0;
}

.dte-list li:nth-child(2n) {
  background-color: var(--primary-color-light);
}

.icon-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s ease;
}

.icon-button:hover {
  background-color: var(--primary-color-light);
}

.filtros-drawer {
  border-radius: 15px;
  background-color: var(--sidebar-color);
  height: calc(100vh - 20px);
  top: 10px !important;
  right: 10px !important;
}

@media only screen and (max-width: 420px) {
  .filtros-drawer {
    height: 100dvh;
    top: 0 !important;
    right: 0 !important;
    border-radius: 0;
  }
}

.back-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-header a {
  color: var(--text-color);
  font-size: 24px;
  font-weight: bold;
}

.air-datepicker-global-container {
  z-index: 2000 !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-check-input:checked {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.pe-pointer {
  cursor: pointer;
}

.background-color {
  background-color: var(--sidebar-color) !important;
  color: var(--text-color);
  border-radius: 0 0 10px 10px;
}
