/* Scoped styling for The Way Registrations, backend + frontend. */
.twr-wrap{--twr-ink:#192a36;--twr-line:#dbe2e6;--twr-muted:#546474;max-width:1100px;margin:1.5rem auto 3rem;color:var(--twr-ink);font:inherit}
.twr-wrap h1{font-size:clamp(1.8rem,3vw,2.7rem);margin:0 0 .7rem}.twr-wrap h2{font-size:1.3rem;margin:0}
.twr-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem}
.twr-panel{padding:1.5rem;margin:1.2rem 0;border:1px solid var(--twr-line);border-radius:10px;background:#fff;box-shadow:0 4px 15px rgba(0,0,0,.035)}
.twr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.twr-form-grid label{display:block;font-weight:600}.twr-form-grid input,.twr-form-grid select,.twr-form-grid textarea{display:block;margin-top:.35rem;width:100%;padding:.55rem;border:1px solid #aab5bd;border-radius:5px}.twr-span{grid-column:1/-1}
.twr-admin .twr-pricing-grid{width:100%;border-collapse:collapse;font-size:.92rem}.twr-pricing-grid th,.twr-pricing-grid td{padding:.5rem;border-bottom:1px solid var(--twr-line);vertical-align:middle}.twr-pricing-grid input,.twr-pricing-grid select{width:100%;min-width:100px;padding:.35rem;border:1px solid #aab5bd;border-radius:4px}.twr-admin .twr-pricing-grid input[type=checkbox]{min-width:0;width:auto}
.twr-overflow,.twr-admin .twr-table-scroll{overflow-x:auto}.twr-wrap .twr-danger{color:#a11f1f}.twr-actions{display:flex;align-items:center;gap:1rem}.twr-help{font-size:.85rem;color:var(--twr-muted)}.twr-warning{padding:.65rem 1rem;border-left:3px solid #a97930;background:#fdf7e9}.twr-eyebrow{font-size:.8rem;letter-spacing:.13em;text-transform:uppercase;color:#ab6e50}.twr-table{border-collapse:collapse;width:100%}.twr-table th,.twr-table td{padding:1rem;border-bottom:1px solid var(--twr-line);text-align:left}.twr-table thead th{color:#fff;background:var(--twr-ink)}.twr-table th small,.twr-extra small{display:block;font-weight:normal;color:var(--twr-muted);margin-top:.3rem}.twr-table td{white-space:nowrap}.twr-choice,.twr-extra{display:flex;align-items:center;gap:.7rem;padding:.75rem;border-bottom:1px solid var(--twr-line)}.twr-extra{justify-content:space-between}.twr-qty{width:4.5rem;padding:.5rem;border:1px solid #b5bfc6;border-radius:4px}.twr-calculator fieldset{border:0;margin:1rem 0;padding:0}.twr-calculator legend{font-weight:700;padding:0 0 .5rem}.twr-total{display:flex;justify-content:space-between;gap:1rem;padding:1.1rem 0;border-top:2px solid var(--twr-ink);font-size:1.25rem}.twr-total strong{font-size:1.6rem}.twr-btn{display:inline-block;background:var(--twr-ink);color:white!important;padding:.6rem 1rem;border-radius:4px;text-decoration:none!important}
@media(max-width:700px){.twr-form-grid{grid-template-columns:1fr}.twr-panel{padding:1rem}.twr-table{min-width:650px}}

.twr-honeypot{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.twr-personal-fields input{background:#fff}
.twr-submit{border:0;cursor:pointer;margin:.7rem 0}
.twr-submit:disabled{opacity:.45;cursor:not-allowed}
.twr-pagination{margin:1rem 0}

/* v0.3: Full-width administrator workspace (scoped to this component only). */
.twr-wrap.twr-admin{width:100%;max-width:none;margin:0 0 2.5rem;padding:0;box-sizing:border-box}
.twr-admin .twr-head{margin:0 0 1.4rem}
.twr-head-actions{display:flex;gap:.65rem;flex-wrap:wrap}
.twr-admin .twr-panel{width:100%;box-sizing:border-box;max-width:none}
.twr-admin .twr-form-grid{grid-template-columns:repeat(2,minmax(230px,1fr))}
.twr-admin .twr-table-scroll,.twr-admin .twr-overflow,.twr-admin-table{width:100%;max-width:100%;overflow-x:auto}
.twr-admin .twr-pricing-grid{min-width:100%;table-layout:auto}
.twr-admin .twr-pricing-grid th,.twr-admin .twr-pricing-grid td{padding:.55rem .65rem}
.twr-admin .twr-pricing-grid input{min-width:105px}
.twr-admin .twr-pricing-grid td:nth-child(1) input{min-width:175px}
.twr-admin .twr-pricing-grid td:nth-child(2) input{min-width:220px}
.twr-admin-table table{min-width:890px;width:100%;margin:0}
.twr-admin-table td{vertical-align:middle}
.twr-filter-bar{display:flex;gap:.75rem;align-items:flex-end;flex-wrap:wrap}
.twr-filter-bar label{display:flex;flex:1 1 190px;flex-direction:column;gap:.3rem;font-weight:600;min-width:170px}
.twr-filter-bar .btn{white-space:nowrap}
.twr-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem}
.twr-detail-grid .twr-panel{margin:0}
.twr-detail-grid h2{margin-bottom:1rem}
.twr-detail-list{display:grid;grid-template-columns:minmax(140px,30%) 1fr;gap:.45rem 1rem}
.twr-detail-list dt{color:var(--twr-muted);font-weight:500}
.twr-detail-list dd{margin:0;min-width:0;overflow-wrap:anywhere}
.twr-status{display:inline-flex;border-radius:999px;background:#eef1f4;padding:.2rem .65rem;font-size:.85rem;white-space:nowrap}
.twr-status-pending_payment{background:#fff3db;color:#654809}
.twr-status-paid{background:#e6f4e9;color:#14552d}
.twr-status-cancelled,.twr-status-refunded{background:#eee;color:#51585e}
.twr-status-failed{background:#fff0ef;color:#96291c}
.twr-export-bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.twr-export-bar small{color:var(--twr-muted)}
.twr-public label[hidden]{display:none!important}
.twr-public .twr-personal-fields{margin-top:1.7rem}
.twr-public .twr-personal-fields legend{font-size:1.1rem}
.twr-public .twr-form-grid{margin-top:.85rem}
@media(max-width:900px){.twr-detail-grid{grid-template-columns:1fr}.twr-admin .twr-form-grid{grid-template-columns:1fr}}

/* v0.8.0 international billing + audited admin-only FIC manual linkage */
.twr-public select#twr-billing-country{background-color:#fff;max-width:100%}
.twr-public .twr-form-grid label small.twr-help{display:block;margin-top:.3rem;font-weight:400}
.twr-admin .twr-manual-link{border:1px solid #b0c4d4;border-radius:7px;padding:1rem;margin:1.2rem 0}
.twr-admin .twr-manual-link h3{font-size:1.05rem;margin:0 0 .5rem}
.twr-admin .twr-confirm{display:flex;gap:.6rem;align-items:flex-start;margin:.85rem 0}
.twr-admin .twr-confirm input{margin-top:.2rem}

/* v0.9.0: explicit fiscal preflight review panel, no payment-related overrides */
.twr-admin .twr-fic-preflight{border:1px solid #d9bd85;border-radius:8px;background:#fffbf1;padding:1rem;margin:1.1rem 0}
.twr-admin .twr-fic-preflight h3{font-size:1.1rem;margin:0 0 .6rem}
.twr-admin .twr-fic-preflight ul{padding-left:1.3rem;margin:.5rem 0 1rem}
.twr-admin .twr-fic-preflight li{margin:.3rem 0}

.twr-status-pending_bank_transfer{background:#e7efff;color:#184279}
.twr-public .twr-payment-options{margin:1.6rem 0 1rem}
