:root {
    --vx-bg: #eff4fb;
    --vx-panel: #ffffff;
    --vx-border: #dce4f4;
    --vx-text: #26324a;
    --vx-muted: #7e8aa8;
    --vx-sidebar: #141e36;
    --vx-sidebar-muted: #9fb2d9;
    --vx-accent: #1ab5d5;
    --vx-accent-deep: #0b8fad;
    --vx-accent-warm: #f3a64a;
    --vx-danger: #de5b6d;
    --vx-shadow: 0 18px 40px rgba(17, 29, 58, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: var(--vx-text);
}

.vx-body {
    background: radial-gradient(circle at top right, #f8fbff 0%, var(--vx-bg) 42%, #eaf1fb 100%);
    overflow-x: hidden;
}

.vx-body.vx-sidebar-open {
    overflow: hidden;
}

.vx-shell {
    min-height: 100vh;
}

.vx-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: 272px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: linear-gradient(175deg, #1a2645 0%, #121a2e 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 14px 0 34px rgba(8, 13, 27, 0.2);
    transition: width 0.22s ease, padding 0.22s ease, transform 0.25s ease;
}

.vx-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #f5f8ff;
}

.vx-brand strong {
    display: block;
    line-height: 1.15;
}

.vx-brand small {
    display: block;
    color: var(--vx-sidebar-muted);
    font-size: 0.72rem;
    letter-spacing: 0.2px;
}

.vx-brand-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #28b9da 0%, #6ce8ff 100%);
    border: 1px solid rgba(136, 237, 255, 0.48);
    box-shadow: 0 8px 18px rgba(26, 181, 213, 0.45);
}

.vx-brand-icon {
    width: 72%;
    height: 72%;
    object-fit: contain;
    display: block;
}

.vx-sidebar-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #d4dff4;
    font-size: 1.6rem;
    line-height: 1;
}

.vx-nav {
    overflow: auto;
    padding-right: 0.2rem;
}

.vx-nav-group {
    margin-bottom: 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(159, 178, 217, 0.14);
}

.vx-nav-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.vx-nav-group-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
    padding: 0.15rem 0.36rem 0.18rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vx-nav-group-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vx-nav-group-toggle:focus-visible {
    outline: 2px solid rgba(111, 228, 255, 0.6);
    outline-offset: 1px;
}

.vx-nav-group-title {
    margin: 0;
    padding: 0 0.26rem;
    flex: 1 1 auto;
    text-align: left;
    font-size: 0.74rem;
    font-weight: 700;
    color: #7f95bc;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vx-nav-group-icon {
    font-size: 1rem;
    color: #a4b8dc;
    line-height: 1;
}

.vx-nav-group-arrow {
    color: #95a9cd;
    font-size: 1.05rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.vx-nav-group-toggle.is-open .vx-nav-group-arrow {
    transform: rotate(180deg);
    color: #c6d7f5;
}

.vx-nav-group-body {
    display: none;
}

.vx-nav-group-body.is-open {
    display: block;
}

.vx-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--vx-sidebar-muted);
    text-decoration: none;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    transition: all 0.2s ease;
}

.vx-nav-link i {
    font-size: 1.2rem;
}

.vx-nav-link.vx-nav-sub {
    margin-left: 0.45rem;
    padding: 0.5rem 0.7rem 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.93rem;
}

.vx-nav-link.vx-nav-sub i {
    font-size: 1rem;
    opacity: 0.9;
}

.vx-nav-label {
    flex: 1 1 auto;
}

.vx-nav-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #f26a7d;
    box-shadow: 0 6px 14px rgba(242, 106, 125, 0.45);
}

.vx-nav-link:hover {
    color: #f3f6ff;
    background: rgba(255, 255, 255, 0.07);
}

.vx-nav-link.is-active {
    color: #f4f9ff;
    background: linear-gradient(135deg, rgba(26, 181, 213, 0.26) 0%, rgba(26, 181, 213, 0.16) 100%);
    border: 1px solid rgba(103, 228, 255, 0.34);
    box-shadow: 0 10px 22px rgba(7, 17, 42, 0.3);
}

.vx-sidebar-user {
    margin-top: auto;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: #dce7ff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.vx-sidebar-user p {
    font-size: 0.74rem;
    color: #a8bcdd;
}

.vx-sidebar-profile-link {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #d7e8ff;
    text-decoration: none;
    border: 1px solid rgba(188, 211, 244, 0.28);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    transition: all 0.2s ease;
}

.vx-sidebar-profile-link i {
    font-size: 1rem;
    line-height: 1;
}

.vx-sidebar-profile-link:hover {
    color: #ffffff;
    border-color: rgba(123, 227, 255, 0.45);
    background: rgba(26, 181, 213, 0.2);
}

.vx-main {
    margin-left: 272px;
    min-height: 100vh;
    padding: 1rem;
    transition: margin-left 0.22s ease, padding 0.22s ease;
}

.vx-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(204, 217, 242, 0.6);
    border-radius: 14px;
    box-shadow: var(--vx-shadow);
    position: relative;
    z-index: 1040;
}

.vx-topbar-heading {
    min-width: 0;
}

.vx-page-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #d7e4f6;
    background: linear-gradient(145deg, #eef4ff 0%, #e6f0ff 100%);
    color: #39557d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.vx-page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.vx-page-subtitle {
    font-size: 0.73rem;
    color: var(--vx-muted);
}

.vx-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem !important;
    position: relative;
    z-index: 1045;
}

.vx-topbar-actions form {
    margin: 0;
}

.vx-topbar-action {
    min-height: 38px;
}

.vx-topbar-dropdown .dropdown-toggle::after {
    margin-left: 0.45rem;
}

.vx-topbar-actions .vx-company-menu-btn,
.vx-topbar-actions .vx-notify-btn,
.vx-topbar-actions .vx-meta-template-btn {
    position: relative;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid #d4e1f4;
    background: linear-gradient(140deg, #ffffff 0%, #f6f9ff 100%);
    color: #2a3d5e;
    box-shadow: 0 6px 16px rgba(21, 50, 97, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.vx-topbar-actions .vx-company-menu-btn:hover,
.vx-topbar-actions .vx-notify-btn:hover,
.vx-topbar-actions .vx-meta-template-btn:hover,
.vx-topbar-actions .vx-company-menu-btn:focus-visible,
.vx-topbar-actions .vx-notify-btn:focus-visible,
.vx-topbar-actions .vx-meta-template-btn:focus-visible,
.vx-topbar-dropdown.show .vx-company-menu-btn,
.vx-topbar-notifications.show .vx-notify-btn {
    transform: translateY(-1px);
    border-color: #b5ceef;
    background: linear-gradient(140deg, #ffffff 0%, #e9f3ff 100%);
    color: #1f3e67;
    box-shadow: 0 10px 20px rgba(24, 64, 120, 0.13);
}

.vx-topbar-actions .vx-company-menu-btn:focus-visible,
.vx-topbar-actions .vx-notify-btn:focus-visible,
.vx-topbar-actions .vx-meta-template-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 153, 255, 0.16), 0 10px 20px rgba(24, 64, 120, 0.13);
}

.vx-topbar-actions .vx-company-menu-btn {
    min-width: 170px;
    padding: 0.48rem 0.82rem;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    line-height: 1.1;
}

.vx-topbar-actions .vx-company-menu-btn i {
    font-size: 1.02rem;
    line-height: 1;
    color: #2d4f7b;
}

.vx-topbar-actions .vx-meta-template-btn {
    padding: 0.48rem 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #224372;
    letter-spacing: 0.01em;
}

.vx-topbar-actions .vx-meta-template-btn i {
    font-size: 1rem;
    line-height: 1;
}

.vx-topbar-actions .vx-company-menu-btn.dropdown-toggle::after {
    margin-left: 0.42rem;
    border-top-width: 0.33em;
    border-right-width: 0.24em;
    border-left-width: 0.24em;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.22s ease;
}

.vx-topbar-dropdown.show .vx-company-menu-btn.dropdown-toggle::after {
    transform: rotate(180deg);
}

.vx-topbar-dropdown .dropdown-menu {
    border: 1px solid #d7e4f6;
    border-radius: 12px;
    padding: 0.35rem;
}

.vx-topbar-dropdown .dropdown-item {
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2d4568;
}

.vx-topbar-dropdown .dropdown-item:hover,
.vx-topbar-dropdown .dropdown-item:focus {
    background: #eef5ff;
    color: #173b63;
}

.vx-profile-dropdown {
    position: relative;
}

.vx-profile-menu-btn {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid #c6d8f2;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
    color: #2b4469;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.24rem 0.54rem 0.24rem 0.28rem;
    box-shadow: 0 6px 16px rgba(33, 76, 136, 0.08);
    transition: all 0.2s ease;
}

.vx-profile-menu-btn::after {
    display: none;
}

.vx-profile-menu-btn:hover,
.vx-profile-menu-btn:focus-visible,
.vx-profile-dropdown.show .vx-profile-menu-btn {
    border-color: #0e63d8;
    background: linear-gradient(135deg, #ffffff 0%, #eaf4ff 100%);
    color: #1d3c66;
    box-shadow: 0 0 0 1px rgba(14, 99, 216, 0.2), 0 10px 20px rgba(31, 89, 168, 0.12);
}

.vx-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #17b4d4 0%, #3f6de7 100%);
    box-shadow: 0 4px 12px rgba(29, 111, 205, 0.24);
}

.vx-profile-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
    min-width: 0;
}

.vx-profile-meta strong {
    font-size: 0.72rem;
    font-weight: 600;
    color: #1f3657;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 124px;
}

.vx-profile-meta small {
    font-size: 0.6rem;
    color: #6f83a8;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 124px;
}

.vx-profile-chevron {
    font-size: 0.9rem;
    color: #6078a0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.22s ease, color 0.2s ease;
}

.vx-profile-menu-btn[aria-expanded="true"] .vx-profile-chevron,
.vx-profile-menu-btn.show .vx-profile-chevron,
.vx-profile-dropdown.show .vx-profile-chevron {
    transform: rotate(180deg);
    color: #2d5ca1;
}

.vx-profile-menu {
    min-width: 250px;
    border: 1px solid #cfdbef;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    margin-top: 0.42rem;
    box-shadow: 0 18px 36px rgba(16, 31, 56, 0.18);
}

.vx-profile-menu-header {
    padding: 0.72rem 0.88rem 0.58rem;
}

.vx-profile-menu-title strong {
    display: block;
    font-size: 1.02rem;
    color: #1f375a;
}

.vx-profile-menu-title small {
    display: block;
    font-size: 0.8rem;
    color: #7b8faf;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vx-profile-menu .dropdown-divider {
    margin: 0;
}

.vx-profile-menu .dropdown-item {
    border-radius: 0;
    padding: 0.72rem 0.9rem;
    font-size: 0.98rem;
}

.vx-profile-menu .dropdown-item.text-danger {
    color: #dc3f58 !important;
}

.vx-topbar-notifications {
    position: relative;
    z-index: 1050;
}

.vx-mobile-bubble-nav {
    display: none;
}

.vx-mobile-sheet,
.vx-mobile-sheet-backdrop {
    display: none;
}

.vx-mobile-bubble-item.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.vx-notify-btn {
    width: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vx-notify-btn.dropdown-toggle::after {
    display: none;
}

.vx-notify-btn i {
    font-size: 1.08rem;
    line-height: 1;
    color: #1f3b62;
}

.vx-notify-badge {
    position: absolute;
    top: -0.34rem;
    right: -0.3rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.67rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.vx-notify-menu {
    width: min(360px, 92vw);
    padding: 0;
    border: 1px solid #d7e4f6;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 22px 44px rgba(15, 32, 64, 0.24);
    z-index: 1085;
    --bs-dropdown-bg: #ffffff;
    --bs-dropdown-border-color: #d7e4f6;
    --bs-dropdown-link-hover-bg: #eef5ff;
}

.vx-notify-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid #e4edf9;
    background: #f5f9ff;
}

.vx-notify-menu-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vx-notify-menu-header strong {
    font-size: 0.9rem;
    color: #1f3350;
}

.vx-notify-menu-header small {
    font-size: 0.75rem;
    color: #6580a6;
}

.vx-notify-mark-read {
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.22rem 0.62rem;
}

.vx-notify-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    max-height: min(380px, 55vh);
    overflow: auto;
}

.vx-notify-empty {
    margin: 0.15rem;
    border: 1px dashed #d7e4f8;
    border-radius: 10px;
    padding: 0.82rem 0.76rem;
    font-size: 0.82rem;
    color: #6b7e9e;
    text-align: center;
    background: #f8fbff;
}

.vx-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 0.62rem;
    margin: 0.15rem;
    border: 1px solid #e4edf9;
    border-radius: 10px;
    padding: 0.62rem 0.66rem;
    background: #fff;
}

