/* eCMR Developers: local additions to the ishop admin skin (DEVPANEL-SKIN-20261114).

   admin.css next to this file is a byte-for-byte copy of ishop dev-admin's sheet, so later fixes there carry over
   by comparing the two files. Everything the developer panel needs on top of it lives here, built only from the
   variables admin.css already defines. Do not edit admin.css; add here. */

/* Accessibility (W4): the template's --muted (#8a8f98) is 3.3:1 on white, below WCAG AA for small text.
   One step darker (4.6:1 on the lightest backgrounds, accent-soft included); the only change of a measured value. */
:root { --muted: #696e77; }

/* Skip link and visually hidden text. */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.content:focus { outline: none; }

/* Links in text keep the accent (admin.css resets every link to inherit). */
.content p a, .content li a, .content td a, .help a, .login-card a, .card-foot a { color: var(--accent); }
.content p a:hover, .content li a:hover, .content td a:hover, .help a:hover, .login-card a:hover { text-decoration: underline; }

/* eCMR lockup in the side bar head and on the sign-in card (production logo, unchanged). */
.ecmr-lock { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.ecmr-lock img { display: block; height: 26px; width: auto; }
.ecmr-lock__name { font-weight: 600; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.login-card .ecmr-lock { margin-bottom: 20px; justify-content: center; width: 100%; }
.login-card .ecmr-lock img { height: 32px; }
@media (min-width: 1200px) {
  [data-menu="mini"] .ecmr-lock__name { display: none; }
}

/* The sign-in card: the forms here are longer than the operator's one. */
.login-card h1 { font-size: 21px; text-align: center; margin-bottom: 6px; }
.login-card--wide { max-width: 460px; }
.login-foot { margin: 16px 0 0; font-size: 13px; text-align: center; color: var(--ink-soft); }

/* Form fields: a label above its input, help text below; the same look as `.stack-form` inputs. */
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12.5px; color: var(--ink-soft); font-weight: 500; margin-bottom: 4px; }
.req { color: var(--red); }
.field-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
textarea.field-input { resize: vertical; min-height: 70px; line-height: 1.6; }
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-input[aria-invalid="true"] { border-color: var(--red); }
.field-input.auto-width { width: auto; min-width: 150px; }
.help { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; }
p.help { margin-top: 8px; }

/* Smaller buttons in tables and card heads. */
.small-button { padding: 6px 11px; font-size: 12.5px; }
.danger-button.small-button, .ghost-button.small-button, .primary-button.small-button { padding: 6px 11px; }
button.ghost-button, button.primary-button, button.danger-button, a.ghost-button, a.primary-button, a.danger-button { text-decoration: none; }

/* Layout helpers. */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.card-body > :last-child { margin-bottom: 0; }
.card-body > :first-child { margin-top: 0; }
.card > .card-head .card-title { margin-right: auto; }
.table-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.row-selected td { background: var(--accent-soft); }
.row-selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.content-head h1 + .content-sub { margin-top: 3px; }

/* Badges without a colour are grey; the live / brand badge is the accent. */
.badge:not(.badge-green):not(.badge-amber):not(.badge-red):not(.badge-blue) { background: var(--surface-3); color: var(--ink-soft); }
.badge-blue { background: var(--accent-soft); color: var(--accent-strong); }

/* Code: inline code in text, blocks for curl commands and JSON, secrets shown once. */
.content code, .login-card code { background: var(--surface-2); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
.code-block {
  margin: 8px 0 12px; padding: 12px 14px; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 12.5px/1.55 "Cascadia Mono", Consolas, monospace; color: var(--ink); white-space: pre;
}
.code-path { white-space: normal; word-break: break-all; }

/* Text blocks from the docs and guides. */
.prose h2, .prose h3, .prose h4 { margin: 18px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 10px; line-height: 1.6; }

/* Empty state inside a card. */
.empty { text-align: center; padding: 40px 20px; }
.empty-title { color: var(--ink); font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.empty-text { margin: 0 auto 16px; max-width: 460px; color: var(--muted); }

/* Figures of an overview card (a `dl`), in the template's stat style. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 12px; }
.stats > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 3px 0 0; font-size: 21px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Account menu: the e-mail under the avatar, organizations in the panel. */
.account-email { font-size: 13px; color: var(--ink); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-caption { padding: 8px 10px 2px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.account-panel a.is-active { color: var(--accent); font-weight: 600; }
.account-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.account-panel form { margin: 0; }
@media (max-width: 700px) { .account-email { display: none; } }
.topbar-title { color: var(--ink); font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Found in the browser (round 27): */
/* the lockup is a link but keeps the ink colour; */
.login-card a.ecmr-lock, a.ecmr-lock { color: var(--ink); text-decoration: none; }
/* the sign-in card and the line under it sit together in the middle, not at the two ends of the screen; */
.login-main { align-content: center; gap: 16px; }
/* key prefixes and ids in tables are not broken letter by letter (admin.css lets `code` break anywhere); */
.data-table code { overflow-wrap: normal; white-space: nowrap; }
/* radio groups: no browser frame, the legend looks like a field label. */
fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
fieldset > legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
fieldset label { margin-right: 14px; color: var(--ink); }

/* Round 28: tables keep a gap to the text above them; form fields stop at a readable width. */
.card-body + .table-scroll, .help + .table-scroll, p + .table-scroll { margin-top: 12px; }
/* The scroller is the containing block of the `.sr-only` texts in its cells ("Actions" heading, labels of the row
   forms). Without it they were placed against the page and widened it on a phone (keys 846 px, members 487 px at
   360 px), so the whole page scrolled sideways, not just the table. No row menus in our tables to clip. */
.table-scroll { position: relative; }
.field { max-width: 640px; }
.card-danger > .card-body { color: #98283f; }

/* Round 29, keyboard pass on 18083: the template's buttons drop the outline on focus and show only a 3 px
   --accent-soft glow, which is barely visible on white (below the 3:1 a focus indicator needs). Same selectors,
   loaded later, so the outline comes back. */
.primary-button:focus-visible, .ghost-button:focus-visible, .danger-button:focus-visible,
.account-button:focus-visible, .menu-toggle:focus-visible, .burger:focus-visible, .account-logout:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Round 30: a second, quieter line inside a table cell (key prefix under its name, access under the environment). */
.cell-sub { margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.data-table td > strong { color: var(--ink); }

/* Language picker (fragments/lang.html), as on e-cmr.com: the current flag, a list of flags with names under it */
.lang-switch { position: relative; flex: none; }
.lang-switch > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid rgba(127, 127, 127, .3); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1; user-select: none; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover, .lang-switch[open] > summary { background: rgba(127, 127, 127, .12); }
.lang-switch__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s ease; }
.lang-switch[open] .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 500; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--surface, #fff); color: var(--text, inherit); border: 1px solid rgba(127, 127, 127, .25); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); }
.lang-switch__panel li { margin: 0; }
.lang-switch__panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 14px; color: inherit; text-decoration: none; white-space: nowrap; }
.lang-switch__panel a:hover, .lang-switch__panel a:focus-visible { background: rgba(127, 127, 127, .12); }
.lang-switch__panel a.is-active { font-weight: 600; }
.lang-switch__check { margin-left: auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.lang-switch img { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); flex: none; }
.login-card .lang-switch { align-self: flex-end; margin-bottom: 8px; }
.login-card .lang-switch__panel { right: 0; }
@media (max-width: 640px) { .lang-switch__code { display: none; } .lang-switch > summary { padding: 0 8px; } }

/* Cart icon of the top bar with the number of lines (owner 16.11.2026, as the yourServer client panel). */
.cart-button { position: relative; }
.cart-button.is-active { color: var(--accent); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 17px; text-align: center;
  font-variant-numeric: tabular-nums;
}
/* Billing pages: sub-navigation, totals and the "due now" checklist. */
.billing-tabs { overflow-x: auto; flex-wrap: nowrap; }
.billing-total { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.billing-total strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.fx-note { color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
