:root {
    --pv-bg: #f4f5f8;
    --pv-panel: #fff;
    --pv-ink: #17191f;
    --pv-muted: #707580;
    --pv-line: #e8e9ee;
    --pv-primary: #7257e8;
    --pv-primary-dark: #5e43d1;
    --pv-primary-soft: #f0edff;
    --pv-radius: 18px;
    --pv-shadow: 0 10px 34px rgba(32, 34, 45, .06);
}

.pv-app-page {
    background: var(--pv-bg);
}

.pv-app-page .site-main,
.pv-app-page main {
    min-width: 0;
}

.pv-shell {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    padding: 44px 0 72px;
    color: var(--pv-ink);
}

.pv-shell--narrow {
    max-width: 1040px;
}

.pv-page-head,
.pv-detail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.pv-page-head h1,
.pv-detail-head h1 {
    margin: 4px 0 7px;
    color: var(--pv-ink);
    font-size: clamp(31px, 4vw, 46px);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.pv-page-head p,
.pv-detail-head p,
.pv-panel__head p,
.pv-step-head p {
    margin: 0;
    color: var(--pv-muted);
    font-size: 14px;
}

.pv-eyebrow {
    display: inline-block;
    color: var(--pv-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.pv-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 10px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 730;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pv-button:hover {
    transform: translateY(-1px);
}

.pv-button:disabled {
    opacity: .55;
    transform: none;
    cursor: not-allowed;
}

.pv-button--primary {
    background: var(--pv-primary);
    box-shadow: 0 8px 18px rgba(114, 87, 232, .22);
    color: #fff !important;
}

.pv-button--primary:hover {
    background: var(--pv-primary-dark);
}

.pv-button--dark {
    background: #202229;
    color: #fff !important;
}

.pv-button--soft {
    border-color: #e5e1fb;
    background: #f7f5ff;
    color: #5f49c8 !important;
}

.pv-button--small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
}

.pv-button--large {
    min-height: 52px;
    padding: 13px 22px;
}

.pv-panel {
    margin-bottom: 20px;
    border: 1px solid var(--pv-line);
    border-radius: var(--pv-radius);
    background: var(--pv-panel);
    box-shadow: var(--pv-shadow);
}

.pv-panel__head {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pv-line);
}

.pv-panel__head h2,
.pv-panel > h2 {
    margin: 0 0 4px;
    color: var(--pv-ink);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.pv-text-link {
    color: var(--pv-primary) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.pv-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.pv-stat-card {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--pv-line);
    border-radius: 15px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(32, 34, 45, .045);
}

.pv-stat-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 13px;
    font-size: 20px;
    font-weight: 800;
}

.pv-stat-card__icon--violet { background: #eeeaff; color: #7056df; }
.pv-stat-card__icon--blue { background: #e8f3ff; color: #2875c7; }
.pv-stat-card__icon--amber { background: #fff3da; color: #b87510; }
.pv-stat-card__icon--green { background: #e7f8ef; color: #238755; }

.pv-stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pv-ink);
    font-size: 27px;
    line-height: 1;
}

.pv-stat-card div > span {
    color: var(--pv-muted);
    font-size: 12px;
}

.pv-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.pv-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    color: var(--pv-ink);
    font-size: 13px;
}

.pv-table th,
.pv-table td {
    border: 0;
    border-bottom: 1px solid var(--pv-line);
    padding: 16px 18px;
    background: #fff;
    text-align: left;
    vertical-align: middle;
}

.pv-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    background: #fafafd;
    color: #8a8e98;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pv-table tbody tr:last-child td {
    border-bottom: 0;
}

.pv-table tbody tr:hover td {
    background: #fcfbff;
}

.pv-table tbody .pv-clickable-row {
    cursor: pointer;
}

.pv-table tbody .pv-clickable-row:focus {
    outline: 0;
}

.pv-table tbody .pv-clickable-row:focus td {
    background: #f6f3ff;
    box-shadow: inset 0 2px 0 rgba(114, 87, 232, .35), inset 0 -2px 0 rgba(114, 87, 232, .35);
}

.pv-table tbody .pv-clickable-row:focus td:first-child {
    box-shadow: inset 2px 0 0 rgba(114, 87, 232, .35), inset 0 2px 0 rgba(114, 87, 232, .35), inset 0 -2px 0 rgba(114, 87, 232, .35);
}

.pv-table tbody .pv-clickable-row:focus td:last-child {
    box-shadow: inset -2px 0 0 rgba(114, 87, 232, .35), inset 0 2px 0 rgba(114, 87, 232, .35), inset 0 -2px 0 rgba(114, 87, 232, .35);
}

.pv-table td strong {
    color: var(--pv-ink);
}

.pv-table td small {
    display: block;
    margin-top: 3px;
    color: var(--pv-muted);
    font-size: 11px;
}

.pv-row-link {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--pv-line);
    border-radius: 9px;
    color: var(--pv-primary) !important;
    font-size: 17px;
    text-decoration: none !important;
}

