/* ============================================================================
   VPS console — light, professional control panel
   Palette: white surfaces · gray borders/text · blue primary · red danger.
   No gradients, no neon, no background images.
   ========================================================================== */

.vc {
  --vc-bg: #f6f7f9;
  --vc-surface: #ffffff;
  --vc-surface-2: #fafbfc;
  --vc-border: #e3e6ea;
  --vc-border-strong: #cfd4da;

  --vc-text: #14171c;
  --vc-text-2: #545c66;
  --vc-text-3: #838c97;

  --vc-blue: #1f6feb;
  --vc-blue-hover: #1a5fd0;
  --vc-blue-soft: #eaf1fe;
  --vc-blue-border: #bcd3fb;

  --vc-red: #d63b3b;
  --vc-red-hover: #bf2f2f;
  --vc-red-soft: #fdeded;
  --vc-red-border: #f5c6c6;

  --vc-green: #17803d;
  --vc-green-soft: #e9f6ed;
  --vc-green-border: #b9e0c6;

  --vc-amber: #96660a;
  --vc-amber-soft: #fdf3e2;
  --vc-amber-border: #f0dcb4;

  --vc-radius: 8px;
  --vc-radius-sm: 6px;

  background: var(--vc-bg);
  color: var(--vc-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.vc *, .vc *::before, .vc *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- shell -- */
.vc-top {
  background: var(--vc-surface);
  border-bottom: 1px solid var(--vc-border);
  position: sticky; top: 0; z-index: 40;
}
.vc-top-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; gap: 16px;
}
.vc-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--vc-text); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.vc-brand-mark {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  background: var(--vc-blue); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.vc-brand small { color: var(--vc-text-3); font-weight: 500; font-size: 13px; }
.vc-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.vc-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* ------------------------------------------------------------------ text -- */
.vc-h1 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; margin: 0; color: var(--vc-text); }
.vc-sub { color: var(--vc-text-2); font-size: 13.5px; margin: 4px 0 0; }
.vc-muted { color: var(--vc-text-3); }
.vc-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

.vc-card {
  background: var(--vc-surface);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
}
.vc-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--vc-border);
  display: flex; align-items: center; gap: 10px;
}
.vc-card-head h2 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; }
.vc-card-head .vc-hint { margin-left: auto; font-size: 12.5px; color: var(--vc-text-3); }
.vc-card-body { padding: 18px; }

