.vnd-app,
.vnd-app * {
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.4;
}

body:has(.vnd-app),
body:has(.vnd-app) #page,
body:has(.vnd-app) .site,
body:has(.vnd-app) .site-main,
body:has(.vnd-app) .content-area,
body:has(.vnd-app) .entry-content,
body:has(.vnd-app) .wp-block-post-content,
body:has(.vnd-app) .wp-site-blocks {
    background: #f8fbff;
}

body:has(.vnd-app) .entry-content,
body:has(.vnd-app) .wp-block-post-content {
    margin-top: 0;
    margin-bottom: 0;
}

.vnd-app {
    --vnd-bg: #f8fbff;
    --vnd-surface: #ffffff;
    --vnd-surface-soft: #f3f8ff;
    --vnd-surface-blue: #eef6ff;
    --vnd-border: #cfe3ff;
    --vnd-primary: #2563eb;
    --vnd-primary-hover: #1d4ed8;
    --vnd-text: #1f2937;
    --vnd-muted: #6b7280;
    --vnd-radius: 10px;
    --vnd-shadow: 0 8px 20px rgba(37, 99, 235, 0.055);
    --vnd-control-height: 38px;
    --vnd-control-padding-x: 12px;
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 24px;
    width: 100vw;
    min-height: auto;
    max-width: none;
    margin: 0 calc(50% - 50vw);
    padding: 20px;
    border-radius: 0;
    background: var(--vnd-bg);
    color: var(--vnd-text);
}

.vnd-sidebar {
    align-self: start;
    position: sticky;
    top: 10px;
    padding: 16px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    box-shadow: var(--vnd-shadow);
}

.vnd-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

@media (min-width: 901px) {
    .vnd-app--route-dashboard.vnd-app--company-admin .vnd-sidebar {
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

.vnd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 68px;
    padding: 16px 18px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    box-shadow: var(--vnd-shadow);
}

.vnd-topbar-title {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: auto;
    color: var(--vnd-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.vnd-topbar-title > span:first-child {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    min-height: 28px;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vnd-topbar-meta {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    width: auto;
    color: var(--vnd-muted);
    font-size: 13px;
}

.vnd-topbar-meta-item {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    min-height: 28px;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-blue);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vnd-content {
    display: grid;
    gap: 16px;
    min-width: 0;
    width: 100%;
}

.vnd-frontend-menu {
    display: grid;
    gap: 8px;
}

.vnd-button,
.vnd-app button,
.vnd-app input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    height: var(--vnd-control-height);
    min-height: var(--vnd-control-height);
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    color: var(--vnd-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.vnd-button:disabled,
.vnd-app button:disabled,
.vnd-app input[type="submit"]:disabled {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: var(--vnd-muted);
    cursor: not-allowed;
    opacity: 0.75;
}

.vnd-button:hover,
.vnd-button:focus,
.vnd-app button:hover,
.vnd-app button:focus,
.vnd-app input[type="submit"]:hover,
.vnd-app input[type="submit"]:focus,
.vnd-button.is-active {
    border-color: var(--vnd-primary);
    background: var(--vnd-surface-blue);
    color: var(--vnd-primary-hover);
}

.vnd-button-secondary {
    border-color: var(--vnd-border);
    background: var(--vnd-surface-blue);
    color: var(--vnd-primary-hover);
}

.vnd-frontend-menu .vnd-button {
    justify-content: flex-start;
    width: 100%;
}

.vnd-card {
    min-height: 110px;
    padding: 20px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    box-shadow: var(--vnd-shadow);
    overflow: visible;
}

.vnd-card + .vnd-card {
    margin-top: 18px;
}

.vnd-frontend-import-export-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.vnd-frontend-import-export-grid .vnd-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
    margin-top: 0;
}

.vnd-frontend-import-export-grid .vnd-card form {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.vnd-frontend-import-export-grid .vnd-button {
    width: fit-content;
    max-width: 100%;
}

.vnd-import-export-last-run {
    padding-top: 8px;
    border-top: 1px solid var(--vnd-border);
    color: var(--vnd-muted);
    font-size: 12px;
}

.vnd-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-soft);
}

.vnd-permission-grid legend {
    padding: 0 6px;
    color: var(--vnd-text);
    font-weight: 800;
}

.vnd-permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vnd-inline-permissions-form {
    display: grid;
    gap: 10px;
}

.vnd-stacked-form {
    display: grid;
    gap: 12px;
}

.vnd-stacked-form label,
.vnd-inline-permissions-form label {
    display: grid;
    gap: 6px;
    color: var(--vnd-muted);
    font-size: 12px;
    font-weight: 800;
}

.vnd-admin-management-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.4fr);
    gap: 16px;
    align-items: start;
}

.vnd-admin-list {
    display: grid;
    gap: 10px;
}

.vnd-admin-list-item {
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-soft);
}

