/* ==========================================================
   ORVETA PREMIUM ERP THEME
   Blue / White / Cyan Glassmorphism
   ERPNext v15
   ========================================================== */

:root {
    --orveta-primary: #0b5cff;
    --orveta-primary-dark: #0646c7;
    --orveta-cyan: #19c8f5;
    --orveta-navy: #0a192f;
    --orveta-muted: #5a6e85;
    --orveta-bg: #f4f8fc;
    --orveta-white: #ffffff;
    --orveta-border: rgba(210, 225, 245, 0.75);
    --orveta-shadow: 0 8px 30px rgba(11, 92, 255, 0.08);
    --orveta-radius: 16px;
}

/* ==========================================================
   GLOBAL
   ========================================================== */

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Inter",
        "Segoe UI",
        Roboto,
        sans-serif !important;

    color: var(--orveta-navy);
}

/* ==========================================================
   APP BACKGROUND
   ========================================================== */

body[data-route^="workspace/"],
body[data-route^="app/"] {
    background-color: var(--orveta-bg) !important;

    background-image:
        radial-gradient(
            circle at 8% 8%,
            rgba(25, 200, 245, 0.08) 0%,
            transparent 38%
        ),
        radial-gradient(
            circle at 92% 82%,
            rgba(11, 92, 255, 0.06) 0%,
            transparent 45%
        ) !important;
}

/* ==========================================================
   NAVBAR
   ========================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--orveta-border) !important;
    box-shadow: 0 4px 20px rgba(11, 92, 255, 0.05) !important;
}

.navbar .search-bar input {
    background: rgba(244, 248, 252, 0.9) !important;
    border: 1px solid var(--orveta-border) !important;
    border-radius: 22px !important;
    color: var(--orveta-navy) !important;
}

.navbar .search-bar input:focus {
    border-color: var(--orveta-cyan) !important;
    box-shadow: 0 0 12px rgba(25, 200, 245, 0.25) !important;
}

/* ==========================================================
   WORKSPACE
   ========================================================== */

.layout-main-section {
    background: transparent !important;
}

/* ==========================================================
   DASHBOARD CARDS
   ========================================================== */

.number-card-container,
.dashboard-widget-box {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(239, 247, 255, 0.86)
        ) !important;

    border: 1px solid var(--orveta-border) !important;
    border-radius: var(--orveta-radius) !important;

    box-shadow: var(--orveta-shadow) !important;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease !important;
}

.number-card-container:hover,
.dashboard-widget-box:hover {
    transform: translateY(-3px) !important;

    border-color: rgba(25, 200, 245, 0.55) !important;

    box-shadow:
        0 14px 35px rgba(11, 92, 255, 0.12),
        0 0 14px rgba(25, 200, 245, 0.16) !important;
}

/* ==========================================================
   NUMBER CARD
   ========================================================== */

.widget-number-card .number-card-number {
    color: var(--orveta-primary) !important;
    font-weight: 800 !important;
}

.widget-number-card .number-card-label {
    color: var(--orveta-muted) !important;
    font-weight: 600 !important;
}

/* ==========================================================
   CHARTS
   ========================================================== */

.chart-container {
    background: transparent !important;
}

.chart-container .chart-wrapper,
.chart-container .widget {
    border-radius: var(--orveta-radius) !important;
}

/* ==========================================================
   SHORTCUTS
   ========================================================== */

.shortcut-widget-box {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(239, 247, 255, 0.84)
        ) !important;

    border: 1px solid var(--orveta-border) !important;
    border-radius: 14px !important;

    box-shadow:
        0 4px 16px rgba(0, 20, 60, 0.05) !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease !important;
}

.shortcut-widget-box:hover {
    transform: translateY(-2px) !important;

    border-color: var(--orveta-cyan) !important;

    box-shadow:
        0 10px 25px rgba(11, 92, 255, 0.10),
        0 0 10px rgba(25, 200, 245, 0.14) !important;
}

/* ==========================================================
   ORVETA ACCOUNT CARD
   ========================================================== */

.orveta-account-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #edf6ff 55%,
            #e6faff 100%
        ) !important;

    border: 1px solid var(--orveta-border) !important;
    border-radius: 18px !important;

    padding: 20px !important;

    box-shadow:
        0 10px 30px rgba(11, 92, 255, 0.09) !important;

    overflow: hidden;
}

.orveta-account-card::before {
    content: "";
    position: absolute;

    width: 120px;
    height: 120px;

    right: -45px;
    top: -45px;

    background: rgba(25, 200, 245, 0.14);

    border-radius: 50%;

    filter: blur(4px);

    pointer-events: none;
}

.orveta-account-card .app-id-badge {
    display: inline-flex;

    background: rgba(11, 92, 255, 0.10) !important;
    color: var(--orveta-primary) !important;

    font-weight: 800 !important;

    padding: 5px 10px !important;

    border-radius: 8px !important;

    letter-spacing: 1px !important;
}

.orveta-status-badge {
    background: rgba(22, 163, 74, 0.10) !important;
    color: #15803d !important;

    font-weight: 700 !important;

    padding: 4px 10px !important;

    border-radius: 20px !important;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn-primary {
    background: linear-gradient(
        135deg,
        #0b5cff,
        #087ee8
    ) !important;

    border: none !important;

    box-shadow:
        0 5px 15px rgba(11, 92, 255, 0.20) !important;
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        #0646c7,
        #0668c9
    ) !important;

    transform: translateY(-1px);
}

/* ==========================================================
   SUPPORT
   ========================================================== */

.orveta-support-card {
    background: rgba(255, 255, 255, 0.82) !important;

    border: 1px solid var(--orveta-border) !important;

    border-radius: 16px !important;

    padding: 18px !important;

    box-shadow:
        0 6px 22px rgba(0, 20, 60, 0.05) !important;
}

#whatsapp-support-btn,
.whatsapp-btn-custom {
    background-color: #25d366 !important;
    color: #ffffff !important;

    border-radius: 24px !important;

    box-shadow:
        0 5px 16px rgba(37, 211, 102, 0.28) !important;

    font-weight: 700 !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {
    .number-card-container {
        margin-bottom: 12px !important;
    }

    .dashboard-widget-box {
        margin-bottom: 14px !important;
    }
}

@media (max-width: 767px) {
    .orveta-account-card {
        margin-top: 15px !important;
    }

    .navbar .search-bar input {
        max-width: 180px !important;
    }
}

/* ==========================================================
   ORVETA PUBLIC DASHBOARD
   ========================================================== */

.orveta-public-dashboard {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 22px 26px 40px;
    box-sizing: border-box;
}

/* Header */

.orveta-public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.orveta-public-greeting h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0a192f;
}

.orveta-public-greeting p {
    margin: 5px 0 0;
    color: #5a6e85;
    font-size: 13px;
}

.orveta-public-search {
    width: 330px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(210,225,245,.9);
    background: rgba(255,255,255,.78);
    box-shadow: 0 5px 18px rgba(11,92,255,.06);
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #8a9aae;
}

/* KPI */

.orveta-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.orveta-kpi {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 16px;
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(235,246,255,.86)
        );

    border: 1px solid rgba(210,225,245,.85);

    box-shadow:
        0 7px 24px rgba(11,92,255,.07);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.orveta-kpi:hover {
    transform: translateY(-3px);
    border-color: rgba(25,200,245,.55);

    box-shadow:
        0 13px 30px rgba(11,92,255,.12),
        0 0 12px rgba(25,200,245,.14);
}

.orveta-kpi-label {
    color: #5a6e85;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.orveta-kpi-value {
    margin-top: 8px;
    color: #0a192f;
    font-size: 22px;
    font-weight: 800;
}

.orveta-kpi-icon {
    position: absolute;
    right: 13px;
    top: 13px;

    width: 32px;
    height: 32px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #0b5cff;

    background:
        linear-gradient(
            135deg,
            rgba(11,92,255,.12),
            rgba(25,200,245,.15)
        );
}

/* Main analytics */

.orveta-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .9fr) minmax(250px, .8fr);
    gap: 14px;
    margin-bottom: 16px;
}

.orveta-panel {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.95),
            rgba(239,247,255,.84)
        );

    border: 1px solid rgba(210,225,245,.85);

    border-radius: 17px;

    box-shadow:
        0 7px 25px rgba(0,20,60,.055);

    overflow: hidden;
}

.orveta-panel-header {
    padding: 15px 17px 8px;
}

.orveta-panel-title {
    color: #0a192f;
    font-size: 14px;
    font-weight: 800;
}

.orveta-panel-subtitle {
    margin-top: 3px;
    color: #6c7d90;
    font-size: 11px;
}

/* Sales visual */

.orveta-sales-chart {
    height: 190px;
    padding: 15px 18px 18px;
    display: flex;
    align-items: flex-end;
    gap: 9px;
}

.orveta-sales-bar {
    flex: 1;
    min-width: 8px;

    border-radius: 7px 7px 3px 3px;

    background:
        linear-gradient(
            180deg,
            #19c8f5,
            #0b5cff
        );

    box-shadow:
        0 4px 12px rgba(11,92,255,.16);

    transition:
        height .5s ease,
        transform .2s ease;
}

.orveta-sales-bar:hover {
    transform: translateY(-4px);
}

/* Overview */

.orveta-overview-body {
    padding: 15px 17px 20px;
}

.orveta-overview-item {
    margin-bottom: 15px;
}

.orveta-overview-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #5a6e85;
    margin-bottom: 6px;
}

.orveta-progress {
    height: 8px;
    background: #e9f0f7;
    border-radius: 10px;
    overflow: hidden;
}

.orveta-progress > span {
    display: block;
    height: 100%;
    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #0b5cff,
            #19c8f5
        );
}

/* Account */

.orveta-public-account {
    padding: 17px;
    min-height: 100%;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(228,243,255,.94)
        );
}

.orveta-account-title {
    font-size: 15px;
    font-weight: 800;
    color: #0a192f;
}

.orveta-account-caption {
    margin-top: 3px;
    font-size: 11px;
    color: #6c7d90;
}

.orveta-account-data {
    margin-top: 16px;
}

.orveta-account-data-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(210,225,245,.65);
    font-size: 11px;
}

.orveta-account-data-row span:first-child {
    color: #6c7d90;
}

.orveta-account-data-row strong {
    color: #0a192f;
    text-align: right;
}

.orveta-account-appid {
    color: #0b5cff !important;
    letter-spacing: 1px;
}

