/* ==========================================================================
   Validation checkpoints modal (includes/validation_checkpoints_modal.php)
   Triggered by #vcOpenBtn in includes/validation_intelligence.php.
   Scanning invoice animation + live checkpoint ticking.
   ========================================================================== */

.vc-overlay {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(9, 24, 33, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vc-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

html.vc-lock,
body.vc-lock {
    overflow: hidden;
    height: 100%;
}

body.vc-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

.vc-panel {
    width: 100%;
    max-width: 1560px;
    height: min(880px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(5, 25, 35, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(18px) scale(0.985);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: Figtree, sans-serif;
    color: #0e1b23;
}

.vc-overlay.is-open .vc-panel {
    transform: none;
}

/* ---------- Header ---------- */
.vc-head {
    padding: 26px 40px 20px;
    position: relative;
    border-bottom: 1px solid #e4e9ed;
    flex: none;
}

.vc-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #00698c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vc-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #00698c;
}

.vc-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 10px;
    padding-right: 56px;
}

.vc-title span {
    color: #00698c;
}

.vc-sub {
    margin-top: 6px;
    font-size: 15px;
    color: #5b6a74;
    max-width: 740px;
    line-height: 1.5;
}

.vc-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e4e9ed;
    background: #fff;
    color: #0e1b23;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.vc-close:hover {
    background: #eaf4f8;
    border-color: #cfe3ec;
    transform: rotate(90deg);
}

.vc-close:focus-visible {
    outline: 3px solid #7cc3dd;
    outline-offset: 2px;
}

.vc-close svg {
    width: 16px;
    height: 16px;
}

.vc-skip {
    position: absolute;
    top: 28px;
    right: 84px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #004e6a;
    background: #fff;
    border: 1px solid #e4e9ed;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.vc-skip:hover {
    background: #eaf4f8;
    border-color: #cfe3ec;
}

.vc-skip:focus-visible {
    outline: 3px solid #7cc3dd;
    outline-offset: 2px;
}

.vc-panel.is-done .vc-skip {
    display: none;
}

/* search (appears when all checkpoints are verified) */
.vc-search {
    position: relative;
    display: block;
}

.vc-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #8a98a2;
    pointer-events: none;
}