.vnd-admin-list-item summary {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(130px, auto) 36px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    list-style: none;
}

.vnd-admin-list-item summary::-webkit-details-marker {
    display: none;
}

.vnd-admin-list-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.vnd-admin-list-main strong,
.vnd-admin-list-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vnd-admin-list-main span,
.vnd-admin-list-role {
    color: var(--vnd-muted);
    font-size: 13px;
}

.vnd-admin-list-role {
    justify-self: end;
    font-weight: 800;
}

.vnd-admin-list-item .vnd-inline-permissions-form {
    margin: 0;
    padding: 0 10px 10px;
}

.vnd-card h2,
.vnd-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--vnd-text);
    font-size: 20px;
    line-height: 1.25;
}

.vnd-dashboard-limit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.vnd-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--vnd-shadow);
}

.vnd-dashboard-actions .vnd-button {
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.vnd-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.vnd-dashboard-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vnd-dashboard-chart-grid {
    align-items: stretch;
}

.vnd-dashboard-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vnd-dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(118px, auto);
    align-items: stretch;
    gap: 16px;
}

.vnd-dashboard-kpi-grid .vnd-kpi-card {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    margin-top: 0;
}

.vnd-dashboard-kpi-grid .vnd-card + .vnd-card {
    margin-top: 0;
}

.vnd-kpi-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 118px;
    height: 100%;
}

.vnd-kpi-card span {
    display: flex;
    align-items: center;
    min-height: 34px;
    color: var(--vnd-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.vnd-kpi-card strong {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: var(--vnd-text);
    font-size: 24px;
    line-height: 1.1;
    white-space: nowrap;
}

.vnd-kpi-card strong small {
    font-size: 1em;
    font-weight: 800;
    color: inherit;
    line-height: inherit;
    white-space: nowrap;
}

.vnd-activity-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 999px;
    vertical-align: middle;
}

.vnd-activity-green {
    background: #16a34a;
}

.vnd-activity-yellow {
    background: #f59e0b;
}

.vnd-activity-red {
    background: #dc2626;
}

.vnd-partner-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.vnd-crm-section {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5efff;
}

.vnd-inline-crm-form {
    padding: 14px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-blue);
}

.vnd-note-important td {
    background: #fffbeb;
}

.vnd-note-urgent td {
    background: #fef2f2;
}

.vnd-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.vnd-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.vnd-photo-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
}

.vnd-photo-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.vnd-photo-grid figcaption {
    padding: 8px;
    color: var(--vnd-muted);
    font-size: 12px;
}

.vnd-progress {
    width: 100%;
    height: 10px;
    margin: 14px 0;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.vnd-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--vnd-primary);
}

.vnd-muted {
    color: var(--vnd-muted);
}

.vnd-form-help {
    display: block;
    margin-top: 6px;
    color: var(--vnd-muted);
    font-size: 12px;
}

.vnd-card form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.vnd-card form p {
    flex: 1 1 280px;
    width: 100%;
    max-width: none;
    margin: 0 0 12px;
}

.vnd-form-section {
    flex: 1 1 100%;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-blue);
}

.vnd-form-section h3 {
    margin: 0 0 12px;
    color: var(--vnd-text);
    font-size: 15px;
    font-weight: 800;
}

.vnd-frontend-address-grid {
    display: grid;
    grid-template-columns: minmax(140px, .8fr) minmax(140px, .8fr) minmax(180px, 1fr);
    gap: 12px;
}

.vnd-form-section .vnd-frontend-address-grid p {
    margin: 0;
}

