/* =============================================
   InventPro - Velzon Theme
   Tema inspirado en la direccion visual de Velzon:
   dashboard admin denso, sidebar oscuro, topbar clara y Poppins.
   ============================================= */

body.ip-theme-velzon {
    --ip-primary: #405189;
    --ip-primary-dark: #364574;
    --ip-primary-light: #eef2ff;
    --ip-danger: #f06548;
    --ip-danger-bg: #fde8e4;
    --ip-success: #0ab39c;
    --ip-warning: #f7b84b;
    --ip-text: #212529;
    --ip-text-muted: #878a99;
    --ip-text-hint: #adb5bd;
    --ip-bg: #f3f3f9;
    --ip-bg-page: #f3f3f9;
    --ip-white: #ffffff;
    --ip-border: #e9ebec;
    --ip-radius-sm: 4px;
    --ip-radius-md: 4px;
    --ip-radius-lg: 4px;
    --ip-radius-xl: 4px;
    --ip-shadow-sm: 0 1px 2px rgba(56,65,74,0.15);
    --ip-shadow-md: 0 3px 6px rgba(56,65,74,0.12);
    --ip-shadow-lg: 0 10px 24px rgba(56,65,74,0.16);
    --ip-font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-family: var(--ip-font);
    font-size: 13px;
    background: var(--ip-bg-page);
}

body.ip-theme-velzon h1,
body.ip-theme-velzon h2,
body.ip-theme-velzon h3,
body.ip-theme-velzon h4,
body.ip-theme-velzon h5 {
    font-weight: 600;
}

body.ip-theme-velzon .ip-navbar {
    height: 70px;
    grid-template-columns: 280px minmax(0, 1fr) auto;
    padding: 0 1rem 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    color: var(--ip-text);
    border-bottom: 1px solid #dfe3ec;
    box-shadow: 0 2px 10px rgba(56,65,74,0.10);
}

body.ip-theme-velzon .ip-navbar > .d-flex {
    height: 70px;
    width: 280px;
    min-width: 280px;
    margin-left: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    background: #405189;
}

