.vftnved-wrap {
    max-width: 1800px;
    color: #111827;
    font-family: inherit;
}

.vftnved-frontend {
    max-width: 1440px;
    margin: 0 auto;
    font-size: 14px;
}

.vftnved-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 14px;
}

.vftnved-head h2 {
    margin: 0 0 4px;
    font-size: 26px;
    line-height: 1.2;
}

.vftnved-head p,
.vftnved-wrap .description {
    color: #646970;
    margin: 0;
}

.vftnved-wrap label,
.vftnved-wrap td,
.vftnved-wrap th,
.vftnved-wrap strong,
.vftnved-wrap code {
    color: #111827;
}

.vftnved-wrap input,
.vftnved-wrap textarea,
.vftnved-wrap select {
    color: #111827;
    font-family: inherit;
}

.vftnved-wrap input::placeholder,
.vftnved-wrap textarea::placeholder {
    color: #8a8f98;
}

.vftnved-wrap .notice {
    border-left: 4px solid #3157d5;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    margin: 12px 0;
    padding: 10px 12px;
}

.vftnved-wrap .notice-error {
    border-left-color: #b42318;
}

.vftnved-wrap .notice-success {
    border-left-color: #1f8a4c;
}

.vftnved-wrap .notice p {
    margin: 0;
}

.vftnved-login-card {
    max-width: 420px;
    margin: 36px auto;
    padding: 22px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.vftnved-login-card h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
}

.vftnved-login-card form,
.vftnved-login-card label,
.vftnved-password-form,
.vftnved-password-form label {
    display: grid;
    gap: 9px;
}

.vftnved-login-card input[type="password"],
.vftnved-password-form input[type="password"] {
    width: 100%;
    min-height: 38px;
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    padding: 6px 10px;
    box-sizing: border-box;
}

.vftnved-password-form {
    max-width: 420px;
}

.vftnved-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.vftnved-stats > div {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 12px;
}

.vftnved-stats span {
    display: block;
    color: #646970;
    margin-bottom: 4px;
}

.vftnved-stats strong {
    font-size: 20px;
    color: #111827;
}

.vftnved-actions {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    margin: 16px 0;
    padding: 14px;
}

.vftnved-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.vftnved-section-head h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.vftnved-toolbar,
.vftnved-samples,
.vftnved-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin: 0;
}

.vftnved-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
    gap: 10px;
}

.vftnved-hidden-form {
    display: none !important;
}

.vftnved-toolbar form,
.vftnved-samples form {
    margin: 0;
}

.vftnved-toolbar > form:not(.vftnved-upload) {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    min-height: 116px;
    padding: 10px;
}

.vftnved-samples {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    margin-top: 12px;
}

.vftnved-samples strong {
    margin-right: 4px;
    color: #111827;
}

.vftnved-samples form {
    display: inline-flex;
}

.vftnved-ref-panel {
    margin-top: 10px;
    max-width: 620px;
}

.vftnved-ref-panel summary {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid #d4dae4;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.vftnved-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.vftnved-ref-grid > div {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
}

.vftnved-ref-grid strong,
.vftnved-ref-grid span {
    display: block;
}

.vftnved-ref-grid span {
    margin-top: 2px;
    color: #646970;
    font-size: 12px;
}

.vftnved-ref-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 110px;
    overflow: auto;
    margin-top: 8px;
}

.vftnved-ref-list em {
    color: #646970;
    font-size: 12px;
}

.vftnved-upload {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    min-height: 116px;
}

.vftnved-upload label {
    display: grid;
    gap: 4px;
    font-weight: 600;
    min-width: 0;
    color: #111827;
}

.vftnved-upload input[type="file"] {
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    min-height: 34px;
}

.vftnved-dropzone {
    position: relative;
    cursor: pointer;
}

.vftnved-dropzone-box {
    display: grid;
    gap: 3px;
    min-height: 76px;
    align-content: center;
    justify-items: center;
    border: 1px dashed #aab4c3;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    padding: 12px;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vftnved-dropzone-title {
    font-weight: 700;
}

.vftnved-dropzone-subtitle {
    color: #646970;
    font-size: 12px;
    font-weight: 500;
}

.vftnved-dropzone.is-dragging .vftnved-dropzone-box,
.vftnved-dropzone:hover .vftnved-dropzone-box {
    border-color: #3157d5;
    background: #f5f7ff;
}

.vftnved-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.vftnved-upload .button,
.vftnved-toolbar > form:not(.vftnved-upload) .button {
    justify-self: start;
    align-self: end;
}

.vftnved-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vftnved-upload .vftnved-card-actions .button {
    align-self: center;
    justify-self: auto;
}

.vftnved-wrap .vftnved-sample-button {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 12px;
    color: #4b5563 !important;
    background: #fff !important;
}

.vftnved-wrap .button,
.vftnved-wrap button,
.vftnved-wrap input[type="submit"] {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid #b8c0cc !important;
    border-radius: 999px !important;
    background: #fff;
    color: #111827 !important;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
    text-transform: none;
}