.pv-direction {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4b4e57;
    white-space: nowrap;
}

.pv-direction::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9b8be5;
}

.pv-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 99px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.pv-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pv-status--awaiting_signature { background: #fff2db; color: #9b620b; }
.pv-status--signed { background: #e9f4ff; color: #246da8; }
.pv-status--emailed { background: #e4f7ed; color: #167849; }

.pv-empty {
    padding: 55px 24px 62px;
    text-align: center;
}

.pv-empty__icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 15px;
    background: var(--pv-primary-soft);
    color: var(--pv-primary);
    font-size: 22px;
}

.pv-empty h3 {
    margin: 0 0 5px;
    color: var(--pv-ink);
    font-size: 17px;
}

.pv-empty p {
    margin: 0;
    color: var(--pv-muted);
    font-size: 13px;
}

.pv-form .pv-panel {
    padding: 24px;
}

.pv-step-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.pv-step-head > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--pv-primary-soft);
    color: var(--pv-primary);
    font-size: 13px;
    font-weight: 800;
}

.pv-step-head h2 {
    margin: 0 0 3px;
    color: var(--pv-ink);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.pv-step-head .pv-button {
    margin-left: auto;
}

.pv-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pv-choice {
    position: relative;
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 13px;
    border: 1.5px solid var(--pv-line);
    border-radius: 14px;
    padding: 17px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.pv-choice:hover {
    border-color: #cfc6f6;
}

.pv-choice.is-selected {
    border-color: var(--pv-primary);
    background: #fbfaff;
    box-shadow: 0 0 0 3px rgba(114, 87, 232, .08);
}

.pv-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pv-choice__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 11px;
    background: #f1f2f5;
    color: #666b75;
    font-size: 19px;
}

.pv-choice.is-selected .pv-choice__icon {
    background: var(--pv-primary-soft);
    color: var(--pv-primary);
}

.pv-choice strong,
.pv-choice small {
    display: block;
}

.pv-choice strong {
    margin-bottom: 5px;
    color: var(--pv-ink);
    font-size: 14px;
}

.pv-choice small {
    color: var(--pv-muted);
    font-size: 11px;
}

.pv-choice i {
    display: none;
    width: 21px;
    height: 21px;
    margin-left: auto;
    place-items: center;
    border-radius: 50%;
    background: var(--pv-primary);
    color: #fff;
    font-size: 11px;
    font-style: normal;
}

.pv-choice.is-selected i {
    display: grid;
}

.pv-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.pv-field {
    display: block;
    margin: 0;
}

.pv-field--wide {
    grid-column: 1 / -1;
}

.pv-field > span {
    display: block;
    margin: 0 0 7px;
    color: #4e515a;
    font-size: 11px;
    font-weight: 720;
}

.pv-field input,
.pv-field select,
.pv-field textarea,
.pv-filter input,
.pv-filter select {
    width: 100%;
    min-height: 45px;
    margin: 0;
    border: 1px solid #dde0e6;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    background: #fff;
    box-shadow: none;
    color: var(--pv-ink);
    font: inherit;
    font-size: 13px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pv-field textarea {
    min-height: 94px;
    resize: vertical;
}

.pv-field input:focus,
.pv-field select:focus,
.pv-field textarea:focus,
.pv-filter input:focus,
.pv-filter select:focus {
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px rgba(114, 87, 232, .1);
}

.pv-field input.is-locked {
    background: #f5f5f7;
    color: #565962;
}

.pv-field > small {
    display: block;
    margin: 6px 0 0;
    color: #8b8e97;
    font-size: 10px;
}

.pv-items {
    display: grid;
    gap: 11px;
}

.pv-item-row {
    display: grid;
    grid-template-columns: 32px 1.35fr 1fr 1fr 32px;
    align-items: end;
    gap: 10px;
    border: 1px solid #ececf1;
    border-radius: 13px;
    padding: 13px;
    background: #fafafd;
}

.pv-item-row__number {
    display: grid;
    width: 28px;
    height: 45px;
    place-items: center;
    color: #9a9da6;
    font-size: 12px;
    font-weight: 800;
}

.pv-item-remove,
.pv-scan-remove {
    display: grid;
    width: 30px;
    height: 45px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a2a5ad;
    font: 400 22px/1 sans-serif;
    cursor: pointer;
}

.pv-item-remove:hover {
    background: #fff0f0;
    color: #b43b3b;
}

.pv-item-remove:disabled {
    opacity: .25;
    cursor: default;
}

.pv-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 5px;
}

.pv-form-actions p {
    max-width: 300px;
    margin: 0;
    color: var(--pv-muted);
    font-size: 11px;
}

.pv-form-message {
    display: none;
    margin: 12px 0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
}

.pv-form-message:not(:empty) {
    display: block;
    background: #f1f2f5;
    color: #4c5058;
}

.pv-form-message.is-error { display: block; background: #fff0f0; color: #a93434; }
.pv-form-message.is-success { display: block; background: #e6f7ee; color: #196d45; }
.pv-form-message.is-warning { display: block; background: #fff4dc; color: #8c5c0f; }

.pv-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) 150px 155px 142px 142px auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--pv-line);
    border-radius: 15px;
    padding: 15px;
    background: #fff;
}

.pv-filter label > span {
    display: block;
    margin: 0 0 5px;
    color: #858994;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.pv-search {
    position: relative;
}

.pv-search > span {
    position: absolute;
    z-index: 1;
    left: 13px;
    bottom: 12px;
    margin: 0 !important;
    color: #969aa3 !important;
    font-size: 18px !important;
}

.pv-search input {
    padding-left: 38px;
}

.pv-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    border-top: 1px solid var(--pv-line);
}