.vx-notify-item-icon {
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.vx-notify-item.is-warning .vx-notify-item-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.vx-notify-item.is-critical .vx-notify-item-icon {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.vx-notify-item.is-ticket .vx-notify-item-icon {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.vx-notify-item-body {
    min-width: 0;
}

.vx-notify-item-body strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1f3658;
    line-height: 1.25;
}

.vx-notify-item-body small {
    display: block;
    margin-top: 0.14rem;
    font-size: 0.74rem;
    color: #6883a7;
}

.vx-notify-menu-footer {
    border-top: 1px solid #e4edf9;
    padding: 0.6rem 0.8rem;
    text-align: center;
    background: #f7fbff;
}

.vx-notify-menu-footer a {
    color: #1f6feb;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.vx-notify-menu-footer a:hover,
.vx-notify-menu-footer a:focus {
    text-decoration: underline;
}

.vx-icon-btn {
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #38516f;
    background: #ebf3ff;
}

#vxSidebarToggle {
    display: inline-flex;
}

.vx-content {
    padding-bottom: 1rem;
}

.vx-content .card {
    border: 1px solid var(--vx-border);
    border-radius: 16px;
    box-shadow: var(--vx-shadow);
    background: rgba(255, 255, 255, 0.94);
}

.metric-card {
    border-left: 0;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    top: -22px;
    right: -22px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 181, 213, 0.24) 0%, rgba(26, 181, 213, 0.04) 100%);
}

.vx-clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vx-clickable-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(20, 46, 88, 0.12);
}

.vx-clickable-card:focus-visible {
    outline: 2px solid #81d6e8;
    outline-offset: 2px;
}

.metric-label {
    display: block;
    color: var(--vx-muted);
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.vx-dashboard-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.vx-dashboard-filter-actions {
    display: flex;
    gap: 0.52rem;
    align-items: center;
}

.vx-dashboard-filter-btn {
    min-height: 44px;
    padding-inline: 0.95rem;
    font-weight: 700;
}

.vx-dashboard-filter-range {
    margin-top: 0.45rem;
    font-size: 0.74rem;
    color: #61789c;
    border: 1px solid #dde7f6;
    background: #f7fbff;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    display: inline-flex;
    align-items: center;
}

.vx-kpi-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vx-kpi-card {
    border: 1px solid #dbe6f6;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 12px 26px rgba(22, 47, 85, 0.08);
}

.vx-kpi-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.62rem;
}

.vx-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ebf4ff;
    color: #2565b8;
    font-size: 1rem;
}

.vx-kpi-title {
    font-size: 0.8rem;
    color: #5f7497;
    font-weight: 600;
    flex: 1;
}

.vx-kpi-value {
    font-size: 1.38rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1f3350;
    line-height: 1.15;
}

.vx-kpi-trend {
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.vx-kpi-trend.is-up {
    color: #127344;
    background: #e8f8ef;
    border-color: #c7ebd7;
}

.vx-kpi-trend.is-down {
    color: #b53a4b;
    background: #ffedf0;
    border-color: #f8c7cf;
}

.vx-kpi-trend.is-neutral {
    color: #607290;
    background: #f0f4fb;
    border-color: #d8e1ef;
}

.vx-dash-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.72rem;
}

.vx-empty-state {
    border: 1px dashed #d7e2f3;
    border-radius: 12px;
    padding: 0.95rem 0.9rem;
    text-align: center;
    color: #6f84a8;
    background: #f9fbff;
    font-size: 0.88rem;
}

.vx-trend-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 0.42rem;
    min-height: 208px;
    align-items: end;
}

.vx-trend-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.38rem;
}

.vx-trend-col small {
    font-size: 0.66rem;
    color: #7186aa;
    font-weight: 600;
}

.vx-trend-bars {
    width: 100%;
    min-height: 168px;
    padding: 0 0.18rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    border: 1px solid #e0eaf8;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.2rem;
}

.vx-trend-bar {
    width: 41%;
    border-radius: 8px 8px 3px 3px;
    min-height: 6px;
    transition: height 0.25s ease;
}

.vx-trend-bar.is-sales {
    background: linear-gradient(180deg, #1e86ff 0%, #306bf0 100%);
}

.vx-trend-bar.is-profit {
    background: linear-gradient(180deg, #2ec98a 0%, #1ea66d 100%);
}

.vx-trend-legend {
    display: inline-flex;
    gap: 0.8rem;
    margin-top: 0.62rem;
    color: #5f7599;
    font-size: 0.76rem;
    font-weight: 600;
}

.vx-trend-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.24rem;
}

.vx-trend-legend .dot.is-sales {
    background: #2b72f2;
}

.vx-trend-legend .dot.is-profit {
    background: #22b879;
}

.vx-top-main {
    border: 1px solid #dae5f5;
    border-radius: 13px;
    padding: 0.75rem;
    margin-bottom: 0.7rem;
    background: linear-gradient(160deg, #ffffff 0%, #f4f9ff 100%);
}

.vx-top-main strong {
    font-size: 0.98rem;
    color: #20395f;
    display: block;
}

.vx-top-main-stats {
    margin-top: 0.42rem;
    display: grid;
    gap: 0.24rem;
    font-size: 0.76rem;
    color: #5d7398;
}

.vx-top-main-stats b {
    color: #1f3965;
}

.vx-top-list,
.vx-payment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.vx-top-list li,
.vx-payment-list li {
    border: 1px solid #e2ebf8;
    border-radius: 11px;
    padding: 0.55rem 0.62rem;
    background: #fff;
}

.vx-top-list-row,
.vx-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.55rem;
    margin-bottom: 0.32rem;
}

.vx-top-list-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f395f;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-top-list-value,
.vx-payment-row b {
    font-size: 0.74rem;
    color: #45618d;
    font-weight: 700;
}

.vx-top-list-progress,
.vx-payment-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #edf3fd;
    overflow: hidden;
}

