/* Fondo general */
body {
    margin: 0;
    background: #0f0f0f;
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
}

/* Contenedor principal */
.page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

/* Título */
.title {
    font-size: 26px;
    margin-bottom: 16px;
}

/* Panel */
.panel {
    background: #181818;
    border-radius: 8px;
    padding: 16px 24px 24px;
    border: 1px solid #323232;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Header */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Buscador */
.search-input {
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 10px;
    color: #fff;
    font-size: 13px;
    min-width: 230px;
}

.search-input::placeholder {
    color: #777;
}

/* Botón Recargar */
.refresh-btn {
    background: #1f6feb;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.refresh-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.refresh-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

/* Tabla */
.tx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.tx-table th,
.tx-table td {
    padding: 10px 8px;
    text-align: left;
}

.tx-table th {
    border-bottom: 1px solid #333;
}

.tx-table tbody tr {
    border-bottom: 1px solid #222;
}

.tx-table tbody tr:hover {
    background: #222;
}

/* Acreditado */
.accredited {
    background: #0f5132 !important;
    text-decoration: line-through;
}

/* Menú */
.menu-wrapper {
    position: relative;
}

.menu-button {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
}

.menu-button:hover {
    color: #fff;
}

.menu {
    position: absolute;
    right: 0;
    top: 22px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    min-width: 120px;
    display: none;
    z-index: 50;
}

.menu-item {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
}

.menu-item:hover {
    background: #333;
}

/* Paginación */
.pagination {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.pagination-btn {
    background: #111;
    border: 1px solid #333;
    color: #eee;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background: #222;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.pagination-info {
    margin-right: auto;
    color: #bbb;
}

.pagination-page {
    color: #ddd;
}


.logout-top {
    position: fixed;      /* 👈 Esto lo fija al borde de la pantalla */
    top: 18px;
    right: 24px;
    background: red;
    padding: 7px 16px;
    border-radius: 6px;
    color: white !important;     /* evita azul clásico de links */
    text-decoration: none !important;  /* sin subrayado */
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif; /* 👈 fuente más moderna */
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: 0.2s ease-in-out;
    z-index: 9999;        /* siempre arriba */
}

.logout-top:hover {
    background: red;
    transform: translateY(-1px);
}

/* =========================
   Selector de cuenta MP
   ========================= */
.wallet-bar {
    margin: 6px 0 16px 0;
}

.wallet-select {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.wallet-select:hover {
    border-color: #555;
}

.wallet-select:focus {
    border-color: #777;
}

/* Saldo de Bitso al lado del selector */
.wallet-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bitso-balance {
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
}

.bitso-balance strong {
    font-size: 16px;
}