/* ========== 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) - Estilo Cotizador Unificado ========== */
table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 13px;
  border: none;
}
table.dataTable thead th {
  background: #1a2b5c !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 12px 10px;
  text-align: center !important;
  border: none;
  white-space: nowrap;
}
/* Fix DataTables sort icon alignment */
table.dataTable thead th.dt-orderable-asc,
table.dataTable thead th.dt-orderable-desc,
table.dataTable thead th.dt-ordering-asc,
table.dataTable thead th.dt-ordering-desc {
  text-align: center !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
}
table.dataTable thead th:first-child {
  border-radius: 6px 0 0 0;
}
table.dataTable thead th:last-child {
  border-radius: 0 6px 0 0;
}
table.dataTable tbody td {
  padding: 11px 10px;
  border-bottom: 1px solid #eef0f4;
  color: #333;
  vertical-align: middle;
  text-align: center;
}
table.dataTable tbody tr:hover {
  background: #f0f4ff !important;
}
table.dataTable tbody tr:nth-child(even) {
  background: #fafbfd;
}
table.dataTable tbody tr:nth-child(odd) {
  background: #fff;
}
table.dataTable tbody tr.validated td {
  color: #16a34a;
}
table.dataTable tbody tr.notValidated td {
  color: #dc2626;
}

/* DataTable wrapper spacing */
div.dt-container {
  padding: 0;
}
div.dt-container .dt-search input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
}
div.dt-container .dt-length select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}
div.dt-container .dt-info {
  font-size: 13px;
  color: #6b7280;
  padding-top: 10px;
}

/* Paging buttons */
div.dt-container .dt-paging .dt-paging-button {
  border-radius: 6px !important;
  margin: 0 2px;
  padding: 5px 12px !important;
  font-size: 13px;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  background: #fff !important;
}
div.dt-container .dt-paging .dt-paging-button:hover {
  background: #f3f4f6 !important;
  border-color: #1a2b5c !important;
  color: #1a2b5c !important;
}
div.dt-container .dt-paging .dt-paging-button.current {
  background: #1a2b5c !important;
  color: #fff !important;
  border-color: #1a2b5c !important;
  font-weight: 600;
}
div.dt-container .dt-paging .dt-paging-button.disabled {
  opacity: 0.4;
}

/* Export buttons */
div.dt-buttons .dt-button {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  color: #374151 !important;
  font-size: 12px !important;
  padding: 6px 14px !important;
  margin-right: 4px !important;
  font-weight: 500;
  transition: all 0.2s;
}
div.dt-buttons .dt-button:hover {
  background: #1a2b5c !important;
  color: #fff !important;
  border-color: #1a2b5c !important;
}

/* View button (lupa) */
.btn-view {
  background: #4A90E2;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-view:hover { background: #357ABD; }
.btn-view i { font-size: 14px; }

/* Checkbox estilo cotizador */
table.dataTable .row-check,
table.dataTable input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1a2b5c;
}

/* Section box (contenedor de tablas) */
.section-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #11101d;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toast animation */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
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(0,0,0,0.55);
  z-index: 10001;
  display: none;
}
.cv-spinner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top: 5px solid #fff;
  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;
    }
}