/*
 * GOXPRESS CMS UI 2.0
 * Global presentation layer for Encore/Laravel Admin.
 * Keep business views semantic; shared components are normalized here.
 */

:root {
    --gx2-primary: #175cd3;
    --gx2-primary-dark: #124aa8;
    --gx2-primary-soft: #edf4ff;
    --gx2-primary-faint: #f6f9ff;
    --gx2-accent: #f97316;
    --gx2-accent-dark: #c94f0c;
    --gx2-accent-soft: #fff3e8;
    --gx2-success: #17875d;
    --gx2-success-soft: #eaf8f1;
    --gx2-warning: #b76e00;
    --gx2-warning-soft: #fff7df;
    --gx2-danger: #d92d20;
    --gx2-danger-soft: #fff0ee;
    --gx2-info: #087ea4;
    --gx2-info-soft: #eaf8fc;
    --gx2-ink: #17233c;
    --gx2-text: #344054;
    --gx2-muted: #667085;
    --gx2-subtle: #98a2b3;
    --gx2-line: #dfe6ef;
    --gx2-line-soft: #edf1f6;
    --gx2-canvas: #f5f7fb;
    --gx2-surface: #ffffff;
    --gx2-sidebar: #0c2856;
    --gx2-sidebar-deep: #081d40;
    --gx2-sidebar-hover: #173b70;
    --gx2-radius-sm: 7px;
    --gx2-radius: 10px;
    --gx2-radius-lg: 14px;
    --gx2-shadow-xs: 0 1px 2px rgba(16, 35, 66, 0.05);
    --gx2-shadow-sm: 0 4px 14px rgba(16, 35, 66, 0.07);
    --gx2-shadow: 0 10px 30px rgba(16, 35, 66, 0.09);
    --gx2-sidebar-width: 272px;
    --gx2-topbar-height: 68px;
    --gx2-content-gutter: clamp(16px, 1.15vw, 20px);
    --gx2-transition: 160ms ease;
    --gx-bg: var(--gx2-canvas);
    --gx-surface: var(--gx2-surface);
    --gx-ink: var(--gx2-ink);
    --gx-muted: var(--gx2-muted);
    --gx-line: var(--gx2-line);
    --gx-sidebar: var(--gx2-sidebar);
    --gx-primary: var(--gx2-primary);
    --gx-primary-2: var(--gx2-primary);
    --gx-blue: var(--gx2-primary);
    --gx-orange: var(--gx2-accent);
    --gx-coral: var(--gx2-accent);
    --gx-radius: var(--gx2-radius);
    --gx-shadow: var(--gx2-shadow-sm);
    --main-color: var(--gx2-primary);
}

html {
    background: var(--gx2-canvas);
}

body,
button,
input,
select,
textarea {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body {
    background: var(--gx2-canvas) !important;
    color: var(--gx2-text);
    font-size: 14px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gx2-primary);
    transition: color var(--gx2-transition), background-color var(--gx2-transition), border-color var(--gx2-transition), box-shadow var(--gx2-transition);
}

a:hover,
a:focus {
    color: var(--gx2-primary-dark);
    outline: 0;
    text-decoration: none;
}

::selection {
    background: #cfe0ff;
    color: var(--gx2-ink);
}

/* Application shell */
.wrapper,
.content-wrapper,
.right-side {
    background: var(--gx2-canvas) !important;
}

.content-wrapper {
    border-left: 0 !important;
    min-height: calc(100vh - var(--gx2-topbar-height)) !important;
    min-width: 0;
    padding-top: 0;
    position: relative;
}

/* AdminLTE adds another left border to the content shell. The sidebar already
   owns this divider, so keeping both creates a doubled/misaligned seam. */
.skin-blue-light .content-wrapper,
.skin-blue-light .main-footer {
    border-left: 0 !important;
}

.fixed .content-wrapper,
.fixed .right-side {
    padding-top: var(--gx2-topbar-height) !important;
}

.main-header {
    max-height: var(--gx2-topbar-height);
}

.main-header .logo,
.main-header .navbar {
    min-height: var(--gx2-topbar-height);
}

.main-header .logo {
    background: var(--gx2-surface) !important;
    border-bottom: 1px solid var(--gx2-line) !important;
    border-right: 1px solid var(--gx2-line) !important;
    color: var(--gx2-ink) !important;
    height: var(--gx2-topbar-height);
    line-height: var(--gx2-topbar-height);
    padding: 0 !important;
    width: var(--gx2-sidebar-width);
}

.main-header .logo:hover,
.skin-blue-light .main-header .logo:hover {
    background: var(--gx2-surface) !important;
}

.main-header .logo .logo-lg {
    align-items: center;
    display: flex !important;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    padding: 0 18px;
    width: 100%;
}

.main-header .logo-mini {
    padding: 0 8px;
}

.gx-cms-logo-img {
    display: block;
    height: 40px;
    margin: 0 auto;
    max-width: 194px;
    object-fit: contain;
}

.gx-cms-mini-img {
    height: 34px;
    margin: 0 auto;
    width: 34px;
}

.sidebar-mini.sidebar-collapse .main-header .logo .logo-mini {
    align-items: center;
    display: flex !important;
    height: 100%;
    justify-content: center;
    margin: 0 !important;
    padding: 0;
}

.main-header .navbar,
.skin-blue-light .main-header .navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid var(--gx2-line) !important;
    box-shadow: 0 4px 18px rgba(16, 35, 66, 0.05) !important;
    margin-left: var(--gx2-sidebar-width);
}

.main-header .navbar .sidebar-toggle {
    align-items: center;
    color: var(--gx2-text) !important;
    display: inline-flex;
    height: var(--gx2-topbar-height);
    justify-content: center;
    padding: 0;
    width: 58px;
}

.main-header .navbar .sidebar-toggle::before {
    font-size: 17px;
}

.skin-blue-light .main-header .navbar .sidebar-toggle:hover,
.skin-blue-light .main-header .navbar .nav > li > a:hover,
.skin-blue-light .main-header .navbar .nav > li > a:focus,
.skin-blue-light .main-header .navbar .nav .open > a {
    background: var(--gx2-primary-soft) !important;
    color: var(--gx2-primary) !important;
}

.main-header .navbar-custom-menu,
.main-header .navbar-right {
    height: var(--gx2-topbar-height);
}

.main-header .navbar .nav > li > a {
    align-items: center;
    color: var(--gx2-text) !important;
    display: flex;
    gap: 8px;
    min-height: var(--gx2-topbar-height);
    padding: 0 16px;
}

.main-header .navbar .nav > li > a .label {
    border: 2px solid #fff;
    min-width: 19px;
    padding: 3px 5px;
    right: 5px;
    top: 9px;
}

.navbar-nav > .user-menu > .dropdown-toggle {
    font-weight: 650;
}

.navbar-nav > .user-menu > .dropdown-toggle .user-image {
    background: var(--gx2-primary-soft);
    border: 1px solid #cbdcff !important;
    height: 34px;
    margin-top: 0;
    object-fit: cover;
    padding: 2px;
    width: 34px;
}

.navbar-nav > .user-menu > .dropdown-menu {
    margin-top: 8px;
    min-width: 280px;
}

.skin-blue-light .main-header li.user-header,
.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    background: var(--gx2-sidebar) !important;
    min-height: 176px;
    padding: 22px;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > img {
    border: 3px solid rgba(255, 255, 255, 0.25) !important;
    height: 82px;
    padding: 5px;
    width: 82px;
}

.navbar-nav > .user-menu > .dropdown-menu > .user-footer {
    background: #f8fafc;
    border-radius: 0 0 var(--gx2-radius) var(--gx2-radius);
    padding: 12px;
}

/* Account dropdown */
.main-header .navbar .nav > li > a.gx-topbar-account {
    gap: 9px;
    padding: 0 15px;
}

.gx-topbar-account__avatar {
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    position: relative;
    width: 36px;
}

.navbar-nav > .user-menu > .dropdown-toggle .gx-topbar-account__avatar .user-image {
    float: none;
    height: 36px;
    margin: 0;
    width: 36px;
}

.gx-topbar-account__avatar > i {
    background: #26b36f;
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: 0;
    height: 9px;
    position: absolute;
    right: 0;
    width: 9px;
}

.gx-topbar-account__copy {
    display: flex !important;
    flex-direction: column;
    line-height: 1.15;
    max-width: 150px;
    min-width: 0;
}

.gx-topbar-account__copy strong,
.gx-topbar-account__copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-topbar-account__copy strong {
    color: var(--gx2-ink);
    font-size: 12px;
    font-weight: 750;
}

.gx-topbar-account__copy small {
    color: var(--gx2-muted);
    font-size: 9px;
    margin-top: 3px;
}

.gx-topbar-account__chevron {
    color: var(--gx2-subtle);
    font-size: 11px;
    margin-left: 2px;
    transition: transform var(--gx2-transition);
}

.user-menu.open .gx-topbar-account__chevron {
    transform: rotate(180deg);
}

