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

.vp-co, .vp-co * { box-sizing: border-box; }
.vp-co {
  --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-co h1, .vp-co h2, .vp-co h3 { margin: 0; color: var(--ink); letter-spacing: -.02em; }
.vp-co button { font-family: inherit; cursor: pointer; }
.vp-co a { color: var(--blue); text-decoration: none; }
.vp-co a:hover { text-decoration: underline; }
.vp-co :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.vp-co svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }
.vp-co .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.vp-co .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-co .appbar-in { width: 100%; margin: 0; padding: 13px 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vp-co .appbar-in > div:first-child { min-width: 0; }
.vp-co .crumb { font-size: 12.5px; color: var(--soft); }
.vp-co .crumb a { color: var(--muted); }
.vp-co .titlerow { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.vp-co .appbar h1 { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.vp-co .spacer { flex: 1; }

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

.vp-co .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-co .btn:hover { border-color: #C9D3E6; background: #FCFDFF; }
.vp-co .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.vp-co .btn-primary:hover { background: #3A42D8; }
.vp-co .btn-sm { padding: 7px 12px; font-size: 13px; }

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

.vp-co .sidenav { position: sticky; top: 76px; display: grid; gap: 12px; }
.vp-co .navlist { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.vp-co .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-co .navlist a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.vp-co .navlist a.active { background: #EEF0FF; color: var(--blue); font-weight: 600; }
.vp-co .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-co .navlist a.active .step { background: var(--blue); color: #fff; }

.vp-co .related { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.vp-co .related h3 { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--soft); margin-bottom: 11px; }
.vp-co .rel-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0;
  border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.vp-co .rel-item:first-of-type { border-top: none; }
.vp-co .rel-item .n { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.vp-co .rel-item a { font-size: 12.5px; }
.vp-co .rel-note { font-size: 11.5px; color: var(--soft); margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

.vp-co .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-co .sec-head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.vp-co .sec-head .t { display: flex; align-items: center; gap: 10px; }
.vp-co .sec-head h2 { font-size: 15.5px; font-weight: 700; }
.vp-co .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-co .sec-head .desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.vp-co .sec-body { padding: 18px 20px 22px; }
.vp-co .sub-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--soft);
  padding-bottom: 8px; margin: 0 0 14px; border-bottom: 1px solid var(--line-soft); }

.vp-co .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; align-items: start; }
@media (max-width: 1100px) { .vp-co .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .vp-co .grid { grid-template-columns: 1fr; } }
.vp-co .grid > * { min-width: 0; max-width: 100%; }
.vp-co .grid .wide, .vp-co li.input.wide, .vp-co .fld.wide { grid-column: 1 / -1; }

.vp-co .fld { min-width: 0; }
.vp-co .fld .lab { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.vp-co .fld label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.vp-co .fld .req { color: var(--red); }
.vp-co .fld input[type=text], .vp-co .fld input[type=tel], .vp-co .fld input[type=email],
.vp-co .fld select, .vp-co .fld 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); }
.vp-co .fld textarea { min-height: 74px; resize: vertical; }
.vp-co .fld input.mono { font-family: var(--mono); }
.vp-co .fld input:focus, .vp-co .fld select:focus, .vp-co .fld textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68,77,249,.10); }
.vp-co .fld input::placeholder, .vp-co .fld textarea::placeholder { color: #B9C2D0; }
.vp-co .fld.required-empty input, .vp-co .fld.required-empty select { border-color: #E8C9C9; background: #FFFCFC; }

.vp-co 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-co .vp-co-lab { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; min-width: 0; }
body.active_admin.logged_in .vp-co .vp-co-lab > label.label,
body.active_admin.logged_in .vp-co .vp-co-lab > label,
body.active_admin.logged_in .vp-co li.input label.label,
body.active_admin.logged_in .vp-co form.formtastic li.input label {
  display: block !important; font-size: 12.5px !important; font-weight: 600 !important;
  color: var(--text) !important; margin: 0 !important; flex: 1; min-width: 0;
  text-transform: none !important; letter-spacing: -.01em !important; line-height: 1.3 !important; }
.vp-co li.input abbr { color: var(--red); text-decoration: none; border: 0; margin-left: 2px; }
.vp-co li.input input[type=text], .vp-co li.input input[type=tel], .vp-co li.input input[type=email],
.vp-co li.input select, .vp-co 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-co li.input input:focus, .vp-co li.input select:focus, .vp-co li.input textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68,77,249,.10) !important; }
.vp-co li.input.required-empty input, .vp-co li.input.required-empty select,
.vp-co li.input.required-empty .ts-wrapper .ts-control { border-color: #E8C9C9 !important; background: #FFFCFC !important; }
.vp-co li.input.has-help > .inline-hints { display: none; }
.vp-co li.input .inline-errors { color: var(--red); font-size: 12px; margin-top: 4px; }
.vp-co .inline-help { font-size: 11.5px; color: var(--soft); margin-top: 5px; line-height: 1.45; }
.vp-co #contractor_description { min-height: 74px; }

.vp-co li.boolean .vp-co-check {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 0;
}
.vp-co li.boolean input[type=checkbox] {
  width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; margin-top: 2px; flex-shrink: 0;
}

.vp-co .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; cursor: pointer; }
.vp-co .qbtn:hover, .vp-co .qbtn[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.vp-co-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-co-pop.on { opacity: 1 !important; visibility: visible; transform: none; }
.vp-co-pop h4 { font-size: 13px; color: #fff; margin: 0 0 6px; font-weight: 700; }
.vp-co-pop p { margin: 0 0 9px; color: #B9C6DE; }
.vp-co-pop .ex { background: #1B2436; border-radius: 7px; padding: 9px 11px; margin-top: 2px; }
.vp-co-pop .ex .exl { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #7E8CA8; margin-bottom: 4px; }
.vp-co-pop .ex code { font-family: var(--mono); font-size: 11.5px; color: #7EE0C3; display: block; word-break: break-all; }
.vp-co-pop .ex .note { color: #94A3B8; font-size: 11.5px; margin-top: 6px; }
.vp-co-pop::after { content: ""; position: absolute; left: 22px; top: -5px; width: 10px; height: 10px;
  background: #0F172A; transform: rotate(45deg); border-radius: 2px; }
.vp-co-pop.above::after { top: auto; bottom: -5px; }

.vp-co .ts-wrapper { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
.vp-co .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-co .ts-wrapper .ts-control > .item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vp-co .ts-wrapper.focus .ts-control { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(68,77,249,.10) !important; }
.vp-co form.formtastic select,
.vp-co form.formtastic input[type=text],
.vp-co form.formtastic input[type=tel],
.vp-co form.formtastic textarea { max-width: 100% !important; width: 100% !important; }

.vp-co .roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .vp-co .roles { grid-template-columns: 1fr; } }
.vp-co .role { border: 1px solid var(--line); border-radius: 11px; padding: 15px 16px; background: #FBFCFE;
  transition: border-color .14s, background .14s; min-width: 0; }
.vp-co .role.on.vendor { border-color: #DDC8F5; background: #FCF8FF; }
.vp-co .role.on.customer { border-color: #BFDFF5; background: #F6FBFF; }
.vp-co .role .rtop { display: flex; gap: 10px; align-items: flex-start; }
.vp-co .role input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; margin-top: 2px; flex-shrink: 0; }
.vp-co .role .rname { font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.vp-co .role .rdesc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.vp-co .role .rwhat { font-size: 11.5px; color: var(--soft); margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-soft); }

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

.vp-co .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-co .savebar-in { width: 100%; margin: 0; padding: 13px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vp-co .savebar .msg { font-size: 13px; color: var(--muted); }
.vp-co .warnpill { display: none; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--amber); background: var(--amber-bg); padding: 5px 12px; border-radius: 999px; }
.vp-co .warnpill.on { display: inline-flex; }

.vp-co-src { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.vp-co form.formtastic > fieldset.inputs,
.vp-co 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;
}
.vp-co .errors, .vp-co .semantic-errors { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }

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