/* Trone Hub — reseller page (inherits the Trone theme's fonts and colours when present). */
.th-rs { --ink: var(--tr-ink, #1e1e1e); --muted: var(--tr-muted, #5e5e5e); --line: var(--tr-line-2, #e6e6e6); max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; font-size: 14px; color: var(--ink); }
.th-rs__h { font-family: var(--tr-head, inherit); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin: 4px 0 0; }
.th-rs__h3 { font-family: var(--tr-head, inherit); font-weight: 800; font-size: 19px; margin: 0 0 14px; }
.th-rs__eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.th-rs__lead, .th-rs__muted { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.th-rs__note { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.th-rs__login { max-width: 460px; }
.th-rs__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.th-rs__signout { font-size: 13px; text-decoration: underline; }
.th-rs__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.th-rs__stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.th-rs__stat span { font-size: 12px; color: var(--muted); }
.th-rs__stat strong { font-size: 22px; }
.th-rs__stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.th-rs__card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.05); }
.th-rs__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.th-rs__steps[hidden], .th-rs__done[hidden], .th-rs__results[hidden], .th-rs__total[hidden], .th-rs__msg[hidden] { display: none; }
.th-rs__label { display: block; font-weight: 700; margin-bottom: 8px; }
.th-rs input[type="search"], .th-rs input[type="text"], .th-rs input[type="email"], .th-rs input[type="tel"], .th-rs input[type="number"], .th-rs input[type="password"], .th-rs select { width: 100%; height: 42px; border: 1px solid #d6d6d6; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; background: var(--tr-field, #f7f7f7); color: var(--ink); box-sizing: border-box; }
.th-rs input:focus, .th-rs select:focus { outline: none; border-color: var(--ink); }
.th-rs__search { position: relative; }
.th-rs__results { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; max-height: 360px; overflow-y: auto; padding: 6px; }
.th-rs__res { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.th-rs__res:hover { background: #f6f6f6; }
.th-rs__res img, .th-rs__noimg { width: 48px; height: 56px; object-fit: cover; border-radius: 6px; background: #eee; display: block; }
.th-rs__res-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.th-rs__res-main span { font-size: 12px; color: var(--muted); }
.th-rs__res-main select { height: 34px; font-size: 13px; }
.th-rs__lines { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.th-rs__line { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto 32px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f6f6f6; }
.th-rs__line input[type="number"] { height: 34px; padding: 0 6px; text-align: center; background: #fff; }
.th-rs__line button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; }
.th-rs__so { font-style: normal; font-size: 11px; color: #fff; background: rgb(216, 54, 94); padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.th-rs__total { margin: 10px 0 0; font-size: 15px; }
.th-rs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.th-rs__check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.th-rs__pin { display: grid; grid-template-columns: auto 140px auto; gap: 8px; margin-top: 10px; align-items: center; }
.th-rs__pin input { text-align: center; font-size: 20px !important; letter-spacing: 6px; font-weight: 700; }
.th-rs__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.th-rs__btn:hover { opacity: .9; color: #fff; text-decoration: none; }
.th-rs__btn:disabled { opacity: .5; cursor: default; }
.th-rs__btn--line { background: #fff; color: var(--ink); }
.th-rs__btn--line:hover { background: var(--ink); color: #fff; }
.th-rs__btn--ghost { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; }
.th-rs__btn--ghost:hover { color: var(--ink); }
.th-rs__btn--sm { height: 34px; padding: 0 14px; }
.th-rs__msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #eef7ee; font-size: 13px; }
.th-rs__msg.is-bad { background: #fdf1f4; color: #a3123a; }
.th-rs__done { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 14px; background: #f6f6f6; }
.th-rs__done-sum { font-size: 18px; font-weight: 700; margin: 0; }
.th-rs__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.th-rs__list { list-style: none; margin: 0; padding: 0; }
.th-rs__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.th-rs__row:first-child { border-top: 0; }
.th-rs__row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.th-rs__row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.th-rs__amt { font-weight: 700; }
.th-rs__chip { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.th-rs__chip--open { background: #fff4d6; color: #7a5600; }
.th-rs__chip--paid { background: #e5f5e8; color: #1d6b31; }
.th-rs__chip--off { background: #eee; color: #666; }
.th-rs__row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.th-rs__row-actions a, .th-rs__row-actions button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; color: var(--ink); cursor: pointer; }
.th-rs__toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1e1e1e; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 100; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
@media (max-width: 700px) {
	.th-rs__stats { grid-template-columns: 1fr; }
	.th-rs__grid { grid-template-columns: 1fr; }
	.th-rs__pin { grid-template-columns: 1fr; }
	.th-rs__card { padding: 16px; border-radius: 14px; }
	.th-rs__actions .th-rs__btn { width: 100%; }
	.th-rs__line { grid-template-columns: minmax(0, 1fr) 56px 32px; }
	.th-rs__line-price { display: none; }
}

/* Login page ------------------------------------------------------------------ */
.th-rs--login { max-width: 440px; }
.th-rs__login-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; }
.th-rs__form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.th-rs__form .th-rs__label { margin: 8px 0 0; }
.th-rs__btn--full { width: 100%; height: 48px; margin-top: 12px; font-size: 15px; }
.th-rs__pin-input { text-align: center; font-size: 26px !important; letter-spacing: 10px; font-weight: 700; height: 56px !important; }
.th-rs__form .th-rs__muted a { text-decoration: underline; margin-left: 4px; }

/* Tabs ------------------------------------------------------------------------ */
.th-rs--wide { max-width: 1100px; }
.th-rs__tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); margin-top: -4px; overflow-x: auto; }
.th-rs__tabs a { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; text-decoration: none; }
.th-rs__tabs a.is-active, .th-rs__tabs a:hover { color: var(--ink); border-bottom-color: var(--ink); text-decoration: none; }
.th-rs__setpin { border-color: #e2a000; background: #fffaf0; }
.th-rs__setpin .th-rs__pin { grid-template-columns: 1fr 1fr auto; }
.th-rs__linkbtn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; color: var(--ink); cursor: pointer; }
.th-rs__pin.has-devpin { grid-template-columns: 160px auto; justify-content: start; }
.th-rs__btn[hidden] { display: none; }
.th-rs__row-shares { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.th-rs__more { font-weight: 700; text-decoration: underline; }

/* Performance ----------------------------------------------------------------- */
.th-perf { display: flex; flex-direction: column; gap: 16px; }
.th-perf__periods { display: flex; gap: 6px; flex-wrap: wrap; }
.th-perf__periods a { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.th-perf__periods a.is-active, .th-perf__periods a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.th-perf__kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.th-perf__kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.th-perf__kpi span { font-size: 12px; color: var(--muted); }
.th-perf__kpi strong { font-size: 24px; line-height: 1.1; }
.th-perf__kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.th-perf__kpi--accent { background: #1e1e1e; border-color: #1e1e1e; color: #fff; }
.th-perf__kpi--accent span, .th-perf__kpi--accent em { color: rgba(255,255,255,.7); }
.th-perf__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.th-perf__chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 220px; padding-top: 6px; }
.th-perf__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.th-perf__bar { width: 70%; max-width: 46px; background: #e2a000; border-radius: 6px 6px 2px 2px; min-height: 3px; }
.th-perf__val { font-size: 11px; font-weight: 700; white-space: nowrap; }
.th-perf__lbl { font-size: 12px; font-weight: 700; }
.th-perf__sub { font-size: 10px; color: var(--muted); white-space: nowrap; }
.th-perf__channels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.th-perf__channels li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 32px; gap: 10px; align-items: center; font-size: 13px; }
.th-perf__track { height: 10px; background: #f1f1f1; border-radius: 999px; overflow: hidden; }
.th-perf__track span { display: block; height: 100%; background: #1e1e1e; border-radius: 999px; }
.th-perf__channels strong { text-align: right; }
@media (max-width: 900px) {
	.th-perf__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.th-perf__kpi--accent { grid-column: 1 / -1; }
	.th-perf__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
	.th-rs__setpin .th-rs__pin, .th-rs__pin.has-devpin { grid-template-columns: 1fr; }
	.th-perf__chart { height: 180px; gap: 6px; }
	.th-perf__val { font-size: 9px; }
	.th-perf__channels li { grid-template-columns: 110px minmax(0, 1fr) 28px; }
}
.th-rs .woocommerce-Price-amount, .th-rs .woocommerce-Price-amount bdi, .th-rs .woocommerce-Price-currencySymbol { font-size: inherit !important; font-weight: inherit; color: inherit; }

/* Browser autofill: keep the field style (no blue box). */
.th-rs input:-webkit-autofill, .th-rs input:-webkit-autofill:hover, .th-rs input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px var(--tr-field, #f7f7f7) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); border: 1px solid #d6d6d6; transition: background-color 9999s ease-out; }