/* ---------------------------------------------------------------- badges -- */
.vc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 100px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  border: 1px solid transparent; white-space: nowrap;
}
.vc-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.vc-badge--running { color: var(--vc-green); background: var(--vc-green-soft); border-color: var(--vc-green-border); }
.vc-badge--running .vc-dot { animation: vc-pulse 2s ease-in-out infinite; }
.vc-badge--stopped { color: var(--vc-text-2); background: #f0f2f4; border-color: var(--vc-border-strong); }
.vc-badge--paused  { color: var(--vc-amber); background: var(--vc-amber-soft); border-color: var(--vc-amber-border); }
.vc-badge--neutral { color: var(--vc-text-2); background: #f0f2f4; border-color: var(--vc-border); }
.vc-badge--blue    { color: var(--vc-blue); background: var(--vc-blue-soft); border-color: var(--vc-blue-border); }
@keyframes vc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --------------------------------------------------------------- buttons -- */
.vc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px;
  min-width: 0;
  padding: 0 14px;
  border-radius: var(--vc-radius-sm);
  border: 1px solid transparent;
  font-family: inherit; font-size: 13px; font-weight: 550; line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.vc-btn svg { width: 15px; height: 15px; flex: none; }
.vc-btn:focus-visible { outline: 2px solid var(--vc-blue); outline-offset: 2px; }
.vc-btn:disabled, .vc-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.vc-btn--primary { background: var(--vc-blue); color: #fff; border-color: var(--vc-blue); }
.vc-btn--primary:hover:not(:disabled) { background: var(--vc-blue-hover); border-color: var(--vc-blue-hover); }

.vc-btn--secondary { background: var(--vc-surface); color: var(--vc-text); border-color: var(--vc-border-strong); }
.vc-btn--secondary:hover:not(:disabled) { background: var(--vc-surface-2); border-color: #b9c0c8; }

.vc-btn--danger { background: var(--vc-red); color: #fff; border-color: var(--vc-red); }
.vc-btn--danger:hover:not(:disabled) { background: var(--vc-red-hover); border-color: var(--vc-red-hover); }

.vc-btn--ghost { background: transparent; color: var(--vc-text-2); border-color: transparent; }
.vc-btn--ghost:hover:not(:disabled) { background: #eef0f3; color: var(--vc-text); }

/* one clean responsive action toolbar — the core of the redesign */
.vc-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
}
.vc-toolbar-label {
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--vc-text-3); margin-right: 2px; white-space: nowrap;
}
.vc-toolbar-sep { width: 1px; height: 22px; background: var(--vc-border); margin: 0 4px; }
.vc-toolbar .vc-spacer { flex: 1 1 auto; min-width: 0; }

/* the Power group specifically, so primary/secondary/danger read clearly */
.vc-power { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* --------------------------------------------------------------- metrics -- */
.vc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.vc-metric {
  background: var(--vc-surface);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  padding: 15px 16px;
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.vc-metric-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--vc-text-3);
}
.vc-metric-label svg { width: 13px; height: 13px; flex: none; }
.vc-metric-value {
  font-size: 22px; font-weight: 650; letter-spacing: -0.02em; color: var(--vc-text);
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vc-metric-value small { font-size: 13px; font-weight: 550; color: var(--vc-text-3); letter-spacing: 0; }
.vc-metric-sub { font-size: 12.5px; color: var(--vc-text-3); }

.vc-bar { height: 4px; border-radius: 2px; background: #eceef1; overflow: hidden; margin-top: 7px; }
.vc-bar > span { display: block; height: 100%; border-radius: 2px; background: var(--vc-blue); }
.vc-bar--warn > span { background: var(--vc-amber); }
.vc-bar--danger > span { background: var(--vc-red); }

/* ------------------------------------------------------------------ info -- */
.vc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vc-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.vc-rows { display: grid; gap: 0; }
.vc-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vc-border);
  align-items: baseline;
}
.vc-row:last-child { border-bottom: none; }
.vc-row dt { color: var(--vc-text-2); font-size: 13px; }
.vc-row dd { margin: 0; color: var(--vc-text); font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.vc-row dd .vc-mono { font-size: 13px; }

.vc-copy {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; margin: 0;
  color: var(--vc-blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; cursor: pointer; text-align: left;
}
.vc-copy:hover { text-decoration: underline; }
.vc-copy svg { width: 13px; height: 13px; opacity: 0.7; flex: none; }

/* --------------------------------------------------------------- network -- */
.vc-ip { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-ip-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--vc-border); border-radius: var(--vc-radius-sm);
  background: var(--vc-surface-2);
  min-width: 0;
}
.vc-ip-tag b { font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vc-text-3); flex: none; }
.vc-ip-tag code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--vc-text);
  overflow-wrap: anywhere; min-width: 0;
}

.vc-traffic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.vc-traffic-item { min-width: 0; }
.vc-traffic-item b { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vc-text-3); }
.vc-traffic-item span { font-size: 15px; font-weight: 600; color: var(--vc-text); letter-spacing: -0.01em; }

/* --------------------------------------------------------------- console -- */
.vc-console {
  background: #0e1116;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-sm);
  padding: 22px 20px;
  text-align: center;
  color: #aab2bd;
}
.vc-console-icon { width: 34px; height: 34px; margin: 0 auto 10px; opacity: 0.85; }
.vc-console h3 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: #e6e9ee; }
.vc-console p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; }
.vc-console .vc-btn--secondary { background: #1a1f27; color: #e6e9ee; border-color: #2b323c; }
.vc-console .vc-btn--secondary:hover:not(:disabled) { background: #222833; border-color: #3a424e; }

/* -------------------------------------------------------------- activity -- */
.vc-timeline { display: grid; gap: 0; }
.vc-event { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--vc-border); align-items: start; }
.vc-event:last-child { border-bottom: none; }
.vc-event-dot { width: 9px; height: 9px; border-radius: 50%; margin: 5px auto 0; background: var(--vc-border-strong); }
.vc-event-dot--blue { background: var(--vc-blue); }
.vc-event-dot--green { background: var(--vc-green); }
.vc-event-dot--amber { background: var(--vc-amber); }
.vc-event-dot--red { background: var(--vc-red); }
.vc-event-body { min-width: 0; }
.vc-event-body b { display: block; font-size: 13.5px; font-weight: 550; color: var(--vc-text); }
.vc-event-body span { font-size: 12.5px; color: var(--vc-text-3); overflow-wrap: anywhere; }
.vc-event time { font-size: 12px; color: var(--vc-text-3); white-space: nowrap; padding-top: 2px; }

/* ------------------------------------------------------------ danger zone -- */
.vc-danger { border-color: var(--vc-red-border); }
.vc-danger .vc-card-head { border-bottom-color: var(--vc-red-border); background: var(--vc-red-soft); border-radius: var(--vc-radius) var(--vc-radius) 0 0; }
.vc-danger .vc-card-head h2 { color: var(--vc-red); display: flex; align-items: center; gap: 8px; }
.vc-danger .vc-card-head h2 svg { width: 15px; height: 15px; }
.vc-danger-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--vc-border); }
.vc-danger-row:last-child { border-bottom: none; padding-bottom: 0; }
.vc-danger-row:first-child { padding-top: 0; }
.vc-danger-text { flex: 1 1 260px; min-width: 0; }
.vc-danger-text b { display: block; font-size: 13.5px; font-weight: 600; color: var(--vc-text); }
.vc-danger-text span { font-size: 12.5px; color: var(--vc-text-2); }
.vc-danger-row .vc-btn { flex: none; }