.orveta-account-status {
    color: #138a4b !important;
}

/* Bottom */

.orveta-bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .75fr;
    gap: 14px;
}

.orveta-activity-list {
    padding: 4px 16px 12px;
}

.orveta-activity-row {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 0;

    border-bottom:
        1px solid rgba(210,225,245,.55);
}

.orveta-activity-icon {
    width: 28px;
    height: 28px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(11,92,255,.08);
    color: #0b5cff;
    flex-shrink: 0;
}

.orveta-activity-main {
    flex: 1;
    min-width: 0;
}

.orveta-activity-title {
    color: #0a192f;
    font-size: 11px;
    font-weight: 700;
}

.orveta-activity-meta {
    color: #718399;
    font-size: 10px;
    margin-top: 2px;
}

.orveta-activity-time {
    color: #718399;
    font-size: 10px;
}

/* Quick actions */

.orveta-actions {
    padding: 10px 15px 17px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
}

.orveta-action-btn {
    min-height: 40px;

    border-radius: 11px;

    border:
        1px solid rgba(210,225,245,.85);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eef7ff
        );

    color: #0a192f;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(11,92,255,.055);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.orveta-action-btn:hover {
    transform: translateY(-2px);
    border-color: #19c8f5;

    box-shadow:
        0 8px 18px rgba(11,92,255,.10);
}

/* Help */

.orveta-help-body {
    padding: 10px 16px 17px;
}

.orveta-help-text {
    color: #5a6e85;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.orveta-help-btn {
    width: 100%;
    min-height: 39px;
    margin-top: 8px;

    border-radius: 11px;

    border: 1px solid rgba(210,225,245,.85);

    background: #ffffff;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.orveta-help-btn.whatsapp {
    color: #159447;
}

.orveta-help-btn:hover {
    border-color: #19c8f5;
}

/* Footer */

.orveta-public-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    color: #8392a5;
    font-size: 10px;
}

/* Mobile */

@media (max-width: 1200px) {

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

    .orveta-dashboard-grid {
        grid-template-columns:
            1.3fr .9fr;
    }

    .orveta-public-account {
        grid-column: span 2;
    }

    .orveta-bottom-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .orveta-bottom-grid > :last-child {
        grid-column: span 2;
    }
}

@media (max-width: 800px) {

    .orveta-public-dashboard {
        padding: 15px;
    }

    .orveta-public-header {
        display: block;
    }

    .orveta-public-search {
        width: 100%;
        margin-top: 14px;
    }

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

    .orveta-dashboard-grid,
    .orveta-bottom-grid {
        grid-template-columns: 1fr;
    }

    .orveta-public-account,
    .orveta-bottom-grid > :last-child {
        grid-column: auto;
    }
}

@media (max-width: 500px) {

    .orveta-kpi-grid {
        grid-template-columns: 1fr;
    }

    .orveta-public-greeting h1 {
        font-size: 23px;
    }
}


/* ==========================================================
   ORVETA NAVBAR BRANDING - G5
   ========================================================== */

.navbar .orveta-navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.navbar .orveta-navbar-brand-mark {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #0b5cff 0%, #19c8f5 100%) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 12px rgba(11, 92, 255, 0.20) !important;
}

.navbar .orveta-navbar-brand-text {
    color: #0b5cff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: 0.6px !important;
}

@media (max-width: 575px) {
    .navbar .orveta-navbar-brand-text {
        display: none !important;
    }

    .navbar .orveta-navbar-brand {
        gap: 0 !important;
    }
}

/* ==========================================================
   ORVETA G5-2B
   GLOBAL ERP SHELL THEME
   VISUAL ONLY — CORE ERPNext FUNCTIONALITY UNTOUCHED
   ========================================================== */

:root {
    --orveta-primary: #0b5cff;
    --orveta-primary-soft: rgba(11, 92, 255, 0.08);
    --orveta-primary-light: rgba(11, 92, 255, 0.12);
    --orveta-cyan: #19c8f5;
    --orveta-bg: #f4f8fc;
    --orveta-white: #ffffff;
    --orveta-surface: rgba(255, 255, 255, 0.88);
    --orveta-border: rgba(210, 225, 245, 0.78);
    --orveta-text: #0a192f;
    --orveta-muted: #687b91;
    --orveta-shadow: 0 8px 28px rgba(11, 92, 255, 0.06);
}

/* ==========================================================
   GLOBAL DESK BACKGROUND
   ========================================================== */

body {
    background:
        radial-gradient(
            circle at 5% 5%,
            rgba(25, 200, 245, 0.06),
            transparent 32%
        ),
        radial-gradient(
            circle at 95% 90%,
            rgba(11, 92, 255, 0.05),
            transparent 36%
        ),
        var(--orveta-bg) !important;

    color: var(--orveta-text) !important;
}

.layout-main-section-wrapper,
.layout-main-section {
    background: transparent !important;
}

/* ==========================================================
   NAVBAR
   ========================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;

    border-bottom: 1px solid var(--orveta-border) !important;

    box-shadow:
        0 4px 18px rgba(11, 92, 255, 0.045) !important;
}

.navbar .search-bar {
    border-radius: 20px !important;
}

.navbar .search-bar input {
    background: rgba(244, 248, 252, 0.88) !important;
    border: 1px solid var(--orveta-border) !important;
    border-radius: 20px !important;
}

.navbar .search-bar input:focus {
    border-color: rgba(11, 92, 255, 0.35) !important;

    box-shadow:
        0 0 0 3px rgba(11, 92, 255, 0.07) !important;
}

/* ==========================================================
   PAGE HEADER
   ========================================================== */

.page-head {
    background: transparent !important;
    border-bottom: 0 !important;
}

.page-head .page-title {
    color: var(--orveta-text) !important;
    font-weight: 750 !important;
}

.page-head .title-text {
    color: var(--orveta-text) !important;
    font-weight: 750 !important;
}

/* Breadcrumbs */

.page-head .breadcrumb {
    color: var(--orveta-muted) !important;
}

.page-head .breadcrumb a {
    color: var(--orveta-primary) !important;
}

/* ==========================================================
   WORKSPACE CONTAINER
   ========================================================== */

.workspace-container {
    background: transparent !important;
}

.workspace-sidebar {
    background: transparent !important;
}

/* Workspace title */

.workspace-title {
    color: var(--orveta-text) !important;
    font-weight: 800 !important;
}

/* ==========================================================
   WORKSPACE SECTIONS
   ========================================================== */

.workspace-container .widget {
    border-radius: 16px !important;
}

.workspace-container .widget-head {
    color: var(--orveta-text) !important;
}

.workspace-container .widget-title {
    color: var(--orveta-text) !important;
    font-weight: 750 !important;
}

/* ==========================================================
   NUMBER CARDS
   ========================================================== */

.number-card-container,
.number-card,
.widget.number-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.94),
            rgba(237, 246, 255, 0.84)
        ) !important;

    border: 1px solid var(--orveta-border) !important;

    border-radius: 16px !important;

    box-shadow:
        0 8px 24px rgba(11, 92, 255, 0.055) !important;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease !important;
}

.number-card-container:hover,
.number-card:hover {
    transform: translateY(-2px) !important;

    border-color:
        rgba(11, 92, 255, 0.22) !important;

    box-shadow:
        0 12px 30px rgba(11, 92, 255, 0.09) !important;
}

/* Number card text */

.number-card-container .number,
.number-card .number {
    color: var(--orveta-text) !important;
    font-weight: 800 !important;
}

.number-card-container .card-title,
.number-card .card-title {
    color: var(--orveta-muted) !important;
}

/* ==========================================================
   SHORTCUTS
   ========================================================== */

.widget.shortcut-widget-box,
.shortcut-widget-box {
    background:
        rgba(255, 255, 255, 0.82) !important;

    border:
        1px solid var(--orveta-border) !important;

    border-radius:
        12px !important;

    box-shadow:
        0 5px 18px rgba(11, 92, 255, 0.035) !important;

    transition:
        all 0.18s ease !important;
}

.shortcut-widget-box:hover {
    background:
        linear-gradient(
            90deg,
            rgba(11, 92, 255, 0.08),
            rgba(25, 200, 245, 0.06)
        ) !important;

    border-color:
        rgba(11, 92, 255, 0.20) !important;

    transform:
        translateY(-1px) !important;
}

.shortcut-widget-box .widget-label,
.shortcut-widget-box a {
    color: var(--orveta-text) !important;
}

/* ==========================================================
   LINKS / REPORTS / MASTERS
   ========================================================== */

.workspace-container .link-item,
.workspace-container .link-item a,
.workspace-container .standard-sidebar-item a {
    color: #24364d !important;
}

.workspace-container .link-item:hover a {
    color: var(--orveta-primary) !important;
}

/* Section headings */

.workspace-container .widget-head .widget-title,
.workspace-container h3,
.workspace-container h4 {
    color: var(--orveta-text) !important;
}

/* ==========================================================
   DASHBOARD / CHART CONTAINERS
   ========================================================== */

.dashboard-widget-box {
    background:
        rgba(255, 255, 255, 0.84) !important;

    border:
        1px solid var(--orveta-border) !important;

    border-radius:
        18px !important;

    box-shadow:
        var(--orveta-shadow) !important;
}

/* ==========================================================
   FORM PAGES
   ========================================================== */

.form-layout {
    background:
        rgba(255, 255, 255, 0.72) !important;

    border:
        1px solid var(--orveta-border) !important;

    border-radius:
        16px !important;

    box-shadow:
        0 8px 28px rgba(11, 92, 255, 0.045) !important;
}

.form-section {
    border-color:
        rgba(210, 225, 245, 0.65) !important;
}

.form-section .section-head {
    color:
        var(--orveta-text) !important;

    font-weight:
        750 !important;
}

/* ==========================================================
   INPUTS
   ========================================================== */

.form-control,
.input-with-feedback,
.frappe-control input,
.frappe-control textarea,
.frappe-control select {
    border:
        1px solid rgba(205, 220, 238, 0.9) !important;

    border-radius:
        9px !important;

    background:
        rgba(255, 255, 255, 0.90) !important;

    color:
        var(--orveta-text) !important;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease !important;
}

.form-control:focus,
.input-with-feedback:focus {
    border-color:
        rgba(11, 92, 255, 0.42) !important;

    box-shadow:
        0 0 0 3px rgba(11, 92, 255, 0.07) !important;
}

/* ==========================================================
   PRIMARY BUTTONS
   ========================================================== */