.navbar-nav > .user-menu > .dropdown-menu.gx-account-menu {
    border: 1px solid var(--gx2-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 44px rgba(16, 35, 66, 0.18) !important;
    margin-top: 8px;
    min-width: 320px;
    overflow: hidden;
    padding: 0;
    right: 10px;
    width: 320px;
}

.gx-account-menu::before {
    background: var(--gx2-primary);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gx-account-menu__profile {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    display: flex;
    gap: 13px;
    min-height: 104px;
    padding: 20px 18px 16px;
}

.gx-account-menu__avatar {
    display: inline-flex;
    flex: 0 0 58px;
    height: 58px;
    position: relative;
    width: 58px;
}

.gx-account-menu__avatar img {
    background: var(--gx2-primary-soft);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cbdcff, 0 7px 16px rgba(23, 92, 211, 0.14);
    height: 58px;
    object-fit: cover;
    padding: 2px;
    width: 58px;
}

.gx-account-menu__avatar > i {
    background: #26b36f;
    border: 3px solid #fff;
    border-radius: 50%;
    bottom: 0;
    height: 13px;
    position: absolute;
    right: 0;
    width: 13px;
}

.gx-account-menu__identity {
    display: block;
    flex: 1 1 auto;
    line-height: 1.25;
    min-width: 0;
}

.gx-account-menu__identity > small,
.gx-account-menu__identity > strong,
.gx-account-menu__identity > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-account-menu__identity > small {
    color: var(--gx2-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.gx-account-menu__identity > strong {
    color: var(--gx2-ink);
    font-size: 16px;
    font-weight: 780;
}

.gx-account-menu__identity > span {
    color: var(--gx2-muted);
    font-size: 11px;
    margin-top: 4px;
}

.gx-account-menu__divider {
    background: var(--gx2-line-soft);
    height: 1px;
    margin: 0 16px;
}

.gx-account-menu__actions {
    padding: 8px;
}

.navbar-nav > .user-menu > .dropdown-menu.gx-account-menu > .gx-account-menu__actions > a {
    align-items: center;
    border-radius: 9px;
    color: var(--gx2-text) !important;
    display: flex;
    gap: 10px;
    min-height: 58px;
    padding: 9px 10px;
}

.navbar-nav > .user-menu > .dropdown-menu.gx-account-menu > .gx-account-menu__actions > a:hover,
.navbar-nav > .user-menu > .dropdown-menu.gx-account-menu > .gx-account-menu__actions > a:focus {
    background: var(--gx2-primary-soft) !important;
    color: var(--gx2-primary-dark) !important;
}

.gx-account-menu__action-icon {
    align-items: center;
    background: var(--gx2-primary-soft);
    border-radius: 9px;
    color: var(--gx2-primary);
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.gx-account-menu__action-copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.gx-account-menu__action-copy strong,
.gx-account-menu__action-copy small {
    display: block;
}

.gx-account-menu__action-copy strong {
    color: var(--gx2-ink);
    font-size: 12px;
    font-weight: 720;
}

.gx-account-menu__action-copy small {
    color: var(--gx2-muted);
    font-size: 10px;
    margin-top: 2px;
}

.gx-account-menu__actions > a > .fa {
    color: var(--gx2-subtle);
    margin: 0 !important;
}

.navbar-nav > .user-menu > .dropdown-menu.gx-account-menu > .gx-account-menu__actions > a.is-danger:hover,
.navbar-nav > .user-menu > .dropdown-menu.gx-account-menu > .gx-account-menu__actions > a.is-danger:focus {
    background: var(--gx2-accent-soft) !important;
    color: var(--gx2-accent-dark) !important;
}

.gx-account-menu__actions > a.is-danger .gx-account-menu__action-icon {
    background: var(--gx2-accent-soft);
    color: var(--gx2-accent);
}

.gx-theme-toggle-item {
    align-items: center;
    display: flex !important;
    height: var(--gx2-topbar-height);
    padding: 0 3px;
}

.gx-theme-toggle {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid var(--gx2-line);
    border-radius: 10px;
    color: var(--gx2-muted);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    outline: 0;
    padding: 0;
    transition: background-color var(--gx2-transition), border-color var(--gx2-transition), color var(--gx2-transition), transform var(--gx2-transition);
    width: 38px;
}

.gx-theme-toggle:hover,
.gx-theme-toggle:focus {
    background: var(--gx2-primary-soft);
    border-color: #bfd3f6;
    color: var(--gx2-primary);
    transform: translateY(-1px);
}

.gx-theme-toggle__moon,
.gx-theme-toggle__sun {
    align-items: center;
    font-size: 14px;
    height: 16px;
    justify-content: center;
    line-height: 1 !important;
    margin: 0 !important;
    width: 16px;
}

html:not([data-gx-theme="dark"]) .gx-theme-toggle__moon {
    display: inline-flex !important;
}

html:not([data-gx-theme="dark"]) .gx-theme-toggle__sun {
    display: none !important;
}

html[data-gx-theme="dark"] .gx-theme-toggle__moon {
    display: none !important;
}

html[data-gx-theme="dark"] .gx-theme-toggle__sun {
    display: inline-flex !important;
}

/* Sidebar */
.main-sidebar,
.left-side,
.skin-blue-light .main-sidebar {
    background: #ffffff !important;
    border-right: 1px solid var(--gx2-line) !important;
    box-shadow: 8px 0 26px rgba(16, 35, 66, 0.06);
    padding-top: var(--gx2-topbar-height);
    width: var(--gx2-sidebar-width);
}

.main-sidebar .sidebar {
    height: calc(100vh - var(--gx2-topbar-height));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 0 22px;
    scrollbar-color: #cbd6e5 transparent;
    scrollbar-width: thin;
}

.main-sidebar .sidebar::-webkit-scrollbar {
    width: 5px;
}

.main-sidebar .sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.main-sidebar .sidebar::-webkit-scrollbar-thumb {
    background: #cbd6e5;
    border-radius: 999px;
}

.main-sidebar .user-panel {
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
    border: 1px solid #d9e5f7;
    border-radius: var(--gx2-radius);
    margin: 8px 12px 12px;
    min-height: 62px;
    padding: 11px;
}

.main-sidebar .user-panel > .image > img {
    background: #fff;
    border: 2px solid #c7daf8;
    box-shadow: none;
    height: 38px;
    width: 38px;
}

.main-sidebar .user-panel > .info > p {
    color: var(--gx2-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.main-sidebar .user-panel > .info > a {
    color: var(--gx2-muted) !important;
}

.skin-blue-light .sidebar-form {
    background: transparent !important;
    border: 0 !important;
    margin: 0 12px 12px !important;
    padding: 0;
}

.skin-blue-light .sidebar-form .input-group {
    background: #f6f8fb;
    border: 1px solid var(--gx2-line);
    border-radius: var(--gx2-radius);
    box-shadow: none;
}

.skin-blue-light .sidebar-form input[type="text"] {
    background: transparent !important;
    color: var(--gx2-ink) !important;
    height: 40px !important;
}

.skin-blue-light .sidebar-form input[type="text"]::placeholder {
    color: var(--gx2-subtle);
}

.skin-blue-light .sidebar-form .btn {
    background: transparent !important;
    border-left: 1px solid var(--gx2-line) !important;
    color: var(--gx2-muted) !important;
    height: 40px !important;
}

.skin-blue-light .sidebar-form .input-group:focus-within {
    background: #fff;
    border-color: var(--gx2-primary);
    box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.1);
}

.sidebar-menu {
    padding: 0 8px;
}

.skin-blue-light .sidebar-menu > li.header {
    background: transparent !important;
    color: var(--gx2-subtle) !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    padding: 16px 12px 7px;
    text-transform: uppercase;
}

.skin-blue-light .sidebar-menu > li > a {
    align-items: center;
    border-left: 0 !important;
    border-radius: var(--gx2-radius-sm);
    color: #344054 !important;
    display: flex;
    font-size: 13px;
    gap: 10px;
    margin: 3px 0;
    min-height: 43px;
    padding: 10px 12px;
}

.skin-blue-light .sidebar-menu > li > a > .fa,
.skin-blue-light .sidebar-menu > li > a > .fas,
.skin-blue-light .sidebar-menu > li > a > .far {
    color: #5f7fae;
    flex: 0 0 20px;
    font-size: 15px;
    text-align: center;
    width: 20px;
}

.skin-blue-light .sidebar-menu > li:hover > a,
.skin-blue-light .sidebar-menu > li.active > a,
.skin-blue-light .sidebar-menu > li.menu-open > a {
    background: var(--gx2-primary-soft) !important;
    color: var(--gx2-primary-dark) !important;
}

.skin-blue-light .sidebar-menu > li.active > a {
    background: var(--gx2-primary) !important;
    box-shadow: 0 7px 16px rgba(23, 92, 211, 0.2);
    color: #fff !important;
}

.skin-blue-light .sidebar-menu > li.active > a > .fa,
.skin-blue-light .sidebar-menu > li.active > a > .fas,
.skin-blue-light .sidebar-menu > li.active > a > .far {
    color: #fff;
}

.skin-blue-light .sidebar-menu > li > a > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skin-blue-light .sidebar-menu > li > a > .pull-right {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0;
    position: static;
}

.skin-blue-light .sidebar-menu > li > .treeview-menu {
    background: #f7f9fc !important;
    border: 1px solid var(--gx2-line-soft);
    border-radius: var(--gx2-radius-sm);
    margin: 4px 0 8px;
    padding: 6px;
}

.skin-blue-light .treeview-menu > li > a {
    align-items: flex-start;
    border-radius: 6px;
    color: var(--gx2-muted) !important;
    display: flex;
    font-size: 12.5px;
    gap: 9px;
    line-height: 1.35;
    margin: 2px 0;
    padding: 9px 10px;
    white-space: normal;
}

.skin-blue-light .treeview-menu > li > a > .fa {
    color: #7891b5;
    flex: 0 0 16px;
    margin-top: 2px;
    position: static;
    text-align: center;
    width: 16px;
}

.skin-blue-light .treeview-menu > li > a > span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.skin-blue-light .treeview-menu > li > a > .pull-right {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0;
    position: static;
}

.skin-blue-light .treeview-menu > li.active > a,
.skin-blue-light .treeview-menu > li > a:hover {
    background: var(--gx2-accent-soft);
    color: var(--gx2-accent-dark) !important;
}

/* Keep menu icon, label and chevron on one row. AdminLTE declares these
   links as display:block with a higher-specificity selector. */
.sidebar-mini:not(.sidebar-collapse) .main-sidebar .sidebar-menu li > a {
    align-items: center !important;
    column-gap: 9px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
}

.sidebar-mini:not(.sidebar-collapse) .main-sidebar .sidebar-menu > li > a {
    min-height: 42px;
}

.sidebar-mini:not(.sidebar-collapse) .main-sidebar .treeview-menu > li > a {
    column-gap: 8px !important;
    min-height: 36px;
    padding: 8px 10px !important;
}

.sidebar-mini:not(.sidebar-collapse) .main-sidebar .sidebar-menu li > a > i.fa:not(.pull-right),
.sidebar-mini:not(.sidebar-collapse) .main-sidebar .sidebar-menu li > a > i.fas:not(.pull-right),
.sidebar-mini:not(.sidebar-collapse) .main-sidebar .sidebar-menu li > a > i.far:not(.pull-right) {
    align-items: center;
    display: inline-flex !important;
    flex: 0 0 18px;
    float: none !important;
    height: 18px;
    justify-content: center;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: 18px !important;
}

.sidebar-mini:not(.sidebar-collapse) .main-sidebar .sidebar-menu li > a > span {
    display: block !important;
    flex: 1 1 auto;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    width: auto !important;
}

.sidebar-mini:not(.sidebar-collapse) .main-sidebar .sidebar-menu li > a > i.pull-right {
    align-items: center;
    display: inline-flex;
    flex: 0 0 14px;
    float: none !important;
    height: 18px;
    justify-content: center;
    line-height: 1 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    position: static !important;
    width: 14px !important;
}

.sidebar-mini:not(.sidebar-collapse) .content-wrapper,
.sidebar-mini:not(.sidebar-collapse) .right-side,
.sidebar-mini:not(.sidebar-collapse) .main-footer {
    margin-left: var(--gx2-sidebar-width);
}

.sidebar-mini.sidebar-collapse .main-header .navbar,
.sidebar-mini.sidebar-collapse .content-wrapper,
.sidebar-mini.sidebar-collapse .right-side,
.sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 50px;
}

.sidebar-mini.sidebar-collapse .main-header .logo,
.sidebar-mini.sidebar-collapse .main-sidebar {
    width: 50px;
}

.sidebar-mini.sidebar-collapse .main-sidebar {
    box-shadow: none;
}

/* Header search */
.main-header .gx-header-menu-search {
    top: 11px;
    width: min(520px, calc(100vw - 650px));
}

.main-header .gx-header-search-form .input-group {
    background: #f7f9fc !important;
    border: 1px solid var(--gx2-line) !important;
    border-radius: var(--gx2-radius);
    box-shadow: none;
    height: 42px;
}

.main-header .gx-header-search-form .input-group:focus-within {
    background: #fff !important;
    border-color: var(--gx2-primary) !important;
    box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.12);
}

.main-header .gx-header-search-form .btn {
    background: transparent !important;
    border: 0 !important;
    color: var(--gx2-muted) !important;
}

.main-header .gx-header-search-form .btn:hover,
.main-header .gx-header-search-form .btn:focus {
    background: transparent !important;
    color: var(--gx2-primary) !important;
}

.main-header .gx-sidebar-search-results,
.main-sidebar .gx-sidebar-search-results {
    border-color: var(--gx2-line);
    border-radius: var(--gx2-radius-lg);
    box-shadow: 0 18px 44px rgba(16, 35, 66, 0.18);
    padding: 7px;
}

.main-header .gx-sidebar-search-item,
.main-sidebar .gx-sidebar-search-item {
    border-radius: var(--gx2-radius-sm);
    min-height: 58px;
}

.main-header .gx-sidebar-search-item:hover,
.main-header .gx-sidebar-search-item.is-selected,
.main-sidebar .gx-sidebar-search-item:hover,
.main-sidebar .gx-sidebar-search-item.is-selected {
    background: var(--gx2-primary-soft);
}

/* Main content */
.content-header,
.content {
    margin-left: auto;
    margin-right: auto;
    max-width: 1920px;
    width: 100%;
}

.content-header {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--gx2-line);
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    margin: 0;
    max-width: none;
    min-height: 72px;
    padding: 14px var(--gx2-content-gutter) 12px;
    width: auto;
}

.content-header > h1 {
    color: var(--gx2-ink) !important;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
    padding-left: 15px;
    position: relative;
}

.content-header > h1::before {
    background: linear-gradient(to bottom, var(--gx2-primary) 0 72%, var(--gx2-accent) 72% 100%);
    border-radius: 999px;
    bottom: 2px;
    content: "";
    left: 0;
    position: absolute;
    top: 2px;
    width: 4px;
}

.content-header > h1 > small {
    color: var(--gx2-muted);
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    margin: 5px 0 0;
}

.content-header > .breadcrumb {
    background: #fff;
    border: 1px solid var(--gx2-line);
    border-radius: 999px;
    color: var(--gx2-muted) !important;
    float: none;
    font-size: 12px;
    margin: 0 !important;
    padding: 7px 12px;
    position: static;
}

.content-header > .breadcrumb > li + li::before {
    color: var(--gx2-subtle);
    content: "/";
}

.content-header > .breadcrumb > .active {
    color: var(--gx2-text);
}

.content {
    min-width: 0;
    padding: 16px var(--gx2-content-gutter) 28px;
}

/* Cards, panels, tabs and dropdowns */
.box,
.nav-tabs-custom,
.modal-content,
.dropdown-menu,
.select2-dropdown,
.popover,
.panel,
.well {
    background: var(--gx2-surface) !important;
    border: 1px solid var(--gx2-line) !important;
    border-radius: var(--gx2-radius-lg) !important;
    box-shadow: var(--gx2-shadow-xs) !important;
}

.box,
.nav-tabs-custom,
.panel {
    margin-bottom: 20px;
    overflow: hidden;
}

.box.grid-box,
.grid-box {
    border-top: 1px solid var(--gx2-line) !important;
}

.box-header,
.box-footer,
.panel-heading,
.modal-header,
.modal-footer,
.nav-tabs-custom > .nav-tabs {
    background: #fff !important;
    border-color: var(--gx2-line-soft) !important;
}

.box-header {
    min-height: 54px;
    padding: 13px 16px;
}

.box-header.with-border {
    border-bottom: 1px solid var(--gx2-line-soft);
}

.box-header .box-title {
    color: var(--gx2-ink) !important;
    font-size: 15px;
    font-weight: 750;
    line-height: 28px;
}

.box-header .box-tools {
    right: 14px;
    top: 11px;
}

.box-body {
    padding: 18px;
}

.box-footer {
    padding: 13px 16px;
}

.grid-box > .box-header .pull-right,
.grid-box > .box-header .pull-left {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.grid-box > .box-header::before,
.grid-box > .box-header::after {
    content: none;
}

.dropdown-menu {
    margin-top: 6px;
    padding: 7px;
}

.dropdown-menu > li > a {
    border-radius: var(--gx2-radius-sm);
    color: var(--gx2-text);
    padding: 9px 11px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--gx2-primary-soft);
    color: var(--gx2-primary-dark);
}

.dropdown-menu .divider {
    background: var(--gx2-line-soft);
    margin: 6px 2px;
}

.nav-tabs-custom > .nav-tabs {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 9px 10px 0;
}

.nav-tabs-custom > .nav-tabs > li {
    border-top: 0 !important;
    margin: 0;
}

.nav-tabs-custom > .nav-tabs > li > a,
.nav-tabs > li > a {
    border: 0 !important;
    border-radius: var(--gx2-radius-sm) var(--gx2-radius-sm) 0 0 !important;
    color: var(--gx2-muted) !important;
    font-weight: 650;
    margin: 0;
    padding: 10px 13px;
}

.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li > a:hover {
    background: var(--gx2-primary-soft) !important;
    color: var(--gx2-primary) !important;
}

.nav-tabs-custom > .nav-tabs > li.active > a::after {
    background: var(--gx2-primary);
    border-radius: 999px 999px 0 0;
    bottom: 0;
    content: "";
    height: 3px;
    left: 12px;
    position: absolute;
    right: 12px;
}

/* Buttons */
.btn {
    align-items: center;
    border-radius: var(--gx2-radius-sm) !important;
    box-shadow: none !important;
    display: inline-flex;
    font-weight: 650;
    gap: 6px;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    transition: transform var(--gx2-transition), background-color var(--gx2-transition), border-color var(--gx2-transition), color var(--gx2-transition), box-shadow var(--gx2-transition);
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn:active,
.btn.active {
    transform: translateY(0);
}

.btn-sm,
.btn-group-sm > .btn {
    min-height: 32px;
    padding: 5px 10px;
}

.btn-xs,
.btn-group-xs > .btn {
    border-radius: 6px !important;
    min-height: 27px;
    padding: 3px 8px;
}

.btn-primary,
.btn-success,
.btn-info {
    background: var(--gx2-primary) !important;
    border-color: var(--gx2-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.btn-info:hover,
.btn-info:focus {
    background: var(--gx2-primary-dark) !important;
    border-color: var(--gx2-primary-dark) !important;
    box-shadow: 0 5px 12px rgba(23, 92, 211, 0.2) !important;
}

.btn-warning {
    background: var(--gx2-accent) !important;
    border-color: var(--gx2-accent) !important;
    color: #fff !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background: var(--gx2-accent-dark) !important;
    border-color: var(--gx2-accent-dark) !important;
}

.btn-danger {
    background: #fff !important;
    border-color: #f3b7b2 !important;
    color: var(--gx2-danger) !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background: var(--gx2-danger-soft) !important;
    border-color: var(--gx2-danger) !important;
    color: var(--gx2-danger) !important;
}

.btn-default {
    background: #fff !important;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-text) !important;
}

.btn-default:hover,
.btn-default:focus {
    background: #f8fafc !important;
    border-color: #b9c6d8 !important;
    color: var(--gx2-ink) !important;
}

.btn-link {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--gx2-primary) !important;
}

.btn-group > .btn + .dropdown-toggle {
    padding-left: 9px;
    padding-right: 9px;
}

.grid-dropdown-actions > .btn,
.table .btn-xs,
.table .btn-sm {
    white-space: nowrap;
}

/* Form system */
.form-group {
    margin-bottom: 18px;
}

.control-label,
.form-group > label,
.form-horizontal .control-label {
    color: var(--gx2-text);
    font-size: 13px;
    font-weight: 650;
    padding-top: 9px;
}

.form-control,
.select2-container .select2-selection,
.input-group-addon,
.input-group-btn .btn,
.bootstrap-tagsinput,
.tagify,
.cke,
.well {
    border-color: var(--gx2-line) !important;
    border-radius: var(--gx2-radius-sm) !important;
    box-shadow: none !important;
}

.form-control {
    background: #fff;
    color: var(--gx2-ink);
    font-size: 14px;
    height: 40px;
    padding: 8px 11px;
}

textarea.form-control {
    height: auto;
    line-height: 1.55;
    min-height: 104px;
    resize: vertical;
}

.form-control::placeholder {
    color: var(--gx2-subtle);
}

.form-control:hover,
.select2-container .select2-selection:hover {
    border-color: #bdc8d8 !important;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection,
.tagify:focus-within,
.bootstrap-tagsinput:focus-within {
    background: #fff;
    border-color: var(--gx2-primary) !important;
    box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.12) !important;
    outline: 0;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background: #f2f4f7 !important;
    color: var(--gx2-muted);
    cursor: not-allowed;
}

.input-group-addon {
    background: #f8fafc;
    color: var(--gx2-muted);
    min-width: 39px;
}

.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn {
    border-radius: var(--gx2-radius-sm) 0 0 var(--gx2-radius-sm) !important;
}

.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn {
    border-radius: 0 var(--gx2-radius-sm) var(--gx2-radius-sm) 0 !important;
}

.help-block,
.form-text,
.text-muted {
    color: var(--gx2-muted) !important;
    font-size: 12px;
}

.has-error .control-label,
.has-error .help-block,
.invalid-feedback {
    color: var(--gx2-danger) !important;
}

.has-error .form-control,
.form-control.is-invalid {
    border-color: var(--gx2-danger) !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.09) !important;
}

.has-success .form-control {
    border-color: var(--gx2-success) !important;
}

.select2-container {
    max-width: 100%;
}

.select2-container--default .select2-selection--single,
.select2-selection .select2-selection--single {
    height: 40px !important;
    padding: 5px 11px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--gx2-ink);
    line-height: 28px;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 7px;
}

.select2-container--default .select2-selection--multiple {
    min-height: 40px;
    padding: 3px 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.bootstrap-tagsinput .tag,
.tagify__tag > div {
    background: var(--gx2-primary-soft) !important;
    border: 1px solid #cddfff !important;
    border-radius: 6px !important;
    color: var(--gx2-primary-dark) !important;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    padding: 4px 7px;
}

.select2-results__option {
    border-radius: 6px;
    margin: 2px 5px;
    padding: 8px 10px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--gx2-primary) !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--gx2-line) !important;
    border-radius: var(--gx2-radius-sm);
    height: 38px;
    padding: 7px 10px;
}

.radio label,
.checkbox label {
    color: var(--gx2-text);
}

.icheckbox_square-blue,
.iradio_square-blue {
    transform: scale(0.92);
}

.bootstrap-switch {
    border-color: var(--gx2-line) !important;
    border-radius: 999px !important;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
    background: var(--gx2-primary) !important;
}

.file-input .file-preview,
.file-drop-zone,
.krajee-default.file-preview-frame {
    border-color: var(--gx2-line) !important;
    border-radius: var(--gx2-radius) !important;
    box-shadow: none !important;
}

.file-drop-zone {
    background: #fafcff;
}

.krajee-default.file-preview-frame:hover {
    border-color: #c6d8f6 !important;
    box-shadow: var(--gx2-shadow-sm) !important;
}

.form-horizontal .box-body .fields-group > .form-group:last-child {
    margin-bottom: 4px;
}

/* Filters */
.filter-box,
#filter-box {
    background: #f9fbfe !important;
    border-bottom: 1px solid var(--gx2-line-soft) !important;
    margin: 0;
    padding: 16px !important;
}

.filter-box .box-body,
#filter-box .box-body {
    padding: 0 8px;
}

