:root {
    --pharma-bg: linear-gradient(135deg, #dbeafe 0%, #eff6ff 28%, #f8fafc 58%, #ecfdf5 100%);
    --pharma-surface: rgba(255, 255, 255, 0.92);
    --pharma-surface-strong: #ffffff;
    --pharma-border: rgba(38, 70, 83, 0.10);
    --pharma-shadow: 0 20px 45px rgba(31, 61, 91, 0.12);
    --pharma-shadow-soft: 0 10px 24px rgba(31, 61, 91, 0.08);
    --pharma-text: #234;
    --pharma-muted: #64748b;
    --pharma-accent: #0f766e;
    --pharma-accent-dark: #0b5d58;
    --pharma-highlight: #f59e0b;
    --pharma-danger: #dc2626;
}

body {
    min-height: 100vh;
    background: var(--pharma-bg);
    color: var(--pharma-text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#main {
    position: relative;
}

.navbar,
.navbar-default {
    position: sticky;
    top: 0;
    z-index: 1080;
    background: rgba(255, 255, 255, 0.84) !important;
    backdrop-filter: blur(14px);
    border: 0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 14px 0;
}

.navbar-brand,
.navbar-default .navbar-nav > li > a,
.navbar .nav-link {
    color: #1e293b !important;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.navbar .nav-link {
    padding: 10px 14px !important;
    border-radius: 12px;
    font-weight: 700;
}

.navbar-collapse {
    gap: 14px;
}

.nav-mode-wrap {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    overflow: visible;
}

.navbar .grouped-nav,
.navbar .expanded-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    margin-bottom: 0;
    min-width: 0;
}

.navbar .expanded-nav {
    flex-wrap: wrap;
    align-content: center;
}

.navbar .grouped-nav.d-none,
.navbar .expanded-nav.d-none {
    display: none !important;
}

.navbar .grouped-nav .nav-item,
.navbar .expanded-nav .nav-item {
    flex: 0 0 auto;
}

.navbar .navbar-brand {
    flex: 0 0 auto;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-mode-toggle-btn {
    background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
    color: #fff !important;
    white-space: nowrap;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar .nav-link:hover {
    color: var(--pharma-accent) !important;
    background: rgba(15, 118, 110, 0.08);
}

.navbar .dropdown-menu {
    z-index: 1095;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.navbar,
.navbar .container,
.navbar-collapse {
    overflow: visible !important;
}

.navbar .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(15, 118, 110, 0.08);
    color: var(--pharma-accent-dark);
}

#header,
.page-hero {
    margin: 24px auto;
    padding: 22px 24px;
    border: 1px solid var(--pharma-border);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(255, 255, 255, 0.95));
    box-shadow: var(--pharma-shadow-soft);
}

#header h2,
.page-hero h1,
.page-hero h2,
.page-hero h3 {
    margin: 0;
    font-weight: 700;
}

#breadcrumb {
    margin: 22px 0 12px;
    position: relative;
    z-index: 1;
}

#breadcrumb .container {
    position: relative;
}

#breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 16px 20px;
    border: 1px solid rgba(15, 118, 110, 0.10);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.92));
    box-shadow: var(--pharma-shadow-soft);
}

#breadcrumb .breadcrumb > li {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--pharma-muted);
}

#breadcrumb .breadcrumb > li + li:before {
    content: "\203A";
    padding: 0 10px 0 2px;
    color: rgba(100, 116, 139, 0.85);
    font-size: 18px;
    line-height: 1;
}

#breadcrumb .breadcrumb a {
    color: #0f766e;
    text-decoration: none;
}

#breadcrumb .breadcrumb a:hover {
    color: #0b5d58;
}

#breadcrumb .breadcrumb > .active {
    color: #0f172a;
    font-weight: 700;
}

.dataTables_wrapper {
    padding-top: 6px;
}

.dataTables_wrapper .dataTables_filter input {
    min-height: 40px;
    margin-left: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #fff;
}

.dataTables_wrapper .dt-buttons {
    margin-bottom: 14px;
}

.dataTables_wrapper .dt-button,
.dataTables_wrapper .dt-button:focus,
.dataTables_wrapper .dt-button:hover {
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--pharma-accent), #14b8a6) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 16px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 8px 12px !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: var(--pharma-shadow-soft);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--pharma-accent), #14b8a6) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--pharma-muted) !important;
    font-weight: 600;
}

