/* Impacto Nexora v1.22.0 — Production hardening */

.nexora-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.pagination-summary{
  color:var(--muted);
  font-size:.82rem;
  display:flex;
  align-items:center;
  gap:5px;
}
.nexora-pagination .page-link{
  color:var(--brand);
  border-color:var(--border);
}
.nexora-pagination .page-item.active .page-link{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.nexora-pagination .page-item.disabled .page-link{
  color:#9aa4b4;
}

.mobile-sidebar-backdrop{
  position:fixed;
  inset:0;
  z-index:1025;
  background:rgba(6,13,27,.48);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
.mobile-sidebar-backdrop.show{
  opacity:1;
  pointer-events:auto;
}

@media(max-width:992px){
  body.sidebar-open{overflow:hidden}
  .sidebar{box-shadow:16px 0 35px rgba(5,15,35,.18)}
  .topbar{padding:0 14px}
  .top-actions{gap:5px}
}

@media(max-width:650px){
  .page-heading{
    align-items:stretch;
    margin-bottom:16px;
  }
  .page-heading>div:last-child,
  .page-heading>.d-flex{
    width:100%;
  }
  .page-heading .btn{
    flex:1 1 auto;
  }

  .panel-header{
    flex-direction:column;
  }

  .nexora-pagination{
    padding:12px;
    justify-content:center;
  }
  .pagination-summary{
    width:100%;
    justify-content:center;
    text-align:center;
  }
  .nexora-pagination .pagination{
    justify-content:center;
  }

  .table-responsive.mobile-card-container{
    overflow:visible;
  }
  table.mobile-card-table{
    display:block;
    width:100%;
    border:0;
  }
  table.mobile-card-table thead{
    display:none;
  }
  table.mobile-card-table tbody{
    display:grid;
    gap:12px;
    width:100%;
  }
  table.mobile-card-table tbody tr{
    display:block;
    width:100%;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface);
    box-shadow:0 5px 15px rgba(25,35,58,.05);
    overflow:hidden;
  }
  table.mobile-card-table tbody td{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    width:100%;
    min-width:0!important;
    padding:10px 12px!important;
    border:0!important;
    border-bottom:1px solid #edf1f6!important;
    text-align:right;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  table.mobile-card-table tbody td:last-child{
    border-bottom:0!important;
  }
  table.mobile-card-table tbody td::before{
    content:attr(data-label);
    flex:0 0 38%;
    max-width:38%;
    text-align:left;
    color:var(--muted);
    font-size:.69rem;
    line-height:1.3;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.035em;
  }
  table.mobile-card-table tbody td[data-empty-row="1"]{
    display:block;
    text-align:center;
  }
  table.mobile-card-table tbody td[data-empty-row="1"]::before{
    display:none;
  }
  table.mobile-card-table tbody td .d-flex,
  table.mobile-card-table tbody td form.d-flex{
    justify-content:flex-end;
    flex-wrap:wrap;
  }
  table.mobile-card-table tbody td .progress{
    min-width:120px;
  }

  .table-responsive.mobile-scroll-container{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:12px;
  }

  .form-control,
  .form-select,
  .btn{
    min-height:42px;
  }

  .row.g-2>[class*="col-"],
  .row.g-3>[class*="col-"]{
    min-width:0;
  }

  .flash-stack{
    top:10px;
    right:10px;
    width:calc(100vw - 20px);
  }
}