.filter-box .box-footer,
#filter-box .box-footer {
    background: transparent !important;
    border-top: 1px solid var(--gx2-line-soft) !important;
    margin-top: 4px;
    padding: 13px 8px 0;
}

.filter-box .form-group,
#filter-box .form-group {
    margin-bottom: 13px;
}

.filter-box .btn-group + .btn-group,
#filter-box .btn-group + .btn-group {
    margin-left: 8px !important;
}

.grid-box .quick-search-form .form-control,
.grid-box .input-group-sm .form-control {
    height: 36px;
}

/* Tables and pagination */
.table-responsive,
.table-main {
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.table {
    color: var(--gx2-text);
    margin-bottom: 0;
}

.table > thead > tr > th {
    background: #f7f9fc !important;
    border-bottom: 1px solid var(--gx2-line) !important;
    color: #475467 !important;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.045em;
    padding: 12px 13px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-top: 1px solid var(--gx2-line-soft) !important;
    padding: 12px 13px;
    vertical-align: middle;
}

.table > tbody > tr {
    background: #fff;
    transition: background-color var(--gx2-transition), box-shadow var(--gx2-transition);
}

.table-hover > tbody > tr:hover,
.table > tbody > tr:hover {
    background: var(--gx2-primary-faint) !important;
    box-shadow: inset 3px 0 0 #b6cdf7;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: #fbfcfe;
}

.table img {
    border-radius: var(--gx2-radius-sm);
}

.table .label,
.table .badge,
.table .badge-custom {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    line-height: 1;
    max-width: 220px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.table .grid-dropdown-actions .dropdown-menu {
    box-shadow: var(--gx2-shadow) !important;
    min-width: 172px;
}

.table .grid-dropdown-actions .dropdown-menu a {
    align-items: center;
    display: flex;
    gap: 8px;
}

.table .grid-dropdown-actions .dropdown-menu .fa {
    color: var(--gx2-muted);
    text-align: center;
    width: 15px;
}

.grid-table .empty-grid {
    color: var(--gx2-muted);
    padding: 54px 20px !important;
}

.grid-table .empty-grid svg {
    filter: grayscale(0.2);
    opacity: 0.82;
}

.gx-table-scrollbar {
    background: #edf2f8;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    height: 12px;
    margin: 8px 14px;
    top: calc(var(--gx2-topbar-height) + 6px);
}

.gx-table-scrollbar::-webkit-scrollbar,
.gx-table-scroll-enhanced::-webkit-scrollbar {
    height: 9px;
}

.gx-table-scrollbar::-webkit-scrollbar-track,
.gx-table-scroll-enhanced::-webkit-scrollbar-track {
    background: #edf2f8;
}

.gx-table-scrollbar::-webkit-scrollbar-thumb,
.gx-table-scroll-enhanced::-webkit-scrollbar-thumb {
    background: #8caddd;
    border: 2px solid #edf2f8;
}

.gx-table-scrollbar::-webkit-scrollbar-thumb:hover,
.gx-table-scroll-enhanced::-webkit-scrollbar-thumb:hover {
    background: var(--gx2-primary);
}

.box-footer .pagination {
    margin: 0;
}

.pagination > li > a,
.pagination > li > span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--gx2-line) !important;
    border-radius: var(--gx2-radius-sm) !important;
    color: var(--gx2-text) !important;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin: 0 2px;
    min-width: 34px;
    padding: 6px 9px;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background: var(--gx2-primary-soft) !important;
    border-color: #bfd3f6 !important;
    color: var(--gx2-primary) !important;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background: var(--gx2-primary) !important;
    border-color: var(--gx2-primary) !important;
    color: #fff !important;
}