.list-group-item,
.panel,
.card,
.dashboard-card,
.stat-card {
    border: 1px solid var(--pharma-border) !important;
    border-radius: 20px !important;
    background: var(--pharma-surface) !important;
    box-shadow: var(--pharma-shadow-soft);
}

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

.options-sidebar {
    position: sticky;
    top: 24px;
}

.list-group-item {
    margin-bottom: 0;
    color: #1e293b !important;
    font-weight: 600;
}

.list-group-item.active,
.main-color-bg,
.panel-heading.main-color-bg {
    background: linear-gradient(135deg, var(--pharma-accent), #14b8a6) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.panel {
    overflow: hidden;
}

.panel-heading,
.card-header {
    padding: 18px 22px !important;
    border-bottom: 1px solid var(--pharma-border) !important;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.96)) !important;
}

.panel-title,
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.panel-body,
.card-body {
    padding: 22px !important;
}

.table {
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 16px;
    width: 100% !important;
}

.table-responsive-pharma,
.table-responsive {
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-pharma .table,
.table-responsive .table {
    min-width: 640px;
}

.table > thead > tr > th,
.table thead th {
    border-bottom: 0 !important;
    background: rgba(15, 118, 110, 0.08);
    color: #0f172a;
    font-weight: 700;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table td,
.table th {
    border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
    vertical-align: middle !important;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper .dataTables_scroll {
    overflow: auto;
}

.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollBody {
    border-radius: 16px;
}

.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background: linear-gradient(135deg, var(--pharma-accent), #14b8a6) !important;
    box-shadow: none !important;
}

table.dataTable > tbody > tr.child ul.dtr-details,
table.dataTable > tbody > tr.child ul.dtr-details > li {
    width: 100%;
}

table.dataTable > tbody > tr.child .btn,
table.dataTable > tbody > tr.child button,
table.dataTable > tbody > tr.child a {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    touch-action: manipulation;
}

.form-control,
.form-select,
select,
textarea {
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 118, 110, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12) !important;
}

label {
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 600;
}

.btn {
    border-radius: 12px !important;
    border: 0 !important;
    padding: 10px 16px !important;
    font-weight: 700 !important;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--pharma-accent), #14b8a6) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
}

#footer {
    margin: 28px auto 22px;
    padding: 18px;
    text-align: center;
    color: var(--pharma-muted);
}

.branch-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    flex-wrap: nowrap;
}

.branch-switcher .form-select,
.branch-switcher .form-control {
    min-width: 180px;
    height: 40px;
    padding: 6px 12px;
}

.content-section {
    margin-bottom: 24px;
}

@media (max-width: 991.98px) {
    .dataTables_wrapper .dt-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
        margin-bottom: 10px;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        margin: 4px 4px 0 0;
    }
}

@media (max-width: 767.98px) {
    .table-responsive-pharma .table,
    .table-responsive .table {
        min-width: 560px;
    }

    .panel-body,
    .card-body {
        padding: 16px !important;
    }

    .table > thead > tr > th,
    .table thead th,
    .table td,
    .table th {
        white-space: nowrap;
    }
}

.page-hero p {
    margin-top: 8px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.30) !important;
    background: linear-gradient(135deg, #0f172a 0%, #115e59 45%, #0f766e 72%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.dashboard-metrics > [class*="col-"] {
    display: flex;
}

.dashboard-metrics .metric-card {
    width: 100%;
    align-items: flex-start;
    gap: 18px;
    min-height: 168px;
    overflow: hidden;
}

.dashboard-metrics .metric-card .metric-icon {
    flex: 0 0 auto;
}

.dashboard-metrics .metric-card > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-metrics .metric-card h3 {
    margin: 8px 0 6px;
    word-break: break-word;
}

.dashboard-panel {
    height: 100%;
    overflow: hidden;
}

.chart-wrap {
    min-height: 320px;
}

.dashboard-filter-card {
    max-width: 100%;
}

.dashboard-hero .branch-switcher {
    margin-left: 0;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.30), transparent 30%),
                radial-gradient(circle at bottom left, rgba(245,158,11,0.18), transparent 26%);
    pointer-events: none;
}

.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dashboard-hero h2,
.dashboard-hero .text-muted,
.dashboard-hero p {
    color: #fff !important;
}