.vftnved-wrap .button-primary {
    background: #3157d5 !important;
    border-color: #3157d5 !important;
    color: #fff !important;
}

.vftnved-wrap .button-small {
    min-height: 28px;
    padding: 3px 9px;
    font-size: 12px;
}

.vftnved-wrap .button:hover,
.vftnved-wrap button:hover,
.vftnved-wrap input[type="submit"]:hover {
    border-color: #3157d5 !important;
    color: #1f3fb5 !important;
}

.vftnved-wrap .button-primary:hover {
    background: #2849bd !important;
    color: #fff !important;
}

.vftnved-search input[type="search"] {
    min-width: min(460px, 100%);
    min-height: 34px;
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    padding: 5px 10px;
}

.vftnved-live-search {
    position: relative;
}

.vftnved-live-search.is-loading::after {
    content: "Поиск...";
    align-self: center;
    color: #646970;
    font-size: 12px;
}

.vftnved-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    margin-top: 12px;
}

.vftnved-wrap table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.vftnved-wrap th,
.vftnved-wrap td {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
    color: #111827 !important;
    font-size: 14px;
    line-height: 1.45;
    box-sizing: border-box;
}

.vftnved-wrap th {
    background: #f6f7f7;
    font-weight: 700;
}

.vftnved-wrap code {
    background: #f0f2f5;
    border-radius: 4px;
    padding: 1px 4px;
}

.vftnved-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.vftnved-table th,
.vftnved-table td {
    padding: 7px 8px;
    font-size: 12.4px;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.vftnved-table th:nth-child(1),
.vftnved-table td:nth-child(1) {
    width: 76px;
}

.vftnved-table th:nth-child(2),
.vftnved-table td:nth-child(2) {
    width: 66px;
}

.vftnved-table th:nth-child(3),
.vftnved-table td:nth-child(3) {
    width: 84px;
}

.vftnved-table th:nth-child(4),
.vftnved-table td:nth-child(4) {
    width: 28%;
}

.vftnved-table th:nth-child(5),
.vftnved-table td:nth-child(5) {
    width: 104px;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.vftnved-table th:nth-child(6),
.vftnved-table td:nth-child(6) {
    width: 16%;
}

.vftnved-table th:nth-child(7),
.vftnved-table td:nth-child(7) {
    width: 17%;
}

.vftnved-table th:nth-child(8),
.vftnved-table td:nth-child(8) {
    width: 13%;
}

.vftnved-table th:nth-child(9),
.vftnved-table td:nth-child(9) {
    width: 92px;
}

.vftnved-table .button-small {
    min-height: 26px;
    padding: 3px 8px;
    font-size: 11.5px;
}

.vftnved-table td:nth-child(5) code {
    display: inline-block;
    white-space: nowrap;
}

.vftnved-code-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.vftnved-code-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    cursor: help;
}

.vftnved-code-badge-warning {
    background: #fff4cc;
    color: #7a4d00;
}

.vftnved-code-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.vftnved-product-name {
    font-weight: 600;
    color: #111827;
}

.vftnved-product-description {
    margin-top: 5px;
    color: #4b5563;
    font-size: 11.6px;
    line-height: 1.35;
}

.vftnved-product-description span {
    color: #111827;
    font-weight: 700;
}

.vftnved-row-actions {
    position: relative;
    overflow: visible !important;
}

.vftnved-action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 6px;
}

.vftnved-row-actions form,
.vftnved-edit-code {
    margin: 0;
}

.vftnved-icon-button {
    display: inline-flex !important;
    width: 28px !important;
    min-width: 28px !important;
    min-height: 26px !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid #b8c0cc !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

.vftnved-icon-button:hover {
    border-color: #3157d5 !important;
    color: #1f3fb5 !important;
}

.vftnved-edit-code {
    position: relative;
}

.vftnved-edit-code summary {
    list-style: none;
}

.vftnved-edit-code summary::-webkit-details-marker {
    display: none;
}

.vftnved-edit-code-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 35;
    display: none;
    width: 230px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.vftnved-edit-code[open] .vftnved-edit-code-popover {
    display: block;
}

.vftnved-edit-code-popover form,
.vftnved-edit-code-popover label {
    display: grid;
    gap: 7px;
}

.vftnved-edit-code-popover input[type="text"] {
    width: 100%;
    min-height: 34px;
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    padding: 5px 8px;
    box-sizing: border-box;
}

.vftnved-duty-pill {
    position: relative;
    display: inline-flex;
    width: 28px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b8c0cc;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: help;
}

.vftnved-duty-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: none;
    width: max-content;
    max-width: 260px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.vftnved-duty-tooltip strong {
    color: #fff;
}

.vftnved-duty-pill:hover .vftnved-duty-tooltip,
.vftnved-duty-pill:focus .vftnved-duty-tooltip {
    display: block;
}

.vftnved-missing-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.vftnved-missing-table th:nth-child(1),
.vftnved-missing-table td:nth-child(1) {
    width: 118px;
}

.vftnved-missing-table th:nth-child(2),
.vftnved-missing-table td:nth-child(2) {
    width: 54px;
}

.vftnved-missing-table th:nth-child(3),
.vftnved-missing-table td:nth-child(3) {
    width: 74px;
}

.vftnved-missing-table th:nth-child(4),
.vftnved-missing-table td:nth-child(4) {
    width: 102px;
}

.vftnved-missing-table th:nth-child(8),
.vftnved-missing-table td:nth-child(8) {
    width: 104px;
}

.vftnved-missing-table th,
.vftnved-missing-table td {
    padding: 6px 7px;
    font-size: 12.5px;
    line-height: 1.35;
}

.vftnved-preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}