.vx-top-list-progress span,
.vx-payment-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.vx-top-list-progress span {
    background: linear-gradient(90deg, #1f7ffd 0%, #3f64ef 100%);
}

.vx-payment-progress span {
    background: linear-gradient(90deg, #2ec98a 0%, #1ea66d 100%);
}

.vx-payment-row span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #273d60;
}

.vx-branch-compact-list {
    display: grid;
    gap: 0.55rem;
}

.vx-branch-compact-list article {
    border: 1px solid #dbe7f7;
    border-radius: 12px;
    padding: 0.56rem 0.64rem;
    background: #fff;
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
}

.vx-branch-compact-list strong {
    display: block;
    font-size: 0.82rem;
    color: #20395f;
    font-weight: 700;
}

.vx-branch-compact-list small {
    display: block;
    font-size: 0.7rem;
    color: #6c81a3;
}

@media (max-width: 1199.98px) {
    .vx-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .vx-dashboard-hero-head {
        flex-direction: column;
        align-items: stretch;
    }

    .vx-dashboard-filter-actions {
        width: 100%;
    }

    .vx-dashboard-filter-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .vx-dashboard-filter-range {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .vx-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vx-kpi-value {
        font-size: 1.26rem;
    }

    .vx-trend-chart {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .vx-trend-col {
        min-width: 44px;
    }

    .vx-trend-bars {
        min-height: 140px;
    }
}

.btn {
    border-radius: 10px;
    font-weight: 500;
}

.btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--vx-accent) 0%, var(--vx-accent-deep) 100%);
    box-shadow: 0 9px 20px rgba(26, 181, 213, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #20c4e4 0%, #0f9bb9 100%);
}

.btn-light {
    border-color: #d7e3f6;
}

.btn-outline-secondary {
    border-color: #c8d6ee;
    color: #445779;
}

.btn-outline-secondary:hover {
    background: #ecf2fe;
    border-color: #bdd0f0;
    color: #2f4568;
}

.btn-danger {
    border: 0;
    background: linear-gradient(135deg, #e56b7b 0%, var(--vx-danger) 100%);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495875;
}

.form-control,
.form-select,
textarea {
    border-color: #d0dcf1;
    border-radius: 10px;
    min-height: 44px;
    font-size: 0.92rem;
}

textarea.form-control {
    min-height: 94px;
}

.form-control:focus,
.form-select:focus {
    border-color: #8fd8e8;
    box-shadow: 0 0 0 0.2rem rgba(26, 181, 213, 0.16);
}

.vx-pos-modern .card {
    border-radius: 16px;
}

.vx-pos-panel {
    border: 1px solid #dce7f6;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.vx-pos-pill {
    font-weight: 600;
    color: #39547a;
    border-color: #d9e5f6 !important;
    background: #f4f8ff !important;
}

.vx-pos-controls {
    padding: 0.75rem;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
    border-radius: 14px;
    border: 1px solid #dce8f8;
    background: #f8fbff;
}

.vx-pos-controls .form-control,
.vx-pos-controls .form-select {
    min-height: 42px;
    font-size: 0.95rem;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
}

.vx-pos-customer-info {
    font-size: 0.93rem;
    line-height: 1.42;
    white-space: normal;
    word-break: break-word;
}

.vx-pos-client-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.vx-pos-client-label-row .form-label {
    margin-bottom: 0;
}

.vx-pos-new-customer-btn {
    border: 1px solid #c8dcf7;
    background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
    color: #2b5f95;
    border-radius: 10px;
    padding: 0.34rem 0.72rem;
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.33rem;
    line-height: 1.1;
    box-shadow: 0 3px 10px rgba(35, 100, 170, 0.08);
}

.vx-pos-new-customer-btn i {
    font-size: 1rem;
    line-height: 1;
}

.vx-pos-new-customer-btn:hover,
.vx-pos-new-customer-btn:focus {
    background: linear-gradient(180deg, #ecf5ff 0%, #dfefff 100%);
    color: #224f80;
    border-color: #aed0f6;
}

.vx-pos-new-customer-btn:disabled {
    opacity: 0.62;
    box-shadow: none;
}

.vx-pos-toolbar .input-group-text {
    border-color: #cfe0f6;
    color: #5f7295;
}

.vx-pos-toolbar .form-control {
    border-color: #cfe0f6;
}

.vx-pos-discount-group .input-group-text {
    border-color: #c7dbf5;
    background: #f3f8ff;
    color: #2f5c8e;
    font-weight: 700;
    min-height: 46px;
}

.vx-pos-discount-group .form-select {
    max-width: 62px;
    min-width: 62px;
    flex: 0 0 62px;
    border-color: #c7dbf5;
    background: #f3f8ff;
    font-weight: 700;
    color: #2f5c8e;
}

.vx-pos-discount-col .vx-pos-discount-group {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.vx-pos-discount-input {
    border-color: #c7dbf5;
    min-height: 42px;
    min-width: 0;
    width: 100%;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: right;
    letter-spacing: 0.02em;
    color: #1f456f;
    background: #ffffff;
}

.vx-pos-discount-input:focus {
    border-color: #7fc8ed;
    box-shadow: 0 0 0 0.2rem rgba(26, 181, 213, 0.18);
}

.vx-pos-category-tabs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.vx-pos-category-btn {
    border: 1px solid #d3e1f6;
    background: #f9fbff;
    color: #4b618a;
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.vx-pos-category-btn span {
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #e7effc;
    color: #345078;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.vx-pos-category-btn:hover {
    border-color: #a9c7ef;
    background: #eef5ff;
}

.vx-pos-category-btn.is-active {
    border-color: rgba(26, 181, 213, 0.7);
    background: linear-gradient(135deg, rgba(26, 181, 213, 0.2) 0%, rgba(11, 143, 173, 0.18) 100%);
    color: #135c74;
}

.vx-pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    max-height: min(64vh, 690px);
    overflow: auto;
    padding-right: 0.15rem;
}

.vx-pos-product-card {
    border: 1px solid #d7e4f8;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.6rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.vx-pos-product-card:hover {
    transform: translateY(-2px);
    border-color: #8dc8ea;
    box-shadow: 0 10px 18px rgba(23, 44, 82, 0.13);
}

.vx-pos-product-card.is-disabled,
.vx-pos-product-card:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vx-pos-product-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: #f4f8ff;
    border: 1px solid #e2ecfa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-pos-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-pos-product-name {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.25;
    color: #243754;
    max-height: 2.3em;
    overflow: hidden;
}

.vx-pos-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.vx-pos-product-meta span {
    font-size: 0.72rem;
    color: #7388ac;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-pos-product-meta strong {
    font-size: 0.82rem;
    color: #146f5e;
    font-weight: 700;
}

.vx-pos-variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    align-self: flex-start;
    border: 1px solid #cfe2ff;
    background: #edf5ff;
    color: #2f5f95;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.28rem 0.52rem;
}

#posVariantModal .modal-content {
    border-radius: 16px;
    border: 1px solid #d9e6f8;
    overflow: hidden;
}

#posVariantModal .modal-header {
    border-bottom: 1px solid #e5eefb;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

#posVariantModal .modal-footer {
    border-top: 1px solid #e5eefb;
}

#posVariantModal #posVariantProductName {
    color: #243a5d;
}

#posVariantModal #posVariantHelper {
    color: #5f7599;
}

#posVariantModal #posVariantAttributesContainer .form-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5f7397;
    margin-bottom: 0.3rem;
}

#posVariantModal #posVariantPriceDisplay {
    background: #f5faff;
    color: #1f4d73;
    font-weight: 700;
    text-align: right;
}

#posVariantModal #posVariantQtyInput {
    text-align: center;
    font-weight: 700;
}

#posVariantModal #posVariantStockBadge {
    border-radius: 999px;
    padding: 0.4rem 0.65rem;
    font-size: 0.76rem;
}

.vx-pos-checkout-card {
    position: sticky;
    top: 0.7rem;
}

.vx-pos-checkout-list {
    border: 1px solid #dce7f6;
    border-radius: 14px;
    background: #fbfdff;
    max-height: 48vh;
    overflow: auto;
    padding: 0.55rem;
}

.vx-pos-checkout-item {
    border: 1px solid #dce7f6;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.55rem;
    margin-bottom: 0.5rem;
}

.vx-pos-checkout-item:last-child {
    margin-bottom: 0;
}

.vx-pos-checkout-main {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.48rem;
}

.vx-pos-checkout-name {
    color: #263954;
    font-size: 0.88rem;
    line-height: 1.2;
}

.vx-pos-checkout-actions {
    display: grid;
    grid-template-columns: 32px 64px 32px 1fr auto;
    gap: 0.38rem;
    align-items: center;
}

.vx-pos-checkout-actions .vx-qty-btn {
    height: 32px;
    padding: 0;
}

.vx-pos-checkout-actions .vx-qty-input {
    text-align: center;
    min-height: 32px;
    height: 32px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.vx-pos-checkout-line-total {
    justify-self: end;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1f4d73;
}

.vx-pos-line-discount small {
    font-size: 0.74rem;
    font-weight: 600;
}

.vx-pos-line-discount .input-group {
    max-width: 210px;
}

.vx-pos-line-discount .vx-line-discount-type {
    max-width: 74px;
}

.vx-pos-summary {
    border-top: 1px dashed #d1def2;
    padding-top: 0.75rem;
}

.vx-pos-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    color: #4c628a;
    font-size: 0.87rem;
}

.vx-pos-summary-row strong {
    color: #2c4368;
}

.vx-pos-summary-total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dbe6f8;
    font-size: 1rem;
}

.vx-pos-summary-total strong {
    font-size: 1.1rem;
    color: #166754;
}

.vx-pos-status-card {
    border: 1px solid #dfe8f6;
}

.vx-pos-status-card .card-body {
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border-radius: 16px;
}

.vx-pos-panel .ts-wrapper {
    width: 100%;
}

