:root {
  --gc-bg: radial-gradient(circle at top left, #173661 0%, #0b1c3a 55%, #050913 100%);
  --gc-surface: rgba(8, 25, 52, 0.92);
  --gc-surface-alt: rgba(9, 23, 45, 0.88);
  --gc-surface-muted: rgba(15, 23, 42, 0.78);
  --gc-border: rgba(59, 130, 246, 0.35);
  --gc-text: #e2e8f0;
  --gc-text-muted: #94a3b8;
  --gc-text-soft: #cbd5f5;
  --gc-accent: #38bdf8;
  --gc-accent-strong: #0ea5e9;
  --gc-success: #34d399;
  --gc-warning: #facc15;
  --gc-neutral: #cbd5f5;
  --gc-danger: #f87171;
  --gc-overlay: rgba(10, 20, 40, 0.72);
}

[data-bs-theme="dark"] {
  color-scheme: dark;
}

[data-bs-theme="dark"] .table {
  --bs-table-bg: rgba(9, 23, 45, 0.78);
  --bs-table-striped-bg: rgba(12, 28, 52, 0.85);
  --bs-table-hover-bg: rgba(56, 189, 248, 0.16);
  --bs-table-color: var(--gc-text);
  --bs-table-border-color: rgba(148, 163, 184, 0.22);
  --bs-table-hover-color: var(--gc-text);
}

[data-bs-theme="dark"] .table thead th {
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

[data-bs-theme="dark"] .table-light {
  --bs-table-bg: rgba(28, 55, 92, 0.88);
  --bs-table-color: #f8fafc;
}

.clickable {
  cursor: pointer;
}

.clickable:hover {
  background-color: rgba(33, 150, 243, 0.08);
}

.table-container {
  overflow-x: auto;
  position: relative;
  transition: opacity 0.2s ease-in-out;
}

.table-container.has-error {
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.2) inset;
  border-radius: 0.75rem;
}

.table-container.is-stale {
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 0.75rem;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.call-search-form {
  flex: 1 1 260px;
  min-width: 0;
}

.call-search-form .input-group {
  flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.5rem;
  padding: 0.15rem;
}

.call-search-form .form-control {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  color: var(--gc-text);
  border: none;
}

.call-search-form .form-control::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

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

.call-search-form .input-group-text {
  background: transparent;
  color: var(--gc-accent);
  border: none;
}

.call-search-form .btn {
  border-radius: 0.5rem;
}

.search-actions small {
  font-size: 0.8rem;
  color: var(--gc-text-muted);
}

body {
  background: var(--gc-bg);
  color: var(--gc-text);
  min-height: 100vh;
}

.carrier-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.carrier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.carrier-badge:hover,
.carrier-badge:focus-visible {
  background: rgba(13, 110, 253, 0.18);
  transform: translateY(-1px);
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.28);
}

.carrier-badge:focus {
  outline: none;
}

.carrier-badge .carrier-count {
  background: rgba(13, 110, 253, 0.18);
  color: inherit;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.carrier-badge.active {
  background: rgba(13, 110, 253, 0.22);
  border-color: rgba(13, 110, 253, 0.4);
}

.carrier-popover-content {
  min-width: 220px;
}

.carrier-popover-content .popover-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}

.carrier-popover-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.carrier-popover-content ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.ssh-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
}

.ssh-section .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.ssh-host-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  transition: transform 0.15s ease, border-color 0.2s ease;
  color: var(--gc-text);
  box-shadow: 0 12px 24px rgba(8, 25, 52, 0.45);
}

.ssh-host-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.ssh-host-alias {
  font-weight: 600;
  color: var(--gc-accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.ssh-host-meta {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--gc-text-muted);
}

.ssh-host-meta .bi {
  color: var(--gc-accent-strong);
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.32), rgba(14, 165, 233, 0.26));
  border: 1px solid rgba(94, 166, 248, 0.5);
  border-radius: 0.8rem;
  box-shadow: 0 14px 26px rgba(8, 47, 73, 0.35);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.55);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
  backdrop-filter: blur(6px);
}

