.admin-container{
padding:40px;
font-family:Inter;
color:#e5e7eb;
}

.admin-toolbar{
margin-bottom:20px;
}

.admin-toolbar input{

background:#0f172a;
border:1px solid #334155;
color:#e5e7eb;
padding:10px 14px;
border-radius:8px;
width:320px;

}

.admin-table{

width:100%;
border-collapse:collapse;
margin-top:20px;

}

.admin-table th{

text-align:left;
padding:14px;
background:#0f172a;
color:#94a3b8;
font-size:13px;
border-bottom:1px solid #334155;

}

.admin-table td{

padding:14px;
border-bottom:1px solid #1e293b;
color:#e5e7eb;

}

.admin-table tr:hover{

background:#0f172a;

}

.admin-table button{

background:#6366f1;
border:none;
padding:7px 12px;
border-radius:6px;
color:white;
cursor:pointer;
font-size:13px;
margin-right:6px;

}

.admin-table button:hover{

background:#4f46e5;

}


/* =========================================
   ADMIN USER CONSOLE
========================================= */

.admin-console{
padding:30px;
color:#e6edf3;
font-family:Inter,system-ui;
}

.admin-console h2{
font-size:26px;
margin-bottom:25px;
}

.console-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:20px;
}


/* STATUS */

.status-ok{
color:#4ade80;
font-weight:600;
}

.status-ban{
color:#f87171;
font-weight:600;
}

.adminCard {
  padding: 16px;
}
.adminHeaderRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.adminToggleBtn{
  background:#334155;
  color:#e2e8f0;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:10px;
  padding:8px 12px;
  font-size:13px;
  cursor:pointer;
}
.adminGrid.adminGridCollapsed{
  display:none;
}

.adminOpsStrip{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.opsChip{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:#fff;
  border:1px solid rgba(255,255,255,0.15);
  cursor:pointer;
  transition:transform .15s ease, filter .15s ease;
}

.opsChip:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.opsChip--critical{ background:linear-gradient(135deg,#ef4444,#b91c1c); }
.opsChip--pending{ background:linear-gradient(135deg,#f59e0b,#d97706); }
.opsChip--billing{ background:linear-gradient(135deg,#0ea5e9,#0369a1); }

/* GRID RESPONSIVO */
.adminGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

/* CARD DE CADA ITEM */
.adminTitleWithBadge{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0;
}

.admin-header-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:linear-gradient(135deg,#f59e0b,#ea580c);
  color:#fff;
  box-shadow:0 2px 8px rgba(234,88,12,.35);
}

.adminItem {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.adminItem--badged{
  position:relative;
  padding-top:22px;
}

.adminBadgeSlot{
  position:absolute;
  top:8px;
  right:8px;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  justify-content:flex-end;
  max-width:calc(100% - 12px);
  pointer-events:none;
}

.admin-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  line-height:1;
  color:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.25);
}

.admin-badge--qreport{
  background:linear-gradient(135deg,#f59e0b,#d97706);
}

.admin-badge--dm{
  background:linear-gradient(135deg,#ef4444,#b91c1c);
}

.admin-badge--global{
  background:linear-gradient(135deg,#7c3aed,#5b21b6);
}

.admin-badge--bpend{
  background:linear-gradient(135deg,#f59e0b,#f97316);
}

.admin-badge--boverdue{
  background:linear-gradient(135deg,#ef4444,#b91c1c);
}

.admin-badge--comments{
  background:linear-gradient(135deg,#0ea5e9,#0369a1);
}

/* HOVER */
.adminItem:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}

/* ÍCONE */
.adminItem .icon {
  font-size: 22px;
  margin-bottom: 6px;
}

/* TEXTO */
.adminItem .label {
  font-size: 13px;
  text-align: center;
  color: #e2e8f0;
}

/* MOBILE EXTRA */
@media (max-width: 480px) {
  .adminGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adminToggleBtn{
    padding:10px 12px;
    font-size:14px;
  }
}

/* =========================
📱 MOBILE GLOBAL FIX
========================= */

@media (max-width: 768px){

.layout{
flex-direction:column;
}

.sidebar{
display:none;
}

.content{
padding:12px;
}

.metrics{
flex-direction:column;
}

.metric{
width:100%;
}

.statsGrid{
grid-template-columns:1fr 1fr;
gap:10px;
}

table{
display:block;
overflow-x:auto;
white-space:nowrap;
}

.panel{
padding:12px;
}

}

/* ===== Admin logs v2 ===== */
.admin-logs-page {
  background: #0b1220;
  min-height: 100vh;
}

.admin-logs-wrap h2 {
  margin: 0 0 6px;
  color: #e2e8f0;
}

.admin-logs-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
}

.admin-logs-panel {
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.45);
}

.admin-logs-panel--search {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.09);
}

.admin-logs-panel-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #e2e8f0;
}

.admin-logs-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.admin-logs-primary--accent {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.admin-logs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.admin-logs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-logs-field select,
.admin-logs-field input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 14px;
}

.admin-logs-field--narrow {
  min-width: 100px;
}

.admin-logs-grow {
  flex: 1 1 220px;
}

.admin-logs-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
  user-select: none;
}

.admin-logs-primary {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.admin-logs-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  font-family: ui-monospace, monospace;
}

.log-viewer {
  background: #070b14;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  min-height: 52vh;
  max-height: min(78vh, 900px);
  overflow: auto;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.log-line {
  padding: 1px 0 1px 8px;
  border-left: 3px solid transparent;
  white-space: pre-wrap;
  word-break: break-word;
}

.log-line--plain {
  border-left-color: #334155;
  color: #cbd5e1;
}

.log-line--err {
  border-left-color: #f87171;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.2);
}

.log-line--warn {
  border-left-color: #fbbf24;
  color: #fef3c7;
}

.log-line--auth {
  border-left-color: #38bdf8;
  color: #e0f2fe;
}

.log-line--pvp {
  border-left-color: #a78bfa;
  color: #ede9fe;
}

.log-line--bill {
  border-left-color: #34d399;
  color: #d1fae5;
}

.log-line--ref {
  border-left-color: #fb7185;
  color: #ffe4e6;
}

@media (max-width: 640px) {
  .admin-logs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-logs-field--narrow {
    width: 100%;
  }
}