/* The Wholesale page (templates/portal-page.php): the plugin's own full page,
   no theme around it. The same top bar as TEG-REPAIRSHOP's page - one Return
   button, then the menu - so the family's customer pages look like family. */

body.twh-app { margin: 0; background: #f4f6f8; color: #1c2024; font: 16px/1.55 "Segoe UI", -apple-system, Helvetica, Arial, sans-serif; }
body.twh-app a { color: var(--twh-accent); }

.twh-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: #1c2438; color: #fff; padding: 8px 16px; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,.25); font-size: 14px; }
body.twh-app .twh-return { display: inline-block; background: var(--twh-accent); color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
body.twh-app .twh-return:hover { filter: brightness(1.1); color: #fff; }
body.twh-app .twh-topbar-title { color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; margin-right: 8px; }
.twh-pnav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; flex: 1 1 auto; }
body.twh-app .twh-pnav-item { color: #d5dbe7; text-decoration: none; padding: 6px 10px; border-radius: 5px; white-space: nowrap; }
body.twh-app .twh-pnav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
body.twh-app .twh-pnav-active { background: rgba(255,255,255,.16); color: #fff; }
.twh-pnav-sep { color: #8a94a8; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 0 8px 0 14px; border-left: 1px solid rgba(255,255,255,.15); margin-left: 6px; }
body.twh-app .twh-pnav-staff { color: #b7c4e0; }
.twh-nav-toggle, .twh-nav-burger { display: none; }
@media (max-width: 760px) {
	.twh-nav-burger { display: inline-block; margin-left: auto; font-size: 22px; cursor: pointer; padding: 2px 8px; }
	.twh-pnav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 6px; }
	.twh-nav-toggle:checked ~ .twh-pnav { display: flex; }
	.twh-pnav-sep { border: none; margin: 6px 0 0; padding: 4px 10px; }
}

.twh-app-main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 40px; box-sizing: border-box; }
.twh-app-main h1 { font-size: 28px; margin: 0 0 8px; color: #1c2438; }
.twh-app-main h2 { font-size: 20px; margin: 0 0 12px; color: #1c2438; }
.twh-app-titlebar { margin-bottom: 18px; }
.twh-app-lead { color: #4b5563; margin: 0 0 8px; font-size: 17px; }
.twh-app-lead p { margin: 0 0 8px; }
.twh-app-hero { background: #fff; border-radius: 12px; padding: 26px 28px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 6px solid var(--twh-accent); }
.twh-app-split { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .twh-app-split { grid-template-columns: 1fr; } }
.twh-app-card { background: #fff; border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
body.twh-app .twh-app-btn, body.twh-app .twh-store .twh-button, body.twh-app #twh-loginform .button-primary { display: inline-block; background: var(--twh-accent); color: #fff; border: 0; border-radius: 6px; padding: 9px 16px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 15px; }
body.twh-app .twh-store .twh-button.twh-secondary { background: #e5e7eb; color: #1c2024; }
body.twh-app .twh-store .twh-button.twh-small { padding: 4px 10px; font-size: 13px; }
body.twh-app .twh-store input[type="text"], body.twh-app .twh-store input[type="email"], body.twh-app .twh-store input[type="tel"], body.twh-app .twh-store input[type="password"], body.twh-app .twh-store input[type="number"], body.twh-app .twh-store input[type="date"], body.twh-app .twh-store select, body.twh-app .twh-store textarea { font: inherit; padding: 7px 9px; border: 1px solid #c7ccd4; border-radius: 6px; box-sizing: border-box; max-width: 100%; }
body.twh-app .twh-store fieldset { border: 1px solid #e5e7eb; border-radius: 8px; margin: 0 0 16px; padding: 10px 16px; background: #fff; }
body.twh-app .twh-store { max-width: none; }

/* The store's own nav duplicates the top bar here: keep the account name only. */
body.twh-app .twh-store .twh-nav > a { display: none; }
body.twh-app .twh-store .twh-nav { border: 0; padding: 0 0 6px; }

.twh-app-foot { text-align: center; color: #9ca3af; font-size: 13px; padding: 18px; }
.twh-skip { position: absolute; left: -999px; top: 8px; background: #111; color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; text-decoration: none; }
.twh-skip:focus { left: 8px; outline: 3px solid #ffbf47; }
body.twh-app a:focus-visible, body.twh-app button:focus-visible, body.twh-app input:focus-visible, body.twh-app select:focus-visible, body.twh-app textarea:focus-visible, .twh-nav-burger:focus-within { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.twh-topbar a:focus-visible { outline-color: #ffbf47 !important; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

@media print {
	.twh-topbar, .twh-app-foot, .twh-skip { display: none !important; }
	body.twh-app { background: #fff; }
	.twh-app-main { padding: 0; max-width: none; }
}
