/* ===============================
   CONSULTAR REPORTES - PRO UI
================================= */

.rc-page{
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px 16px 30px;
}

.rc-panel{
  padding: 16px;
}

/* ===============================
   TOP BAR
================================= */
.rc-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 12px;
}

/* ===============================
   SEARCH
================================= */
.rc-search{
  display:flex;
  gap:8px;
  margin-bottom: 14px;
}
.rc-search .form-control{
  flex:1;
  height:42px;
  border-radius:10px;
}

/* ===============================
   TABLE CONTAINER
================================= */
.table-responsive{
  overflow-x:auto;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
}

/* ===============================
   TABLE
================================= */
table.table{
  width:100%;
  border-collapse:collapse;
  table-layout:auto;
}

/* HEADER */
table.table thead{
  background:#114c5a;
}
table.table thead th{
  color:#fff;
  font-size:13px;
  font-weight:600;
  padding:10px 12px;
  text-align:left;
}

/* BODY */
table.table tbody td{
  padding:8px 12px;      /* 🔥 MÁS COMPACTO */
  font-size:14px;
  border-bottom:1px solid rgba(0,0,0,.05);
  vertical-align:middle;
}

/* Quitar sensación de separación */
table.table tbody tr{
  height:52px;          /* 🔥 Altura fija elegante */
}

/* Zebra muy sutil */
table.table tbody tr:nth-child(even){
  background:#fafafa;
}

/* Hover moderno */
table.table tbody tr:hover{
  background:#f0f6f8;
}

/* ===============================
   COLUMN CONTROL
================================= */
.col-id{ width:100px; font-weight:600; }
.col-img{ width:70px; }
.col-rem{ width:160px; }
.col-clas{ width:250px; }
.col-col{ width:160px; }
.col-est{ width:120px; }
.col-act{ width:170px; }

/* Clasificación 1 línea limpia */
td.col-clas{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ===============================
   THUMBNAIL
================================= */
.thumb{
  width:40px;      /* 🔥 MÁS PEQUEÑO */
  height:40px;
  object-fit:cover;
  border-radius:8px;
}

/* ===============================
   STATUS BADGE
================================= */
.status-badge{
  font-size:12px;
  padding:5px 10px;
  border-radius:20px;
}

/* ===============================
   ACTIONS
================================= */
.actions{
  display:flex;
  gap:6px;
  justify-content:flex-end;
}

.actions .btn.sm{
  padding:6px 10px;     /* 🔥 Compacto */
  font-size:13px;
  border-radius:8px;
}

.actions .btn.sm i{
  width:16px;
  height:16px;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 900px){
  .col-img{ display:none; }
}

/* Capa visual: mantiene estructura y mejora presencia */
.rc-panel{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  background:
    radial-gradient(760px 260px at 10% -10%, rgba(14, 165, 233, .14), transparent 62%),
    radial-gradient(620px 240px at 95% 0%, rgba(34, 197, 94, .10), transparent 60%),
    rgba(255, 255, 255, .94);
  animation: rcEnter .38s ease both;
}

.rc-topbar{
  gap: 10px;
}

.rc-search{
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 16px;
  background: rgba(248, 250, 252, .74);
}

.rc-search .form-control{
  background: rgba(255, 255, 255, .92);
}

.table-responsive{
  border:1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 16px 32px rgba(2, 6, 23, .07);
}

table.table thead{
  background: linear-gradient(135deg, #114c5a, #0f766e);
}

table.table thead th{
  font-weight:900;
  padding:12px 12px;
  letter-spacing:.02em;
}

table.table tbody td{
  padding:9px 12px;
  border-bottom:1px solid rgba(226, 232, 240, .72);
}

table.table tbody tr{
  height:54px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

table.table tbody tr:nth-child(even){
  background: rgba(248, 250, 252, .64);
}

table.table tbody tr:hover{
  background:#f0f9fb;
  box-shadow: inset 4px 0 0 #0ea5e9;
}

.thumb{
  width:42px;
  border-radius:10px;
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 8px 16px rgba(2, 6, 23, .08);
}

.status-badge{
  font-weight:900;
  border: 1px solid rgba(15, 23, 42, .08);
}

@media (max-width: 680px){
  .rc-topbar,
  .rc-search{
    flex-direction: column;
    align-items: stretch;
  }

  .rc-search .btn{
    justify-content: center;
  }
}

@keyframes rcEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .rc-panel,
  table.table tbody tr{
    animation: none !important;
    transition: none !important;
  }
}