.dashboard-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-right: 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(251,191,36,0.24), rgba(255,255,255,0.14));
    color: #fbbf24;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.dashboard-filter-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.16);
}

.dashboard-filter-card label,
.dashboard-filter-card i,
.dashboard-filter-card {
    color: #fff !important;
}

.dashboard-filter-card select.form-select {
    background: rgba(255,255,255,0.92) !important;
}

.dashboard-hero-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: min(100%, 360px);
}

.dashboard-live-card {
    position: relative;
    overflow: hidden;
    padding: 18px 20px !important;
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 18px 36px rgba(15, 23, 42, 0.14);
}

.dashboard-live-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.14), rgba(255,255,255,0) 28%),
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0)),
        linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    pointer-events: none;
}

.dashboard-live-card::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

.dashboard-live-topline,
.dashboard-live-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-live-status,
.dashboard-live-branch {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(134, 239, 172, 0.22);
    color: #dcfce7;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.dashboard-live-branch {
    color: rgba(255,255,255,0.66);
}

.dashboard-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 0 0 rgba(34,197,94,0.55),
        0 0 14px rgba(34,197,94,0.45);
    animation: dashboardLivePulse 1.8s ease-out infinite;
}

.dashboard-live-clock,
.dashboard-live-date,
.dashboard-live-signal,
.dashboard-live-meta {
    position: relative;
    z-index: 1;
}

.dashboard-live-heading {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.dashboard-live-overline {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.58);
}

.dashboard-live-clock {
    margin-top: 0;
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #fff;
    text-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.dashboard-live-date {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.74);
}

.dashboard-live-signal-wrap {
    position: relative;
    z-index: 1;
    margin: 18px 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-live-signal {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 34px;
    margin: 0;
}

.dashboard-live-signal span {
    display: block;
    width: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    transition: height 0.45s ease, background 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}

.dashboard-live-signal span:nth-child(1) { height: 28%; }
.dashboard-live-signal span:nth-child(2) { height: 52%; }
.dashboard-live-signal span:nth-child(3) { height: 72%; }
.dashboard-live-signal span:nth-child(4) { height: 42%; }
.dashboard-live-signal span:nth-child(5) { height: 88%; }
.dashboard-live-signal span:nth-child(6) { height: 58%; }
.dashboard-live-signal span:nth-child(7) { height: 36%; }
.dashboard-live-signal span:nth-child(8) { height: 66%; }

.dashboard-live-signal span.is-active {
    background: linear-gradient(180deg, #f8fafc, #d6f5ef);
    box-shadow: 0 0 14px rgba(214,245,239,0.20);
    transform: translateY(-1px);
}

.dashboard-live-meta span {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.70);
}

.dashboard-live-meta strong {
    font-size: 11px;
    color: #f8e7b2;
    letter-spacing: 0.14em;
}

@keyframes dashboardLivePulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(34,197,94,0.55),
            0 0 12px rgba(34,197,94,0.40);
        transform: scale(1);
    }
    70% {
        box-shadow:
            0 0 0 12px rgba(34,197,94,0),
            0 0 18px rgba(34,197,94,0.10);
        transform: scale(1.08);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(34,197,94,0),
            0 0 0 rgba(34,197,94,0);
        transform: scale(1);
    }
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 24px;
    border-radius: 24px !important;
    border-width: 2px !important;
    box-shadow: 0 22px 45px rgba(31, 61, 91, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.metric-card {
    color: inherit !important;
}

a.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.metric-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -30px;
    top: -30px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.06);
}

.metric-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--pharma-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 11px;
    font-weight: 800;
}

.metric-card h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
}

.metric-card p {
    color: var(--pharma-muted);
    margin-bottom: 0;
}

.metric-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 12px 25px rgba(15, 23, 42, 0.12);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 22px;
    margin-bottom: 14px;
}

