/* ========== RESET BÁSICO ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  font-size: 16;
  color: #111827;
  background: #f9fafb;
}
/* ===========BUTTONS ===============*/
button, [role=button] {    cursor: pointer;}
.bg-primary {
    background-color: rgb(37 48 100 / var(--tw-bg-opacity, 1));
}
.border-primary {
    --tw-border-opacity: 1;
    border-color: rgb(37 48 100 / var(--tw-border-opacity, 1));
}
.text-white {
    /* --tw-text-opacity: 1; */
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-primary {
    --tw-text-opacity: 1;
    color: rgb(37 48 100 / var(--tw-text-opacity, 1))
}
.bg-transparent {
    background-color: transparent !important;
}
.border-transparent {
    border-color: transparent
}
/* ========== HOME SECTION ========== */
.home-section {
  margin-left: 220px;
  padding: 1.5rem;
  transition: margin-left 0.3s;
}
.sidebar.close ~ .home-section {
  margin-left: 70px;
}
.home-content .bx-menu {
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== TABLA (DataTables) ========== */
table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.dataTable th {
  font-weight: 600;
  background: #ffffff;
  padding: 0.75rem;
  text-align: left;
}
table.dataTable td {
  padding: 0.75rem;
  border-top: 1px solid #e5e7eb;
}
table.dataTable tr:nth-child(even) {
  background: #f9fafb;
}

nav {  
  height: 56px !important;
  line-height: 56px !important;
}
/* ========== FORM ELEMENTS ========== */
input, select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
input:focus, select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
button, input:where([type=button]), input:where([type=reset]), input:where([type=submit]) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}


/* ========== OVERLAY/SPINNER ========== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  z-index: 999;
  display: none;
}
.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #2563eb;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem
}
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem
}
.rounded {
    border-radius: .25rem;
}
@media only screen and (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}