@import url(https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,500;0,600;1,400;1,500&display=swap);
@charset "UTF-8";
/* Rebrand admin base: tokens + layout primitives + shared components */
:root {
  --primary: #2563eb;
  --teal: #0d9488;
  --amber: #d97706;
  --violet: #7c3aed;
  --danger: #dc2626;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

.pv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.pv-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.pv-header p,
.pv-header .pv-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 6px 0 0;
  max-width: 760px;
}

.period-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 8px;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-strip {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .qa-grid {
    grid-template-columns: 1fr;
  }
}
.qa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.qa-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-color: #94a3b8;
  text-decoration: none;
  transform: translateY(-1px);
}

.qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.qa-icon.blue {
  background: #eff6ff;
  color: var(--primary);
}
.qa-icon.teal {
  background: #f0fdfa;
  color: var(--teal);
}
.qa-icon.amber {
  background: #fffbeb;
  color: var(--amber);
}
.qa-icon.violet {
  background: #f5f3ff;
  color: var(--violet);
}

.qa-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.qa-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}
.kpi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-top-width: 3px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.kpi-card.c-blue {
  border-top-color: var(--primary);
}
.kpi-card.c-teal {
  border-top-color: var(--teal);
}
.kpi-card.c-amber {
  border-top-color: var(--amber);
}
.kpi-card.c-violet {
  border-top-color: var(--violet);
}
.kpi-card.c-slate {
  border-top-color: #94a3b8;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.kpi-icon.blue {
  background: #eff6ff;
  color: var(--primary);
}
.kpi-icon.teal {
  background: #f0fdfa;
  color: var(--teal);
}
.kpi-icon.amber {
  background: #fffbeb;
  color: var(--amber);
}
.kpi-icon.violet {
  background: #f5f3ff;
  color: var(--violet);
}
.kpi-icon.slate {
  background: #f8fafc;
  color: #475569;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.filter-section,
.table-container,
.chart-box,
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.filter-header:hover {
  background: var(--surface-alt);
}

.filter-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-header-left h6 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 0.875rem;
}

.badge-active {
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 8px;
}

.filter-toggle-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-toggle-text i {
  transition: transform 0.2s;
}