.btn-primary {
    background:
        linear-gradient(
            135deg,
            #0b5cff,
            #147cff
        ) !important;

    border-color:
        #0b5cff !important;

    border-radius:
        9px !important;

    font-weight:
        700 !important;

    box-shadow:
        0 5px 14px rgba(11, 92, 255, 0.18) !important;
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #084edb,
            #0b6ff0
        ) !important;

    border-color:
        #084edb !important;
}

/* ==========================================================
   SECONDARY BUTTONS
   ========================================================== */

.btn-default,
.btn-secondary {
    border-radius:
        9px !important;

    border-color:
        var(--orveta-border) !important;

    background:
        rgba(255, 255, 255, 0.88) !important;
}

/* ==========================================================
   LIST VIEW
   ========================================================== */

.list-row-container {
    border-color:
        rgba(210, 225, 245, 0.65) !important;
}

.list-row {
    transition:
        background 0.15s ease !important;
}

.list-row:hover {
    background:
        rgba(11, 92, 255, 0.035) !important;
}

.list-row-head {
    background:
        rgba(244, 248, 252, 0.80) !important;

    border-color:
        var(--orveta-border) !important;
}

.list-row-head .list-row-col {
    color:
        var(--orveta-muted) !important;

    font-weight:
        700 !important;
}

/* ==========================================================
   FILTERS
   ========================================================== */

.list-filter-area,
.filter-area {
    background:
        rgba(255, 255, 255, 0.65) !important;

    border-radius:
        12px !important;
}

/* ==========================================================
   DROPDOWNS
   ========================================================== */

.dropdown-menu {
    background:
        rgba(255, 255, 255, 0.97) !important;

    border:
        1px solid var(--orveta-border) !important;

    border-radius:
        12px !important;

    box-shadow:
        0 14px 36px rgba(11, 92, 255, 0.12) !important;
}

.dropdown-menu .dropdown-item:hover {
    background:
        rgba(11, 92, 255, 0.07) !important;

    color:
        var(--orveta-primary) !important;
}

/* ==========================================================
   DIALOGS
   ========================================================== */

.modal-content {
    border:
        1px solid var(--orveta-border) !important;

    border-radius:
        18px !important;

    box-shadow:
        0 20px 60px rgba(11, 92, 255, 0.15) !important;
}

.modal-header {
    border-bottom:
        1px solid rgba(210, 225, 245, 0.65) !important;
}

.modal-title {
    color:
        var(--orveta-text) !important;

    font-weight:
        750 !important;
}

/* ==========================================================
   TABLES
   ========================================================== */

.table {
    background:
        rgba(255, 255, 255, 0.72) !important;
}

.table thead th {
    background:
        rgba(244, 248, 252, 0.85) !important;

    color:
        var(--orveta-muted) !important;

    font-weight:
        700 !important;

    border-color:
        var(--orveta-border) !important;
}

.table tbody tr:hover {
    background:
        rgba(11, 92, 255, 0.025) !important;
}

/* ==========================================================
   TABS
   ========================================================== */

.nav-tabs {
    border-bottom:
        1px solid var(--orveta-border) !important;
}

.nav-tabs .nav-link {
    color:
        var(--orveta-muted) !important;

    font-weight:
        600 !important;
}

.nav-tabs .nav-link.active {
    color:
        var(--orveta-primary) !important;

    border-color:
        var(--orveta-primary) var(--orveta-primary) #fff !important;
}

/* ==========================================================
   BADGES / INDICATORS
   ========================================================== */

.indicator-pill,
.badge {
    border-radius:
        999px !important;
}

/* ==========================================================
   SIDEBAR — FINAL CONSISTENCY
   ========================================================== */

.desk-sidebar .sidebar-item {
    border-radius:
        10px !important;
}

.desk-sidebar .sidebar-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(11, 92, 255, 0.14),
            rgba(25, 200, 245, 0.08)
        ) !important;

    border-left:
        3px solid var(--orveta-primary) !important;
}

/* ==========================================================
   SCROLLBARS
   ========================================================== */

::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

::-webkit-scrollbar-track {
    background:
        transparent !important;
}

::-webkit-scrollbar-thumb {
    background:
        rgba(11, 92, 255, 0.18) !important;

    border-radius:
        10px !important;
}

::-webkit-scrollbar-thumb:hover {
    background:
        rgba(11, 92, 255, 0.32) !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {

    .form-layout,
    .dashboard-widget-box,
    .number-card-container {
        border-radius:
            14px !important;
    }

    .navbar {
        backdrop-filter:
            blur(14px) !important;
    }
}


/* ==========================================================
   ORVETA G5-2C
   NATIVE WORKSPACE PREMIUM POLISH
   CSS ONLY — ERPNext FUNCTIONALITY UNTOUCHED
   ========================================================== */

/* ----------------------------------------------------------
   WORKSPACE MAIN AREA
   ---------------------------------------------------------- */

.workspace-container {
    color: #0a192f !important;
}

.workspace-container .layout-main-section {
    background: transparent !important;
}

/* Workspace section spacing */

.workspace-container .widget-group {
    margin-bottom: 20px !important;
}

/* ----------------------------------------------------------
   WIDGET HEADERS
   ---------------------------------------------------------- */

.workspace-container .widget-head {
    min-height: 34px !important;
}

.workspace-container .widget-title {
    color: #0a192f !important;
    font-weight: 750 !important;
    letter-spacing: -0.15px !important;
}

/* ----------------------------------------------------------
   NUMBER CARDS — PREMIUM GLASS
   ---------------------------------------------------------- */

.workspace-container .number-card-container {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.96),
            rgba(238,247,255,0.88)
        ) !important;

    border:
        1px solid rgba(178,211,245,0.75) !important;

    border-radius:
        15px !important;

    box-shadow:
        0 6px 22px rgba(11,92,255,0.055) !important;

    overflow:
        hidden !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease !important;
}

.workspace-container .number-card-container:hover {
    transform:
        translateY(-2px) !important;

    border-color:
        rgba(11,92,255,0.25) !important;

    box-shadow:
        0 12px 28px rgba(11,92,255,0.10) !important;
}

.workspace-container .number-card-container .number {
    color:
        #0a192f !important;

    font-weight:
        800 !important;
}

.workspace-container .number-card-container .card-title {
    color:
        #64788f !important;

    font-weight:
        700 !important;

    font-size:
        10px !important;

    letter-spacing:
        .45px !important;

    text-transform:
        uppercase !important;
}

/* ----------------------------------------------------------
   SHORTCUTS — PREMIUM PILLS
   ---------------------------------------------------------- */

.workspace-container .shortcut-widget-box {
    background:
        linear-gradient(
            100deg,
            rgba(255,255,255,0.95),
            rgba(241,248,255,0.90)
        ) !important;

    border:
        1px solid rgba(178,211,245,0.72) !important;

    border-radius:
        11px !important;

    box-shadow:
        0 4px 14px rgba(11,92,255,0.035) !important;

    transition:
        all .18s ease !important;
}

.workspace-container .shortcut-widget-box:hover {
    background:
        linear-gradient(
            100deg,
            rgba(232,243,255,0.98),
            rgba(236,251,255,0.96)
        ) !important;

    border-color:
        rgba(11,92,255,0.25) !important;

    box-shadow:
        0 7px 20px rgba(11,92,255,0.08) !important;

    transform:
        translateY(-1px) !important;
}

.workspace-container .shortcut-widget-box .widget-label {
    color:
        #24364d !important;

    font-weight:
        650 !important;
}

/* Shortcut count */

.workspace-container .shortcut-widget-box .count {
    background:
        rgba(11,92,255,0.08) !important;

    color:
        #0b5cff !important;

    border-radius:
        999px !important;

    font-weight:
        700 !important;
}

/* ----------------------------------------------------------
   LINKS / REPORTS / MASTERS
   ---------------------------------------------------------- */

.workspace-container .link-item {
    border-radius:
        7px !important;

    padding:
        5px 7px !important;

    transition:
        background .15s ease,
        color .15s ease !important;
}

.workspace-container .link-item:hover {
    background:
        rgba(11,92,255,0.055) !important;
}

.workspace-container .link-item:hover a {
    color:
        #0b5cff !important;
}

.workspace-container .link-item a {
    color:
        #24364d !important;

    font-weight:
        500 !important;
}

/* Section labels */

.workspace-container .widget-head + .widget-body h3,
.workspace-container .widget-body h3,
.workspace-container .widget-body h4 {
    color:
        #0a192f !important;

    font-weight:
        750 !important;
}

/* ----------------------------------------------------------
   CHART CONTAINER
   ---------------------------------------------------------- */

.workspace-container .chart-container,
.workspace-container .frappe-chart {
    background:
        transparent !important;
}

/* Chart grid */

.workspace-container svg .line-vertical,
.workspace-container svg .line-horizontal {
    stroke:
        rgba(11,92,255,0.08) !important;
}

/* Chart text */

.workspace-container svg text {
    fill:
        #687b91 !important;
}

/* Chart axis */

.workspace-container .axis line,
.workspace-container .axis path {
    stroke:
        rgba(170,195,220,0.55) !important;
}

/* ----------------------------------------------------------
   CHART LEGEND
   ---------------------------------------------------------- */

.workspace-container .chart-legend {
    color:
        #52677e !important;

    font-weight:
        600 !important;
}

/* ----------------------------------------------------------
   WORKSPACE CARDS / WIDGETS
   ---------------------------------------------------------- */

.workspace-container .widget {
    transition:
        box-shadow .18s ease,
        border-color .18s ease !important;
}

.workspace-container .widget:hover {
    border-color:
        rgba(178,211,245,0.90) !important;
}

/* ----------------------------------------------------------
   EMPTY / LOADING STATES
   ---------------------------------------------------------- */

.workspace-container .empty-state,
.workspace-container .text-muted {
    color:
        #7a8da1 !important;
}

/* ----------------------------------------------------------
   WORKSPACE BUTTONS
   ---------------------------------------------------------- */

.workspace-container .btn {
    border-radius:
        9px !important;

    font-weight:
        650 !important;
}

.workspace-container .btn-primary {
    background:
        linear-gradient(
            135deg,
            #0b5cff,
            #1598ee
        ) !important;

    border-color:
        #0b5cff !important;
}

/* ----------------------------------------------------------
   FILTER / MORE / OPTIONS BUTTONS
   ---------------------------------------------------------- */

