﻿/* ── Toolbar principal ───────────────────────────────────────────────────── */
.pv-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* ── Contador de registros ───────────────────────────────────────────────── */
.tb-counter {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6c757d;
    min-width: 50px;
    text-align: center;
    white-space: nowrap;
}

/* ── Separador vertical ──────────────────────────────────────────────────── */
.tb-sep {
    width: 1px;
    height: 28px;
    background: #dee2e6;
    margin: 0 0.25rem;
    flex-shrink: 0;
}

/* ── Grupo de botones ────────────────────────────────────────────────────── */
.tb-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #b6cff5;
    border-radius: 6px;
    background: #f0f5ff;
    color: #1a56db;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
    flex-shrink: 0;
}

    .tb-btn:hover {
        background: #dbeafe;
        border-color: #1a56db;
    }

    .tb-btn:active {
        background: #bfdbfe;
        transform: scale(0.96);
    }

    .tb-btn.primary {
        background: #1a56db;
        border-color: #1648c0;
        color: #ffffff;
    }

        .tb-btn.primary:hover {
            background: #1648c0;
            border-color: #1340aa;
        }

    .tb-btn.success {
        background: transparent;
        border-color: #0e9f6e;
        color: #0e9f6e;
    }

        .tb-btn.success:hover {
            background: #d1fae5;
            border-color: #057a55;
        }

    .tb-btn.danger {
        background: #ffffff;
        border-color: #f05252;
        color: #f05252;
    }

        .tb-btn.danger:hover {
            background: #fde8e8;
            border-color: #e02424;
            color: #e02424;
        }

    .tb-btn.cancel {
        background: #f9fafb;
        border-color: #d1d5db;
        color: #6b7280;
    }

        .tb-btn.cancel:hover {
            background: #f3f4f6;
            border-color: #9ca3af;
        }

/* ── Selector arriba a la derecha ────────────────────────────────────────── */
.tb-selector-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

    .tb-selector-top .input {
        height: 34px;
        padding: 0 0.5rem;
        font-size: 0.82rem;
        border-radius: 6px;
        width: 180px;
        min-width: 180px;
        border: 1px solid #dee2e6;
        box-sizing: border-box;
    }

    .tb-selector-top .label-inline {
        font-size: 1rem;
        font-weight: 700;
        white-space: nowrap;
    }

/* ── Layout fijo para páginas con toolbar abajo ──────────────────────────── */
.page-with-toolbar {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
}

    .page-with-toolbar .tab-content-area {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    .page-with-toolbar .pv-toolbar {
        flex-shrink: 0;
        margin-top: 0.5rem;
        margin-bottom: 0;
        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 10;
    }

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirm-dialog {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 280px;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.page-title {
    font-family: 'Segoe UI', Arial, sans-serif !important;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #1e3a5f;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
}