.vnd-form-section-wide {
    grid-column: 1 / -1;
}

.vnd-input,
.vnd-select,
.vnd-app input[type="text"],
.vnd-app input[type="search"],
.vnd-app input[type="email"],
.vnd-app input[type="url"],
.vnd-app input[type="number"],
.vnd-app input[type="date"],
.vnd-app input[type="password"],
.vnd-app select {
    width: 100%;
    max-width: none;
    height: var(--vnd-control-height);
    min-height: var(--vnd-control-height);
    box-sizing: border-box;
    padding: 0 var(--vnd-control-padding-x);
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    color: var(--vnd-text);
    line-height: 1.2;
}

.vnd-app textarea {
    width: 100%;
    max-width: none;
    padding: 10px 12px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    color: var(--vnd-text);
    min-height: 110px;
}

.vnd-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.vnd-searchable-select {
    position: relative;
    width: 100%;
    max-width: none;
}

.vnd-searchable-select__input {
    width: 100%;
    max-width: none;
    height: var(--vnd-control-height);
    min-height: var(--vnd-control-height);
    box-sizing: border-box;
    padding: 0 38px 0 var(--vnd-control-padding-x);
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    color: var(--vnd-text);
}

.vnd-searchable-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 0;
    height: 0;
    border-top: 6px solid var(--vnd-muted);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transform: translateY(-50%);
    pointer-events: none;
}

.vnd-searchable-select__input:focus {
    border-color: var(--vnd-primary);
    box-shadow: 0 0 0 1px var(--vnd-primary);
    outline: 2px solid transparent;
}

.vnd-searchable-select__list {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    max-height: 232px;
    margin-top: 6px;
    overflow-y: auto;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.16);
}

.vnd-searchable-select.is-open .vnd-searchable-select__list {
    display: block;
}

.vnd-app .vnd-searchable-select__option,
.vnd-searchable-select__option {
    display: block;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 36px;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 12px;
    appearance: none;
    border: 0;
    border-bottom: 1px solid #e5efff;
    border-radius: 0;
    background: transparent;
    color: var(--vnd-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    touch-action: manipulation;
    white-space: normal;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.12);
}

.vnd-searchable-select__option:last-child {
    border-bottom: 0;
}

.vnd-app .vnd-searchable-select__option:hover,
.vnd-app .vnd-searchable-select__option:focus,
.vnd-searchable-select__option.is-active,
.vnd-searchable-select__option.is-selected {
    border-color: transparent;
    background: var(--vnd-surface-blue);
    color: var(--vnd-primary-hover);
    outline: 0;
}

.vnd-searchable-select__empty {
    padding: 10px 12px;
    color: var(--vnd-muted);
    font-size: 13px;
}

.vnd-table {
    width: 100%;
    min-width: 920px;
    table-layout: auto;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    border-spacing: 0;
    background: var(--vnd-surface);
}

.vnd-table th,
.vnd-table td {
    max-width: none;
    padding: 7px 10px;
    border-bottom: 1px solid #e5efff;
    color: var(--vnd-text);
    font-size: 13px;
    line-height: 1.25;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
}

.vnd-table th:nth-child(1),
.vnd-table td:nth-child(1) {
    min-width: 190px;
}

.vnd-table th:nth-last-child(1),
.vnd-table td:nth-last-child(1) {
    width: 126px;
}

.vnd-orders-table th:nth-last-child(1),
.vnd-orders-table td:nth-last-child(1) {
    width: 170px;
}

.vnd-dashboard-orders-table {
    min-width: 0;
    table-layout: fixed;
}

.vnd-dashboard-orders-table th,
.vnd-dashboard-orders-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vnd-dashboard-orders-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 #d9e8ff;
}

.vnd-dashboard-orders-table th:nth-child(1),
.vnd-dashboard-orders-table td:nth-child(1) {
    width: 112px;
    min-width: 0;
}

.vnd-dashboard-orders-table th:nth-child(2),
.vnd-dashboard-orders-table td:nth-child(2) {
    width: 20%;
}

.vnd-dashboard-orders-table th:nth-child(4),
.vnd-dashboard-orders-table td:nth-child(4) {
    width: 128px;
}

