/* Shared form/modal helpers for the team + year-summary pages.
   styles.css already provides the shell (app-shell, crm-header, card, table,
   .modal/.modal-card, .toast, .search, .btn-*). Only the pieces the older
   pages carry inline are repeated here, using the same custom properties as
   styles.css (--muted, --radius, color-mix) so the three screens look alike. */

.btn-muted { background: var(--bg); color: var(--text); border-color: var(--border); }

.input, select, textarea {
  font-family: inherit; padding: 10px 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); border-radius: 10px; font-size: 13.5px;
  width: 100%;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); outline: none;
}

.empty-state { text-align: center; color: var(--muted); padding: 34px 20px; }
.empty-state i { font-size: 26px; display: block; margin-bottom: 8px; opacity: .5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.form-grid .wide { grid-column: 1 / -1; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid-2, .form-grid { grid-template-columns: 1fr; } }

.amount-remaining { color: var(--danger); font-weight: 700; }

.table-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

@media (max-width: 640px) { .table-wrap table { min-width: 640px; } }