.btn-tool.btn-sm {
  padding: 0.35rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
}

.btn-tool .bi {
  font-size: 1rem;
}

.btn-tool:hover,
.btn-tool:focus {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.6), rgba(2, 132, 199, 0.54));
  border-color: rgba(125, 211, 252, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(8, 47, 73, 0.45);
}

.btn-tool:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.45);
}

.btn-tool:disabled,
.btn-tool.disabled {
  color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(71, 85, 105, 0.45);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  text-shadow: none;
}

.btn-tool-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(56, 189, 248, 0.28));
  border-color: rgba(59, 130, 246, 0.58);
}

.btn-tool-primary:hover,
.btn-tool-primary:focus {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.65), rgba(6, 182, 212, 0.58));
}

.btn-tool-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(45, 212, 191, 0.28));
  border-color: rgba(16, 185, 129, 0.55);
}

.btn-tool-success:hover,
.btn-tool-success:focus {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.7), rgba(34, 197, 94, 0.65));
  border-color: rgba(134, 239, 172, 0.65);
}

.btn-tool-muted {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5f5;
  text-shadow: none;
  box-shadow: 0 12px 20px rgba(8, 25, 52, 0.28);
}

.btn-tool-muted:hover,
.btn-tool-muted:focus {
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 24px rgba(8, 25, 52, 0.35);
}

.btn-tool-muted:disabled,
.btn-tool-muted.disabled {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.25);
  color: rgba(148, 163, 184, 0.6);
  box-shadow: none;
}

.modal-draggable .modal-dialog {
  position: fixed;
  margin: 0;
  transform: none !important;
  max-width: 95vw;
  max-height: 95vh;
  min-width: 360px;
  min-height: 260px;
  transition: none;
}

.modal-draggable .modal-content {
  height: 100%;
  border-radius: 1.1rem;
  position: relative;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.modal-draggable .modal-header {
  cursor: move;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.modal-draggable .modal-header:active {
  cursor: grabbing;
}

.modal-draggable .modal-dialog.is-dragging,
.modal-draggable .modal-dialog.is-resizing {
  transition: none;
}

.modal-resize-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  bottom: 10px;
  right: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.55), rgba(14, 165, 233, 0.45));
  border-radius: 4px;
  cursor: nwse-resize;
  box-shadow: 0 6px 12px rgba(8, 25, 52, 0.4);
  touch-action: none;
  user-select: none;
  display: block;
}

.modal-resize-handle::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.65);
}

.modal-draggable .modal-body {
  flex: 1 1 auto;
  overflow: auto;
}

#actionModal .modal-content {
  background: linear-gradient(165deg, rgba(10, 18, 38, 0.96), rgba(16, 29, 54, 0.94));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 1.1rem;
  box-shadow: 0 28px 48px rgba(8, 25, 52, 0.58);
  color: #e2e8f0;
}

#actionModal .modal-header,
#actionModal .modal-footer {
  border-color: rgba(59, 130, 246, 0.22);
  background: transparent;
}

#actionModal .modal-header {
  padding-bottom: 0.75rem;
}

#actionModal .modal-footer {
  padding-top: 0.75rem;
  gap: 0.5rem;
}

#actionModal .modal-title {
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #f0f9ff;
}

#actionModal .btn-close {
  filter: invert(0.85);
  opacity: 0.7;
}

#actionModal .btn-close:hover,
#actionModal .btn-close:focus {
  opacity: 1;
}

#actionModal .modal-body {
  background: radial-gradient(120% 120% at 10% 10%, rgba(56, 189, 248, 0.08), transparent);
  color: #e2e8f0;
}

#actionModal .form-label {
  font-weight: 500;
  color: #e0f2fe;
}

#actionModal .form-control {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.38);
  color: #f1f5f9;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#actionModal .form-control::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

#actionModal .form-control:focus {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.25);
  color: #f8fafc;
}