/* ---------------------------------------------------------------- notice -- */
.vc-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; margin-bottom: 16px;
  border: 1px solid var(--vc-amber-border); background: var(--vc-amber-soft);
  border-radius: var(--vc-radius); color: #6b4a06; font-size: 13px; line-height: 1.55;
}
.vc-notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.vc-notice b { font-weight: 650; }

/* ----------------------------------------------------------------- modal -- */
.vc-modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 23, 28, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.vc-modal {
  background: var(--vc-surface);
  border-radius: 10px;
  width: 100%; max-width: 440px;
  box-shadow: 0 12px 32px rgba(20, 23, 28, 0.18);
  overflow: hidden;
}
.vc-modal-head { padding: 18px 20px 0; }
.vc-modal-head h2 { margin: 0 0 6px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.vc-modal-head p { margin: 0; color: var(--vc-text-2); font-size: 13.5px; line-height: 1.6; }
.vc-modal-body { padding: 16px 20px; display: grid; gap: 12px; }
.vc-modal-foot { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; background: var(--vc-surface-2); border-top: 1px solid var(--vc-border); }
.vc-modal-note {
  font-size: 12.5px; color: var(--vc-text-2); background: var(--vc-surface-2);
  border: 1px solid var(--vc-border); border-radius: var(--vc-radius-sm);
  padding: 10px 12px; line-height: 1.55;
}
.vc-modal-note b { color: var(--vc-text); }

.vc-spinner {
  width: 15px; height: 15px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: vc-spin 640ms linear infinite;
}
@keyframes vc-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- toasts -- */
.vc-toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.vc-toast {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-border-strong);
  border-left: 3px solid var(--vc-text-3);
  border-radius: var(--vc-radius-sm);
  padding: 11px 14px;
  box-shadow: 0 6px 18px rgba(20, 23, 28, 0.1);
  font-size: 13px; color: var(--vc-text);
  max-width: 380px;
  animation: vc-slide 180ms ease;
}
.vc-toast svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.vc-toast b { display: block; font-weight: 600; margin-bottom: 1px; }
.vc-toast span { color: var(--vc-text-2); }
.vc-toast--ok { border-left-color: var(--vc-green); }
.vc-toast--ok svg { color: var(--vc-green); }
.vc-toast--info { border-left-color: var(--vc-blue); }
.vc-toast--info svg { color: var(--vc-blue); }
.vc-toast--warn { border-left-color: var(--vc-amber); }
.vc-toast--warn svg { color: var(--vc-amber); }
@keyframes vc-slide { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1080px) {
  .vc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .vc-grid-2, .vc-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .vc-wrap { padding: 18px 16px 56px; }
  .vc-top-inner { padding: 0 16px; }
  .vc-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .vc-traffic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .vc-metrics { grid-template-columns: minmax(0, 1fr); }
  .vc-metric-value { font-size: 20px; }
  .vc-toolbar { padding: 12px 14px; gap: 7px; }
  .vc-btn { height: 36px; padding: 0 12px; font-size: 12.5px; }
  .vc-btn--full { flex: 1 1 100%; }
  .vc-traffic { grid-template-columns: minmax(0, 1fr); }
  .vc-toasts { right: 12px; left: 12px; bottom: 12px; align-items: stretch; }
  .vc-toast { max-width: none; }
}

