.mileage-section {
    margin: 26px 0 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.mileage-heading,
.mileage-entry-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mileage-heading {
    margin-bottom: 20px;
}

.mileage-heading h2 {
    margin: 0;
    font-size: 24px;
}

.rate-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8f7f1;
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
}

.mileage-section label {
    margin-top: 15px;
}

.mileage-section input {
    height: 52px;
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.mileage-section input[type="number"] {
    font-size: 20px;
    font-weight: 800;
}

.mileage-calculation {
    margin-top: 15px;
    padding: 13px;
    border-radius: 11px;
    background: #f2f6f4;
    color: var(--muted);
}

.mileage-calculation strong {
    color: var(--text);
}

.mileage-message {
    margin: 13px 0 0;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
}

.mileage-message.success {
    background: #e8f7f1;
    color: #08745f;
}

.mileage-message.error-state {
    background: #fff0ef;
    color: #a33b32;
}

.mileage-history-block {
    margin-top: 28px;
}

.mileage-history-block h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.mileage-history {
    display: grid;
    gap: 10px;
}

.mileage-entry {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.mileage-entry p {
    margin: 10px 0 7px;
    line-height: 1.4;
}

.mileage-entry-total,
.mileage-empty {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.mileage-status {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff4d8;
    color: #805e00;
    font-size: 12px;
    font-weight: 800;
}

.mileage-status.approved,
.mileage-status.paid {
    background: #e8f7f1;
    color: #08745f;
}

.mileage-status.rejected {
    background: #fff0ef;
    color: #a33b32;
}
