/* ============================================================
   app.css — site-wide custom styles (loaded after Bootstrap)
   Keep this small; rely on Bootstrap utilities where possible.
   ============================================================ */

html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1 0 auto;
}

/* Subtle elevation for cards */
.card {
    border-radius: 0.75rem;
}

.navbar-brand {
    letter-spacing: 0.3px;
}

/* Code-style usernames look nicer with a touch of contrast */
code {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    padding: 0.05rem 0.35rem;
    border-radius: 0.25rem;
}

/* ---- Trx page: MS-Access-style master combobox ----------------------
   The list is absolutely positioned right below the input so it floats
   over whatever sits beneath it without shifting the form. */
.trx-combo-list {
    z-index: 1050;            /* above Bootstrap form controls */
    max-height: 280px;
    overflow-y: auto;
    margin-top: 2px;
    background: #fff;
}
.trx-combo-list .list-group-item {
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
}
.trx-combo-list .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.trx-combo-list .list-group-item.active .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ---- Trx page: table + drag-handle visuals ------------------------- */
.trx-table td.drag-handle {
    cursor: grab;
    user-select: none;
}
.trx-table td.drag-handle:active {
    cursor: grabbing;
}
.trx-table td.drag-handle .drag-grip {
    display: inline-block;
    color: #adb5bd;
    font-weight: 700;
    letter-spacing: -2px;
    transform: rotate(0deg);
}
.trx-table tr:hover td.drag-handle .drag-grip {
    color: #6c757d;
}
/* SortableJS visual states while a row is being dragged. */
.trx-row-ghost  { opacity: .25; background: #cfe2ff; }
.trx-row-chosen { background: #f8f9fa; }
.trx-row-drag   { box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* ---- Trx edit modal: read-only balance summary panel ---------------
   Keeps the two informational figures visually distinct from the
   editable inputs above, so it's immediately obvious which fields
   you can/can't touch. */
.trx-balance-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}
.trx-balance-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}
.trx-balance-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529;
    font-variant-numeric: tabular-nums;
}