#actionModal .form-control:disabled {
  background: rgba(15, 23, 42, 0.6);
  color: rgba(148, 163, 184, 0.75);
}

#actionModal .form-text {
  color: rgba(148, 163, 184, 0.72);
}

#actionModal .alert {
  border-radius: 0.85rem;
  border: none;
  box-shadow: 0 12px 24px rgba(8, 25, 52, 0.4);
}

#actionModal .btn-outline-secondary {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.65);
  border-radius: 0.75rem;
  box-shadow: 0 12px 22px rgba(8, 25, 52, 0.35);
}

#actionModal .btn-outline-secondary:hover,
#actionModal .btn-outline-secondary:focus {
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(51, 65, 85, 0.68);
  box-shadow: 0 16px 30px rgba(8, 25, 52, 0.4);
}

#actionModal .btn-success,
#actionModal .btn-danger {
  border: none;
  border-radius: 0.85rem;
  padding: 0.55rem 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 32px rgba(8, 25, 52, 0.5);
  text-shadow: 0 1px 2px rgba(8, 25, 52, 0.6);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#actionModal .btn-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.78), rgba(14, 165, 233, 0.65));
}

#actionModal .btn-success:hover,
#actionModal .btn-success:focus {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.85), rgba(14, 165, 233, 0.72));
  transform: translateY(-1px);
  box-shadow: 0 24px 38px rgba(8, 25, 52, 0.55);
}

#actionModal .btn-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.82), rgba(244, 114, 182, 0.7));
}

#actionModal .btn-danger:hover,
#actionModal .btn-danger:focus {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(236, 72, 153, 0.78));
  transform: translateY(-1px);
  box-shadow: 0 24px 38px rgba(8, 25, 52, 0.55);
}

#actionModal .btn-success:disabled,
#actionModal .btn-danger:disabled {
  background: rgba(30, 41, 59, 0.62);
  box-shadow: none;
  color: rgba(148, 163, 184, 0.7);
  transform: none;
}

#actionModal .spinner-border {
  border-width: 0.18rem;
  border-color: rgba(255, 255, 255, 0.75) transparent transparent transparent;
}

.details-loading {
  position: relative;
}

.details-loading::after {
  content: 'Actualizando…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.65);
  color: #0f172a;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
}

.search-results-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 0.75rem;
}

.search-result-title {
  font-weight: 600;
  color: #0f172a;
}

.search-result-customer {
  background: rgba(241, 245, 249, 0.7);
  border-radius: 12px;
  padding: 1rem;
}

.carrier-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.login-body {
  background-color: #f8f9fa;
  background: url('../fondo.png') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  max-width: 400px;
  width: 100%;
  padding: 20px;
}

.login-card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 200px;
}

.login-footer {
  margin-top: 20px;
  text-align: center;
  color: #888;
}

.user-form-container {
  max-width: 500px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(15, 76, 129, 0.12);
  overflow: hidden;
}

.dashboard-card .card-header {
  background: linear-gradient(120deg, #0d6efd, #43cea2);
  color: #fff;
  padding: 1rem 1.5rem;
}

.dashboard-card .card-header h5 {
  font-weight: 600;
  letter-spacing: 0.3px;
}


.dashboard-card .card-header .btn {
  font-weight: 600;
}

.dashboard-card .card-body {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 0 0 16px 16px;
  color: #e2e8f0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-answered {
  background: rgba(25, 135, 84, 0.15);
  color: #145b38;
}

.status-answered .status-dot {
  background: #198754;
}

.status-connecting {
  background: rgba(255, 193, 7, 0.15);
  color: #8a5b00;
}

.status-connecting .status-dot {
  background: #ffc107;
}

.status-default {
  background: rgba(108, 117, 125, 0.15);
  color: #495057;
}

.status-default .status-dot {
  background: #6c757d;
}

.summary-row > td:first-child {
  text-align: left;
  font-weight: 600;
}

.summary-table th,
.summary-table td {
  vertical-align: middle;
}

.status-progress {
  display: flex;
  width: 100%;
  height: 12px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.status-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid transparent;
  color: #eef2ff;
}

.status-chip-answered {
  background: rgba(25, 135, 84, 0.22);
  border-color: rgba(25, 135, 84, 0.35);
  color: #d1fae5;
}

.status-chip-connecting {
  background: rgba(255, 193, 7, 0.22);
  border-color: rgba(255, 193, 7, 0.35);
  color: #fef3c7;
}

.status-chip-others {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.32);
  color: #e2e8f0;
}