.vx-pos-panel .ts-wrapper.single .ts-control {
    border-color: #d0dcf1;
    border-radius: 10px;
    min-height: 44px;
    font-size: 0.92rem;
    box-shadow: none;
    padding-top: 0.47rem;
    padding-bottom: 0.47rem;
}

.vx-pos-panel .ts-wrapper.focus .ts-control {
    border-color: #8fd8e8;
    box-shadow: 0 0 0 0.2rem rgba(26, 181, 213, 0.16);
}

.vx-pos-panel .ts-dropdown {
    border-color: #d2def1;
    border-radius: 10px;
    box-shadow: 0 14px 24px rgba(20, 34, 66, 0.16);
}

.table {
    color: #33445f;
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
    border-color: #e4ebf7;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #7083a4;
    border-bottom-width: 1px;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(230, 239, 251, 0.45);
}

.vx-content .table-responsive {
    border: 1px solid #e4ebf7;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.vx-content .table-responsive .table {
    min-width: 720px;
}

.vx-content .table-responsive .table.table-sm {
    min-width: 620px;
}

.vx-sales-table {
    min-width: 860px;
}

.vx-sales-filters {
    border: 1px solid #e2eaf8;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    padding: 0.8rem;
}

.vx-sales-filters .input-group-text {
    border-color: #d7e4f8;
    color: #5f759f;
}

.vx-sales-filters .form-control,
.vx-sales-filters .form-select {
    border-color: #d7e4f8;
}

.vx-receivables-filters {
    display: flex;
    align-items: flex-end;
    gap: 0.58rem;
    flex-wrap: wrap;
    border: 1px solid #e2eaf8;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    padding: 0.8rem;
}

.vx-receivables-control {
    min-width: 170px;
    flex: 1 1 180px;
}

.vx-receivables-control-client {
    min-width: 250px;
    flex: 1.55 1 320px;
}

.vx-receivables-control-state {
    min-width: 165px;
    flex: 0.8 1 180px;
}

.vx-receivables-control .form-label {
    margin-bottom: 0.42rem;
}

.vx-receivables-control .form-control,
.vx-receivables-control .form-select {
    border-color: #d7e4f8;
}

.vx-receivables-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.vx-receivables-btn {
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.vx-receivables-export-group .vx-receivables-btn {
    min-width: 88px;
}

.vx-sales-toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    flex-wrap: wrap;
    overflow: visible;
}

.vx-sales-search-group {
    min-width: 240px;
    flex: 2 1 360px;
}

.vx-sales-filter-control {
    min-width: 145px;
    max-width: none;
    flex: 1 1 165px;
}

.vx-sales-toolbar-row .btn {
    flex: 0 1 auto;
    border-radius: 10px;
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .vx-sales-toolbar-row {
        flex-wrap: nowrap;
    }

    .vx-sales-search-group {
        flex: 1 1 300px;
    }

    .vx-sales-filter-control {
        flex: 0 0 160px;
    }
}

.vx-sales-table td {
    white-space: nowrap;
}

.vx-sales-table td:nth-child(4),
.vx-sales-table td:nth-child(6) {
    white-space: normal;
}

.vx-sales-pagination {
    --vx-page-border: #d4deee;
    --vx-page-text: #1d6ff0;
    --vx-page-active-bg: #f3f7ff;
    --vx-page-disabled: #9bb0d0;
    border: 1px solid var(--vx-page-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(30, 56, 108, 0.07);
}

.vx-sales-pagination .page-item {
    margin: 0;
}

.vx-sales-pagination .page-link {
    border: 0;
    border-left: 1px solid var(--vx-page-border);
    min-width: 48px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--vx-page-text);
    font-weight: 600;
    font-size: 1.55rem;
    line-height: 1;
    padding: 0;
    background: #fff;
}

.vx-sales-pagination .page-item:first-child .page-link {
    border-left: 0;
}

.vx-sales-pagination .page-link i {
    font-size: 1.2rem;
}

.vx-sales-pagination .page-item.active .page-link {
    background: var(--vx-page-active-bg);
    color: var(--vx-page-text);
}

.vx-sales-pagination .page-item.disabled .page-link {
    color: var(--vx-page-disabled);
    background: #fbfdff;
    pointer-events: none;
}

.vx-sales-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #f8fbff;
}

.vx-purchase-history-table td:nth-child(3),
.vx-purchase-history-table td:nth-child(5) {
    white-space: normal;
}

.vx-purchase-toolbar .form-label {
    margin-bottom: 0.42rem;
}

.purchase-grand-total {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #17395d;
    text-align: right;
    background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
    border-color: #bcd6f6;
}

.purchase-number {
    text-align: right;
    font-weight: 600;
    color: #263f64;
}

.purchase-money-readonly {
    text-align: right;
    font-weight: 700;
    color: #1d3c61;
    background: #f8fbff;
}

.vx-purchase-entry-table {
    table-layout: fixed;
    min-width: 1080px;
}

.vx-purchase-entry-table thead th {
    font-size: 0.82rem;
    font-weight: 700;
}

.vx-purchase-entry-table td .form-control,
.vx-purchase-entry-table td .form-select {
    min-height: 52px;
    font-size: 0.96rem;
}

.vx-purchase-entry-table .purchase-line-total,
.vx-purchase-entry-table .purchase-qty,
.vx-purchase-entry-table .purchase-cost,
.vx-purchase-entry-table .purchase-line-tax {
    letter-spacing: 0.01em;
}

.vx-purchase-entry-table .purchase-remove-row.vx-purchase-remove-row {
    width: 52px;
    min-width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 600;
}

.vx-purchase-modal .modal-header {
    padding: 0.78rem 1rem;
}

.vx-purchase-modal .modal-body {
    padding: 0.9rem 1rem;
}

.vx-purchase-modal .modal-footer {
    padding: 0.72rem 1rem;
}

.vx-purchase-modal .form-label {
    font-size: 0.86rem;
    margin-bottom: 0.32rem;
}

.vx-purchase-modal .form-control,
.vx-purchase-modal .form-select {
    min-height: 42px;
    font-size: 0.9rem;
}

.vx-purchase-modal .purchase-grand-total {
    font-size: 1.18rem;
}

.vx-purchase-modal .vx-purchase-entry-table {
    min-width: 980px;
}

.vx-purchase-modal .vx-purchase-entry-table thead th {
    font-size: 0.76rem;
    padding: 0.52rem 0.45rem;
}

.vx-purchase-modal .vx-purchase-entry-table td {
    padding: 0.45rem;
}

.vx-purchase-modal .vx-purchase-entry-table td .form-control,
.vx-purchase-modal .vx-purchase-entry-table td .form-select {
    min-height: 42px;
    font-size: 0.88rem;
}

.vx-purchase-modal .vx-purchase-entry-table .purchase-remove-row.vx-purchase-remove-row {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.12rem;
}

.vx-oc-table-wrap {
    border: 1px solid #dbe7f8;
    border-radius: 14px;
    overflow: hidden;
}

.vx-oc-table {
    width: 100%;
    table-layout: fixed;
}

.vx-oc-table thead th {
    border-bottom: 1px solid #dbe7f8;
    background: #f7fbff;
    color: #6f84a6;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.62rem 0.56rem;
    text-align: center;
}

.vx-oc-table tbody td {
    border-color: #e5edf9;
    padding: 0.64rem 0.56rem;
    vertical-align: middle;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}

.vx-oc-table thead th:nth-child(1),
.vx-oc-table tbody td:nth-child(1) {
    width: 19%;
}

.vx-oc-table thead th:nth-child(2),
.vx-oc-table tbody td:nth-child(2) {
    width: 17%;
}

.vx-oc-table thead th:nth-child(3),
.vx-oc-table tbody td:nth-child(3) {
    width: 15%;
}

.vx-oc-table tbody td:nth-child(4),
.vx-oc-table thead th:nth-child(4) {
    white-space: normal;
    width: 23%;
}

.vx-oc-table thead th:nth-child(5),
.vx-oc-table tbody td:nth-child(5) {
    width: 12%;
}

.vx-oc-table thead th:nth-child(6),
.vx-oc-table tbody td:nth-child(6) {
    width: 14%;
}

.vx-oc-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 700;
    color: #1f3458;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.vx-oc-date-main {
    font-weight: 600;
    color: #263f66;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.vx-oc-total {
    font-weight: 700;
    color: #1e365b;
    white-space: nowrap;
    font-size: 0.95rem;
}

.vx-oc-progress .progress {
    height: 8px;
    border-radius: 999px;
    background: #e7eef8;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.vx-oc-progress .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #2f6ef0 0%, #4e89ff 100%);
}

.vx-oc-progress-meta {
    margin-top: 0.22rem;
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #5f7397;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.vx-oc-state-badge {
    text-transform: capitalize;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.32rem 0.6rem;
}

.vx-oc-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    flex-wrap: nowrap;
}

.vx-oc-actions .btn {
    border-radius: 10px;
    white-space: nowrap;
    min-height: 1.92rem;
}