.pagination > .disabled > span,
.pagination > .disabled > a {
    background: #f5f7fa !important;
    color: var(--gx2-subtle) !important;
}

/* Status, alerts, toasts and modals */
.label,
.badge,
.badge-custom {
    align-items: center;
    border-radius: 999px !important;
    box-sizing: border-box;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 24px;
    padding: 5px 9px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.label-primary,
.label-info,
.badge-primary,
.badge-info,
.badge-blue,
.badge-approved,
.badge-completed {
    background: var(--gx2-primary-soft) !important;
    color: var(--gx2-primary-dark) !important;
}

.label-success,
.badge-success,
.badge-order,
.badge-add-fund,
.badge-escrow-wallet {
    background: var(--gx2-success-soft) !important;
    color: var(--gx2-success) !important;
}

.label-warning,
.badge-warning,
.badge-pending,
.badge-trip,
.badge-orange {
    background: var(--gx2-warning-soft) !important;
    color: var(--gx2-warning) !important;
}

.label-danger,
.badge-danger,
.badge-rejected {
    background: var(--gx2-danger-soft) !important;
    color: var(--gx2-danger) !important;
}

.label-default,
.badge-default,
.badge-unknown {
    background: #f1f3f6 !important;
    color: var(--gx2-muted) !important;
}

.alert,
.callout {
    border: 1px solid transparent !important;
    border-left-width: 4px !important;
    border-radius: var(--gx2-radius) !important;
    box-shadow: none;
}

.alert-success,
.callout-success {
    background: var(--gx2-success-soft) !important;
    border-color: var(--gx2-success) !important;
    color: #116546 !important;
}

.alert-info,
.callout-info {
    background: var(--gx2-info-soft) !important;
    border-color: var(--gx2-info) !important;
    color: #075f7c !important;
}

.alert-warning,
.callout-warning {
    background: var(--gx2-warning-soft) !important;
    border-color: var(--gx2-accent) !important;
    color: #855100 !important;
}

.alert-danger,
.callout-danger {
    background: var(--gx2-danger-soft) !important;
    border-color: var(--gx2-danger) !important;
    color: #a5261c !important;
}

#toast-container > div {
    border-radius: var(--gx2-radius) !important;
    box-shadow: var(--gx2-shadow) !important;
    opacity: 0.98;
}