.vnd-dashboard-orders-table th:nth-child(5),
.vnd-dashboard-orders-table td:nth-child(5) {
    width: 104px;
}

.vnd-dashboard-orders-table th:nth-child(6),
.vnd-dashboard-orders-table td:nth-child(6) {
    width: 118px;
}

.vnd-dashboard-orders-table th:nth-child(7),
.vnd-dashboard-orders-table td:nth-child(7) {
    width: 78px;
}

.vnd-dashboard-orders-table .vnd-table-status {
    overflow: visible;
}

.vnd-dashboard-orders-table select.vnd-status-select {
    width: 100%;
    min-width: 0;
    max-width: 112px;
}

.vnd-dashboard-orders-table .vnd-table-actions {
    display: table-cell;
    width: 78px;
    max-width: 78px;
    text-align: center;
}

.vnd-dashboard-orders-table .vnd-table-actions .vnd-icon-button {
    margin-left: auto;
    margin-right: auto;
}

.vnd-dashboard-orders-table--rep th:nth-child(1),
.vnd-dashboard-orders-table--rep td:nth-child(1) {
    width: 112px;
}

.vnd-dashboard-orders-table--rep th:nth-child(2),
.vnd-dashboard-orders-table--rep td:nth-child(2) {
    width: 20%;
}

.vnd-dashboard-orders-table--rep th:nth-child(4),
.vnd-dashboard-orders-table--rep td:nth-child(4) {
    width: 104px;
}

.vnd-dashboard-orders-table--rep th:nth-child(5),
.vnd-dashboard-orders-table--rep td:nth-child(5) {
    width: 118px;
}

.vnd-dashboard-orders-table--rep th:nth-child(6),
.vnd-dashboard-orders-table--rep td:nth-child(6) {
    width: 78px;
}

.vnd-dashboard-orders-table--rep .vnd-table-actions {
    width: 78px;
    max-width: 78px;
}

.vnd-table thead th {
    background: var(--vnd-surface-blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.vnd-table-status {
    vertical-align: middle;
}

.vnd-table-status .vnd-status-select-form {
    display: flex;
    align-items: center;
}

.vnd-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.vnd-dashboard-orders-wrap {
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.vnd-dashboard-orders-loader {
    padding: 10px 8px 2px;
    color: var(--vnd-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.vnd-dashboard-orders-loader[hidden] {
    display: none;
}

.vnd-mobile-bottom-nav {
    display: none;
}

.vnd-mobile-action {
    margin: 2px 0;
}

.vnd-mobile-partner-search {
    max-width: none;
}

.vnd-product-search {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
}

.vnd-product-add-panel {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--vnd-border);
    border-left: 5px solid var(--vnd-primary);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-blue);
}

.vnd-product-add-panel h3 {
    margin: 0;
    color: var(--vnd-text);
    font-size: 18px;
}

.vnd-products-table caption {
    padding: 10px 0;
    color: var(--vnd-text);
    font-size: 15px;
    font-weight: 800;
    text-align: left;
}

.vnd-store-picker {
    width: 100%;
    max-width: none;
    margin-bottom: 12px;
}

.vnd-product-search-results {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.vnd-product-search-result {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-color: var(--vnd-border);
    background: var(--vnd-surface);
    color: var(--vnd-text);
    text-align: left;
    white-space: normal;
}

.vnd-product-search-empty {
    padding: 10px 12px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-blue);
    color: var(--vnd-muted);
}

.vnd-products-table tr.is-highlighted td {
    background: var(--vnd-surface-soft);
}

.vnd-stock-warning {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
}

.vnd-qty-control {
    display: inline-grid;
    grid-template-columns: 38px minmax(72px, 110px) 38px 38px;
    gap: 6px;
    align-items: center;
}

.vnd-qty-control .vnd-input {
    max-width: 110px;
    text-align: center;
}

.vnd-qty-btn,
.vnd-row-delete {
    width: 38px;
    min-width: 38px;
    padding: 0;
}

.vnd-row-delete {
    border-color: #fecaca;
    color: #dc2626;
}

.vnd-order-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    width: 100%;
    margin: 18px 0;
}

.vnd-order-summary div {
    display: grid;
    gap: 4px;
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-blue);
}

.vnd-order-summary span {
    color: var(--vnd-muted);
    font-size: 12px;
    font-weight: 700;
}

.vnd-order-summary strong {
    color: var(--vnd-text);
    font-size: 20px;
}

.vnd-order-summary-total {
    border-color: var(--vnd-primary) !important;
    background: var(--vnd-surface) !important;
}

.vnd-filter-form {
    width: 100%;
}

.vnd-filter-form.is-loading {
    opacity: .72;
    pointer-events: none;
}

.vnd-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-blue);
}