.vx-oc-icon-btn {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vx-oc-icon-btn i {
    font-size: 1rem;
    line-height: 1;
}

.vx-oc-detail-row > td {
    padding: 0 !important;
    border-top: 0;
    background: transparent;
}

.vx-oc-detail-panel {
    margin: 0;
    padding: 0.85rem 0.9rem;
    border-top: 1px solid #e4ecf8;
    background: linear-gradient(180deg, #f9fcff 0%, #f4f8ff 100%);
}

.vx-sales-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.vx-sales-primary-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.vx-sales-action-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.vx-sales-action-btn i {
    font-size: 1.08rem;
    line-height: 1;
}

.vx-sales-dropdown {
    min-width: 12.5rem;
    border-color: #d9e3f4;
    box-shadow: 0 12px 26px rgba(21, 33, 58, 0.14);
}

.vx-sales-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
}

.vx-sales-dropdown form {
    margin: 0;
}

@media (max-width: 1200px) {
    .vx-sales-primary-actions {
        display: none;
    }
}

.vx-branch-metric-card {
    border: 1px solid #e1e9f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.vx-branch-metric-label {
    display: block;
    color: #6f83a9;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vx-branch-metric-value {
    color: #213352;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
}

.vx-branch-plan-card .progress {
    height: 10px;
    background: #e7eefb;
}

.vx-branch-search {
    width: min(420px, 100%);
}

.vx-branch-search .input-group-text {
    border-color: #d7e2f5;
    color: #6c80a5;
    background: #fff;
}

.vx-branch-search .form-control {
    border-color: #d7e2f5;
}

.vx-branch-accordion .accordion-item {
    border: 1px solid #e0e8f7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.vx-branch-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.vx-branch-accordion .accordion-button {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: none;
    padding: 0.75rem 0.9rem;
}

.vx-branch-accordion .accordion-button:not(.collapsed) {
    color: #1f3357;
    background: linear-gradient(180deg, #f4f9ff 0%, #edf5ff 100%);
}

.vx-branch-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-right: 1rem;
}

.vx-branch-head strong {
    display: block;
    color: #1f3356;
    line-height: 1.25;
}

.vx-branch-head small {
    display: block;
    color: #7185aa;
    font-size: 0.75rem;
}

.vx-branch-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.vx-branch-head-meta .badge {
    font-size: 0.72rem;
    font-weight: 600;
}

.vx-sale-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.vx-sale-detail-item {
    border: 1px solid #dfe8f6;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    background: #f8fbff;
}

.vx-sale-detail-item small {
    display: block;
    margin-bottom: 0.15rem;
    color: #7285a7;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vx-sale-detail-item strong {
    color: #253554;
    font-size: 0.92rem;
    font-weight: 600;
}

.vx-sale-detail-item .badge {
    font-size: 0.74rem;
}

.sa-plan-table {
    min-width: 980px;
}

.sa-plan-table thead th {
    white-space: nowrap;
}

.sa-plan-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sa-plan-title {
    font-size: 1.02rem;
    color: #1f2d48;
}

.sa-plan-slug {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    color: #5a6f97;
    background: #edf3fd;
    border: 1px solid #d8e4f7;
    font-size: 0.76rem;
    line-height: 1.2;
}

.sa-plan-price {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.sa-plan-price strong {
    color: #1f2d48;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
}

.sa-plan-price small {
    color: #6f83a7;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sa-limit-pills,
.sa-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sa-limit-pill,
.sa-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.26rem 0.52rem;
    border-radius: 999px;
    border: 1px solid #d9e4f7;
    background: #f4f8ff;
    color: #364b72;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
}

.sa-limit-pill i,
.sa-feature-chip i {
    font-size: 0.95rem;
}

.sa-feature-chip.is-on {
    color: #1f6d46;
    border-color: #b8e0cb;
    background: #ebf9f1;
}

.sa-feature-chip.is-off {
    color: #6d7f9f;
    border-color: #d8e2f4;
    background: #f3f6fc;
}

.sa-companies-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: #ecf3ff;
    border: 1px solid #d4e2f8;
    color: #274777;
    font-weight: 700;
    font-size: 0.88rem;
}

.sa-plan-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: nowrap;
    min-width: auto;
}

.sa-plan-actions form {
    margin: 0;
    display: inline-flex;
}

.sa-plan-actions .btn {
    width: auto;
}

.sa-plan-icon-btn {
    width: 2.08rem;
    min-width: 2.08rem;
    height: 2.08rem;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sa-plan-icon-btn i {
    font-size: 1rem;
    line-height: 1;
}

.sa-plan-edit-row > td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.sa-plan-edit-panel {
    margin: 0.18rem 0 0.55rem;
    border: 1px solid #d9e4f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.sa-sub-table {
    min-width: 980px;
}

.sa-sub-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.05rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: #edf4ff;
    border: 1px solid #d6e3f8;
    color: #2c4874;
    font-weight: 700;
    font-size: 0.82rem;
}

.sa-sub-company {
    color: #1f2d48;
    font-size: 1rem;
}

.sa-sub-plan {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    color: #38507a;
    background: #eef4ff;
    border: 1px solid #d7e3f7;
    font-size: 0.78rem;
    font-weight: 600;
}

.sa-sub-date {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    border: 1px solid #dde7f8;
    color: #43587d;
    background: #f6f9ff;
    font-size: 0.79rem;
    font-weight: 600;
}

.sa-sub-auto {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.56rem;
    border-radius: 999px;
    border: 1px solid #d8e3f5;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.sa-sub-auto.is-on {
    color: #1d6e46;
    border-color: #b7dfcb;
    background: #ebf9f1;
}

.sa-sub-auto.is-off {
    color: #697c9d;
    border-color: #d7e2f4;
    background: #f3f6fc;
}

.sa-sub-auto i {
    font-size: 0.92rem;
}

.sa-sub-actions {
    display: inline-flex;
}

.sa-sub-edit-row > td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.sa-sub-edit-panel {
    margin: 0.18rem 0 0.55rem;
    border: 1px solid #d9e4f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.sa-company-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.sa-company-table {
    --sa-company-border: #dbe5f7;
    border-collapse: separate;
    border-spacing: 0 0.62rem;
    margin-bottom: 0;
}

.sa-company-table thead th {
    border: 0;
    padding: 0.2rem 0.9rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6f83a9;
    white-space: nowrap;
}

.sa-company-table tbody td {
    border-top: 1px solid var(--sa-company-border);
    border-bottom: 1px solid var(--sa-company-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.72rem 0.9rem;
    vertical-align: middle;
}

.sa-company-table tbody td:first-child {
    border-left: 1px solid var(--sa-company-border);
    border-radius: 14px 0 0 14px;
}

.sa-company-table tbody td:last-child {
    border-right: 1px solid var(--sa-company-border);
    border-radius: 0 14px 14px 0;
}

.sa-company-id-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    border: 1px solid #d8e4f8;
    background: #f6f9ff;
    color: #38507f;
    font-size: 0.8rem;
    font-weight: 700;
}

.sa-company-main {
    display: grid;
    gap: 0.1rem;
}

.sa-company-name {
    display: block;
    color: #243756;
    font-size: 0.98rem;
    line-height: 1.16;
}

.sa-company-email {
    color: #7386a8;
    font-size: 0.82rem;
}

.sa-company-plan {
    display: grid;
    gap: 0.06rem;
}

.sa-company-plan-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a8fb2;
}

.sa-company-plan-name {
    color: #273b5d;
    font-size: 0.94rem;
    line-height: 1.16;
}

.sa-company-date {
    color: #334b74;
    font-size: 0.86rem;
    font-weight: 600;
}

.sa-company-badge {
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}

.sa-company-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.34rem;
    justify-content: flex-start;
}

.sa-company-delete-form {
    margin: 0;
}

.sa-company-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 0;
    padding: 0.34rem 0.64rem;
    border-radius: 9px;
    line-height: 1;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.sa-company-btn-edit {
    min-width: 86px;
}

.sa-company-btn-factus {
    min-width: 82px;
}

.sa-company-btn-factus i {
    font-size: 0.95rem;
}

.sa-company-btn-delete {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
}

.sa-company-btn-delete i {
    font-size: 1rem;
    line-height: 1;
}

.sa-company-edit-modal .modal-content {
    border-radius: 16px;
    border-color: #d8e4f6;
}

.sa-company-edit-modal .modal-header,
.sa-company-edit-modal .modal-footer {
    border-color: #dbe6f7;
    background: #fbfdff;
}

.sa-company-edit-modal .form-control[readonly] {
    background: #f7faff;
    color: #4a5f84;
    border-color: #d8e3f7;
}

.sa-factus-modal .modal-content {
    border-radius: 16px;
    border-color: #d8e4f6;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
}

.sa-factus-modal .modal-content > form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.sa-factus-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sa-factus-modal .modal-header,
.sa-factus-modal .modal-footer {
    background: #fbfdff;
    border-color: #dbe6f7;
}

.sa-factus-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sa-factus-status {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sa-factus-footer {
    gap: 0.5rem;
}

@media (max-width: 991.98px) {
    .sa-company-table {
        border-spacing: 0 0.45rem;
    }

    .sa-company-table thead th {
        font-size: 0.72rem;
        padding: 0.12rem 0.6rem 0.42rem;
    }

    .sa-company-table tbody td {
        padding: 0.62rem 0.58rem;
    }

    .sa-company-name {
        font-size: 0.96rem;
    }

    .sa-company-email {
        font-size: 0.8rem;
    }

    .sa-company-plan-name {
        font-size: 0.92rem;
    }

    .sa-company-actions {
        gap: 0.28rem;
    }

    .sa-company-btn {
        font-size: 0.76rem;
        min-height: 32px;
        padding: 0.3rem 0.52rem;
    }

    .sa-company-btn-edit {
        min-width: 74px;
    }

    .sa-company-btn-factus {
        min-width: 68px;
    }

    .sa-company-btn-delete {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }
}

.vx-users-metric-card {
    border: 1px solid #e1e9f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.vx-users-metric-label {
    display: block;
    color: #6f83a9;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vx-users-metric-value {
    color: #213352;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
}

.vx-users-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    border: 1px solid #e2eaf8;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    padding: 0.7rem;
}

