.admin-header { background: var(--azul); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; }
.admin-header .logo-img { height: 34px; }
.admin-header .logo small { font-size: 12px; color: #c7d1dd; font-weight: 400; margin-left: 4px; }
.admin-header .salir { color: #d7e0ea; font-size: 14px; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 24px; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--gris-borde); border-radius: 8px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--gris-borde); font-size: 14px; }
.admin-table th { background: var(--gris-fondo); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .acciones a { margin-right: 10px; font-size: 13px; font-weight: 600; }
.admin-table .acciones .link-borrar { color: #dc2626; }
.admin-table .acciones .link-aprobar { color: #16a34a; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.tag-pendiente { background: #fef3c7; color: #92400e; }
.tag-activo { background: #dcfce7; color: #166534; }
.tag-inactivo { background: #f3f4f6; color: #6b7280; }
.tag-nueva { background: #dbeafe; color: #1e40af; }

.admin-actions-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.panel-botonera { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.panel-botonera .btn-nuevo { text-decoration: none; }
.btn-nuevo { background: var(--naranja); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; font-family: inherit; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.checkbox-row input { width: auto; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 30px; }
.table-scroll .admin-table { margin-bottom: 0; min-width: 320px; }

.filtros-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.filtros-admin input[type="text"], .filtros-admin select {
    padding: 8px 10px; border: 1px solid var(--gris-borde); border-radius: 6px; font-size: 13px; font-family: inherit; background: #fff;
}
.filtros-admin input[type="text"] { flex: 1 1 200px; min-width: 160px; }
.filtros-admin button { padding: 8px 14px; border: none; border-radius: 6px; background: var(--azul); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.filtros-admin button:hover { background: var(--azul-oscuro); }
.filtros-limpiar { font-size: 13px; color: #6b7280; text-decoration: underline; }

.admin-nav { display: flex; gap: 16px; }
.admin-nav a { color: #d7e0ea; font-size: 14px; }
.admin-nav a:hover, .admin-nav a.activo { color: #fff; text-decoration: underline; }
.badge-nav { display: inline-block; background: var(--naranja); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0 30px; }
.stat-box { background: #fff; border: 1px solid var(--gris-borde); border-radius: 10px; padding: 16px; text-align: center; }
.stat-box .stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--azul); }
.stat-box .stat-label { font-size: 12px; color: #6b7280; }

.stats-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.stats-cols h3 { font-size: 15px; margin-bottom: 10px; }

.backup-info { background: #fff; border: 1px solid var(--gris-borde); border-radius: 8px; padding: 14px 18px; font-size: 13px; color: #4b5563; margin-bottom: 20px; }
.backup-info code { background: var(--gris-fondo); padding: 2px 6px; border-radius: 4px; }
.backup-progreso { margin-top: 20px; max-width: 420px; }
.backup-progreso #prog-msg { font-size: 14px; font-weight: 600; color: var(--azul); margin-bottom: 8px; }
.backup-bar-track { background: var(--gris-borde); border-radius: 99px; height: 10px; overflow: hidden; }
.backup-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--azul), #3b82f6); border-radius: 99px; transition: width .4s ease; }
.backup-sub { font-size: 12px; color: #6b7280; margin-top: 6px; }

@media (max-width: 720px) {
    .admin-header { padding: 12px 14px; }
    .admin-main { padding: 16px; }
    .admin-actions-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .btn-nuevo { text-align: center; }
}