.filter-body {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.table-container-header,
.chart-box-header,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.table-container-header h5,
.chart-box-header h5,
.panel-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.tc-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.filter-bar {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}
.filter-bar label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.filter-bar .form-control,
.filter-bar select {
  border-color: var(--border);
  border-radius: 7px;
  font-size: 0.875rem;
  color: var(--text);
}

.records-badge {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table {
  margin-bottom: 0;
}
.table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  border-top: none;
  padding: 10px 14px;
  white-space: nowrap;
}
.table tbody td {
  font-size: 0.875rem;
  padding: 10px 14px;
  vertical-align: top;
  color: var(--text);
  border-color: var(--border);
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover td {
  background: #f8fafc;
}

.pagination-wrap,
.pagination-host {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  justify-content: center;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.35;
  display: block;
}

.form-card,
.detail-card,
.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-card-header,
.detail-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.form-card-body,
.detail-card-body {
  padding: 20px;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.section-divider {
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.search-card-header h5 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.search-card-body {
  padding: 18px;
}

.search-group {
  display: flex;
  gap: 0;
}
.search-group .form-control {
  flex: 1;
  border-radius: var(--radius) 0 0 var(--radius);
  border-color: var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.search-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-search-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-search-main:hover {
  opacity: 0.88;
  color: #fff;
}

.info-box-soft {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.info-box-soft-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 2px;
}

.info-box-soft-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.editor-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.editor-label small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.mini-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.mini-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.mini-section-header h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.mini-section-body {
  padding: 16px 18px;
}

.mini-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.mini-field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.mini-field .form-control,
.mini-field select,
.mini-field textarea {
  border-color: var(--border);
  border-radius: 7px;
  font-size: 0.875rem;
  color: var(--text);
}
.mini-field .form-control:focus,
.mini-field select:focus,
.mini-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mini-table {
  margin-bottom: 0;
}
.mini-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  border-top: none;
  padding: 8px 12px;
  white-space: nowrap;
}
.mini-table tbody td {
  font-size: 0.835rem;
  padding: 7px 12px;
  vertical-align: middle;
  color: var(--text);
  border-color: var(--border);
}
.mini-table tbody tr:last-child td {
  border-bottom: none;
}
.mini-table tbody tr:hover td {
  background: #f8fafc;
}

.btn-icon-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-icon-add:hover {
  opacity: 0.88;
}

.soft-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.soft-pdf-btn:hover {
  background: #fde68a;
  color: #92400e;
  text-decoration: none;
}

.history-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-stack h6 {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.history-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.history-pill:hover {
  background: #ede9fe;
}

.status-row-success td,
.status-row-success {
  background-color: #f0fdf4 !important;
}

.status-row-warning td,
.status-row-warning {
  background-color: #fffbeb !important;
}

.btn-save,
.btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
}
.btn-save:hover,
.btn-search:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-search {
  height: 38px;
  padding: 8px 18px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-back:hover {
  background: #f1f5f9;
  color: var(--text);
  text-decoration: none;
}

.estado-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.estado-activo {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.estado-baja {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.filter-toggle-btn:focus {
  outline: none;
  box-shadow: none;
}

.btn-export-xls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-export-xls:hover {
  background: #dcfce7;
  color: #15803d;
  text-decoration: none;
}

.metric-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}

.metric-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.metric-tile-value {
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.metric-tile-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 148px;
  padding: 24px;
  border: 1.5px dashed #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  text-align: center;
}
.upload-dropzone i {
  font-size: 1.5rem;
  color: var(--primary);
}
.upload-dropzone strong {
  font-size: 0.95rem;
  color: var(--text);
}
.upload-dropzone span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.helper-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.helper-list li + li {
  margin-top: 5px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.meta-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
}
.meta-chip i {
  margin-top: 2px;
  color: var(--primary);
}

.meta-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-chip-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-chip-value {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}
.status-pill.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.status-pill.warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.status-pill.info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.status-pill.slate {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.action-chip-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s, background 0.15s;
}
.action-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.action-chip.success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.action-chip.primary {
  background: #eff6ff;
  color: var(--primary);
  border-color: #bfdbfe;
}
.action-chip.danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.modal-shell .modal-content {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.modal-shell .modal-header {
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.modal-shell .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.modal-shell .modal-body {
  padding: 20px;
  background: var(--surface);
}
.modal-shell .modal-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
}
.modal-shell .close {
  color: var(--text-muted);
  text-shadow: none;
  opacity: 0.8;
}
.modal-shell .close:hover {
  opacity: 1;
}

.upload-dropzone {
  transition: all 0.3s ease;
}
.upload-dropzone:hover {
  border-color: var(--primary) !important;
  background: #f8fbff;
  transform: scale(1.01);
}
.upload-dropzone.dragging {
  border-color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  transform: scale(1.02);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
}

.upload-file-list .list-group-item {
  border-color: var(--border);
  font-size: 0.88rem;
}

.cursor-pointer {
  cursor: pointer;
}

/* ── Dropdown / Select fix ──────────────────────────────────────────────────
   Los contenedores de card ya no tienen overflow:hidden (se removió para que
   bootstrap-select, form-select y basicAutoComplete puedan abrirse sin ser
   cortados). Se restaura el border-radius visual en los children con fondo. */
.filter-header {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.filter-body {
  border-bottom-left-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

.table-container-header,
.chart-box-header,
.panel-header,
.tc-header {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.filter-bar:first-child {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.pagination-wrap,
.pagination-host {
  border-bottom-left-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

.search-card-header {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.search-card-body:last-child {
  border-bottom-left-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

.mini-section-header {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.mini-section-body:last-child {
  border-bottom-left-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

/* Z-index para que los menús floten sobre cards hermanos */
.bootstrap-select .dropdown-menu,
.dropdown-menu {
  z-index: 1055 !important;
}

/* basicAutoComplete suggestion list */
.basicAutoComplete-list,
.basicAutoComplete ul,
ul.basicAutoComplete {
  z-index: 1055 !important;
  position: absolute;
}

:root {
  --blue: #00bdff;
  --indigo: #6574cd;
  --purple: #9561e2;
  --pink: #f66d9b;
  --red: #e3342f;
  --orange: #f6993f;
  --yellow: #ffed4a;
  --green: #00c474;
  --teal: #4dc0b5;
  --cyan: #6cb2eb;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #3490dc;
  --secondary: #6c757d;
  --success: #38c172;
  --info: #6cb2eb;
  --warning: #ffc200;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: "Nunito", sans-serif;
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#preloader2 {
  background-color: rgba(255, 255, 255, 0.4);
  height: 100vh;
  width: 100%;
  display: none;
}

.danger {
  color: var(--danger);
}

.loading-container .loading {
  background-color: rgb(255, 255, 255) !important;
}

.backdrop {
  background-color: rgb(255, 255, 255) !important;
}

.lds-roller {
  display: inline-block;
  position: relative;
  width: 320px;
  height: 240px;
  position: absolute;
  top: calc(50% - 120px);
  left: 50%;
}

.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 32px 32px;
}

.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cef;
  margin: -3px 0 0 -3px;
}

.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
  top: 50px;
  left: 50px;
}

.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
  top: 54px;
  left: 45px;
}

.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
  top: 57px;
  left: 39px;
}

.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
  top: 58px;
  left: 32px;
}

.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
  top: 57px;
  left: 25px;
}

.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
  top: 54px;
  left: 19px;
}

.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
  top: 50px;
  left: 14px;
}

.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
  top: 45px;
  left: 10px;
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.sidebar-dark-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border-right: 1px solid #dbe7f3;
}

.app-sidebar {
  box-shadow: 10px 0 30px rgba(15, 23, 42, 0.06);
}

.nav-sidebar .nav-link.active,
.nav-treeview > .nav-item > .nav-link.active {
  background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%) !important;
  color: #1d4ed8 !important;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.nav-sidebar .nav-link.active p,
.nav-sidebar .nav-link.active .nav-icon,
.nav-sidebar .nav-link.active .right,
.nav-treeview > .nav-item > .nav-link.active p,
.nav-treeview > .nav-item > .nav-link.active .nav-icon,
.nav-treeview > .nav-item > .nav-link.active .right {
  color: #1d4ed8 !important;
}

.nav-sidebar .nav-link:hover,
.nav-treeview > .nav-item > .nav-link:hover {
  background-color: #e0f2fe !important;
  color: #0f172a !important;
}

.nav-sidebar .nav-link:hover p,
.nav-sidebar .nav-link:hover .nav-icon,
.nav-sidebar .nav-link:hover .right,
.nav-treeview > .nav-item > .nav-link:hover p,
.nav-treeview > .nav-item > .nav-link:hover .nav-icon,
.nav-treeview > .nav-item > .nav-link:hover .right {
  color: #0f172a !important;
}

.form-control-sidebar {
  background-color: #f4f4f4 !important;
  border: 1px solid #f4f4f4 !important;
  color: #c3c3c3 !important;
}

[class*=sidebar-dark] .btn-sidebar, [class*=sidebar-dark] .form-control-sidebar {
  background-color: #f4f4f4 !important;
  border: 1px solid #f4f4f4 !important;
  color: #c3c3c3 !important;
}

[class*=sidebar-dark-] .sidebar a {
  color: #475569 !important;
}

[class*=sidebar-dark] .brand-link {
  border-bottom: 1px solid #dbe7f3;
}

[class*=sidebar-dark] .brand-link, [class*=sidebar-dark] .brand-link .pushmenu {
  color: #334155 !important;
}

.app-sidebar-brand {
  min-height: 68px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

.app-sidebar-brand .brand-image {
  float: none;
  margin: 0 auto;
  display: block;
  max-height: 38px;
}

.app-user-panel {
  margin: 1rem 0.75rem 0.75rem !important;
  padding: 0 0 1rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.app-user-link {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  text-decoration: none !important;
  overflow: hidden;
}

.app-user-avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0 !important;
}

.app-user-avatar img {
  width: 3rem;
  height: 3rem;
  -o-object-fit: cover;
     object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.app-user-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 auto;
  padding-left: 0 !important;
  line-height: 1.1;
}

.app-user-kicker {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #dbeafe;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  white-space: nowrap;
}

.app-user-copy .d-block,
.app-user-name {
  display: block;
  max-width: 100%;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-nav {
  padding: 0 0.55rem 1rem;
}

.app-topbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #dbe7f3;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.app-topbar-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}

.app-topbar-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #334155 !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.app-topbar-toggle:hover {
  background: #eff6ff;
  color: #2563eb !important;
}

.app-topbar-title {
  margin-left: 0.55rem;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.app-topbar-title strong {
  font-size: 0.96rem;
  color: #0f172a;
  font-weight: 700;
}

.app-topbar-kicker {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.18rem;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.app-topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.app-topbar-chip:hover {
  color: #0f172a;
  background: #eff6ff;
}

.app-topbar-chip-primary {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.app-topbar-chip-warn {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.app-topbar-chip-soft {
  background: #fff;
}

.app-topbar-chip-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.app-topbar-chip-danger:hover {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

body.auth-shell {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%), radial-gradient(circle at bottom right, rgba(13, 148, 136, 0.12), transparent 32%), linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.auth-page {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.auth-page.auth-page-single {
  max-width: 560px;
  grid-template-columns: 1fr;
}

.auth-panel {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 243, 0.9);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.auth-panel-copy {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 255, 0.94) 100%);
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-panel-form {
  background: rgba(255, 255, 255, 0.97);
}

.auth-logo {
  width: 220px;
  max-width: 100%;
  margin-bottom: 20px;
}

.auth-logo-sm {
  width: 180px;
  margin-bottom: 16px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.auth-title {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  line-height: 1.02;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 12px;
}

.auth-subtitle {
  font-size: 1rem;
  color: #475569;
  max-width: 34rem;
  margin-bottom: 22px;
}

.auth-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-bullets i {
  color: #0d9488;
  margin-right: 8px;
}

.auth-card-header {
  padding: 34px 34px 18px;
}

.auth-card-header h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}

.auth-card-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.auth-card-body {
  padding: 0 34px 34px;
}

.auth-label {
  display: block;
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
}

.auth-input {
  height: 46px;
  border-radius: 14px;
  border: 1px solid #dbe7f3;
  background: #fbfdff;
  padding: 0.75rem 0.95rem;
  color: #0f172a;
}

.auth-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.auth-password-group .input-group-text {
  border-radius: 0 14px 14px 0;
  border: 1px solid #dbe7f3;
  border-left: none;
  background: #fbfdff;
}

.auth-password-group .auth-input {
  border-radius: 14px 0 0 14px;
}

.auth-password-toggle {
  cursor: pointer;
  color: #64748b;
}

.auth-link {
  color: #2563eb;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.auth-submit:hover {
  opacity: 0.95;
}

@media (max-width: 991.98px) {
  .app-topbar-shell {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .app-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-panel-copy {
    padding: 30px 24px;
  }
  .auth-card-header,
  .auth-card-body {
    padding-left: 24px;
    padding-right: 24px;
  }
}
.nav-sidebar > .nav-item {
  margin-bottom: 0.22rem;
}

.nav-sidebar > .nav-item > .nav-link {
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  font-weight: 300;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-sidebar > .nav-item > .nav-link:hover {
  transform: translateX(2px);
}

.nav-sidebar .nav-icon {
  font-size: 0.95rem;
  width: 1.35rem;
  text-align: center;
  margin-right: 0.5rem !important;
}

.nav-sidebar .menu-open > .nav-link {
  background-color: #eff6ff !important;
  color: #1e3a8a !important;
}

.nav-treeview {
  margin-top: 0.25rem;
  padding-left: 0.8rem;
}

.nav-treeview > .nav-item > .nav-link {
  border-radius: 10px;
  padding: 0.54rem 0.75rem;
  font-size: 0.86rem;
}

.nav-treeview > .nav-item > .nav-link.active {
  color: #1d4ed8 !important;
}

.user-panel img {
  height: 2.1rem;
  width: 2.1rem;
}

.btnPrimario {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  color: #fff;
  background-color: #00bdff;
  border-color: #00bdff !important;
}

.btnPrimario:hover {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  color: #fff;
  background-color: #01a1e8;
  border-color: #00bdff !important;
}

.btnOut {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  color: #00bdff;
  background-color: #fff;
  border-color: #00bdff !important;
}

.btnOut:hover {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  color: #fff;
  background-color: #01a1e8;
  border-color: #00bdff !important;
}

.bg-info {
  background-color: #118fbe !important;
}

.bg-primary {
  background-color: #00bdff !important;
}

.bg-hover {
  background-color: #01a1e8 !important;
}

.small-box {
  border-radius: 0.25rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.13), 0 1px 3px rgba(0, 0, 0, 0.2);
  display: block;
  margin-bottom: 20px;
  position: relative;
  height: 100px;
}

.nav-link:hover {
  background-color: #01a1e8 !important;
  color: #fff !important;
}

.btn-primary {
  background-color: #00bdff !important;
  border-color: #00bdff !important;
  color: #fff !important;
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: #01a1e8 !important;
  border-color: #01a1e8;
  color: #fff !important;
  border-radius: 4px;
}

.btn-light {
  background-color: #fff !important;
  border: none;
  color: #4d4d4d !important;
  border-radius: 4px;
}

.btn-secondary {
  background-color: #fff !important;
  border-color: #01a1e8 !important;
  color: #01a1e8 !important;
  border-radius: 4px;
}

.btn-lg {
  height: 58px;
  width: 100px;
}

.btn-secondary:hover {
  background-color: #01a1e8 !important;
  border-color: #01a1e8;
  color: #fff !important;
  border-radius: 4px;
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
  width: 100%;
  height: auto;
}

.bootstrap-select .dropdown-toggle .filter-option {
  line-height: 30px;
}

.custom-control-input-primary:checked ~ .custom-control-label::before {
  border-color: #00bdff;
  background-color: #00bdff;
}

.btn-danger {
  background-color: #dc3545 !important;
  border-color: #dc3545;
  color: #fff !important;
  border-radius: 4px;
}

.alert-success {
  background-color: #00c474;
  border-color: #00c474;
  color: #fff !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active, .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  color: #fff !important;
}

.aicono {
  color: #4d4d4d;
}

.dropdown-toggle::after {
  font-size: 20px;
}

.msgwa {
  background-color: #e6e6e6;
  color: #4d4d4d;
  border-radius: 4px;
  padding: 1em;
}

textarea {
  width: 100%;
}

#datos, #presupuesto, #cx, #subproducto {
  background-color: transparent !important;
  color: #4d4d4d !important;
}

.readonly {
  background-color: #e9ecef !important;
}

.brand-link .brand-image {
  float: none !important;
}

.alert-success {
  background-color: var(--green) !important;
}

.alert-danger {
  background-color: var(--danger) !important;
}

.dropdown-toggle {
  height: 44px !important;
}

.adiv {
  background: var(--primary);
  border-radius: 15px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  font-size: 12px;
  height: 46px;
}

.chat {
  border: none;
  background: #E2FFE8;
  font-size: 13px;
  border-radius: 20px;
}

.bg-white {
  border: 1px solid #E7E7E9;
  font-size: 10px;
  border-radius: 20px;
}

.myvideo img {
  border-radius: 20px;
}

.dot {
  font-weight: bold;
}

.form-control:focus {
  box-shadow: none;
}

.basicAutoComplete {
  border: var(--secondary) solid 1px !important;
}

.custom-select {
  height: 3em;
}

.card-ingreso {
  font-size: 1.5rem;
  font-family: var(--font-family-sans-serif);
  border: 1px solid #3498db;
  border-radius: 5px;
}

.btn-close {
  color: #fff;
}

.card-text {
  clear: both;
  margin: 0;
}

.cardCalled {
  background-color: #c2e8f6;
}

.cardDilatado {
  background-color: #c8f89b;
}

.cardCalled2 {
  background-color: #def4c;
}

.main_blocks {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  margin-bottom: 2em;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

.block {
  background: linear-gradient(135deg, #0099ff 0%, #00bdff 100%);
  text-align: center;
  border-radius: 15px;
  margin: 0;
  min-height: 110px;
  padding: 20px 15px;
  vertical-align: middle;
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  border: 4px solid #0077cc;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.block::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.block:hover::before {
  left: 100%;
}

.block h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.block:active {
  transform: scale(0.97);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.block:hover {
  background: linear-gradient(135deg, #00aaff 0%, #00d4ff 100%);
  border-color: #0099ff;
  box-shadow: 0 8px 16px rgba(0, 189, 255, 0.4);
  transform: translateY(-2px);
}

.block:hover h3 {
  color: #fff;
}

/* Iconos para cada bloque */
.block i {
  font-size: 2rem;
  margin-bottom: 5px;
  display: block;
}

/* Colores diferenciados por tipo */
#bntTurno {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  border-color: #1e7e34;
}

#bntTurno:hover {
  background: linear-gradient(135deg, #34ce57 0%, #5fde7f 100%);
  box-shadow: 0 8px 16px rgba(40, 167, 69, 0.4);
}

#bntCx {
  background: linear-gradient(135deg, #ffc107 0%, #ffcd38 100%);
  border-color: #d39e00;
}

#bntCx:hover {
  background: linear-gradient(135deg, #ffcd38 0%, #ffd65e 100%);
  box-shadow: 0 8px 16px rgba(255, 193, 7, 0.4);
}

#bntConsul {
  background: linear-gradient(135deg, #6f42c1 0%, #8c5cd6 100%);
  border-color: #5a32a3;
}

#bntConsul:hover {
  background: linear-gradient(135deg, #8c5cd6 0%, #a77de8 100%);
  box-shadow: 0 8px 16px rgba(111, 66, 193, 0.4);
}

body {
  height: 100%;
}

#app {
  height: 100vh;
}

#app .container {
  display: flex;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  flex-direction: column;
}

.panel-title > a, .panel-title > a:active {
  display: block;
  padding: 15px;
  color: #555;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-spacing: 3px;
  text-decoration: none;
}

a.open > i.rigth {
  transform: rotate(270deg);
}

a.collapsed > i.rigth {
  transform: rotate(0deg);
}

.form-control {
  height: 3em !important;
}

.modal-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}

.select2-selection__rendered {
  line-height: 2.2em !important;
}

.select2-container .select2-selection--single {
  height: 3em !important;
}

.select2-selection__arrow {
  height: 3em !important;
}