.vx-users-search {
    min-width: 240px;
    flex: 2 1 340px;
}

.vx-users-search .input-group-text {
    border-color: #d7e4f8;
    color: #5f759f;
    background: #fff;
}

.vx-users-search .form-control {
    border-color: #d7e4f8;
}

.vx-users-filter {
    min-width: 160px;
    flex: 1 1 160px;
}

.vx-users-table {
    min-width: 620px;
}

.vx-users-table td:first-child strong {
    color: #223451;
}

.vx-users-table td:first-child small {
    font-size: 0.79rem;
}

.vx-role-tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.vx-role-tab {
    border: 1px solid #d7e4f8;
    background: #f6f9ff;
    color: #3f5680;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.78rem;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.vx-role-tab:hover {
    border-color: #bdd2ef;
    background: #eef4ff;
}

.vx-role-tab.is-active {
    border-color: rgba(26, 181, 213, 0.7);
    background: linear-gradient(135deg, rgba(26, 181, 213, 0.2) 0%, rgba(11, 143, 173, 0.18) 100%);
    color: #1a4f72;
}

.vx-role-tab-count {
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: #eaf2ff;
    color: #2b4d7c;
}

.vx-role-tab.is-active .vx-role-tab-count {
    background: rgba(255, 255, 255, 0.7);
    color: #0d5b79;
}

.vx-role-panel {
    display: none;
    border: 1px solid #e2eaf8;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    padding: 0.75rem;
}

.vx-role-panel.is-active {
    display: block;
}

.vx-role-panel-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.vx-role-search {
    min-width: 250px;
    flex: 2 1 320px;
}

.vx-role-search .input-group-text {
    border-color: #d7e4f8;
    color: #5f759f;
    background: #fff;
}

.vx-role-search .form-control {
    border-color: #d7e4f8;
}

.vx-role-perm-accordion .accordion-item {
    border: 1px solid #e0e8f7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.vx-role-perm-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.vx-role-perm-accordion .accordion-button {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: none;
    padding: 0.7rem 0.85rem;
}

.vx-role-perm-accordion .accordion-button:not(.collapsed) {
    color: #1f3357;
    background: linear-gradient(180deg, #f4f9ff 0%, #edf5ff 100%);
}

.vx-perm-module-title {
    font-weight: 600;
    color: #244062;
    text-transform: capitalize;
}

.vx-perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.45rem;
}

.vx-perm-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border: 1px solid #dce6f6;
    border-radius: 10px;
    padding: 0.48rem 0.58rem;
    background: #fff;
    transition: border-color 0.16s ease, background 0.16s ease;
    cursor: pointer;
}

.vx-perm-chip:hover {
    border-color: #b8d0ef;
    background: #f7fbff;
}

.vx-perm-chip .vx-perm-check {
    margin-top: 0.18rem;
    flex: 0 0 auto;
}

.vx-perm-chip-text {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
    min-width: 0;
}

.vx-perm-chip-name {
    color: #243b5f;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
}

.vx-perm-chip-code {
    color: #7085a9;
    font-size: 0.72rem;
    line-height: 1.2;
    word-break: break-word;
}

.alert {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(39, 52, 86, 0.08);
}

.vx-sidebar-backdrop {
    display: none;
}

.vx-auth-body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(145deg, #182542 0%, #1f2f54 45%, #142039 100%);
}

.vx-auth-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.4;
    pointer-events: none;
}

.vx-auth-shape-1 {
    width: 300px;
    height: 300px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, #2de8ff 0%, rgba(45, 232, 255, 0) 72%);
}

.vx-auth-shape-2 {
    width: 340px;
    height: 340px;
    bottom: -140px;
    left: -100px;
    background: radial-gradient(circle, #ffb057 0%, rgba(255, 176, 87, 0) 70%);
}

.vx-auth-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 48px rgba(5, 10, 26, 0.34);
}

.vx-auth-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 181, 213, 0.15);
    color: var(--vx-accent-deep);
    font-size: 1rem;
}

.vx-auth-brand-logo {
    width: min(100%, 360px);
    height: auto;
    max-height: 88px;
    object-fit: contain;
}

.vx-password-toggle {
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vx-password-toggle i {
    font-size: 1.2rem;
    line-height: 1;
}

.vx-register-card {
    overflow: hidden;
}

.vx-register-main-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.vx-register-subtitle {
    color: #627397;
    font-size: 0.93rem;
}

.vx-register-section {
    border: 1px solid #e4ebf8;
    border-radius: 14px;
    padding: 1rem;
    background: #ffffff;
}

.vx-register-section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.vx-register-step {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f3fbff;
    background: linear-gradient(135deg, #1ab5d5 0%, #1f9cc6 100%);
    box-shadow: 0 8px 16px rgba(31, 156, 198, 0.28);
}

.vx-register-help {
    display: inline-block;
    color: #6b7ea2;
    font-size: 0.8rem;
}

.vx-register-help code {
    color: #3c4f72;
    background: #eef3fb;
    border-radius: 6px;
    padding: 0.1rem 0.28rem;
}

.vx-register-back {
    min-width: 160px;
}

.vx-register-aside-wrap {
    border-left: 1px solid #e4ebf8;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
}

.vx-register-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1.15rem;
}

.vx-register-kicker {
    color: #3f6a95;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vx-register-plan {
    border: 1px solid #d6e4fb;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: 0 10px 20px rgba(46, 72, 116, 0.08);
}

.vx-register-plan strong {
    color: #24395b;
    display: block;
    font-size: 1rem;
}

.vx-register-plan-price {
    color: #1f6ea0;
    font-size: 0.88rem;
    font-weight: 600;
}

.vx-register-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #425677;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.vx-register-checklist i {
    color: #1ab5d5;
    font-size: 1rem;
}

