:root {
  --primary: #012340;
  --secondary: #bc0001;
  --ultra-light: #fafafa;
  --light: #f7f7f7;
  --light-medium: #c4cad3;
  --medium: #787878;
  --medium-dark: #3c4043;
  --dark: #4a4a4a;
  --darker: #2a2b2e;
  --info: #9cb8e1;
  --lightInfo: #c0ccdf;
  --success-light: rgb(237, 247, 237);
  --success: #5aa879;
  --success-dark: rgb(32, 45, 36);
  --warning: #ffd465;
  --error: #d32f2f;
  --error-dark: rgb(95, 33, 32);
  --error-light: rgb(253, 237, 237);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Override variables for dark mode */
    --ultra-light: var(--darker);
    --light: var(--darker);
    --light-medium: var(--medium-dark);
  }
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: DINNextLTPro;
  /* background-color: rgb(231, 235, 240); */
  /* background-color: var(--light); */
  /* color: var(--primary); */
}

body {
  overflow-y: auto;
  /* scrollbar-width: thin;
  scroll-behavior: smooth; */
}

/* Apply for webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  transition: background-color 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* 
body::-webkit-scrollbar {
  width: 10px;
}

div::-webkit-scrollbar {
  width: 6px;
  height: 8px;
}

body::-webkit-scrollbar-track,
div::-webkit-scrollbar-track {
}

body::-webkit-scrollbar-thumb,
div::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 4px;
} */

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

h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-block: 1rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-block: 1rem;
}

h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-block: 1rem;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-block: 1rem;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-block: 1rem;
  /* margin: 0; */
}

h6 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}

p {
  font-size: 0.875rem;
  line-height: 1.5rem;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.participantes {
  max-height: 340px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0px 10px 5px 0px;
}

.participantes__card {
  gap: 5px;
  display: flex;
  flex-direction: column;
  background: var(--light);
  padding: 12px 16px;
  border-radius: 7px;
}

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

.participantes__card__header > p {
  gap: 5px;
  align-items: center;
  display: flex;
}

.participantes__card__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  row-gap: 16px;
  column-gap: 8px;
  flex-wrap: wrap;
}

@font-face {
  font-family: DINNextLTPro;
  font-weight: 700;
  src: url('./fonts/DINNextLTPro-Bold.otf');
}

@font-face {
  font-family: DINNextLTPro;
  font-weight: 500;
  src: url('./fonts/DINNextLTPro-Medium.otf');
}

@font-face {
  font-family: DINNextLTPro;
  font-weight: 400;
  src: url('./fonts/DINNextLTPro-Regular.otf');
}

@font-face {
  font-family: DINNextLTPro;
  font-weight: 300;
  src: url('./fonts/DINNextLTPro-Light.otf');
}

.main-container {
  padding: 40px 32px;
}

@media (min-width: 600px) {
  .main-container {
    padding: 48px;
  }
}

.main {
  display: flex;
  flex-direction: column;
  /* max-width: 1024px; */
  width: 100%;
  height: 100%;
  margin: 0 auto;
  margin-top: 3rem;

  /* margin: 0 auto;
  margin-top: 3rem;
  max-width: 1024px;
  width: 100%;
  height: 100%;
  min-height: 100%; */
}

.main:has(.edit-page) {
  max-width: 1024px;
}

.main:has(.porcobrar-page) {
  max-width: 1024px;
}

.main:has(.medium-page) {
  /* max-width: 1024px; */
}

.main:has(.large-page) {
  max-width: 1200px;
}

.main:has(.horas) {
  max-width: 1024px;
}

.edit-page {
}

