:root {
    --bzx-bg: #f7f9ff;
    --bzx-card: #ffffff;
    --bzx-card-2: #fbfcff;
    --bzx-border: #e8edf7;
    --bzx-text: #0d1b43;
    --bzx-muted: #6d7897;
    --bzx-purple: #6b4eff;
    --bzx-purple-soft: #efe9ff;
    --bzx-blue: #1f7aff;
    --bzx-cyan: #11b9d8;
    --bzx-green: #14b857;
    --bzx-orange: #ff8b27;
    --bzx-red: #f45050;
    --bzx-shadow: 0 10px 30px rgba(20, 36, 80, 0.06);
    --bzx-dashboard-max: 1460px;
    --bzx-toolbar-space: 20.5rem;
}

.bitzone-dashboard-page {
    position: relative;
    width: 100%;
    max-width: var(--bzx-dashboard-max);
    margin: 0 auto;
}

.bitzone-dashboard-page:has(.bz-exact-dashboard.is-admin-layout) {
    max-width: none;
    width: 100%;
}

.bitzone-dashboard-page:has(.bz-exact-dashboard.is-customer-layout) {
    max-width: 1380px;
}

.bz-exact-dashboard {
    color: var(--bzx-text);
}

.bz-exact-dashboard * {
    box-sizing: border-box;
}

.bz-exact-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.4rem;
    margin: -0.34rem 0 0.72rem;
    min-height: 3.25rem;
    padding-right: var(--bzx-toolbar-space);
    width: 100%;
}

.bz-navbar-dashboard-head {
    display: grid;
    align-content: center;
    gap: 0.12rem;
    width: 100%;
    max-width: min(100%, 32rem);
    min-width: 0;
    overflow: hidden;
}

.bz-navbar-dashboard-head .bz-exact-headline {
    min-height: 0;
    gap: 0.58rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.bz-navbar-dashboard-head .bz-exact-breadcrumbs {
    margin-top: 0;
    font-size: 0.78rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bz-navbar-dashboard-head .bz-exact-view-badge {
    min-height: 36px;
    padding: 0 0.78rem;
    font-size: 0.82rem;
    flex: 0 0 auto;
}

.bz-navbar-dashboard-head .bz-exact-page-title {
    font-size: 1.04rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bz-exact-headline {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 2.95rem;
}

.bz-exact-view-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.15rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(107, 78, 255, 0.22);
    background: #fff;
    color: var(--bzx-purple);
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(107, 78, 255, 0.08);
}

.bz-exact-page-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.15;
}

.bz-exact-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.05rem 0 0;
    color: var(--bzx-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.bz-exact-breadcrumbs span {
    white-space: nowrap;
}

.bz-exact-breadcrumbs .separator {
    color: #a6afc7;
    font-size: 0.9rem;
}

.bz-exact-service-row {
    display: grid;
    grid-template-columns: repeat(var(--bz-service-columns, 8), minmax(0, 1fr));
    gap: 0.62rem;
    margin-bottom: 0.62rem;
    width: 100%;
}

.bz-exact-dashboard.is-admin-layout .bz-exact-service-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.bz-exact-dashboard.is-customer-layout .bz-exact-service-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bz-exact-card {
    background: var(--bzx-card);
    border: 1px solid var(--bzx-border);
    border-radius: 1.1rem;
    box-shadow: var(--bzx-shadow);
}

.bz-service-card {
    min-height: 154px;
    padding: 0.7rem 0.76rem 0.62rem;
    display: flex;
    flex-direction: column;
}

.bz-service-head {
    display: flex;
    align-items: flex-start;
    gap: 0.58rem;
    margin-bottom: 0.55rem;
}

.bz-service-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(33, 56, 122, 0.14));
    flex: 0 0 auto;
}

.bz-service-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.15;
}

.bz-service-subtitle {
    margin: 0.18rem 0 0;
    color: var(--bzx-muted);
    font-size: 0.7rem;
    line-height: 1.3;
    min-height: 1.55rem;
}

