/* TXP reference-backed starter. Apply .txp-app to an app container or body.
   Map these tokens and optional classes into the project's existing system. */
.txp-app {
  --txp-red: #cc242b;
  --txp-charcoal: #3e434c;
  --txp-page: #f5f6f7;
  --txp-surface: #fff;
  --txp-text: #33373c;
  --txp-muted: #687078;
  --txp-link: #3f596f;
  --txp-border: #d9dcdf;
  --txp-control-border: #6b737c;
  --txp-table-heading: #f1f2f4;
  --txp-row-border: #e1e3e5;
  --txp-focus: #5c7590;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--txp-text);
  background: var(--txp-page);
  margin: 0;
}
.txp-app *, .txp-app *::before, .txp-app *::after { box-sizing: border-box; }
.txp-app a { color: var(--txp-link); text-underline-offset: 2px; }
.txp-app :focus-visible { outline: 2px solid var(--txp-focus); outline-offset: 2px; }
.txp-app .txp-masthead {
  min-height: 57px; padding: 10px 18px; display: flex; align-items: center;
  gap: 22px; background: var(--txp-charcoal); color: #fff;
  border-bottom: 3px solid var(--txp-red);
}
.txp-app .txp-brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.txp-app .txp-brand img { display: block; width: 145px; max-width: 100%; height: auto; flex: none; }
.txp-app .txp-app-name { border-left: 1px solid #85878c; padding-left: 15px; font-size: 14px; }
.txp-app .txp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 19px; margin-left: auto; }
.txp-app .txp-nav a { color: #fff; font-size: 12px; text-decoration: none; padding: 3px 0; }
.txp-app .txp-nav a:hover { text-decoration: underline; }
.txp-app .txp-nav a[aria-current="page"] { border-bottom: 2px solid var(--txp-red); }
.txp-app .txp-masthead :focus-visible { outline-color: #fff; }
.txp-app .txp-main { margin: 17px 18px; max-width: 1600px; }
.txp-app .txp-title { font-size: 23px; font-weight: 600; margin: 12px 0 6px; }
.txp-app .txp-section-title { font-size: 16px; font-weight: 600; margin: 0 0 11px; }
.txp-app .txp-muted { color: var(--txp-muted); }
.txp-app .txp-panel { background: var(--txp-surface); border: 1px solid var(--txp-border); padding: 14px; margin-bottom: 15px; }
.txp-app .txp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 13px 0; }
.txp-app .txp-button {
  display: inline-block; background: var(--txp-surface); color: #414850;
  border: 1px solid var(--txp-control-border); border-radius: 3px;
  padding: 5px 11px; font: inherit; font-size: 12px; line-height: 1.4;
  text-decoration: none; cursor: pointer;
}
.txp-app .txp-button:hover:not(:disabled) { background: #f0f2f4; }
.txp-app .txp-button--primary { background: var(--txp-charcoal); border-color: var(--txp-charcoal); color: #fff; }
.txp-app .txp-button--primary:hover:not(:disabled) { background: #33373c; }
.txp-app .txp-button--danger { color: #9b292f; border-color: #9b292f; }
.txp-app .txp-button:disabled { opacity: .6; cursor: default; }
.txp-app .txp-label { display: block; margin: 10px 0 4px; font-size: 12px; }
.txp-app .txp-input {
  font: inherit; color: var(--txp-text); background: var(--txp-surface);
  border: 1px solid var(--txp-control-border); border-radius: 2px;
  padding: 6px 8px; max-width: 100%;
}
.txp-app .txp-table-scroll { max-width: 100%; overflow-x: auto; }
.txp-app .txp-table { width: 100%; border-collapse: collapse; background: var(--txp-surface); }
.txp-app .txp-table th, .txp-app .txp-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--txp-row-border);
  text-align: left; vertical-align: top;
}
.txp-app .txp-table th { background: var(--txp-table-heading); font-size: 12px; font-weight: 600; color: #454b52; }
.txp-app .txp-table tbody tr:hover { background: #fafbfc; }
.txp-app .txp-table .txp-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.txp-app .txp-badge {
  display: inline-block; padding: 2px 7px; border: 1px solid #d2d5d8;
  border-radius: 3px; background: #f8f9fa; font-size: 12px; color: #555c63;
}
.txp-app .txp-badge--success { border-color: #aebfb0; color: #416047; background: #f7faf7; }
.txp-app .txp-badge--attention { border-color: #d0b18c; color: #805323; background: #fffaf4; }
.txp-app .txp-badge--error { border-color: #b5787c; color: #9b292f; background: #fff4f4; }
@media (max-width: 1100px) {
  .txp-app .txp-masthead { flex-wrap: wrap; gap: 12px 18px; }
  .txp-app .txp-nav { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 650px) {
  .txp-app .txp-masthead { padding: 10px; }
  .txp-app .txp-brand { gap: 10px; flex-wrap: wrap; }
  .txp-app .txp-brand img { width: 120px; }
  .txp-app .txp-app-name { font-size: 13px; padding-left: 10px; }
  .txp-app .txp-main { margin: 12px 10px; }
  .txp-app .txp-panel { padding: 11px; }
  .txp-app .txp-table th, .txp-app .txp-table td { padding: 7px 8px; }
}