.status-chip-label {
  text-transform: capitalize;
}

.status-chip-value {
  font-weight: 700;
}

.status-chip-count {
  opacity: 0.75;
}

.status-progress .progress-bar {
  border-radius: 0;
}

.status-bar-answered {
  background-color: #198754;
}

.status-bar-connecting {
  background-color: #ffc107;
}

.status-bar-others {
  background-color: #6c757d;
}

.details-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.table.table-hover tbody tr.summary-row:hover {
  transform: scale(1.002);
  transition: transform 0.2s ease;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
}

.refresh-btn:hover,
.refresh-btn:focus {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.refresh-btn.is-loading {
  cursor: wait;
}

.refresh-btn.is-loading i {
  animation: refresh-spin 1s linear infinite;
}

.refresh-btn i {
  transition: transform 0.2s ease;
}

.refresh-btn:hover i {
  transform: rotate(15deg);
}

.refresh-indicator {
  position: absolute;
  top: 8px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #0d6efd;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.refresh-indicator .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15rem;
}

.table-container.is-refreshing .refresh-indicator {
  opacity: 1;
  transform: translateY(0);
}

@keyframes refresh-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.layout-section {
  margin-bottom: 2rem;
}

.details-offcanvas {
  --bs-offcanvas-width: min(92vw, 960px);
  padding-bottom: 1.5rem;
}

.details-offcanvas .offcanvas-body {
  padding-bottom: 2rem;
  overflow-y: auto;
}

.details-offcanvas .details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.details-offcanvas .table-responsive {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.details-offcanvas table thead th {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  z-index: 2;
}

.kpi-grid .kpi-card {
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 18px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.45), rgba(13, 148, 136, 0.38));
  box-shadow: 0 18px 40px rgba(15, 30, 60, 0.45);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #f1f7ff;
}

.kpi-card .kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(59, 130, 246, 0.32);
  color: #bcd9ff;
  box-shadow: inset 0 0 10px rgba(13, 110, 253, 0.28);
}

.kpi-card .kpi-content {
  flex: 1;
}

.kpi-card .kpi-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #d2dcff;
  margin-bottom: 0.25rem;
}