.vnd-mini-chart {
    min-width: 0;
    min-height: 250px;
    padding: 16px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
}

.vnd-mini-chart h3 {
    margin-bottom: 14px;
}

.vnd-chart-plot {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    height: 172px;
    padding: 10px 0 0;
    border-bottom: 1px solid var(--vnd-border);
    background: linear-gradient(to top, rgba(207, 227, 255, 0.35), rgba(207, 227, 255, 0) 1px);
}

.vnd-chart-line {
    position: absolute;
    inset: 10px 0 0;
    z-index: 2;
    width: 100%;
    height: calc(100% - 10px);
    overflow: visible;
    pointer-events: none;
}

.vnd-chart-line polyline {
    fill: none;
    stroke: var(--vnd-chart-line, var(--vnd-primary));
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

.vnd-chart-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    flex: 1 1 0;
    justify-content: center;
    min-width: 4px;
    height: 100%;
}

.vnd-chart-bar span {
    display: block;
    width: min(100%, 12px);
    min-height: 3px;
    border-radius: 4px 4px 0 0;
    background: var(--vnd-chart-bar, linear-gradient(180deg, #60a5fa, #2563eb));
    opacity: 0.9;
}

.vnd-mini-chart--revenue {
    --vnd-chart-line: #16a34a;
    --vnd-chart-bar: linear-gradient(180deg, #bbf7d0, #22c55e);
}

.vnd-mini-chart--orders {
    --vnd-chart-line: #f97316;
    --vnd-chart-bar: linear-gradient(180deg, #fed7aa, #fb923c);
}

.vnd-chart-axis {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding-top: 10px;
    color: var(--vnd-muted);
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
}

.vnd-chart-axis strong {
    color: var(--vnd-text);
}

.vnd-chart-axis span:last-child {
    text-align: right;
}

.vnd-card .vnd-dashboard-filter-form {
    display: grid;
    grid-template-columns: minmax(110px, 0.65fr) minmax(160px, 1fr) minmax(160px, 1fr);
    align-items: end;
    gap: 10px;
    margin-bottom: 16px;
}

.vnd-card .vnd-dashboard-filter-form .vnd-select,
.vnd-card .vnd-dashboard-filter-form .vnd-searchable-select {
    width: 100%;
    max-width: none;
}

.vnd-filter-form label {
    display: grid;
    gap: 5px;
    min-width: 160px;
    color: var(--vnd-muted);
    font-size: 12px;
    font-weight: 700;
}

.vnd-table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    width: max-content;
    max-width: 170px;
}

.vnd-table-actions .vnd-button {
    min-height: 30px;
    padding: 6px 10px;
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
}

.vnd-table-actions .vnd-button-secondary {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

.vnd-table-actions form {
    display: inline-flex;
    margin: 0;
}

.vnd-icon-button,
.vnd-app .vnd-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.vnd-icon-button svg,
.vnd-app .vnd-icon-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vnd-icon-button:hover,
.vnd-icon-button:focus,
.vnd-app .vnd-icon-button:hover,
.vnd-app .vnd-icon-button:focus {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: 0;
    transform: translateY(-1px);
}

.vnd-icon-button--accent {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

.vnd-icon-button--accent:hover,
.vnd-icon-button--accent:focus {
    border-color: #8b5cf6;
    background: #ede9fe;
    color: #5b21b6;
}

.vnd-icon-button--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.vnd-icon-button--success:hover,
.vnd-icon-button--success:focus {
    border-color: #22c55e;
    background: #dcfce7;
    color: #166534;
}

.vnd-icon-button--document {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.vnd-icon-button--document:hover,
.vnd-icon-button--document:focus {
    border-color: #fb923c;
    background: #ffedd5;
    color: #9a3412;
}

.vnd-icon-button--muted {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.vnd-icon-button--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.vnd-icon-button--danger:hover,
.vnd-icon-button--danger:focus {
    border-color: #f87171;
    background: #fee2e2;
    color: #991b1b;
}

.vnd-icon-button--muted:hover,
.vnd-icon-button--muted:focus {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #334155;
}

.vnd-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--vnd-border);
    border-radius: 999px;
    background: var(--vnd-surface-blue);
    color: var(--vnd-text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.vnd-badge-active,
.vnd-badge-completed {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.vnd-badge-inactive,
.vnd-badge-cancelled,
.vnd-badge-expired {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.vnd-badge-archived {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #374151;
}

.vnd-status-select-form {
    display: inline-flex;
    margin: 0;
}

.vnd-app select.vnd-status-select,
.vnd-status-select {
    width: auto;
    min-width: 106px;
    max-width: 160px;
    height: 28px;
    min-height: 28px;
    padding: 0 26px 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
}

.vnd-status-select--active,
.vnd-status-select--completed,
.vnd-status-select--fulfilled {
    border-color: #bbf7d0;
    background-color: #f0fdf4;
    color: #166534;
}

.vnd-status-select--inactive {
    border-color: #fecaca;
    background-color: #fef2f2;
    color: #991b1b;
}

.vnd-status-select--archived {
    border-color: #d1d5db;
    background-color: #f3f4f6;
    color: #374151;
}

.vnd-status-select--cancelled {
    border-color: #fecaca;
    background-color: #fef2f2;
    color: #991b1b;
}

.vnd-status-select--draft,
.vnd-status-select--submitted {
    border-color: var(--vnd-border);
    background-color: var(--vnd-surface-blue);
    color: var(--vnd-primary);
}

.vnd-status-select--confirmed {
    border-color: #fde68a;
    background-color: #fffbeb;
    color: #92400e;
}

.vnd-partner-category-a {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.vnd-partner-category-b {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.vnd-partner-category-c {
    border-color: var(--vnd-border);
    background: var(--vnd-surface-blue);
    color: var(--vnd-primary-hover);
}

.vnd-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface-blue);
    color: var(--vnd-text);
}

.vnd-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.vnd-alert-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.vnd-alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.vnd-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.42);
}

.vnd-feedback-modal.is-hidden {
    display: none;
}

.vnd-feedback-modal__panel {
    display: flex;
    gap: 16px;
    width: min(520px, 100%);
    padding: 22px;
    border: 1px solid var(--vnd-border);
    border-radius: var(--vnd-radius);
    background: var(--vnd-surface);
    box-shadow: var(--vnd-shadow);
}

.vnd-feedback-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 20px;
    font-weight: 800;
}

.vnd-feedback-modal__body h2 {
    margin: 0 0 8px;
    color: var(--vnd-text);
    font-size: 20px;
    line-height: 1.25;
}

.vnd-feedback-modal__body p {
    margin: 0 0 18px;
    color: var(--vnd-muted);
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .vnd-app {
        padding: 10px;
    }

    .vnd-frontend-import-export-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .vnd-app {
        grid-template-columns: 1fr;
        width: 100vw;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        padding: 10px 10px calc(84px + env(safe-area-inset-bottom));
    }

    .vnd-app--route-dashboard.vnd-app--company-admin {
        padding-bottom: 10px;
    }

    .vnd-sidebar {
        display: none;
    }

    .vnd-topbar {
        align-items: center;
        flex-direction: row;
        min-height: 0;
        gap: 8px;
        padding: 12px;
    }

    .vnd-topbar-title {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 8px;
        font-size: 18px;
    }

    .vnd-topbar-meta {
        flex: 0 1 48%;
        justify-content: flex-end;
        max-width: 48%;
    }

    .vnd-topbar-meta-item {
        max-width: 100%;
    }

    .vnd-dashboard-limit-header {
        flex-direction: column;
    }

    .vnd-dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        box-shadow: var(--vnd-shadow);
    }

    .vnd-dashboard-actions .vnd-button {
        white-space: normal;
    }

    .vnd-dashboard-grid,
    .vnd-dashboard-grid-2,
    .vnd-dashboard-grid-3,
    .vnd-frontend-import-export-grid {
        grid-template-columns: 1fr;
    }

    .vnd-dashboard-chart-grid {
        gap: 12px;
    }

    .vnd-mini-chart {
        min-height: 230px;
        padding: 14px;
    }

    .vnd-chart-plot {
        height: 158px;
        gap: 4px;
    }

    .vnd-chart-bar {
        min-width: 3px;
        max-width: none;
    }

    .vnd-chart-bar span {
        width: min(100%, 10px);
    }

    .vnd-dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(112px, auto);
        gap: 10px;
    }

    .vnd-card .vnd-dashboard-filter-form {
        grid-template-columns: 1fr;
    }

    .vnd-dashboard-orders-table th:nth-child(1),
    .vnd-dashboard-orders-table td:nth-child(1),
    .vnd-dashboard-orders-table th:nth-child(4),
    .vnd-dashboard-orders-table td:nth-child(4),
    .vnd-dashboard-orders-table th:nth-child(5),
    .vnd-dashboard-orders-table td:nth-child(5) {
        display: none;
    }

    .vnd-dashboard-orders-table th:nth-child(2),
    .vnd-dashboard-orders-table td:nth-child(2) {
        width: 24%;
    }

    .vnd-dashboard-orders-table th:nth-child(3),
    .vnd-dashboard-orders-table td:nth-child(3) {
        width: auto;
    }

    .vnd-dashboard-orders-table th:nth-child(7),
    .vnd-dashboard-orders-table td:nth-child(7),
    .vnd-dashboard-orders-table .vnd-table-actions {
        width: 64px;
        max-width: 64px;
    }

    .vnd-dashboard-orders-table--rep th:nth-child(4),
    .vnd-dashboard-orders-table--rep td:nth-child(4) {
        display: none;
    }

    .vnd-dashboard-orders-table--rep th:nth-child(5),
    .vnd-dashboard-orders-table--rep td:nth-child(5) {
        display: table-cell;
        width: 118px;
    }

    .vnd-dashboard-orders-table--rep th:nth-child(6),
    .vnd-dashboard-orders-table--rep td:nth-child(6),
    .vnd-dashboard-orders-table--rep .vnd-table-actions {
        width: 64px;
        max-width: 64px;
    }

    .vnd-admin-management-grid {
        grid-template-columns: 1fr;
    }

    .vnd-admin-list-item summary {
        grid-template-columns: minmax(0, 1fr) 36px;
    }

    .vnd-admin-list-role {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .vnd-products-table-wrap {
        overflow-x: visible;
    }

    .vnd-products-table {
        min-width: 0;
        border: 0;
        background: transparent;
    }

    .vnd-products-table thead {
        display: none;
    }

    .vnd-products-table tbody,
    .vnd-products-table tr,
    .vnd-products-table td {
        display: block;
        width: 100%;
        max-width: none;
    }

    .vnd-products-table tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid var(--vnd-border);
        border-radius: var(--vnd-radius);
        background: var(--vnd-surface);
    }

    .vnd-products-table td {
        padding: 8px 0;
        border-bottom: 0;
    }

    .vnd-products-table .vnd-input,
    .vnd-products-table .vnd-select {
        max-width: none;
    }

    .vnd-frontend-menu {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .vnd-frontend-menu .vnd-button {
        justify-content: center;
    }

    .vnd-mobile-bottom-nav {
        position: fixed;
        right: 10px;
        bottom: 10px;
        left: 10px;
        z-index: 9999;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        border: 1px solid var(--vnd-border);
        border-radius: var(--vnd-radius);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -8px 20px rgba(37, 99, 235, 0.055);
    }

    .vnd-mobile-bottom-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 7px 5px;
        border-radius: var(--vnd-radius);
        color: var(--vnd-muted);
        font-size: 12px;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
    }

    .vnd-mobile-bottom-nav a.is-active,
    .vnd-mobile-bottom-nav a:focus,
    .vnd-mobile-bottom-nav a:hover {
        background: var(--vnd-surface-blue);
        color: var(--vnd-primary);
    }

    .vnd-partners-table {
        min-width: 0;
        border: 0;
        background: transparent;
    }

    .vnd-partners-table thead {
        display: none;
    }

    .vnd-partners-table tbody,
    .vnd-partners-table tr,
    .vnd-partners-table td {
        display: block;
        width: 100%;
        max-width: none;
    }

    .vnd-partners-table tr {
        margin-bottom: 12px;
        padding: 14px;
        border: 1px solid var(--vnd-border);
        border-radius: var(--vnd-radius);
        background: var(--vnd-surface);
    }

    .vnd-partners-table td {
        padding: 7px 0;
        border-bottom: 0;
    }

    .vnd-partners-table td:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .vnd-mobile-action,
    .vnd-partners-table td:last-child .vnd-button {
        flex: 1 1 calc(50% - 8px);
        min-width: 130px;
        white-space: normal;
    }

    .vnd-card form {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .vnd-frontend-address-grid {
        grid-template-columns: 1fr;
    }

    .vnd-input,
    .vnd-select,
    .vnd-app textarea {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .vnd-dashboard-insights,
    .vnd-dashboard-latest-orders {
        padding-right: 10px;
        padding-left: 10px;
    }

    .vnd-dashboard-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .vnd-dashboard-actions--admin {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
    }

    .vnd-dashboard-actions--rep {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
    }

    .vnd-dashboard-actions--admin .vnd-button,
    .vnd-dashboard-actions--rep .vnd-button {
        min-height: 40px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 12px;
        line-height: 1.15;
    }

    .vnd-dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(104px, auto);
        gap: 8px;
    }

    .vnd-dashboard-kpi-grid .vnd-kpi-card {
        min-height: 104px;
    }

    .vnd-dashboard-chart-grid {
        gap: 10px;
    }

    .vnd-mini-chart {
        min-height: 210px;
        padding: 12px;
    }

    .vnd-mini-chart h3 {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .vnd-chart-plot {
        height: 138px;
        gap: 2px;
        padding-top: 8px;
    }

    .vnd-chart-line {
        inset: 8px 0 0;
        height: calc(100% - 8px);
    }

    .vnd-chart-line polyline {
        stroke-width: 1.2;
    }

    .vnd-chart-bar {
        min-width: 2px;
    }

    .vnd-chart-bar span {
        width: min(100%, 7px);
    }

    .vnd-chart-axis {
        gap: 6px;
        padding-top: 8px;
        font-size: 11px;
    }

    .vnd-dashboard-orders-table th,
    .vnd-dashboard-orders-table td {
        padding: 7px 6px;
        font-size: 12px;
    }

    .vnd-dashboard-orders-table th:nth-child(2),
    .vnd-dashboard-orders-table td:nth-child(2) {
        display: none;
    }

    .vnd-dashboard-orders-table th:nth-child(3),
    .vnd-dashboard-orders-table td:nth-child(3) {
        width: auto;
    }

    .vnd-dashboard-orders-table th:nth-child(6),
    .vnd-dashboard-orders-table td:nth-child(6) {
        width: 78px;
    }

    .vnd-dashboard-orders-table th:nth-child(7),
    .vnd-dashboard-orders-table td:nth-child(7),
    .vnd-dashboard-orders-table .vnd-table-actions {
        width: 78px;
        max-width: 78px;
    }

    .vnd-dashboard-orders-table .vnd-table-actions {
        text-align: right;
    }

    .vnd-dashboard-orders-table .vnd-icon-button {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .vnd-dashboard-orders-table select.vnd-status-select {
        max-width: 100px;
        padding-right: 22px;
        padding-left: 8px;
        font-size: 11px;
    }

    .vnd-dashboard-orders-table--rep th:nth-child(5),
    .vnd-dashboard-orders-table--rep td:nth-child(5) {
        width: 78px;
    }

    .vnd-dashboard-orders-table--rep th:nth-child(6),
    .vnd-dashboard-orders-table--rep td:nth-child(6),
    .vnd-dashboard-orders-table--rep .vnd-table-actions {
        width: 78px;
        max-width: 78px;
    }
}
