/* ═══════════════════ ACCRUAL CLAIM CALCULATOR ═══════════════════ */

/* Warning box (orange like the bank analyser) */
.accrual-warning-box {
  background: #fff3e0;
  border: 1px solid #ff9800;
  border-left: 4px solid #ff9800;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #5d4037;
}

/* Two-column grid for Party 1 / Party 2 */
.accrual-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Party column styling */
.accrual-party-col {
  padding: 16px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.accrual-party-heading {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1a237e;
}

.accrual-party-hint {
  font-weight: 400;
  font-size: 12px;
  color: #757575;
}

/* Green input fields for user-editable cells */
.accrual-input-green {
  background-color: #e8f5e9 !important;
  border-color: #81c784 !important;
}

.accrual-input-green:focus {
  background-color: #c8e6c9 !important;
  border-color: #4caf50 !important;
  outline: 2px solid #4caf50;
}

/* Field rows inside accrual section */
.accrual-field-row {
  margin-bottom: 10px;
}

.accrual-field-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #424242;
}

/* Accrual table adjustments */
.accrual-table th {
  font-size: 12px;
}

.accrual-table .col-amount {
  width: 140px;
}

/* Expand/collapse button in table rows */
.accrual-expand-btn {
  cursor: pointer;
  font-size: 14px;
  color: #1a237e;
  text-align: center;
  user-select: none;
  width: 30px;
  transition: transform 0.2s;
}

.accrual-expand-btn.expanded {
  transform: rotate(90deg);
}

.accrual-summary-row {
  cursor: default;
}

.accrual-summary-row[data-accrual-expand] {
  cursor: pointer;
}

.accrual-detail-row {
  background: #f5f5f5;
}

.accrual-detail-row td {
  font-size: 13px;
  color: #555;
}

/* CPI display panel */
.accrual-cpi-display {
  margin-top: 16px;
  padding: 12px 16px;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 6px;
}

/* Result box */
.accrual-result-box {
  margin-top: 24px;
  padding: 24px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #1a237e;
  background: #e8eaf6;
}

.accrual-result-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a237e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.accrual-result-amount {
  font-size: 22px;
  font-weight: 700;
}

.accrual-result-amount.positive {
  color: #2e7d32;
}

.accrual-result-amount.negative {
  color: #c62828;
}

/* Export button */
#accrual-export-xlsx {
  background: #1a237e;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

#accrual-export-xlsx:hover:not(:disabled) {
  background: #283593;
}

#accrual-export-xlsx:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
}

/* Print: hide entire accrual section */
@media print {
  #section-accrual {
    display: none !important;
  }
}
