/* ============================================================
   Provantis App 2026 — shared component layer
   Loaded by base-app-2026.html on every logged-in app page.
   All classes prefixed a26- to avoid collisions with the
   legacy app.css / redesign.css layer.
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────────── */
.a26-gold  { color: #b8902a; }
.a26-muted { color: #66717c; }

/* ── Page hero ───────────────────────────────────────────────── */
.a26-hero {
  padding: 30px 0 26px;
  border-bottom: 1px solid #e3ddd0;
  margin-bottom: 24px;
}
.a26-eyebrow {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #b8902a; font-weight: 500; margin-bottom: 10px;
}
.a26-h1 {
  font-size: clamp(22px, 2.8vw, 34px); font-weight: 400; line-height: 1.18;
  color: #101c2c; margin: 0 0 10px; letter-spacing: -.01em;
}
.a26-lead {
  font-size: 13px; line-height: 1.65; color: #66717c; max-width: 640px; margin: 0;
}
.a26-back-link {
  display: inline-block; font-size: 12px; color: #66717c;
  text-decoration: none; margin-bottom: 18px;
  border-bottom: 1px solid transparent;
}
.a26-back-link:hover { color: #101c2c; border-color: #e3ddd0; }

/* ── Panel (replaces .card.boardroom-card) ───────────────────── */
.a26-panel {
  border: 1px solid #e3ddd0; background: #faf7f0;
  padding: 24px 26px 26px; margin-bottom: 18px;
}
.a26-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.a26-panel-eyebrow {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #b8902a; font-weight: 500; margin-bottom: 6px;
}
.a26-panel-title {
  font-size: 18px; font-weight: 500; color: #101c2c; margin: 0 0 6px;
}
.a26-panel-copy {
  font-size: 13px; line-height: 1.65; color: #66717c; margin: 0;
}
.a26-panel--warn  { border-left: 3px solid #b8902a; }
.a26-panel--crit  { border-left: 3px solid #c0392b; }
.a26-panel--accent{ border-left: 3px solid #101c2c; }
.a26-panel--ok    { border-left: 3px solid #2d6856; }
.a26-panel--empty { background: #f5f2ea; }

/* ── Stat strip ──────────────────────────────────────────────── */
.a26-stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 0; background: #e3ddd0; border: 1px solid #e3ddd0; margin-bottom: 18px;
}
.a26-stat {
  background: #faf7f0; padding: 18px 20px;
  border-right: 1px solid #e3ddd0;
}
.a26-stat:last-child { border-right: none; }
.a26-stat-num  { font-size: 26px; font-weight: 400; color: #101c2c; line-height: 1; margin-bottom: 4px; }
.a26-stat-label{ font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: #66717c; font-weight: 500; }
.a26-stat-sub  { font-size: 11px; color: #66717c; margin-top: 4px; }

/* ── Score card ──────────────────────────────────────────────── */
.a26-score-block { }
.a26-score-num   { font-size: 48px; font-weight: 400; color: #101c2c; line-height: 1; display: inline; }
.a26-score-unit  { font-size: 16px; color: #66717c; }
.a26-score-band  {
  display: inline-block; padding: 2px 10px; font-size: 10px;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
  border: 1px solid #e3ddd0; color: #66717c; margin-left: 10px; vertical-align: middle;
}

/* ── Pillar grid ─────────────────────────────────────────────── */
.a26-pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 18px;
}
.a26-pillar { border-left: 2px solid #e3ddd0; padding-left: 14px; }
.a26-pillar-eyebrow {
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  color: #b8902a; font-weight: 500; margin-bottom: 6px;
}
.a26-pillar-body { font-size: 12px; color: #66717c; line-height: 1.6; }

/* ── Steps list ──────────────────────────────────────────────── */
.a26-steps { list-style: none; padding: 0; margin: 0; }
.a26-steps li {
  display: flex; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid #e3ddd0;
}
.a26-steps li:first-child  { padding-top: 0; }
.a26-steps li:last-child   { border-bottom: none; padding-bottom: 0; }
.a26-step-num {
  width: 26px; height: 26px; border-radius: 50%; background: #101c2c;
  color: #faf7f0; font-size: 11px; font-weight: 500; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.a26-steps p { margin: 4px 0 0; font-size: 12px; color: #66717c; line-height: 1.55; }
.a26-steps strong { font-size: 13px; color: #101c2c; }

/* ── Tips list ───────────────────────────────────────────────── */
.a26-tips { padding: 0; margin: 0; list-style: none; }
.a26-tips li {
  font-size: 12px; color: #66717c; line-height: 1.6;
  padding: 8px 0 8px 16px; border-bottom: 1px solid #e3ddd0; position: relative;
}
.a26-tips li:last-child { border-bottom: none; }
.a26-tips li::before { content: "—"; position: absolute; left: 0; color: #b8902a; font-size: 11px; }
.a26-tips strong { color: #101c2c; }
.a26-tips a { color: #b8902a; }

/* ── Table (flex rows) ───────────────────────────────────────── */
.a26-table { border-top: 2px solid #101c2c; }
.a26-table-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #e3ddd0;
}
.a26-table-row:last-child { border-bottom: none; }
.a26-table-head {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: #66717c; font-weight: 500; padding: 8px 0;
  border-bottom: 1px solid #e3ddd0;
}
.a26-table-cell { flex: 1; font-size: 13px; color: #101c2c; min-width: 0; }
.a26-table-cell--shrink { flex: 0 0 auto; white-space: nowrap; }
.a26-table-cell--actions{ display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.a26-meta { font-size: 11px; color: #66717c; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.a26-meta > span { white-space: nowrap; }

/* HTML <table> variant (verified domains list) */
.a26-htable { width: 100%; border-collapse: collapse; }
.a26-htable th {
  text-align: left; font-size: 10px; text-transform: uppercase;
  letter-spacing: .1em; color: #66717c; font-weight: 500;
  padding: 0 12px 8px 0; border-bottom: 2px solid #101c2c;
}
.a26-htable td {
  font-size: 13px; padding: 11px 12px 11px 0; border-bottom: 1px solid #e3ddd0;
  vertical-align: top; color: #101c2c;
}
.a26-htable tr:last-child td { border-bottom: none; }
.a26-htable td:last-child,
.a26-htable th:last-child { text-align: right; padding-right: 0; }

/* ── Status pills ────────────────────────────────────────────── */
.a26-pill {
  display: inline-block; padding: 2px 8px; font-size: 10px;
  text-transform: uppercase; letter-spacing: .07em; font-weight: 500; white-space: nowrap;
}
.a26-pill--ok     { background: #eaf4ee; color: #2d6856; border: 1px solid #b0d9c4; }
.a26-pill--warn   { background: #fdf8ec; color: #8a6e31; border: 1px solid #e8d080; }
.a26-pill--crit   { background: #fdf0ee; color: #8a3a31; border: 1px solid #e8b0a8; }
.a26-pill--navy   { background: #101c2c; color: #faf7f0; border: 1px solid #101c2c; }
.a26-pill--neutral{ background: #f0ede8; color: #66717c; border: 1px solid #d6d0c8; }
.a26-pill--gold   { background: #fdf8ec; color: #8a6e31; border: 1px solid #b8902a; }

/* ── Buttons ─────────────────────────────────────────────────── */
.a26-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #101c2c; color: #faf7f0; border: 1px solid #101c2c;
  padding: 10px 18px; font: 500 10px/1 'Inter', sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.a26-btn-primary:hover { background: #b8902a; border-color: #b8902a; color: #101c2c; }
.a26-btn-primary[disabled] {
  background: #f0ede8; border-color: #e3ddd0; color: #66717c;
  cursor: not-allowed;
}
.a26-btn-primary[disabled]:hover { background: #f0ede8; border-color: #e3ddd0; color: #66717c; }
.a26-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #101c2c; border: 1px solid #e3ddd0;
  padding: 10px 18px; font: 500 10px/1 'Inter', sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color .15s;
}
.a26-btn-ghost:hover { border-color: #101c2c; }

/* ── Forms ───────────────────────────────────────────────────── */
.a26-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px;
}
.a26-field { display: flex; flex-direction: column; }
.a26-full  { grid-column: 1 / -1; }
.a26-label {
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  color: #101c2c; font-weight: 500; margin-bottom: 7px;
}
.a26-req { color: #b8902a; letter-spacing: .13em; margin-left: 4px; }
.a26-input, .a26-select, .a26-textarea {
  font-family: 'Inter', system-ui, sans-serif; font-size: 13px; color: #101c2c;
  background: #fff; border: 1px solid #e3ddd0; border-radius: 0;
  padding: 11px 13px; outline: none; appearance: none; -webkit-appearance: none;
  width: 100%; box-sizing: border-box;
}
.a26-input:focus, .a26-select:focus, .a26-textarea:focus { border-color: #101c2c; }
.a26-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23101c2c' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; cursor: pointer;
}
.a26-textarea { resize: vertical; }
.a26-checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: #101c2c; line-height: 1.55; cursor: pointer;
}
.a26-checkbox-row input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.a26-form-actions {
  display: flex; gap: 10px; align-items: center; margin-top: 24px;
  padding-top: 18px; border-top: 1px solid #e3ddd0; flex-wrap: wrap;
}
.a26-field-hint  { font-size: 11px; color: #66717c; margin-top: 5px; line-height: 1.5; }
.a26-form-section{
  font-size: 10px; text-transform: uppercase; letter-spacing: .13em;
  color: #66717c; font-weight: 500; padding: 14px 0 8px;
  border-bottom: 1px solid #e3ddd0; margin-bottom: 2px; grid-column: 1/-1;
}

/* ── Notice/alert banners ────────────────────────────────────── */
.a26-notice {
  border: 1px solid #e3ddd0; border-left: 3px solid #b8902a;
  background: #fdf8ec; padding: 14px 16px; font-size: 13px;
  color: #101c2c; line-height: 1.55; margin-bottom: 18px;
}
.a26-notice--navy { border-left-color: #101c2c; background: #f5f7fa; }
.a26-notice--ok   { border-left-color: #2d6856; background: #eaf4ee; }
.a26-notice--crit { border-left-color: #c0392b; background: #fdf0ee; }
.a26-alert {
  border: 1px solid #e8b0a8; padding: 12px 16px; font-size: 13px;
  margin-bottom: 14px; background: #fdf0ee; color: #8a3a31;
}
.a26-alert--ok { background: #eaf4ee; color: #2d6856; border-color: #b0d9c4; }

/* ── Code blocks (verified-domains verify page) ──────────────── */
.a26-code {
  display: block; background: #0b1220; color: #e7ecf3;
  padding: 10px 14px; font-size: 12px; font-family: ui-monospace, 'SFMono-Regular', monospace;
  border: 1px solid #e3ddd0; overflow-x: auto; white-space: pre;
  margin: 8px 0;
}
.a26-code-block {
  background: #0b1220; color: #e7ecf3; padding: 14px 16px;
  font-family: ui-monospace, 'SFMono-Regular', monospace; font-size: 12px;
  border: 1px solid #2a3a50; margin: 12px 0; overflow-x: auto;
}
.a26-code-block code { color: #e7ecf3; }
.a26-code-kv {
  display: inline-flex; flex-direction: column; margin-right: 24px; margin-bottom: 6px;
  vertical-align: top;
}
.a26-code-kv span { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-bottom: 2px; }
.a26-code-kv code { color: #fbbf24; font-size: 12px; }
/* <details> advanced section */
.a26-details {
  border: 1px solid #e3ddd0; padding: 0 16px; margin-bottom: 8px;
}
.a26-details[open] { padding-bottom: 12px; }
.a26-details summary { padding: 10px 0; }

/* ── Verify-method cards ─────────────────────────────────────── */
.a26-method { border: 1px solid #e3ddd0; padding: 18px 20px; margin-bottom: 12px; }
.a26-method--featured { border-left: 3px solid #b8902a; }
.a26-method h3 { margin: 0 0 4px; font-size: 15px; font-weight: 500; color: #101c2c; }
.a26-method-sub { font-size: 10px; color: #b8902a; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; margin-bottom: 8px; display: block; }
.a26-method p   { font-size: 12px; color: #66717c; margin: 0 0 10px; line-height: 1.55; }
.a26-method ol  { padding-left: 18px; margin: 0 0 10px; }
.a26-method ol li { font-size: 12px; color: #66717c; line-height: 1.55; }
.a26-method-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

/* ── Support ticket thread ───────────────────────────────────── */
.sp26-thread { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.sp26-main   { flex: 1; min-width: 300px; }
.sp26-aside  { width: 260px; flex-shrink: 0; }
.sp26-message { border: 1px solid #e3ddd0; margin-bottom: 12px; }
.sp26-msg-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap; padding: 9px 14px;
  border-bottom: 1px solid #e3ddd0; background: #f0ede8;
}
.sp26-msg-head--staff { background: #101c2c; }
.sp26-msg-name { font-size: 13px; font-weight: 500; color: #101c2c; }
.sp26-msg-head--staff .sp26-msg-name { color: #faf7f0; }
.sp26-msg-time { font-size: 12px; color: #66717c; }
.sp26-msg-head--staff .sp26-msg-time { color: #b8b0a4; }
.sp26-msg-body { font-size: 13px; white-space: pre-wrap; padding: 14px; color: #101c2c; line-height: 1.6; }
.sp26-reply-box {
  border: 1px solid #e3ddd0; border-top: 2px solid #b8902a;
  padding: 16px; margin-bottom: 20px;
}
.sp26-details-panel {
  border: 1px solid #e3ddd0; border-top: 2px solid #b8902a; padding: 16px;
}
.sp26-detail-field { margin-bottom: 12px; }
.sp26-detail-label {
  display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #94a3b8; margin-bottom: 3px; font-weight: 500;
}
.sp26-detail-value { font-size: 13px; color: #101c2c; }
.sp26-staff-status-box { border: 1px solid #e3ddd0; padding: 14px 16px; margin-top: 12px; }

/* ── Filter tabs + search ────────────────────────────────────── */
.a26-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.a26-filter-tab {
  padding: 6px 14px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 500; text-decoration: none; color: #66717c;
  border: 1px solid #e3ddd0; background: #faf7f0; transition: background .12s, color .12s;
}
.a26-filter-tab--active { background: #101c2c; color: #faf7f0; border-color: #101c2c; }
.a26-filter-tab:hover:not(.a26-filter-tab--active) { border-color: #101c2c; color: #101c2c; }
.a26-search-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* ── Reports graduation ──────────────────────────────────────── */
.a26-report-empty {
  border: 1px solid #e3ddd0; padding: 40px 28px; text-align: center;
  font-size: 13px; color: #66717c; line-height: 1.65;
}

/* ── Layout with executive right rail ────────────────────────── */
.a26-layout { display: flex; gap: 0; align-items: flex-start; }
.a26-layout-main { flex: 1; min-width: 0; padding-right: 22px; }
.a26-layout-rail { width: 280px; flex-shrink: 0; }

/* ── Definition list (account profile) ──────────────────────── */
.a26-deflist {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 10px 24px; margin: 0;
}
.a26-deflist dt {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: #66717c; font-weight: 500; margin: 0; align-self: baseline;
}
.a26-deflist dd { font-size: 13px; color: #101c2c; margin: 0; }

/* ── Password wrap (account) ─────────────────────────────────── */
.a26-pw-wrap { position: relative; }
/* Suppress the browser's built-in reveal eye (Edge) — it overlaps our toggle */
.a26-pw-wrap input::-ms-reveal,
.a26-pw-wrap input::-ms-clear { display: none; }
/* pw-eye-wrap is injected by the auto-decorator in app.js — suppress Edge reveal there too */
.pw-eye-wrap input::-ms-reveal,
.pw-eye-wrap input::-ms-clear { display: none; }
/* Extra right padding keeps text clear of the custom toggle button */
.a26-pw-wrap input { padding-right: 68px; width: 100%; box-sizing: border-box; }
.a26-pw-toggle {
  /* Inset 26px from the right so a browser/extension eye (anchored to the
     input's right edge) can never sit on top of the custom toggle */
  position: absolute; top: 50%; right: 26px; transform: translateY(-50%);
  background: transparent; border: 0; padding: 6px; cursor: pointer;
  color: #101c2c; opacity: 0.55; display: inline-flex; align-items: center;
}
.a26-pw-toggle:hover { opacity: 1; }
.a26-pw-toggle:focus-visible { outline: 1px solid #b8902a; outline-offset: 2px; }

/* ── Plan grid (billing) ─────────────────────────────────────── */
.a26-plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 14px;
}
.a26-plan-card { border: 1px solid #e3ddd0; padding: 20px 22px; background: #fff; display: flex; flex-direction: column; }
.a26-plan-card form:last-child,
.a26-plan-card > button:last-child,
.a26-plan-card > *:last-child { margin-top: auto; }
.a26-plan-card--current { border-color: #b8902a; }
.a26-plan-name  { font-size: 17px; font-weight: 500; color: #101c2c; margin-bottom: 4px; }
.a26-plan-price {
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.05em;
  color: #101c2c;
  margin: 10px 0 14px;
}
.a26-plan-per { font-size: 12px; letter-spacing: normal; color: #66717c; }
.a26-plan-features { list-style: disc; padding-left: 18px; margin: 0 0 16px; }
.a26-plan-features li { font-size: 12px; color: #66717c; line-height: 1.55; }

/* ── Inline form (for wrapping small POST forms) ─────────────── */
.a26-inline-form { display: inline; margin: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
/* ── Responsive two-panel row ────────────────────────────────── */
/* Side-by-side panels that collapse to a single column on narrow
   viewports. Use as a wrapper around two <section class="a26-panel">
   elements. Collapses at 720 px — well before phones. */
.a26-panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 840px) {
  .a26-pillars  { grid-template-columns: 1fr 1fr; }
  .a26-method-grid { grid-template-columns: 1fr; }
  .a26-layout   { flex-direction: column; }
  .a26-layout-main { padding-right: 0; }
  .a26-layout-rail { width: 100%; }
  .a26-panel-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .a26-pillars  { grid-template-columns: 1fr; }
  .a26-form     { grid-template-columns: 1fr; }
  .a26-full     { grid-column: 1; }
  .a26-plan-grid{ grid-template-columns: 1fr; }
  .a26-stat-strip{ grid-template-columns: 1fr 1fr; }
  .a26-stat { border-bottom: 1px solid #e3ddd0; }
}
