/* ===== Form Page Specific ===== */

/* Date Header */
.date-section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.date-section .date-display {
  font-size: 1.25rem;
  font-weight: 700;
}

.date-section .date-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.date-input-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.date-input-row input[type="date"] {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--surface);
}

.date-input-row input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
}

/* Section Icons */
.icon-income::before { content: '↓'; color: var(--success); }
.icon-expense::before { content: '↑'; color: var(--danger); }
.icon-cashless::before { content: '⬡'; color: #7c4dff; }
.icon-denom::before { content: '¥'; color: var(--warning); }
.icon-refund::before { content: '△'; color: var(--danger); }

/* Refund sub-header */
.refund-header {
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.8125rem;
  border-top: 2px solid var(--border);
}

/* Cashless section styling */
.cashless-section .section-header {
  background: #f3e8ff;
  color: #5b21b6;
}

/* Balance highlight */
.balance-row {
  background: #e8f0fe;
  padding: 12px 16px;
}

.balance-row label {
  font-weight: 700;
  color: var(--primary-dark);
}

.balance-row .calculated {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Previous day balance */
.prev-balance-row {
  background: #fef9e7;
}

.prev-balance-row input {
  font-weight: 600;
}

/* Discrepancy alert */
.discrepancy-section {
  margin: 0 16px 8px;
}

.discrepancy-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.discrepancy-ok {
  color: var(--success);
}

.discrepancy-ng {
  color: var(--danger);
}

/* Staff section */
.staff-section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.staff-section .form-row input[type="text"] {
  width: 160px;
}

/* Memo */
.memo-section textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  resize: vertical;
  min-height: 60px;
  margin: 8px 16px;
  width: calc(100% - 32px);
}

.memo-section textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Status indicator */
.save-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 4px;
}

.save-status.saving {
  color: var(--warning);
}

.save-status.saved {
  color: var(--success);
}

/* Denomination subtotals */
.denom-subtotal {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  align-items: center;
  padding: 10px 16px;
  background: #f8f9fa;
  border-top: 2px solid var(--border);
  font-weight: 700;
}

.denom-subtotal .denom-amount {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

/* Summary card */
.summary-card {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
}

.summary-card h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 4px;
}

.summary-card .amount {
  font-size: 1.75rem;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.summary-item {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 12px;
}

.summary-item .label {
  font-size: 0.75rem;
  opacity: 0.85;
}

.summary-item .value {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Back button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 8px 0;
}

/* Number formatting helper */
.yen::before {
  content: '¥';
  font-size: 0.875em;
  opacity: 0.7;
}
