/* Pracoda admin */
@font-face { font-family: "Red Hat Text"; font-weight: 300 700; font-display: swap; src: url("../fonts/redhat-text-latin.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-weight: 300 900; font-display: swap; src: url("../fonts/redhat-display-latin.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-weight: 300 700; font-display: swap; src: url("../fonts/redhat-mono-latin.woff2") format("woff2"); }

:root {
  --ink: #0B1B2B; --ink-2: #1C3147; --text: #3A4A5C; --muted: #4A5A6C; --slate: #C9D3DE; --line: #E3E8EE; --surface: #F4F7FA; --mist: #EEF2F6;
  --blue: #006CB5; --blue-dark: #004E86; --blue-tint: #E6F1F9; --red: #D4252B; --red-tint: #FDE8E8; --green: #1E7B4C; --green-tint: #E3F4EA;
  --amber: #7A4100; --amber-tint: #FDEBD9; --plum: #A8518A; --orange: #F58634;
  --r: 8px; --side: 248px;
  font-family: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
code { font-family: "Red Hat Mono", ui-monospace, monospace; font-size: .9em; background: var(--mist); padding: 1px 6px; border-radius: 4px; }
:focus-visible { outline: 3px solid rgba(0, 108, 181, .45); outline-offset: 2px; }
[hidden] { display: none !important; }
.a-skip { position: absolute; left: -999px; } .a-skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* Shell */
.a-shell { display: flex; min-height: 100vh; }
.a-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: none; width: var(--side); background: var(--ink); color: #fff; padding: 18px 12px 32px; }
.a-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; text-decoration: none; font-family: "Red Hat Display", sans-serif; font-weight: 800; font-size: 17px; }
.a-nav { display: flex; flex-direction: column; gap: 1px; }
.a-nav__group { margin: 16px 10px 6px; font-family: "Red Hat Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8FA3B8; }
.a-nav__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #D7E0EA; text-decoration: none; font-weight: 500; }
.a-nav__link:hover { background: var(--ink-2); color: #fff; }
.a-nav__link[aria-current="page"] { background: var(--blue); color: #fff; font-weight: 700; }
.a-main-wrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.a-top { display: flex; align-items: center; gap: 16px; padding: 10px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.a-top__site { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 600; }
.a-top__user { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.a-top__user a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.a-top__user form { margin: 0; }
.a-env { padding: 2px 10px; border-radius: 12px; background: var(--amber-tint); color: var(--amber); font-size: 12px; font-weight: 700; }
.a-menu { display: none; }
.a-main { padding: 28px; max-width: 1400px; width: 100%; }
@media (max-width: 960px) {
  .a-side { position: fixed; left: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .a-side.is-open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .a-menu { display: inline-flex; }
  .a-main { padding: 18px; }
  .a-top { padding: 10px 16px; }
}

/* Typography */
.a-h1 { margin: 0; font-family: "Red Hat Display", sans-serif; font-size: 26px; font-weight: 800; line-height: 1.2; }
.a-h2 { margin: 0 0 14px; font-family: "Red Hat Display", sans-serif; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.a-muted { color: var(--muted); }
.a-mb { margin: 0 0 18px; }
.a-mt { margin-top: 18px; } .a-mt-s { margin-top: 8px; }
.a-count { display: inline-block; min-width: 24px; padding: 0 8px; border-radius: 12px; background: var(--mist); color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; vertical-align: middle; }
.a-strong { font-weight: 700; color: var(--ink); text-decoration: none; }
.a-strong:hover { color: var(--blue); }
.a-right { text-align: right; margin-left: auto; }
.a-nowrap { white-space: nowrap; }
.a-trunc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-text-danger { color: var(--red) !important; }

.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.a-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.a-back { display: inline-block; margin-bottom: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.a-back:hover { color: var(--blue); }

/* Buttons */
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--slate); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.a-btn:hover { border-color: var(--ink); }
.a-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.a-btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.a-btn--danger { background: #fff; border-color: var(--red); color: var(--red); }
.a-btn--danger:hover { background: var(--red); color: #fff; }
.a-btn--ghost { background: transparent; }
.a-btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.a-btn--block { width: 100%; }
.a-btn[disabled] { opacity: .5; cursor: not-allowed; }
.a-link { background: none; border: 0; padding: 0; margin: 0 0 0 10px; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: none; }
.a-link:hover { text-decoration: underline; }
.a-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; }
.a-iconbtn:hover:not([disabled]) { border-color: var(--ink); }
.a-iconbtn[disabled] { opacity: .35; cursor: default; }
.a-iconbtn--danger { color: var(--red); }

/* Cards & layout */
.a-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-bottom: 18px; }
.a-narrow { max-width: 860px; }
.a-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; align-items: start; }
.a-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .a-editor { grid-template-columns: 1fr; } }
.a-sticky { position: sticky; top: 74px; }
.a-savebar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.a-danger { border-color: var(--red-tint); }
.a-empty { padding: 48px 20px; text-align: center; color: var(--muted); background: #fff; border: 1.5px dashed var(--slate); border-radius: 10px; }

/* Notices */
.a-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.a-notice--success { background: var(--green-tint); color: #145233; }
.a-notice--error { background: var(--red-tint); color: #8F181C; }
.a-notice--info { background: var(--blue-tint); color: var(--blue-dark); }

/* Forms */
.a-form { margin: 0; }
.a-field { margin-bottom: 18px; }
.a-field:last-child { margin-bottom: 0; }
.a-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.a-req { color: var(--red); }
.a-input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1.5px solid #AEB9C5; border-radius: 6px; font: inherit; color: var(--ink); background: #fff; }
textarea.a-input { min-height: 80px; resize: vertical; line-height: 1.5; }
.a-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 108, 181, .18); }
.a-input--sm { min-height: 34px; padding: 4px 10px; width: auto; min-width: 180px; }
.a-input--code { font-family: "Red Hat Mono", monospace; font-size: 22px; letter-spacing: .2em; text-align: center; }
.a-help { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.a-error { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--red); }
.has-error .a-input { border-color: var(--red); }
.a-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .a-row { grid-template-columns: 1fr; } }
.a-check { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 600; cursor: pointer; }
.a-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.a-field--check { margin-bottom: 14px; }
.a-multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; padding: 12px; border: 1.5px solid var(--line); border-radius: 6px; max-height: 280px; overflow-y: auto; }
.a-multi .a-check { font-weight: 500; }
.a-slug { display: flex; align-items: stretch; }
.a-slug__prefix { display: flex; align-items: center; padding: 0 10px; background: var(--mist); border: 1.5px solid #AEB9C5; border-right: 0; border-radius: 6px 0 0 6px; color: var(--muted); font-family: "Red Hat Mono", monospace; font-size: 13px; white-space: nowrap; }
.a-slug .a-input { border-radius: 0 6px 6px 0; font-family: "Red Hat Mono", monospace; font-size: 14px; }
.a-icon-preview { display: inline-flex; margin-top: 6px; color: var(--blue); }
.a-counter { float: right; font-size: 12px; font-weight: 700; color: var(--muted); }
.a-counter.is-over { color: var(--red); }
.a-inline { display: flex; gap: 8px; }
.a-inline .a-input { flex: 1 1 auto; }
.a-inline-form { display: inline; margin: 0; }
.a-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }

/* Media field */
.a-media { display: flex; gap: 14px; align-items: center; }
.a-media__preview { width: 120px; height: 80px; flex: none; border-radius: 6px; background: var(--mist); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: 12px; }
.a-media__preview img { width: 100%; height: 100%; object-fit: cover; }
.a-media__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.a-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.a-gallery__item { position: relative; width: 120px; height: 80px; border-radius: 6px; overflow: hidden; background: var(--mist); }
.a-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.a-gallery__remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 12px; background: rgba(11, 27, 43, .8); color: #fff; cursor: pointer; }
.a-gallery__add { width: 120px; height: 80px; border: 1.5px dashed var(--slate); border-radius: 6px; background: #fff; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }

/* Repeater */
.a-rep__rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.a-rep__row { position: relative; padding: 14px 120px 14px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.a-rep__row--compact { padding: 8px 120px 8px 8px; }
.a-rep__row--compact .a-field { margin: 0; }
.a-rep__row--compact .a-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.a-rep__head { margin-bottom: 10px; font-weight: 700; }
.a-rep__tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.a-rep__fields .a-field { margin-bottom: 10px; }

/* Tables */
.a-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.a-table { width: 100%; border-collapse: collapse; }
.a-table th { text-align: left; padding: 10px 14px; font-family: "Red Hat Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); }
.a-table td { padding: 10px 14px; border-bottom: 1px solid var(--mist); vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table tr:hover td { background: #FAFBFD; }
.a-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.a-thumb { width: 56px; height: 38px; object-fit: cover; border-radius: 4px; background: var(--mist); display: block; }
.a-thumb--empty { display: block; }
.a-badge { display: inline-block; padding: 1px 9px; border-radius: 10px; background: var(--mist); color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.a-badge--ok { background: var(--green-tint); color: #145233; }
.a-badge--info { background: var(--blue-tint); color: var(--blue-dark); }
.a-badge--new { background: var(--blue); color: #fff; }
.a-badge--warn { background: var(--amber-tint); color: var(--amber); }
.a-badge--muted { background: var(--mist); color: var(--muted); }
.a-yes { color: var(--green); font-weight: 700; } .a-no { color: var(--slate); }
.a-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
.a-swatch--blue { background: var(--blue); } .a-swatch--red { background: var(--red); } .a-swatch--plum { background: var(--plum); } .a-swatch--orange { background: var(--orange); } .a-swatch--ink { background: var(--ink); } .a-swatch--sky { background: var(--blue-tint); } .a-swatch--mist { background: var(--mist); } .a-swatch--light { background: #fff; border: 1px solid var(--line); }
.a-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: var(--muted); }

/* Tabs */
.a-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.a-tabs a { padding: 8px 14px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.a-tabs a:hover { color: var(--ink); }
.a-tabs a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* Sections editor */
.a-sections { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a-section { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.a-section.is-hidden { background: var(--surface); }
.a-section.is-hidden .a-section__type { color: var(--muted); }
.a-section__order { display: flex; flex-direction: column; gap: 4px; }
.a-section__order form, .a-section__actions form { margin: 0; }
.a-section__body { flex: 1 1 auto; min-width: 0; }
.a-section__type { font-weight: 700; }
.a-section__sum { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-section__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.a-add-section select { max-width: 640px; }

/* SEO preview */
.a-seo summary { cursor: pointer; list-style: none; margin: 0; }
.a-seo summary::-webkit-details-marker { display: none; }
.a-seo summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.a-seo[open] summary { margin-bottom: 14px; }
.a-serp { padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px; font-family: Arial, sans-serif; }
.a-serp__url { color: #202124; font-size: 13px; }
.a-serp__title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 2px 0; }
.a-serp__desc { color: #4d5156; font-size: 14px; line-height: 1.5; }

/* Dashboard */
.a-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.a-stat { display: flex; flex-direction: column; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.a-stat:hover { border-color: var(--blue); }
.a-stat__n { font-family: "Red Hat Display", sans-serif; font-size: 30px; font-weight: 800; line-height: 1.1; }
.a-stat__l { color: var(--muted); font-size: 13px; font-weight: 600; }
.a-list { list-style: none; margin: 0; padding: 0; }
.a-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--mist); }
.a-list li:last-child { border-bottom: 0; }
.a-list li a { color: var(--ink); text-decoration: none; }
.a-list li a:hover { color: var(--blue); }
.a-list .a-muted { font-size: 13px; flex: 1 1 100%; order: 3; }
.a-list .a-badge, .a-list .a-count { margin-left: auto; }

/* Inbox */
.a-dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 18px; }
.a-dl dt { color: var(--muted); font-weight: 600; }
.a-dl dd { margin: 0; overflow-wrap: anywhere; }
.a-message { padding: 16px; background: var(--surface); border-radius: 8px; white-space: normal; overflow-wrap: anywhere; }

/* Media library */
.a-mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.a-mediaitem { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.a-mediaitem img { width: 100%; height: 140px; object-fit: cover; background: var(--mist); }
.a-mediaitem__meta { padding: 8px 10px 0; font-size: 13px; overflow-wrap: anywhere; }
.a-mediaitem__alt { display: flex; gap: 6px; padding: 8px 10px; margin: 0; }
.a-mediaitem__alt .a-input { min-width: 0; flex: 1 1 auto; }
.a-mediaitem__actions { display: flex; justify-content: space-between; padding: 0 10px 10px; }
.a-mediaitem__actions .a-link { margin: 0; font-size: 13px; }
.a-mediaitem__actions form { margin: 0; }
.a-upload-status { margin-bottom: 12px; font-weight: 600; }

/* Media modal */
.a-modal { position: fixed; inset: 0; z-index: 100; background: rgba(11, 27, 43, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.a-modal__box { width: min(960px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; }
.a-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.a-modal__head h2 { margin: 0; font-size: 18px; }
.a-modal__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.a-modal__grid { flex: 1 1 auto; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 18px; }
.a-modal__grid button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: var(--mist); cursor: pointer; overflow: hidden; height: 100px; }
.a-modal__grid button:hover, .a-modal__grid button:focus-visible { border-color: var(--blue); }
.a-modal__grid img { width: 100%; height: 100%; object-fit: cover; }
.a-modal__foot { padding: 10px 18px; border-top: 1px solid var(--line); text-align: center; }

/* Auth */
.a-auth-body { background: var(--surface); }
.a-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.a-auth__logo { height: 48px; width: auto; margin-bottom: 24px; }
.a-auth__card { width: min(420px, 100%); }
.a-auth__card--wide { width: min(560px, 100%); }
.a-auth__card .a-h1 { margin-bottom: 14px; }
.a-auth__note { color: var(--muted); font-size: 13px; }
.a-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 18px 0; padding: 14px; background: var(--surface); border-radius: 10px; }
.a-qr img { background: #fff; border-radius: 6px; }
.a-secret { display: inline-block; margin-top: 6px; font-size: 16px; letter-spacing: .08em; word-break: break-all; }
.a-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 8px; margin: 18px 0; }
.a-codes code { font-size: 17px; padding: 6px 10px; }

/* TinyMCE container */
.tox-tinymce { border-radius: 6px !important; border: 1.5px solid #AEB9C5 !important; }

/* Store back office */
.a-sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a-card--staff { border-left: 3px solid var(--blue); }
.a-dl--stack { grid-template-columns: 1fr; gap: 2px; }
.a-dl--stack dd { margin-bottom: 10px; }
.a-head__actions form { display: inline; }
@media (min-width: 961px) { .a-menu { display: none; } }

/* Mobile fixes */
.a-table-wrap { position: relative; }
.a-table-wrap:focus-visible { outline: 3px solid rgba(0, 108, 181, .45); outline-offset: 2px; }
@media (max-width: 700px) {
  .a-hide-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .a-top { gap: 10px; padding: 8px 12px; }
  .a-top__user { gap: 10px; }
}

/* API docs */
.a-steps { margin: 0 0 16px; padding-left: 22px; line-height: 1.6; }
.a-steps li { margin-bottom: 8px; }
.a-pre { margin: 0; padding: 14px 16px; background: var(--ink); color: #E8EEF6; border-radius: 8px; overflow-x: auto; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.a-pre code { background: none; color: inherit; padding: 0; border: 0; font: inherit; }
.a-pre:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pm-token { display: inline-block; max-width: 100%; padding: 6px 10px; word-break: break-all; font-size: 14px; user-select: all; }
.a-endpoints { list-style: none; margin: 0; padding: 0; }
.a-endpoints li { padding: 12px 0; border-bottom: 1px solid var(--mist); }
.a-endpoints li:last-child { border-bottom: 0; }
.a-endpoints p { margin: 0 0 4px; }
.a-endpoints__sig code { font-size: 14px; font-weight: 600; word-break: break-all; }
.a-break { word-break: break-all; }
.a-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-mt-sm { margin-top: 8px; }
/* Accounting tables */
.a-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-table tfoot td, .a-table tr.a-total td { font-weight: 700; border-top: 2px solid var(--line); }
.a-table tr.a-sub td { font-weight: 700; background: var(--mist); }
.a-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.a-filters .a-field { margin: 0; }
.a-lines-table select, .a-lines-table input { min-width: 0; width: 100%; }
.a-lines-table td { vertical-align: top; }
.a-ok-text { color: var(--green, #1a7f4b); font-weight: 600; }
.a-bad-text { color: var(--red, #c0262d); font-weight: 600; }
.a-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.a-tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; background: #fff; }
.a-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.a-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; align-items: start; }
/* Management dashboard: single-series bar chart (brand blue, labels in text ink) */
.mg-bars { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding-top: 24px; border-bottom: 1px solid var(--line); }
.mg-bar { position: relative; flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 14px; outline-offset: 2px; }
.mg-bar__fill { display: block; width: min(100%, 36px); height: var(--h); min-height: 2px; background: var(--blue); border-radius: 4px 4px 0 0; }
.mg-bar__l { position: absolute; bottom: -22px; font-size: 12px; color: var(--muted); }
.mg-bar:hover .mg-bar__fill { filter: brightness(.85); }
.mg-bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(var(--h, 0%) + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; z-index: 2; pointer-events: none; }
.mg-bars + .a-table-wrap { margin-top: 32px; }
/* CRM pipeline board and activity timeline */
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.crm-col { background: var(--mist); border-radius: 10px; padding: 12px; min-height: 120px; }
.crm-col__h { margin: 0; font-size: 15px; }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 10px; }
.crm-card p { margin: 4px 0 8px; }
.a-timeline { list-style: none; margin: 0; padding: 0; }
.a-timeline li { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); }
.a-timeline li p { margin: 0 0 4px; }
/* Org chart */
.org-tree { list-style: none; margin: 0; padding-left: 0; }
.org-tree .org-tree { padding-left: 22px; border-left: 2px solid var(--line); margin-left: 10px; }
.org-tree li { margin: 8px 0; }
.org-node { display: inline-flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; min-width: 180px; }
/* Stat tiles: long amounts (₹12,34,567.00) shrink and wrap on phones instead of widening the page. */
.a-stat { min-width: 0; }
.a-stat__n { font-size: clamp(19px, 5.4vw, 30px); overflow-wrap: anywhere; }

/* Super Admin console: app launcher tiles and per-user access matrix */
.a-apps-btn { color: var(--ink); text-decoration: none; }
.app-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 14px; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px; border-radius: 12px; text-align: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3; }
a.app-tile:hover { background: #fff; box-shadow: 0 2px 10px rgba(11, 27, 43, .08); }
a.app-tile:hover .app-tile__icon { transform: translateY(-2px); }
.app-tile__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: #fff; background: var(--ink-2); transition: transform .15s; flex: none; }
.app-tile__icon--sm { width: 34px; height: 34px; border-radius: 9px; }
.app-tile__name { overflow-wrap: anywhere; }
.app-hue-0 { background: #006CB5; } .app-hue-1 { background: #1E7B4C; } .app-hue-2 { background: #A8518A; } .app-hue-3 { background: #B4530A; }
.app-hue-4 { background: #0F6E78; } .app-hue-5 { background: #5B4BB7; } .app-hue-6 { background: #C0262C; } .app-hue-7 { background: #7A4100; }
.app-hue-sys { background: #1C3147; }
.app-grid--manage { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.app-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 4px 12px; }
.app-card .app-tile:hover { box-shadow: none; }
.app-card.is-off .app-tile__icon { filter: grayscale(1); opacity: .55; }
.app-card.is-off .app-tile__name { color: var(--muted); }
.app-card__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.app-card__foot form { margin: 0; }
.app-card__needs { margin: 8px 8px 0; color: var(--muted); font-size: 12px; text-align: center; }
.app-switch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; border-radius: 6px; }
.app-switch__track { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--slate); transition: background .15s; }
.app-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.app-switch[aria-checked="true"] .app-switch__track { background: var(--green); }
.app-switch[aria-checked="true"] .app-switch__track::after { transform: translateX(16px); }
.acl-login { border: 0; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.acl-login:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.acl-login legend { padding: 0; margin-bottom: 12px; }
.acl-login[disabled] { opacity: .6; }
.acl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.acl-head .a-h2 { margin: 0; }
.acl-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.acl-list { list-style: none; margin: 0; padding: 0; }
.acl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.acl-app { display: flex; align-items: center; gap: 10px; min-width: 200px; flex: 1 1 200px; }
.acl-cells { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.acl-seg { display: flex; align-items: center; gap: 0; border: 0; margin: 0; padding: 0; min-width: 0; }
.acl-seg legend, .acl-seg__label { float: left; width: 92px; margin-right: 6px; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.acl-seg--na { min-width: 260px; }
.acl-seg label { position: relative; }
.acl-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acl-seg label span { display: block; padding: 5px 12px; border: 1px solid var(--slate); margin-left: -1px; font-size: 13px; font-weight: 600; color: var(--text); background: #fff; cursor: pointer; }
.acl-seg label:first-of-type span { border-radius: 6px 0 0 6px; margin-left: 0; }
.acl-seg label:last-of-type span { border-radius: 0 6px 6px 0; }
.acl-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.acl-seg input[value="none"]:checked + span { background: var(--red-tint); border-color: var(--red); color: #8E1519; }
.acl-seg input[value="view"]:checked + span { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); }
.acl-seg input[value="full"]:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.acl-seg input:focus-visible + span { outline: 3px solid rgba(0, 108, 181, .45); outline-offset: 1px; position: relative; z-index: 1; }
@media (max-width: 600px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .app-grid--manage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-tile__icon { width: 56px; height: 56px; border-radius: 14px; }
  .acl-seg legend, .acl-seg__label { width: 84px; }
}

/* Page builder */
.a-main--wide { max-width: none; }
.pb-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 16px; }
.pb-bar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; }
.pb-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pb-bar__actions form { margin: 0; }
.pb-submit { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-body { display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pb-side { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 22px; min-width: 0; }
.pb-tabs { margin-bottom: 14px; }
.pb-blocks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pb-block { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pb-block.is-hidden { background: var(--surface); }
.pb-block.is-hidden .pb-block__main strong { color: var(--muted); }
.pb-block.is-dragging { opacity: .4; }
.pb-block.is-over { box-shadow: 0 -3px 0 var(--blue); }
.pb-block__grip { cursor: grab; color: var(--muted); letter-spacing: -3px; padding: 0 4px; user-select: none; }
.pb-block__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--blue-tint); color: var(--blue); flex: none; }
.pb-block__main { flex: 1 1 auto; min-width: 0; text-decoration: none; color: var(--ink); }
.pb-block__main strong { display: block; font-size: 14px; }
.pb-block__main span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-block__main:hover strong { color: var(--blue); }
.pb-block__tools { display: flex; align-items: center; gap: 2px; flex: none; }
.pb-block__tools form { margin: 0; }
.pb-block__tools .a-iconbtn { width: 30px; height: 30px; }
.pb-menu { position: relative; }
.pb-menu > summary { list-style: none; cursor: pointer; }
.pb-menu > summary::-webkit-details-marker { display: none; }
.pb-menu__list { position: absolute; right: 0; top: 34px; z-index: 30; width: 240px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(11, 27, 43, .15); display: flex; flex-direction: column; }
.pb-menu__list a, .pb-menu__list button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 14px; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
.pb-menu__list a:hover, .pb-menu__list button:hover { background: var(--mist); }
.pb-menu__list form { margin: 0; }
.pb-menu__reuse { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0; }
.pb-addbtn { width: 100%; justify-content: center; }
.pb-changes { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--blue-tint); }
.pb-changes summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
.pb-changes ul, .pb-diff { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.pb-chg { display: inline-block; min-width: 64px; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; background: var(--mist); color: var(--text); }
.pb-chg--added { background: var(--green-tint); color: var(--green); }
.pb-chg--removed { background: var(--red-tint); color: #8E1519; }
.pb-chg--edited, .pb-chg--changed { background: var(--amber-tint); color: var(--amber); }
.pb-group { margin: 18px 0 8px; font-size: 12px; font-family: "Red Hat Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pb-lib { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pb-lib__item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.pb-lib__item form { margin: 0; }
.pb-lib__thumb { width: 96px; height: 54px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.pb-lib__thumb--icon { display: grid; place-items: center; color: var(--blue); }
.pb-lib__text strong { display: block; font-size: 14px; }
.pb-lib__text span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.pb-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pb-versions li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.pb-versions__actions { display: flex; gap: 6px; align-items: center; }
.pb-danger { margin-top: 18px; padding: 16px; }
.pb-danger form { margin-right: 8px; }
.pb-savebar { position: sticky; bottom: 0; background: #fff; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--line); }
.pb-preview { position: sticky; top: 70px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pb-preview__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pb-preview__bar .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pb-preview__note { margin-left: auto; font-size: 12px; color: var(--muted); }
.pb-preview__stage { position: relative; height: calc(100vh - 170px); min-height: 480px; overflow: hidden; background: #E8EDF2; }
.pb-frame { position: absolute; top: 0; left: 50%; border: 0; background: #fff; transform-origin: top center; }
.tpl-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.tpl-card { position: relative; display: block; cursor: pointer; }
.tpl-card input { position: absolute; opacity: 0; }
.tpl-card__body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; }
.tpl-card input:checked + .tpl-card__body { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-tint); }
.tpl-card input:focus-visible + .tpl-card__body { outline: 3px solid rgba(0, 108, 181, .45); outline-offset: 2px; }
@media (max-width: 1100px) {
  .pb-body { grid-template-columns: minmax(0, 1fr); }
  .pb-preview { position: static; }
  .pb-preview__stage { height: 70vh; }
}
/* Version compare and SEO checklist */
.diff p { margin: 0; padding: 4px 10px; border-left: 3px solid transparent; font-size: 14px; }
.diff .diff-same { color: var(--muted); }
.diff-add { background: var(--green-tint); border-left-color: var(--green) !important; color: #145A37; text-decoration: none; }
.diff-del { background: var(--red-tint); border-left-color: var(--red) !important; color: #8E1519; text-decoration: line-through; }
.diff-key .diff-add, .diff-key .diff-del, .diff-fields .diff-add, .diff-fields .diff-del { padding: 0 4px; border-radius: 3px; }
.diff-fields { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 16px; margin: 0; }
.diff-fields dt { font-weight: 700; }
.diff-fields dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.seo-check summary { cursor: pointer; margin: 6px 0 10px; }
.seo-check__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.seo-check__list li { display: flex; gap: 8px; align-items: flex-start; }
.seo-check__list .dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; }
.seo-check__list .is-good .dot { background: var(--green); }
.seo-check__list .is-ok .dot { background: #C77700; }
.seo-check__list .is-bad .dot { background: var(--red); }
.seo-check__score { font-weight: 700; }