.bz-service-value {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-bottom: 0.3rem;
}

.bz-service-value strong {
    font-size: 1.48rem;
    font-weight: 800;
    line-height: 1;
}

.bz-service-status {
    font-size: 0.74rem;
    font-weight: 700;
}

.bz-status-ok {
    color: var(--bzx-green);
}

.bz-status-warn {
    color: var(--bzx-orange);
}

.bz-status-bad {
    color: var(--bzx-red);
}

.bz-service-metrics {
    display: grid;
    grid-template-columns: repeat(var(--bz-metric-columns, 3), minmax(0, 1fr));
    gap: 0.28rem;
    margin-bottom: 0;
}

.bz-service-metrics .metric-label {
    display: block;
    color: var(--bzx-muted);
    font-size: 0.61rem;
    margin-bottom: 0.12rem;
}

.bz-service-metrics .metric-value {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bzx-text);
}

.bz-service-sparkline {
    width: 100%;
    height: 28px;
    display: block;
    margin-top: auto;
}

.bz-service-sparkline polyline {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bz-heartbeat-card {
    padding: 0.7rem 0.76rem;
    display: flex;
    flex-direction: column;
    min-height: 154px;
}

.bz-heartbeat-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    flex: 1;
}

.bz-donut {
    --p1: 0deg;
    --p2: 0deg;
    width: 62px;
    height: 96px;
    border-radius: 999px;
    background:
        conic-gradient(
            var(--bzx-green) 0deg var(--p1),
            #f7c65c var(--p1) var(--p2),
            var(--bzx-red) var(--p2) 360deg
        );
    display: grid;
    place-items: center;
    position: relative;
}

.bz-donut::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: #fff;
}

.bz-donut-center {
    position: relative;
    z-index: 1;
    text-align: center;
}

.bz-donut-center strong {
    display: block;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.28rem;
}

.bz-donut-center span {
    display: block;
    color: var(--bzx-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.05;
}

.bz-legend-list {
    display: grid;
    gap: 0.26rem;
}

.bz-legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--bzx-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.bz-legend-item b {
    color: var(--bzx-text);
    min-width: 1.5rem;
}

.bz-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.bz-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.62rem;
}

.bz-overview-row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 0.62rem;
    align-items: stretch;
    margin-bottom: 0.62rem;
}

.bz-overview-row > .bz-panel {
    min-width: 0;
}

.bz-overview-business .bz-kpi-grid {
    gap: 0.5rem;
}

.bz-overview-business .bz-kpi-card {
    min-height: 76px;
    padding: 0.58rem;
}

.bz-overview-traffic .bz-inline-legend,
.bz-overview-campaign .bz-campaign-layout,
.bz-overview-activity .bz-activity-list {
    margin-top: 0.25rem;
}

.bz-exact-dashboard.is-customer-layout .bz-dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 1.1fr);
}

.bz-customer-primary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bz-customer-summary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.62rem;
    margin-top: 0.62rem;
}

.bz-dashboard-grid + .bz-dashboard-grid {
    margin-top: 0.62rem;
}

.bz-grid-span-2 {
    grid-column: span 2;
}

.bz-panel {
    padding: 0.7rem 0.76rem 0.76rem;
    min-width: 0;
}

.bz-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.58rem;
    margin-bottom: 0.5rem;
}

.bz-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.bz-panel-title small {
    color: var(--bzx-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.bz-panel-action,
.bz-panel-action button {
    color: var(--bzx-purple);
    background: #fff;
    border: 1px solid var(--bzx-border);
    border-radius: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.32rem 0.62rem;
    text-decoration: none;
}

.bz-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.54rem;
}

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

.bz-kpi-card {
    background: linear-gradient(180deg, #fff 0%, var(--bzx-card-2) 100%);
    border: 1px solid var(--bzx-border);
    border-radius: 0.95rem;
    padding: 0.62rem;
    display: flex;
    align-items: flex-start;
    gap: 0.62rem;
    min-height: 84px;
}

.bz-kpi-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 10px rgba(33, 56, 122, 0.12));
}

