/* Webmin, on top of MMOT's mmot.css: the same tokens, cards and layout. */
.wm-soon { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
           color: var(--muted); background: var(--soft); border-radius: 999px; padding: 1px 7px; }
.wm-page { display: grid; gap: 16px; max-width: 1100px; width: 100%; }
.wm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wm-tile { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: inherit; text-decoration: none; }
a.wm-tile:hover { border-color: var(--line-strong); }
.wm-tile b { font-size: 24px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.wm-tile span { font-size: 13px; color: var(--muted); }
.tw { overflow-x: auto; }
table.wm { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.wm th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.wm td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.wm tr:last-child td { border-bottom: 0; }
table.wm td.c, table.wm th.c { text-align: center; }
table.wm .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
table.wm tr.off td { opacity: .6; }
.wm-code { font: 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.tick { color: var(--good); font-weight: 700; } .none { color: var(--muted); }
.chip { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--soft); color: var(--muted); }
.chip.active, .chip.good { background: var(--good-bg); color: var(--good); } .chip.invited, .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.off, .chip.bad { background: var(--bad-bg); color: var(--bad); }
.wm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-chips button { font: 600 12.5px var(--font-body); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--heading); cursor: pointer; }
.wm-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.wm-chips button em { font-style: normal; opacity: .7; margin-left: 4px; }
.sm { font: 600 12.5px var(--font-body); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--heading); cursor: pointer; white-space: nowrap; }
.sm:hover:not(:disabled) { background: var(--soft); } .sm:disabled { opacity: .5; cursor: default; }
.sm.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line-strong)); }
.acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.wm-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.wm-row h2 .count { font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 6px; }
.wm-search { font: 14px var(--font-body); padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); min-width: 0; flex: 0 1 260px; }
.wm-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 18px; margin: 8px 0 2px; }
.wm-guide dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wm-guide dd { margin: 1px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.wm-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; margin: 6px 0 0; }
.wm-kv dt { color: var(--muted); } .wm-kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.wm-pre { font: 12.5px/1.55 var(--font-mono); background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
          white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; margin: 0; }
.wm-rules { display: grid; gap: 8px; }
.wm-rule { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.wm-rule input, .wm-input { font: 14px var(--font-body); padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); min-width: 0; }
.wm-note { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.wm-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.wm-log li { display: grid; grid-template-columns: 150px 110px minmax(0, 1fr); gap: 10px; }
.wm-log time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.wm-log .k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.wm-log .ba { display: block; font-size: 12.5px; color: var(--muted); }
.wm-code-in { font: 600 24px var(--font-mono); letter-spacing: .3em; text-align: center; }
.wm-steps { display: flex; gap: 6px; font-size: 12px; color: var(--muted); margin: -4px 0 4px; }
.wm-steps b { color: var(--heading); }
@media (max-width: 640px) { .wm-rule { grid-template-columns: minmax(0, 1fr); } .wm-log li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
table.wm td:first-child { min-width: 240px; }
/* Companies, Credits, Transfers */
.wm-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; align-items: end; margin-top: 6px; }
.wm-form > label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--heading); }
.wm-form .span2 { grid-column: span 2; } .wm-form .span3 { grid-column: 1 / -1; }
.wm-form-foot { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.wm-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; grid-column: span 2; }
.wm-input, select.wm-input { width: 100%; }
.wm-num { max-width: 120px; }
.wm-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.wm-inline .wm-input { width: auto; }
.wm-tier { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--heading); }
.wm-tier.t-gld { background: color-mix(in srgb, #C9A227 18%, transparent); } .wm-tier.t-plt { background: color-mix(in srgb, #8A97A8 20%, transparent); }
.wm-tier.t-dmd { background: color-mix(in srgb, #4FA3C7 20%, transparent); }
tr.wm-total td { background: var(--soft); }
.wm-values { display: grid; gap: 8px; }
.wm-value { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.wm-saved { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--good); }
.wm-legend { font-size: 13px; font-weight: 600; color: var(--heading); }
.wm-moves { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.wm-moves li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.wm-moves li.none { opacity: .6; }
.wm-moves label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.wm-moves label > span { display: grid; gap: 1px; }
.wm-moves .sub, .wm-radio .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.wm-after { font-size: 12.5px; color: var(--accent); }
.wm-radio { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.wm-radio legend { font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 4px; padding: 0; }
.wm-radio label { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 600; }
.wm-radio label .sub { margin-left: 4px; }
@media (max-width: 760px) { .wm-form { grid-template-columns: minmax(0, 1fr); } .wm-form .span2, .wm-check { grid-column: auto; } }
.nowrap { white-space: nowrap; }
.wm-count { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; }
.wm-reqs { display: grid; gap: 14px; }
.wm-req h2 { font-size: 16px; }
.wm-note-in { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--heading); margin-top: 10px; }
.wm-kv .sub { display: block; font-size: 12.5px; color: var(--muted); }
/* Daily summary and Search log */
.wm-wide { max-width: 1400px; }
.wm-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.wm-filters > label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--heading); }
.wm-filters .wm-input { width: auto; min-width: 150px; }
.wm-filters .wm-check { grid-column: auto; align-self: center; }
table.wm-grid th.num, table.wm-grid td.num, table.wm td.num, table.wm th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.wm-grid thead th .sub { margin-top: 3px; }
tr.wm-grp th { background: var(--soft); font-size: 12.5px; color: var(--heading); text-align: left; }
tr.wm-grp th.num { text-align: right; }
.wm-n { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.wm-zero { color: var(--bad); font-weight: 700; }
/* Feedback: testers' notes from hil's MCW, approved for build */
.fb-bar { margin-top: 10px; justify-content: flex-start; }
.fb-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--heading); }
.fb-bulk { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.fb-list { display: grid; gap: 12px; }
.fb { display: grid; gap: 10px; }
.fb-top { display: flex; gap: 12px; align-items: flex-start; }
.fb-top .fb-pick { margin-top: 5px; width: 16px; height: 16px; flex: none; }
.fb-h { display: grid; gap: 6px; min-width: 0; }
.fb-h h2 { margin: 0; font-size: 16px; line-height: 1.35; }
.fb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-said { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line-strong); background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.fb-act { display: grid; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fb-act em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--warn); }
.fb-act textarea, .fb-act p { font: 14px/1.5 var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); margin: 0; resize: vertical; }
.fb-ctx dd { overflow-wrap: anywhere; }
.fb-ctx .sub { display: block; color: var(--muted); font-size: 12.5px; }
.fb-err { display: grid; gap: 3px; } .fb-err code { font: 12px var(--font-mono); color: var(--bad); }
.fb-mcw summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.fb-mcw p { margin: 4px 0 0; font-size: 13px; }
.fb-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.fb-note { flex: 1 1 220px; }

/* ⓘ: an explanation that shows on hover, keyboard focus or a tap (WM.tip in webmin.js). Escape closes it. */
.wm-i { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; font-size: 13px; font-weight: 400; line-height: 1; }
.wm-i-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: help; }
.wm-i-btn:hover, .wm-i.open .wm-i-btn { color: var(--navy); }
.wm-i-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; color: var(--navy); }
.wm-i-tip { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 80; transform: translateX(calc(-50% + var(--dx, 0px)));
  width: max-content; max-width: min(340px, calc(100vw - 32px)); padding: 9px 12px; border-radius: 8px;
  background: var(--ink); color: var(--card); font: 400 13px/1.5 var(--font-body); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal;
  box-shadow: 0 8px 24px rgb(0 0 0 / .2); visibility: hidden; opacity: 0; transition: opacity .12s; pointer-events: none; }
