@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

.article-categories-scrollbox { height: 110px; overflow-y:scroll}
.article-categories-scrollbox .list-group-item {padding: 4px 7px 2px 7px;}

.custom-from-header-test-email {
    display:none;
}

#ea-box-wrapper .box-body .box-title {
    padding-top:5px!important;
    font-size: 16px!important;
}

#ea-box-wrapper .box-body .box-body {
    font-size: 12px!important;
    min-height:100px;
}

.row-group-category .callout{
    border-color: #3c8dbc;
    border-left: 3px solid #3c8dbc;
    margin-bottom:2px;
}
.row-group-category .callout h4{
    color:#333333;
    margin-bottom:0px;
    padding-bottom:0px;
    font-size:15px;
}
.row-group-category .box {
    margin-top:-3px;
}

.price-plan-payment {
    position: relative;
    /* width: 90%; */
    /* margin: 10px auto; */
    background: #fff;
    border: 1px solid #f4f4f4;
    padding:10px;
}

.timeinfo {
    font-size: 12px;
    display:none;
    color:#ffffff;
    border-top: 1px solid #2c3b41;
    width: 100%;
    padding: 7px 10px 7px 6px;
}

.panel-tiny {float:left; max-width: 190px;margin-right:10px}
.panel-tiny .panel-heading {}
.panel-tiny .panel-body {min-height:70px; font-size: 12px}
.panel-tiny .panel-footer {}
.panel-tiny .panel-heading h3 {font-size: 14px; margin:0; padding:0}

.panel-delivery-servers-pool .item {
    border-left: 5px solid #1f2937;
    background: #eeeeee;
    padding: 3px;
    font-size: 13px;
    font-family: 'Noto Sans', sans-serif;
}

#store-box-wrapper {}
#store-box-wrapper .item {
    padding:15px 5px 15px 5px;
    border-bottom:1px solid #3c8dbc;
    min-height:125px;
    font-size: 13px;
}
#store-box-wrapper .item:hover {
    background-color: #fafafa;
}
#store-box-wrapper .item:after,
#store-box-wrapper .item:before {
    display: table;
    content: " ";
}
#store-box-wrapper .item:after {
    clear: both;
}
#store-box-wrapper .item .image {
    float:left;
    width: 15%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-right: 20px;
}
#store-box-wrapper .item .image img {
    width:80px;
    height:auto;
}
#store-box-wrapper .item .details {
    float:left;
    width:67%;
}
#store-box-wrapper .item .details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}
#store-box-wrapper .item .details p {
    margin: 0;
}
#store-box-wrapper .item .actions {
    float:right;
    width:16%;
}
#store-box-wrapper .item .actions .btn {
    display:block;
    margin-bottom:5px;
    text-align:center;
}

.select-icon-wrapper .icon-item {
    font-size: 18px;
    padding: 3px;
}

.select-icon-wrapper .input-group {
    width:100%;
}

.select-icon-wrapper .input-group-addon {
    padding:0px;
    height: 50px;
    width: 70px;
    text-align: center;
}

.select-icon-wrapper .input-group-addon a.icon-wrap {
    font-size: 40px;
}

.select-icon-wrapper #StartPage_search_icon {
    margin-top: 5px!important;
}

.select-icon-wrapper .icons-list {
    max-height: 150px;
    overflow-y: scroll;
}

.grid-view .icon-span {
    font-size: 25px;
}

.warmup-plans-scrollable-container {
    max-height: 400px;
    overflow-y: scroll
}

/* ─── SenderWiz modern sidebar (GoPanel-style) ───────────── */
body.skin-blue .main-sidebar,
body.skin-blue .left-side {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-right: 1px solid #e5e7eb;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    padding-top: 0 !important;
    top: 0 !important;
}
@media (min-width: 768px) {
    body.skin-blue .main-sidebar,
    body.skin-blue .left-side {
        position: fixed !important;
        height: 100vh !important;
    }
}
body.skin-blue .main-sidebar .sidebar {
    background: #ffffff !important;
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    padding-bottom: 0 !important;
    overflow: hidden;
}
/* Only the navigation scrolls; brand stays pinned. */
body.skin-blue .main-sidebar .sidebar > .sidebar-menu {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}
/* Since sidebar is position:fixed at top:0, push content below the header */
body.skin-blue .content-wrapper {
    padding-top: 0 !important;
}

