/* Administration, configuration and testing (module 36). Prefix: ad- */
.ad-saved { flex-wrap: wrap; gap: 6px; }
.ad-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #e0e7ed; }
.ad-bulk select { max-width: 280px; }
.ad-bulk .sub { color: var(--text2, #5b6b7f); font-size: 12px; }
.ad-note { margin: 8px 0 0; font-size: 12.5px; color: var(--text2, #5b6b7f); white-space: pre-line; }
.ad-warn { color: #a5560a !important; }
.nowrap, .ct-tbl td.nowrap, .ct-tbl a.nowrap { white-space: nowrap; }
.ad-wrap { white-space: normal; overflow-wrap: anywhere; min-width: 160px; }
.ad-pos { width: 34px; color: var(--text2, #5b6b7f); font-variant-numeric: tabular-nums; }
.ad-short { width: 90px; }
.ad-sum { font-size: 11.5px; background: #f2f5f9; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* status lists in the admin centre */
.px-health.ad-health li { align-items: flex-start; }
.px-health.ad-health .l { flex: 1 1 auto; width: auto; min-width: 0; }
.ad-health .l small { display: block; font-weight: 400; color: var(--px-mut, #6b7a8c); font-size: 11.5px; margin-top: 1px; overflow-wrap: anywhere; }
.ad-health .l a { color: inherit; }
.px-health.ad-health .v { flex: none; font-weight: 700; color: var(--px-ink, #12253a); text-align: right; max-width: 40%; }
.ad-health .ad-ic { color: var(--brand-primary, #1a7fe0); margin-right: 6px; font-size: 13px; }
.ad-health .st.ad-off { background: #eef1f5; color: #8a9bb0; }
.ad-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.ad-two > * { min-width: 0; }
.ad-mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ad-mini3 > * { min-width: 0; }
.ad-compact td, .ad-compact th { padding-top: 7px; padding-bottom: 7px; }
.ad-compact .sub { display: block; }
.ct-tbl.ad-compact td { white-space: normal; overflow-wrap: anywhere; }
.ct-tbl.ad-compact td.r { white-space: nowrap; }
.ad-feed { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.ad-feed li { padding: 6px 8px; border-left: 3px solid #cfe0f3; background: #fafcfe; border-radius: 0 6px 6px 0; min-width: 0; }
.ad-feed b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ad-feed small { color: var(--px-mut, #6b7a8c); }
.ad-total td { background: #f6f9fc; font-weight: 600; }

/* this installation */
.ad-inst { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; margin-bottom: 10px; }
.ad-inst > i { font-size: 22px; flex: none; }
.ad-inst div { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.ad-inst b { font-size: 14px; }
.ad-inst .sub { color: var(--text2, #5b6b7f); }
.ad-inst.live { background: #ecf8f3; border: 1px solid #bfe6d4; } .ad-inst.live > i { color: #12a079; }
.ad-inst.sb { background: #fff7e0; border: 1px solid #f0d58a; } .ad-inst.sb > i { color: #b57a00; }

/* chips */
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid #d9e3ee; background: #fff; color: var(--text, #12253a); font-size: 12.5px; text-decoration: none; }
.ad-chip b { font-weight: 700; color: var(--brand-primary, #1a7fe0); }
.ad-chip.on { background: var(--brand-primary, #1a7fe0); border-color: var(--brand-primary, #1a7fe0); color: #fff; }
.ad-chip.on b { color: #fff; }

/* overlap pairs and lists */
.ad-pair { padding: 10px 12px; border: 1px solid #f0d58a; border-left: 4px solid #d99a06; border-radius: 8px; background: #fffbef; margin-bottom: 8px; min-width: 0; }
.ad-pair.bad { border-color: #f2c0c7; border-left-color: #d6334b; background: #fff5f6; }
.ad-pair h4 { margin: 0 0 4px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-pair p { margin: 2px 0; font-size: 12.5px; overflow-wrap: anywhere; }
.ad-list { margin: 6px 0; padding-left: 18px; font-size: 12.5px; }
.ad-list li { margin: 3px 0; }
.ad-steps { margin: 12px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text2, #5b6b7f); }
.mut { color: var(--text2, #5b6b7f); }

/* forms */
.ad-cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ad-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.ad-cols2 > *, .ad-cols3 > * { min-width: 0; }
.ad-checks { display: flex; flex-direction: column; gap: 6px; }
.ad-checks2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.ad-checks .sub { color: var(--text2, #5b6b7f); font-size: 11.5px; margin-left: 4px; }
.ad-checks.has-err { outline: 1px solid #d6334b; outline-offset: 6px; border-radius: 4px; }
.ad-checks .err { color: #b4232c; font-size: 12px; }
.ad-btnrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-btnrow form { margin: 0; }
.ad-inline { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #dde5ed; }
.ad-num { width: 70px; text-align: right; }
.ad-arrange td { vertical-align: middle; }
.ad-colrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-contact { border: 1px solid #e3eaf2; border-radius: 8px; padding: 6px 10px 2px; margin: 0 0 8px; min-width: 0; }
.ad-contact legend { font-size: 12px; font-weight: 700; color: var(--text2, #5b6b7f); padding: 0 4px; }
.ad-inlineform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ad-inlineform .ct-input { flex: 1 1 240px; min-width: 0; }
.ad-defs dt { font-weight: 700; }
.ad-defs dd { margin: 0 0 8px; color: var(--text2, #5b6b7f); }

/* try it */
.ad-result { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; margin-bottom: 10px; border: 1px solid #dde5ed; background: #f8fbfd; }
.ad-result > i { font-size: 22px; flex: none; }
.ad-result div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.ad-result .sub { color: var(--text2, #5b6b7f); }
.ad-result.ok { background: #ecf8f3; border-color: #bfe6d4; } .ad-result.ok > i { color: #12a079; }
.ad-result.warn { background: #fff7e0; border-color: #f0d58a; } .ad-result.warn > i { color: #b57a00; }
.ad-result.bad { background: #fff3f4; border-color: #f2c0c7; } .ad-result.bad > i { color: #d6334b; }
.ad-hit td { background: #eaf4ff; font-weight: 600; }

/* matrices */
.ad-matrix th.c, .ad-matrix td.c { text-align: center; white-space: nowrap; }
.ad-matrix th.c { font-size: 11.5px; max-width: 110px; white-space: normal; }
.ad-yes { color: #12a079; } .ad-no { color: #d6334b; } .ad-some { color: #d99a06; }

/* offering preview and the portal */
.ad-preview { border: 1px dashed #c9d7e6; border-radius: 10px; padding: 14px; background: #fbfdff; }
.ad-preview h4 { margin: 0 0 6px; font-size: 15px; }
.ad-preview p { margin: 6px 0; font-size: 13px; }
.ad-offer { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ad-offer-item { border: 1px solid #e3eaf2; border-radius: 10px; padding: 12px 14px; background: #fbfdff; min-width: 0; }
.ad-offer-item h4 { margin: 0 0 6px; font-size: 14.5px; }
.ad-offer-item p { margin: 4px 0; font-size: 13px; }
.ad-offer-item .ad-btnrow { margin-top: 10px; }

/* layout sketch */
.ad-sketch { border: 1px solid #dbe4ee; border-radius: 10px; overflow: hidden; background: #fff; font-size: 12px; }
.ad-sketch .tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #f3f6fa; border-bottom: 1px solid #dbe4ee; }
.ad-sketch .tabs span { padding: 4px 9px; border-radius: 6px; background: #fff; border: 1px solid #dbe4ee; }
.ad-sketch .tabs span.on { background: var(--brand-primary, #1a7fe0); color: #fff; border-color: var(--brand-primary, #1a7fe0); }
.ad-sketch .body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; padding: 10px; }
.ad-sketch .main { display: flex; flex-direction: column; gap: 8px; }
.ad-sketch .main i { display: block; height: 26px; border-radius: 6px; background: #eef3f8; }
.ad-sketch .main i.s { width: 70%; }
.ad-sketch.ad-compact .main i { height: 16px; } .ad-sketch.ad-compact .main { gap: 5px; }
.ad-sketch .side { display: flex; flex-direction: column; gap: 6px; }
.ad-sketch .side b { display: block; padding: 6px 8px; border-radius: 6px; background: #f7fafd; border: 1px solid #e3eaf2; font-weight: 600; overflow-wrap: anywhere; }
.ad-sketch .side em { color: var(--text2, #5b6b7f); }

/* stop pages */
.ad-stopbox { display: flex; gap: 16px; align-items: flex-start; padding: 8px 4px; }
.ad-stopbox > i { font-size: 38px; color: #d99a06; flex: none; }
.ad-stopbox.bad > i { color: #d6334b; }
.ad-stopbox h3 { margin: 0 0 6px; font-size: 18px; }
.ad-stopbox p { margin: 6px 0; }
.ad-stopbox div { min-width: 0; }

@media (max-width: 900px) {
    .ad-two, .ad-cols3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .ad-cols2, .ad-checks2, .ad-mini3 { grid-template-columns: minmax(0, 1fr); }
    .ad-sketch .body { grid-template-columns: minmax(0, 1fr); }
    .ad-stopbox { flex-direction: column; }
}

/* counts per status above lists */
.ad-seg { flex-wrap: wrap; align-self: flex-start; }
.ad-seg .n { font-variant-numeric: tabular-nums; opacity: .75; margin-left: 4px; }
.ad-flags { margin: 0; padding-left: 16px; font-size: 12px; color: #a5560a; }
.ad-flags li { margin: 1px 0; }
.ad-prov { border: 1px solid #e6edf4; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ad-prov .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.ad-prov .ad-mini3 { margin-top: 0; }
.ad-inhouse { font-size: 12.5px; color: var(--text2, #5b6b7f); padding: 8px 10px; background: #f6f9fc; border-radius: 8px; }
