/*
 * thenetMonster / PNLCS 1.26.0 / Phase 19: seven secondary client screens.
 * Single scoped presentation sheet, no global header/footer changes.
 * Shared client shell stays in client-shell.css. No business logic or JS.
 * Dark mode rules intentionally do not override semantic failure/success
 * status badges, quote validity, prices, domain availability or alerts.
 */
.tm-secondary{
  --tm-p19-bg:#0c100e;
  --tm-p19-card:#18271d;
  --tm-p19-card-top:#1e3223;
  --tm-p19-line:#49664d;
  --tm-p19-input:#0d1b12;
  --tm-p19-text:#f1f9ed;
  --tm-p19-muted:#cadcc5;
  --tm-p19-lime:#bef24a;
  max-width:1260px;
  margin-inline:auto;
  min-width:0;
  padding-bottom:32px;
}
.tm-secondary :is(a,button,input,select,textarea):focus-visible{
  outline:3px solid #bef24a!important;
  outline-offset:3px!important;
}
.tm-secondary :is(table,.pn-table){max-width:100%}
.tm-secondary .pn-page-header{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 20px;
  border-radius:13px;
  border:1px solid #49694b;
  border-top:3px solid #bef24a;
  background:linear-gradient(110deg,#18281c,#2c482c);
  padding:23px 26px;
  margin-bottom:22px;
}
.tm-secondary .pn-page-title{
  font-size:clamp(24px,2.2vw,30px);
  font-weight:800;
  letter-spacing:-.02em;
}
.tm-secondary .pn-page-subtitle{font-size:14px;line-height:1.5}
:root[data-theme="dark"] body:has(.tm-secondary),
:root[data-theme="dark"] body:has(.tm-secondary) .pn-main{
  background:#0c100e!important;
  color:#f1f9ed;
}
:root[data-theme="dark"] .tm-secondary .pn-page-title{
  color:#f5fbea!important;
}
:root[data-theme="dark"] .tm-secondary .pn-page-subtitle,
:root[data-theme="dark"] .tm-secondary :is(.text-muted,.form-hint){
  color:#cadcc5!important;
}
/* Native dark PNLCS uses `!important` and blue on .pn-card.
   Increase specificity INSIDE these seven scoped screens only. */
:root[data-theme="dark"] .tm-secondary .pn-card{
  background:#18271d!important;
  border:1px solid #49664d!important;
  border-radius:13px!important;
  color:#f1f9ed!important;
  box-shadow:0 10px 22px rgba(0,0,0,.12)!important;
}
:root[data-theme="dark"] .tm-secondary :is(.pn-card-body,.pn-card-body-flush,.pn-empty){
  background:transparent!important;
  color:#e9f4e5!important;
}
:root[data-theme="dark"] .tm-secondary .pn-card-header{
  background:#1e3223!important;
  border-bottom:1px solid #49664d!important;
  color:#f6fbed!important;
}
:root[data-theme="dark"] .tm-secondary .pn-card-title,
:root[data-theme="dark"] .tm-secondary .pn-empty p{
  color:#eaf5e5!important;
}
:root[data-theme="dark"] .tm-secondary .pn-empty-icon{
  color:#c4ed9b!important;
  filter:none;
}
:root[data-theme="dark"] .tm-secondary .pn-table{
  background:#18271d!important;
  color:#e7f3e2!important;
}
:root[data-theme="dark"] .tm-secondary .pn-table thead,
:root[data-theme="dark"] .tm-secondary .pn-table th{
  background:#203526!important;
  color:#d4e7cc!important;
  border-color:#48614c!important;
}
:root[data-theme="dark"] .tm-secondary .pn-table tbody,
:root[data-theme="dark"] .tm-secondary .pn-table td,
:root[data-theme="dark"] .tm-secondary .pn-table tr{
  background:#18271d!important;
  border-color:#405c45!important;
  color:#e6f2e0!important;
}
:root[data-theme="dark"] .tm-secondary .pn-table tbody tr:hover td{
  background:#203626!important;
}
:root[data-theme="dark"] .tm-secondary :is(.pn-input,.form-control,.pn-select){
  background:#0d1b12!important;
  color:#f1f9ec!important;
  border:1px solid #658068!important;
  color-scheme:dark;
  box-shadow:none!important;
}
:root[data-theme="dark"] .tm-secondary :is(.pn-input,.form-control,.pn-select):focus{
  border-color:#bef24a!important;
  box-shadow:0 0 0 3px rgba(190,242,74,.17)!important;
}
.tm-secondary :is(.pn-input,.form-control)::placeholder{
  color:#b3c7ad!important;
  opacity:1;
}
:root[data-theme="dark"] .tm-secondary :is(.pn-label,.form-label){
  color:#e5f3dd!important;
}
:root[data-theme="dark"] .tm-secondary .btn-primary{
  background:#bef24a!important;
  border-color:#bef24a!important;
  color:#14220c!important;
  font-weight:750!important;
}
:root[data-theme="dark"] .tm-secondary .btn-primary:hover{
  background:#d9ff85!important;
  border-color:#d9ff85!important;
  color:#101e0a!important;
}
:root[data-theme="dark"] .tm-secondary .btn-outline{
  background:#29412d!important;
  border-color:#709371!important;
  color:#eaf8e3!important;
}
:root[data-theme="dark"] .tm-secondary .btn-outline:hover{
  background:#35563b!important;
  border-color:#bef24a!important;
  color:#f1ffe0!important;
}
:root[data-theme="dark"] .tm-secondary a:not(.btn){
  text-underline-offset:3px;
}
:root[data-theme="dark"] .tm-secondary .pn-alert-info{
  background:#1c3b2c!important;
  color:#e0f4e0!important;
  border-color:#6a9476!important;
}
/* Destructive buttons, error/warning badges and live statuses stay native. */
:root[data-theme="dark"] .tm-secondary :is(.pn-alert-error,.badge-overdue,.badge-no,.btn-danger){
  /* Status palette intentionally untouched. */
}
/* Store: preserve product visibility, real pricing and out-of-stock states. */
:root[data-theme="dark"] .tm-store .pn-product-card{
  background:#1c2d20!important;
  border-top:2px solid #9ad346!important;
}
:root[data-theme="dark"] .tm-store .pn-product-price{
  color:#e1ffab!important;
}
:root[data-theme="dark"] .tm-store .pn-res li{
  color:#d9e9d2!important;
}
/* Domain search: exact native search/filter and availability remain intact.
   Inline PNLCS navy is presentational; status greens/reds are left alone. */
:root[data-theme="dark"] .tm-domain-search h1[style*="color:#1a4d80"],
:root[data-theme="dark"] .tm-domain-search div[style*="font-weight:700;color:#1a4d80"],
:root[data-theme="dark"] .tm-domain-search div[style*="font-weight:800;color:#1a4d80"],
:root[data-theme="dark"] .tm-domain-search td[style*="color:#1a4d80"]{
  color:#d9fa9d!important;
}
:root[data-theme="dark"] .tm-domain-search #domain-search-form > div{
  background:#17271d!important;
  border-color:#567a57!important;
  box-shadow:none!important;
}
:root[data-theme="dark"] .tm-domain-search :is(#domain-input,#tld-select,#ds-filter){
  background:#102016!important;
  color:#f2f9ed!important;
  border-color:#557459!important;
  color-scheme:dark;
}
:root[data-theme="dark"] .tm-domain-search #domain-input{
  background:transparent!important;
}
:root[data-theme="dark"] .tm-domain-search #tld-select option,
:root[data-theme="dark"] .tm-domain-search #tld-select optgroup{
  background:#102016!important;
  color:#e9f7e0!important;
}
:root[data-theme="dark"] .tm-domain-search #domain-search-form button[type="submit"],
:root[data-theme="dark"] .tm-domain-search button[style*="background:#1a4d80"]:not([id^="ds-tab-"]){
  background:#bef24a!important;
  color:#12200c!important;
  border-color:#bef24a!important;
}
:root[data-theme="dark"] .tm-domain-search #ds-tabs button{
  background:#213725!important;
  border-color:#59765b!important;
  color:#deeed7!important;
}
:root[data-theme="dark"] .tm-domain-search #ds-tabs button:is([style*="#1a4d80"],[style*="rgb(26, 77, 128)"]){
  background:#bef24a!important;
  border-color:#bef24a!important;
  color:#13210b!important;
}
:root[data-theme="dark"] .tm-domain-search a[style*="background:#eff6ff"]{
  background:#28412e!important;
  border-color:#7c9d73!important;
  color:#e9ffce!important;
}
:root[data-theme="dark"] .tm-domain-search table{
  background:#18271d!important;
  color:#e8f2e2!important;
}
:root[data-theme="dark"] .tm-domain-search table thead,
:root[data-theme="dark"] .tm-domain-search table th{
  background:#213626!important;
  color:#e1f3d8!important;
}
:root[data-theme="dark"] .tm-domain-search table td{
  border-color:#49624c!important;
}
/* Funds: keep numerical values, currency conversions and native validation.
   Readable labels, presets and submit button only. */