.bz-kpi-label {
    color: var(--bzx-muted);
    font-size: 0.73rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.bz-kpi-value {
    font-size: clamp(1.45rem, 1.2vw + 1rem, 1.9rem);
    font-weight: 800;
    line-height: 1.02;
    margin-bottom: 0.25rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.bz-overview-business .bz-kpi-value {
    font-size: clamp(1.3rem, 1vw + 0.95rem, 1.75rem);
}

.bz-kpi-meta {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.bz-kpi-submeta {
    color: var(--bzx-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.bz-inline-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.bz-inline-legend .item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bzx-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.bz-inline-legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.bz-svg-chart {
    width: 100%;
    height: auto;
    display: block;
}

.bz-chart-caption {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    margin-top: 0.25rem;
    color: var(--bzx-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.bz-chart-caption span {
    text-align: center;
}

.bz-campaign-layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.75rem;
}

.bz-campaign-donut {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin: 0 auto;
    display: grid;
    place-items: center;
    background: var(--bzx-purple-soft);
}

.bz-campaign-donut::before {
    content: "";
    position: absolute;
}

.bz-campaign-donut-inner {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(13, 27, 67, 0.04);
}

.bz-campaign-donut-inner strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.bz-campaign-donut-inner span {
    display: block;
    color: var(--bzx-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.bz-campaign-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
}

.bz-campaign-legend-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bzx-muted);
}

.bz-campaign-legend-row b {
    color: var(--bzx-text);
}

.bz-activity-list {
    display: grid;
    gap: 0.75rem;
}

.bz-sms-activity-list {
    gap: 0.55rem;
}

.bz-panel-note {
    color: var(--bzx-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    margin: -0.1rem 0 0.55rem;
}

.bz-admin-chart-host {
    min-height: 230px;
}

.bz-admin-stats-host {
    min-height: 210px;
}

.bz-admin-analytics-row,
.bz-admin-stats-row {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.bz-admin-analytics-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1.15fr);
}

.bz-admin-stats-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.18fr);
}

.bz-compact-chart-panel .apexcharts-canvas,
.bz-compact-chart-panel .apexcharts-svg {
    max-width: 100% !important;
}

.bz-sender-requests-table {
    min-width: 100%;
}

.bz-activity-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: flex-start;
}

.bz-activity-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-top: 0.2rem;
    background: #dce4fb;
    position: relative;
}

.bz-activity-icon::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bzx-green);
}

.bz-activity-title {
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.12rem;
}

.bz-activity-meta {
    color: var(--bzx-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
}

.bz-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.bz-badge.ok {
    background: #e6f8e8;
    color: #1a9f47;
}

.bz-badge.pending {
    background: #fff3dd;
    color: #e48c10;
}

.bz-badge.bad {
    background: #ffe9eb;
    color: #db4e4e;
}

.bz-table-shell {
    overflow-x: auto;
}

.bz-table-exact {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.bz-table-exact th,
.bz-table-exact td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid #eef2fb;
    text-align: left;
    font-size: 0.76rem;
}

.bz-table-exact th {
    color: var(--bzx-muted);
    font-weight: 800;
    background: #fbfcff;
}

.bz-table-exact td {
    color: var(--bzx-text);
    font-weight: 600;
}

.bz-table-exact tbody tr:last-child td {
    border-bottom: 0;
}

.bz-top-customers {
    display: grid;
    gap: 0.85rem;
}

.bz-top-customer {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) minmax(160px, 1.4fr) auto auto;
    gap: 0.65rem;
    align-items: center;
}

.bz-top-customer .rank {
    font-size: 0.78rem;
    font-weight: 800;
}

.bz-top-customer .name {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bz-progress-track {
    width: 100%;
    height: 5px;
    background: #eef1fb;
    border-radius: 999px;
    overflow: hidden;
}

.bz-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6552ff 0%, #7c5bff 100%);
}