/* ============================================================================
   More options menu + custom invoice builder
   ========================================================================== */

.vc-more-wrap { position: relative; }
.vc-more-wrap .vc-btn svg:last-child { width: 13px; height: 13px; opacity: 0.55; }

.vc-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  z-index: 60;
  width: 290px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-border-strong);
  border-radius: var(--vc-radius);
  box-shadow: 0 10px 28px rgba(20, 23, 28, 0.13);
  padding: 6px;
  max-height: 420px; overflow-y: auto;
}
.vc-menu[hidden] { display: none; }
.vc-menu-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--vc-text-3); padding: 9px 10px 5px;
}
.vc-menu-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  padding: 8px 10px; border: none; background: none; border-radius: var(--vc-radius-sm);
  text-align: left; cursor: pointer; font-family: inherit;
  color: var(--vc-text);
}
.vc-menu-item:hover { background: #f2f5f9; }
.vc-menu-ico { width: 16px; height: 16px; flex: none; color: var(--vc-text-3); margin-top: 2px; }
.vc-menu-item:hover .vc-menu-ico { color: var(--vc-blue); }
.vc-menu-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.vc-menu-text b { font-size: 13.5px; font-weight: 550; }
.vc-menu-text span { font-size: 12px; color: var(--vc-text-3); }

/* ---- invoice builder ---- */
.vc-inv-back {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 23, 28, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.vc-inv-modal {
  background: var(--vc-surface);
  border-radius: 10px;
  width: 100%; max-width: 720px;
  box-shadow: 0 16px 40px rgba(20, 23, 28, 0.2);
  overflow: hidden;
  margin: auto;
}
.vc-inv-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--vc-border);
}
.vc-inv-head h2 { margin: 0 0 3px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.vc-inv-head p { margin: 0; font-size: 13px; color: var(--vc-text-2); }
.vc-inv-x {
  margin-left: auto; flex: none; width: 30px; height: 30px;
  border: 1px solid var(--vc-border); background: var(--vc-surface);
  border-radius: var(--vc-radius-sm); cursor: pointer; color: var(--vc-text-2);
  display: grid; place-items: center;
}
.vc-inv-x:hover { background: var(--vc-surface-2); color: var(--vc-text); }
.vc-inv-x svg { width: 15px; height: 15px; }

.vc-inv-body { padding: 18px 20px; max-height: min(64vh, 620px); overflow-y: auto; }

.vc-inv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vc-inv-span2 { grid-column: 1 / -1; }
.vc-inv-label { display: block; font-size: 12px; font-weight: 600; color: var(--vc-text-2); min-width: 0; }
.vc-inv-label > .vc-inv-inp, .vc-inv-label > .vc-inv-chk { margin-top: 5px; }
.vc-inv-inp {
  display: block; width: 100%;
  height: 36px; padding: 0 10px;
  border: 1px solid var(--vc-border-strong); border-radius: var(--vc-radius-sm);
  background: var(--vc-surface); color: var(--vc-text);
  font-family: inherit; font-size: 13.5px;
}
.vc-inv-area { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.vc-inv-inp:focus { outline: none; border-color: var(--vc-blue); box-shadow: 0 0 0 3px var(--vc-blue-soft); }
.vc-inv-chk { width: 16px; height: 16px; accent-color: var(--vc-blue); }

.vc-inv-head-row, .vc-inv-item {
  display: grid; grid-template-columns: minmax(0, 1fr) 72px 100px 104px 34px;
  gap: 8px; align-items: center;
}
.vc-inv-head-row {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--vc-text-3); padding: 10px 0 6px;
}
.vc-inv-item { padding: 4px 0; }
.vc-inv-num { text-align: right; }
.vc-inv-amt {
  text-align: right; font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; padding-right: 2px;
}
.vc-inv-del {
  width: 32px; height: 32px; border: 1px solid transparent; background: none;
  border-radius: var(--vc-radius-sm); cursor: pointer; color: var(--vc-text-3);
  display: grid; place-items: center;
}
.vc-inv-del:hover { background: var(--vc-red-soft); color: var(--vc-red); }
.vc-inv-del svg { width: 15px; height: 15px; }
.vc-inv-add {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  height: 34px; padding: 0 12px;
  border: 1px dashed var(--vc-border-strong); background: var(--vc-surface-2);
  border-radius: var(--vc-radius-sm); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 550; color: var(--vc-blue);
}
.vc-inv-add:hover { background: var(--vc-blue-soft); border-color: var(--vc-blue-border); }
.vc-inv-add svg { width: 15px; height: 15px; }

.vc-inv-schedule {
  margin-top: 14px; border: 1px solid var(--vc-border); border-radius: var(--vc-radius);
  background: var(--vc-surface-2); overflow: hidden;
}
.vc-inv-schedule-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 13px; border-bottom: 1px solid var(--vc-border);
  font-size: 13px;
}
.vc-inv-schedule-head .vc-muted { font-size: 12.5px; }
.vc-inv-table { width: 100%; border-collapse: collapse; }
.vc-inv-td { padding: 7px 13px; font-size: 13px; border-bottom: 1px solid var(--vc-border); }
.vc-inv-table tr:last-child .vc-inv-td { border-bottom: none; }