body.ip-theme-velzon .ip-navbar-brand {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

body.ip-theme-velzon .ip-hamburger span {
    background: #ffffff;
}

body.ip-theme-velzon .ip-navbar-company {
    color: var(--ip-text);
    border-left: 0;
    padding: 8px 10px;
}

body.ip-theme-velzon .ip-navbar-company-main {
    color: #343a40;
    font-size: 11px;
    font-weight: 700;
}

body.ip-theme-velzon .ip-navbar-company-sub {
    color: var(--ip-text-muted);
    font-size: 11px;
}

body.ip-theme-velzon .ip-navbar-company-ruc {
    color: var(--ip-primary);
    background: #eef2ff;
    border-color: #dce3ff;
    border-radius: 4px;
}

body.ip-theme-velzon .ip-navbar-company-trade::before {
    color: #ced4da;
}

body.ip-theme-velzon .ip-navbar-user {
    gap: 12px;
}

body.ip-theme-velzon .ip-navbar-username {
    color: #495057;
    font-weight: 500;
}

body.ip-theme-velzon .ip-avatar {
    width: 34px;
    height: 34px;
    background: #eef2ff;
    color: var(--ip-primary);
    font-weight: 700;
}

body.ip-theme-velzon .ip-theme-switcher {
    height: 38px;
    gap: 8px;
    padding: 4px 6px 4px 12px;
    background: #f3f6f9;
    border: 1px solid var(--ip-border);
    border-radius: 4px;
}

body.ip-theme-velzon .ip-theme-switcher-title {
    display: inline;
    color: #878a99;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

body.ip-theme-velzon .ip-theme-switcher-label {
    display: none;
}

body.ip-theme-velzon .ip-theme-switcher-select {
    height: 30px;
    min-width: 108px;
    color: #495057;
    background-color: #ffffff;
    border-color: #ced4da;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

body.ip-theme-velzon .ip-theme-switcher-btn {
    height: 30px;
    padding: 0 12px;
    color: #ffffff;
    background: var(--ip-primary);
    border-radius: 4px;
}

body.ip-theme-velzon .ip-sidebar {
    top: 70px;
    height: calc(100vh - 70px);
    width: 280px;
    background: #405189;
    border-right: 0;
    color: rgba(255,255,255,0.72);
}

body.ip-theme-velzon .ip-sidebar-user {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem;
}

body.ip-theme-velzon .ip-sidebar-avatar {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
}

body.ip-theme-velzon .ip-sidebar-name {
    color: #ffffff;
    font-weight: 600;
}

body.ip-theme-velzon .ip-sidebar-role,
body.ip-theme-velzon .ip-nav-section-title {
    color: rgba(255,255,255,0.48);
}

body.ip-theme-velzon .ip-nav-section-title {
    padding: 14px 1.25rem 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
}

body.ip-theme-velzon .ip-nav-item {
    margin: 0 10px 2px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.72);
    border-left: 0;
    border-radius: 4px;
}

body.ip-theme-velzon .ip-nav-item:hover,
body.ip-theme-velzon .ip-nav-item.expanded {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

body.ip-theme-velzon .ip-nav-chevron {
    color: rgba(255,255,255,0.45);
}

body.ip-theme-velzon .ip-nav-sub {
    margin: 0 10px 7px;
    background: rgba(0,0,0,0.08);
    border: 0;
    border-radius: 4px;
}

body.ip-theme-velzon .ip-nav-sub-item {
    margin: 1px 6px;
    padding: 8px 10px 8px 22px;
    color: rgba(255,255,255,0.62);
    border-left: 0;
    border-radius: 4px;
}

body.ip-theme-velzon .ip-nav-sub-item:hover,
body.ip-theme-velzon .ip-nav-sub-item.active {
    color: #ffffff;
    background: rgba(255,255,255,0.10);
    font-weight: 600;
}

body.ip-theme-velzon .ip-sidebar-footer {
    background: rgba(0,0,0,0.10);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem;
}

body.ip-theme-velzon .ip-sidebar-footer .ip-btn-danger {
    min-height: 36px;
    background: rgba(240,101,72,0.14);
    color: #ffb8aa;
    border: 1px solid rgba(240,101,72,0.36);
}

body.ip-theme-velzon .ip-sidebar-footer .ip-btn-danger:hover {
    background: #f06548;
    color: #ffffff;
}

body.ip-theme-velzon .ip-sidebar-powered,
body.ip-theme-velzon .ip-sidebar-powered a {
    color: rgba(255,255,255,0.76);
}

body.ip-theme-velzon .ip-main {
    height: calc(100vh - 70px);
    margin-top: 70px !important;
    padding: 1.15rem 1rem 1rem;
    background: var(--ip-bg-page);
}

body.ip-theme-velzon .ip-page-header {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0.35rem 0;
    margin-bottom: 0.85rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.ip-theme-velzon .ip-page-title {
    font-size: 17px;
    font-weight: 600;
    color: #343a40;
}

body.ip-theme-velzon .ip-card {
    background: #ffffff;
    border: 1px solid var(--ip-border);
    border-radius: 4px;
    box-shadow: var(--ip-shadow-sm);
    padding: 1rem;
}

body.ip-theme-velzon .vd-topbar,
body.ip-theme-velzon .vf-topbar {
    min-height: 44px;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--ip-border);
    border-radius: 4px;
    box-shadow: var(--ip-shadow-sm);
}

body.ip-theme-velzon .vd-topbar-center,
body.ip-theme-velzon .vf-topbar-center {
    gap: 0.5rem;
}

body.ip-theme-velzon .vd-topbar-right,
body.ip-theme-velzon .vf-topbar-right {
    gap: 0.45rem;
}

body.ip-theme-velzon .vd-topbar .ip-btn,
body.ip-theme-velzon .vf-topbar .ip-btn {
    min-height: 34px;
}

body.ip-theme-velzon #btnGuardar,
body.ip-theme-velzon .vd-topbar-right .ip-btn-primary,
body.ip-theme-velzon .vf-topbar-right .ip-btn-primary {
    min-width: 82px;
    background: #405189;
    border: 1px solid #405189;
    box-shadow: 0 2px 4px rgba(64,81,137,0.18);
}

body.ip-theme-velzon #btnGuardar:hover,
body.ip-theme-velzon .vd-topbar-right .ip-btn-primary:hover,
body.ip-theme-velzon .vf-topbar-right .ip-btn-primary:hover {
    background: #364574;
}

body.ip-theme-velzon .ip-card.card-filtros {
    padding: 0.75rem 1rem;
}

body.ip-theme-velzon .vj-fcard-header {
    margin-bottom: 0.45rem;
}

body.ip-theme-velzon .vj-fcard-title {
    color: #878a99;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

body.ip-theme-velzon .filtros-row {
    align-items: flex-end;
    gap: 0.75rem;
}

body.ip-theme-velzon .ip-filter-grid {
    gap: 0.5rem 0.75rem;
}

body.ip-theme-velzon .filtros-btns {
    flex-direction: row;
    gap: 0.5rem;
    min-width: auto;
    align-items: flex-end;
}

body.ip-theme-velzon .filtros-btns .w100 {
    width: auto;
}

body.ip-theme-velzon .ip-label,
body.ip-theme-velzon .label-upper {
    color: #405189;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

body.ip-theme-velzon .form-grid-3 {
    gap: 0.7rem;
}

body.ip-theme-velzon .card-filtros .ip-label {
    margin-bottom: 3px;
}

body.ip-theme-velzon .ip-input,
body.ip-theme-velzon .ip-select,
body.ip-theme-velzon .ip-textarea {
    min-height: 37px;
    padding: 7px 10px;
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

body.ip-theme-velzon textarea.ip-input,
body.ip-theme-velzon .ip-textarea {
    min-height: 76px;
}

body.ip-theme-velzon .ip-input:focus,
body.ip-theme-velzon .ip-select:focus,
body.ip-theme-velzon .ip-textarea:focus {
    border-color: #a8b3d5;
    box-shadow: 0 0 0 0.2rem rgba(64,81,137,0.16);
}

body.ip-theme-velzon .ip-btn {
    border-radius: 4px;
    font-weight: 600;
}

body.ip-theme-velzon .ip-btn-sm {
    min-height: 37px;
    padding: 8px 13px;
    font-size: 12px;
}

body.ip-theme-velzon .card-filtros .ip-btn-sm {
    min-height: 38px;
}

body.ip-theme-velzon .ip-btn-primary {
    background: var(--ip-primary);
}

body.ip-theme-velzon .ip-btn-primary:hover {
    background: var(--ip-primary-dark);
}

body.ip-theme-velzon .ip-btn-ghost {
    color: #343a40;
    background: #f3f6f9;
    border: 1px solid #e9ebec;
}

body.ip-theme-velzon .ip-btn-ghost:hover {
    color: var(--ip-primary);
    background: #eef2ff;
}

body.ip-theme-velzon .vj-table-actions .ip-btn,
body.ip-theme-velzon .vj-table-actions button,
body.ip-theme-velzon .vj-table-actions a {
    min-width: 38px;
    min-height: 34px;
    color: #405189;
    background: #f3f6f9;
    border: 1px solid #e9ebec;
}

body.ip-theme-velzon .vj-table-actions .ip-input {
    min-height: 34px;
}

body.ip-theme-velzon .vj-table-actions svg,
body.ip-theme-velzon .vj-table-actions i {
    color: #405189;
}

body.ip-theme-velzon .vj-actions {
    gap: 0.4rem;
}

body.ip-theme-velzon .vj-actions .ip-btn {
    min-width: 68px;
}

body.ip-theme-velzon .ip-table {
    font-size: 13px;
}

body.ip-theme-velzon .ip-table th {
    padding: 10px 12px;
    color: #878a99;
    background: #f3f6f9;
    border-bottom: 1px solid var(--ip-border);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

body.ip-theme-velzon .ip-table td {
    padding: 10px 12px;
    color: #495057;
    border-bottom: 1px solid var(--ip-border);
}

body.ip-theme-velzon .ip-table tr:hover td {
    background: #f8f9fa;
}

body.ip-theme-velzon .vj-table-header {
    padding: 0.75rem 1rem;
    background: #ffffff;
}

body.ip-theme-velzon .vj-result-count {
    color: #878a99;
    font-weight: 500;
}

body.ip-theme-velzon .ip-badge,
body.ip-theme-velzon .vj-status,
body.ip-theme-velzon .vf-pill,
body.ip-theme-velzon .vd-pill {
    border-radius: 30px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
}

body.ip-theme-velzon .vj-status,
body.ip-theme-velzon .vf-pill-info,
body.ip-theme-velzon .vd-pill-info {
    color: var(--ip-primary);
    background: #eef2ff;
}

body.ip-theme-velzon .vj-status-off {
    color: var(--ip-danger);
    background: var(--ip-danger-bg);
}

body.ip-theme-velzon .ip-alert {
    border-radius: 4px;
}

body.ip-theme-velzon .ip-tabs-nav {
    border-bottom-color: #e9ebec;
    margin-bottom: 0.7rem;
}

body.ip-theme-velzon .ip-tab-link,
body.ip-theme-velzon .ip-tab-btn {
    color: #878a99;
    font-weight: 500;
    padding-bottom: 0.6rem;
}

body.ip-theme-velzon .ip-tab-link.active,
body.ip-theme-velzon .ip-tab-btn.active {
    color: var(--ip-primary);
    border-bottom-color: var(--ip-primary);
    border-bottom-width: 2px;
    font-weight: 600;
}

body.ip-theme-velzon .vd-pill,
body.ip-theme-velzon .vf-pill {
    min-height: 24px;
    padding: 4px 10px;
}

body.ip-theme-velzon .vd-pill-ok,
body.ip-theme-velzon .vf-pill-ok {
    color: #099885;
    background: rgba(10,179,156,0.12);
}

body.ip-theme-velzon .vd-pill-warn,
body.ip-theme-velzon .vf-pill-warn {
    color: #c27a13;
    background: rgba(247,184,75,0.16);
}

@media (min-width: 768px) {
    body.ip-theme-velzon .ip-main {
        margin-left: 280px;
    }
}

@media (max-width: 767px) {
    body.ip-theme-velzon .ip-navbar {
        height: 58px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 0 1rem;
    }

    body.ip-theme-velzon .ip-navbar > .d-flex {
        height: 58px;
        width: auto;
        min-width: 0;
        background: transparent;
    }

    body.ip-theme-velzon .ip-navbar-brand {
        color: var(--ip-text);
    }

    body.ip-theme-velzon .ip-hamburger span {
        background: var(--ip-text);
    }

    body.ip-theme-velzon .ip-sidebar {
        top: 58px;
        height: calc(100vh - 58px);
    }

    body.ip-theme-velzon .ip-main {
        height: calc(100vh - 58px);
        margin-top: 58px !important;
    }

    body.ip-theme-velzon .filtros-row {
        align-items: stretch;
    }

    body.ip-theme-velzon .filtros-btns,
    body.ip-theme-velzon .filtros-btns .w100 {
        width: 100%;
    }
}

/* =============================================
   Velzon Pro polish
   ============================================= */

body.ip-theme-velzon {
    --ip-bg: #f4f6fb;
    --ip-bg-page: #f4f6fb;
    --ip-radius-sm: 6px;
    --ip-radius-md: 8px;
    --ip-radius-lg: 12px;
    --ip-radius-xl: 16px;
    --ip-shadow-sm: 0 3px 10px rgba(15,23,42,0.06);
    --ip-shadow-md: 0 10px 30px rgba(15,23,42,0.08);
    --ip-shadow-lg: 0 18px 48px rgba(15,23,42,0.14);
    background: radial-gradient(circle at top right, rgba(64,81,137,0.08), transparent 34rem), var(--ip-bg-page);
}

body.ip-theme-velzon .ip-navbar {
    background: rgba(255,255,255,0.94);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    backdrop-filter: blur(10px);
}

body.ip-theme-velzon .ip-navbar > .d-flex {
    background: linear-gradient(135deg, #405189 0%, #2f3f73 100%);
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.12);
}

body.ip-theme-velzon .ip-sidebar {
    background: linear-gradient(180deg, #405189 0%, #283763 52%, #1f2c52 100%);
    box-shadow: 10px 0 30px rgba(15,23,42,0.12);
}

body.ip-theme-velzon .ip-sidebar-user {
    background: rgba(255,255,255,0.07);
}

body.ip-theme-velzon .ip-nav-item {
    margin: 2px 12px;
    border-radius: 8px;
}

body.ip-theme-velzon .ip-nav-item:hover,
body.ip-theme-velzon .ip-nav-item.expanded {
    background: rgba(255,255,255,0.12);
    box-shadow: inset 3px 0 0 rgba(255,255,255,0.85);
}

body.ip-theme-velzon .ip-nav-sub {
    margin: 4px 12px 8px;
    padding: 4px 0;
    background: rgba(8,14,32,0.18);
    border: 0 !important;
    border-radius: 10px;
    box-shadow: none !important;
}

body.ip-theme-velzon .ip-nav-sub-item {
    margin: 2px 6px;
    padding: 8px 10px 8px 22px;
    border: 0 !important;
    border-radius: 8px;
    box-shadow: none !important;
    outline: 0;
}

body.ip-theme-velzon .ip-nav-sub-item:hover,
body.ip-theme-velzon .ip-nav-sub-item.active {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0;
}

body.ip-theme-velzon .ip-sidebar-footer {
    background: rgba(8,14,32,0.22);
}

body.ip-theme-velzon .ip-main {
    background: linear-gradient(180deg, rgba(64,81,137,0.04) 0%, transparent 150px), var(--ip-bg-page);
}

body.ip-theme-velzon .ip-page-header {
    min-height: 46px;
    padding: 0.65rem 0.9rem;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(223,227,236,0.9);
    border-radius: 12px;
    box-shadow: var(--ip-shadow-sm);
}

body.ip-theme-velzon .ip-page-title {
    position: relative;
    padding-left: 0.85rem;
    font-weight: 700;
    color: #2f3f73;
}

body.ip-theme-velzon .ip-page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #405189, #0ab39c);
    transform: translateY(-50%);
}

body.ip-theme-velzon .ip-card {
    border-radius: 12px;
    box-shadow: var(--ip-shadow-md);
}

body.ip-theme-velzon .ip-card.card-filtros {
    padding: 0.85rem 1rem;
    border-color: rgba(64,81,137,0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%);
    box-shadow: 0 12px 32px rgba(15,23,42,0.07);
}

body.ip-theme-velzon .vj-fcard-title {
    color: #405189;
}

body.ip-theme-velzon .ip-input,
body.ip-theme-velzon .ip-select,
body.ip-theme-velzon .ip-textarea {
    border-radius: 8px;
}

body.ip-theme-velzon .ip-btn {
    border-radius: 8px;
}

body.ip-theme-velzon .ip-btn-ghost {
    border-color: #e3e8f2;
}

body.ip-theme-velzon .vj-table-header {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border-radius: 12px 12px 0 0;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-bottom-color: #e5e9f2;
}

body.ip-theme-velzon .vj-result-count {
    color: #667085;
    font-weight: 500;
}

body.ip-theme-velzon .vj-search-input {
    min-height: 34px;
    min-width: 230px;
    border-color: #dde3ee;
    border-radius: 8px;
    background: #f8fafc;
}

body.ip-theme-velzon .vj-search-input:focus {
    background: #ffffff;
    border-color: #a8b3d5;
    box-shadow: 0 0 0 0.2rem rgba(64,81,137,0.12);
}

body.ip-theme-velzon .vj-icon-btn {
    border-radius: 8px;
}

body.ip-theme-velzon .ip-table-wrap {
    border-radius: 0 0 12px 12px;
}

body.ip-theme-velzon .ip-table tbody tr {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

body.ip-theme-velzon .ip-table tbody tr:hover td {
    background: #f9fbff;
}

body.ip-theme-velzon .ip-table tbody tr:hover {
    box-shadow: inset 3px 0 0 rgba(64,81,137,0.45);
}

body.ip-theme-velzon .vj-actions,
body.ip-theme-velzon .vj-row-actions {
    opacity: 0;
    transform: translateX(6px);
}

body.ip-theme-velzon .vj-actions .ip-btn,
body.ip-theme-velzon .vj-row-actions .ip-btn {
    min-height: 32px;
    min-width: 64px;
    padding: 6px 11px;
    border-radius: 8px;
    background: #eef2ff;
    border-color: #dfe6ff;
    color: #405189;
}

body.ip-theme-velzon .vj-actions .ip-btn:hover,
body.ip-theme-velzon .vj-row-actions .ip-btn:hover {
    background: #405189;
    border-color: #405189;
    color: #ffffff;
}

body.ip-theme-velzon .vj-actions button.ip-btn:not(.ip-btn-primary),
body.ip-theme-velzon .vj-row-actions button.ip-btn:not(.ip-btn-primary) {
    background: #f8f9fa;
    border: 1px solid #e9ebec;
    color: #495057;
}

body.ip-theme-velzon .vj-actions button.ip-btn:not(.ip-btn-primary):hover,
body.ip-theme-velzon .vj-row-actions button.ip-btn:not(.ip-btn-primary):hover {
    background: #fff1ef;
    border-color: #ffd7cf;
    color: #d94d31;
}

body.ip-theme-velzon .ip-loading-row {
    min-height: 48px;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
    color: #667085;
}

body.ip-theme-velzon .vf-loading-overlay,
body.ip-theme-velzon .vf-submit-loading {
    background: rgba(244,246,251,0.78);
    backdrop-filter: blur(4px);
}

body.ip-theme-velzon .vf-loading-card {
    min-width: 220px;
    border-radius: 14px;
    border-color: rgba(64,81,137,0.14);
    box-shadow: var(--ip-shadow-lg);
}

body.ip-theme-velzon .vf-loading-msg {
    color: #405189;
    font-weight: 600;
}

body.ip-theme-velzon .vd-topbar,
body.ip-theme-velzon .vf-topbar {
    border-radius: 12px;
    border-color: rgba(64,81,137,0.14);
    box-shadow: var(--ip-shadow-sm);
}

body.ip-theme-velzon .vf-grid-header,
body.ip-theme-velzon .vj-table-header {
    color: #667085;
}

@media (hover: none), (pointer: coarse) {
    body.ip-theme-velzon .vj-actions,
    body.ip-theme-velzon .vj-row-actions {
        opacity: 1;
        transform: none;
    }
}

body.ip-theme-velzon .ip-table th {
    background: #f6f8fc;
}

/* Catalog filters: keep Transportistas/Vehiculos/Rutas aligned with Viajes y Facturacion. */
body.ip-theme-velzon .ip-card.card-filtros {
    padding: 0.85rem 1rem !important;
}

body.ip-theme-velzon .ip-card.card-filtros .vj-fcard-header {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 0.65rem !important;
}

body.ip-theme-velzon .ip-card.card-filtros .vj-fcard-title {
    color: #405189 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
}

body.ip-theme-velzon .ip-card.card-filtros .filtros-row {
    align-items: end !important;
    display: grid !important;
    gap: 0.85rem !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
}

body.ip-theme-velzon .ip-card.card-filtros .ip-filter-grid {
    display: grid !important;
    flex: initial !important;
    gap: 0.55rem 0.75rem !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    margin-bottom: 0 !important;
}

body.ip-theme-velzon .ip-card.card-filtros .ip-field {
    margin-bottom: 0 !important;
}

body.ip-theme-velzon .ip-card.card-filtros .ip-label {
    color: #2f3f73 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    margin-bottom: 0.25rem !important;
}

body.ip-theme-velzon .ip-card.card-filtros .ip-input,
body.ip-theme-velzon .ip-card.card-filtros .ip-select {
    font-size: 13px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
}

body.ip-theme-velzon .ip-card.card-filtros .filtros-btns {
    align-items: end !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    justify-content: flex-end !important;
    min-width: auto !important;
}

body.ip-theme-velzon .ip-card.card-filtros .filtros-btns .w100,
body.ip-theme-velzon .ip-card.card-filtros .filtros-btns .ip-btn {
    min-width: 78px !important;
    width: auto !important;
}

@media (max-width: 760px) {
    body.ip-theme-velzon .ip-card.card-filtros .filtros-row {
        grid-template-columns: 1fr !important;
    }

    body.ip-theme-velzon .ip-card.card-filtros .filtros-btns {
        align-items: stretch !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    body.ip-theme-velzon .ip-card.card-filtros .filtros-btns .w100,
    body.ip-theme-velzon .ip-card.card-filtros .filtros-btns .ip-btn {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    body.ip-theme-velzon {
        overflow-x: hidden !important;
    }

    body.ip-theme-velzon .ip-navbar {
        grid-template-columns: auto 1fr auto !important;
        height: 58px !important;
        padding: 0 0.75rem 0 0 !important;
        overflow: hidden !important;
    }

    body.ip-theme-velzon .ip-navbar > .d-flex {
        background: linear-gradient(135deg, #405189 0%, #2f3f73 100%) !important;
        box-shadow: none !important;
        height: 58px !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 172px !important;
        max-width: calc(100vw - 72px) !important;
        padding: 0 0.9rem !important;
        border-radius: 0 !important;
    }

    body.ip-theme-velzon .ip-navbar-brand {
        color: #ffffff !important;
        display: block !important;
        font-size: 17px !important;
        line-height: 1 !important;
        max-width: 112px !important;
        overflow: hidden !important;
        text-shadow: 0 1px 0 rgba(0,0,0,0.12);
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.ip-theme-velzon .ip-hamburger span {
        background: #ffffff !important;
    }

    body.ip-theme-velzon .ip-navbar-company {
        display: none !important;
    }

    body.ip-theme-velzon .ip-navbar-user {
        justify-self: end !important;
        min-width: 42px !important;
        width: 42px !important;
    }

    body.ip-theme-velzon .ip-navbar-username {
        display: none !important;
    }

    body.ip-theme-velzon .ip-main {
        height: calc(100vh - 58px) !important;
        margin-left: 0 !important;
        margin-top: 58px !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding: 0.75rem !important;
    }
}