@media (min-width: 992px) {
    .vx-body.vx-sidebar-collapsed .vx-sidebar {
        width: 92px;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .vx-body.vx-sidebar-collapsed .vx-main {
        margin-left: 92px;
    }

    .vx-body.vx-sidebar-collapsed .vx-brand {
        justify-content: center;
    }

    .vx-body.vx-sidebar-collapsed .vx-brand > div {
        display: none;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-link {
        justify-content: center;
        gap: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-label {
        display: none;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-link i {
        font-size: 1.25rem;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-link.vx-nav-sub {
        display: flex;
        margin-left: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-group {
        margin-bottom: 0.42rem;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-group-toggle {
        display: none;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-group-body {
        display: block !important;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-group-title {
        display: none;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-group-arrow {
        display: none;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-group-icon {
        font-size: 1.08rem;
        color: #c8d8f5;
    }

    .vx-body.vx-sidebar-collapsed .vx-nav-badge {
        position: absolute;
        top: 0.2rem;
        right: 0.2rem;
    }

    .vx-body.vx-sidebar-collapsed .vx-sidebar-user {
        display: none;
    }
}

.product-variant-builder {
    border-color: #d7e4fb !important;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.product-variant-tabs {
    border-bottom-color: #d7e4fb;
}

.product-variant-tabs .nav-link {
    border-color: #d7e4fb;
    color: #3a4d75;
    font-weight: 600;
}

.product-variant-tabs .nav-link.active {
    color: #1f63d7;
    background: #f4f8ff;
}

.product-variant-pane {
    border: 1px solid #d7e4fb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
}

.product-variant-attributes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-variant-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.product-variant-toolbar-item {
    min-width: 0;
}

.product-variant-toolbar-mode .form-label {
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: #334a74;
}

.product-variant-toolbar-mode .form-select,
.product-variant-toolbar-action .btn {
    min-height: 46px;
    border-radius: 1rem;
}

.product-variant-toolbar-action .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-variant-action-btn i {
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.product-variant-toolbar-meta {
    display: flex;
    justify-content: center;
}

.product-variant-columns-header {
    border: 1px solid #d8e5fa;
    border-radius: 0.8rem;
    padding: 0.55rem 0.65rem;
    background: #f5f9ff;
}

.product-variant-col-title {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4f658d;
}

.product-attribute-row .form-control-sm {
    min-height: calc(1.5em + 0.62rem + 2px);
}

.product-variant-rows {
    border: 1px dashed #d8e5fa;
    border-radius: 0.75rem;
    padding: 0.65rem;
    background: #f9fbff;
}

.product-variant-row:last-child {
    margin-bottom: 0 !important;
}

.product-variant-row {
    align-items: flex-start;
}

.product-variant-row .product-variant-remove-row {
    min-height: 40px;
    height: 40px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-variation-attribute-selects .form-select {
    min-height: 40px;
}

.product-variant-name-preview {
    min-height: 1.2rem;
    font-size: 0.82rem;
}

.product-variant-combos-count {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
}

.vx-product-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #d4e0f7;
    width: fit-content;
    max-width: 100%;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.vx-product-type-icon {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.vx-product-type-meta {
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.13rem 0.42rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    opacity: 0.88;
}

.vx-product-type-chip.is-variable {
    color: #0a6f8f;
    background: linear-gradient(135deg, #e8f8ff 0%, #f0fbff 100%);
    border-color: #9fd8ec;
}

.vx-product-type-chip.is-variable .vx-product-type-icon {
    color: #0a6f8f;
    background: #d8f2ff;
}

.vx-product-type-chip.is-simple {
    color: #5b657a;
    background: #f5f8fd;
    border-color: #d4deef;
}

.vx-product-type-chip.is-simple .vx-product-type-icon {
    color: #5b657a;
    background: #e9eef8;
}

@media (max-width: 991.98px) {
    .product-variant-toolbar {
        grid-template-columns: 1fr;
    }

    .product-variant-toolbar-meta {
        justify-content: flex-start;
    }

    .product-variant-columns-header {
        display: none;
    }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    .vx-content .row > .col-md-1,
    .vx-content .row > .col-md-2,
    .vx-content .row > .col-md-3,
    .vx-content .row > .col-md-4,
    .vx-content .row > .col-md-5,
    .vx-content .row > .col-md-6 {
        width: 50%;
        flex: 0 0 auto;
    }

    .vx-content .row > .col-md-7,
    .vx-content .row > .col-md-8,
    .vx-content .row > .col-md-9,
    .vx-content .row > .col-md-10,
    .vx-content .row > .col-md-11,
    .vx-content .row > .col-md-12 {
        width: 100%;
        flex: 0 0 auto;
    }

    .vx-content .table-responsive .table {
        min-width: 680px;
    }
}

@media (max-width: 991.98px) {
    .vx-body.vx-mobile-sheet-open {
        overflow: hidden;
    }

    #vxSidebarToggle {
        display: inline-flex;
    }

    .vx-sidebar {
        width: min(84vw, 320px);
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .vx-main {
        margin-left: 0;
        padding: 0.7rem;
        padding-left: calc(0.7rem + env(safe-area-inset-left));
        padding-right: calc(0.7rem + env(safe-area-inset-right));
        padding-bottom: calc(94px + env(safe-area-inset-bottom));
    }

    .vx-topbar {
        padding: 0.75rem;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.55rem;
    }

    .vx-topbar-heading {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    .vx-topbar-actions {
        width: auto;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .vx-mobile-hide-top {
        display: none !important;
    }

    .vx-body.vx-sidebar-open .vx-sidebar {
        transform: translateX(0);
    }

    .vx-body.vx-sidebar-open .vx-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1020;
        display: block;
        background: rgba(10, 14, 23, 0.46);
    }

    .vx-pos-checkout-card {
        position: static;
        top: auto;
    }

    .vx-pos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        max-height: 52vh;
    }

    .vx-mobile-bubble-nav {
        position: fixed;
        left: max(0.62rem, env(safe-area-inset-left));
        right: max(0.62rem, env(safe-area-inset-right));
        bottom: max(0.62rem, env(safe-area-inset-bottom));
        z-index: 1085;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.34rem;
        padding: 0.48rem;
        border-radius: 1.2rem;
        border: 1px solid #d7e4f6;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        box-shadow: 0 14px 30px rgba(18, 42, 82, 0.16);
        animation: vx-mobile-nav-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .vx-mobile-bubble-item {
        position: relative;
        border: 0;
        border-radius: 0.92rem;
        min-height: 56px;
        background: transparent;
        color: #7a8cad;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        text-decoration: none;
        transition: transform 0.22s ease, color 0.2s ease;
        overflow: visible;
    }

    .vx-mobile-bubble-item i {
        width: 2.08rem;
        height: 2.08rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.08rem;
        line-height: 1;
        color: #7b8fb1;
        background: transparent;
        transition: all 0.2s ease;
    }

    .vx-mobile-bubble-item span {
        font-size: 0.66rem;
        font-weight: 600;
        line-height: 1;
        transition: color 0.2s ease;
    }

    .vx-mobile-bubble-item.is-active {
        color: #1f4f88;
        background: transparent;
        box-shadow: none;
        transform: translateY(-1px);
    }

    .vx-mobile-bubble-item.is-active i {
        color: #ffffff;
        background: linear-gradient(135deg, #5cc3ec 0%, #2a73d8 100%);
        box-shadow: 0 8px 16px rgba(52, 130, 221, 0.35);
        animation: vx-mobile-tab-pop 0.22s ease;
    }

    .vx-mobile-bubble-item.is-active span {
        color: #225385;
    }

    .vx-mobile-bubble-item:active {
        transform: translateY(1px) scale(0.98);
    }

    .vx-mobile-bubble-badge {
        position: absolute;
        top: 0.1rem;
        right: 0.12rem;
        min-width: 1.02rem;
        height: 1.02rem;
        padding: 0 0.22rem;
        border-radius: 999px;
        font-size: 0.56rem;
        font-weight: 700;
        color: #fff;
        background: #ef5f74;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 12px rgba(239, 95, 116, 0.35);
    }

    .vx-mobile-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1088;
        background: rgba(9, 18, 34, 0.44);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .vx-mobile-sheet {
        position: fixed;
        left: max(0.45rem, env(safe-area-inset-left));
        right: max(0.45rem, env(safe-area-inset-right));
        bottom: calc(76px + env(safe-area-inset-bottom));
        z-index: 1089;
        border: 1px solid #d3dff4;
        border-radius: 1.15rem;
        background: #ffffff;
        box-shadow: 0 20px 36px rgba(16, 39, 76, 0.24);
        transform: translateY(20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
        max-height: min(72vh, 560px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .vx-mobile-sheet::before {
        content: '';
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: #d9e5f8;
        align-self: center;
        margin-top: 0.48rem;
        margin-bottom: -0.1rem;
    }

    .vx-mobile-sheet-header {
        padding: 0.75rem 0.8rem 0.65rem;
        border-bottom: 1px solid #e1e9f8;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
    }

    .vx-mobile-sheet-header strong {
        display: block;
        font-size: 0.92rem;
        color: #223c63;
        line-height: 1.1;
    }

    .vx-mobile-sheet-header small {
        font-size: 0.68rem;
        color: #7a8cab;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .vx-mobile-sheet-close {
        width: 2rem;
        height: 2rem;
        border: 1px solid #cfdcf2;
        background: #f6f9ff;
        color: #40628e;
        border-radius: 0.65rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .vx-mobile-sheet-grid {
        padding: 0.72rem;
        overflow: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.52rem;
    }

    .vx-mobile-sheet-quick {
        padding: 0.68rem 0.72rem 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .vx-mobile-sheet-quick-link {
        min-height: 44px;
        border: 1px solid #d5e3f8;
        border-radius: 0.78rem;
        background: #f7faff;
        text-decoration: none;
        color: #29486f;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        font-size: 0.75rem;
        font-weight: 700;
        position: relative;
    }

    .vx-mobile-sheet-quick-link i {
        font-size: 1rem;
        color: #2f6cc8;
    }

    .vx-mobile-sheet-quick-link small {
        position: absolute;
        top: -0.26rem;
        right: -0.16rem;
        min-width: 1.02rem;
        height: 1.02rem;
        padding: 0 0.22rem;
        border-radius: 999px;
        background: #ef5f74;
        color: #fff;
        font-size: 0.56rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 12px rgba(239, 95, 116, 0.3);
    }

    .vx-mobile-sheet-item {
        border: 1px solid #d6e3f8;
        border-radius: 0.78rem;
        background: #f9fbff;
        color: #2a446b;
        text-decoration: none;
        min-height: 74px;
        padding: 0.55rem 0.58rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.08rem;
    }

    .vx-mobile-sheet-item i {
        font-size: 1rem;
        color: #2a6ed3;
    }

    .vx-mobile-sheet-item span {
        font-size: 0.75rem;
        font-weight: 700;
        line-height: 1.1;
        color: #284363;
    }

    .vx-mobile-sheet-item small {
        font-size: 0.62rem;
        color: #778baa;
        line-height: 1.1;
    }

    .vx-mobile-sheet-footer {
        border-top: 1px solid #e3ebfa;
        padding: 0.62rem 0.72rem calc(0.72rem + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.48rem;
    }

    .vx-mobile-sheet-profile,
    .vx-mobile-sheet-logout {
        width: 100%;
        border: 1px solid #cfe0f7;
        border-radius: 0.72rem;
        min-height: 40px;
        background: #f7fbff;
        color: #2f527e;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.34rem;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .vx-mobile-sheet-logout {
        border-color: #efc0ca;
        background: #fff6f7;
        color: #cc5068;
    }

    .vx-body.vx-mobile-sheet-open .vx-mobile-sheet-backdrop {
        opacity: 1;
        pointer-events: auto;
        display: block;
    }

    .vx-body.vx-mobile-sheet-open .vx-mobile-sheet {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
        display: flex;
        animation: vx-mobile-sheet-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (max-width: 767.98px) {
    .vx-main {
        padding-top: 0.55rem;
        padding-left: calc(0.55rem + env(safe-area-inset-left));
        padding-right: calc(0.55rem + env(safe-area-inset-right));
        padding-bottom: calc(114px + env(safe-area-inset-bottom));
    }

    .vx-topbar {
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }

    .vx-page-title {
        font-size: 1rem;
    }

    .vx-page-subtitle {
        display: none;
    }

    .vx-topbar-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .vx-topbar-actions > * {
        width: auto;
        max-width: 100%;
    }

    .vx-topbar-actions form {
        width: auto;
    }

    .vx-topbar-actions .vx-topbar-action {
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .vx-topbar-dropdown {
        width: 100%;
    }

    .vx-topbar-dropdown .dropdown-toggle {
        width: 100%;
    }

    .vx-topbar-notifications {
        width: 100%;
    }

    .vx-notify-btn {
        width: 100%;
    }

    .vx-notify-menu {
        width: min(100vw - 1.5rem, 360px);
    }

    .vx-mobile-sheet-grid {
        grid-template-columns: 1fr;
    }

    .vx-mobile-sheet-quick {
        grid-template-columns: 1fr;
    }

    .vx-content .card {
        border-radius: 14px;
    }

    .vx-content .card .card-body {
        padding: 0.95rem;
    }

    .vx-content .table-responsive .table {
        min-width: 620px;
    }

    .vx-sales-table {
        min-width: 760px;
    }

    .vx-sales-filters {
        padding: 0.68rem;
    }

    .vx-receivables-filters {
        padding: 0.68rem;
    }

    .vx-receivables-control-client {
        min-width: 220px;
        flex-basis: 100%;
    }

    .vx-receivables-control {
        min-width: 138px;
        flex: 1 1 145px;
    }

    .vx-receivables-actions {
        width: 100%;
        margin-left: 0;
    }

    .vx-receivables-export-group {
        width: 100%;
    }

    .vx-receivables-export-group .vx-receivables-btn {
        flex: 1 1 0;
    }

    .vx-users-filters {
        padding: 0.62rem;
    }

    .vx-users-search {
        min-width: 220px;
        flex-basis: 100%;
    }

    .vx-users-filter {
        min-width: 138px;
        flex: 1 1 145px;
    }

    .vx-role-panel-toolbar {
        gap: 0.35rem;
    }

    .vx-role-search {
        min-width: 220px;
        flex-basis: 100%;
    }

    .vx-perm-grid {
        grid-template-columns: 1fr;
    }

    .vx-branch-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .vx-branch-head-meta {
        width: 100%;
    }

    .vx-sales-search-group {
        min-width: 220px;
        flex-basis: 100%;
    }

    .vx-sales-filter-control {
        min-width: 138px;
        flex: 1 1 145px;
    }

    .vx-sales-pagination .page-link {
        min-width: 44px;
        height: 36px;
        font-size: 1.3rem;
    }

    .vx-sales-pagination .page-link i {
        font-size: 1.05rem;
    }

    .vx-sales-toolbar-row .btn {
        flex: 0 0 auto;
    }

    .vx-sales-actions {
        justify-content: flex-start;
    }

    .vx-sales-primary-actions {
        display: none;
    }

    .vx-sales-action-btn {
        width: 1.9rem;
        height: 1.9rem;
    }

    .vx-oc-table {
        min-width: 0;
    }

    .purchase-grand-total {
        font-size: 1.22rem;
    }

    .vx-purchase-entry-table {
        min-width: 1040px;
    }

    .vx-purchase-entry-table td .form-control,
    .vx-purchase-entry-table td .form-select {
        min-height: 48px;
        font-size: 0.9rem;
    }

    .vx-purchase-entry-table .purchase-remove-row.vx-purchase-remove-row {
        width: 48px;
        min-width: 48px;
        height: 48px;
        font-size: 1.18rem;
    }

    .vx-branch-search {
        width: 100%;
    }

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

    .vx-content .table-responsive .table th,
    .vx-content .table-responsive .table td {
        white-space: nowrap;
    }

    .vx-pos-controls {
        padding: 0.6rem;
    }

    .vx-pos-client-label-row {
        flex-wrap: wrap;
    }

    .vx-pos-new-customer-btn {
        width: 100%;
        justify-content: center;
    }

    .vx-pos-discount-col .vx-pos-discount-group {
        min-width: 0;
    }

    .vx-pos-discount-input {
        min-width: 0;
    }

    .vx-pos-category-btn {
        font-size: 0.8rem;
        padding: 0.38rem 0.68rem;
    }

    .vx-pos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        max-height: 48vh;
    }

    .vx-pos-product-name {
        font-size: 0.84rem;
    }

    .vx-pos-checkout-list {
        max-height: 42vh;
        padding: 0.45rem;
    }

    .vx-pos-checkout-actions {
        grid-template-columns: 30px 56px 30px 1fr auto;
        gap: 0.3rem;
    }

    .vx-pos-summary-total strong {
        font-size: 1rem;
    }

    .sa-plan-table {
        min-width: 900px;
    }

    .sa-sub-table {
        min-width: 900px;
    }

    .vx-auth-shape {
        display: none;
    }

    .vx-auth-body .container {
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
    }

    .vx-auth-body .row.min-vh-100 {
        min-height: auto !important;
    }

    .vx-register-pane {
        padding: 1rem;
    }

    .vx-register-aside-wrap {
        border-left: 0;
        border-top: 1px solid #e4ebf8;
    }

    .vx-register-aside {
        padding: 1rem;
    }

    .vx-auth-brand-logo {
        width: min(100%, 260px);
        max-height: 70px;
    }
}

@keyframes vx-mobile-sheet-in {
    from {
        transform: translateY(22px) scale(0.985);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes vx-mobile-nav-in {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes vx-mobile-tab-pop {
    0% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 575.98px) {
    .vx-topbar-actions {
        grid-template-columns: 1fr;
    }

    .vx-profile-menu-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .vx-profile-meta strong,
    .vx-profile-meta small {
        max-width: none;
    }

    .form-control,
    .form-select,
    textarea {
        font-size: 16px;
    }

    .vx-register-section {
        padding: 0.85rem;
    }

    .vx-register-back,
    .vx-register-form .btn-primary {
        width: 100%;
    }
}

/* Integraciones marketplace */
.vx-integrations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

@media (min-width: 900px) {
    .vx-integrations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1380px) {
    .vx-integrations-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1820px) {
    .vx-integrations-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.vx-integration-card {
    border-radius: 16px;
    border: 1px solid #d7e3f5;
    background: #f7f9fe;
    box-shadow: 0 8px 18px rgba(23, 46, 86, 0.08);
    overflow: hidden;
    min-height: 304px;
}

.vx-integration-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.6rem;
    padding: 1.05rem;
}

.vx-integration-card-main {
    background: #f7f9fe;
    box-shadow: 0 10px 20px rgba(20, 42, 89, 0.11);
}

.vx-integration-card-coming {
    background: #f7f9fe;
}

.vx-integration-logo {
    width: 120px;
    height: 90px;
    min-width: 120px;
    min-height: 90px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.62rem;
    letter-spacing: 0.02em;
}

.vx-integration-logo-image {
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 0;
    box-shadow: 0 7px 16px rgba(25, 43, 79, 0.16);
}

.vx-integration-logo-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: #ffffff;
}

.vx-integration-logo-bold {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.vx-integration-logo-muted {
    box-shadow: 0 8px 16px rgba(66, 85, 127, 0.13);
}

.vx-integration-logo-sm {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1rem;
}

.vx-integration-metric {
    border: 1px solid #cfdcf0;
    border-radius: 13px;
    padding: 0.65rem 0.75rem 0.6rem;
    background: #ffffff;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vx-integration-metric small {
    display: block;
    color: #7f8fb0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    line-height: 1.2;
}

.vx-integration-metric strong {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.98rem;
    line-height: 1.15;
    color: #1e3560;
}

.vx-integration-card .text-muted {
    line-height: 1.25;
}

.vx-integration-description {
    font-size: 0.9rem;
    line-height: 1.2;
}

.vx-integration-badges .badge {
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d3a55;
    background: #f3f6fb !important;
    border-color: #dde5f1 !important;
    padding: 0.28rem 0.58rem;
}

.vx-integration-state {
    border-radius: 8px;
    padding: 0.26rem 0.58rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.vx-integration-state.is-active {
    background: #218f53;
    color: #ffffff;
}

.vx-integration-state.is-inactive {
    background: #6c7a91;
    color: #ffffff;
}

.vx-integration-state.is-soon {
    background: #7a8698;
    color: #ffffff;
}

.vx-integration-integrate-btn {
    min-width: 108px;
    min-height: 40px;
    border-radius: 11px;
    padding: 0.44rem 0.9rem;
    font-size: 1.02rem;
    font-weight: 700;
    background: linear-gradient(135deg, #28c0da 0%, #0e8fb8 100%);
    border-color: transparent;
    box-shadow: 0 9px 16px rgba(24, 153, 199, 0.26);
}

.vx-integration-integrate-btn:hover,
.vx-integration-integrate-btn:focus-visible {
    background: linear-gradient(135deg, #25b8d1 0%, #0d86ae 100%);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(24, 153, 199, 0.28);
}

.vx-integration-integrate-btn.vx-integration-integrate-btn-disabled,
.vx-integration-integrate-btn.vx-integration-integrate-btn-disabled:hover,
.vx-integration-integrate-btn.vx-integration-integrate-btn-disabled:focus-visible {
    background: #f7f8fb;
    color: #8b96a8;
    border: 1px solid #c8d3e5;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.vx-bold-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border: 1px solid #d8e5f8;
    border-radius: 999px;
    background: #f8fbff;
}

.vx-bold-mode-btn {
    border: 1px solid #cddcf4;
    background: #ffffff;
    color: #29456e;
    border-radius: 999px;
    padding: 0.48rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.18s ease;
}

.vx-bold-mode-btn:hover {
    border-color: #b2caed;
    background: #eef5ff;
    color: #1d3f6d;
}

.vx-bold-mode-btn.is-active {
    border-color: #2f4d98;
    background: linear-gradient(135deg, #4a5ba8 0%, #2f4d98 100%);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(47, 77, 152, 0.25);
}

.vx-integration-card .btn {
    min-width: 108px;
}

.vx-integration-modal .modal-content {
    border-radius: 16px;
}

.vx-integration-modal .modal-header,
.vx-integration-modal .modal-footer {
    border-color: #e6edf8;
}

@media (max-width: 991.98px) {
    .vx-integration-logo {
        width: 104px;
        height: 78px;
    }

    .vx-integration-metric {
        padding: 0.58rem 0.68rem;
    }

    .vx-integration-card {
        min-height: 286px;
    }
}

@media (max-width: 575.98px) {
    .vx-integration-logo {
        width: 90px;
        height: 68px;
        border-radius: 16px;
        font-size: 1.28rem;
    }

    .vx-integration-card .btn {
        width: 100%;
    }
}
