.content-main { text-align: left; }

.entry-grid { display: grid; grid-template-columns: 1fr 1fr 1.8rem; gap: 0.5rem; align-items: center; }

.entries-header {
    margin-bottom: 0.5rem;
}
.entries-header span {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    display: block;
    padding-bottom: 0.4rem;
}

.entry-row { margin-bottom: 0.5rem; }

.num-cell {
    position: relative;
}
.num-cell input {
    width: 100%;
    padding: 0.55rem 2.2rem 0.55rem 0.7rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.num-cell input::-webkit-outer-spin-button,
.num-cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-cell input:focus { border-color: #999; }
.num-cell input.error { border-color: #ffb39a; }
.num-cell .unit {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: #bbb;
    pointer-events: none;
}

.del-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0.3rem;
    border-radius: 4px;
    transition: color 0.12s, background 0.12s;
    text-align: center;
    width: 100%;
}
.del-btn:hover { color: #888; background: #f0f0ee; }
.del-btn:disabled { opacity: 0.3; cursor: default; }

.add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px dashed #e0e0e0;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-family: inherit;
    color: #bbb;
    cursor: pointer;
    width: 100%;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.15s, color 0.15s;
}
.add-btn:hover { border-color: #bbb; color: #555; }

.result-card {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 0.5rem;
}
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f3;
    font-size: 0.875rem;
}
.result-row:last-of-type { border-bottom: none; }
.result-label { color: #aaa; }
.result-val { color: #1a1a1a; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-val.total { font-size: 1.3rem; }

.rate-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0ee;
}
.rate-row label { font-size: 0.8rem; color: #aaa; white-space: nowrap; flex-shrink: 0; }
.rate-input {
    width: 8rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}
.rate-input::-webkit-outer-spin-button,
.rate-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rate-input:focus { border-color: #999; }
.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0 0;
    font-size: 0.875rem;
}
.pay-label { color: #aaa; }
.pay-val { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; font-variant-numeric: tabular-nums; }