:root[data-theme="dark"] .tm-funds > .pn-card[style*="linear-gradient"]{
  background:linear-gradient(115deg,#16251a,#315034)!important;
  border:1px solid #6b9859!important;
  border-top:3px solid #bef24a!important;
}
:root[data-theme="dark"] .tm-funds > .pn-card[style*="linear-gradient"] .pn-card-body{
  background:transparent!important;
}
:root[data-theme="dark"] .tm-funds .pn-amount-btn{
  background:#223b29!important;
  color:#e7f4e2!important;
  border-color:#57795b!important;
}
:root[data-theme="dark"] .tm-funds .pn-amount-btn:hover{
  border-color:#bef24a!important;
}
:root[data-theme="dark"] .tm-funds .pn-amount-btn.selected{
  background:#bef24a!important;
  color:#14230d!important;
  border-color:#bef24a!important;
}
:root[data-theme="dark"] .tm-funds .pn-card-body .form-label{
  color:#ebf8e7!important;
}
:root[data-theme="dark"] .tm-funds .pn-card-body .btn-primary{
  min-height:44px;
}
/* Saved payment methods: preserve staff impersonation consent rules,
   removal/default actions, native bank form and status badges. */
:root[data-theme="dark"] .tm-payment-methods .pn-card-body .text-muted{
  color:#d0dfc9!important;
}
:root[data-theme="dark"] .tm-payment-methods .pn-input{
  min-height:43px;
}
:root[data-theme="dark"] .tm-payment-methods form[style*="max-width:560px"]{
  max-width:620px!important;
}
:root[data-theme="dark"] .tm-payment-methods .pn-alert-info{
  border-left:3px solid #8cc879!important;
}
/* Quotes and emails: readable empty-state and table links. */
:root[data-theme="dark"] .tm-secondary:is(.tm-quotes,.tm-emails) .pn-table a{
  color:#d8ff9f!important;
}
:root[data-theme="dark"] .tm-secondary:is(.tm-quotes,.tm-emails) .pn-table a:hover{
  color:#f1ffdb!important;
}
/* Network status: retain native success/critical/pending semantics. */
:root[data-theme="dark"] .tm-network-status .pn-card-body p,
:root[data-theme="dark"] .tm-network-status .pn-card-body small{
  color:#cadcc5!important;
}
@media(max-width:760px){
  .tm-secondary .pn-page-header{padding:20px 18px}
  .tm-secondary .pn-card-body{padding:18px!important}
  .tm-secondary .pn-card-body-flush{overflow-x:auto}
  .tm-secondary :is(.pn-table,table){min-width:580px}
  .tm-domain-search #domain-search-form > div{flex-wrap:wrap}
  .tm-domain-search #domain-input{flex:1 1 100%!important;min-width:0}
  .tm-domain-search #domain-search-form button[type="submit"]{
    flex:1 1 auto;
    min-height:45px;
  }
  .tm-payment-methods form[style*="max-width:560px"] > div[style*="grid-template-columns"]{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .tm-secondary *{transition:none!important}
}
