html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background-color: #800000;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.95rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  margin-top: 24px;
}

.presentation-shell {
  max-width: 980px;
}

.presentation-copy {
  color: #2d3863;
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: justify;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 820px;
}

.tip-item {
  align-items: flex-start;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.tip-item > strong {
  align-items: center;
  background-color: #800000;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
}

.tip-item span {
  color: #2d3863;
  line-height: 1.45;
}

.btn-primary {
  background-color: #800000;
  border-color: #800000;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: #85283f;
  border-color: #85283f;
}

.bg-vino {
  background-color: #800020;
}

.bg-borgona {
  background-color: #800000;
}

.bg-vinoclaro {
  background-color: #a52a2a;
}

.logo-link img {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.logo-link:hover img {
  transform: translateY(-1px);
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.status-select {
  min-width: 130px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1.6fr) auto;
  gap: 8px;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.filter-actions .btn {
  min-width: 110px;
}

.panel-table-wrap {
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.panel-table {
  margin-bottom: 0;
}

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

.panel-table {
  table-layout: fixed;
  min-width: 1480px;
}

.panel-table th {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-cell {
  width: 220px;
}

.cell-long {
  overflow-wrap: anywhere;
}

.cell-email {
  overflow-wrap: anywhere;
}

.cell-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-folio {
  width: 70px;
}

.col-tipo {
  width: 110px;
}

.col-dato {
  width: 260px;
}

.col-correo {
  width: 240px;
}

.col-url {
  width: 220px;
}

.col-fecha {
  width: 130px;
}

.col-fecha-res {
  width: 150px;
}

.col-estatus {
  width: 120px;
}

.col-usuario {
  width: 120px;
}

.col-accion {
  width: 240px;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
}

.status-revisando {
  background-color: #fff3cd;
  color: #664d03;
}

.status-segura {
  background-color: #d1e7dd;
  color: #0f5132;
}

.status-no-segura {
  background-color: #f8d7da;
  color: #842029;
}

.status-observacion {
  background-color: #cff4fc;
  color: #055160;
}

.user-actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-width: 245px;
  text-align: center;
}

.user-actions .btn,
.user-actions form {
  margin: 0;
}

.user-actions .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-actions .btn {
    flex: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
