
#menu-personas{margin-top:20px}
#panel-practicas{padding:28px 0 48px}
#visor-practica{margin-top:18px}
.practica-frame{width:100%;height:80vh;min-height:520px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;margin-top:12px}
[hidden]{display:none!important}
/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #e8e9ec;
  color: #1f2937;
}

[hidden] {
  display: none !important;
}

/* Estructura general en 2 columnas*/
.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #12284a;
  color: #fff;
  padding: 36px 32px;
}

.sidebar h1 {
  margin: 0 0 36px;
  font-size: 24px;
}

.sidebar h2 {
  margin: 0 0 18px;
  font-size: 17px;
}

/* Formulario en 1 sola columna dentro de la sidebar */
.sidebar .grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.sidebar label {
  color: #c9d6ea;
  font-size: 13px;
}

.sidebar input,
.sidebar select {
  background: #fff;
  color: #12284a;
  border: 0;
  padding: 11px 12px;
}

.sidebar .primary {
  width: 100%;
  background: #7db0ff;
  color: #0b1b33;
  padding: 13px;
  margin-top: 8px;
}

.container {
  width: 100%;
  margin: 0 auto;
}

main {
  padding: 36px 40px;
}

/* Formulario */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

/* Botones y acciones */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

button,
.btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary,
.btn-primary {
  background: #1d4ed8;
  color: #fff;
}

.secondary,
.btn-secondary {
  background: #475569;
  color: #fff;
}

.danger,
.btn-danger {
  background: #dc2626;
  color: #fff;
}

.success,
.btn-success {
  background: #155980;
  color: #fff;
}

/* Resumen */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 16px;
}

.metric strong {
  color:green;
  display: block;
  font-size: 24px;
  margin-top: 5px;
}

.metric2 {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 16px;
}

.metric2 strong {
  color:red;
  display: block;
  font-size: 24px;
  margin-top: 5px;
}

.metric3 {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 16px;
}

.metric3 strong {
  display: block;
  font-size: 24px;
  margin-top: 5px;
}

/* Tabla de movimientos */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #eff6ff;
  color: #1e3a8a;
}

/* Alertas y utilidades */
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

.small {
  font-size: 13px;
  color: #6b7280;
}

/* Panel de prácticas */
#menu-personas {
  margin-top: 20px;
}

#panel-practicas {
  padding: 28px 0 48px;
}

#visor-practica {
  margin-top: 18px;
}

.practica-frame {
  width: 100%;
  height: 80vh;
  min-height: 520px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  margin-top: 12px;
}
a.btn-primary {
  display: inline-block;
  text-decoration: none;
  color: #fff;
}