.vftnved-preview-stats span {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #d4dae4;
    border-radius: 999px;
    background: #f8fafc;
    color: #111827;
    font-size: 12px;
}

.vftnved-preview-table {
    min-width: 1100px;
}

.vftnved-preview-table th,
.vftnved-preview-table td {
    font-size: 12.4px;
    line-height: 1.35;
}

.vftnved-preview-warning-row td {
    background: #fff8e5;
}

.vftnved-conflict-table {
    min-width: 980px;
}

.vftnved-code-value-table {
    min-width: 1180px;
}

.vftnved-code-reference-table {
    min-width: 1180px;
}

.vftnved-code-reference-table input,
.vftnved-code-reference-table textarea {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    padding: 6px 8px;
    color: #111827;
    box-sizing: border-box;
}

.vftnved-code-reference-table textarea {
    resize: vertical;
}

.vftnved-inline-warning {
    display: inline-flex;
    margin-top: 6px;
    border-radius: 999px;
    background: #fff4cc;
    color: #7a4d00;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
}

.vftnved-table th,
.vftnved-table td,
.vftnved-missing-table th,
.vftnved-missing-table td,
.vftnved-conflict-table th,
.vftnved-conflict-table td {
    vertical-align: top;
}

.vftnved-table code {
    font-weight: 700;
}

.vftnved-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    margin: 16px 0;
    overflow: hidden;
}

.vftnved-panel summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 14px;
    color: #111827;
}

.vftnved-panel-body {
    border-top: 1px solid #dcdcde;
    padding: 12px 14px 14px;
}

.vftnved-conflicts {
    border-color: #dba617;
}

.vftnved-conflict-form {
    margin: 0;
}

.vftnved-code-value-group {
    margin-top: 12px;
}

.vftnved-code-value-group h4 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin: 0 0 8px;
    color: #111827;
    font-size: 15px;
}

.vftnved-code-value-group h4 span {
    color: #646970;
    font-size: 12px;
    font-weight: 600;
}

.vftnved-code-choice {
    display: inline-flex;
    cursor: pointer;
}

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

.vftnved-code-choice span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #c8d0dc;
    border-radius: 999px;
    background: #f8fafc;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 700;
    padding: 3px 10px;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.vftnved-code-choice.is-selected span,
.vftnved-code-choice input:checked + span {
    background: #dcfce7;
    border-color: #16a34a;
    color: #166534;
}

.vftnved-conflict-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.vftnved-missing-table input,
.vftnved-missing-table textarea {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    padding: 6px 8px;
    line-height: 1.35;
    vertical-align: middle;
    box-sizing: border-box;
    color: #111827 !important;
    -webkit-text-fill-color: #111827;
}

.vftnved-missing-table input::placeholder,
.vftnved-missing-table textarea::placeholder {
    color: #8a8f98 !important;
    -webkit-text-fill-color: #8a8f98;
}

.vftnved-missing-table textarea {
    height: auto;
    min-width: 0;
    overflow: hidden;
    resize: vertical;
}

.vftnved-missing-table .button {
    width: 100% !important;
    min-height: 40px;
    white-space: normal;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
}

.vftnved-suggest-anchor {
    position: relative;
}

.vftnved-suggest-menu {
    position: absolute;
    z-index: 50;
    left: 7px;
    right: 7px;
    top: calc(100% - 4px);
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #c8d0dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    padding: 4px;
}

.vftnved-suggest-item {
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #111827;
    cursor: pointer;
    display: block;
    font-size: 12.5px;
    line-height: 1.3;
    padding: 7px 8px;
    text-align: left;
}

.vftnved-suggest-item:hover,
.vftnved-suggest-item:focus {
    background: #eef2ff;
    color: #1f3fb5;
}

@media (max-width: 900px) {
    .vftnved-stats {
        grid-template-columns: 1fr;
    }

    .vftnved-toolbar,
    .vftnved-samples,
    .vftnved-upload,
    .vftnved-search {
        display: grid;
        grid-template-columns: 1fr;
    }
}
