@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

.vp-ae, .vp-ae * { box-sizing: border-box; }
.vp-ae {
  --blue:#444DF9; --teal:#00C3C4; --violet:#8C2FFC;
  --green:#15803D; --green-bg:#DCFCE7;
  --red:#B91C1C; --red-bg:#FEE2E2;
  --amber:#B45309; --amber-bg:#FEF3C7;
  --ink:#0F172A; --text:#1E293B; --muted:#5A6B82; --soft:#94A3B8;
  --line:#E4E9F2; --line-soft:#EEF2F8;
  --bg:#F7F9FC; --surface:#FFFFFF; --hover:#F8FAFF;
  --r:9px; --mono:"JetBrains Mono","Roboto Mono",ui-monospace,monospace;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 100%; overflow-x: clip;
}
.vp-ae h1, .vp-ae h2, .vp-ae h3 { margin: 0; color: var(--ink); letter-spacing: -.02em; }
.vp-ae button { font-family: inherit; cursor: pointer; }
.vp-ae a { color: var(--blue); text-decoration: none; }
.vp-ae a:hover { text-decoration: underline; }
.vp-ae :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.vp-ae svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }
.vp-ae .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.vp-ae .appbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); margin: 0; }
.vp-ae .appbar-in { width: 100%; margin: 0; padding: 13px 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vp-ae .appbar-in > div:first-child { min-width: 0; }
.vp-ae .crumb { font-size: 12.5px; color: var(--soft); }
.vp-ae .crumb a { color: var(--muted); }
.vp-ae .titlerow { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; min-width: 0; }
.vp-ae .titlerow h1 { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.vp-ae .spacer { flex: 1; }
.vp-ae .dirty { display: none; align-items: center; gap: 7px; font-size: 12.5px; color: var(--amber);
  background: var(--amber-bg); padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.vp-ae .dirty.on { display: inline-flex; }

.vp-ae .btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text);
  transition: border-color .14s, background .14s; text-decoration: none !important; }
.vp-ae .btn:hover { border-color: #C9D3E6; background: #FCFDFF; }
.vp-ae .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.vp-ae .btn-primary:hover { background: #3A42D8; }
.vp-ae .btn-sm { padding: 7px 12px; font-size: 13px; }

.vp-ae .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.vp-ae .chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.vp-ae .chip.ok { background: var(--green-bg); color: var(--green); }
.vp-ae .chip.ok .dot { background: var(--green); }
.vp-ae .chip.vendor { background: #F3E8FF; color: #7E22CE; }
.vp-ae .chip.vendor .dot { background: #9333EA; }
.vp-ae .chip.customer { background: #E0F2FE; color: #0369A1; }
.vp-ae .chip.customer .dot { background: #0284C7; }

.vp-ae .shell { width: 100%; margin: 0; padding: 18px 0 120px; min-width: 0;
  display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 26px; align-items: start; }
.vp-ae .shell > main { min-width: 0; }
@media (max-width: 940px) { .vp-ae .shell { grid-template-columns: 1fr; } .vp-ae .sidenav { position: static !important; } }

.vp-ae .sidenav { position: sticky; top: 76px; display: grid; gap: 12px; }
.vp-ae .navlist { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.vp-ae .navlist a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 7px;
  font-size: 13.5px; color: var(--muted); text-decoration: none; }
.vp-ae .navlist a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.vp-ae .navlist a.active { background: #EEF0FF; color: var(--blue); font-weight: 600; }
.vp-ae .navlist .step { width: 19px; height: 19px; border-radius: 50%; background: #EEF2F8; color: var(--soft);
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vp-ae .navlist a.active .step { background: var(--blue); color: #fff; }

.vp-ae .snap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; }
.vp-ae .snap h3 { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--soft); margin-bottom: 10px; }
.vp-ae .snap .amt { font-family: var(--mono); font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.vp-ae .snap .cur { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.vp-ae .snap .meta { font-size: 11.5px; color: var(--soft); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

.vp-ae .sec { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 14px;
  scroll-margin-top: 76px; overflow: visible; min-width: 0; }
.vp-ae .sec-head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.vp-ae .sec-head .t { display: flex; align-items: center; gap: 10px; }
.vp-ae .sec-head h2 { font-size: 15.5px; font-weight: 700; }
.vp-ae .sec-head .step { width: 21px; height: 21px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vp-ae .sec-head .desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.vp-ae .sec-body { padding: 18px 20px 22px; }

.vp-ae .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; align-items: start; }
@media (max-width: 1200px) { .vp-ae .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .vp-ae .grid { grid-template-columns: 1fr; } }
.vp-ae .grid > * { min-width: 0; max-width: 100%; }
.vp-ae .grid .wide, .vp-ae li.input.wide { grid-column: 1 / -1; }
.vp-ae .sub { margin-top: 22px; }
.vp-ae .sub:first-child { margin-top: 0; }
.vp-ae .sub-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--soft);
  padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); }

.vp-ae li.input { list-style: none; margin: 0 !important; padding: 0 !important; min-width: 0; max-width: 100% !important;
  width: auto !important; float: none !important; position: relative; }
.vp-ae .vp-ae-lab { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; min-width: 0; }
.vp-ae .vp-ae-lab > label.label, .vp-ae .vp-ae-lab > label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin: 0; flex: 1; min-width: 0; }
.vp-ae li.input > label.label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.vp-ae li.input abbr { color: var(--red); text-decoration: none; border: 0; margin-left: 2px; }
.vp-ae li.input input[type=text], .vp-ae li.input input[type=number], .vp-ae li.input input[type=email],
.vp-ae li.input select, .vp-ae li.input textarea {
  width: 100%; padding: 9px 11px; font-family: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: none !important; }
.vp-ae li.input input:focus, .vp-ae li.input select:focus, .vp-ae li.input textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68,77,249,.10) !important; }
.vp-ae li.input input[readonly], .vp-ae li.input select:disabled {
  background: #F6F8FC; color: var(--muted); cursor: default; }
.vp-ae li.input .inline-hints, .vp-ae li.input .help, .vp-ae .inline-help {
  font-size: 11.5px; color: var(--soft); margin-top: 5px; line-height: 1.45; }
.vp-ae li.input.has-help > .inline-hints { display: none; }
.vp-ae li.input .inline-errors { color: var(--red); font-size: 12px; margin-top: 4px; }
.vp-ae li.input.hide, .vp-ae .sub.hide, .vp-ae .sec.hide { display: none !important; }
.vp-ae li.input.locked .vp-ae-lab label::after, .vp-ae .fld.locked label::after {
  content: "locked"; margin-left: 8px; font-size: 10px; font-weight: 700;
  color: var(--soft); background: #EEF2F8; padding: 2px 6px; border-radius: 5px; }

.vp-ae .wrapunit { position: relative; min-width: 0; }
.vp-ae .wrapunit .pre { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--soft); pointer-events: none; }
.vp-ae .wrapunit .suf { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--soft); pointer-events: none; }
.vp-ae .wrapunit input.haspre { padding-left: 26px; }
.vp-ae .wrapunit input.hassuf { padding-right: 74px; }

.vp-ae .copyrow { display: flex; gap: 8px; min-width: 0; }
.vp-ae .copyrow input { flex: 1; min-width: 0; }
.vp-ae .copybtn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r);
  padding: 0 12px; color: var(--muted); display: flex; align-items: center; }
.vp-ae .copybtn:hover { border-color: #C9D3E6; color: var(--ink); }

.vp-ae .qbtn { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--soft); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0; padding: 0; line-height: 1; transition: all .12s;
  position: relative; z-index: 3; pointer-events: auto; cursor: pointer; }
.vp-ae .qbtn:hover, .vp-ae .qbtn[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.vp-ae-pop { position: fixed; z-index: 2147483646; width: 320px; max-width: calc(100vw - 32px);
  background: #0F172A !important; color: #E2E8F5; border-radius: 11px; padding: 14px 15px;
  box-shadow: 0 16px 40px rgba(15,23,42,.45); font-size: 12.5px; line-height: 1.55;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .14s, transform .14s, visibility .14s;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.vp-ae-pop.on { opacity: 1 !important; visibility: visible; transform: none; }
.vp-ae-pop h4 { font-size: 13px; color: #fff; margin: 0 0 6px; font-weight: 700; }
.vp-ae-pop p { margin: 0 0 9px; color: #B9C6DE; }
.vp-ae-pop .ex { background: #1B2436; border-radius: 7px; padding: 9px 11px; margin-top: 2px; }
.vp-ae-pop .ex .exl { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #7E8CA8; margin-bottom: 4px; }
.vp-ae-pop .ex code { font-family: var(--mono); font-size: 11.5px; color: #7EE0C3; display: block; word-break: break-all; }
.vp-ae-pop .ex .note { color: #94A3B8; font-size: 11.5px; margin-top: 6px; }
.vp-ae-pop::after { content: ""; position: absolute; left: 22px; top: -5px; width: 10px; height: 10px;
  background: #0F172A; transform: rotate(45deg); border-radius: 2px; }
.vp-ae-pop.above::after { top: auto; bottom: -5px; }

.vp-ae .ts-wrapper { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
.vp-ae .ts-wrapper .ts-control { border: 1px solid var(--line) !important; border-radius: var(--r) !important;
  padding: 8px 11px !important; min-height: 40px; background: var(--surface) !important;
  overflow: hidden !important; flex-wrap: nowrap !important; }
.vp-ae .ts-wrapper .ts-control > .item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vp-ae .ts-wrapper.disabled .ts-control { background: #F6F8FC !important; }
.vp-ae .ts-wrapper.focus .ts-control { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(68,77,249,.10) !important; }
.vp-ae form.formtastic select,
.vp-ae form.formtastic input[type=text],
.vp-ae form.formtastic input[type=number],
.vp-ae form.formtastic textarea { max-width: 100% !important; width: 100% !important; }

.vp-ae .scale { background: #FBFCFE; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px 16px; margin-bottom: 20px; }
.vp-ae .scale-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.vp-ae .scale-top .now { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.vp-ae .scale-top .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vp-ae .scale-top .hdr { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--soft); }
.vp-ae .track { position: relative; height: 12px; border-radius: 6px; background: #E9EDF5; margin: 34px 0 48px; }
.vp-ae .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--teal), #5AA7F0); }
.vp-ae .mark { position: absolute; top: -9px; bottom: -9px; width: 2px; background: var(--ink); border-radius: 1px; }
.vp-ae .mark.low { background: var(--amber); }
.vp-ae .mark.high { background: var(--violet); }
.vp-ae .mark .cap { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.vp-ae .mark .cap.up { bottom: calc(100% + 5px); }
.vp-ae .mark .cap.dn { top: calc(100% + 22px); }
.vp-ae .mark.low .cap { color: var(--amber); }
.vp-ae .mark.high .cap { color: var(--violet); }
.vp-ae .endcap { position: absolute; top: calc(100% + 5px); font-family: var(--mono); font-size: 10.5px; color: var(--soft); }
.vp-ae .endcap.l { left: 0; }
.vp-ae .endcap.r { right: 0; }
.vp-ae .unset { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  font-size: 11.5px; color: var(--amber); font-weight: 600; }

.vp-ae .warnbox { display: flex; gap: 9px; align-items: flex-start; background: var(--amber-bg); border: 1px solid #F3DCA8;
  border-radius: var(--r); padding: 11px 14px; font-size: 12.5px; color: #7A4A0B; margin-bottom: 16px; }
.vp-ae .warnbox svg { flex-shrink: 0; margin-top: 1px; color: var(--amber); }
.vp-ae .warnbox b { font-weight: 600; }

.vp-ae .savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.vp-ae .savebar-in { width: 100%; margin: 0; padding: 13px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vp-ae .savebar .msg { font-size: 13px; color: var(--muted); }
.vp-ae .savebar .msg b { color: var(--ink); font-weight: 700; }

.vp-ae-src { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.vp-ae form.formtastic > fieldset.inputs,
.vp-ae form.formtastic > ol.inputs {
  position: absolute !important; left: -9999px !important; width: 1px !important; height: 0 !important;
  overflow: hidden !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  min-height: 0 !important; background: transparent !important;
}
.vp-ae .errors, .vp-ae .semantic-errors { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.vp-ae .flash { margin: 12px 8px 0; }

.vp-ae .appbar .dropdown_menu { display: inline-block; }
.vp-ae .appbar .dropdown_menu_button { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); }

.vp-ae .fld-type { min-width: 0; }
.vp-ae .fld-type .lab { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.vp-ae .fld-type label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.vp-ae .fld-type input { width: 100%; padding: 9px 11px; font-family: inherit; font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r); background: #F6F8FC; }

body.accounts.edit #vp-dash .vpm,
body.accounts.new #vp-dash .vpm { padding-left: 20px; padding-right: 24px; }
body.accounts.edit #main_content_wrapper,
body.accounts.new #main_content_wrapper,
body.accounts.edit #main_content,
body.accounts.new #main_content,
body.accounts.edit #active_admin_content,
body.accounts.new #active_admin_content {
  margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; float: none !important;
}
body.active_admin.logged_in.accounts.edit #title_bar,
body.active_admin.logged_in.accounts.new #title_bar,
body.active_admin.logged_in.accounts.edit #sidebar,
body.active_admin.logged_in.accounts.new #sidebar,
body.active_admin.logged_in.accounts.edit #footer,
body.active_admin.logged_in.accounts.new #footer,
body.active_admin.logged_in.accounts.edit .vpp,
body.active_admin.logged_in.accounts.new .vpp {
  display: none !important;
}
