body {
    font-family: "Segoe UI", Arial, sans-serif;
}

.sheet-table th, .sheet-table td {
    border: 1px solid #e5e7eb;
    padding: 6px;
    vertical-align: top;
}

.amount-susu-header,
.week-payment-cell {
    padding: 6px !important;
    vertical-align: top !important;
}

.sheet-table th {
    background: #f8fafc;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    font-size: 0.9rem;
}

.sheet-table input, .sheet-table select {
    width: 100%;
    border: none;
    background: transparent;
}

.sheet-table input:focus {
    outline: none;
}

/* Override for payment inputs in week columns */
.week-payment-form .form-control-sm {
    border: 1px solid #ced4da !important;
    background: #fff !important;
}

.week-payment-form .form-control-sm:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

.borrower-row {
    background: #fff;
}

.summary-badge {
    font-size: 0.8rem;
}

.amount-susu-header {
    min-width: 120px;
}

.header-labels-wrapper {
    display: flex;
    flex-direction: column;
}

.header-label-row {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.amount-susu-header .header-label {
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block;
}

.header-actions {
    margin-top: 8px;
}

.week-payment-cell {
    min-width: 120px;
}

.week-payment-form {
    min-width: 120px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.payment-field-row {
    height: 32px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-payment-form .form-control-sm {
    font-size: 0.875rem;
    padding: 4px 6px;
    height: 28px;
    width: 100%;
    border-radius: 0.25rem;
    margin: 0;
    box-sizing: border-box;
}

.payment-submit-btn {
    margin-top: 8px;
    height: auto;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.overdue-disabled {
    background: #f1f5f9 !important;
    opacity: 0.8;
}
.overdue-disabled .payment-input,
.overdue-disabled input {
    pointer-events: none;
}