.vc-search input {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: #0e1b23;
    border: 1px solid #e4e9ed;
    border-radius: 12px;
    background: #fafbfc;
    padding: 11px 14px 11px 40px;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.vc-search input::placeholder {
    color: #93a1ab;
}

.vc-search input:focus {
    outline: 0;
    background: #fff;
    border-color: #00698c;
    box-shadow: 0 0 0 4px rgba(0, 105, 140, 0.12);
}

.vc-head .vc-search {
    position: absolute;
    right: 40px;
    bottom: 18px;
    width: 320px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.45s ease 0.35s, transform 0.45s ease 0.35s;
}

.vc-panel.is-done .vc-head .vc-search {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* ---------- Heading filter bar (unlocks when done) ---------- */
.vc-side {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 68px;
    padding: 16px 28px;
    background: #fafbfc;
    border-bottom: 1px solid #e4e9ed;
    overflow-x: auto;
    scrollbar-width: none;
}

.vc-side::-webkit-scrollbar {
    display: none;
}

.vc-side.vc-fade-r {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}

.vc-side.vc-fade-l {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px);
    mask-image: linear-gradient(90deg, transparent, #000 56px);
}

.vc-side.vc-fade-l.vc-fade-r {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}

.vc-side-hint {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #8a98a2;
    transition: opacity 0.25s;
}

.vc-side-hint svg {
    width: 15px;
    height: 15px;
}

.vc-panel.is-done .vc-side-hint {
    opacity: 0;
    pointer-events: none;
}

.vc-side-item {
    flex: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 7px 7px 13px;
    border: 1px solid #e4e9ed;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.4s ease, transform 0.4s ease;
}

.vc-panel.is-done .vc-side-item {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s, 0s, 0s, calc(var(--vc-i) * 70ms), calc(var(--vc-i) * 70ms);
}

.vc-side-item:hover {
    border-color: #b9d6e2;
    background: #f3f9fb;
}

.vc-side-item:focus-visible {
    outline: 3px solid #7cc3dd;
    outline-offset: 2px;
}

.vc-side-item .vc-t {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    color: #2a3a44;
}

.vc-side-item .vc-c {
    min-width: 22px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e9eef1;
    color: #5b6a74;
    font-variant-numeric: tabular-nums;
}

.vc-side-item[aria-selected="true"] {
    background: #00698c;
    border-color: #00698c;
    box-shadow: 0 3px 8px rgba(0, 105, 140, 0.25);
}

.vc-side-item[aria-selected="true"] .vc-t {
    color: #fff;
}

.vc-side-item[aria-selected="true"] .vc-c {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.vc-side-item.vc-dim {
    opacity: 0.45 !important;
}

/* ---------- Body: invoice (left) + checkpoints (right) ---------- */
.vc-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(310px, 38%) 1fr;
}

/* ---- left: invoice that keeps scanning ---- */
.vc-scan-left {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: radial-gradient(80% 70% at 50% 40%, #f6fbfd, #e6eff5);
    border-right: 1px solid #e4e9ed;
}

.vc-scan-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.vc-paper-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -270px 0 0 -190px;
    width: 380px;
    height: 540px;
    transform-origin: center center;
    transition: transform 0.4s ease;
}

.vc-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 3px solid #00698c;
    border-radius: 5px;
    animation: vc-bracket 1.8s ease-in-out infinite;
}

.vc-corner.vc-tl { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.vc-corner.vc-tr { top: -14px; right: -14px; border-left: 0; border-bottom: 0; }
.vc-corner.vc-bl { bottom: -14px; left: -14px; border-right: 0; border-top: 0; }
.vc-corner.vc-br { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }

@keyframes vc-bracket {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.vc-scan-left.is-done .vc-corner {
    border-color: #22b36b;
}

.vc-paper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    padding: 24px 22px;
    box-shadow: 0 22px 44px rgba(5, 40, 60, 0.18), 0 0 0 1px rgba(5, 40, 60, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vc-p-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vc-p-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #17313f;
}

.vc-p-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d8e8ef, #b9d3e0);
}

.vc-p-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.vc-p-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.vc-sk {
    height: 7px;
    border-radius: 4px;
    background: #e3e9ee;
    margin-top: 5px;
}

.vc-lb {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #8795a0;
    text-transform: uppercase;
    white-space: nowrap;
}

.vc-t-head,
.vc-t-row {
    display: grid;
    grid-template-columns: 2.4fr 1fr 0.8fr 1fr 1.2fr;
    gap: 6px;
}

.vc-t-head {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #6b7b86;
    text-transform: uppercase;
    padding-bottom: 5px;
    border-bottom: 1px solid #e3e9ee;
}

.vc-t-row {
    padding-top: 7px;
}

.vc-t-row i {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: #e3e9ee;
}

.vc-p-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.vc-qr {
    width: 58px;
    height: 58px;
    border-radius: 6px;
    margin-bottom: 4px;
    background:
        repeating-linear-gradient(0deg, #cdd8df 0 4px, transparent 4px 8px),
        repeating-linear-gradient(90deg, #cdd8df 0 4px, transparent 4px 8px), #f3f6f8;
    border: 3px solid #cdd8df;
}

.vc-p-tot {
    width: 164px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vc-tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.vc-tr .vc-sk {
    margin-top: 0;
}

.vc-tr.vc-strong .vc-sk {
    background: #c4d3dc;
    height: 9px;
}

.vc-p-sign {
    display: flex;
    justify-content: flex-end;
}

.vc-p-sign .vc-f {
    width: 150px;
    text-align: center;
}

.vc-p-sign .vc-sk {
    margin: 8px auto 5px;
}

.vc-f {
    position: relative;
    padding: 5px 6px;
    border-radius: 7px;
    transition: box-shadow 0.35s, background 0.35s;
}

.vc-f.vc-found {
    background: rgba(0, 105, 140, 0.07);
    box-shadow: 0 0 0 2px rgba(0, 105, 140, 0.55);
}

.vc-f.vc-found::after {
    content: "\2713";
    position: absolute;
    top: -7px;
    right: -7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22b36b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    animation: vc-pop 0.3s ease both;
}

/* scanner beam – keeps running the whole time */
.vc-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #00698c 12%, #00698c 88%, transparent);
    box-shadow: 0 0 16px 4px rgba(0, 105, 140, 0.35);
    animation: vc-sweep 2.1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.vc-beam::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 96px;
    background: linear-gradient(180deg, rgba(0, 105, 140, 0), rgba(0, 105, 140, 0.15));
}

@keyframes vc-sweep {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 2px); opacity: 0; }
}

/* when every checkpoint is ticked: scanning stops, big green tick + "Verified" */
.vc-scan-left.is-done .vc-beam {
    animation: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.vc-scan-left.is-done .vc-corner {
    animation: none;
    opacity: 1;
}

.vc-v-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.62);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vc-v-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.vc-v-badge svg {
    width: 116px;
    height: 116px;
    filter: drop-shadow(0 10px 22px rgba(34, 179, 107, 0.38));
}

.vc-v-badge .vc-vc {
    fill: #22b36b;
}

.vc-v-badge .vc-vt {
    fill: none;
    stroke: #fff;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
}

.vc-v-badge span {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #14804a;
    background: #fff;
    border: 2px solid #22b36b;
    border-radius: 999px;
    padding: 7px 22px;
    box-shadow: 0 8px 20px rgba(34, 179, 107, 0.2);
}

.vc-scan-left.is-done .vc-v-overlay {
    opacity: 1;
}

.vc-scan-left.is-done .vc-v-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.3s ease 0.15s, transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s;
}

.vc-scan-left.is-done .vc-v-badge .vc-vt {
    animation: vc-draw2 0.5s 0.5s ease forwards;
}

@keyframes vc-draw2 {
    to { stroke-dashoffset: 0; }
}

.vc-status {
    flex: none;
    align-self: center;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #004e6a;
    background: #fff;
    border: 1px solid #e4e9ed;
    border-radius: 999px;
    padding: 9px 18px;
    box-shadow: 0 6px 16px rgba(5, 40, 60, 0.07);
}

.vc-status i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00698c;
    animation: vc-pulse 1.1s ease-in-out infinite;
}