.pv-pagination a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    color: #636771 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.pv-pagination a.is-current {
    background: var(--pv-primary);
    color: #fff !important;
}

.pv-back-link {
    display: inline-block;
    margin-bottom: 23px;
    color: #6e727b !important;
    font-size: 12px;
    font-weight: 680;
    text-decoration: none !important;
}

.pv-detail-head {
    align-items: center;
}

.pv-detail-head h1 {
    font-size: 38px;
}

.pv-detail-head__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #747883;
    font-size: 11px;
}

.pv-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pv-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(280px, .72fr);
    gap: 20px;
    align-items: start;
}

.pv-table--items td:first-child {
    width: 45%;
}

.pv-detail-side .pv-panel {
    padding: 20px;
}

.pv-meta-list {
    margin: 15px 0 0;
}

.pv-meta-list div {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 12px;
    border-top: 1px solid var(--pv-line);
    padding: 11px 0;
    font-size: 11px;
}

.pv-meta-list dt {
    color: #8a8e97;
}

.pv-meta-list dd {
    margin: 0;
    color: #33363e;
    font-weight: 650;
    text-align: right;
}

.pv-note {
    margin: 13px 0 0;
    color: #555a64;
    font-size: 12px;
    line-height: 1.55;
}

#pv-scan-form {
    padding: 22px;
}

