/* Zappocity SaaS admin panel, on top of Bootstrap 5.3 and site.css. */
.admin-shell { display: flex; min-height: 100vh; }
.admin-nav { width: 15rem; flex-shrink: 0; background: var(--bs-body-bg); border-right: 1px solid var(--bs-border-color); }
.admin-nav .nav-link { color: var(--bs-body-color); border-radius: .375rem; display: flex; align-items: center; gap: .6rem; }
.admin-nav .nav-link:hover { background: var(--bs-tertiary-bg); }
.admin-nav .nav-link.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 600; }
.admin-main { flex-grow: 1; min-width: 0; }
.admin-top { background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); flex-wrap: wrap; }
.admin-search { flex: 1 1 14rem; max-width: 28rem; }
.stat { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.table td, .table th { vertical-align: middle; }
.mono { font-family: var(--bs-font-monospace); font-size: .85rem; overflow-wrap: anywhere; }
.signin { max-width: 24rem; }
@media (max-width: 767.98px) {
  .admin-shell { flex-direction: column; }
  .admin-nav { width: auto; border-right: 0; border-bottom: 1px solid var(--bs-border-color); }
  .admin-nav { padding: .5rem 1rem !important; }
  .admin-nav > :not(:first-child) { display: none !important; }
  .admin-nav.open > :not(:first-child) { display: block !important; }
  .admin-nav.open > nav { display: flex !important; }
  .admin-nav.open > .nav { margin-top: .75rem; }
  /* Tables of several columns scroll sideways rather than squeeze every
     word onto its own line. */
  .table-responsive > .table:has(th:nth-child(4)) { min-width: 34rem; }
  .table-responsive > .table:has(th:nth-child(6)) { min-width: 44rem; }
  #release { flex-basis: 100%; }
}
/* Row actions: the More menu (see rowActions in admin.js). */
.row-menu > summary { list-style: none; white-space: nowrap; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-list { z-index: 1050; min-width: 12rem; }
.table td .btn { white-space: nowrap; }
/* Addresses, prefixes and names in a table stay whole: a table too wide
   for its card scrolls sideways (table-responsive) rather than breaking
   192.0.2.0/24 after any digit. */
.table td .mono { overflow-wrap: normal; }
/* Mail log: Exim-style lines. */
.maillog { font-family: var(--bs-font-monospace); font-size: .8rem; overflow-x: auto; }
.maillog-line { white-space: pre; padding: 1px 0; }
.maillog-id { font-family: inherit; font-size: inherit; text-decoration: none; }
@media (max-width: 767.98px) { .maillog-line { white-space: pre-wrap; overflow-wrap: anywhere; } }
.trace-steps .min-w-0 { min-width: 0; }
/* Greylisting report. */
.gl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .5rem; }
.gl-stat { border: 1px solid var(--bs-border-color); border-left: .25rem solid var(--gl-accent); border-radius: .375rem; padding: .35rem .6rem; background: var(--bs-tertiary-bg); }
.gl-stat-n { font-size: 1.25rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gl-stat-l { font-size: .75rem; color: var(--bs-secondary-color); white-space: nowrap; }
.gl-stat-secondary { --gl-accent: var(--bs-secondary); }
.gl-stat-warning { --gl-accent: var(--bs-warning); }
.gl-stat-info { --gl-accent: var(--bs-info); }
.gl-stat-success { --gl-accent: var(--bs-success); }
.gl-stat-danger { --gl-accent: var(--bs-danger); }
.gl-stat-primary { --gl-accent: var(--bs-primary); }
.gl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.gl-q { flex: 1 1 14rem; max-width: 24rem; }
.gl-pager { margin-left: auto; }
.gl-ip { font-family: var(--bs-font-monospace); font-size: .85rem; white-space: nowrap; }
.gl-addr { min-width: 12rem; }
.gl-table td { padding-top: .45rem; padding-bottom: .45rem; }
.setting-found { box-shadow: 0 0 0 .2rem var(--bs-primary-border-subtle); scroll-margin-top: 1rem; }

/* The ticket page's sidebar is narrow: its forms take one field a row. */
.ticket-side .col-md-6 { flex: 0 0 auto; width: 100%; }
.ticket-side .table { font-size: .875rem; }

/* DNS record names: whole names on a line where they fit, not split mid-word. */
.mono.dns-name { display: inline-block; min-width: 12rem; overflow-wrap: break-word; }

/* Pages of many sections (VPS, Settings): a grouped menu down the side
   (see sectionNav in admin.js), a drop-down on narrow screens. */
.min-w-0 { min-width: 0; }
@media (min-width: 992px) { .section-nav { position: sticky; top: 1rem; } }
.section-nav-group { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); padding: 0 .75rem .25rem; }
.section-nav .list-group-item { border: 0; border-radius: .375rem; padding: .4rem .75rem; font-size: .925rem; background: transparent; color: var(--bs-body-color); }
.section-nav .list-group-item:hover { background: var(--bs-tertiary-bg); }
.section-nav .list-group-item.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 600; }
.section-nav-icon { width: 1rem; flex-shrink: 0; opacity: .8; }
.section-title { padding-bottom: .75rem; border-bottom: 1px solid var(--bs-border-color); }
.section-title-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: .5rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-size: 1.1rem; }
.status-tile { background: var(--bs-tertiary-bg); }
.status-tile-icon { font-size: 1.5rem; width: 2rem; text-align: center; flex-shrink: 0; }
