/* ============================================================
   SmileTrucker — Componentes reutilizables (prefijo st-)
   Cargado globalmente desde _Layout.cshtml
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   1. st-panel-card — Card con header oscuro (panel de resumen)
   Uso: <div class="card st-panel-card">
   ────────────────────────────────────────────────────────── */
.st-panel-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  overflow: hidden;
}
.st-panel-card .card-header {
  /*background: linear-gradient(135deg, #343a40 0%, #495057 100%);*/
  /*border-bottom: none;*/
  padding: 14px 18px;
}
.st-panel-card .card-header h5,
.st-panel-card .card-header .card-title {
  /*color: #fff;*/
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.st-panel-card .card-footer {
  background: #f8f9fa;
  border-top: 1px solid #f0f0f0;
  padding: 14px 18px;
}

/* ──────────────────────────────────────────────────────────
   2. st-stat-row / st-stat-badge-* — Filas de KPI/métricas
   Uso: <div class="st-stat-row">
          <span class="st-stat-label">Total</span>
          <span class="st-stat-badge st-stat-badge-neutral">3</span>
        </div>
   ────────────────────────────────────────────────────────── */
.st-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid #f0f0f0;
}
.st-stat-row:last-child {
  border-bottom: none;
}
.st-stat-label {
  font-size: .8rem;
  color: #6c757d;
  font-weight: 500;
}
.st-stat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
}
.st-stat-badge-neutral  { background: #e9ecef; color: #495057; }
.st-stat-badge-danger   { background: #fde8e8; color: #c0392b; }
.st-stat-badge-warning  { background: #fff3cd; color: #856404; }
.st-stat-badge-success  { background: #d4edda; color: #155724; }

/* ──────────────────────────────────────────────────────────
   3. st-section-header — Separador de sección uppercase con línea
   Uso: <div class="st-section-header"><i class="fas fa-list-ul"></i> Título</div>
   ────────────────────────────────────────────────────────── */
.st-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #868e96;
  margin-bottom: 10px;
  margin-top: 4px;
}
.st-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

/* ──────────────────────────────────────────────────────────
   4. st-info-note — Caja informativa azul suave
   Uso: <div class="st-info-note"><i class="fas fa-info-circle"></i> Texto</div>
   ────────────────────────────────────────────────────────── */
.st-info-note {
  background: #f0f7ff;
  border: 1px solid #c8e0ff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: .78rem;
  color: #495057;
  line-height: 1.6;
}
.st-info-note i {
  color: #3d84c6;
  margin-right: 5px;
}

/* ──────────────────────────────────────────────────────────
   5. st-item-card + st-border-* — Item en lista con estado visual
   Uso: <div class="card st-item-card st-border-danger">
   ────────────────────────────────────────────────────────── */
.st-item-card {
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
  transition: box-shadow .18s ease, transform .15s ease;
  background: #fff;
}
.st-item-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.11) !important;
  transform: translateY(-1px);
}
.st-item-card .card-body {
  padding: 12px 16px;
}
.st-border-danger  { border-left: 4px solid #dc3545 !important; }
.st-border-warning { border-left: 4px solid #ffc107 !important; }
.st-border-success { border-left: 4px solid #28a745 !important; }
.st-border-info    { border-left: 4px solid #17a2b8 !important; }

/* ──────────────────────────────────────────────────────────
   6. st-drop-hint — Área punteada de drag/drop o hint
   Uso: <div class="st-drop-hint">
          <i class="fas fa-arrows-alt-v"></i>
          <span>Arrastra para reordenar</span>
        </div>
   ────────────────────────────────────────────────────────── */
.st-drop-hint {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #adb5bd;
  margin-top: 8px;
  transition: border-color .2s, color .2s;
}
.st-drop-hint:hover {
  border-color: #adb5bd;
  color: #868e96;
}
.st-drop-hint i {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}
.st-drop-hint span {
  font-size: .78rem;
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────
   7. st-detail-card — Card de info para vistas de detalle
   Uso: <div class="card st-detail-card">
   ────────────────────────────────────────────────────────── */
.st-detail-card {
  border-left: 4px solid #007bff;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  overflow: hidden;
}
.st-detail-card .card-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.125);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.st-detail-card .card-header h5,
.st-detail-card .card-header .card-title {
  color: #212529;
  font-size: .92rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-detail-card .card-header h5 i,
.st-detail-card .card-header .card-title i {
  color: #007bff;
  font-size: .95rem;
}
/* Botón ⋮ sobre fondo blanco */
.st-detail-card .card-header .btn-actions {
  background: transparent;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 2px 8px;
  font-size: .8rem;
  line-height: 1.6;
  border-radius: 6px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.st-detail-card .card-header .btn-actions:hover,
.st-detail-card .card-header .btn-actions:focus {
  background: #f0f0f0;
  color: #343a40;
  outline: none;
  box-shadow: none;
}
.st-detail-card .card-header .dropdown-menu {
  font-size: .85rem;
}
.st-detail-card .card-footer {
  background: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,.125);
  padding: 14px 16px;
}

/* ──────────────────────────────────────────────────────────
   8. st-detail-field — Campo label/valor dentro de st-detail-card
   Uso: <li class="st-detail-field">
          <span class="st-field-label">Nombre</span>
          <span class="st-field-value">Texto</span>
        </li>
   ────────────────────────────────────────────────────────── */
.st-detail-card ul.list-unstyled {
  margin: 0;
  padding: 0;
}
.st-detail-field {
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
}
.st-detail-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.st-field-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #868e96;
  margin-bottom: 3px;
}
.st-field-value {
  font-size: .88rem;
  font-weight: 600;
  color: #212529;
}

/* ============================================================
   AdminLTE Timeline — incluido aquí porque el proyecto usa
   adminlte.core.min.css que no lleva este componente
   ============================================================ */
.timeline {
  margin: 0 0 45px;
  padding: 0;
  position: relative;
}
.timeline::before {
  border-radius: 0.25rem;
  background-color: #dee2e6;
  bottom: 0;
  content: "";
  left: 31px;
  margin: 0;
  position: absolute;
  top: 0;
  width: 4px;
}
.timeline > div {
  margin-bottom: 15px;
  margin-right: 10px;
  position: relative;
}
.timeline > div::before,
.timeline > div::after {
  content: "";
  display: table;
}
.timeline > div > .timeline-item {
  box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
  border-radius: 0.25rem;
  background-color: #fff;
  color: #495057;
  margin-left: 60px;
  margin-right: 15px;
  margin-top: 0;
  padding: 0;
  position: relative;
}
.timeline > div > .timeline-item > .time {
  color: #999;
  float: right;
  font-size: 12px;
  padding: 10px;
}
.timeline > div > .timeline-item > .timeline-header {
  border-bottom: 1px solid rgba(0,0,0,.125);
  color: #495057;
  font-size: 16px;
  line-height: 1.1;
  margin: 0;
  padding: 10px;
}
.timeline > div > .timeline-item > .timeline-header > a {
  font-weight: 600;
}
.timeline > div > .timeline-item > .timeline-body,
.timeline > div > .timeline-item > .timeline-footer {
  padding: 10px;
}
.timeline > div > .timeline-item > .timeline-body > img {
  margin: 10px;
}
.timeline > div > .timeline-item > .timeline-body > dl,
.timeline > div > .timeline-item > .timeline-body ol,
.timeline > div > .timeline-item > .timeline-body ul {
  margin: 0;
}
.timeline > div > .timeline-item > .timeline-footer > a {
  color: #fff;
}
.timeline > div > .fa,
.timeline > div > .fas,
.timeline > div > .far,
.timeline > div > .fab,
.timeline > div > .fal,
.timeline > div > .fad,
.timeline > div > .svg-inline--fa,
.timeline > div > .ion {
  background-color: #adb5bd;
  border-radius: 50%;
  font-size: 16px;
  height: 30px;
  left: 18px;
  line-height: 30px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 30px;
}
.timeline > .time-label > span {
  border-radius: 4px;
  background-color: #fff;
  display: inline-block;
  font-weight: 600;
  padding: 5px;
}
.timeline-inverse > div > .timeline-item {
  box-shadow: none;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}
.timeline-inverse > div > .timeline-item > .timeline-header {
  border-bottom-color: #dee2e6;
}
