/* TSF Claims frontend styles
 *
 * Intentionally leaves page backgrounds, tables, policy boxes, notices, and
 * form fields to the active theme. We only normalize actions/links and the
 * small amount of layout needed by the claim form.
 */

.tsf-claims {
  max-width: 1100px;
}

/* Keep ordinary links readable without changing surrounding theme colors. */
.tsf-claims a:not(.tsf-button) {
  color: #2271b1 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tsf-claims a:not(.tsf-button):hover,
.tsf-claims a:not(.tsf-button):focus {
  color: #135e96 !important;
}

/* Primary and secondary actions use explicit colors so browser/theme color
 * preferences cannot produce white text on a white button. */
.tsf-button,
.tsf-claims button.tsf-button,
.tsf-claims a.tsf-button {
  appearance: none;
  display: inline-block;
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #2271b1 !important;
  border-radius: 4px;
  background: #2271b1 !important;
  color: #ffffff !important;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.tsf-button:hover,
.tsf-button:focus,
.tsf-claims button.tsf-button:hover,
.tsf-claims button.tsf-button:focus,
.tsf-claims a.tsf-button:hover,
.tsf-claims a.tsf-button:focus {
  border-color: #135e96 !important;
  background: #135e96 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.tsf-button-secondary,
.tsf-claims button.tsf-button-secondary,
.tsf-claims a.tsf-button-secondary {
  border-color: #2271b1 !important;
  background: #2271b1 !important;
  color: #ffffff !important;
}

.tsf-button-small,
.tsf-claims button.tsf-button-small {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 13px;
}

.tsf-back-link {
  font-weight: 600;
}

.tsf-table-wrap {
  overflow-x: auto;
}

.tsf-claim-box {
  padding: 18px;
}

.tsf-fields label {
  font-weight: 600;
}

.tsf-fields input[type="number"] {
  width: 100px;
}

.tsf-fields textarea,
.tsf-fields select {
  width: 100%;
  max-width: 650px;
}

.tsf-fields span,
.tsf-required-note span {
  color: #d63638;
}

.tsf-full-credit-note {
  padding: 12px 14px;
  margin: 10px 0;
  border-left: 4px solid #dba617;
}

.tsf-photo-section {
  margin: 1em 0;
}

.tsf-photo-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  flex-wrap: wrap;
}

.tsf-field-help {
  margin: 4px 0 8px;
  font-size: 0.92em;
}

.tsf-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tsf-photos img {
  max-width: 150px;
  height: auto;
}

.tsf-claim-details td {
  padding: 0 !important;
}

/* Space action buttons away from the table above them. */
.tsf-bottom-action {
  margin-top: 24px;
}

/* Client-side validation: keep the page in place and make missing fields clear. */
.tsf-client-error {
  margin-bottom: 20px;
}

.tsf-client-error ul {
  margin: 8px 0 0 20px;
}

.tsf-field-error {
  outline: 2px solid #d63638 !important;
  outline-offset: 2px;
}
