/* Luxvps theme r25 (4 Dec 2026): tidy Domains buttons and list tables. Test theme only (templates/luxvps).
   Loaded by header.tpl after luxvps-r24.css. Undo: rollback_r25b.sh, then rollback_r25.sh
   - Domains: the bulk buttons (Manage nameservers, Edit contact information, Renew domains, More) stand apart with
     gaps in the same small secondary style as the rest of the theme, without the shaded band behind them.
   - Domains: the checkbox and SSL columns only take the room they need, so "Domain" starts where the table starts.
   - Every list table (Tickets, Invoices, Quotes, Domains, ...): one thin line under the header instead of the thick band.
   - Phones: Domains and Quotes rows show as small cards, the same way as Tickets and Invoices (luxvps-layout.css). */
.lx-tpl-clientareadomains .lx-primary>.tab-content,
.lx-tpl-clientareadomains .lx-primary .tab-content>.tab-pane{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
.lx-tpl-clientareadomains #domainForm>.btn-group{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px!important}
.lx-tpl-clientareadomains #domainForm>.btn-group>.btn-group{margin:0!important;flex:0 0 auto}
.lx-tpl-clientareadomains #domainForm>.btn-group>.btn,
.lx-tpl-clientareadomains #domainForm>.btn-group>.btn-group>.btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px!important;margin:0!important;
  border-radius:6px!important;font-size:13px!important;font-weight:600!important;line-height:1;white-space:nowrap;
  background:var(--lxb-btn2)!important;border:1px solid var(--lxb-btn2-b)!important;color:var(--lxb-text)!important;box-shadow:none!important}
.lx-tpl-clientareadomains #domainForm>.btn-group>.btn:hover,
.lx-tpl-clientareadomains #domainForm>.btn-group>.btn-group>.btn:hover{background:var(--lxb-btn2-h)!important;color:var(--lxb-head)!important}
.lx-tpl-clientareadomains #domainForm>.btn-group .btn i{width:auto!important;color:inherit!important}
.lx-tpl-clientareadomains #tableDomainsList th:nth-child(1),.lx-tpl-clientareadomains #tableDomainsList td:nth-child(1),
.lx-tpl-clientareadomains #tableDomainsList th:nth-child(2),.lx-tpl-clientareadomains #tableDomainsList td:nth-child(2){width:1%!important;white-space:nowrap;padding-left:12px!important;padding-right:4px!important}
.lx-body .lx-primary .dataTables_wrapper table.table-list thead th{border-bottom:1px solid var(--lxb-border)!important}

@media (max-width:767.98px){
  .lx-tpl-clientareadomains #domainForm>.btn-group>.btn,
  .lx-tpl-clientareadomains #domainForm>.btn-group>.btn-group>.btn{height:36px}
}