.vc-inv-totals {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--vc-border);
  display: grid; gap: 7px; max-width: 300px; margin-left: auto;
}
.vc-inv-totals > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--vc-text-2); }
.vc-inv-totals b { color: var(--vc-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.vc-inv-grand { padding-top: 9px; border-top: 1px solid var(--vc-border); font-size: 15px !important; }
.vc-inv-grand b { font-size: 17px; font-weight: 700; }

.vc-inv-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; background: var(--vc-surface-2); border-top: 1px solid var(--vc-border);
}
.vc-inv-foot .vc-btn { flex: none; }
.vc-inv-err { flex: 1; min-width: 0; font-size: 13px; color: var(--vc-red); }
.vc-inv-err.is-on { display: block; }
.vc-inv-loading, .vc-inv-empty { padding: 22px 4px; text-align: center; color: var(--vc-text-3); font-size: 13.5px; }

@media (max-width: 720px) {
  .vc-inv-grid { grid-template-columns: minmax(0, 1fr); }
  .vc-inv-head-row { display: none; }
  .vc-inv-item {
    grid-template-columns: minmax(0, 1fr) 60px 88px 30px;
    grid-template-areas: "desc qty rate del" "amt amt amt amt";
    padding: 8px 0; border-bottom: 1px solid var(--vc-border);
  }
  .vc-inv-desc { grid-area: desc; }
  .vc-inv-item .vc-inv-num:nth-of-type(1) { grid-area: qty; }
  .vc-inv-item .vc-inv-num:nth-of-type(2) { grid-area: rate; }
  .vc-inv-amt { grid-area: amt; text-align: left; padding-left: 2px; color: var(--vc-text-2); }
  .vc-inv-del { grid-area: del; }
  .vc-menu { right: auto; left: 0; width: min(290px, calc(100vw - 48px)); }
  .vc-inv-foot { flex-wrap: wrap; }
  .vc-inv-err { flex: 1 0 100%; order: -1; }
}