.bz-top-customer .value,
.bz-top-customer .percent {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--bzx-text);
}

.bz-service-health-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.bz-service-health-table th,
.bz-service-health-table td {
    padding: 0.52rem 0.4rem;
    border-bottom: 1px solid #eef2fb;
    text-align: left;
    font-size: 0.77rem;
}

.bz-service-health-table th {
    color: var(--bzx-muted);
    font-weight: 800;
}

.bz-service-health-table td {
    color: var(--bzx-text);
    font-weight: 700;
}

.bz-service-health-table tr:last-child td {
    border-bottom: 0;
}

.bz-uptime {
    color: var(--bzx-text);
}

.bz-health-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.bz-usage-meter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bz-usage-meter .bz-progress-track {
    min-width: 110px;
}

.bz-account-summary {
    display: grid;
    gap: 0.95rem;
}

.bz-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
}

.bz-summary-label {
    color: var(--bzx-text);
    font-size: 0.8rem;
    font-weight: 700;
}

.bz-summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: #eef1ff;
    color: var(--bzx-purple);
    font-size: 0.7rem;
    font-weight: 800;
}

.bz-empty-note {
    color: var(--bzx-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.header-navbar .bz-toolbar-lang-link,
.header-navbar .bz-toolbar-user-link {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    border-radius: 0.95rem !important;
    padding: 0.35rem 0.55rem !important;
    gap: 0.55rem !important;
}

.header-navbar .bz-global-toolbar-panel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 1rem !important;
    padding: 0.24rem 0.55rem !important;
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(226, 233, 247, 0.95) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07) !important;
    margin-left: -0.6rem !important;
}

.header-navbar .bz-global-toolbar-panel .navbar-nav {
    gap: 1.18rem !important;
}