.kpi-card .kpi-value {
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.kpi-card .kpi-value small {
  font-size: 0.85rem;
  color: #c5d6ff;
}

.kpi-card .kpi-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #cdd7f6;
}

  body {
    background: radial-gradient(circle at top left, #173661 0%, #0b1c3a 55%, #050913 100%);
    color: #dae6ff;
  }

  .badge.bg-light {
    background-color: rgba(148, 163, 184, 0.1) !important;
    color: #e2e8f0 !important;
  }

  .btn-outline-danger {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
  }

  .btn-outline-danger:hover,
  .btn-outline-danger:focus {
    background-color: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.7);
  }

  .dashboard-card {
    box-shadow: 0 18px 35px rgba(6, 32, 73, 0.35);
  }

  .dashboard-card .card-header {
    background: linear-gradient(120deg, rgba(24, 79, 157, 0.95), rgba(23, 147, 167, 0.95));
  }

  .dashboard-card .card-body {
    background: linear-gradient(145deg, rgba(4, 12, 28, 0.92), rgba(8, 25, 52, 0.92));
    color: #e6f1ff;
  }

  .summary-table {
    color: #dbe5f5;
  }

  .summary-table tbody tr:nth-child(odd) {
    background-color: rgba(9, 23, 45, 0.88);
  }

  .summary-table tbody tr:nth-child(even) {
    background-color: rgba(7, 18, 36, 0.88);
  }

  .summary-table thead,
  .summary-table tfoot {
    background-color: rgba(28, 55, 92, 0.85) !important;
    color: #f8fafc;
  }

  .status-progress {
    background: rgba(10, 32, 61, 0.85);
  }

  .refresh-indicator {
    color: #38bdf8;
  }

  .refresh-btn {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
  }

  .refresh-btn:hover,
  .refresh-btn:focus {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
  }

  .call-search-form .form-control {
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.3);
  }

  .call-search-form .form-control::placeholder {
    color: rgba(148, 163, 184, 0.7);
  }

  .call-search-form .input-group-text {
    background: rgba(30, 41, 59, 0.85);
    color: #cbd5f5;
    border-color: rgba(148, 163, 184, 0.3);
  }

  .call-search-form .btn-outline-secondary {
    color: #cbd5f5;
    border-color: rgba(148, 163, 184, 0.3);
  }

  .call-search-form .btn-outline-secondary:hover,
  .call-search-form .btn-outline-secondary:focus {
    background: rgba(148, 163, 184, 0.25);
    border-color: rgba(148, 163, 184, 0.4);
  }

  .carrier-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(16, 185, 129, 0.25));
    color: #e1ecff;
  }

  .carrier-badge .carrier-count {
    background: rgba(13, 110, 253, 0.32);
    color: #f5fbff;
  }

  .carrier-badge.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.65), rgba(16, 185, 129, 0.55));
    border-color: rgba(13, 110, 253, 0.6);
  }

  .search-results-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }

  .search-result-title {
    color: #f8fafc;
  }

  .search-result-customer {
    background: rgba(30, 41, 59, 0.7);
  }

  .carrier-detail-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding-bottom: 0.75rem;
  }

  .carrier-popover-content .popover-subtitle,
  .carrier-popover-content li {
    color: #cbd5f5;
  }

  .kpi-grid .kpi-card {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.42), rgba(13, 148, 136, 0.35));
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.6);
    color: #f8fafc;
  }

  .kpi-card .kpi-icon {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
  }

  .kpi-card .kpi-label {
    color: #cbd5f5;
  }

  .kpi-card.kpi-answered .kpi-icon {
    background: rgba(34, 197, 94, 0.3);
    color: #86efac;
  }

  .kpi-card.kpi-connecting .kpi-icon {
    background: rgba(252, 211, 77, 0.25);
    color: #fcd34d;
  }

  .kpi-card.kpi-others .kpi-icon {
    background: rgba(148, 163, 184, 0.25);
    color: #cbd5f5;
  }

  .details-offcanvas {
    background: rgba(15, 23, 42, 0.98);
    color: #e2e8f0;
  }

  .details-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }


  .details-offcanvas .details-header {
    background: rgba(30, 41, 59, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  }

  .details-offcanvas table thead th {
    background: rgba(30, 41, 59, 0.85);
    color: #f8fafc;
  }

  .details-offcanvas tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.75);
  }

  .details-offcanvas tbody tr:nth-child(odd) {
    background: rgba(30, 41, 59, 0.75);
  }

  .status-default {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
  }

  .status-default .status-dot {
    background: #94a3b8;
  }

.details-loading::after {
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
}