.workspace-container .btn-filter,
.workspace-container .btn-more {
    border-radius:
        9px !important;

    border:
        1px solid rgba(178,211,245,0.70) !important;

    background:
        rgba(255,255,255,0.82) !important;
}

.workspace-container .btn-filter:hover,
.workspace-container .btn-more:hover {
    border-color:
        rgba(11,92,255,0.25) !important;

    background:
        rgba(238,247,255,0.95) !important;
}

/* ----------------------------------------------------------
   WORKSPACE SIDEBAR / ACTIVE STATE
   ---------------------------------------------------------- */

.desk-sidebar .sidebar-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(11,92,255,0.13),
            rgba(25,200,245,0.09)
        ) !important;

    border-left:
        3px solid #0b5cff !important;

    box-shadow:
        inset 0 0 14px rgba(25,200,245,0.035) !important;
}

/* ----------------------------------------------------------
   PAGE SCROLL AREA
   ---------------------------------------------------------- */

.layout-main-section-wrapper {
    scrollbar-width:
        thin !important;
}

/* ----------------------------------------------------------
   RESPONSIVE WORKSPACE
   ---------------------------------------------------------- */

@media (max-width: 991px) {

    .workspace-container .number-card-container {
        border-radius:
            13px !important;
    }

    .workspace-container .shortcut-widget-box {
        border-radius:
            10px !important;
    }
}


/* ==========================================================
   ORVETA G5-2D
   CORRECT FRAPPE V15 SIDEBAR SELECTORS
   ========================================================== */

/* Sidebar shell */

.layout-side-section {
    background:
        rgba(255, 255, 255, 0.82) !important;

    backdrop-filter:
        blur(18px) !important;

    -webkit-backdrop-filter:
        blur(18px) !important;

    border-right:
        1px solid rgba(210, 225, 245, 0.72) !important;

    box-shadow:
        4px 0 22px rgba(11, 92, 255, 0.035) !important;
}

/* Sidebar sections */

.standard-sidebar-section {
    margin:
        4px 7px 14px 7px !important;
}

/* Section labels */

.standard-sidebar-label {
    color:
        #6b7f95 !important;

    font-size:
        10px !important;

    font-weight:
        800 !important;

    text-transform:
        uppercase !important;

    letter-spacing:
        1.1px !important;

    padding:
        10px 10px 6px 10px !important;
}

/* Item container */

.sidebar-item-container {
    margin:
        2px 0 !important;
}

/* Actual Frappe sidebar item */

.desk-sidebar-item.standard-sidebar-item {
    min-height:
        38px !important;

    margin:
        0 2px !important;

    padding:
        0 10px !important;

    border:
        1px solid transparent !important;

    border-radius:
        10px !important;

    color:
        #24364d !important;

    background:
        transparent !important;

    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease,
        box-shadow .16s ease !important;
}

/* Item text */

.desk-sidebar-item.standard-sidebar-item
.sidebar-item-label {
    color:
        #24364d !important;

    font-size:
        13px !important;

    font-weight:
        550 !important;
}

/* Icons */

.desk-sidebar-item.standard-sidebar-item
.sidebar-item-icon {
    color:
        #6c8198 !important;

    margin-right:
        9px !important;

    transition:
        color .16s ease !important;
}

/* Hover */

.desk-sidebar-item.standard-sidebar-item:hover {
    background:
        linear-gradient(
            90deg,
            rgba(11, 92, 255, 0.055),
            rgba(25, 200, 245, 0.035)
        ) !important;

    border-color:
        rgba(11, 92, 255, 0.12) !important;

    color:
        #0b5cff !important;
}

.desk-sidebar-item.standard-sidebar-item:hover
.sidebar-item-label {
    color:
        #0b5cff !important;
}

.desk-sidebar-item.standard-sidebar-item:hover
.sidebar-item-icon {
    color:
        #0b5cff !important;
}

/* Selected / active */

.desk-sidebar-item.standard-sidebar-item.selected {
    background:
        linear-gradient(
            100deg,
            rgba(11, 92, 255, 0.12),
            rgba(25, 200, 245, 0.07)
        ) !important;

    border:
        1px solid rgba(11, 92, 255, 0.18) !important;

    box-shadow:
        0 3px 12px rgba(11, 92, 255, 0.055) !important;
}

.desk-sidebar-item.standard-sidebar-item.selected
.sidebar-item-label {
    color:
        #0b5cff !important;

    font-weight:
        700 !important;
}

.desk-sidebar-item.standard-sidebar-item.selected
.sidebar-item-icon {
    color:
        #0b5cff !important;
}

/* Sidebar controls / arrows */

.sidebar-item-control {
    color:
        #7890a6 !important;
}

.sidebar-item-control .drop-icon {
    color:
        #7890a6 !important;

    transition:
        color .16s ease,
        transform .16s ease !important;
}

.desk-sidebar-item.standard-sidebar-item:hover
.sidebar-item-control .drop-icon {
    color:
        #0b5cff !important;
}

/* Nested items */

.standard-sidebar-section
.sidebar-item-container
.sidebar-item-container {
    margin-left:
        8px !important;
}

.standard-sidebar-section
.sidebar-item-container
.sidebar-item-container
.desk-sidebar-item {
    min-height:
        34px !important;

    padding-left:
        16px !important;

    font-size:
        12px !important;
}

/* Nested selected item */

.standard-sidebar-section
.sidebar-item-container
.sidebar-item-container
.desk-sidebar-item.selected {
    background:
        rgba(11, 92, 255, 0.075) !important;

    border-color:
        rgba(11, 92, 255, 0.13) !important;
}

/* Sidebar divider */

.standard-sidebar-section:not(:last-child) {
    border-bottom:
        1px solid rgba(210, 225, 245, 0.38) !important;

    padding-bottom:
        7px !important;
}

/* Sidebar scrollbar */

.layout-side-section::-webkit-scrollbar {
    width:
        5px !important;
}

.layout-side-section::-webkit-scrollbar-track {
    background:
        transparent !important;
}

.layout-side-section::-webkit-scrollbar-thumb {
    background:
        rgba(155, 181, 208, 0.38) !important;

    border-radius:
        999px !important;
}

.layout-side-section::-webkit-scrollbar-thumb:hover {
    background:
        rgba(11, 92, 255, 0.28) !important;
}

/* Firefox */

.layout-side-section {
    scrollbar-width:
        thin !important;

    scrollbar-color:
        rgba(155, 181, 208, 0.45) transparent !important;
}

/* Mobile safety */

@media (max-width: 767px) {

    .desk-sidebar-item.standard-sidebar-item {
        min-height:
            40px !important;
    }

    .standard-sidebar-label {
        padding-left:
            10px !important;
    }
}


/* ==========================================================================
   ORVETA G5-2E — PREMIUM LOGIN UI
   CSS ONLY — Frappe authentication and login JS untouched
   ========================================================================== */

/* Login page shell */
body:has(section.for-login),
body:has(section.for-signup),
body:has(section.for-forgot),
body:has(section.for-login-with-email-link) {
    background:
        radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.12), transparent 32%),
        radial-gradient(circle at 90% 85%, rgba(6, 182, 212, 0.12), transparent 34%),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 48%, #f7fcff 100%);
    min-height: 100vh;
}

/* Hide normal website navbar on authentication screens */
body:has(section.for-login) .navbar,
body:has(section.for-signup) .navbar,
body:has(section.for-forgot) .navbar,
body:has(section.for-login-with-email-link) .navbar {
    display: none !important;
}

/* Main login content */
body:has(section.for-login) .page-content-wrapper,
body:has(section.for-signup) .page-content-wrapper,
body:has(section.for-forgot) .page-content-wrapper,
body:has(section.for-login-with-email-link) .page-content-wrapper {
    min-height: 100vh !important;
    padding: 0 !important;
}

body:has(section.for-login) .page-content,
body:has(section.for-signup) .page-content,
body:has(section.for-forgot) .page-content,
body:has(section.for-login-with-email-link) .page-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px !important;
}

/* Authentication section */
body:has(section.for-login) section.for-login,
body:has(section.for-signup) section.for-signup,
body:has(section.for-forgot) section.for-forgot,
body:has(section.for-login-with-email-link) section.for-login-with-email-link {
    width: 100%;
}

/* ORVETA authentication card */
body:has(section.for-login) .login-content.page-card,
body:has(section.for-signup) .login-content.page-card,
body:has(section.for-forgot) .login-content.page-card,
body:has(section.for-login-with-email-link) .login-content.page-card {
    width: min(100%, 460px);
    max-width: 460px !important;
    padding: 38px 42px !important;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 24px !important;
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.10),
        0 4px 18px rgba(37, 99, 235, 0.06) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ORVETA brand/header */
body:has(section.for-login) .page-card-head,
body:has(section.for-signup) .page-card-head,
body:has(section.for-forgot) .page-card-head,
body:has(section.for-login-with-email-link) .page-card-head {
    padding: 0 0 26px !important;
}

body:has(section.for-login) .page-card-head .app-logo,
body:has(section.for-signup) .page-card-head .app-logo,
body:has(section.for-forgot) .page-card-head .app-logo,
body:has(section.for-login-with-email-link) .page-card-head .app-logo {
    max-height: 52px !important;
    max-width: 190px;
    object-fit: contain;
    margin-bottom: 10px;
}

