/* Panel de administración - JOBAR TECHNOLOGY SAC
   Reutiliza variables y tipografía de style.css */

body.admin-body {
    background: var(--bg-soft);
    min-height: 100vh;
}

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 240px;
    background: var(--navy-dark);
    color: #C9D0E8;
    flex-shrink: 0;
    padding: 26px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-sidebar .brand-box { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 20px; }
.admin-sidebar .brand-box img { height: 34px; filter: brightness(0) invert(1); }
.admin-sidebar nav ul { list-style: none; margin: 0; padding: 0; }
.admin-sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 24px;
    color: #C9D0E8;
    font-size: .93rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-sidebar nav a.active { border-left-color: var(--blue-light); background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar .divider { margin: 18px 24px; border-top: 1px solid rgba(255,255,255,.1); }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px 32px; display: flex; justify-content: space-between; align-items: center;
}
.admin-topbar h1 { font-size: 1.3rem; margin: 0; }
.admin-content { padding: 32px; }

.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--line); padding: 22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.stat-card strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1.9rem; color: var(--navy-dark); }
.stat-card span { color: var(--steel); font-size: .88rem; }

.admin-panel { background: #fff; border: 1px solid var(--line); padding: 26px; margin-bottom: 24px; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td {
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle;
}
table.admin-table th { color: var(--steel); font-weight: 600; font-size: .82rem; text-transform: none; }
table.admin-table img.thumb { width: 46px; height: 46px; object-fit: cover; }
table.admin-table .actions { display: flex; gap: 10px; }
table.admin-table .actions a { font-size: .85rem; font-weight: 600; }
.badge { display: inline-block; padding: 3px 10px; font-size: .76rem; font-weight: 600; }
.badge-on { background: #E7F7EE; color: #146C3C; }
.badge-off { background: #F2F3F7; color: var(--steel); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); padding: 24px; }
.login-box { background: #fff; border: 1px solid var(--line); padding: 44px; width: 100%; max-width: 380px; }
.login-box img { height: 44px; margin-bottom: 22px; }