.header-navbar .bz-global-toolbar-panel .navbar-nav > li {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.header-navbar .bz-global-toolbar-panel .dropdown-notification > .nav-link,
.header-navbar .bz-global-toolbar-panel .dropdown-notification,
.header-navbar .bz-global-toolbar-panel .dropdown-notification .nav-link {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.header-navbar .bz-global-toolbar-panel .dropdown-language + .dropdown-notification,
.header-navbar .bz-global-toolbar-panel .dropdown-notification + .dropdown-user {
    margin-left: 0.42rem !important;
}

.header-navbar .bz-toolbar-lang-link .header-3d-icon {
    width: 20px !important;
    height: 20px !important;
}

.header-navbar .bz-toolbar-lang-label {
    color: var(--bzx-text);
    font-size: 0.76rem;
    font-weight: 700;
}

.header-navbar .bz-toolbar-user-link {
    padding-right: 0 !important;
}

.header-user-block {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-width: 0;
    padding: 0.22rem 0.34rem 0.22rem 0.28rem;
    border-radius: 0.92rem;
    background: #fff;
    border: 1px solid rgba(226, 233, 247, 0.95);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.header-user-logo-shell {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e8edf7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.header-user-logo {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.header-user-copy {
    display: grid;
    gap: 0;
    min-width: 0;
}

.header-user-copy strong,
.header-user-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-copy strong {
    color: var(--bzx-text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
}

.header-user-copy small {
    color: var(--bzx-muted);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.05;
    display: none;
}

.header-navbar .bz-toolbar-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.header-navbar .bz-toolbar-user-meta strong {
    color: var(--bzx-text);
    font-size: 0.78rem;
    font-weight: 800;
}

.header-navbar .bz-toolbar-user-meta small {
    color: var(--bzx-muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.header-navbar .bz-toolbar-caret {
    color: var(--bzx-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

body.vertical-layout .main-menu .navbar-header {
    height: 92px !important;
    padding: 18px 22px 8px !important;
}

body.vertical-layout .main-menu .navbar-header .navbar-brand {
    min-height: 58px !important;
}

body.vertical-layout .main-menu .brand-logo img {
    max-width: 150px !important;
    max-height: 26px !important;
    width: auto !important;
    object-fit: contain !important;
}

body.vertical-layout .header-navbar .navbar-container.content,
body.vertical-layout .header-navbar .bz-navbar-grid {
    grid-template-columns: minmax(0, 70%) minmax(0, 30%) !important;
    align-items: center !important;
    min-height: 74px !important;
    column-gap: 12px !important;
}

body.vertical-layout .header-navbar .bz-header-right,
body.vertical-layout .header-navbar .navbar-nav.align-items-center.ms-auto {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 0.75rem !important;
}

body.vertical-layout .header-navbar .bz-toolbar-lang-link,
body.vertical-layout .header-navbar .bz-toolbar-user-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    overflow: visible !important;
}

body.vertical-layout .header-navbar .bz-toolbar-lang-link {
    padding: 0 !important;
}

body.vertical-layout .header-navbar .bz-toolbar-lang-link .header-language-icon {
    width: 108px !important;
    height: 38px !important;
    object-fit: contain !important;
}

body.vertical-layout .header-navbar .dropdown-notification > .nav-link {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 999px !important;
}

body.vertical-layout .header-navbar .dropdown-notification > .nav-link .header-notification-icon {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
}

body.vertical-layout .header-navbar .bz-toolbar-user-link {
    padding: 0 !important;
}

body.vertical-layout .header-navbar .header-user-icon-shell,
body.vertical-layout .header-navbar .dropdown-user .avatar,
body.vertical-layout .header-navbar .dropdown-user .avatar-content {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.vertical-layout .header-navbar .header-user-art {
    width: 118px !important;
    height: 44px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    filter: none !important;
    box-shadow: none !important;
}

body.vertical-layout .header-navbar .bz-header-right {
    justify-self: stretch !important;
    margin-right: 0.85rem !important;
}

body.bitzone-3d-theme.vertical-layout .header-navbar .navbar-container.content,
body.bitzone-3d-theme.vertical-layout .header-navbar .bz-navbar-grid,
.bitzone-3d-theme .header-navbar .navbar-container.content {
    grid-template-columns: minmax(0, 70%) minmax(0, 30%) !important;
    align-items: center !important;
    justify-content: normal !important;
}

body.bitzone-3d-theme.vertical-layout .header-navbar .bz-header-right,
body.bitzone-3d-theme.vertical-layout .header-navbar .nav.navbar-nav.align-items-center.ms-auto,
.bitzone-3d-theme .header-navbar .bz-header-right,
.bitzone-3d-theme .header-navbar .nav.navbar-nav.align-items-center.ms-auto {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: stretch !important;
    gap: 0 !important;
    overflow: visible !important;
    margin-left: 0 !important;
}

.bitzone-3d-theme .header-navbar .nav.navbar-nav.align-items-center.ms-auto > li,
.bitzone-3d-theme .header-navbar .nav.navbar-nav.align-items-center.ms-auto > .nav-item,
.bitzone-3d-theme .header-navbar .dropdown-language,
.bitzone-3d-theme .header-navbar .dropdown-notification,
.bitzone-3d-theme .header-navbar .dropdown-user {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
}

.bitzone-3d-theme .header-navbar .dropdown-language > .nav-link,
.bitzone-3d-theme .header-navbar .dropdown-notification > .nav-link,
.bitzone-3d-theme .header-navbar .dropdown-user > .nav-link,
.bitzone-3d-theme .header-navbar .dropdown-user-link {
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 1800px) {
    :root {
        --bzx-dashboard-max: 1560px;
    }
}

@media (max-width: 1440px) {
    :root {
        --bzx-dashboard-max: 1360px;
        --bzx-toolbar-space: 20rem;
    }

    .bz-exact-service-row,
    .bz-exact-dashboard.is-admin-layout .bz-exact-service-row,
    .bz-exact-dashboard.is-customer-layout .bz-exact-service-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bz-overview-row,
    .bz-admin-analytics-row,
    .bz-admin-stats-row,
    .bz-dashboard-grid,
    .bz-customer-summary-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .bz-grid-span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 1280px) {
    :root {
        --bzx-dashboard-max: 1160px;
        --bzx-toolbar-space: 18.5rem;
    }

    .bz-exact-page-title {
        font-size: 1.28rem;
    }

    .bz-service-card,
    .bz-heartbeat-card,
    .bz-panel {
        padding: 0.9rem;
    }

    .bz-service-card,
    .bz-heartbeat-card {
        min-height: 168px;
    }

    .bz-service-icon {
        width: 46px;
        height: 46px;
    }

    .bz-service-title {
        font-size: 0.9rem;
    }

    .bz-service-value strong {
        font-size: 1.35rem;
    }
}

@media (max-width: 1200px) {
    :root {
        --bzx-toolbar-space: 0rem;
    }

    .bz-exact-service-row,
    .bz-overview-row,
    .bz-admin-analytics-row,
    .bz-admin-stats-row,
    .bz-dashboard-grid,
    .bz-customer-summary-row,
    .bz-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .bz-grid-span-2 {
        grid-column: auto;
    }

    .bz-campaign-layout {
        grid-template-columns: 1fr;
    }

    .bitzone-dashboard-page {
        max-width: 100%;
    }

    .bz-exact-header {
        padding-right: 0;
        min-height: 0;
    }
}

@media (max-width: 1024px) {
    .bz-exact-service-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bz-overview-row,
    .bz-admin-analytics-row,
    .bz-admin-stats-row,
    .bz-dashboard-grid,
    .bz-customer-summary-row {
        grid-template-columns: 1fr;
    }

    .bz-grid-span-2 {
        grid-column: auto;
    }

    .bz-kpi-grid,
    .bz-kpi-grid.bz-kpi-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .bz-top-customer {
        grid-template-columns: 18px minmax(0, 1fr) minmax(120px, 1fr) auto auto;
    }
}

@media (max-width: 768px) {
    .bz-exact-service-row,
    .bz-overview-row,
    .bz-admin-analytics-row,
    .bz-admin-stats-row,
    .bz-customer-summary-row,
    .bz-kpi-grid,
    .bz-kpi-grid.bz-kpi-grid-2 {
        grid-template-columns: 1fr;
    }

    .bz-panel {
        padding: 0.85rem;
    }

    .bz-table-exact {
        min-width: 680px;
    }
}

@media (max-width: 767px) {
    .bz-exact-header,
    .bz-exact-headline,
    .bz-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bz-exact-header {
        padding-right: 0;
        min-height: 0;
    }

    .bz-exact-service-row,
    .bz-overview-row,
    .bz-admin-analytics-row,
    .bz-admin-stats-row,
    .bz-dashboard-grid,
    .bz-customer-summary-row,
    .bz-kpi-grid,
    .bz-kpi-grid.bz-kpi-grid-2 {
        grid-template-columns: 1fr;
    }

    .bz-top-customer {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .bz-top-customer .value,
    .bz-top-customer .percent,
    .bz-top-customer .bz-progress-track {
        grid-column: 2;
    }
}

/* Keep the dashboard navbar toolbar inside the visible header width. */
body.bitzone-3d-theme.vertical-layout .header-navbar .bz-header-right,
.bitzone-3d-theme .header-navbar .bz-header-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 1rem !important;
    padding-left: 0.5rem !important;
    overflow: visible !important;
    justify-self: stretch !important;
    display: flex !important;
    justify-content: flex-start !important;
}

body.bitzone-3d-theme.vertical-layout .header-navbar .bz-global-toolbar-panel,
.bitzone-3d-theme .header-navbar .bz-global-toolbar-panel {
    width: fit-content !important;
    max-width: calc(100% - 0.5rem) !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
    flex: 0 1 auto !important;
}

body.bitzone-3d-theme.vertical-layout .header-navbar .bz-global-toolbar-panel .navbar-nav,
.bitzone-3d-theme .header-navbar .bz-global-toolbar-panel .navbar-nav {
    width: auto !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
}