body:has(section.for-login) .page-card-head h4,
body:has(section.for-signup) .page-card-head h4,
body:has(section.for-forgot) .page-card-head h4,
body:has(section.for-login-with-email-link) .page-card-head h4 {
    margin-top: 8px !important;
    color: #0f172a !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

/* Form */
body:has(section.for-login) .login-content form,
body:has(section.for-signup) .login-content form,
body:has(section.for-forgot) .login-content form,
body:has(section.for-login-with-email-link) .login-content form {
    max-width: none !important;
}

body:has(section.for-login) .page-card-body,
body:has(section.for-signup) .page-card-body,
body:has(section.for-forgot) .page-card-body,
body:has(section.for-login-with-email-link) .page-card-body {
    padding: 0 !important;
}

/* Inputs */
body:has(section.for-login) .login-content .form-control,
body:has(section.for-signup) .login-content .form-control,
body:has(section.for-forgot) .login-content .form-control,
body:has(section.for-login-with-email-link) .login-content .form-control {
    height: 50px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 12px !important;
    background: rgba(248, 250, 252, 0.92) !important;
    color: #0f172a !important;
    box-shadow: none !important;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

body:has(section.for-login) .login-content .form-control:focus,
body:has(section.for-signup) .login-content .form-control:focus,
body:has(section.for-forgot) .login-content .form-control:focus,
body:has(section.for-login-with-email-link) .login-content .form-control:focus {
    border-color: #3b82f6 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10) !important;
}

/* Input icons */
body:has(section.for-login) .login-content .field-icon,
body:has(section.for-signup) .login-content .field-icon,
body:has(section.for-forgot) .login-content .field-icon,
body:has(section.for-login-with-email-link) .login-content .field-icon {
    top: 17px !important;
    left: 14px !important;
}

body:has(section.for-login) .login-content .email-field input,
body:has(section.for-login) .login-content .password-field input,
body:has(section.for-signup) .login-content .email-field input,
body:has(section.for-signup) .login-content .password-field input,
body:has(section.for-forgot) .login-content .email-field input,
body:has(section.for-login-with-email-link) .login-content .email-field input {
    padding-left: 42px !important;
}

/* Show password */
body:has(section.for-login) .toggle-password {
    top: 17px !important;
    right: 14px !important;
    color: #64748b !important;
    font-weight: 600;
}

/* Forgot password */
body:has(section.for-login) .forgot-password-message {
    margin-top: 2px !important;
    margin-bottom: 0 !important;
}

body:has(section.for-login) .forgot-password-message a,
body:has(section.for-forgot) .sign-up-message a,
body:has(section.for-login-with-email-link) .sign-up-message a {
    color: #2563eb !important;
    font-weight: 600;
    text-decoration: none !important;
}

/* Primary login/action button */
body:has(section.for-login) .btn-login,
body:has(section.for-signup) .btn-primary,
body:has(section.for-forgot) .btn-forgot,
body:has(section.for-login-with-email-link) .btn-login-with-email-link {
    min-height: 50px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20) !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

body:has(section.for-login) .btn-login:hover,
body:has(section.for-signup) .btn-primary:hover,
body:has(section.for-forgot) .btn-forgot:hover,
body:has(section.for-login-with-email-link) .btn-login-with-email-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25) !important;
}

/* Login action spacing */
body:has(section.for-login) .page-card-actions,
body:has(section.for-signup) .page-card-actions,
body:has(section.for-forgot) .page-card-actions,
body:has(section.for-login-with-email-link) .page-card-actions {
    margin-top: 24px !important;
}

/* Social / email-link buttons */
body:has(section.for-login) .btn-login-option {
    min-height: 46px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

body:has(section.for-login) .btn-login-option:hover {
    background: #f8fbff !important;
    border-color: #bfdbfe !important;
}

/* Signup message */
body:has(section.for-login) .sign-up-message {
    margin-top: 20px !important;
    color: #64748b !important;
}

body:has(section.for-login) .sign-up-message a {
    color: #2563eb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Error/status area */
body:has(section.for-login) .login-content .indicator,
body:has(section.for-login) .login-content .alert,
body:has(section.for-signup) .login-content .alert {
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 640px) {
    body:has(section.for-login) .page-content,
    body:has(section.for-signup) .page-content,
    body:has(section.for-forgot) .page-content,
    body:has(section.for-login-with-email-link) .page-content {
        padding: 24px 14px !important;
    }

    body:has(section.for-login) .login-content.page-card,
    body:has(section.for-signup) .login-content.page-card,
    body:has(section.for-forgot) .login-content.page-card,
    body:has(section.for-login-with-email-link) .login-content.page-card {
        padding: 30px 22px !important;
        border-radius: 20px !important;
    }

    body:has(section.for-login) .page-card-head h4,
    body:has(section.for-signup) .page-card-head h4,
    body:has(section.for-forgot) .page-card-head h4,
    body:has(section.for-login-with-email-link) .page-card-head h4 {
        font-size: 20px !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    body:has(section.for-login) *,
    body:has(section.for-signup) *,
    body:has(section.for-forgot) *,
    body:has(section.for-login-with-email-link) * {
        transition: none !important;
        animation: none !important;
    }
}


/* ==========================================================================
   ORVETA G5-2E — OFFICIAL LOGIN LOGO FIX
   ========================================================================== */

body:has(section.for-login) .page-card-head .app-logo,
body:has(section.for-signup) .page-card-head .app-logo,
body:has(section.for-forgot) .page-card-head .app-logo,
body:has(section.for-login-with-email-link) .page-card-head .app-logo {
    content: url("/assets/trial_provisioning/images/orveta_logo.png") !important;
    display: block !important;
    width: min(100%, 250px) !important;
    height: auto !important;
    max-width: 250px !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto 14px !important;
}

@media (max-width: 640px) {
    body:has(section.for-login) .page-card-head .app-logo,
    body:has(section.for-signup) .page-card-head .app-logo,
    body:has(section.for-forgot) .page-card-head .app-logo,
    body:has(section.for-login-with-email-link) .page-card-head .app-logo {
        width: min(100%, 220px) !important;
        max-width: 220px !important;
    }
}


/* ORVETA Navbar Logo */
.navbar .orveta-navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.navbar .orveta-navbar-logo {
    display: block !important;
    width: 100px !important;
    height: 45px !important;
    max-width: 100px !important;
    max-height: 45px !important;
    object-fit: contain !important;
}

/* =========================================================
   ORVETA DASHBOARD PRO V2
   ========================================================= */

.orveta-dashboard-pro {
    padding: 22px 28px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.orveta-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.orveta-greeting {
    font-size: 28px;
    font-weight: 800;
    color: #10233f;
    letter-spacing: -0.5px;
}

.orveta-subtitle {
    margin-top: 5px;
    color: #718096;
    font-size: 14px;
}

.orveta-company-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #dbe7f5;
    border-radius: 999px;
    background: #ffffff;
    color: #19375f;
    font-weight: 600;
    box-shadow: 0 5px 18px rgba(20, 60, 110, 0.06);
}

.orveta-company-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #18a957;
}

.orveta-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.orveta-kpi,
.orveta-panel {
    background: linear-gradient(145deg, #ffffff, #f5faff);
    border: 1px solid #dce9f7;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(20, 70, 120, 0.055);
}

.orveta-kpi {
    padding: 19px;
    min-height: 128px;
}

.orveta-kpi-title {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: .5px;
}

.orveta-kpi-value {
    margin-top: 13px;
    font-size: 24px;
    font-weight: 850;
    color: #10233f;
}

.orveta-kpi-caption {
    margin-top: 7px;
    font-size: 11px;
    color: #8b9bb0;
}

.orveta-dashboard-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.orveta-panel {
    padding: 22px;
    min-height: 270px;
}

.orveta-panel-title {
    font-size: 17px;
    font-weight: 800;
    color: #142943;
}

.orveta-panel-subtitle {
    margin-top: 4px;
    color: #7b8da5;
    font-size: 12px;
}

.orveta-mini-chart {
    height: 185px;
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    gap: 13px;
    padding: 5px 5px 0;
    border-bottom: 1px solid #e5edf6;
}

.orveta-chart-column {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.orveta-chart-value {
    font-size: 9px;
    color: #718096;
    margin-bottom: 5px;
    white-space: nowrap;
}

.orveta-chart-bar {
    width: 65%;
    min-height: 8px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #19c8f5, #0b5cff);
    box-shadow: 0 5px 15px rgba(11, 92, 255, .16);
    transition: height .4s ease;
}

.orveta-chart-label {
    margin-top: 8px;
    font-size: 10px;
    color: #718096;
}

.orveta-ranking-list {
    margin-top: 18px;
}

.orveta-ranking {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
}

.orveta-ranking:last-child {
    border-bottom: 0;
}

.orveta-rank {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf4ff;
    color: #0b5cff;
    font-size: 11px;
    font-weight: 800;
}

.orveta-rank-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #314761;
    font-size: 12px;
}

.orveta-ranking strong {
    color: #10233f;
    font-size: 12px;
}

.orveta-empty,
.orveta-chart-empty {
    padding: 40px 10px;
    text-align: center;
    color: #8a9ab0;
    font-size: 12px;
}

.orveta-dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8a9ab0;
    font-size: 11px;
    padding: 5px 2px;
}

.orveta-refresh {
    border-radius: 9px !important;
}

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

    .orveta-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .orveta-dashboard-pro {
        padding: 15px;
    }

    .orveta-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .orveta-kpi-grid {
        grid-template-columns: 1fr;
    }

    .orveta-greeting {
        font-size: 22px;
    }
}

/* ==========================================================
   ORVETA PREMIUM DASHBOARD V3
   Embossed / Soft Glass / SaaS UI
   ========================================================== */

:root {
    --ov3-primary: #0b5cff;
    --ov3-primary-dark: #0649d8;
    --ov3-cyan: #19c8f5;
    --ov3-bg: #f4f8fd;
    --ov3-card: #ffffff;
    --ov3-text: #10233f;
    --ov3-muted: #7890ad;
    --ov3-border: #dce8f5;
    --ov3-shadow:
        0 12px 35px rgba(16, 55, 100, 0.08),
        0 3px 9px rgba(16, 55, 100, 0.05);
    --ov3-emboss:
        inset 2px 2px 5px rgba(255,255,255,.95),
        inset -3px -3px 8px rgba(183,205,230,.34);
}

.layout-main-section {
    background: var(--ov3-bg) !important;
}

.ov3-dashboard {
    padding: 22px 28px 35px;
    max-width: 1550px;
    margin: 0 auto;
    color: var(--ov3-text);
}

.ov3-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
}

.ov3-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ov3-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #19c8f5, #0b5cff);
    box-shadow:
        6px 6px 14px rgba(11,92,255,.18),
        -3px -3px 8px rgba(255,255,255,.95);
}

.ov3-greeting {
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.7px;
}

.ov3-welcome-text {
    margin-top: 3px;
    color: var(--ov3-muted);
    font-size: 13px;
}

.ov3-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ov3-date-box,
.ov3-period {
    min-height: 46px;
    border: 1px solid var(--ov3-border);
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--ov3-shadow), var(--ov3-emboss);
}

.ov3-date-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
}

.ov3-date-box strong {
    display: block;
    font-size: 11px;
}

.ov3-date-box small {
    display: block;
    color: var(--ov3-muted);
    font-size: 9px;
    margin-top: 2px;
}

.ov3-date-icon {
    color: var(--ov3-primary);
    font-size: 19px;
}

.ov3-period {
    padding: 0 12px;
    color: #314761;
    font-weight: 600;
    outline: none;
}

