/* ============================================================
   COMPLEMENTOS FALTANTES — tickets.css
   ============================================================ */

/* ── Page Header Content (Contenedor interior) ────────────── */
.page-header__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* ── Page Header Actions (Botones de acción en header) ────── */
.page-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── Empty State (Estado vacío) ──────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 32px;
    text-align: center;
}

.empty-state__icon {
    font-size: 3.5rem;
    color: rgba(44, 95, 161, 0.2);
    margin-bottom: 8px;
}

.empty-state__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.empty-state__description {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
    max-width: 400px;
}

/* ── Empty Cell (Celda vacía de tabla) ───────────────────── */
.empty-cell {
    padding: 0 !important;
    text-align: center;
}

.empty-cell {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Responsividad para mobile ───────────────────────────── */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .main-content {
        padding: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header__title {
        font-size: 1.25rem;
    }

    .page-header__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .data-table thead th {
        font-size: 0.65rem;
        padding: 8px 10px;
    }

    .data-table tbody td {
        padding: 10px 8px;
    }

    .icon-button-secondary {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .empty-state {
        padding: 32px 16px;
    }

    .empty-state__icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px;
    }

    .page-header__title {
        font-size: 1rem;
    }

    .page-header__subtitle {
        font-size: 0.75rem;
    }

    .section-header {
        gap: 8px;
        margin-bottom: 12px;
    }

    .data-table {
        font-size: 0.7rem;
    }

    .data-table thead th {
        font-size: 0.6rem;
        padding: 6px 8px;
    }

    .data-table tbody td {
        padding: 8px 6px;
    }

    .priority-badge,
    .status-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .page-header__actions {
        gap: 6px;
    }

    .btn {
        font-size: 0.7rem;
        padding: 5px 10px;
        gap: 5px;
    }

    .btn span {
        display: none;
    }

    .icon-button-secondary {
        width: 26px;
        height: 26px;
    }

    .empty-state {
        padding: 24px 12px;
    }

    .empty-state__icon {
        font-size: 2rem;
        margin-bottom: 6px;
    }

    .empty-state__title {
        font-size: 0.9rem;
    }

    .empty-state__description {
        font-size: 0.75rem;
    }
}

/* ── Variantes adicionales de interacción ────────────────── */
.data-table tbody tr {
    transition: background 0.1s ease;
}

.data-table tbody tr:hover {
    background: rgba(44, 95, 161, 0.05);
    box-shadow: inset 0 0 0 1px rgba(44, 95, 161, 0.1);
}

/* ── Tooltip mejorado ─────────────────────────────────────── */
.icon-button-secondary[data-tooltip]::after {
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.icon-button-secondary[data-tooltip]:hover::after {
    opacity: 1;
}

.icon-button-secondary[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.icon-button-secondary[data-tooltip]:hover::before {
    opacity: 1;
}