.medium-page {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.medium-page::after {
  content: '';
  padding: 1rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.no-padding {
  padding: 0;
}

.form-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
}

.two-col {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.two-col > * {
  flex: 1;
}

.one-col {
  width: calc(50% - 0.75rem);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 0 1rem 0;
  height: 100%;
}

.calendar {
  left: 0;
  /* padding: 4px; */
  padding: 4px 2rem 2rem 2rem;
  position: absolute;
  width: 100%;
  overflow: hidden;
  margin-top: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.actions {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.home {
  display: flex;
  justify-content: flex-start;
  justify-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.conceptos {
  border-top: var(--light) dashed 1px;
}

.empty {
  text-align: center;
  align-items: center;
}

.empty > * {
}

.modal {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem 1rem 1rem;
}

.page {
  display: flex;
  flex-direction: column;
  height: 90%;
  margin-top: 1rem;
  gap: 1rem;
  width: 100%;
}

.horas {
  margin-top: 0;
}

.horas > h3 {
  margin-block: 1rem;
}

.horas > div > h3 {
  margin-block: 1rem;
}

.calendar-search {
  display: none;
}

.calendar-vac {
  display: none;
}

.userSelector {
  display: none;
}

.page-title {
  display: none;
}

@media (max-width: 767.98px) {
  .formHoras {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
    padding: 0;
  }
  .dialog-header-horas {
    flex-direction: column;
  }
}

@media (min-width: 600px) {
  .home {
    gap: 2rem;
  }
  .main {
    margin-top: 0rem;
    position: relative; /* used for positioning of the notifications area in desktop view*/
  }

  .page {
    height: 100%;
  }

  .horas {
    position: relative;
    height: 100%;
  }

  .calendar {
    display: block;
    padding: 4px;
    padding-bottom: 2rem;
    /* position: relative; */
    /* margin-top: 1rem; */
  }
  .two-col {
    flex-direction: row;
    align-items: flex-start;
  }

  .two-col > * {
    flex: 1fr 1fr;
  }

  .calendar-vac {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    justify-content: flex-end;
    align-items: center;
    max-width: 240px;
    padding: 8px 0;
  }

  .calendar-search {
    display: flex;
    margin-bottom: 1rem;
    flex-grow: 1;
    justify-content: center;
  }
}

@media (min-width: 1000px) {
  .userSelector {
    display: flex;
    padding: 0 1rem 0 1rem;
    justify-content: center;
    color: #9cb8e1;
  }

  .page-title {
    display: block;
  }
}

.report-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--light);
  border-radius: 8px;
  border-top: 3px solid var(--medium);
}

.report-page.tarjetasIngresadas {
  border-top: 3px solid #dddddd;
  background-color: transparent;
}

.modal:has(.filters) {
  margin-top: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.searchGestor {
  display: flex;
  flex-wrap: wrap;
  gap: 0rem;
  padding: 0.5rem;
}

.searchGestor.filters-leyends {
  align-items: center;
  background-color: #fff;
  border: 1px solid rgba(224, 224, 224, 1);
  justify-content: space-between;
  border-radius: 8px;
  margin-bottom: 5px;
}

.filters.filters-leyends {
  align-items: center;
  background-color: #fff;
  border: 1px solid rgba(224, 224, 224, 1);
  justify-content: space-between;
  border-radius: 8px;
  margin-bottom: 5px;
}

.display-linebreak {
  white-space: pre-line;
  color: white;
  padding: 0.5rem;
}

.table-actions {
  display: flex;
  align-items: center;
  /* padding-top: 1rem; */
  /* padding: 1rem 0; */
}

.custom-data-grid-tarjetasIngresadas .MuiDataGrid-cell {
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  /* background: #e7ebf0 !important;
  -webkit-tap-highlight-color: #e7ebf0; */
}
.leyends {
  display: flex;
  gap: 20px;
}
.leyend {
  display: flex;
  gap: 6px;
}

.square {
  display: block;
  width: 15px;
  margin-top: 3px;
  height: 15px;
  /* border-radius: 20px; */
  border: 1px solid #c9c9c9;
}

.two-col-encargo {
  display: flex;
  gap: 1.5rem;
}

.two-col-encargo > div:nth-child(1) {
  flex-basis: 130px;
}

.two-col-encargo > div:nth-child(2) {
  flex-grow: 1;
}

.box-heading {
  background-color: #f8f8f8;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.title-heading {
  padding: 1rem;
  color: #000c;
  display: flex;
  align-items: center;
  font-size: 1.2rem !important;
  gap: 10px;
}

/* .MuiStepConnector-root.MuiStepConnector-horizontal.MuiStepConnector-alternativeLabel.Mui-disabled{
  background-color: #bc0001;
} */

.next-step .Mui-disabled .MuiStepConnector-line {
  background-image: linear-gradient(
    95deg,
    rgb(242, 113, 33) 0%,
    rgb(233, 64, 87) 50%,
    rgb(188 0 1) 100%
  );
  border-radius: 999;
  position: absolute;
  bottom: 0;
  top: 0;
  width: 80%;
  opacity: 0.3;
  animation: indeterminate-progress-bar 3s ease-out infinite;
  /* background-size: 400% 400%; */
}

@keyframes indeterminate-progress-bar {
  0% {
    left: -100%;
    width: 70%;
  }

  100% {
    left: 100%;
    width: 100%;
  }
}

.modificado {
  background-color: rgba(255, 197, 0, 0.08);
  /* background-color: rgba(188, 0, 1, 0.08); */
}

.inputCustom {
  width: 100%;
  resize: vertical;
}

.selectedByOthers {
  background-color: yellow; /* Change this to the color you want */
}

.cell {
  display: flex;
  flex-grow: 1;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
}

.MuiDataGrid-cell:has(.cell) {
  padding: 0;
}

@keyframes cell-update {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: lightskyblue;
  }
  100% {
    background-color: transparent;
  }
}

.cell-update {
  animation-name: cell-update;
  animation-duration: 2s;
}

.cell-text {
  display: flex;
  flex-grow: 1;
  justify-content: flex-start;
}

.bg-warning {
  /* Light mode (default) */
  background-color: rgb(255, 244, 229);
}

.bg-success {
  background-color: var(--success-light);
}
.bg-revisado {
  background-color: rgb(253 207 169);
}

@media (prefers-color-scheme: dark) {
  .bg-warning {
    background-color: rgb(32, 40, 36);
  }

  .bg-success {
    background-color: var(--success-dark);
  }
}

.cell-line-through {
  text-decoration: line-through;
}

.notifications-area {
  display: none;
}

@media (min-width: 600px) {
  .notifications-area {
    display: flex;
    gap: 1rem;
    position: absolute;
    align-items: center;
    right: 0;
  }

  .notifications-empty {
    width: 500px;
    padding: 3rem;
  }

  .notifications-list {
    width: 400px;
    padding: 0 0.5rem;
  }

  .notification-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* .editor-container {
  border: '1px solid black';
      font-family: 'DINNextLTPro';
      font-weight: 400;
      font-size: '1rem';
      line-height: '1.4375em';
      color: 'rgba(0, 0, 0, 0.87)';
      box-sizing: 'border-box';
      cursor: 'text';
      align-items: 'center';
      border-radius: '8px';
      padding: '16.5px 14px';
} */

.DraftEditor-root {
  width: 100%;
}

/* .editor-container {
  border: '1px solid black';
      font-family: 'DINNextLTPro';
      font-weight: 400;
      font-size: '1rem';
      line-height: '1.4375em';
      color: 'rgba(0, 0, 0, 0.87)';
      box-sizing: 'border-box';
      cursor: 'text';
      align-items: 'center';
      border-radius: '8px';
      padding: '16.5px 14px';
} */

.DraftEditor-root {
  width: 100%;
}

.jurisprudencia_result {
  position: relative;
  overflow-y: auto;
  padding-right: 8px;
}

.jurisprudencia-page {
  width: 100%;
  max-width: 1000px;
  align-self: center;
  justify-self: center;
  min-height: 100%;
}

.porcobrar-page {
  width: 100%;
  max-width: 1200px;
  align-self: center;
  justify-self: center;
}
.align-items-center {
  align-items: center;
}

.text-right {
  text-align: right;
}

.my-10 {
  margin: 10px 0;
}

.main:has(.dashboard) {
  max-width: 1024px;
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  height: 90%;
  width: 100%;
}
