body {
    background: #f5f7fa;
    min-height: 100vh;
}
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
}
.form-label {
    font-weight: 500;
}
.results-section {
    display: none;
}
.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
}
.summary-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table-amortization {
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0;
}
.table-amortization th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.table-amortization > tbody {
    border-top: none !important;
}
.table-amortization thead tr:last-child th {
    border-bottom-width: 2px;
}
.amortization-wrapper {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.input-group-text {
    min-width: 42px;
    justify-content: center;
}
.arm-notice {
    font-size: 0.82rem;
    color: #6c757d;
}
.tab-switcher {
    display: flex;
    gap: 6px;
    background: #e9ecef;
    border-radius: 14px;
    padding: 5px;
    max-width: 420px;
    margin: 0 auto;
}
.tab-switcher-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.tab-switcher-btn:hover:not(.active) {
    color: #495057;
    background: rgba(255, 255, 255, 0.5);
}
.tab-switcher-btn.active {
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tab-switcher-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.tab-switcher-btn.active svg {
    opacity: 1;
}
.savings-positive { color: #198754; }
.savings-negative { color: #dc3545; }
.summary-label[data-bs-toggle="tooltip"] {
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}
.summary-label[data-bs-toggle="tooltip"]:hover {
    color: #495057;
}
.summary-label[data-bs-toggle="tooltip"]::after {
    content: "?";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    color: #8a9199;
    background: #e9ecef;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.summary-label[data-bs-toggle="tooltip"]:hover::after {
    background: #0d6efd;
    color: #fff;
}
.tooltip {
    --bs-tooltip-opacity: 1;
}
.tooltip-inner {
    max-width: 340px;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #e8eaed;
    background: #1e2a3a;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.01em;
}
.tooltip .tooltip-arrow::before {
    border-top-color: #1e2a3a;
}
.tooltip[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #1e2a3a;
}
.tooltip[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #1e2a3a;
}
.tooltip[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #1e2a3a;
}
.tooltip-inner b,
.tooltip-inner strong {
    color: #fff;
    font-weight: 600;
}
.field-error {
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 0.25rem;
    display: none;
}
.table-comparison th[rowspan] {
    border-right: 2px solid #dee2e6;
}
.table-comparison thead tr:first-child th {
    z-index: 3;
}
.table-comparison thead tr:nth-child(2) th {
    top: 39px;
    z-index: 2;
}
.comparison-header-current {
    background: #fff3cd;
    border-bottom: 2px solid #ffc107 !important;
}
.comparison-header-new {
    background: #d1e7dd;
    border-bottom: 2px solid #198754 !important;
}
.table-comparison thead tr:first-child th:last-child {
    border-left: 2px solid #dee2e6;
}
::placeholder {
    color: #c8cdd2 !important;
    opacity: 1;
}