.modal-backdrop.in {
    opacity: 0.42;
}

.modal-content {
    box-shadow: 0 22px 60px rgba(16, 35, 66, 0.22) !important;
    overflow: hidden;
}

.modal-header {
    min-height: 58px;
    padding: 16px 18px;
}

.modal-title {
    color: var(--gx2-ink);
    font-size: 17px;
    font-weight: 750;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 13px 18px;
}

.close {
    color: var(--gx2-muted);
    opacity: 0.72;
    text-shadow: none;
}

/* Dashboard system */
.gx-dashboard-welcome {
    align-items: center;
    background: linear-gradient(118deg, #0b3775 0%, #175cd3 68%, #236fe9 100%);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(23, 92, 211, 0.18);
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 20px;
    min-height: 148px;
    overflow: hidden;
    padding: 28px 30px;
    position: relative;
}

.gx-dashboard-welcome::before,
.gx-dashboard-welcome::after {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    position: absolute;
}

.gx-dashboard-welcome::before {
    height: 250px;
    right: 190px;
    top: -150px;
    width: 250px;
}

.gx-dashboard-welcome::after {
    background: rgba(249, 115, 22, 0.92);
    border: 0;
    bottom: -75px;
    height: 145px;
    right: -28px;
    width: 145px;
}

.gx-dashboard-welcome__content,
.gx-dashboard-welcome__meta {
    position: relative;
    z-index: 1;
}

.gx-dashboard-welcome__eyebrow {
    color: #bfd6ff;
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 7px;
}

.gx-dashboard-welcome h2 {
    color: #fff;
    font-size: 27px;
    font-weight: 780;
    letter-spacing: -0.025em;
    margin: 0 0 7px;
}

.gx-dashboard-welcome p {
    color: #d9e8ff;
    font-size: 13px;
    margin: 0;
    max-width: 640px;
}

.gx-dashboard-welcome__meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 170px;
}

.gx-dashboard-welcome__meta > span {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 7px;
    padding: 7px 11px;
}

.gx-dashboard-welcome__meta .is-live i {
    background: #5ee5a3;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(94, 229, 163, 0.12);
    height: 8px;
    width: 8px;
}

.gx-metric-groups {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 28px;
}

.gx-metric-group {
    background: #fff;
    border: 1px solid var(--gx2-line);
    border-radius: var(--gx2-radius-lg);
    box-shadow: var(--gx2-shadow-xs);
    min-width: 0;
    overflow: hidden;
}

.gx-metric-group__header {
    align-items: center;
    border-bottom: 1px solid var(--gx2-line-soft);
    display: flex;
    gap: 11px;
    min-height: 70px;
    padding: 13px 15px;
}