@media (min-width: 992px) {
  .layout-section .col-lg-6 {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .dashboard-card {
    border-radius: 14px;
  }

  .dashboard-card .card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .dashboard-card .card-header .btn {
    align-self: stretch;
  }
}

.action-output-card {
  background: linear-gradient(165deg, rgba(11, 22, 46, 0.92), rgba(23, 37, 84, 0.88));
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: 0 22px 42px rgba(8, 25, 52, 0.52);
  color: #e2e8f0;
}

.action-output-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

.action-output-card__title {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #bae6fd;
}

.action-output {
  min-height: 220px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  font-family: var(--bs-font-sans-serif, 'Inter', 'Segoe UI', sans-serif);
  font-size: 0.92rem;
  background: rgba(7, 17, 35, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 0.9rem;
  padding: 1.1rem;
  color: #f8fafc;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.action-output--pre {
  display: block;
  flex: none;
  font-family: var(--bs-font-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
  font-size: 0.88rem;
  white-space: pre-wrap;
  overflow: auto;
}

.action-output table {
  white-space: normal;
  font-family: inherit;
}

.action-output::-webkit-scrollbar {
  width: 0.45rem;
}

.action-output::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.38);
  border-radius: 999px;
}

.action-output::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

.sip-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
  overflow: hidden;
}

.sip-dashboard__title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  color: #f0f9ff;
}

.sip-dashboard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sip-dashboard__meta-item {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 0.75rem;
  padding: 0.45rem 0.75rem;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  box-shadow: 0 12px 24px rgba(8, 25, 52, 0.35);
}

.sip-dashboard__meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.75);
  margin-bottom: 0.15rem;
}

.sip-dashboard__meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
}

.sip-dashboard__meta-line {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.82);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.65rem;
  padding: 0.45rem 0.75rem;
}

.sip-dashboard__table {
  width: 100%;
  flex: 1 1 auto;
  overflow: auto;
  border-radius: 0.85rem;
  box-shadow: 0 18px 32px rgba(8, 25, 52, 0.45);
  min-height: 0;
  display: block;
  padding: 0;
}

.action-output-table {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 0.85rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.75);
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.action-output-table thead th {
  background: rgba(30, 41, 59, 0.85);
  color: #dbeafe;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.action-output-table thead th:nth-child(2),
.action-output-table thead th:nth-child(3) {
  text-align: center;
}

.action-output-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.85);
}

.action-output-table tbody tr:nth-child(even) {
  background: rgba(21, 34, 59, 0.85);
}

.action-output-table tbody tr {
  transition: background 0.2s ease;
}

.action-output-table td {
  border-color: rgba(59, 130, 246, 0.18) !important;
  color: #e2e8f0;
  font-size: 0.86rem;
  padding: 0.6rem 0.75rem;
}

.action-output-table td:first-child {
  font-family: var(--bs-font-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
  letter-spacing: 0.02em;
}

.action-output-table td:nth-child(2),
.action-output-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  text-align: right;
}

.action-output-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.22);
  box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.08);
}

.sip-dashboard__note {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 0.75rem;
  padding: 0.6rem 0.8rem;
}

/* ===== Estilos para vista de cliente restringido ===== */
.layout-section.justify-content-center .dashboard-card {
  max-width: 100%;
}

/* Responsive para clientes - pantallas pequeñas */
@media (max-width: 576px) {
  .layout-section.justify-content-center .dashboard-card .card-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .layout-section.justify-content-center .dashboard-card .card-header h5 {
    font-size: 1rem;
  }
  
  .layout-section.justify-content-center .dashboard-card .card-body {
    padding: 0.75rem;
  }
}

/* Responsive para clientes - pantallas medianas */
@media (min-width: 577px) and (max-width: 991px) {
  .layout-section.justify-content-center .dashboard-card .card-header h5 {
    font-size: 1.1rem;
  }
}

/* Responsive para clientes - pantallas grandes */
@media (min-width: 992px) {
  .layout-section.justify-content-center .dashboard-card {
    box-shadow: 0 20px 40px rgba(15, 76, 129, 0.18);
  }
  
  .layout-section.justify-content-center .dashboard-card .card-header {
    padding: 1.25rem 1.5rem;
  }
  
  .layout-section.justify-content-center .dashboard-card .card-header h5 {
    font-size: 1.25rem;
  }
  
  .layout-section.justify-content-center .dashboard-card .card-body {
    padding: 1.25rem 1.5rem;
  }
}

/* Card más destacada para vista cliente */
.layout-section.justify-content-center .dashboard-card .card-header {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
}