/* Phones: Domains and Quotes as cards, like Tickets and Invoices */
@media (max-width:575.98px){
  body.lx-body #tableDomainsList,body.lx-body #tableQuotesList{display:block;width:100%!important;min-width:0;border:0}
  body.lx-body #tableDomainsList thead,body.lx-body #tableQuotesList thead{display:none}
  body.lx-body #tableDomainsList tbody,body.lx-body #tableQuotesList tbody{display:block;width:100%}
  body.lx-body #tableDomainsList tbody tr,body.lx-body #tableQuotesList tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:4px;
    align-items:center;padding:12px 14px;border-bottom:1px solid var(--lxb-border)}
  body.lx-body #tableDomainsList tbody tr:last-child,body.lx-body #tableQuotesList tbody tr:last-child{border-bottom:0}
  body.lx-body #tableDomainsList tbody td,body.lx-body #tableQuotesList tbody td{display:block;width:auto!important;padding:0!important;border:0!important;background:none!important;
    text-align:left!important;white-space:normal;min-width:0;font-size:13px;line-height:1.4}
  body.lx-body #tableDomainsList tbody td.dataTables_empty,body.lx-body #tableQuotesList tbody td.dataTables_empty{grid-column:1 / -1;text-align:center!important;justify-self:center}
  /* domains: [checkbox] domain + status / registered + due */
  body.lx-body #tableDomainsList tbody tr:not(:has(td.dataTables_empty)){grid-template-columns:auto minmax(0,1fr) auto}
  body.lx-body #tableDomainsList td:nth-child(1):not(.dataTables_empty){grid-column:1;grid-row:1 / span 2;align-self:start;padding-top:2px!important}
  body.lx-body #tableDomainsList td:nth-child(2){display:none}
  body.lx-body #tableDomainsList td:nth-child(3){grid-column:2;grid-row:1;font-weight:600;font-size:14px;color:var(--lxb-head);overflow-wrap:anywhere}
  body.lx-body #tableDomainsList td:nth-child(6){grid-column:3;grid-row:1;justify-self:end}
  body.lx-body #tableDomainsList td:nth-child(4){grid-column:2;grid-row:2;color:var(--lxb-muted)}
  body.lx-body #tableDomainsList td:nth-child(5){grid-column:3;grid-row:2;justify-self:end;text-align:right!important;color:var(--lxb-muted)}
  body.lx-body #tableDomainsList td:nth-child(4)::before{content:"Registered: "}
  html[lang="de"] body.lx-body #tableDomainsList td:nth-child(4)::before{content:"Registriert: "}
  body.lx-body #tableDomainsList td:nth-child(5)::before{content:"Due: "}
  html[lang="de"] body.lx-body #tableDomainsList td:nth-child(5)::before{content:"F\00E4llig: "}
  /* quotes: number + stage / subject + download / created + valid until */
  body.lx-body #tableQuotesList td:nth-child(1):not(.dataTables_empty){grid-column:1;grid-row:1;font-weight:600;font-size:14px;color:var(--lxb-head)}
  body.lx-body #tableQuotesList td:nth-child(1):not(.dataTables_empty)::before{content:"Quote #"}
  html[lang="de"] body.lx-body #tableQuotesList td:nth-child(1):not(.dataTables_empty)::before{content:"Angebot #"}
  body.lx-body #tableQuotesList td:nth-child(5){grid-column:2;grid-row:1;justify-self:end}
  body.lx-body #tableQuotesList td:nth-child(2){grid-column:1;grid-row:2;overflow-wrap:anywhere}
  body.lx-body #tableQuotesList td:nth-child(6){grid-column:2;grid-row:2;justify-self:end}
  body.lx-body #tableQuotesList td:nth-child(3){grid-column:1;grid-row:3;color:var(--lxb-muted)}
  body.lx-body #tableQuotesList td:nth-child(4){grid-column:2;grid-row:3;justify-self:end;text-align:right!important;color:var(--lxb-muted)}
  body.lx-body #tableQuotesList td:nth-child(4)::before{content:"Valid until "}
  html[lang="de"] body.lx-body #tableQuotesList td:nth-child(4)::before{content:"G\00FCltig bis "}
}

/* r25b (4 Dec 2026): under every list table, "Show 10 entries" on the left and Previous / Next on the right,
   on one row at every width (phones too), instead of two centred lines. Empty tables keep "No records found" alone. */
.lx-body .lx-primary .dataTables_wrapper{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:10px}
.lx-body .lx-primary .dataTables_wrapper>.listtable{flex:0 0 100%;min-width:0}
.lx-body .lx-primary .dataTables_wrapper>.dataTables_length{order:2;flex:0 1 auto;width:auto!important;margin:0 auto 0 0!important;text-align:left!important}
.lx-body .lx-primary .dataTables_wrapper>.dataTables_length label{display:inline-flex;align-items:center;gap:8px;margin:0!important;white-space:nowrap}
.lx-body .lx-primary .dataTables_wrapper>.dataTables_paginate{order:3;flex:0 0 auto;float:none!important;width:auto!important;margin:0 0 0 auto!important}
.lx-body .lx-primary .dataTables_wrapper>.dataTables_paginate ul.pagination{margin:0!important;justify-content:flex-end}