.pv-scan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.pv-scan-slot {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1.5px dashed #cfd2db;
    border-radius: 14px;
    background: #fafafd;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.pv-scan-slot:hover {
    border-color: var(--pv-primary);
    background: #faf9ff;
}

.pv-scan-slot > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pv-scan-slot__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
    text-align: center;
}

.pv-scan-slot__empty > span {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    place-items: center;
    border-radius: 14px;
    background: var(--pv-primary-soft);
    color: var(--pv-primary);
    font-size: 22px;
}

.pv-scan-slot__empty strong {
    color: var(--pv-ink);
    font-size: 14px;
}

.pv-scan-slot__empty small {
    color: var(--pv-muted);
    font-size: 10px;
}

.pv-scan-slot__preview {
    position: absolute;
    inset: 0;
    display: none;
    background: #222;
}

.pv-scan-slot__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pv-scan-slot__preview small {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 99px;
    padding: 5px 8px;
    background: rgba(20, 23, 29, .82);
    color: #fff;
    font-size: 9px;
}

.pv-scan-slot__preview .pv-scan-remove {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 7px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(20, 23, 29, .84);
    color: #fff;
}

.pv-scan-slot.has-scan .pv-scan-slot__empty {
    display: none;
}

.pv-scan-slot.has-scan .pv-scan-slot__preview {
    display: block;
}

.pv-hint {
    margin: 12px 0 16px;
    color: var(--pv-muted);
    font-size: 10px;
}

.pv-ocr {
    padding: 18px 20px;
}

.pv-ocr summary {
    color: #555962;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pv-ocr pre {
    overflow: auto;
    max-height: 300px;
    margin: 14px 0 0;
    border-radius: 9px;
    padding: 14px;
    background: #f5f5f7;
    color: #555;
    font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: pre-wrap;
}

.pv-crop-modal[hidden] {
    display: none;
}

.pv-modal-open,
.pv-modal-open body {
    overflow: hidden;
}

.pv-crop-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(12, 14, 18, .86);
    backdrop-filter: blur(9px);
}

.pv-crop-modal__dialog {
    display: flex;
    width: min(1050px, 100%);
    max-height: calc(100vh - 36px);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: #191b20;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    color: #fff;
}

.pv-crop-modal__dialog header,
.pv-crop-modal__dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #202228;
}

.pv-crop-modal__dialog h2 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 18px;
}

.pv-crop-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #30333b;
    color: #fff;
    font: 300 25px/1 sans-serif;
    cursor: pointer;
}

.pv-crop-stage {
    position: relative;
    display: grid;
    min-height: 330px;
    flex: 1 1 auto;
    place-items: center;
    overflow: auto;
    padding: 10px;
    background-color: #111318;
    background-image: linear-gradient(45deg,#17191e 25%,transparent 25%),linear-gradient(-45deg,#17191e 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#17191e 75%),linear-gradient(-45deg,transparent 75%,#17191e 75%);
    background-position: 0 0,0 8px,8px -8px,-8px 0;
    background-size: 16px 16px;
}

.pv-crop-stage canvas {
    display: block;
    max-width: 100%;
    touch-action: none;
}

.pv-crop-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #c7c9cf;
    font-size: 13px;
}

.pv-crop-loading[hidden] {
    display: none;
}

.pv-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d3d4d9;
    font-size: 11px;
}

.pv-login-card {
    width: min(420px, calc(100% - 32px));
    margin: 80px auto;
    border: 1px solid var(--pv-line);
    border-radius: 20px;
    padding: 32px;
    background: #fff;
    box-shadow: var(--pv-shadow);
    text-align: center;
}

