.nav-group { margin: 0; }
.ion-ui .app-sidebar .nav-group > .nav-group-toggle { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; color: #91a9be; font-size: 12px; font-weight: 400; cursor: pointer; list-style: none; }
.nav-group-toggle::-webkit-details-marker { display: none; }
.nav-group-toggle::marker { content: ''; }
.nav-group-toggle > .ui-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-group-toggle > .nav-chevron { width: 14px; height: 14px; margin-left: auto; flex-shrink: 0; }
.nav-group[open] > .nav-group-toggle > .nav-chevron { transform: rotate(90deg); }
.ion-ui .app-sidebar .nav-group > .nav-group-toggle:hover { background: #142c40; color: #d5f8ff; }
.ion-ui .app-sidebar .nav-group > .nav-group-toggle.selected { color: #8cf0ed; background: linear-gradient(95deg,#12434c99,#17385470); border-color: #28616b77; }
.nav-group-toggle:focus-visible { outline: 2px solid #8fcac9; outline-offset: 2px; }
.ion-ui .app-sidebar .nav-group a { margin-left: 9px; }
.ion-ui .app-sidebar nav { overflow-y: auto; min-height: 0; }
.customer-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.customer-actions .button { padding: 9px 11px; white-space: nowrap; }
.row-actions { min-width: 100px; }
.row-actions > summary, .service-label > summary { cursor: pointer; padding: 8px 4px; }
.row-actions-content { display: grid; gap: 10px; padding: 12px 0; white-space: normal; }
.row-actions-content .inline { display: flex; flex-wrap: wrap; gap: 6px; }
.optional-fields { grid-column: 1 / -1; padding: 12px; border: 1px solid #40566a; border-radius: 8px; }
.optional-fields summary { cursor: pointer; margin-bottom: 8px; }
.customer-billing-dialog { width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: clamp(12px, 3vw, 28px); color: #edf5fc; background: #112235; border: 1px solid #466079; }
.customer-billing-dialog::backdrop { background: #03101bd6; }
.customer-billing-dialog > header { position: sticky; top: -1px; z-index: 2; padding: 8px 0; background: #112235; }
.customer-billing-dialog > header h2 { margin: 0; }
.customer-billing-dialog .invoice-history { padding: 12px 0; margin-bottom: 12px; }
.invoice-history nav { display: grid; gap: 8px; padding: 12px 0; }
.invoice-history a[aria-current] { font-weight: bold; text-decoration: underline; }
.customer-billing-dialog .invoice-sheet { width: 100%; }
.customer-billing-dialog section { margin-top: 12px; }
.simple-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 800px) { .customer-billing-dialog { max-height: calc(100dvh - 16px); } .customer-actions { gap: 8px; } }

/* Compact customer rows, with restrained contrast and no animated movement. */
.ion-ui .customer-table table { white-space: normal; }
.ion-ui .customer-table th { padding: 11px 10px; color: #a8bdcc; background: #102231; letter-spacing: .3px; font-size: 11px; }
.ion-ui .customer-table td { padding: 11px 10px; line-height: 1.45; font-size: 12px; vertical-align: middle; border-bottom: 1px solid #29404e; overflow-wrap: anywhere; }
.ion-ui .customer-table tr:nth-child(even) td { background: #112735; }
.ion-ui .customer-table tr:nth-child(odd) td { background: #142b39; }
.ion-ui .customer-table tr:hover td, .ion-ui .customer-table tr:focus-within td { background: #1a3541; }
.ion-ui .customer-table .customer-name { color: #e0eaf0; }
.customer-name strong { font-size: 13px; font-weight: 600; }
.ion-ui .customer-table small { color: #9eb4c2; font-size: 11px; }
.customer-ip { font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: .1px; }
.ion-ui .customer-table .customer-actions { display: flex; gap: 5px 7px; max-width: 180px; }
.ion-ui .customer-table .customer-actions > a { font-size: 11px; padding: 6px 8px; min-height: 32px; border-radius: 6px; }
.ion-ui .customer-table .customer-actions > a.secondary { background: transparent; color: #c1d8e0; border: 1px solid #3a5260; }
.ion-ui .customer-table .row-actions { min-width: 0; flex-basis: 100%; }
.ion-ui .customer-table .row-actions > summary { padding: 3px 1px; font-size: 11px; color: #adc6d1; }
.ion-ui .customer-table .row-actions-content { gap: 9px; padding: 8px 0; }
.ion-ui .customer-table .service-label > summary { padding: 5px 8px; border-radius: 6px; font-size: 11px; line-height: 1.4; width: fit-content; }
.service-label > summary[data-state="active"] { background: #193d35; color: #b4dfcd; }
.service-label > summary[data-state="isolated"] { background: #403525; color: #ead4ab; }
.service-label > summary[data-state="pending"] { background: #24384e; color: #c4d6eb; }
.service-label > summary[data-state="issue"] { background: #422f39; color: #edc1cd; }
.ion-ui .customer-table a:focus-visible, .ion-ui .customer-table summary:focus-visible { outline: 2px solid #8fcac9; outline-offset: 3px; }
@media (min-width: 801px) {
  .customer-table table { table-layout: fixed; width: 100%; }
  .customer-table th:first-child { width: 22%; }
  .customer-table th:nth-child(2) { width: 17%; }
  .customer-table th:nth-child(3) { width: 17%; }
  .customer-table th:last-child { width: 20%; }
}
@media (max-width: 800px) {
  .ion-ui .customer-table tr { margin-bottom: 10px; border-color: #304752; border-radius: 10px; overflow: hidden; }
  .ion-ui .customer-table td { padding: 9px 11px; }
  .ion-ui .customer-table .customer-actions { max-width: none; gap: 8px; }
  .ion-ui .customer-table .customer-actions > a { min-height: 40px; padding: 9px 11px; font-size: 12px; }
  .ion-ui .customer-table .row-actions > summary { padding-block: 8px; }
}