.gx-metric-group__icon {
    align-items: center;
    background: var(--gx2-primary-soft);
    border-radius: 10px;
    color: var(--gx2-primary);
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 16px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.gx-metric-group--orange .gx-metric-group__icon {
    background: var(--gx2-accent-soft);
    color: var(--gx2-accent);
}

.gx-metric-group--green .gx-metric-group__icon {
    background: var(--gx2-success-soft);
    color: var(--gx2-success);
}

.gx-metric-group__copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.gx-metric-group__copy strong,
.gx-metric-group__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-metric-group__copy strong {
    color: var(--gx2-ink);
    font-size: 14px;
    font-weight: 750;
}

.gx-metric-group__copy small {
    color: var(--gx2-muted);
    font-size: 11px;
    margin-top: 2px;
}

.gx-metric-group__count {
    align-items: center;
    background: #f2f4f7;
    border-radius: 999px;
    color: var(--gx2-muted);
    display: inline-flex;
    flex: 0 0 26px;
    font-size: 11px;
    font-weight: 750;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.gx-metric-group__body {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
}

.gx-metric-card {
    align-items: center;
    background: #f9fbfe;
    border: 1px solid #e8edf4;
    border-radius: 11px;
    color: var(--gx2-text);
    display: grid;
    gap: 9px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    min-height: 76px;
    padding: 11px;
    position: relative;
    transition: border-color var(--gx2-transition), box-shadow var(--gx2-transition), transform var(--gx2-transition);
}

.gx-metric-card:hover,
.gx-metric-card:focus {
    background: #fff;
    border-color: #bcd1f4;
    box-shadow: 0 9px 20px rgba(23, 92, 211, 0.1);
    color: var(--gx2-primary);
    transform: translateY(-2px);
}

.gx-metric-card__icon {
    align-items: center;
    background: var(--gx2-primary-soft);
    border-radius: 9px;
    color: var(--gx2-primary);
    display: inline-flex;
    font-size: 14px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.gx-metric-card--orange .gx-metric-card__icon,
.gx-metric-card--rose .gx-metric-card__icon {
    background: var(--gx2-accent-soft);
    color: var(--gx2-accent);
}

.gx-metric-card--green .gx-metric-card__icon {
    background: var(--gx2-success-soft);
    color: var(--gx2-success);
}

.gx-metric-card--cyan .gx-metric-card__icon {
    background: var(--gx2-info-soft);
    color: var(--gx2-info);
}

.gx-metric-card--indigo .gx-metric-card__icon {
    background: #f0efff;
    color: #5a4fcf;
}

.gx-metric-card__copy {
    display: block;
    min-width: 0;
}

.gx-metric-card__copy small,
.gx-metric-card__copy strong {
    display: block;
}

.gx-metric-card__copy small {
    color: var(--gx2-muted);
    font-size: 10.5px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-metric-card__copy strong {
    color: var(--gx2-ink);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-top: 3px;
}

.gx-metric-card__arrow {
    color: #a6b1c1;
    font-size: 10px;
    transform: rotate(45deg);
}

.gx-metric-card:hover .gx-metric-card__arrow {
    color: var(--gx2-accent);
}

.gx-section-heading {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 2px 14px;
}

.gx-section-heading span {
    color: var(--gx2-primary);
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 3px;
}

.gx-section-heading h2 {
    color: var(--gx2-ink);
    font-size: 19px;
    font-weight: 760;
    letter-spacing: -0.02em;
    margin: 0;
}

.gx-section-heading p {
    color: var(--gx2-muted);
    font-size: 12px;
    margin: 0;
}

.gx-kpi-overview,
.gx-chart-panel,
.dashboard-primary-box,
.info-box.dashboard-primary-box,
.franchise-dashboard-filter,
.franchise-kpi,
.franchise-chart-panel,
.franchise-region-table-wrap {
    background: #fff !important;
    border: 1px solid var(--gx2-line) !important;
    border-radius: var(--gx2-radius-lg) !important;
    box-shadow: var(--gx2-shadow-xs) !important;
}

.gx-kpi-overview {
    margin-bottom: 20px;
}

.gx-kpi-overview__header {
    background: #fff;
    border-bottom: 1px solid var(--gx2-line-soft);
    padding: 17px 20px;
}

.gx-kpi-overview__logo {
    background: var(--gx2-primary-soft);
    border-radius: var(--gx2-radius);
}

.gx-kpi-overview__eyebrow,
.gx-kpi-column__title,
.gx-chart-panel__eyebrow {
    color: var(--gx2-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gx-kpi-overview__header h3,
.gx-chart-panel__header h3 {
    color: var(--gx2-ink);
}

.gx-kpi-overview__meta {
    background: var(--gx2-accent-soft);
    color: var(--gx2-accent-dark);
}

.gx-kpi-column + .gx-kpi-column {
    border-left-color: var(--gx2-line-soft);
}

.gx-kpi-row {
    border-radius: var(--gx2-radius);
}

.gx-kpi-row + .gx-kpi-row {
    border-top-color: var(--gx2-line-soft);
}

.gx-kpi-row:hover,
.gx-kpi-row:focus {
    background: var(--gx2-primary-faint);
    transform: none;
}

.gx-kpi-row__value {
    color: var(--gx2-ink);
}

.gx-kpi-row__action {
    background: var(--gx2-primary-soft);
    color: var(--gx2-primary);
}

.gx-kpi-row--orange .gx-kpi-row__icon,
.gx-kpi-row--rose .gx-kpi-row__icon {
    background: var(--gx2-accent-soft);
    color: var(--gx2-accent);
}

.gx-chart-grid {
    gap: 20px;
}

.gx-chart-panel {
    position: relative;
}

.gx-chart-panel__header {
    border-bottom-color: var(--gx2-line-soft);
}

.gx-chart-panel__summary {
    border-bottom: 1px solid var(--gx2-line-soft);
    gap: 0;
}

.gx-chart-panel__summary > div {
    background: #fafcff;
}

.gx-chart-panel__summary > div + div {
    border-left: 1px solid var(--gx2-line-soft);
}

.gx-chart-panel__summary strong {
    color: var(--gx2-ink);
}

.gx-chart-panel__select {
    background: #fff !important;
}

.gx-chart-panel.is-loading .gx-chart-panel__canvas::after {
    animation: gx2-shimmer 1.25s ease-in-out infinite;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.92) 48%, transparent 76%);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

.gx-chart-panel.is-loading .gx-chart-panel__canvas {
    background: linear-gradient(#f1f4f8 0 0) 18px 24px / 88% 14px no-repeat,
        repeating-linear-gradient(to bottom, transparent 0 48px, #edf1f6 49px 50px);
    overflow: hidden;
    position: relative;
}

.gx-chart-panel.is-loading canvas {
    opacity: 0.2;
}

.dashboard-primary-box,
.info-box.dashboard-primary-box {
    min-height: 120px;
    transition: border-color var(--gx2-transition), box-shadow var(--gx2-transition);
}

.dashboard-primary-box::before {
    background: var(--gx2-accent);
    height: 3px;
}

.dashboard-primary-box:hover {
    border-color: #c4d5f2 !important;
    box-shadow: var(--gx2-shadow-sm) !important;
    transform: none;
}

.dashboard-primary-box .info-box-icon {
    background: var(--gx2-primary-soft) !important;
    color: var(--gx2-primary) !important;
}

.dashboard-primary-box .info-box-number {
    color: var(--gx2-ink);
}

/* Franchise dashboard */
.franchise-dashboard-filter {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 240px) minmax(260px, 1fr) minmax(120px, 160px) auto;
    margin-bottom: 20px;
    padding: 16px;
}

.franchise-filter-field label {
    color: var(--gx2-text);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.franchise-filter-action .btn {
    min-height: 40px;
}

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

.franchise-kpi {
    overflow: hidden;
    padding: 17px 18px;
    position: relative;
}

.franchise-kpi::before {
    background: var(--gx2-primary);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 3px;
}

.franchise-kpi:nth-child(2n)::before {
    background: var(--gx2-accent);
}

.franchise-kpi span {
    color: var(--gx2-muted);
    display: block;
    font-size: 12px;
    font-weight: 650;
}

.franchise-kpi strong {
    color: var(--gx2-ink);
    display: block;
    font-size: 26px;
    font-weight: 780;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-top: 7px;
}

.franchise-chart-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.franchise-chart-panel {
    overflow: hidden;
}

.franchise-chart-panel__header {
    align-items: center;
    border-bottom: 1px solid var(--gx2-line-soft);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 14px 16px;
}

.franchise-chart-panel__header h3 {
    color: var(--gx2-ink);
    font-size: 15px;
    font-weight: 750;
    margin: 0;
}

.franchise-chart-panel__header span {
    background: var(--gx2-primary-soft);
    border-radius: 999px;
    color: var(--gx2-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.franchise-chart-panel__canvas {
    height: 310px;
    padding: 14px;
}

.franchise-region-table-wrap {
    overflow: auto;
}

.franchise-region-table {
    margin-bottom: 0;
    white-space: nowrap;
}

.franchise-region-table td:first-child span {
    color: var(--gx2-muted);
    display: block;
    font-size: 12px;
}

/* Loading and perceived performance */
#nprogress .bar {
    background: linear-gradient(90deg, var(--gx2-primary) 0 76%, var(--gx2-accent) 76% 100%) !important;
    height: 3px !important;
}

#nprogress .peg {
    box-shadow: 0 0 9px var(--gx2-primary), 0 0 4px var(--gx2-accent) !important;
}

#nprogress .spinner {
    display: none !important;
}

.gx-page-loader {
    align-items: flex-start;
    background: rgba(245, 247, 251, 0.9);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: var(--gx2-sidebar-width);
    opacity: 0;
    padding: 28px 22px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: var(--gx2-topbar-height);
    transition: opacity 120ms ease;
    visibility: hidden;
    z-index: 1025;
}

.sidebar-collapse .gx-page-loader {
    left: 50px;
}

.gx-page-loader.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.gx-page-loader__card {
    background: #fff;
    border: 1px solid var(--gx2-line);
    border-radius: var(--gx2-radius-lg);
    box-shadow: var(--gx2-shadow-sm);
    max-width: 1140px;
    overflow: hidden;
    padding: 20px;
    position: relative;
    width: 100%;
}

.gx-page-loader__head {
    align-items: center;
    display: flex;
    gap: 11px;
    margin-bottom: 20px;
}

.gx-page-loader__spinner {
    animation: gx2-spin 0.75s linear infinite;
    border: 2px solid #d7e3f6;
    border-radius: 50%;
    border-top-color: var(--gx2-primary);
    height: 24px;
    width: 24px;
}

.gx-page-loader__copy strong,
.gx-page-loader__copy span {
    display: block;
}

.gx-page-loader__copy strong {
    color: var(--gx2-ink);
    font-size: 14px;
}

.gx-page-loader__copy span {
    color: var(--gx2-muted);
    font-size: 12px;
    margin-top: 2px;
}

.gx-page-loader__line,
.gx-page-loader__block {
    background: #edf1f6;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}

.gx-page-loader__line::after,
.gx-page-loader__block::after {
    animation: gx2-shimmer 1.15s ease-in-out infinite;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.92) 48%, transparent 76%);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

.gx-page-loader__line {
    height: 12px;
    margin: 11px 0;
}

.gx-page-loader__line:nth-child(2) {
    width: 72%;
}

.gx-page-loader__line:nth-child(3) {
    width: 86%;
}

.gx-page-loader__blocks {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.gx-page-loader__block {
    height: 96px;
}

.gx-network-status {
    align-items: center;
    background: var(--gx2-sidebar-deep);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    bottom: 18px;
    box-shadow: 0 10px 28px rgba(8, 29, 64, 0.24);
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: 650;
    gap: 8px;
    opacity: 0;
    padding: 9px 13px;
    pointer-events: none;
    position: fixed;
    right: 18px;
    transform: translateY(8px);
    transition: opacity var(--gx2-transition), transform var(--gx2-transition);
    visibility: hidden;
    z-index: 1200;
}

.gx-network-status::before {
    animation: gx2-pulse 1s ease-in-out infinite;
    background: var(--gx2-accent);
    border-radius: 50%;
    content: "";
    height: 7px;
    width: 7px;
}

.gx-network-status.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.gx-page-loading .gx-network-status {
    display: none;
}

form.gx-is-submitting .btn[type="submit"],
form.gx-is-submitting button[type="submit"] {
    cursor: wait;
    opacity: 0.82;
    pointer-events: none;
    position: relative;
}

form.gx-is-submitting .btn[type="submit"]::before,
form.gx-is-submitting button[type="submit"]::before {
    animation: gx2-spin 0.7s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    border-top-color: currentColor;
    content: "";
    height: 13px;
    width: 13px;
}

/* Authentication */
.login-page,
.form-02-main {
    background: var(--gx2-canvas) !important;
}

.form-02-main {
    min-height: 100vh;
    overflow: hidden;
    padding: 34px 0;
    position: relative;
}

.form-02-main::before {
    background: var(--gx2-sidebar);
    border-radius: 50%;
    content: "";
    height: 560px;
    left: -260px;
    opacity: 0.96;
    position: fixed;
    top: -220px;
    width: 560px;
}

.form-02-main::after {
    background: var(--gx2-accent-soft);
    border-radius: 50%;
    bottom: -230px;
    content: "";
    height: 500px;
    position: fixed;
    right: -220px;
    width: 500px;
}

._lk_de {
    position: relative;
    z-index: 2;
}

.form-03-main {
    background: #fff !important;
    border: 1px solid var(--gx2-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(16, 35, 66, 0.14) !important;
    max-width: 440px;
    padding: 36px !important;
}

.form-03-main .logo {
    margin: 2px auto 34px !important;
    max-width: 220px;
}

.form-03-main .logo img {
    max-height: 64px;
    object-fit: contain;
}

.gx-auth-heading {
    margin: -12px 0 26px;
    text-align: center;
}

.gx-auth-heading > span {
    color: var(--gx2-accent-dark);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.gx-auth-heading h1 {
    color: var(--gx2-ink);
    font-size: 22px;
    font-weight: 760;
    letter-spacing: -0.02em;
    margin: 0;
}

.form-03-main .form-group {
    margin-bottom: 18px;
}

._ge_de_ol {
    border: 1px solid var(--gx2-line) !important;
    border-radius: var(--gx2-radius) !important;
    font-size: 14px;
    min-height: 46px;
    padding: 10px 13px;
}

._ge_de_ol:focus {
    border-color: var(--gx2-primary) !important;
    box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.12) !important;
}

._btn_04 {
    background: var(--gx2-primary) !important;
    border: 1px solid var(--gx2-primary) !important;
    border-radius: var(--gx2-radius) !important;
    color: #fff !important;
    min-height: 46px;
    width: 100%;
}

._btn_04:hover,
._btn_04:focus {
    background: var(--gx2-primary-dark) !important;
    border-color: var(--gx2-primary-dark) !important;
}

.form-03-main .checkbox.form-group {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.form-03-main .forgot {
    margin-left: auto;
}

/* Dark theme */
html[data-gx-theme="dark"] {
    color-scheme: dark;
    --gx2-primary: #4c8dff;
    --gx2-primary-dark: #2f73e6;
    --gx2-primary-soft: #172d50;
    --gx2-primary-faint: #101f36;
    --gx2-accent: #ff8a3d;
    --gx2-accent-dark: #ffad78;
    --gx2-accent-soft: #3a2519;
    --gx2-success: #48d39b;
    --gx2-success-soft: #16372d;
    --gx2-warning: #ffc35c;
    --gx2-warning-soft: #3a301b;
    --gx2-danger: #ff746b;
    --gx2-danger-soft: #3b211f;
    --gx2-info: #54c8eb;
    --gx2-info-soft: #153440;
    --gx2-ink: #f2f6fc;
    --gx2-text: #d3deec;
    --gx2-muted: #96a8bf;
    --gx2-subtle: #71849d;
    --gx2-line: #293a52;
    --gx2-line-soft: #1f2d40;
    --gx2-canvas: #08111f;
    --gx2-surface: #111c2e;
    --gx2-sidebar: #0b1526;
    --gx2-sidebar-deep: #07101d;
    --gx2-sidebar-hover: #172d50;
    --gx2-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.22);
    --gx2-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);
    --gx2-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

html[data-gx-theme="dark"],
html[data-gx-theme="dark"] body,
html[data-gx-theme="dark"] .wrapper,
html[data-gx-theme="dark"] .content-wrapper,
html[data-gx-theme="dark"] .right-side {
    background: var(--gx2-canvas) !important;
    color: var(--gx2-text);
}

html[data-gx-theme="dark"] body {
    scrollbar-color: #3a4d67 #0b1526;
}

html[data-gx-theme="dark"] .main-header .logo,
html[data-gx-theme="dark"] .skin-blue-light .main-header .logo,
html[data-gx-theme="dark"] .main-header .navbar,
html[data-gx-theme="dark"] .skin-blue-light .main-header .navbar {
    background: rgba(13, 24, 40, 0.98) !important;
    border-color: var(--gx2-line) !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2) !important;
}

html[data-gx-theme="dark"] .main-header .navbar .sidebar-toggle,
html[data-gx-theme="dark"] .main-header .navbar .nav > li > a {
    color: var(--gx2-text) !important;
}

html[data-gx-theme="dark"] .gx-topbar-account__copy strong {
    color: var(--gx2-ink);
}

html[data-gx-theme="dark"] .gx-theme-toggle {
    background: #142238;
    border-color: var(--gx2-line);
    color: #ffc35c;
}

html[data-gx-theme="dark"] .gx-theme-toggle:hover,
html[data-gx-theme="dark"] .gx-theme-toggle:focus {
    background: var(--gx2-primary-soft);
    border-color: #3d65a0;
}

html[data-gx-theme="dark"] .main-sidebar,
html[data-gx-theme="dark"] .left-side,
html[data-gx-theme="dark"] .skin-blue-light .main-sidebar {
    background: #0c1728 !important;
    border-color: var(--gx2-line) !important;
    box-shadow: 7px 0 24px rgba(0, 0, 0, 0.2);
}

html[data-gx-theme="dark"] .main-sidebar .user-panel {
    background: linear-gradient(135deg, #142641, #101d31);
    border-color: #29405f;
}

html[data-gx-theme="dark"] .main-sidebar .user-panel > .info > p {
    color: var(--gx2-ink);
}

html[data-gx-theme="dark"] .main-sidebar .user-panel > .image > img {
    background: #17263b;
    border-color: #355781;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li.header {
    color: #70849d !important;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li > a {
    color: #b9c8da !important;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li > a > .fa,
html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li > a > .fas,
html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li > a > .far {
    color: #7fa9e8;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li:hover > a,
html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li.menu-open > a {
    background: #142946 !important;
    color: #d8e6fa !important;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li.active > a {
    background: #286bd8 !important;
    color: #fff !important;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li.active > a > .fa,
html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li.active > a > .fas,
html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li.active > a > .far {
    color: #fff;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-menu > li > .treeview-menu {
    background: #0a1423 !important;
    border-color: #1e3049;
}

html[data-gx-theme="dark"] .skin-blue-light .treeview-menu > li > a {
    color: #8fa4be !important;
}

html[data-gx-theme="dark"] .skin-blue-light .treeview-menu > li.active > a,
html[data-gx-theme="dark"] .skin-blue-light .treeview-menu > li > a:hover {
    background: var(--gx2-accent-soft) !important;
    color: var(--gx2-accent-dark) !important;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-form .input-group,
html[data-gx-theme="dark"] .main-header .gx-header-search-form .input-group {
    background: #101d30 !important;
    border-color: var(--gx2-line) !important;
}

html[data-gx-theme="dark"] .skin-blue-light .sidebar-form input[type="text"],
html[data-gx-theme="dark"] .main-header .gx-header-search-form input[type="text"] {
    color: var(--gx2-ink) !important;
}

html[data-gx-theme="dark"] .content-header {
    border-color: var(--gx2-line);
}

html[data-gx-theme="dark"] .content-header > h1,
html[data-gx-theme="dark"] .content-header > h1 > small,
html[data-gx-theme="dark"] .content-header .breadcrumb {
    color: var(--gx2-ink) !important;
}

html[data-gx-theme="dark"] .content-header > .breadcrumb {
    background: #111d30;
    border-color: var(--gx2-line);
}

html[data-gx-theme="dark"] .box,
html[data-gx-theme="dark"] .nav-tabs-custom,
html[data-gx-theme="dark"] .modal-content,
html[data-gx-theme="dark"] .dropdown-menu,
html[data-gx-theme="dark"] .select2-dropdown,
html[data-gx-theme="dark"] .popover,
html[data-gx-theme="dark"] .panel,
html[data-gx-theme="dark"] .well,
html[data-gx-theme="dark"] .franchise-dashboard-filter,
html[data-gx-theme="dark"] .franchise-kpi,
html[data-gx-theme="dark"] .franchise-chart-panel,
html[data-gx-theme="dark"] .franchise-region-table-wrap {
    background: var(--gx2-surface) !important;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-text);
}

html[data-gx-theme="dark"] .box-header,
html[data-gx-theme="dark"] .box-footer,
html[data-gx-theme="dark"] .panel-heading,
html[data-gx-theme="dark"] .modal-header,
html[data-gx-theme="dark"] .modal-footer,
html[data-gx-theme="dark"] .nav-tabs-custom > .nav-tabs {
    background: #111c2e !important;
    border-color: var(--gx2-line-soft) !important;
}

html[data-gx-theme="dark"] .box-title,
html[data-gx-theme="dark"] .modal-title,
html[data-gx-theme="dark"] .panel-title,
html[data-gx-theme="dark"] h1,
html[data-gx-theme="dark"] h2,
html[data-gx-theme="dark"] h3,
html[data-gx-theme="dark"] h4,
html[data-gx-theme="dark"] h5,
html[data-gx-theme="dark"] h6 {
    color: var(--gx2-ink) !important;
}

html[data-gx-theme="dark"] .dropdown-menu > li > a {
    color: var(--gx2-text);
}

html[data-gx-theme="dark"] .dropdown-menu > li > a:hover,
html[data-gx-theme="dark"] .dropdown-menu > li > a:focus {
    background: var(--gx2-primary-soft);
    color: #cfe0ff;
}

html[data-gx-theme="dark"] .gx-account-menu,
html[data-gx-theme="dark"] .navbar-nav > .user-menu > .dropdown-menu.gx-account-menu {
    background: #111c2e !important;
    border-color: var(--gx2-line) !important;
}

html[data-gx-theme="dark"] .gx-account-menu__profile {
    background: linear-gradient(135deg, #13233a, #101b2d);
}

html[data-gx-theme="dark"] .gx-account-menu__identity > strong,
html[data-gx-theme="dark"] .gx-account-menu__action-copy strong {
    color: var(--gx2-ink);
}

html[data-gx-theme="dark"] .navbar-nav > .user-menu > .dropdown-menu.gx-account-menu > .gx-account-menu__actions > a {
    color: var(--gx2-text) !important;
}

html[data-gx-theme="dark"] .gx-account-menu__action-icon {
    background: var(--gx2-primary-soft);
}

html[data-gx-theme="dark"] .form-control,
html[data-gx-theme="dark"] .select2-container .select2-selection,
html[data-gx-theme="dark"] .input-group-addon,
html[data-gx-theme="dark"] .bootstrap-tagsinput,
html[data-gx-theme="dark"] .tagify,
html[data-gx-theme="dark"] .select2-search--dropdown .select2-search__field {
    background: #0d1829 !important;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-ink) !important;
}

html[data-gx-theme="dark"] .form-control:focus,
html[data-gx-theme="dark"] .select2-container--default.select2-container--focus .select2-selection,
html[data-gx-theme="dark"] .select2-container--default.select2-container--open .select2-selection {
    background: #101d30 !important;
}

html[data-gx-theme="dark"] .form-control[disabled],
html[data-gx-theme="dark"] .form-control[readonly],
html[data-gx-theme="dark"] fieldset[disabled] .form-control {
    background: #172234 !important;
    color: var(--gx2-muted);
}

html[data-gx-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-gx-theme="dark"] .select2-results__option,
html[data-gx-theme="dark"] .control-label,
html[data-gx-theme="dark"] .form-group > label,
html[data-gx-theme="dark"] .radio label,
html[data-gx-theme="dark"] .checkbox label {
    color: var(--gx2-text);
}

html[data-gx-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background: #1a2b43 !important;
    color: var(--gx2-ink) !important;
}

html[data-gx-theme="dark"] .filter-box,
html[data-gx-theme="dark"] #filter-box {
    background: #0e192a !important;
    border-color: var(--gx2-line-soft) !important;
}

html[data-gx-theme="dark"] .btn-default {
    background: #172438 !important;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-text) !important;
}

html[data-gx-theme="dark"] .btn-default:hover,
html[data-gx-theme="dark"] .btn-default:focus {
    background: #203149 !important;
    border-color: #3a506d !important;
    color: #fff !important;
}

html[data-gx-theme="dark"] .btn-danger {
    background: var(--gx2-danger-soft) !important;
    border-color: #75413d !important;
    color: var(--gx2-danger) !important;
}

html[data-gx-theme="dark"] .table-responsive,
html[data-gx-theme="dark"] .table-main,
html[data-gx-theme="dark"] .table,
html[data-gx-theme="dark"] .table > tbody > tr {
    background: var(--gx2-surface) !important;
    color: var(--gx2-text);
}

html[data-gx-theme="dark"] .table > thead > tr > th {
    background: #172438 !important;
    border-color: var(--gx2-line) !important;
    color: #b8c9dc !important;
}

html[data-gx-theme="dark"] .table > tbody > tr > td,
html[data-gx-theme="dark"] .table > tfoot > tr > td {
    border-color: var(--gx2-line-soft) !important;
}

html[data-gx-theme="dark"] .table-hover > tbody > tr:hover,
html[data-gx-theme="dark"] .table > tbody > tr:hover {
    background: #13233a !important;
}

html[data-gx-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    background: #0f1a2b !important;
}

html[data-gx-theme="dark"] .gx-table-scrollbar,
html[data-gx-theme="dark"] .gx-table-scrollbar::-webkit-scrollbar-track,
html[data-gx-theme="dark"] .gx-table-scroll-enhanced::-webkit-scrollbar-track {
    background: #17263a;
}

html[data-gx-theme="dark"] .pagination > li > a,
html[data-gx-theme="dark"] .pagination > li > span {
    background: #142136;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-text) !important;
}

html[data-gx-theme="dark"] .pagination > .disabled > span,
html[data-gx-theme="dark"] .pagination > .disabled > a {
    background: #101a2b !important;
    color: #61738b !important;
}

html[data-gx-theme="dark"] .gx-metric-group,
html[data-gx-theme="dark"] .gx-chart-panel,
html[data-gx-theme="dark"] .gx-kpi-overview,
html[data-gx-theme="dark"] .dashboard-primary-box,
html[data-gx-theme="dark"] .info-box.dashboard-primary-box {
    background: var(--gx2-surface) !important;
    border-color: var(--gx2-line) !important;
}

html[data-gx-theme="dark"] .gx-metric-group__header,
html[data-gx-theme="dark"] .gx-chart-panel__header,
html[data-gx-theme="dark"] .gx-kpi-overview__header {
    background: #111c2e;
    border-color: var(--gx2-line-soft);
}

html[data-gx-theme="dark"] .gx-metric-card {
    background: #0d1829;
    border-color: #223249;
    color: var(--gx2-text);
}

html[data-gx-theme="dark"] .gx-metric-card:hover,
html[data-gx-theme="dark"] .gx-metric-card:focus {
    background: #14233a;
    border-color: #3865a1;
}

html[data-gx-theme="dark"] .gx-metric-card__copy strong,
html[data-gx-theme="dark"] .gx-metric-group__copy strong,
html[data-gx-theme="dark"] .gx-chart-panel__summary strong,
html[data-gx-theme="dark"] .gx-kpi-row__value {
    color: var(--gx2-ink);
}

html[data-gx-theme="dark"] .gx-chart-panel__summary {
    border-color: var(--gx2-line-soft);
}

html[data-gx-theme="dark"] .gx-chart-panel__summary > div {
    background: #0d1829;
}

html[data-gx-theme="dark"] .gx-chart-panel__summary > div + div {
    border-color: var(--gx2-line-soft);
}

html[data-gx-theme="dark"] .file-drop-zone,
html[data-gx-theme="dark"] .file-preview,
html[data-gx-theme="dark"] .krajee-default.file-preview-frame {
    background: #0d1829 !important;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-text);
}

html[data-gx-theme="dark"] .gx-page-loader {
    background: rgba(8, 17, 31, 0.9);
}

html[data-gx-theme="dark"] .gx-page-loader__card {
    background: var(--gx2-surface);
    border-color: var(--gx2-line);
}

html[data-gx-theme="dark"] .gx-page-loader__line,
html[data-gx-theme="dark"] .gx-page-loader__block {
    background: #1d2c41;
}

html[data-gx-theme="dark"] .gx-page-loader__line::after,
html[data-gx-theme="dark"] .gx-page-loader__block::after {
    background: linear-gradient(100deg, transparent 20%, rgba(74, 96, 127, 0.32) 48%, transparent 76%);
}

html[data-gx-theme="dark"] .auth-wrapper,
html[data-gx-theme="dark"] .login-page,
html[data-gx-theme="dark"] .form-02-main {
    background: var(--gx2-canvas) !important;
}

html[data-gx-theme="dark"] .form-03-main {
    background: var(--gx2-surface) !important;
    border-color: var(--gx2-line) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4) !important;
}

html[data-gx-theme="dark"] ._ge_de_ol {
    background: #0d1829 !important;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-ink) !important;
}

html[data-gx-theme="dark"] .daterangepicker,
html[data-gx-theme="dark"] .datetimepicker,
html[data-gx-theme="dark"] .bootstrap-datetimepicker-widget,
html[data-gx-theme="dark"] .swal2-popup,
html[data-gx-theme="dark"] pre,
html[data-gx-theme="dark"] code {
    background: #111c2e !important;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-text) !important;
}

html[data-gx-theme="dark"] .daterangepicker .calendar-table,
html[data-gx-theme="dark"] .daterangepicker td.off,
html[data-gx-theme="dark"] .daterangepicker td.off.in-range,
html[data-gx-theme="dark"] .daterangepicker td.off.start-date,
html[data-gx-theme="dark"] .daterangepicker td.off.end-date {
    background: #0d1829 !important;
    border-color: var(--gx2-line) !important;
    color: var(--gx2-muted) !important;
}

/* Utility refinements */
.main-footer {
    display: none !important;
}

#totop {
    background: var(--gx2-primary) !important;
    border-radius: var(--gx2-radius) !important;
    box-shadow: var(--gx2-shadow-sm) !important;
    height: 42px;
    width: 42px;
}

.popover-title {
    background: #f8fafc;
    border-bottom-color: var(--gx2-line-soft);
    border-radius: var(--gx2-radius-lg) var(--gx2-radius-lg) 0 0;
    color: var(--gx2-ink);
    font-weight: 700;
}

.timeline-panel {
    border-color: var(--gx2-line);
    border-radius: var(--gx2-radius);
    box-shadow: var(--gx2-shadow-xs);
}

.timeline::before {
    background: var(--gx2-line);
}

.timeline > li::before {
    border-color: var(--gx2-primary);
}

@keyframes gx2-spin {
    to { transform: rotate(360deg); }
}

@keyframes gx2-shimmer {
    100% { transform: translateX(100%); }
}

@keyframes gx2-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 1199px) {
    .main-header .gx-header-menu-search {
        left: 66px;
        right: 235px;
        top: 11px;
        transform: none;
        width: auto;
    }

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

    .gx-metric-groups {
        grid-template-columns: 1fr;
    }

    .gx-kpi-column + .gx-kpi-column {
        border-left: 0;
        border-top: 1px solid var(--gx2-line-soft);
    }
}

@media (max-width: 991px) {
    .gx-metric-groups {
        grid-template-columns: 1fr;
    }

    .franchise-dashboard-filter,
    .franchise-kpis,
    .franchise-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .franchise-filter-action {
        grid-column: 1 / -1;
    }

    .franchise-filter-action .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .main-header {
        max-height: calc(var(--gx2-topbar-height) * 2);
    }

    .main-header .logo {
        border-right: 0 !important;
        height: var(--gx2-topbar-height);
        justify-content: center;
        width: 100%;
    }

    .main-header .logo-lg {
        justify-content: center;
    }

    .main-header .navbar,
    .skin-blue-light .main-header .navbar {
        margin-left: 0;
    }

    .main-header .gx-header-menu-search {
        display: none;
    }

    .main-sidebar,
    .left-side,
    .skin-blue-light .main-sidebar {
        padding-top: calc(var(--gx2-topbar-height) * 2);
        transform: translate(-272px, 0);
    }

    .main-sidebar .sidebar {
        height: calc(100vh - (var(--gx2-topbar-height) * 2));
    }

    .sidebar-open .main-sidebar,
    .sidebar-open .left-side {
        transform: translate(0, 0);
    }

    .content-wrapper,
    .right-side,
    .sidebar-mini:not(.sidebar-collapse) .content-wrapper,
    .sidebar-mini:not(.sidebar-collapse) .right-side {
        margin-left: 0;
        min-height: calc(100vh - (var(--gx2-topbar-height) * 2)) !important;
        padding-top: calc(var(--gx2-topbar-height) * 2) !important;
    }

    .sidebar-open .content-wrapper,
    .sidebar-open .right-side,
    .sidebar-open .main-footer {
        transform: translate(272px, 0);
    }

    .content-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin: 0;
        min-height: 0;
        padding: 15px var(--gx2-content-gutter) 13px;
    }

    .content-header > h1 {
        font-size: 20px;
    }

    .content-header > .breadcrumb {
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .content {
        padding: 14px var(--gx2-content-gutter) 24px;
    }

    .box-header {
        height: auto;
    }

    .grid-box > .box-header .pull-right,
    .grid-box > .box-header .pull-left {
        float: none !important;
        justify-content: flex-start;
        margin: 4px 0;
        width: 100%;
    }

    .form-horizontal .control-label {
        padding-top: 0;
        text-align: left;
    }

    .gx-chart-grid,
    .franchise-dashboard-filter,
    .franchise-kpis,
    .franchise-chart-grid {
        grid-template-columns: 1fr;
    }

    .gx-dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 24px 20px;
    }

    .gx-dashboard-welcome h2 {
        font-size: 23px;
    }

    .gx-dashboard-welcome__meta {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .gx-metric-group__body {
        grid-template-columns: 1fr;
    }

    .gx-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .gx-page-loader {
        left: 0 !important;
        padding: 18px 15px;
        top: calc(var(--gx2-topbar-height) * 2);
    }

    .gx-page-loader__blocks {
        grid-template-columns: 1fr;
    }

    .gx-page-loader__block:not(:first-child) {
        display: none;
    }

    .form-03-main {
        margin: 0 auto;
        padding: 28px 22px !important;
    }
}

@media (max-width: 479px) {
    .navbar-nav > .user-menu > .dropdown-toggle .hidden-xs {
        display: none !important;
    }

    .navbar-nav > .user-menu > .dropdown-menu.gx-account-menu {
        min-width: 300px;
        right: 4px;
        width: calc(100vw - 20px);
    }

    .box-body {
        padding: 14px;
    }

    .btn {
        max-width: 100%;
    }

    .gx-network-status {
        bottom: 12px;
        left: 12px;
        justify-content: center;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .main-header,
    .main-sidebar,
    .content-header > .breadcrumb,
    .gx-page-loader,
    .gx-network-status,
    #totop {
        display: none !important;
    }

    .content-wrapper,
    .right-side {
        background: #fff !important;
        margin: 0 !important;
    }

    .content {
        padding: 0;
    }

    .box,
    .panel {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}
