/* CONTENEDOR SCROLL TABLAS */
.tabla-scroll {
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 2px;
}

/* HEADER FIJO */
.tabla-scroll thead th {
    position: sticky;
    top: 0;
    background: #e2e8f0;
    z-index: 2;
}

/* =========================
   TABLA GLOBAL CRM
========================= */

.tabla-global {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

/* HEADER + CELDAS (UNIFICADO Y LIMPIO) */
.tabla-global th,
.tabla-global td {
    padding: 10px 16px; /* 🔥 aire uniforme real */
    text-align: left;
}

/* HEADER */
.tabla-global thead th {
    background: #f1f5f9;
    font-weight: 600;
}

/* DIVISORES (SUAVES) */
.tabla-global tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
}

/* HOVER */
.tabla-global tbody tr:hover {
    background: #f8fafc;
    transition: background 0.15s ease;
}

/* =========================
   ALINEACIÓN POR COLUMNA
========================= */

/* PRECIO */
.tabla-global th:nth-child(4),
.tabla-global td:nth-child(4) {
    text-align: right;
}

/* STOCK + MINIMO */
.tabla-global th:nth-child(5),
.tabla-global th:nth-child(6),
.tabla-global td:nth-child(5),
.tabla-global td:nth-child(6) {
    text-align: center;
}

/* ACCIONES */
.tabla-global th:nth-child(8),
.tabla-global td:nth-child(8) {
    text-align: center;
}

/* =========================
   DISTRIBUCIÓN COLUMNAS (BALANCE REAL)
========================= */

/* ID */
.tabla-global th:nth-child(1),
.tabla-global td:nth-child(1) {
    width: 60px;
}

/* NOMBRE */
.tabla-global th:nth-child(2),
.tabla-global td:nth-child(2) {
    width: 25%;
}

/* CODIGO */
.tabla-global th:nth-child(3),
.tabla-global td:nth-child(3) {
    width: 100px;
}

/* PRECIO */
.tabla-global th:nth-child(4),
.tabla-global td:nth-child(4) {
    width: 110px;
}

/* STOCK */
.tabla-global th:nth-child(5),
.tabla-global td:nth-child(5) {
    width: 80px;
}

/* MINIMO */
.tabla-global th:nth-child(6),
.tabla-global td:nth-child(6) {
    width: 80px;
}

/* ESTADO */
.tabla-global th:nth-child(7),
.tabla-global td:nth-child(7) {
    width: 100px;
}

/* ACCIONES */
.tabla-global th:nth-child(8),
.tabla-global td:nth-child(8) {
    width: 50px;
}

/* =========================
   CONTROL FINO DE ESPACIADO
========================= */

/* PRECIO */
.tabla-global td:nth-child(4),
.tabla-global th:nth-child(4) {
    padding-right: 60px;
}

/* STOCK */
.tabla-global td:nth-child(5),
.tabla-global th:nth-child(5) {
    padding-left: 10px;
    padding-right: 10px;
}

/* MINIMO */
.tabla-global td:nth-child(6),
.tabla-global th:nth-child(6) {
    padding-left: 10px;
    padding-right: 10px;
}

/* ESTADO (🔥 ESTE ES EL QUE QUIERES MOVER) */
.tabla-global td:nth-child(7),
.tabla-global th:nth-child(7) {
    padding-left: 50px;   /* ← AUMENTA ESTO = se mueve hacia acciones */
    padding-right: 1px;
}

/* ACCIONES */
.tabla-global td:nth-child(8),
.tabla-global th:nth-child(8) {
    padding-left: 10px;
}

/* =========================
   TABLA CLIENTES (LAYOUT PROPIO)
========================= */

.tabla-clientes th:nth-child(1),
.tabla-clientes td:nth-child(1) {
    width: 35%;
}

.tabla-clientes th:nth-child(2),
.tabla-clientes td:nth-child(2) {
    width: 20%;
}

.tabla-clientes th:nth-child(3),
.tabla-clientes td:nth-child(3) {
    width: 30%;
}

.tabla-clientes th:nth-child(4),
.tabla-clientes td:nth-child(4) {
    width: 15%;
    text-align: center;
}

/* RESET de paddings raros heredados */
.tabla-clientes th,
.tabla-clientes td {
    padding: 10px 16px;
}

/* =========================
   TABLAS PEQUEÑAS (MODALES)
========================= */

.tabla-mini th,
.tabla-mini td {
    padding: 8px 12px;
    font-size: 13px;
}

/* =========================
   TABLA SERVICIOS
========================= */

.tabla-servicios th:nth-child(1),
.tabla-servicios td:nth-child(1) {
    width: 50%;
}

.tabla-servicios th:nth-child(2),
.tabla-servicios td:nth-child(2) {
    width: 120px;
    text-align: right;
}

.tabla-servicios th:nth-child(3),
.tabla-servicios td:nth-child(3) {
    width: 120px;
    text-align: center;
}

.tabla-servicios th:nth-child(4),
.tabla-servicios td:nth-child(4) {
    width: 120px;
    text-align: center;
}

/* =========================
   TABLA ORDENES
========================= */

.tabla-ordenes th:nth-child(1),
.tabla-ordenes td:nth-child(1) {
    width: 70px;
}

/* CLIENTE */
.tabla-ordenes th:nth-child(2),
.tabla-ordenes td:nth-child(2) {
    width: 25%;
}

/* BICICLETA */
.tabla-ordenes th:nth-child(3),
.tabla-ordenes td:nth-child(3) {
    width: 25%;
}

/* ESTADO */
.tabla-ordenes th:nth-child(4),
.tabla-ordenes td:nth-child(4) {
    width: 120px;
    text-align: center;
}

/* FECHA */
.tabla-ordenes th:nth-child(5),
.tabla-ordenes td:nth-child(5) {
    width: 180px;
}

/* =========================
   TABLA DASHBOARD (LIMPIA)
========================= */

.tabla-dashboard {
    table-layout: fixed;
}

/* DISTRIBUCIÓN REAL */
.tabla-dashboard th:nth-child(1),
.tabla-dashboard td:nth-child(1) {
    width: 70px;
}

.tabla-dashboard th:nth-child(2),
.tabla-dashboard td:nth-child(2) {
    width: 18%;
}

.tabla-dashboard th:nth-child(3),
.tabla-dashboard td:nth-child(3) {
    width: 18%;
}

.tabla-dashboard th:nth-child(4),
.tabla-dashboard td:nth-child(4) {
    width: 22%;
     text-align: center;
}

.tabla-dashboard th:nth-child(5),
.tabla-dashboard td:nth-child(5) {
    width: 110px;
    text-align: center;
}

.tabla-dashboard th:nth-child(6),
.tabla-dashboard td:nth-child(6) {
    width: 140px;
}

.tabla-dashboard th:nth-child(7),
.tabla-dashboard td:nth-child(7) {
    width: 110px;
    text-align: center;
}

/* ESPACIADO BALANCEADO */
.tabla-dashboard th,
.tabla-dashboard td {
    padding: 10px 18px;
}

