/* RECATOOLS — Loan Amortization Schedule Generator */

.la-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .la-inputs { grid-template-columns: minmax(0, 1fr); }
}

.la-inputs .input-row label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #6b6760;
    margin-bottom: .25rem;
}

.la-inputs .input-prefix-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.la-inputs .ipx-label {
    padding: .5rem .65rem;
    background: #f0ede9;
    font-size: .8rem;
    font-weight: 600;
    color: #6b6760;
    border-right: 1px solid #ebebeb;
    min-width: 0;
    white-space: nowrap;
}

.la-inputs .ipx-label.ipx-suffix {
    border-left: 1px solid #ebebeb;
    border-right: none;
}

.la-inputs input[type="number"],
.la-inputs select {
    flex: 1;
    min-width: 0;
    border: none;
    padding: .5rem .65rem;
    font-size: .9rem;
    font-family: inherit;
    background: transparent;
    color: #1a1814;
    box-sizing: border-box;
    width: 100%;
}

.la-inputs input:focus,
.la-inputs select:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #E8472F;
}

.la-term {
    display: flex;
    gap: .5rem;
}
.la-term .la-term-value { flex: 1; min-width: 0; }
.la-term .la-term-unit { width: 6.5rem; flex-shrink: 0; }

.calc-btn {
    width: 100%;
    margin: 1rem 0;
    padding: .75rem 1.25rem;
    background: #E8472F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.calc-btn:hover { background: #c8391f; }

#error-box {
    display: none;
    margin: .5rem 0 1rem;
    padding: .5rem .75rem;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    border-radius: 0 6px 6px 0;
    font-size: .85rem;
    color: #7f1d1d;
}

.la-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}
@media (max-width: 880px) {
    .la-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
    .la-summary { grid-template-columns: minmax(0, 1fr); }
}

.la-summary .la-stat {
    padding: 1rem;
    background: #fafaf9;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    min-width: 0;
}

.la-summary .la-stat-label {
    font-size: .72rem;
    font-weight: 700;
    color: #6b6760;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .35rem;
}

.la-summary .la-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: 'IBM Plex Serif', 'DM Serif Display', serif;
    color: #1a1814;
    word-break: break-word;
}

.la-summary .la-stat-sub {
    font-size: .75rem;
    color: #475569;
    margin-top: .25rem;
}

.la-summary .la-stat--highlight {
    background: #fef9c3;
    border-color: #fde047;
}

.la-summary .la-stat--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.la-extra-saved {
    margin: 1rem 0;
    padding: .75rem 1rem;
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    border-radius: 0 6px 6px 0;
    font-size: .875rem;
    line-height: 1.6;
    color: #166534;
}
.la-extra-saved:empty { display: none; }

.la-table-section {
    margin-top: 1.5rem;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
}

.la-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #fafaf9;
    border-bottom: 1px solid #ebebeb;
}

.la-table-header h3 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #1a1814;
}

#table-row-count {
    font-size: .78rem;
    color: #6b6760;
    font-weight: 500;
}

.la-table-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.la-table-actions button {
    padding: .35rem .75rem;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #1a1814;
    cursor: pointer;
    font-family: inherit;
}

.la-table-actions button:hover {
    background: #f5f5f5;
    border-color: #d1d5db;
}

.la-table-scroll {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.la-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    min-width: 600px;
}

.la-table thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 0 1px 0 #ebebeb;
}

.la-table th {
    padding: .55rem .75rem;
    font-weight: 700;
    color: #6b6760;
    text-align: right;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #ebebeb;
    background: #fafaf9;
    white-space: nowrap;
}

.la-table th:first-child { text-align: left; }

.la-table td {
    padding: .45rem .75rem;
    border-bottom: 1px solid #f5f5f5;
    color: #1a1814;
    white-space: nowrap;
}

.la-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.la-table td:first-child {
    text-align: left;
    color: #6b6760;
    font-size: .78rem;
}

.la-table tr.year-divider td {
    border-top: 2px solid #e5e7eb;
}

.la-table tr:nth-child(even) td {
    background: #fbfaf8;
}

@media print {
    .la-table-scroll { max-height: none; overflow: visible; }
    .la-table-actions, .ad-section, .tool-disclaimer, .calc-btn { display: none; }
}

/* cache-buster: 2026-05-28T00:00:00Z */