.wm-i-tip::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }  /* a bridge, so the pointer can move onto the text */
.wm-i-tip b, .wm-i-tip strong { color: inherit; }
.wm-i-tip .wm-code, .wm-i-tip code { color: inherit; background: rgb(255 255 255 / .12); }
.wm-i:hover .wm-i-tip, .wm-i:focus-within .wm-i-tip, .wm-i.open .wm-i-tip { visibility: visible; opacity: 1; pointer-events: auto; }
.wm-i.shut .wm-i-tip { visibility: hidden; opacity: 0; pointer-events: none; }
.page-head h1 .wm-i { margin-left: 6px; }
.page-head h1 .wm-i-btn { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { .wm-i-tip { transition: none; } }

/* Phone number field (phone-field.js): the country picker beside the number, as Click2call's PhoneField. */
.ph { position: relative; display: grid; gap: 4px; font-size: 13px; }
.ph-label { font-size: 13px; color: var(--muted); }
.ph-row { position: relative; display: flex; gap: 6px; }
.ph-cc { display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--ink); font: 600 13px var(--font-body); cursor: pointer; white-space: nowrap; }
.ph-cc:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.ph-flagimg { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); flex: none; }
.ph-chev { font-size: 10px; color: var(--faint); }
.ph-input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.ph-menu { position: absolute; z-index: 70; top: calc(100% + 4px); left: 0; width: min(340px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); box-shadow: 0 10px 28px rgb(0 0 0 / .2); display: grid; gap: 6px; }
.ph-list { max-height: 260px; overflow-y: auto; display: grid; }
.ph-group { margin: 6px 6px 2px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.ph-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.ph-opt.at, .ph-opt:hover { background: var(--soft); }
.ph-opt[aria-selected="true"] .ph-name { font-weight: 700; }
.ph-code { color: var(--muted); font-variant-numeric: tabular-nums; }
.ph-none { margin: 6px; color: var(--muted); }
.ph-under { margin: 0; min-height: 0; font-size: 12.5px; }
.ph-under:empty { display: none; }
.ph-bad { color: var(--bad); } .ph-good { color: var(--muted); } .ph-good b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Plan comparison tables (/plans): a line between plans, plan colors on the heads, the row name stays in view */
table.wm-cmp { border-collapse: separate; border-spacing: 0; }
table.wm-cmp th, table.wm-cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.wm-cmp tbody tr:last-child > * { border-bottom: 0; }
table.wm-cmp tbody:not(:last-child) tr:last-child > * { border-bottom: 1px solid var(--line); }
table.wm-cmp .pl { border-left: 2px solid var(--line-strong); }
table.wm-cmp tbody th[scope="row"] { font-size: 13.5px; font-weight: 600; color: var(--heading); text-align: left; white-space: normal; }
table.wm-cmp tbody tr:not(.wm-grp):hover > * { background: var(--soft); }
table.wm.wm-cmp > * > tr > :first-child { position: sticky; left: 0; z-index: 2; background: var(--card); min-width: 170px; }
table.wm-cmp tbody tr:hover > :first-child, table.wm-cmp tr.wm-grp > :first-child { background: var(--soft); }
table.wm-cmp > * > tr > :first-child:has(.wm-i:hover, .wm-i:focus-within, .wm-i.open) { z-index: 6; }
table.wm-cmp th.wm-cmp-plan { font-size: 15px; font-weight: 700; color: var(--heading); text-align: center; border-top: 3px solid var(--line-strong); background: var(--card); }
table.wm-cmp th.wm-cmp-plan.gld { border-top-color: #C9A227; }
table.wm-cmp th.wm-cmp-plan.plt { border-top-color: #8A97A8; }
table.wm-cmp th.wm-cmp-plan.dmd { border-top-color: #4FA3C7; }
table.wm-cmp th.wm-cmp-plan .wm-code { display: block; font-weight: 400; margin-top: 2px; }
table.wm-cmp th.wm-cmp-win { text-transform: capitalize; }
table.wm-cmp td.num { font-size: 13px; }
.wm-cmp-limits td.num, .wm-cmp-limits th.num { padding-left: 6px; padding-right: 8px; }
table.wm.wm-cmp-limits > * > tr > :first-child { min-width: 140px; }
.wm-cmp-wide { table-layout: fixed; min-width: 640px; }
.wm-cmp-wide thead td:first-child { width: 170px; }
.wm-cmp-wide > * > tr > * { vertical-align: top; }
.wm-cmp-wide td { font-variant-numeric: tabular-nums; }
table.wm-cmp td.wm-cmp-text { font-size: 13px; line-height: 1.5; color: var(--muted); }
table.wm-cmp td.wm-cmp-big { font-size: 20px; font-weight: 700; color: var(--heading); }
.wm-cmp-limits { min-width: 820px; }
.wm-cmp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.wm-cmp-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.wm-cmp-incl { table-layout: fixed; }
table.wm.wm-cmp-incl > * > tr > :first-child { width: 40%; min-width: 0; overflow-wrap: anywhere; }
.wm-cmp-incl thead th, .wm-cmp-incl thead td { position: sticky; top: var(--top-h); z-index: 3; background: var(--card); }
.wm-cmp-incl thead td { z-index: 4; }
table.wm-cmp tr.wm-grp th { padding-top: 8px; padding-bottom: 8px; }
table.wm-cmp th.wm-cmp-count { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.wm-cmp .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
table.wm-cmp td.wm-cmp-yes { color: #1F8A4C; line-height: 0; vertical-align: middle; }
table.wm-cmp td.wm-cmp-no { color: var(--muted); vertical-align: middle; }
table.wm-cmp td.wm-cmp-level { font-size: 12.5px; line-height: 1.35; vertical-align: middle; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) table.wm-cmp td.wm-cmp-yes { color: #5FCB8C; } }
:root[data-theme="dark"] table.wm-cmp td.wm-cmp-yes { color: #5FCB8C; }
@media (max-width: 640px) {
  table.wm-cmp th, table.wm-cmp td { padding: 8px; }
  table.wm.wm-cmp > * > tr > :first-child { min-width: 112px; }
  .wm-cmp-wide thead td:first-child { width: 112px; }
  table.wm.wm-cmp-limits > * > tr > :first-child { min-width: 112px; max-width: 112px; }
  table.wm.wm-cmp-incl > * > tr > :first-child { width: 40%; min-width: 0; }
  table.wm-cmp th.wm-cmp-plan { font-size: 12.5px; padding-left: 2px; padding-right: 2px; }
  table.wm-cmp th.wm-cmp-count { font-size: 11px; padding-left: 2px; padding-right: 2px; }
}

/* WM.ask: a confirmation on the page, in place of the browser's own box */
.wm-ask-scrim { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .4); }
.wm-ask { width: min(460px, 100%); display: grid; gap: 10px; padding: 18px 20px; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 18px 40px rgb(0 0 0 / .25); }
.wm-ask h2 { margin: 0; font-size: 16px; line-height: 1.4; color: var(--heading); }
.wm-ask p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.wm-ask-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
