/* ---------- Cards ---------- */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card h6 {
    color: #6c757d;
}

.card h3,
.card h4 {
    color: #212529;
}

/* ---------- Buttons ---------- */
.btn-vexen {
    background-color: #0078D7;
    color: #fff !important;
    border: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-vexen:hover {
    background-color: #0063b1;
    color: #fff !important;
}

/* ---------- Inputs ---------- */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

.input-group .form-control {
    height: 42px;
    border-left: none;
    box-shadow: none;
}

#orgSearchBox {
    width: 100%;
    padding: 5px 8px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#orgDropdownList {
    max-height: 400px;
    overflow-y: auto;
}

/* highlight selected row in search */
.active-highlight {
    background-color: #0078D7;
    color: #fff !important;
}

/* --- Summary Metric Cards --- */
.summary-card {
    flex: 1 1 200px;
    /* responsive width, wraps on smaller screens */
    white-space: nowrap;
    /* prevent number wrapping */
    overflow: hidden;
    /* prevents spillover */
    text-overflow: ellipsis;
    /* adds ... if it ever overflows */
}

.summary-card .amount {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0d6efd;
    /* or whatever your accent color is */
    white-space: nowrap;
    /* make sure R 14 307 784.74 stays on one line */
}


.entity-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.15s ease;
}

.entity-link:hover {
    background-color: rgba(13, 110, 253, 0.18);
    color: #0b5ed7;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable::after {
    content: " ⇅";
    font-size: 0.75rem;
    color: #adb5bd;
}

th.sortable:hover {
    color: #0d6efd;
}

tfoot {
    border-top: 2px solid #dee2e6;
}

tfoot td {
    background-color: #f8f9fa;
}

/* ---- Monetary columns ---- */
.money {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Totals row emphasis */
.table tfoot td {
    font-weight: 600;
    border-top: 2px solid #bbb;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #0d6efd;
}

input:checked+.slider:before {
    transform: translateX(22px);
}