@import 'tables.css';

:root {
  --color-bg-cuaternary: #fafafa;
  --color-bg-terciary: #dddddd;
  --color-bg-secondary: #e4e4e7;
  --color-bg-primary: #ffffff;

  --color-txt-primary: #1f2937;
  --color-txt-secondary: #374151;
  --color-txt-terciary: #4b5563;
  --color-txt-cuaternary: #6b7280;

  --color-btn-primary: #3b71ca;
  --color-btn-primary-hover: #305aa3;
  --color-btn-nav: #FFFFFF;
  --color-btn-nav-hover: #004090;

  --color-happy: #2d53a2;
  --color-text: black;
  --color-text-nav: #111827;
  --color-table: #BFDBFE;


  --color-bg-error: #ff5555;
  --color-btn-cancel: #ff3b30;
  --color-btn-confirm: #34c759;
  --color-light-blue: #6482AD;
  --color-medium-blue: #7FA1C3;
  --color-light-beige: #E2DAD6;
  --color-light-pink: #F5EDED;
  --color-dark-gray: #222831;
  --color-medium-gray: #31363F;
  --color-teal: #76ABAE;
  --color-light-gray: #EEEEEE;

  --color-bg-aside-nav-button: #004090;
  --color-bg-aside-nav-text: white;

  --color-bg-card: #ffffff;
}

.dark {
  --color-bg-primary: #1f2937;
  --color-bg-secondary: #374151;
  --color-bg-terciary: #4b5563;
  --color-bg-cuaternary: #003398;

  --color-txt-primary: white;
  --color-txt-secondary: #f3f4f6;
  --color-txt-terciary: #d1d5db;
  --color-txt-cuaternary: #f9fafb;
  --color-btn-nav: #1f2937;
  --color-btn-nav-hover: #283142;

  --color-text: white;
  --color-nav-text: white;
  --color-table: #374151;
  --color-btn-cancel: #ff6b6b;
  --color-btn-confirm: #28a745;
  --color-bg-aside-nav-button: oklch(0.373 0.034 259.733);
  --color-aside-nav-button-text: black;
  --color-bg-card: #3a3a3a;
}

html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

#container {
  display: flex;
  justify-content: space-between;
}

#containerWrapper.loading * {
  background-color: rgba(255, 255, 255, 0.1);
}

#mainWrapper #main,
#auxWrapper,
#aux {
  box-sizing: border-box;
  scrollbar-gutter: stable;
  overflow-x: visible;
  overflow-y: scroll;
}


.doto-font {
  font-family: "Doto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "ROND" 0;
}

.bgAsideNavButton {
  background-color: var(--color-bg-aside-nav-button);
  color: var(--color-aside-nav-button-text);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #b3b3b3;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

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

*::-webkit-scrollbar-button {
  display: none;
}

button:disabled {
  background-color: transparent;
  color: #666;
  cursor: not-allowed;
  opacity: 0.9;
  border: none;
}

button:disabled:focus {
  outline: none;
}

.primaryBtn {
  background-color: var(--color-btn-primary);
  color: white;
  border-radius: 8px;
  padding: 3px 12px;
}

.primaryBtn:hover:not(:disabled) {
  background-color: var(--color-btn-primary-hover);
}


.confirmBtn {
  background-color: var(--color-btn-confirm);
  color: white;
  font-weight: 300;
  border-radius: 8px;
  padding-inline: 1rem;
}


.cancelBtn {
  background-color: var(--color-btn-cancel);
  color: white;
  font-weight: 300;
  border-radius: 8px;
  padding-inline: 1rem;
}

.innerShadow {
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.centerShadow {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

.navigator {
  font-weight: 500;
  color: var(--color-text-nav);
  background-color: transparent;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.navBtn {
  color-scheme: light;
  background-color: var(--color-btn-nav);
  color: var(--color-text);
  padding: .3rem 1rem;
  border-radius: 0px 0px 8px 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.navBtn:hover {
  background-color: var(--color-btn-nav-hover);
  color: white;
}

.active {
  background-color: var(--color-bg-aside-nav-button);
  color: white;
}

.titleFlow::before {
  content: '';
  border: solid #0069d9;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  margin-right: 10px;
  margin-bottom: 2px;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: var(--color-bg-primary);
  color: var(--color-text);
  text-align: center;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  padding: 8px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  overflow: visible;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.createBtn {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type="number"] {
  appearance: none;
  -moz-appearance: textfield;
  /* Para Firefox */
}

/* Para navegadores basados en WebKit */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

input,
textarea,
select {
  outline: none;
}

.select {
  background-color: #e5e5e5;
  border: 1px solid #d1d5db;
  color: #111827;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  width: 100%;
  padding: 0.5rem;
}

.select:focus {
  outline: none;
  border-color: #3b82f6;
}

a[type="button"] {
  cursor: pointer;
}

summary {
  cursor: pointer;
}

dialog {
  margin: auto;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-out, backdrop-filter 0.3s ease-out;
}

dialog[open]::backdrop {
  opacity: 1;
  backdrop-filter: blur(4px);
}

dialog:not([open])::backdrop {
  opacity: 0;
  backdrop-filter: blur(0px);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeOutScale {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
}

dialog[open] {
  animation: fadeInScale 0.3s ease-out forwards;
  overflow: hidden;
}

dialog {
  animation: fadeOutScale 0.3s ease-in forwards;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.scrollbar-hide {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Webkit */
}

.swal-top-layer {
  z-index: 9999 !important;
}