.vc-scan-left.is-done .vc-status {
    color: #14804a;
}

.vc-scan-left.is-done .vc-status i {
    background: #22b36b;
    animation: none;
}

@keyframes vc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 105, 140, 0.45); }
    50% { box-shadow: 0 0 0 7px rgba(0, 105, 140, 0); }
}

/* ---- right: checkpoints ---- */
.vc-scan-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.vc-rh {
    flex: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 40px 12px 32px;
}

.vc-rh-t {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.vc-rh-s {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #00698c;
}

.vc-rh-c {
    font-size: 13px;
    font-weight: 600;
    color: #5b6a74;
    white-space: nowrap;
}

.vc-rh-c b {
    font-size: 30px;
    font-weight: 800;
    color: #00698c;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.vc-scan-right.is-done .vc-rh-c b,
.vc-scan-right.is-done .vc-rh-s {
    color: #14804a;
}

.vc-pbar {
    flex: none;
    height: 6px;
    margin: 0 40px 0 32px;
    border-radius: 99px;
    background: #e9eef1;
    overflow: hidden;
}

.vc-pbar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #00698c, #22b36b);
    transition: width 0.12s linear;
}

.vc-rows {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 32px 20px 32px;
}

.vc-rows::-webkit-scrollbar {
    width: 10px;
}

.vc-rows::-webkit-scrollbar-thumb {
    background: #d5dde2;
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.vc-rgroup {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 8px;
    border-bottom: 1px solid #e4e9ed;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00698c;
}

.vc-rgroup em {
    font-style: normal;
    color: #93a1ab;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.vc-rnote {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #004e6a;
    background: #eaf4f8;
    border-radius: 10px;
    padding: 9px 14px;
}

.vc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 6px;
    border-bottom: 1px solid #f1f4f6;
    opacity: 0.5;
    transition: opacity 0.25s, background 0.6s;
}

.vc-row.vc-run,
.vc-row.vc-ok {
    opacity: 1;
}

.vc-row.vc-flash {
    background: #effaf3;
}

.vc-panel.is-done .vc-row:hover {
    background: #eaf4f8;
}

.vc-rtxt {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #1b2a33;
}

.vc-rtxt mark {
    background: #d4ecf5;
    color: #004e6a;
    border-radius: 3px;
    padding: 0 1px;
}

.vc-rn {
    font-size: 11.5px;
    font-weight: 700;
    color: #9aa8b1;
    font-variant-numeric: tabular-nums;
}

.vc-tick {
    flex: none;
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cdd7dd;
    transition: background 0.2s, border-color 0.2s;
}

.vc-tick svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.vc-tick path {
    stroke-dasharray: 15;
    stroke-dashoffset: 15;
}

.vc-row.vc-run .vc-tick {
    border-color: #cfe3ec;
    border-top-color: #00698c;
    animation: vc-spin 0.55s linear infinite;
}

.vc-row.vc-ok .vc-tick {
    background: #22b36b;
    border-color: #22b36b;
    animation: vc-pop 0.35s ease both;
}

.vc-row.vc-ok .vc-tick svg {
    opacity: 1;
}

.vc-row.vc-ok .vc-tick path {
    animation: vc-draw 0.3s 0.05s ease forwards;
}

@keyframes vc-spin {
    to { transform: rotate(360deg); }
}

@keyframes vc-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes vc-pop {
    0% { transform: scale(0.55); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.vc-empty {
    display: none;
    text-align: center;
    padding: 70px 20px;
    color: #5b6a74;
}

.vc-empty strong {
    display: block;
    font-size: 17px;
    color: #0e1b23;
    margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.vc-foot {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 40px;
    border-top: 1px solid #e4e9ed;
    background: #fafbfc;
    font-size: 13.5px;
    color: #5b6a74;
}

.vc-foot strong {
    color: #0e1b23;
}

.vc-foot-count {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease 0.4s;
}

.vc-panel.is-done .vc-foot-count {
    visibility: visible;
    opacity: 1;
}

.vc-foot-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vc-ghost {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #004e6a;
    background: #fff;
    border: 1px solid #e4e9ed;
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.vc-ghost:hover {
    background: #eaf4f8;
    border-color: #cfe3ec;
}

.vc-ghost:focus-visible {
    outline: 3px solid #7cc3dd;
    outline-offset: 2px;
}

.vc-done {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #00698c;
    border: 0;
    border-radius: 12px;
    padding: 11px 22px;
    cursor: pointer;
    transition: background 0.15s;
}

.vc-done:hover {
    background: #004e6a;
}

.vc-done:focus-visible {
    outline: 3px solid #7cc3dd;
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .vc-head .vc-search {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        margin-top: 14px;
        display: none;
        opacity: 1;
        transform: none;
    }

    .vc-panel.is-done .vc-head .vc-search {
        display: block;
    }
}

@media (max-width: 860px) {
    .vc-side {
        padding: 14px 20px;
        min-height: 62px;
    }

    .vc-side-hint {
        left: 20px;
    }

    .vc-main {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(180px, 32%) minmax(0, 1fr);
        min-height: 0;
        overflow: hidden;
    }

    .vc-scan-left {
        border-right: 0;
        border-bottom: 1px solid #e4e9ed;
    }

    .vc-status {
        margin-bottom: 12px;
    }

    .vc-rh {
        padding: 14px 20px 10px;
    }

    .vc-pbar {
        margin: 0 20px;
    }

    .vc-rows {
        padding: 0 20px 14px;
        /* iOS Safari needs an explicit touch-scroll hint inside a flex/grid
           child or the list can appear frozen even though overflow is set. */
        -webkit-overflow-scrolling: touch;
    }

    .vc-skip {
        right: 72px;
    }
}

@media (max-width: 720px) {
    .vc-overlay {
        padding: 0;
    }

    .vc-panel {
        border-radius: 0;
        /* Use the dynamic viewport height so mobile browser chrome
           (address bar show/hide) never clips content below the fold.
           100% falls back for browsers without dvh support. */
        height: 100%;
        height: 100dvh;
        max-width: none;
    }

    .vc-head {
        padding: 20px 20px 16px;
    }

    .vc-title {
        font-size: 21px;
    }

    .vc-head .vc-sub {
        display: none;
    }

    .vc-close {
        top: 16px;
        right: 16px;
    }

    .vc-skip {
        top: 20px;
        right: 64px;
        padding: 8px 13px;
    }

    .vc-xs-hide {
        display: none;
    }

    .vc-foot {
        padding: 12px 20px;
    }

    .vc-ghost {
        display: none;
    }

    .vc-side-hint {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .vc-main {
        grid-template-rows: minmax(150px, 26%) minmax(0, 1fr);
    }

    .vc-scan-left .vc-status {
        margin-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-panel,
    .vc-row,
    .vc-corner,
    .vc-beam,
    .vc-status i,
    .vc-v-badge,
    .vc-side-item,
    .vc-tick {
        animation: none !important;
        transition: none !important;
    }

    .vc-row.vc-ok .vc-tick path,
    .vc-v-badge .vc-vt {
        stroke-dashoffset: 0 !important;
    }
}