.ov3-refresh {
    min-height: 46px;
    border-radius: 13px !important;
    padding: 0 18px !important;
    font-weight: 700 !important;
    box-shadow:
        5px 5px 12px rgba(11,92,255,.18),
        -3px -3px 7px rgba(255,255,255,.9) !important;
}

.ov3-company-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--ov3-border);
    border-radius: 14px;
    box-shadow: var(--ov3-shadow), var(--ov3-emboss);
    font-size: 11px;
    color: var(--ov3-muted);
}

.ov3-company-strip strong {
    color: var(--ov3-text);
    margin-left: 7px;
}

.ov3-status-dot,
.ov3-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #18a957;
    margin-right: 6px;
    box-shadow: 0 0 0 4px rgba(24,169,87,.09);
}

.ov3-live {
    color: #238552;
    font-weight: 600;
}

.ov3-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ov3-kpi {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f4f9ff);
    border: 1px solid var(--ov3-border);
    box-shadow: var(--ov3-shadow), var(--ov3-emboss);
}

.ov3-kpi::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -38px;
    top: -38px;
    border-radius: 50%;
    background: rgba(11,92,255,.045);
}

.ov3-kpi-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 800;
    background: #eaf4ff;
    color: var(--ov3-primary);
    box-shadow: var(--ov3-emboss);
}

.ov3-kpi-title {
    color: #657c98;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .45px;
}

.ov3-kpi-value {
    margin-top: 12px;
    font-size: 24px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.4px;
}

.ov3-kpi-footer {
    margin-top: 9px;
    color: #8aa0ba;
    font-size: 10px;
}

.ov3-main-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.ov3-card {
    background: linear-gradient(145deg, #ffffff, #f5faff);
    border: 1px solid var(--ov3-border);
    border-radius: 19px;
    box-shadow: var(--ov3-shadow), var(--ov3-emboss);
    padding: 19px;
    min-width: 0;
}

.ov3-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ov3-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
}

.ov3-card-subtitle {
    color: var(--ov3-muted);
    font-size: 10px;
    margin-top: 4px;
}

.ov3-section-icon {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e8f3ff;
    color: var(--ov3-primary);
    box-shadow: var(--ov3-emboss);
}

.ov3-section-icon.purple {
    background: #f0eaff;
    color: #7549e8;
}

.ov3-section-icon.cyan {
    background: #e6faff;
    color: #00a9d9;
}

.ov3-small-select {
    border: 1px solid var(--ov3-border);
    border-radius: 10px;
    background: #fff;
    padding: 7px 10px;
    font-size: 10px;
    color: #526a85;
    box-shadow: var(--ov3-emboss);
}

.ov3-chart {
    height: 210px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 17px;
    padding: 10px 4px 0;
    border-bottom: 1px solid #e1ebf5;
}

.ov3-bar-item {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.ov3-bar-wrap {
    width: 65%;
    height: 83%;
    display: flex;
    align-items: flex-end;
}

.ov3-bar {
    width: 100%;
    min-height: 7px;
    border-radius: 9px 9px 3px 3px;
    background: linear-gradient(180deg, #19c8f5 0%, #0b5cff 100%);
    box-shadow:
        4px 5px 12px rgba(11,92,255,.18),
        inset 2px 2px 4px rgba(255,255,255,.3);
    transition: height .5s ease;
}

.ov3-bar-label {
    margin-top: 8px;
    color: #7890ad;
    font-size: 9px;
}

.ov3-bar-tooltip {
    position: absolute;
    top: 0;
    z-index: 2;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--ov3-border);
    box-shadow: 0 8px 22px rgba(20,60,110,.11);
    font-size: 8px;
    color: #6b819b;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: .2s ease;
    white-space: nowrap;
}

.ov3-bar-item:hover .ov3-bar-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.ov3-empty-chart,
.ov3-empty {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aabc0;
    font-size: 11px;
}

.ov3-financial {
    margin-top: 18px;
}

.ov3-fin-row {
    margin-bottom: 17px;
}

.ov3-fin-row > div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #657c98;
    margin-bottom: 7px;
}

.ov3-fin-row strong {
    color: #263e5d;
}

.ov3-progress {
    height: 9px;
    border-radius: 99px;
    background: #e9f0f7;
    overflow: hidden;
    box-shadow: inset 2px 2px 5px rgba(130,160,190,.18);
}

.ov3-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b5cff, #19c8f5);
    box-shadow: 0 2px 8px rgba(11,92,255,.18);
}

.ov3-progress.green span {
    background: linear-gradient(90deg, #16a66b, #45d998);
}

.ov3-progress.orange span {
    background: linear-gradient(90deg, #f08a23, #ffbd58);
}

.ov3-account-list {
    margin-top: 8px;
}

.ov3-account-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e8eff6;
    font-size: 10px;
}

.ov3-account-list > div:last-child {
    border-bottom: 0;
}

.ov3-account-list span {
    color: #7890ad;
}

.ov3-account-list strong {
    color: #203754;
    text-align: right;
}

.ov3-account-list .blue {
    color: var(--ov3-primary);
}

.ov3-account-list .active {
    color: #129653;
    padding: 3px 8px;
    border-radius: 99px;
    background: #e8faef;
}

.ov3-link {
    border: 0;
    background: transparent;
    color: var(--ov3-primary);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.ov3-lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.05fr;
    gap: 16px;
    margin-bottom: 16px;
}

.ov3-ranking-list {
    margin-top: 13px;
}

.ov3-ranking-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid #e8eff6;
}

.ov3-ranking-row:last-child {
    border-bottom: 0;
}

.ov3-rank {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--ov3-primary);
    background: #eaf4ff;
    font-size: 10px;
    font-weight: 800;
    box-shadow: var(--ov3-emboss);
}

.ov3-ranking-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #39516d;
    font-size: 10px;
}

.ov3-ranking-value {
    color: #152d4b;
    font-size: 10px;
    font-weight: 800;
}

.ov3-activity {
    margin-top: 12px;
}

.ov3-activity-row {
    display: flex;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid #e8eff6;
}

.ov3-activity-row:last-child {
    border-bottom: 0;
}

.ov3-activity-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 10px;
    background: #eaf4ff;
    color: var(--ov3-primary);
}

.ov3-activity-icon.cyan {
    background: #e6faff;
    color: #009fce;
}

.ov3-activity-icon.orange {
    background: #fff1df;
    color: #ec8418;
}

.ov3-activity-icon.purple {
    background: #f0eaff;
    color: #7043df;
}

.ov3-activity-row strong {
    display: block;
    color: #263e5b;
    font-size: 10px;
}

.ov3-activity-row small {
    display: block;
    color: #8aa0b8;
    font-size: 9px;
    margin-top: 2px;
}

.ov3-actions-card {
    margin-bottom: 16px;
}

.ov3-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.ov3-action {
    min-height: 78px;
    border: 1px solid var(--ov3-border);
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    color: #263e5b;
    box-shadow: var(--ov3-shadow), var(--ov3-emboss);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ov3-action:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 28px rgba(20,60,110,.12),
        inset 2px 2px 5px rgba(255,255,255,.95),
        inset -3px -3px 8px rgba(183,205,230,.28);
}

.ov3-action span {
    font-size: 18px;
}

.ov3-action strong {
    font-size: 10px;
}

.action-green span {
    color: #16a66b;
}

.action-blue span {
    color: #0b5cff;
}

.action-orange span {
    color: #ef8a22;
}

.action-purple span {
    color: #7549e8;
}

.action-red span {
    color: #e64d62;
}

.ov3-footer {
    display: flex;
    justify-content: space-between;
    padding: 5px 2px;
    color: #8ca0b8;
    font-size: 9px;
}