/* Brand area — logo + app name, left-aligned, fixed height, divider */
body.skin-blue .main-sidebar .sw-brand {
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 5;
    flex-shrink: 0;
}
body.skin-blue .main-sidebar .sw-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    min-width: 0;
}
body.skin-blue .main-sidebar .sw-brand-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 6px;
}
body.skin-blue .main-sidebar .sw-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating collapse toggle — sits on the right divider line, vertically centered */
body.skin-blue .main-sidebar { position: relative; }
body.skin-blue .main-sidebar .sw-sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    z-index: 1040;
    transition: box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body.skin-blue .main-sidebar .sw-sidebar-toggle:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #111827;
    border-color: #9ca3af;
}
body.skin-blue .main-sidebar .sw-sidebar-toggle i {
    font-size: 13px;
    line-height: 1;
    transition: transform 0.2s ease;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-sidebar-toggle i {
    transform: rotate(180deg);
}

/* ── Collapsed state: show only logo in brand, hide app name ── */
body.skin-blue.sidebar-collapse .main-sidebar .sw-brand {
    padding: 0;
    justify-content: center;
    overflow: hidden;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-brand-link {
    justify-content: center;
    gap: 0;
    width: 100%;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-brand-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-brand-name {
    display: none;
}

/* ── Collapsed state: center icons, tighter padding ── */
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu {
    padding: 12px 6px;
    overflow: visible;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar {
    overflow: visible !important;
}
body.skin-blue.sidebar-collapse .main-sidebar {
    overflow: visible;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li {
    position: relative;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li > a {
    justify-content: center;
    padding: 10px 0;
    gap: 0;
    overflow: visible;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li > a > span {
    display: none;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li:hover > a > span {
    display: inline-block;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    padding: 6px 12px;
    background: #111827;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    pointer-events: none;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li:hover > a::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    margin-left: 8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 4px solid #111827;
    z-index: 1051;
    pointer-events: none;
}
/* Collapsed-state flyout submenu: show the actual treeview items on hover
   so parent menus (Monetization, Customers, etc.) remain usable when the
   sidebar is collapsed to icons only. The parent's own name is shown as a
   styled title at the top of the flyout. The header and submenu are sized
   to the same width and stacked flush so they read as a single panel. The
   ::before bridges keep the cursor inside the <li>:hover zone while it
   crosses the 8px visual gap between the sidebar icon and the panel. */
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li.treeview:hover > a > span {
    /* Reposition the parent's label as a header sitting just above the submenu panel */
    display: inline-block;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 8px;
    padding: 10px 14px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    background: #ffffff;
    color: #111827 !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.25;
    border: 1px solid #e5e7eb;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: none;
    box-sizing: border-box;
    white-space: nowrap;
    z-index: 1051;
    flex: 0 0 auto !important;
    transform: none;
    /* Override the generic non-treeview tooltip rule's `pointer-events: none`
       so hovering this header keeps <li>:hover engaged and the popout open. */
    pointer-events: auto;
}
/* Invisible bridge so the cursor doesn't lose <li>:hover while crossing the
   8px gap between the icon column and the popout. The ::after is attached
   to the <li> itself (always present in DOM) and only sized while hovered,
   so it extends the <li>'s hover catchment to cover the gap until the
   cursor reaches the popout. */
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li.treeview:hover::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 8px;
    background: transparent;
    z-index: 1052;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li.treeview:hover > a::after {
    display: none;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li.treeview > .treeview-menu {
    display: none !important;
    position: absolute;
    left: 100%;
    /* Sits exactly under the header (header height ≈ 40px), with a 1px
       overlap so their borders merge into a single line. */
    top: 39px;
    /* !important needed to beat the general `.treeview-menu { margin: 0 !important }`
       rule that ships with the layout. */
    margin-left: 8px !important;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px !important;
    box-sizing: border-box;
    z-index: 1050;
}
/* Invisible bridge for the submenu portion of the popout. */
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li.treeview > .treeview-menu::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    width: 8px;
    background: transparent;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li.treeview:hover > .treeview-menu {
    display: block !important;
}
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li.treeview > .treeview-menu > li > a {
    white-space: nowrap;
}

/* Sidebar menu container — fills flex to push profile to bottom */
body.skin-blue .main-sidebar .sidebar-menu {
    padding: 16px;
    background: #ffffff !important;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    flex: 1 1 auto;
    overflow-y: auto;
}

/* Menu links */
body.skin-blue .main-sidebar .sidebar-menu > li > a,
body.skin-blue.dark .main-sidebar .sidebar-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-left: none !important;
    border-radius: 8px;
    color: #4b5563 !important;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}
body.skin-blue .main-sidebar .sidebar-menu > li > a > .nav-icon,
body.skin-blue.dark .main-sidebar .sidebar-menu > li > a > .nav-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    color: #4b5563;
    stroke: currentColor;
    margin: 0;
}
body.skin-blue .main-sidebar .sidebar-menu > li.active > a > .nav-icon,
body.skin-blue .main-sidebar .sidebar-menu > li > a:hover > .nav-icon {
    color: #111827;
}
body.skin-blue .main-sidebar .sidebar-menu > li > a > i,
body.skin-blue .main-sidebar .sidebar-menu > li > a > .fa,
body.skin-blue .main-sidebar .sidebar-menu > li > a > .glyphicon,
body.skin-blue.dark .main-sidebar .sidebar-menu > li > a > i,
body.skin-blue.dark .main-sidebar .sidebar-menu > li > a > .fa,
body.skin-blue.dark .main-sidebar .sidebar-menu > li > a > .glyphicon {
    width: 22px !important;
    text-align: center;
    font-size: 19px !important;
    line-height: 1 !important;
    color: #4b5563 !important;
    margin: 0;
}
body.skin-blue .main-sidebar .sidebar-menu > li > a > span {
    flex: 1;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: inherit !important;
}

/* Hover */
body.skin-blue .main-sidebar .sidebar-menu > li > a:hover,
body.skin-blue.dark .main-sidebar .sidebar-menu > li > a:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    color: #111827 !important;
}

/* Active */
body.skin-blue .main-sidebar .sidebar-menu > li.active > a,
body.skin-blue .main-sidebar .sidebar-menu > li.active:hover > a,
body.skin-blue.dark .main-sidebar .sidebar-menu > li.active > a,
body.skin-blue.dark .main-sidebar .sidebar-menu > li.active:hover > a {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    font-weight: 600;
}
body.skin-blue .main-sidebar .sidebar-menu > li.active > a > i,
body.skin-blue .main-sidebar .sidebar-menu > li.active > a > .fa {
    color: #111827 !important;
}

/* Chevron indicator for expandable menu items — left-pointing when closed, rotates down when open */
body.skin-blue .main-sidebar .sidebar-menu > li > a > .pull-right-container {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    color: #9ca3af;
    transition: transform 0.2s ease, color 0.15s ease;
}
body.skin-blue .main-sidebar .sidebar-menu > li > a > .pull-right-container > .fa,
body.skin-blue .main-sidebar .sidebar-menu > li > a > .pull-right-container > i {
    font-size: 12px !important;
    line-height: 1 !important;
    color: inherit !important;
    margin: 0 !important;
    width: auto !important;
    transition: transform 0.2s ease;
}
/* Rotate 90° when the parent li is active (submenu open) */
body.skin-blue .main-sidebar .sidebar-menu > li.active > a > .pull-right-container > .fa,
body.skin-blue .main-sidebar .sidebar-menu > li.active > a > .pull-right-container > i,
body.skin-blue .main-sidebar .sidebar-menu > li.menu-open > a > .pull-right-container > .fa,
body.skin-blue .main-sidebar .sidebar-menu > li.menu-open > a > .pull-right-container > i {
    transform: rotate(-90deg);
    color: #111827;
}
/* Hide the chevron when sidebar is collapsed (icon-only mode) */
body.skin-blue.sidebar-collapse .main-sidebar .sidebar-menu > li > a > .pull-right-container {
    display: none !important;
}

/* Submenu (treeview) */
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu,
body.skin-blue.dark .main-sidebar .sidebar-menu .treeview-menu {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 2px 0 4px 0 !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu > li,
body.skin-blue.dark .main-sidebar .sidebar-menu .treeview-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    min-height: 0 !important;
}
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu > li > a,
body.skin-blue.dark .main-sidebar .sidebar-menu .treeview-menu > li > a {
    display: block !important;
    padding: 6px 12px 6px 20px !important;
    margin: 1px 0 !important;
    min-height: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 8px;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    height: auto !important;
    white-space: nowrap;
}
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu > li > a:hover {
    background: #f4f5f7 !important;
    color: #111418 !important;
}
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu > li.active > a {
    background: #eef0f3 !important;
    color: #111418 !important;
    font-weight: 600;
}
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu > li > a > i,
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu > li > a > .fa {
    color: #9ca3af !important;
    font-size: 7px !important;
    width: 8px !important;
    line-height: 1 !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    display: inline-block;
}
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu > li.active > a > i,
body.skin-blue .main-sidebar .sidebar-menu .treeview-menu > li.active > a > .fa {
    color: #111418 !important;
}

/* Hide the entire top white navbar (hamburger + icons) */
/* Top header bar — white, thin border, profile menu pushed right */
body.skin-blue .main-header {
    display: block !important;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.skin-blue .main-header .navbar {
    background: #ffffff !important;
    height: 56px;
    min-height: 56px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
    box-shadow: none;
}
body.skin-blue .main-header .navbar-custom-menu {
    float: right;
}
body.skin-blue .main-header .navbar-custom-menu > .nav > li > a {
    color: #4b5563;
    padding: 18px 14px;
}
body.skin-blue .main-header .navbar-custom-menu > .nav > li > a:hover,
body.skin-blue .main-header .navbar-custom-menu > .nav > li > a:focus {
    background: #f3f4f6;
    color: #111827;
}
body.skin-blue .main-header .sidebar-toggle {
    color: #4b5563;
    padding: 18px 14px;
}
body.skin-blue .main-header .sidebar-toggle:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Move breadcrumb to the left, slightly larger */
body.skin-blue .content-header > .breadcrumb {
    float: left !important;
    right: auto !important;
    left: 15px !important;
    font-size: 15px !important;
}

/* Primary buttons — dark slate instead of blue */
body.skin-blue .btn-primary,
body.skin-blue.dark .btn-primary {
    background-color: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
}
body.skin-blue .btn-primary:hover,
body.skin-blue .btn-primary:focus,
body.skin-blue .btn-primary:active,
body.skin-blue .btn-primary.active,
body.skin-blue .open .dropdown-toggle.btn-primary,
body.skin-blue.dark .btn-primary:hover,
body.skin-blue.dark .btn-primary:focus,
body.skin-blue.dark .btn-primary:active,
body.skin-blue.dark .btn-primary.active {
    background-color: #111827 !important;
    border-color: #111827 !important;
    color: #ffffff !important;
}
body.skin-blue .btn-primary[disabled],
body.skin-blue .btn-primary.disabled {
    background-color: #4b5563 !important;
    border-color: #4b5563 !important;
    opacity: 0.65;
}

/* Links — black instead of blue */
body.skin-blue .content-wrapper a,
body.skin-blue .content-wrapper a:visited {
    color: #111827;
}
body.skin-blue .content-wrapper a:hover,
body.skin-blue .content-wrapper a:focus {
    color: #000000;
    text-decoration: underline;
}
body.skin-blue .content-header > .breadcrumb > li > a,
body.skin-blue .content-header > .breadcrumb > li > a:visited {
    color: #111827 !important;
    font-weight: 500;
}
body.skin-blue .content-header > .breadcrumb > li.active,
body.skin-blue .content-header > .breadcrumb > li.active > a {
    color: #6b7280 !important;
}

/* Keep button text white */
body.skin-blue .content-wrapper .btn,
body.skin-blue .content-wrapper .btn:hover,
body.skin-blue .content-wrapper .btn:focus,
body.skin-blue .content-wrapper .btn-primary,
body.skin-blue .content-wrapper .btn-primary:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}
body.skin-blue .content-wrapper .btn-default,
body.skin-blue .content-wrapper .btn-default:hover {
    color: #111827 !important;
}

/* Icon-only square buttons in box-headers — scoped to direct toolbar
 * children so buttons that get moved into the .sw-overflow-menu-list
 * (where they need their full label) are not zeroed out. */
body.skin-blue .box-header .pull-right > .btn[title="Refresh"],
body.skin-blue .box-header .pull-right > .btn[data-original-title="Refresh"],
body.skin-blue .box-header .pull-right > .btn[title="Upload template"],
body.skin-blue .box-header .pull-right > .btn[data-original-title="Upload template"],
body.skin-blue .box-header .pull-right > .btn[title="Import"],
body.skin-blue .box-header .pull-right > .btn[data-original-title="Import"],
body.skin-blue .box-header .pull-right > .sw-overflow-trigger,
body.skin-blue .box-header .sw-overflow-trigger {
    font-size: 0 !important;
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    text-align: center !important;
    vertical-align: middle;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
body.skin-blue .box-header .pull-right > .btn[title="Refresh"] > i,
body.skin-blue .box-header .pull-right > .btn[title="Refresh"] > .fa,
body.skin-blue .box-header .pull-right > .btn[title="Refresh"] > .glyphicon,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Refresh"] > i,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Refresh"] > .fa,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Refresh"] > .glyphicon,
body.skin-blue .box-header .pull-right > .btn[title="Upload template"] > i,
body.skin-blue .box-header .pull-right > .btn[title="Upload template"] > .fa,
body.skin-blue .box-header .pull-right > .btn[title="Upload template"] > .glyphicon,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Upload template"] > i,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Upload template"] > .fa,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Upload template"] > .glyphicon,
body.skin-blue .box-header .pull-right > .btn[title="Import"] > i,
body.skin-blue .box-header .pull-right > .btn[title="Import"] > .fa,
body.skin-blue .box-header .pull-right > .btn[title="Import"] > .glyphicon,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Import"] > i,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Import"] > .fa,
body.skin-blue .box-header .pull-right > .btn[data-original-title="Import"] > .glyphicon,
body.skin-blue .box-header .sw-overflow-trigger > i {
    font-size: 15px !important;
    margin: 0 !important;
}

/* Overflow dropdown menu */
body.skin-blue .sw-overflow-menu { margin-left: 6px; }
body.skin-blue .sw-overflow-menu-list {
    padding: 6px !important;
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.05);
}
body.skin-blue .sw-overflow-menu-list > li > .btn,
body.skin-blue .sw-overflow-menu-list > li > .dropdown > .btn,
body.skin-blue .sw-overflow-menu-list > li > .dropdown > a.btn,
body.skin-blue .sw-overflow-menu-list > li > .btn-group > .btn,
body.skin-blue .sw-overflow-menu-list > li > .btn-group > a.btn {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-weight: 500;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border-radius: 6px;
    text-align: left;
    white-space: normal;
    justify-content: flex-start !important;
}
body.skin-blue .sw-overflow-menu-list > li > .btn:hover,
body.skin-blue .sw-overflow-menu-list > li > .dropdown > .btn:hover,
body.skin-blue .sw-overflow-menu-list > li > .btn-group > .btn:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
body.skin-blue .sw-overflow-menu-list > li > .btn-group {
    display: block !important;
    width: 100%;
    position: relative;
}
body.skin-blue .sw-overflow-menu-list > li > .btn-group > .dropdown-menu {
    top: 0 !important;
    right: 100% !important;
    left: auto !important;
    margin-right: 4px;
    min-width: 240px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.05);
    padding: 6px !important;
}
body.skin-blue .sw-overflow-menu-list > li > .btn-group.open > .dropdown-menu {
    display: block !important;
}
body.skin-blue .sw-overflow-menu-list > li > .btn-group > .dropdown-toggle .caret { display: none !important; }
body.skin-blue .sw-overflow-menu-list > li > .btn-group > .dropdown-toggle {
    position: relative;
    padding-right: 28px !important;
}
body.skin-blue .sw-overflow-menu-list > li > .btn-group > .dropdown-toggle::after {
    content: "\f105";
    font-family: "FontAwesome";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1;
}
body.skin-blue .sw-overflow-menu-list > li > .btn-group.open > .dropdown-toggle::after {
    color: #111827;
}
body.skin-blue .sw-overflow-menu-list > li > .btn > i,
body.skin-blue .sw-overflow-menu-list > li > .btn > .fa,
body.skin-blue .sw-overflow-menu-list > li > .btn > .glyphicon {
    font-size: 14px !important;
    width: 16px;
    text-align: center;
    color: #4b5563 !important;
    margin: 0 !important;
}
body.skin-blue .sw-overflow-menu-list .dropdown { width: 100%; }

/* Dashboard big counter numbers — black, not blue */
body.skin-blue .content-wrapper .box .big-text,
body.skin-blue .content-wrapper .box h1,
body.skin-blue .content-wrapper .box h2.big,
body.skin-blue .content-wrapper .info-box-number,
body.skin-blue .content-wrapper .description-block .description-header {
    color: #111827 !important;
}
body.skin-blue .content-wrapper .text-primary,
body.skin-blue .content-wrapper .text-info {
    color: #111827 !important;
}

/* ─── Sidebar notification row (above profile) ───────────── */
body.skin-blue .main-sidebar .sw-notify {
    padding: 0 16px 6px 16px;
}
body.skin-blue .main-sidebar .sw-notify-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4b5563 !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
body.skin-blue .main-sidebar .sw-notify-link > .sw-notify-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}
body.skin-blue .main-sidebar .sw-notify-link > .sw-notify-icon-wrap > i {
    font-size: 19px;
    line-height: 1;
    color: #4b5563 !important;
}
body.skin-blue .main-sidebar .sw-notify-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #dc2626;
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #ffffff;
}
body.skin-blue .main-sidebar .sw-notify-link:hover {
    background: #f9fafb;
    color: #111827 !important;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-notify {
    padding: 0 0 6px 0;
    text-align: center;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-notify-link {
    justify-content: center;
    padding: 10px 0;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-notify-link > span {
    display: none;
}

/* ─── Bottom profile card ─────────────────────────────────── */
body.skin-blue .main-sidebar .sw-profile {
    position: relative;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    margin-top: auto;
    flex-shrink: 0;
}
body.skin-blue .main-sidebar .sw-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
body.skin-blue .main-sidebar .sw-profile-card:hover,
body.skin-blue .main-sidebar .sw-profile-card.open {
    background: #f3f4f6;
}
body.skin-blue .main-sidebar .sw-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.skin-blue .main-sidebar .sw-profile-info {
    flex: 1;
    min-width: 0;
}
body.skin-blue .main-sidebar .sw-profile-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
body.skin-blue .main-sidebar .sw-profile-email {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
body.skin-blue .main-sidebar .sw-profile-chevron {
    color: #9ca3af;
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
body.skin-blue .main-sidebar .sw-profile-card.open .sw-profile-chevron {
    transform: rotate(180deg);
}

/* Profile dropdown — opens upward */
body.skin-blue .main-sidebar .sw-profile-menu {
    position: absolute;
    bottom: calc(100% - 8px);
    left: 12px;
    right: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}
body.skin-blue .main-sidebar .sw-profile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
body.skin-blue .main-sidebar .sw-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #111827 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}
body.skin-blue .main-sidebar .sw-profile-menu-item > span {
    color: #111827 !important;
}
body.skin-blue .main-sidebar .sw-profile-menu-item > .nav-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    color: #111827;
    stroke: currentColor;
}
body.skin-blue .main-sidebar .sw-profile-menu-item.sw-profile-menu-signout > .nav-icon {
    color: #dc2626;
}
body.skin-blue .main-sidebar .sw-profile-menu-item.sw-profile-menu-signout > span {
    color: #dc2626 !important;
}
body.skin-blue .main-sidebar .sw-profile-menu-item:hover {
    background: #f3f4f6;
    color: #111827 !important;
}
body.skin-blue .main-sidebar .sw-profile-menu-item.sw-profile-menu-signout {
    color: #dc2626 !important;
}
body.skin-blue .main-sidebar .sw-profile-menu-item.sw-profile-menu-signout > i {
    color: #dc2626;
}
body.skin-blue .main-sidebar .sw-profile-menu-item.sw-profile-menu-signout:hover {
    background: #fef2f2;
}
body.skin-blue .main-sidebar .sw-profile-menu-sep {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Collapsed sidebar: only show avatar */
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile {
    padding: 12px 0;
    text-align: center;
    position: relative;
    overflow: visible;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile-card {
    justify-content: center;
    padding: 4px;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile-info,
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile-chevron {
    display: none;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile-menu {
    position: absolute;
    top: auto;
    bottom: 8px;
    left: calc(100% + 10px);
    right: auto;
    min-width: 200px;
    padding: 6px;
    transform: translateX(-4px);
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile-menu.open {
    transform: translateX(0);
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile-menu-item {
    white-space: nowrap;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile-menu-item > span {
    display: inline-block;
    white-space: nowrap;
}
body.skin-blue.sidebar-collapse .main-sidebar .sw-profile-menu-sep {
    display: block !important;
}

/* ─── Black-accent overrides (repaint AdminLTE blues to slate) ─── */
body.skin-blue a,
body.skin-blue.dark a { color: #1f2937; }
body.skin-blue a:hover,
body.skin-blue a:focus,
body.skin-blue.dark a:hover,
body.skin-blue.dark a:focus { color: #111827; }

body.skin-blue .text-primary,
body.skin-blue .text-blue,
body.skin-blue .text-light-blue { color: #1f2937 !important; }
body.skin-blue .bg-primary,
body.skin-blue .bg-blue,
body.skin-blue .bg-light-blue,
body.skin-blue .label-primary,
body.skin-blue .label-info {
    background-color: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
}

body.skin-blue .callout.callout-info,
body.skin-blue .alert-info {
    background-color: #1f2937 !important;
    border-color: #111827 !important;
    color: #ffffff !important;
}

body.skin-blue .box.box-primary,
body.skin-blue.dark .box.box-primary {
    border-top-color: #1f2937 !important;
}
body.skin-blue .box.borderless,
body.skin-blue.dark .box.borderless,
body.skin-blue .box.box-primary.borderless,
body.skin-blue.dark .box.box-primary.borderless {
    border-top: 0 !important;
    border-top-color: transparent !important;
}
body.skin-blue .box.box-solid.box-primary,
body.skin-blue .box.box-solid.box-primary > .box-header {
    background-color: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
}

body.skin-blue .nav-tabs-custom > .nav-tabs > li.active,
body.skin-blue .nav-tabs-custom.tab-primary > .nav-tabs > li.active,
body.skin-blue.dark .nav-tabs-custom > .nav-tabs > li.active,
body.skin-blue.dark .nav-tabs-custom.tab-primary > .nav-tabs > li.active {
    border-top-color: #1f2937 !important;
}
body.skin-blue .nav-tabs-custom > .nav-tabs > li > a:hover,
body.skin-blue .nav-tabs-custom > .nav-tabs > li.active > a,
body.skin-blue .nav-tabs-custom > .nav-tabs > li.active > a:hover {
    color: #111827 !important;
}

body.skin-blue .progress-bar-primary,
body.skin-blue .progress-bar-light-blue { background-color: #1f2937 !important; }

body.skin-blue .pagination > .active > a,
body.skin-blue .pagination > .active > a:hover,
body.skin-blue .pagination > .active > a:focus,
body.skin-blue .pagination > .active > span {
    background-color: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
}
body.skin-blue .pagination > li > a,
body.skin-blue .pagination > li > span { color: #1f2937; }

body.skin-blue .form-control:focus,
body.skin-blue .select2-container--default.select2-container--focus .select2-selection {
    border-color: #1f2937 !important;
    box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.12) !important;
}

body.skin-blue .icheckbox_square-blue.checked,
body.skin-blue .iradio_square-blue.checked,
body.skin-blue .icheckbox_minimal-blue.checked,
body.skin-blue .iradio_minimal-blue.checked {
    filter: grayscale(1) brightness(0.3);
}

body.skin-blue .breadcrumb > li > a { color: #1f2937; }
body.skin-blue .breadcrumb > .active { color: #6b7280; }

body.skin-blue .btn-info,
body.skin-blue.dark .btn-info {
    background-color: #374151 !important;
    border-color: #374151 !important;
    color: #ffffff !important;
}
body.skin-blue .btn-info:hover,
body.skin-blue .btn-info:focus,
body.skin-blue .btn-info:active {
    background-color: #1f2937 !important;
    border-color: #1f2937 !important;
}

/* ─── Profile menu in top navbar (moved from sidebar bottom) ─────── */
body.skin-blue .main-header .navbar-custom-menu .sw-profile-nav {
    padding: 8px 10px 8px 4px;
}
body.skin-blue .main-header .sw-profile {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
}
body.skin-blue .main-header .sw-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
body.skin-blue .main-header .sw-profile-card:hover,
body.skin-blue .main-header .sw-profile-card.open {
    background: #f3f4f6;
}
body.skin-blue .main-header .sw-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.skin-blue .main-header .sw-profile-info {
    min-width: 0;
    max-width: 180px;
    line-height: 1.2;
}
body.skin-blue .main-header .sw-profile-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.skin-blue .main-header .sw-profile-email {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.skin-blue .main-header .sw-profile-chevron {
    color: #9ca3af;
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
body.skin-blue .main-header .sw-profile-card.open .sw-profile-chevron {
    transform: rotate(180deg);
}
body.skin-blue .main-header .sw-profile-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 1050;
}
body.skin-blue .main-header .sw-profile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
body.skin-blue .main-header .sw-profile-menu-item,
body.skin-blue .main-header .sw-profile-menu-item:hover,
body.skin-blue .main-header .sw-profile-menu-item:focus,
body.skin-blue .main-header .sw-profile-menu-item:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #111827 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}
body.skin-blue .main-header .sw-profile-menu-item > span {
    color: #111827 !important;
}
body.skin-blue .main-header .sw-profile-menu-item > .nav-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    color: #111827;
    stroke: currentColor;
}
body.skin-blue .main-header .sw-profile-menu-item:hover,
body.skin-blue .main-header .sw-profile-menu-item:focus {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}
body.skin-blue .main-header .sw-profile-menu-item .sw-profile-menu-extlink {
    margin-left: auto;
    width: 14px !important;
    height: 14px !important;
    color: #6b7280;
    flex-shrink: 0;
}
body.skin-blue .main-header .sw-profile-menu-item:hover > span,
body.skin-blue .main-header .sw-profile-menu-item:focus > span {
    color: #111827 !important;
}
body.skin-blue .main-header .sw-profile-menu-item.sw-profile-menu-signout,
body.skin-blue .main-header .sw-profile-menu-item.sw-profile-menu-signout > span {
    color: #dc2626 !important;
}
body.skin-blue .main-header .sw-profile-menu-item.sw-profile-menu-signout > .nav-icon {
    color: #dc2626;
}
body.skin-blue .main-header .sw-profile-menu-item.sw-profile-menu-signout:hover {
    background: #fef2f2;
}
body.skin-blue .main-header .sw-profile-menu-sep {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}
@media (max-width: 767px) {
    body.skin-blue .main-header .sw-profile-info,
    body.skin-blue .main-header .sw-profile-chevron {
        display: none;
    }
}

/* ============================================================
 * SW Mobile fixes (<768px) — applies to both backend and customer
 * Adds off-canvas sidebar, hamburger toggle, fixes overflow gaps
 * ============================================================ */

@media (max-width: 767px) {
    /* Sidebar must be fixed/off-canvas — otherwise its 100vh height
       pushes .content-wrapper down by ~800px in normal flow. */
    body.skin-blue .main-sidebar,
    body.skin-blue .left-side {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        z-index: 1042 !important;
        width: 260px !important;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    }
    body.skin-blue .main-sidebar .sidebar {
        height: 100vh !important;
        max-height: 100vh !important;
    }
    /* Sidebar starts off-screen on mobile (AdminLTE convention) */
    body.skin-blue .main-sidebar,
    body.skin-blue .left-side {
        transform: translateX(-260px) !important;
        -webkit-transform: translateX(-260px) !important;
        transition: transform 0.25s ease-in-out !important;
    }
    body.skin-blue.sidebar-open .main-sidebar,
    body.skin-blue.sidebar-open .left-side {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
    }
    /* Content takes full width on mobile */
    body.skin-blue .content-wrapper,
    body.skin-blue .right-side,
    body.skin-blue .main-footer {
        margin-left: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
    /* Hide the desktop floating collapse toggle on mobile */
    body.skin-blue .main-sidebar .sw-sidebar-toggle {
        display: none !important;
    }
    /* Backdrop when sidebar is open */
    body.skin-blue.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1041;
        animation: swSidebarFade 0.2s ease;
    }
    @keyframes swSidebarFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    /* Hamburger button injected into header by JS */
    body.skin-blue .sw-mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 8px 0 8px 8px;
        background: transparent;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        color: #374151;
        cursor: pointer;
        float: left;
        flex: 0 0 auto;
    }
    body.skin-blue .sw-mobile-nav-toggle:hover {
        background: #f3f4f6;
        color: #111827;
    }
    body.skin-blue .sw-mobile-nav-toggle i {
        font-size: 18px;
    }

    /* ─── Mobile header layout: hamburger + search + bell + profile in one row ─── */
    body.skin-blue .main-header .navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 0 8px !important;
        min-height: 56px !important;
    }
    body.skin-blue .main-header .navbar-custom-menu {
        float: none !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-left: 8px !important;
    }
    body.skin-blue .main-header .navbar-custom-menu > .nav.navbar-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        margin: 0 !important;
        gap: 4px !important;
    }
    /* Compact search: shrink to fit, but still visible */
    body.skin-blue .main-header .navbar-custom-menu > .nav.navbar-nav > li.sw-header-search {
        width: auto !important;
        flex: 1 1 0 !important;
        min-width: 80px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.skin-blue .main-header .sw-header-search-box {
        height: 36px !important;
        padding: 0 8px !important;
    }
    body.skin-blue .main-header .sw-header-search-input {
        font-size: 13px !important;
        min-width: 0 !important;
    }
    /* Bell + profile compact */
    body.skin-blue .main-header .navbar-custom-menu > .nav.navbar-nav > li.messages-menu,
    body.skin-blue .main-header .navbar-custom-menu > .nav.navbar-nav > li.sw-profile-nav {
        flex: 0 0 auto !important;
    }
    body.skin-blue .main-header .navbar-custom-menu > .nav > li > a {
        padding: 14px 8px !important;
    }
    /* Profile dropdown — compact, pinned to viewport right so it never overflows */
    body.skin-blue .main-header .sw-profile-nav .sw-profile-menu,
    body.skin-blue .main-header .sw-profile-menu {
        position: fixed !important;
        top: 60px !important;
        right: 12px !important;
        left: auto !important;
        min-width: 0 !important;
        width: 180px !important;
        max-width: 180px !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        z-index: 1100 !important;
        padding: 4px !important;
    }
    body.skin-blue .main-header .sw-profile-menu-item {
        padding: 8px 10px !important;
        font-size: 13px !important;
        gap: 8px !important;
    }
    body.skin-blue .main-header .sw-profile-menu-item > .nav-icon {
        width: 16px !important;
        height: 16px !important;
    }
    /* Breadcrumb — keep readable, don't get covered by header dropdowns */
    body.skin-blue .content-header {
        padding: 12px 12px 8px !important;
        clear: both !important;
        position: relative !important;
        z-index: 1 !important;
    }
    body.skin-blue .content-header > .breadcrumb {
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }
    body.skin-blue .content-header > h1 {
        margin: 0 0 6px !important;
    }

    /* Header — keep visible, allow toggle on left */
    body.skin-blue .main-header .navbar {
        min-height: 56px;
    }
    body.skin-blue .main-header .navbar-custom-menu {
        float: right;
    }

    /* Box and table overflow protection */
    body.skin-blue .content-wrapper .box,
    body.skin-blue .content-wrapper .panel {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Tables get horizontal scroll, but NOT box-body (would shrink-wrap content) */
    body.skin-blue .content-wrapper .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    body.skin-blue .content-wrapper .box-body {
        width: 100% !important;
    }
    body.skin-blue .content-wrapper table {
        min-width: auto;
    }

    /* Toolbar (search + action buttons above grid) — stack:
       row 1: full-width search; row 2: action buttons. */
    body.skin-blue .gb-toolbar,
    body.skin-blue .box-header > .pull-right,
    body.skin-blue .box-header > .pull-left {
        float: none !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }
    /* Right-side toolbar — action icons align to the right edge. The
       "+ New X" button (when present) flex-grows so it still ends up on
       the left while icons sit on the right. With no New button, all
       icons right-align. .pull-left (page heading) is left-aligned. */
    body.skin-blue .gb-toolbar,
    body.skin-blue .box-header > .pull-right {
        justify-content: flex-end !important;
    }
    body.skin-blue .box-header > .pull-left {
        justify-content: flex-start !important;
    }
    /* Search bar gets its own full-width row */
    body.skin-blue .gb-toolbar-search-wrap,
    body.skin-blue .gb-toolbar-search-wrap input,
    body.skin-blue .box-header .gb-toolbar-search-wrap,
    body.skin-blue .box-header .gb-toolbar-search-wrap input {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    /* "New" / primary CTA button (and its dropdown wrappers) take remaining
       space on action row. Excludes legacy icon-only ".btn-primary.btn-flat"
       (Refresh/Info/Import/Export) so those stay 36x36. Bootstrap's tooltip
       plugin moves [title] to [data-original-title], match either. */
    body.skin-blue .box-header .gb-toolbar-newbtn,
    body.skin-blue .box-header .dde-new-group,
    body.skin-blue .box-header .btn.btn-primary:not([title="Refresh"]):not([title="Info"]):not([title="Import"]):not([title="Export"]):not([data-original-title="Refresh"]):not([data-original-title="Info"]):not([data-original-title="Import"]):not([data-original-title="Export"]),
    body.skin-blue .gb-toolbar .gb-toolbar-newbtn,
    body.skin-blue .gb-toolbar .dde-new-group,
    body.skin-blue .gb-toolbar .btn.btn-primary:not([title="Refresh"]):not([title="Info"]):not([title="Import"]):not([title="Export"]):not([data-original-title="Refresh"]):not([data-original-title="Info"]):not([data-original-title="Import"]):not([data-original-title="Export"]) {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }
    /* Keep legacy icon buttons compact on mobile too */
    body.skin-blue .box-header .btn.btn-primary.btn-flat[title="Refresh"],
    body.skin-blue .box-header .btn.btn-primary.btn-flat[title="Info"],
    body.skin-blue .box-header .btn.btn-primary.btn-flat[title="Import"],
    body.skin-blue .box-header .btn.btn-primary.btn-flat[title="Export"],
    body.skin-blue .box-header .btn.btn-primary.btn-flat[data-original-title="Refresh"],
    body.skin-blue .box-header .btn.btn-primary.btn-flat[data-original-title="Info"],
    body.skin-blue .box-header .btn.btn-primary.btn-flat[data-original-title="Import"],
    body.skin-blue .box-header .btn.btn-primary.btn-flat[data-original-title="Export"],
    body.skin-blue .gb-toolbar .btn.btn-primary.btn-flat[title="Refresh"],
    body.skin-blue .gb-toolbar .btn.btn-primary.btn-flat[title="Info"],
    body.skin-blue .gb-toolbar .btn.btn-primary.btn-flat[title="Import"],
    body.skin-blue .gb-toolbar .btn.btn-primary.btn-flat[title="Export"],
    body.skin-blue .gb-toolbar .btn.btn-primary.btn-flat[data-original-title="Refresh"],
    body.skin-blue .gb-toolbar .btn.btn-primary.btn-flat[data-original-title="Info"],
    body.skin-blue .gb-toolbar .btn.btn-primary.btn-flat[data-original-title="Import"],
    body.skin-blue .gb-toolbar .btn.btn-primary.btn-flat[data-original-title="Export"] {
        flex: 0 0 auto !important;
        width: 36px !important;
        height: 36px !important;
    }
    /* Inner button inside .btn-group dropdown wrappers — fill the wrapper
       and center the label so it matches plain "+ New X" buttons. */
    body.skin-blue .box-header .gb-toolbar-newbtn > .btn,
    body.skin-blue .box-header .dde-new-group > .btn,
    body.skin-blue .gb-toolbar .gb-toolbar-newbtn > .btn,
    body.skin-blue .gb-toolbar .dde-new-group > .btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
    }
    /* Dropdown menu items inside the New X dropdown stay left-aligned with
       their icons (normal dropdown UX). */
    body.skin-blue .box-header .gb-toolbar-newbtn .dropdown-menu > li > a,
    body.skin-blue .box-header .dde-new-group .dropdown-menu > li > a,
    body.skin-blue .gb-toolbar .gb-toolbar-newbtn .dropdown-menu > li > a,
    body.skin-blue .gb-toolbar .dde-new-group .dropdown-menu > li > a {
        text-align: left !important;
    }
    /* Tighter gap on mobile so 5-button toolbars fit on one row */
    body.skin-blue .gb-lists-page .box-header .pull-right {
        gap: 4px !important;
    }
    /* Action icon buttons (filter, refresh, overflow ...) — fixed compact size */
    body.skin-blue .box-header .btn.btn-default,
    body.skin-blue .box-header .sw-overflow-trigger,
    body.skin-blue .gb-toolbar .btn.btn-default,
    body.skin-blue .gb-toolbar .sw-overflow-trigger {
        flex: 0 0 auto !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.skin-blue .box-header {
        padding: 12px !important;
    }

    /* Content section: trim heavy padding on mobile */
    body.skin-blue .content {
        padding: 12px !important;
    }
    body.skin-blue .content-header {
        padding: 12px 15px !important;
    }
    body.skin-blue .content-header > h1 {
        font-size: 18px !important;
    }

}

/* Always hide the mobile toggle on desktop */
@media (min-width: 768px) {
    body.skin-blue .sw-mobile-nav-toggle {
        display: none !important;
    }
}

/* SW Mobile form column stacking + input fitting */
@media (max-width: 767px) {
    body.skin-blue .content-wrapper [class*="col-sm-"],
    body.skin-blue .content-wrapper [class*="col-md-"],
    body.skin-blue .content-wrapper [class*="col-lg-"] {
        width: 100% !important;
        float: none !important;
    }
    body.skin-blue .content-wrapper .col-xs-6 {
        width: 50% !important;
        float: left !important;
    }
    body.skin-blue .content-wrapper .col-xs-12 {
        width: 100% !important;
        float: none !important;
    }
    body.skin-blue .content-wrapper .form-control,
    body.skin-blue .content-wrapper select.form-control,
    body.skin-blue .content-wrapper textarea.form-control {
        max-width: 100% !important;
        width: 100% !important;
    }
    body.skin-blue .content-wrapper .box-body > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