.pv-login-card__mark {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    place-items: center;
    border-radius: 14px;
    background: var(--pv-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.pv-login-card h1 {
    margin: 0 0 5px;
    color: var(--pv-ink);
    font-size: 28px;
}

.pv-login-card > p {
    margin: 0 0 22px;
    color: var(--pv-muted);
    font-size: 13px;
}

.pv-login-card form {
    text-align: left;
}

.pv-login-card label {
    color: #555963;
    font-size: 11px;
    font-weight: 700;
}

.pv-login-card input[type="text"],
.pv-login-card input[type="password"] {
    width: 100%;
    min-height: 45px;
    margin: 6px 0 14px;
    border: 1px solid #dde0e6;
    border-radius: 10px;
    padding: 10px 12px;
}

.pv-login-card .login-submit input {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--pv-primary);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.pv-alert {
    width: min(100% - 32px, 900px);
    margin: 50px auto;
    border-radius: 12px;
    padding: 16px;
}

.pv-alert--error {
    background: #fff0f0;
    color: #a93434;
}

@media (max-width: 1080px) {
    .pv-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pv-filter {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .pv-detail-grid {
        grid-template-columns: 1fr;
    }

    .pv-detail-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .pv-shell {
        width: min(100% - 24px, 1280px);
        padding: 27px 0 55px;
    }

    .pv-page-head,
    .pv-detail-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 21px;
    }

    .pv-page-head h1,
    .pv-detail-head h1 {
        font-size: 31px;
    }

    .pv-page-head .pv-button {
        width: 100%;
    }

    .pv-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pv-stat-card {
        min-height: 98px;
        gap: 10px;
        padding: 14px;
    }

    .pv-stat-card__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
        font-size: 17px;
    }

    .pv-stat-card strong {
        font-size: 22px;
    }

    .pv-stat-card div > span {
        font-size: 10px;
    }

    .pv-panel__head {
        min-height: 72px;
        padding: 16px;
    }

    .pv-form .pv-panel {
        padding: 17px;
    }

    .pv-choice-grid,
    .pv-field-grid,
    .pv-scan-grid,
    .pv-detail-side {
        grid-template-columns: 1fr;
    }

    .pv-item-row {
        grid-template-columns: 28px 1fr 32px;
        align-items: start;
    }

    .pv-item-row .pv-field {
        grid-column: 2;
    }

    .pv-item-row__number {
        grid-row: 1 / span 3;
    }

    .pv-item-remove {
        grid-column: 3;
        grid-row: 1;
    }

    .pv-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pv-form-actions .pv-button {
        width: 100%;
    }

    .pv-form-actions p {
        max-width: none;
        text-align: center;
    }

    .pv-filter {
        grid-template-columns: 1fr 1fr;
    }

    .pv-filter .pv-search {
        grid-column: 1 / -1;
    }

    .pv-filter .pv-button {
        grid-column: 1 / -1;
    }

    .pv-detail-actions {
        width: 100%;
        justify-content: stretch;
    }

    .pv-detail-actions .pv-button {
        flex: 1 1 auto;
    }

    .pv-scan-slot {
        min-height: 160px;
    }

    .pv-crop-modal {
        padding: 0;
    }

    .pv-crop-modal__dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    .pv-crop-modal__dialog footer {
        flex-wrap: wrap;
    }

    .pv-filter-toggle {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .pv-crop-modal__dialog footer .pv-button {
        flex: 1 1 auto;
        padding-inline: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pv-stat-grid {
        grid-template-columns: 1fr;
    }

    .pv-filter {
        grid-template-columns: 1fr;
    }

    .pv-filter .pv-search,
    .pv-filter .pv-button {
        grid-column: auto;
    }

    .pv-step-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pv-step-head .pv-button {
        width: 100%;
        margin-left: 47px;
    }
}