.metric-border-a { border-color: rgba(37, 99, 235, 0.30) !important; background: linear-gradient(180deg, rgba(239,246,255,0.97), rgba(255,255,255,0.98)) !important; }
.metric-border-b { border-color: rgba(245, 158, 11, 0.34) !important; background: linear-gradient(180deg, rgba(255,251,235,0.97), rgba(255,255,255,0.98)) !important; }
.metric-border-c { border-color: rgba(5, 150, 105, 0.30) !important; background: linear-gradient(180deg, rgba(236,253,245,0.97), rgba(255,255,255,0.98)) !important; }
.metric-border-d { border-color: rgba(8, 145, 178, 0.30) !important; background: linear-gradient(180deg, rgba(236,254,255,0.97), rgba(255,255,255,0.98)) !important; }
.metric-border-e { border-color: rgba(220, 38, 38, 0.28) !important; background: linear-gradient(180deg, rgba(254,242,242,0.97), rgba(255,255,255,0.98)) !important; }
.metric-border-f { border-color: rgba(51, 65, 85, 0.24) !important; background: linear-gradient(180deg, rgba(248,250,252,0.97), rgba(255,255,255,0.98)) !important; }

.icon-a { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.icon-b { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.icon-c { background: linear-gradient(135deg, #059669, #34d399); }
.icon-d { background: linear-gradient(135deg, #0891b2, #67e8f9); }
.icon-e { background: linear-gradient(135deg, #dc2626, #fb7185); }
.icon-f { background: linear-gradient(135deg, #334155, #64748b); }

.dashboard-panel {
    border-radius: 24px !important;
    border-width: 2px !important;
    box-shadow: 0 22px 45px rgba(31, 61, 91, 0.10) !important;
}

.decision-card {
    background: linear-gradient(160deg, #0f172a, #134e4a 65%, #115e59) !important;
    color: #fff !important;
    border-color: rgba(20, 184, 166, 0.30) !important;
}

.decision-card .card-body h5,
.decision-card .card-body i {
    color: #fff !important;
}

.decision-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    gap: 16px;
}

.decision-line span {
    color: rgba(255,255,255,0.78);
    font-weight: 600;
}

.decision-line strong {
    color: #fff;
    font-size: 16px;
}

.panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.panel-icon-primary { color: #2563eb; }
.panel-icon-success { color: #34d399; }
.panel-icon-danger { color: #dc2626; }
.panel-icon-info { color: #0891b2; }
.panel-icon-warning { color: #d97706; }
.panel-icon-neutral { color: #64748b; }

.analytics-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98)) !important;
}

.analytics-panel-primary { border-color: rgba(37, 99, 235, 0.24) !important; }
.analytics-panel-danger { border-color: rgba(220, 38, 38, 0.22) !important; }
.analytics-panel-info { border-color: rgba(14, 165, 233, 0.22) !important; }
.analytics-panel-warning { border-color: rgba(245, 158, 11, 0.25) !important; }
.analytics-panel-neutral { border-color: rgba(100, 116, 139, 0.20) !important; }

.chart-wrap {
    position: relative;
    min-height: 300px;
}

.chart-wrap-lg {
    min-height: 340px;
}

.dashboard-empty-state {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed rgba(148, 163, 184, 0.35);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248,250,252,0.96), rgba(255,255,255,0.96));
    color: var(--pharma-muted);
    padding: 24px;
}

.dashboard-empty-state i {
    font-size: 34px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.dashboard-empty-state h6 {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 8px;
}

.dashboard-empty-state p {
    margin-bottom: 0;
    max-width: 360px;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    min-height: 50px;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 18px rgba(15, 23, 42, 0.05);
    display: flex !important;
    align-items: center;
    padding: 4px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a;
    line-height: 1.4 !important;
    padding-left: 4px !important;
    padding-right: 28px !important;
    font-weight: 600;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #64748b;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

.select2-dropdown {
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.select2-search--dropdown {
    padding: 12px;
    background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(255,255,255,0.98));
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 12px !important;
    min-height: 40px;
    padding: 8px 12px !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    font-weight: 500;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--pharma-accent), #14b8a6) !important;
}

.sales-entry-card {
    position: relative;
    overflow: hidden;
}

.sales-entry-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(20,184,166,0.16), transparent 40%);
    pointer-events: none;
}

.sales-summary tfoot td {
    background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(241,245,249,0.98));
}

@media (max-width: 767px) {
    .navbar .grouped-nav,
    .navbar .expanded-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-mode-wrap {
        width: 100%;
        overflow: visible;
    }

    .branch-switcher {
        margin: 12px 0 0;
        width: 100%;
    }

    .dashboard-hero-side {
        min-width: 0;
        width: 100%;
    }

    .branch-switcher .form-select,
    .branch-switcher .form-control {
        width: 100%;
        min-width: 0;
    }
}