@media (max-width: 1250px) {
    .ov3-main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ov3-account-card {
        grid-column: span 2;
    }

    .ov3-lower-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ov3-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .ov3-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ov3-toolbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .ov3-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .ov3-main-grid,
    .ov3-lower-grid {
        grid-template-columns: 1fr;
    }

    .ov3-account-card {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .ov3-dashboard {
        padding: 15px;
    }

    .ov3-greeting {
        font-size: 21px;
    }

    .ov3-kpis {
        grid-template-columns: 1fr;
    }

    .ov3-company-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .ov3-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .ov3-footer {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================================
   ORVETA SIDEBAR — FULL MODULE NAMES
   ============================================================ */

@media (min-width: 900px) {

    .layout-side-section,
    .desk-sidebar {
        width: 230px !important;
        min-width: 230px !important;
    }

    .layout-side-section .sidebar-item,
    .desk-sidebar .sidebar-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .layout-side-section .sidebar-item-label,
    .desk-sidebar .sidebar-item-label {
        display: inline-block !important;
        max-width: none !important;
        width: auto !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    .layout-side-section .sidebar-item .sidebar-item-label,
    .desk-sidebar .sidebar-item .sidebar-item-label {
        flex: 1 1 auto !important;
    }

    /*
     * Prevent the sidebar from forcing labels into ellipsis.
     */
    .layout-side-section .sidebar-item,
    .desk-sidebar .sidebar-item {
        overflow: visible !important;
    }

}

/* ============================================================
   QUICK ACTIONS — MOVE ABOVE ANALYTICS
   ============================================================ */

.ov3-dashboard {
    display: flex !important;
    flex-direction: column !important;
}

.ov3-dashboard > .ov3-bottom-grid {
    order: 30 !important;
}

.ov3-dashboard > .ov3-card:not(.ov3-account-card) {
    /*
     * Keep normal dashboard cards unless explicitly moved by JS.
     */
}

/* ============================================================
   QUICK ACTION BUTTONS
   ============================================================ */

.ov3-action-btn,
.ov3-action,
.ov3-dashboard .ov3-actions button,
.ov3-dashboard .ov3-actions a {
    cursor: pointer !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease !important;
}

.ov3-action-btn:hover,
.ov3-action:hover,
.ov3-dashboard .ov3-actions button:hover,
.ov3-dashboard .ov3-actions a:hover {
    transform: translateY(-2px) !important;
}


/* ============================================================
   ORVETA V3.3 — QUICK ACTION ICONS
   ============================================================ */

.ov3-dashboard .orveta-v33-action-icon {
    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    min-height: 34px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    margin-bottom: 6px !important;

    border-radius: 11px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #eef5ff 100%
        ) !important;

    box-shadow:
        3px 3px 7px rgba(25, 55, 95, 0.10),
        -3px -3px 7px rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(11, 92, 255, 0.07) !important;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease !important;
}

.ov3-dashboard .orveta-v33-action-icon svg {

    width: 19px !important;
    height: 19px !important;

    fill: none !important;

    stroke:
        #0b5cff !important;

    stroke-width: 1.8 !important;

    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.ov3-dashboard
.ov3-action-btn:hover
.orveta-v33-action-icon,
.ov3-dashboard
.ov3-action:hover
.orveta-v33-action-icon {

    transform:
        translateY(-1px)
        scale(1.04) !important;

    box-shadow:
        4px 5px 10px rgba(25, 55, 95, 0.14),
        -3px -3px 8px rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(11, 92, 255, 0.12) !important;
}

/*
 * Quick Action tiles — slightly more premium.
 */
.ov3-dashboard
.ov3-action-btn,
.ov3-dashboard
.ov3-action {

    min-height: 72px !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 2px !important;

    border-radius: 12px !important;
}

/*
 * Keep action text clean.
 */
.ov3-dashboard
.ov3-action-btn,
.ov3-dashboard
.ov3-action {

    font-weight: 600 !important;
}

/* Mobile */
@media (max-width: 700px) {

    .ov3-dashboard
    .orveta-v33-action-icon {

        width: 30px !important;
        height: 30px !important;

        min-width: 30px !important;
        min-height: 30px !important;

    }

    .ov3-dashboard
    .orveta-v33-action-icon svg {

        width: 17px !important;
        height: 17px !important;

    }

}


/* ============================================================
   ORVETA V3.4 — ROLE BASED UI
   ============================================================ */

.orveta-v34-role-hidden {
    display: none !important;
}

/*
 * Quick Action responsive layout.
 * Hidden buttons should not leave empty visual gaps.
 */
.ov3-dashboard .ov3-actions,
.ov3-dashboard .ov3-quick-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/*
 * Premium sidebar appearance.
 */
.layout-side-section .sidebar-item,
.desk-sidebar .sidebar-item {
    transition:
        background 0.18s ease,
        transform 0.18s ease,
        padding-left 0.18s ease !important;
}

.layout-side-section .sidebar-item:hover,
.desk-sidebar .sidebar-item:hover {
    transform: translateX(2px);
}

/*
 * Better section headings.
 */
.layout-side-section .sidebar-group-title,
.desk-sidebar .sidebar-group-title {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

/*
 * Keep full module labels visible.
 */
@media (min-width: 900px) {

    .layout-side-section,
    .desk-sidebar {
        width: 245px !important;
        min-width: 245px !important;
        max-width: 245px !important;
    }

    .layout-side-section .sidebar-item,
    .desk-sidebar .sidebar-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    .layout-side-section .sidebar-item-label,
    .desk-sidebar .sidebar-item-label {
        max-width: none !important;
        width: auto !important;
        min-width: 0 !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

}




/* =========================================================
   ORVETA_V343_PREMIUM_DYNAMIC_UI
   Premium dashboard/sidebar finishing layer.
   ========================================================= */

.ov3-dashboard {
    position: relative;
}

.ov3-dashboard .ov3-card,
.ov3-dashboard .ov3-panel,
.ov3-dashboard .ov3-stat-card,
.ov3-dashboard .ov3-kpi-card {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 16px !important;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 10px 24px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease !important;
}

.ov3-dashboard .ov3-card:hover,
.ov3-dashboard .ov3-panel:hover,
.ov3-dashboard .ov3-stat-card:hover,
.ov3-dashboard .ov3-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 16px 32px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.layout-side-section,
.desk-sidebar {
    padding: 10px 8px !important;
}

.layout-side-section .standard-sidebar-item,
.layout-side-section .sidebar-item,
.desk-sidebar .standard-sidebar-item,
.desk-sidebar .sidebar-item {
    border-radius: 10px !important;
    margin: 3px 4px !important;
    transition:
        background 140ms ease,
        transform 140ms ease,
        box-shadow 140ms ease !important;
}

.layout-side-section .standard-sidebar-item:hover,
.layout-side-section .sidebar-item:hover,
.desk-sidebar .standard-sidebar-item:hover,
.desk-sidebar .sidebar-item:hover {
    transform: translateX(2px);
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.layout-side-section
.standard-sidebar-item.selected,
.layout-side-section
.sidebar-item.selected,
.desk-sidebar
.standard-sidebar-item.selected,
.desk-sidebar
.sidebar-item.selected {
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-orveta-role-hidden="1"] {
    display: none !important;
}

[data-orveta-empty="1"] {
    display: none !important;
}

@media (max-width: 900px) {
    .ov3-dashboard .ov3-card,
    .ov3-dashboard .ov3-panel,
    .ov3-dashboard .ov3-stat-card,
    .ov3-dashboard .ov3-kpi-card {
        border-radius: 13px !important;
    }
}



/* =========================================================
   ORVETA_V344_PRIVACY_UI
   Dashboard Privacy Toggle
   ========================================================= */

.ov3-privacy-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;

    min-height: 32px !important;
    padding: 6px 11px !important;

    border: 1px solid rgba(30, 64, 175, 0.12) !important;
    border-radius: 9px !important;

    background: rgba(255, 255, 255, 0.88) !important;

    color: #475569 !important;

    font-size: 11px !important;
    font-weight: 600 !important;

    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;

    cursor: pointer !important;

    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease !important;
}

.ov3-privacy-toggle:hover {
    transform: translateY(-1px);

    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.ov3-privacy-toggle.active {
    background: #eef5ff !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    color: #1d4ed8 !important;
}

.ov3-privacy-icon {
    font-size: 12px !important;
    line-height: 1 !important;
}

/* ---------------------------------------------------------
   Privacy mode
   --------------------------------------------------------- */

.ov3-dashboard.ov3-privacy-active
.ov3-private-value {
    filter: blur(7px) !important;
    user-select: none !important;
    pointer-events: none !important;
}

/*
 * Prevent accidental text selection of sensitive account
 * information while privacy mode is active.
 */
.ov3-dashboard.ov3-privacy-active
.ov3-account-row strong {
    filter: blur(7px) !important;
    user-select: none !important;
}

/* Company strip */
.ov3-dashboard.ov3-privacy-active
.ov3-company-name,
.ov3-dashboard.ov3-privacy-active
.ov3-current-company,
.ov3-dashboard.ov3-privacy-active
[data-orveta-company] {
    filter: blur(7px) !important;
    user-select: none !important;
}

@media (max-width: 700px) {
    .ov3-privacy-toggle {
        min-height: 30px !important;
        padding: 5px 9px !important;
        font-size: 10px !important;
    }
}


/* =========================================================
   ORVETA V3.5 — FINAL DASHBOARD LAYOUT
   ORVETA_V35_LAYOUT_CSS
   ========================================================= */

.ov3-v35-layout {
    width: 100%;
    min-width: 0;
}

.ov3-v35-top-grid,
.ov3-v35-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

.ov3-v35-top-grid > .ov3-card,
.ov3-v35-lower-grid > .ov3-card {
    min-width: 0;
    height: 100%;
}

.ov3-v35-top-grid .ov3-actions-card {
    margin-bottom: 0;
}

.ov3-v35-business-card {
    min-height: 100%;
}

.ov3-v35-account-card {
    width: 100%;
    margin-bottom: 16px;
}

.ov3-v35-account-card .ov3-account-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
}

.ov3-v35-account-card .ov3-account-row {
    min-width: 0;
}

.ov3-v35-lower-grid .ov3-sales-card {
    min-width: 0;
}

.ov3-sales-chart-container {
    min-width: 0;
}

.ov3-v35-fin-bar {
    width: 0%;
    transition: width .45s ease;
}

/* Keep the six Quick Actions compact and balanced */
.ov3-v35-top-grid .ov3-actions {
    grid-template-columns: repeat(3, 1fr);
}

/* Prevent old V3 grid rules from affecting V3.5 */
.ov3-v35-layout .ov3-main-grid,
.ov3-v35-layout .ov3-lower-grid {
    display: block;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {

    .ov3-v35-top-grid,
    .ov3-v35-lower-grid {
        grid-template-columns: 1fr;
    }

    .ov3-v35-top-grid .ov3-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {

    .ov3-v35-top-grid,
    .ov3-v35-lower-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .ov3-v35-top-grid .ov3-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .ov3-v35-account-card .ov3-account-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .ov3-v35-account-card .ov3-account-row {
        padding: 8px 0;
    }
}

@media (max-width: 480px) {

    .ov3-v35-top-grid .ov3-actions {
        grid-template-columns: 1fr 1fr;
    }

    .ov3-v35-account-card .ov3-account-row {
        gap: 7px;
    }
}


/* =========================================================
   ORVETA V3.5 — COMPACT FINAL DASHBOARD
   ORVETA_V35_COMPACT_FINAL_LAYOUT
   ========================================================= */

/* Main dashboard container */
.ov3-dashboard {
    max-width: 1420px;
}

/* ---------------------------------------------------------
   KPI CARDS — slightly smaller
   --------------------------------------------------------- */

.ov3-kpis {
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.ov3-kpi {
    min-height: 112px !important;
    padding: 15px !important;
    border-radius: 16px !important;
}

.ov3-kpi-icon {
    width: 34px !important;
    height: 34px !important;
}

.ov3-kpi-title {
    font-size: 9px !important;
    margin-top: 8px !important;
}

.ov3-kpi-value {
    font-size: 21px !important;
    margin-top: 8px !important;
}

.ov3-kpi-footer {
    margin-top: 6px !important;
    font-size: 9px !important;
}


/* ---------------------------------------------------------
   COMMON CARDS — compact
   --------------------------------------------------------- */

.ov3-v35-layout .ov3-card {
    padding: 15px !important;
    border-radius: 16px !important;
}

.ov3-v35-layout .ov3-card-title {
    font-size: 14px !important;
}

.ov3-v35-layout .ov3-card-subtitle {
    font-size: 9px !important;
    margin-top: 3px !important;
}

.ov3-v35-layout .ov3-section-icon {
    width: 27px !important;
    height: 27px !important;
    border-radius: 8px !important;
}


/* ---------------------------------------------------------
   TOP ROW
   QUICK ACTIONS + BUSINESS OVERVIEW
   --------------------------------------------------------- */

.ov3-v35-top-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

/* Quick Actions */

.ov3-v35-top-grid .ov3-actions {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.ov3-v35-top-grid .ov3-action {
    min-height: 64px !important;
    border-radius: 11px !important;
    gap: 4px !important;
}

.ov3-v35-top-grid .ov3-action span {
    font-size: 16px !important;
}

.ov3-v35-top-grid .ov3-action strong {
    font-size: 9px !important;
}


/* Business Overview */

.ov3-v35-business-card .ov3-financial {
    margin-top: 13px !important;
}

.ov3-v35-business-card .ov3-fin-row {
    margin-bottom: 11px !important;
}

.ov3-v35-business-card .ov3-fin-row > div:first-child {
    font-size: 10px !important;
    margin-bottom: 5px !important;
}

.ov3-v35-business-card .ov3-progress {
    height: 7px !important;
}


/* ---------------------------------------------------------
   BOTTOM ROW
   SALES + ACTIVITY + ACCOUNT
   --------------------------------------------------------- */

.ov3-v35-lower-grid {
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(0, 1fr)
        minmax(250px, .78fr) !important;

    gap: 12px !important;
    margin-bottom: 12px !important;
}

.ov3-v35-lower-grid > .ov3-card {
    min-height: 275px;
}


/* Sales chart */

.ov3-v35-lower-grid .ov3-chart {
    height: 185px !important;
    margin-top: 12px !important;
}

.ov3-v35-lower-grid .ov3-empty-chart,
.ov3-v35-lower-grid .ov3-empty {
    height: 165px !important;
}


/* Recent activity */

.ov3-v35-lower-grid .ov3-activity {
    margin-top: 8px !important;
}

.ov3-v35-lower-grid .ov3-activity-row {
    padding: 6px 0 !important;
    gap: 7px !important;
}

.ov3-v35-lower-grid .ov3-activity-icon {
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
}

.ov3-v35-lower-grid .ov3-activity-row strong {
    font-size: 9px !important;
}

.ov3-v35-lower-grid .ov3-activity-row small {
    font-size: 8px !important;
}


/* ---------------------------------------------------------
   YOUR ORVETA ACCOUNT
   --------------------------------------------------------- */

.ov3-v35-account-card {
    margin-bottom: 0 !important;
}

.ov3-v35-account-card .ov3-account-list {
    margin-top: 6px !important;
    display: block !important;
}

.ov3-v35-account-card .ov3-account-list > div {
    padding: 6px 0 !important;
    border-bottom: 1px solid #e8eff6;
}

.ov3-v35-account-card .ov3-account-list > div:last-child {
    border-bottom: 0;
}

.ov3-v35-account-card .ov3-account-row {
    font-size: 9px !important;
}

.ov3-v35-account-card .ov3-account-row strong {
    font-size: 9px !important;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.ov3-footer {
    padding-top: 2px !important;
    font-size: 8px !important;
}


/* =========================================================
   LAPTOP / TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .ov3-v35-top-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .ov3-v35-lower-grid {
        grid-template-columns:
            1.15fr
            1fr !important;
    }

    .ov3-v35-lower-grid .ov3-v35-account-card {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .ov3-v35-account-card .ov3-account-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ov3-v35-top-grid {
        grid-template-columns: 1fr !important;
    }

    .ov3-v35-lower-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .ov3-v35-lower-grid .ov3-v35-account-card {
        grid-column: 1 / -1;
    }

    .ov3-kpis {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ov3-v35-account-card .ov3-account-list {
        grid-template-columns: 1fr 1fr !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ov3-dashboard {
        padding: 10px !important;
        max-width: 100% !important;
    }

    .ov3-kpis {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .ov3-kpi {
        min-height: 100px !important;
        padding: 12px !important;
    }

    .ov3-kpi-value {
        font-size: 18px !important;
    }

    .ov3-v35-top-grid,
    .ov3-v35-lower-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .ov3-v35-top-grid .ov3-actions {
        grid-template-columns: 1fr 1fr !important;
    }

    .ov3-v35-lower-grid .ov3-v35-account-card {
        grid-column: auto;
    }

    .ov3-v35-lower-grid > .ov3-card {
        min-height: auto;
    }

    .ov3-v35-account-card .ov3-account-list {
        display: block !important;
    }

    .ov3-v35-account-card .ov3-account-list > div {
        padding: 7px 0 !important;
    }

    .ov3-footer {
        flex-direction: column;
        gap: 5px;
    }
}


/* Small mobile */

@media (max-width: 400px) {

    .ov3-kpis {
        grid-template-columns: 1fr !important;
    }

    .ov3-v35-top-grid .ov3-actions {
        grid-template-columns: 1fr 1fr !important;
    }

    .ov3-v35-layout .ov3-card {
        padding: 12px !important;
    }
}


/* ============================================================
   ORVETA V3.5.1 — TARGETED FINAL DASHBOARD
   ORVETA_V351_TARGETED_FINAL
   ============================================================ */

/* Use the dashboard workspace without changing ERPNext globally */
.ov3-dashboard {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.ov3-v35-layout {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}


/* ------------------------------------------------------------
   KPI ROW
   ------------------------------------------------------------ */

.ov3-kpis {
    width: 100% !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.ov3-kpi {
    min-width: 0 !important;
    min-height: 118px !important;
    padding: 15px !important;
}


/* ------------------------------------------------------------
   QUICK ACTIONS + BUSINESS OVERVIEW
   ------------------------------------------------------------ */

.ov3-v35-top-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
    gap: 12px !important;
}

.ov3-v35-top-grid .ov3-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

.ov3-v35-top-grid .ov3-action {
    min-width: 0 !important;
    min-height: 70px !important;
}


/* ------------------------------------------------------------
   SALES + ACTIVITY + ACCOUNT
   ------------------------------------------------------------ */

.ov3-v35-lower-grid {
    width: 100% !important;
    display: grid !important;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(0, 1fr)
        minmax(250px, .82fr) !important;

    gap: 12px !important;
    margin-bottom: 12px !important;
}

.ov3-v35-lower-grid > .ov3-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 285px;
}


/* Account is now genuinely the third grid item */
.ov3-v35-lower-grid .ov3-v35-account-card {
    grid-column: auto !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}


/* ------------------------------------------------------------
   Readable compact sizing
   ------------------------------------------------------------ */

.ov3-v35-layout .ov3-card {
    padding: 15px !important;
    border-radius: 16px !important;
}

.ov3-v35-layout .ov3-card-title {
    font-size: 14px !important;
}

.ov3-v35-layout .ov3-card-subtitle {
    font-size: 9px !important;
}

.ov3-v35-top-grid .ov3-action strong {
    font-size: 9px !important;
}


/* ------------------------------------------------------------
   LARGE DESKTOP
   ------------------------------------------------------------ */

@media (min-width: 1400px) {

    .ov3-v35-lower-grid {
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(0, 1fr)
            minmax(270px, .82fr) !important;
    }
}


/* ------------------------------------------------------------
   LAPTOP / TABLET
   ------------------------------------------------------------ */

@media (max-width: 1200px) {

    .ov3-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .ov3-v35-top-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .ov3-v35-lower-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .ov3-v35-lower-grid .ov3-v35-account-card {
        grid-column: 1 / -1 !important;
    }
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    .ov3-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ov3-v35-top-grid {
        grid-template-columns: 1fr !important;
    }

    .ov3-v35-lower-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .ov3-v35-lower-grid .ov3-v35-account-card {
        grid-column: 1 / -1 !important;
    }
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 600px) {

    .ov3-dashboard,
    .ov3-v35-layout {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ov3-dashboard {
        padding: 10px !important;
    }

    .ov3-kpis {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .ov3-kpi {
        min-height: 105px !important;
        padding: 12px !important;
    }

    .ov3-v35-top-grid,
    .ov3-v35-lower-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .ov3-v35-top-grid .ov3-actions {
        grid-template-columns: 1fr 1fr !important;
    }

    .ov3-v35-lower-grid .ov3-v35-account-card {
        grid-column: auto !important;
    }

    .ov3-v35-lower-grid > .ov3-card {
        min-height: auto !important;
    }
}


/* ------------------------------------------------------------
   SMALL MOBILE
   ------------------------------------------------------------ */

@media (max-width: 400px) {

    .ov3-kpis {
        grid-template-columns: 1fr !important;
    }

    .ov3-v35-top-grid .ov3-actions {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ORVETA_V351_PREMIUM_ICONS */

.ov3-action-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, #ffffff, #eef5ff) !important;
    box-shadow:
        0 6px 15px rgba(30, 90, 180, 0.10),
        inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.ov3-action-icon svg {
    width: 25px !important;
    height: 25px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.ov3-action.action-green .ov3-action-icon {
    color: #16a66a !important;
}

.ov3-action.action-blue .ov3-action-icon {
    color: #1677ff !important;
}

.ov3-action.action-orange .ov3-action-icon {
    color: #f59e0b !important;
}

.ov3-action.action-purple .ov3-action-icon {
    color: #7c3aed !important;
}

.ov3-action.action-red .ov3-action-icon {
    color: #e5485d !important;
}

.ov3-action:hover .ov3-action-icon {
    transform: translateY(-2px) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}


/* =========================================================
   ORVETA MOBILE SIDEBAR FIX
   Frappe native mobile overlay must not inherit the
   glass/backdrop-filter context from the sidebar shell.
   Desktop glassmorphism remains unchanged.
   ========================================================= */

@media (max-width: 991px) {
    .layout-side-section {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}




/* ============================================================
   ORVETA_SE03_BILLING_ENGINE_CSS
   ============================================================ */

.orveta-billing-engine-host {
    display: flex;
    align-items: center;
}

.orveta-billing-engine {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 4px 7px;
    border: 1px solid rgba(38, 112, 210, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 12px rgba(20, 60, 110, 0.08);
}

.orveta-billing-engine-title {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: #42617f;
}

.orveta-billing-engine-select {
    height: 30px;
    min-width: 135px;
    padding: 0 28px 0 9px;
    border: 1px solid rgba(38, 112, 210, 0.22);
    border-radius: 7px;
    background: #fff;
    color: #17324d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.orveta-billing-engine-save {
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: #1677ff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.orveta-billing-engine-save:hover {
    filter: brightness(0.96);
}

.orveta-billing-engine-save:disabled {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 1100px) {
    .orveta-billing-engine {
        gap: 5px;
    }

    .orveta-billing-engine-title {
        display: none;
    }

    .orveta-billing-engine-select {
        min-width: 125px;
    }
}

@media (max-width: 760px) {
    .orveta-billing-engine-host {
        width: 100%;
    }

    .orveta-billing-engine {
        width: 100%;
    }

    .orveta-billing-engine-select {
        flex: 1;
    }
}
