/* BairdDocs site styles (on top of Bootstrap 5). */
:root {
    --bd-navy: #1f3a5f;
    --bd-navy-dark: #162b47;
    --bd-gold: #c9a227;
}

body {
    background: #f3f5f8;
    color: #22303f;
}

.bd-nav {
    background: var(--bd-navy);
    border-bottom: 3px solid var(--bd-gold);
}

.bd-nav .nav-link.active {
    color: #fff;
    border-bottom: 2px solid var(--bd-gold);
}

.btn-primary,
.btn-primary:disabled {
    background-color: var(--bd-navy);
    border-color: var(--bd-navy);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--bd-navy-dark) !important;
    border-color: var(--bd-navy-dark) !important;
}

/* Results table */
.bd-results td, .bd-results th { padding: .55rem 1rem; }
.bd-results .bd-section th {
    background: #eef2f7;
    color: var(--bd-navy);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bd-results .bd-amt {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    width: 9rem;
}
.bd-results .bd-key .bd-amt { font-weight: 700; font-size: 1.1rem; }
.bd-hint { color: #6c7a89; font-size: .8rem; }

/* Results dim when the inputs change until Calculate is pressed again (site.js) */
[data-results].is-stale .bd-results { opacity: .45; }
[data-results].is-stale .stale-note { display: block !important; }

.bd-tile { color: inherit; transition: transform .1s, box-shadow .1s; }
.bd-tile:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(31, 58, 95, .15) !important; }
.bd-tile .h5 { color: var(--bd-navy); }

@media print {
    body { background: #fff; }
    .col-lg-4 { display: none; }
    .col-lg-8 { width: 100%; }
    .card { box-shadow: none !important; border: 1px solid #ccc; }
}

/* View my log */
.bd-log {
    max-height: 28rem;
    overflow: auto;
    padding: 1rem;
    font-size: .8rem;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fbfcfd;
}

/* Manual loan entry (/manual-entry) */
.me-h { color: var(--bd-navy); }
.me-badge { background: #fdf3d7; color: #6b4e00; font-weight: 600; }
.me-table th { font-size: .78rem; color: #4a5468; font-weight: 600; white-space: nowrap; }
.me-table td { min-width: 6.5rem; }
.me-table .me-fee-name { min-width: 14rem; font-size: .9rem; }
.me-table .me-sec th { background: #eef2f7; color: var(--bd-navy); font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; }
.me-table .me-colheads th { font-size: .72rem; color: #4a5468; font-weight: 600; white-space: normal; padding-top: .35rem; }
@media (min-width: 992px) {
    .me-side { position: sticky; top: 1rem; }
}

/* Manual loan entry: messages that jump to their entry (Dennis 11/8) */
.me-jump { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; cursor: pointer; }
.me-jump:hover, .me-jump:focus { text-decoration-style: solid; }
.form-control.me-flag-error, .form-select.me-flag-error { border-color: #dc3545; box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .2); }
.form-control.me-flag-warn, .form-select.me-flag-warn { border-color: #d39e00; box-shadow: 0 0 0 .2rem rgba(255, 193, 7, .25); }
.me-pulse { animation: me-pulse 1.6s ease-out; }
@keyframes me-pulse { 0%, 40% { box-shadow: 0 0 0 .35rem rgba(13, 110, 253, .45); } 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); } }
.me-back { position: fixed; right: 1rem; bottom: 1rem; z-index: 1050; }
.me-help dt { margin-top: .75rem; color: var(--bd-navy); }
.me-help ul { margin-bottom: .5rem; }
.bd-beta { background: var(--bd-gold); color: #1f2a37; font-weight: 700; letter-spacing: .02em; }
/* Request an account: hidden trap field for robots */
.me-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
