/* Wavetree red admin refresh layered over the legacy AdminLTE shell. */
:root {
    --wt-red: #d71920;
    --wt-red-dark: #a90f16;
    --wt-red-soft: rgba(215, 25, 32, 0.12);
    --wt-ink: #111827;
    --wt-sidebar: #0c1728;
    --wt-sidebar-2: #101d31;
    --wt-sidebar-3: #16243a;
    --wt-sidebar-line: rgba(137, 163, 191, 0.16);
    --wt-sidebar-text: #b9c7d8;
    --wt-muted: #6b7280;
    --wt-page: #f3f5f8;
}

body.skin-blue {
    background: var(--wt-page);
    color: var(--wt-ink);
}

body > .header .logo,
.left-side {
    width: 260px;
}

body > .header .navbar,
.right-side {
    margin-left: 260px;
}

.left-side.collapse-left {
    left: -260px;
}

.right-side.strech {
    margin-left: 0;
}

.header {
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08), 0 10px 26px rgba(17, 24, 39, 0.08);
}

.skin-blue .header .logo,
.header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1524;
    border-right: 1px solid rgba(137, 163, 191, 0.14);
    color: #ffffff;
    min-height: 50px;
    padding: 0 14px;
    box-shadow: inset 0 -2px 0 var(--wt-red);
}

.header .logo img {
    max-width: 172px;
    max-height: 38px;
    object-fit: contain;
}

.skin-blue .header .navbar,
.header .navbar {
    background: #ffffff;
    border-bottom: 1px solid #eceff3;
}

.skin-blue .navbar .sidebar-toggle,
.navbar .sidebar-toggle {
    border-right: 1px solid #eceff3;
    color: var(--wt-red);
}

.skin-blue .navbar .sidebar-toggle:hover,
.navbar .sidebar-toggle:hover {
    background: var(--wt-red-soft);
}

.navbar .sidebar-toggle .icon-bar {
    background: var(--wt-red);
}

.navbar-nav > .user-menu > .dropdown-toggle.wt-user-trigger,
.navbar-nav > .user-menu > a.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    min-height: 50px;
    padding: 12px 18px;
}

.navbar-nav > .user-menu > a.dropdown-toggle:hover,
.navbar-nav > .user-menu.open > a.dropdown-toggle {
    background: #fff1f2;
    color: var(--wt-red);
}

.wt-user-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wt-red), #ef4444);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(215, 25, 32, 0.28);
}

.navbar-nav > .user-menu > .dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
    overflow: hidden;
}

.navbar-nav > .user-menu > .dropdown-menu > .user-header {
    background: linear-gradient(135deg, #171d29 0%, var(--wt-red-dark) 100%) !important;
    min-height: 178px;
}

.navbar-nav > .user-menu > .dropdown-menu > .user-header img {
    border: 3px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.navbar-nav > .user-menu > .dropdown-menu > .user-footer {
    background: #ffffff;
    border-top: 1px solid #eef0f4;
}

.skin-blue .left-side,
.left-side {
    background:
        radial-gradient(circle at 10% -40px, rgba(215, 25, 32, 0.18), transparent 210px),
        linear-gradient(180deg, var(--wt-sidebar) 0%, #08111f 58%, #060d18 100%);
    border-right: 1px solid var(--wt-sidebar-line);
    box-shadow: 12px 0 30px rgba(7, 16, 30, 0.20);
}

.left-side .sidebar {
    padding: 0 13px 22px;
    position: relative;
    border-bottom: 0;
}

.left-side .sidebar:before {
    content: "Wavetree Admin";
    display: flex;
    align-items: center;
    min-height: 56px;
    margin: 0 -13px 14px;
    padding: 0 18px 0 46px;
    background: rgba(5, 14, 27, 0.70);
    border-bottom: 1px solid rgba(137, 163, 191, 0.14);
    box-shadow: 0 12px 26px rgba(3, 10, 21, 0.28);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    position: relative;
}

.left-side .sidebar:after {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--wt-red), #f43f5e);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 22px rgba(215, 25, 32, 0.35);
}

.sidebar .user-panel,
.wt-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    margin: 0 0 16px;
    padding: 12px 11px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        rgba(9, 22, 40, 0.84);
    border: 1px solid rgba(137, 163, 191, 0.18);
    border-radius: 8px;
    box-shadow: inset 3px 0 0 rgba(215, 25, 32, 0.86), 0 14px 26px rgba(3, 10, 21, 0.22);
}

.sidebar .user-panel:before,
.sidebar .user-panel:after {
    display: none;
}

.sidebar .user-panel .image,
.sidebar .user-panel .info {
    float: none !important;
    left: auto;
    position: static;
}

.skin-blue .user-panel > .image > img,
.sidebar .user-panel .image img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.18), 0 10px 20px rgba(0, 0, 0, 0.24);
}

.skin-blue .user-panel > .info,
.sidebar .user-panel .info {
    padding: 0;
    color: #ffffff;
    line-height: 1.25;
}

.sidebar .user-panel .info p {
    max-width: 174px;
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skin-blue .user-panel > .info > a,
.sidebar .user-panel .info a {
    color: #9fb0c5;
    font-size: 11px;
}

.sidebar .user-panel .text-success {
    color: #34d399;
}

.sidebar-menu {
    margin: 0;
    padding-bottom: 16px;
    overflow-x: hidden;
}

.skin-blue .sidebar > .sidebar-menu > li,
.sidebar-menu > li {
    margin: 0 0 5px;
    border-top: 0;
    border-bottom: 0;
}

.skin-blue .sidebar > .sidebar-menu > li > a,
.sidebar-menu > li > a {
    display: block;
    min-height: 39px;
    padding: 10px 12px;
    color: var(--wt-sidebar-text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    margin-right: 0;
    white-space: nowrap;
}

.skin-blue .sidebar > .sidebar-menu > li:first-of-type,
.skin-blue .sidebar > .sidebar-menu > li:first-of-type > a {
    border-top: 0;
}

.sidebar-menu > li > a > .fa:first-child,
.sidebar-menu > li > a > .glyphicon:first-child,
.sidebar-menu > li > a > .ion:first-child {
    width: 22px;
    margin-right: 10px;
    color: #8497ad;
    text-align: center;
}

.skin-blue .sidebar > .sidebar-menu > li > a:hover,
.sidebar-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(137, 163, 191, 0.16);
    color: #ffffff;
    transform: translateX(2px);
}

.skin-blue .sidebar > .sidebar-menu > li.active > a,
.sidebar-menu > li.active > a {
    background:
        linear-gradient(90deg, rgba(215, 25, 32, 0.24), rgba(215, 25, 32, 0.06)),
        rgba(255, 255, 255, 0.055);
    border-color: rgba(215, 25, 32, 0.30);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--wt-red), 0 12px 24px rgba(3, 10, 21, 0.18);
    transform: translateX(2px);
}

.sidebar-menu > li > a:hover .fa,
.sidebar-menu > li.active > a .fa {
    color: #ffccd0;
}

.skin-blue .sidebar > .sidebar-menu > li > .treeview-menu,
.sidebar-menu .treeview-menu {
    margin: 6px 0 10px 16px;
    padding: 6px 6px 6px 9px;
    background: rgba(3, 11, 22, 0.44);
    border-left: 1px solid rgba(215, 25, 32, 0.48);
    border-radius: 0 8px 8px 0;
}

.skin-blue .treeview-menu > li > a,
.sidebar-menu .treeview-menu > li > a {
    margin-bottom: 2px;
    padding: 7px 9px;
    color: #9fb0c5;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.skin-blue .treeview-menu > li > a:hover,
.skin-blue .treeview-menu > li.active > a,
.sidebar-menu .treeview-menu > li > a:hover,
.sidebar-menu .treeview-menu > li.active > a {
    background: rgba(215, 25, 32, 0.13);
    color: #ffffff;
}

.left-side .sidebar::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.left-side .sidebar::-webkit-scrollbar-thumb,
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(137, 163, 191, 0.32);
    border-radius: 999px;
}

.sidebar-menu .badge.bg-red,
.bg-red,
.label-danger,
.badge-danger {
    background-color: var(--wt-red) !important;
}

.right-side {
    background: var(--wt-page);
}

.right-side > .content-header {
    background: transparent;
    border-bottom: 1px solid #e7ebf0;
    padding: 18px 22px 12px;
}

.right-side > .content-header > h1 {
    color: #1f2937;
    font-size: 22px;
    font-weight: 700;
}

.content {
    padding: 18px 22px;
}

.box {
    border-top: 3px solid var(--wt-red);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.box-header {
    border-bottom: 1px solid #eef0f4;
}

.small-box {
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

.btn-primary,
.btn-info,
.btn-danger {
    background: var(--wt-red);
    border-color: var(--wt-red-dark);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus,
.btn-danger:hover,
.btn-danger:focus {
    background: var(--wt-red-dark);
    border-color: #860b10;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: var(--wt-red);
    border-color: var(--wt-red);
}

a {
    color: var(--wt-red);
}

a:hover,
a:focus {
    color: var(--wt-red-dark);
}

@media screen and (max-width: 992px) {
    body > .header .logo,
    body > .header .navbar,
    .right-side {
        width: auto;
        margin-left: 0;
    }

    .row-offcanvas-left {
        left: 0;
        transition: left 0.25s ease;
    }

    .left-side,
    .row-offcanvas-left .sidebar-offcanvas {
        position: fixed;
        top: 50px;
        bottom: 0;
        width: 260px;
        height: auto;
        min-height: 0 !important;
        overflow-y: auto;
        z-index: 1040;
        box-shadow: 12px 0 34px rgba(15, 23, 42, 0.28);
    }

    .row-offcanvas-left .sidebar-offcanvas {
        left: -260px;
        transition: left 0.25s ease;
    }

    .row-offcanvas-left.active {
        left: 0;
    }

    body.fixed .row-offcanvas-left.active .navbar {
        left: 0 !important;
    }

    body.fixed .row-offcanvas-left.active .sidebar-offcanvas {
        left: 0;
    }

    .row-offcanvas-left.active .sidebar-offcanvas {
        left: 0;
    }

    .row-offcanvas-left.active:before {
        content: "";
        position: fixed;
        top: 50px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1035;
        background: rgba(15, 23, 42, 0.38);
    }

    .navbar-nav > .user-menu > a.dropdown-toggle {
        padding-right: 12px;
    }
}

/* Dashboard layout repair: Bootstrap row clearfixes break CSS grid placement. */
body.wt-dashboard .content > .row:first-child,
body.wt-dashboard .content > .row:nth-child(2) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 18px;
    margin: 0 0 18px !important;
}

body.wt-dashboard .content > .row:first-child:before,
body.wt-dashboard .content > .row:first-child:after,
body.wt-dashboard .content > .row:nth-child(2):before,
body.wt-dashboard .content > .row:nth-child(2):after {
    display: none !important;
    content: none !important;
}

body.wt-dashboard .content > .row:first-child > [class*="col-"],
body.wt-dashboard .content > .row:nth-child(2) > [class*="col-"] {
    float: none !important;
    flex: 1 1 calc(25% - 14px);
    width: auto !important;
    max-width: none;
    min-width: 240px;
    padding: 0 !important;
}

body.wt-dashboard .content > .row:first-child .small-box,
body.wt-dashboard .content > .row:nth-child(2) .small-box {
    width: 100%;
    margin: 0;
}

body.wt-dashboard .content > .row + .row {
    clear: both;
}

@media screen and (max-width: 1280px) {
    body.wt-dashboard .content > .row:first-child > [class*="col-"],
    body.wt-dashboard .content > .row:nth-child(2) > [class*="col-"] {
        flex-basis: calc(50% - 9px);
    }
}

@media screen and (max-width: 640px) {
    body.wt-dashboard .content > .row:first-child,
    body.wt-dashboard .content > .row:nth-child(2) {
        gap: 12px;
    }

    body.wt-dashboard .content > .row:first-child > [class*="col-"],
    body.wt-dashboard .content > .row:nth-child(2) > [class*="col-"] {
        flex-basis: 100%;
        min-width: 0;
    }
}

/* Final mobile admin shell override: must stay last. */
@media screen and (max-width: 992px) {
    body.skin-blue {
        padding-top: 64px !important;
    }

    body > .header,
    body.fixed > .header {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        height: 64px !important;
        max-height: 64px !important;
        z-index: 1300 !important;
        background: #0b1f2a !important;
        box-shadow: 0 10px 24px rgba(7, 21, 31, 0.18) !important;
    }

    body > .header .logo,
    .skin-blue .header .logo,
    .header .logo {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 64px !important;
        width: auto !important;
        height: 64px !important;
        min-height: 64px !important;
        float: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 14px !important;
        background: #0b1f2a !important;
        border-right: 0 !important;
        box-shadow: inset 0 -3px 0 var(--wt-hive-red, #d71920) !important;
        z-index: 1301 !important;
    }

    .header .logo img {
        width: auto !important;
        max-width: 230px !important;
        max-height: 44px !important;
        object-fit: contain !important;
    }

    body > .header .navbar,
    .skin-blue .header .navbar,
    .header .navbar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 64px !important;
        height: 64px !important;
        min-height: 64px !important;
        margin: 0 !important;
        float: none !important;
        background: #0b1f2a !important;
        border: 0 !important;
        box-shadow: none !important;
        z-index: 1302 !important;
    }

    body > .header .navbar .sidebar-toggle,
    .skin-blue .navbar .sidebar-toggle,
    .navbar .sidebar-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        z-index: 1304 !important;
    }

    body > .header .navbar .sidebar-toggle .icon-bar,
    .navbar .sidebar-toggle .icon-bar,
    .skin-blue .navbar .sidebar-toggle .icon-bar {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-radius: 2px !important;
    }

    body > .header .navbar .sidebar-toggle .icon-bar + .icon-bar,
    .navbar .sidebar-toggle .icon-bar + .icon-bar {
        margin-top: 5px !important;
    }

    body > .header .navbar-right,
    body > .header .navbar .navbar-right,
    body > .header .navbar-nav,
    body > .header .nav.navbar-nav {
        display: none !important;
    }

    body > .wrapper,
    body.fixed > .wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .right-side,
    body.wt-dashboard .right-side {
        margin-left: 0 !important;
        width: auto !important;
    }

    .wrapper.row-offcanvas,
    .row-offcanvas-left,
    .row-offcanvas-left.active {
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
    }

    .left-side,
    .row-offcanvas-left .sidebar-offcanvas,
    body.fixed .sidebar-offcanvas,
    body.fixed .row-offcanvas-left.active .sidebar-offcanvas {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 86vw !important;
        max-width: 310px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 64px) !important;
        margin-top: 0 !important;
        overflow-y: auto !important;
        z-index: 1200 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.24s ease !important;
        -webkit-overflow-scrolling: touch;
    }

    .row-offcanvas-left.active .sidebar-offcanvas,
    body.admin-mobile-menu-open .left-side,
    body.admin-mobile-menu-open .row-offcanvas-left .sidebar-offcanvas {
        transform: translateX(0) !important;
    }

    body.admin-mobile-menu-open {
        overflow: hidden !important;
    }

    body.admin-mobile-menu-open:after {
        content: "";
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        background: rgba(7, 21, 31, 0.48);
    }

    body.admin-mobile-menu-open .right-side {
        pointer-events: none;
    }
}

/* Mobile admin shell: override legacy AdminLTE's stacked logo/navbar layout. */
@media screen and (max-width: 992px) {
    body.skin-blue {
        padding-top: 64px;
    }

    body > .header,
    body.fixed > .header {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        height: 64px !important;
        max-height: 64px !important;
        z-index: 1300 !important;
        background: #0b1f2a !important;
        box-shadow: 0 10px 24px rgba(7, 21, 31, 0.18);
    }

    body > .header .logo,
    .skin-blue .header .logo,
    .header .logo {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 64px !important;
        width: auto !important;
        height: 64px !important;
        min-height: 64px !important;
        float: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 14px !important;
        background: #0b1f2a !important;
        border-right: 0 !important;
        box-shadow: inset 0 -3px 0 var(--wt-hive-red, #d71920) !important;
        z-index: 1301 !important;
    }

    .header .logo img {
        width: auto !important;
        max-width: 230px !important;
        max-height: 44px !important;
        object-fit: contain !important;
    }

    body > .header .navbar,
    .skin-blue .header .navbar,
    .header .navbar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 64px !important;
        height: 64px !important;
        min-height: 64px !important;
        margin: 0 !important;
        float: none !important;
        background: #0b1f2a !important;
        border: 0 !important;
        box-shadow: none !important;
        z-index: 1302 !important;
    }

    body > .header .navbar .sidebar-toggle,
    .skin-blue .navbar .sidebar-toggle,
    .navbar .sidebar-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        z-index: 1304 !important;
    }

    body > .header .navbar .sidebar-toggle .icon-bar,
    .navbar .sidebar-toggle .icon-bar,
    .skin-blue .navbar .sidebar-toggle .icon-bar {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-radius: 2px !important;
    }

    body > .header .navbar .sidebar-toggle .icon-bar + .icon-bar,
    .navbar .sidebar-toggle .icon-bar + .icon-bar {
        margin-top: 5px !important;
    }

    body > .header .navbar-right,
    body > .header .navbar .navbar-right,
    body > .header .navbar-nav,
    body > .header .nav.navbar-nav {
        display: none !important;
    }

    body > .wrapper,
    body.fixed > .wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .right-side,
    body.wt-dashboard .right-side {
        margin-left: 0 !important;
        width: auto !important;
    }

    .wrapper.row-offcanvas,
    .row-offcanvas-left,
    .row-offcanvas-left.active {
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
    }

    .left-side,
    .row-offcanvas-left .sidebar-offcanvas,
    body.fixed .sidebar-offcanvas,
    body.fixed .row-offcanvas-left.active .sidebar-offcanvas {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 86vw !important;
        max-width: 310px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 64px) !important;
        margin-top: 0 !important;
        overflow-y: auto !important;
        z-index: 1200 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.24s ease !important;
        -webkit-overflow-scrolling: touch;
    }

    .row-offcanvas-left.active .sidebar-offcanvas,
    body.admin-mobile-menu-open .left-side,
    body.admin-mobile-menu-open .row-offcanvas-left .sidebar-offcanvas {
        transform: translateX(0) !important;
    }

    body.admin-mobile-menu-open {
        overflow: hidden;
    }

    body.admin-mobile-menu-open:after {
        content: "";
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        background: rgba(7, 21, 31, 0.48);
    }

    body.admin-mobile-menu-open .right-side {
        pointer-events: none;
    }
}

/* Final mobile drawer override: keep the admin left panel usable on phones. */
@media screen and (max-width: 992px) {
    body > .header {
        position: fixed;
    }

    body > .header .logo {
        width: 168px !important;
    }

    body > .header .navbar,
    .right-side,
    body.wt-dashboard .right-side {
        margin-left: 0 !important;
        width: auto !important;
    }

    .wrapper.row-offcanvas,
    .row-offcanvas-left,
    .row-offcanvas-left.active {
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
    }

    .left-side,
    .row-offcanvas-left .sidebar-offcanvas,
    body.fixed .sidebar-offcanvas,
    body.fixed .row-offcanvas-left.active .sidebar-offcanvas {
        position: fixed !important;
        top: 50px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 82vw !important;
        max-width: 300px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 50px) !important;
        overflow-y: auto !important;
        z-index: 1200 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.24s ease !important;
        -webkit-overflow-scrolling: touch;
    }

    .row-offcanvas-left.active .sidebar-offcanvas,
    body.admin-mobile-menu-open .left-side,
    body.admin-mobile-menu-open .row-offcanvas-left .sidebar-offcanvas {
        transform: translateX(0) !important;
    }

    body.admin-mobile-menu-open {
        overflow: hidden;
    }

    body.admin-mobile-menu-open:after {
        content: "";
        position: fixed;
        top: 50px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        background: rgba(7, 21, 31, 0.48);
    }

    body.admin-mobile-menu-open .left-side {
        box-shadow: 18px 0 40px rgba(7, 21, 31, 0.34);
    }

    body.admin-mobile-menu-open .right-side {
        pointer-events: none;
    }
}

/* Fresh dashboard composition */
body.wt-dashboard {
    background:
        radial-gradient(circle at 78% -120px, rgba(215, 25, 32, 0.10), transparent 320px),
        radial-gradient(circle at 5% 10%, rgba(15, 118, 110, 0.13), transparent 360px),
        linear-gradient(180deg, #f8fbfa 0%, #edf4f2 100%);
}

body.wt-dashboard .right-side {
    background: transparent;
}

body.wt-dashboard .right-side > .content-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 86px;
    margin: 0;
    padding: 24px 28px 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.94)),
        radial-gradient(circle at 96% 8%, rgba(215, 25, 32, 0.12), transparent 240px);
    border-bottom: 1px solid rgba(15, 118, 110, 0.12);
    box-shadow: 0 10px 28px rgba(7, 21, 31, 0.07);
}

body.wt-dashboard .right-side > .content-header > h1 {
    position: relative;
    padding-left: 18px;
    color: #082f36;
    font-size: 28px;
    letter-spacing: 0;
}

body.wt-dashboard .right-side > .content-header > h1:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 6px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--wt-hive-red), var(--wt-hive-teal));
}

body.wt-dashboard .content {
    padding: 24px 26px 30px;
}

body.wt-dashboard .content > .row:first-child,
body.wt-dashboard .content > .row:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    margin: 0 0 18px;
}

body.wt-dashboard .content > .row:first-child > [class*="col-"],
body.wt-dashboard .content > .row:nth-child(2) > [class*="col-"] {
    width: auto;
    min-width: 0;
    padding: 0;
    float: none;
}

body.wt-dashboard .small-box {
    position: relative;
    height: 164px !important;
    min-height: 164px;
    padding: 0;
    color: #10272d !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.92)) !important;
    border: 1px solid rgba(15, 118, 110, 0.13);
    border-radius: 14px;
    box-shadow:
        0 18px 38px rgba(7, 21, 31, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.wt-dashboard .small-box:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.24);
    box-shadow: 0 24px 48px rgba(7, 21, 31, 0.12);
}

body.wt-dashboard .small-box:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--wt-hive-teal);
}

body.wt-dashboard .small-box:after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -70px;
    width: 178px;
    height: 178px;
    border: 30px solid rgba(15, 118, 110, 0.08);
    border-radius: 50%;
}

body.wt-dashboard .small-box.bg-red,
body.wt-dashboard .small-box.bg-maroon {
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, #e11d2a 0%, #b30d18 100%) !important;
    color: #ffffff !important;
    border-color: rgba(215, 25, 32, 0.36);
    box-shadow: 0 22px 44px rgba(215, 25, 32, 0.22);
}

body.wt-dashboard .small-box.bg-red:before,
body.wt-dashboard .small-box.bg-maroon:before {
    background: rgba(255, 255, 255, 0.72);
}

body.wt-dashboard .small-box.bg-red:after,
body.wt-dashboard .small-box.bg-maroon:after {
    border-color: rgba(255, 255, 255, 0.12);
}

body.wt-dashboard .small-box.bg-aqua:before { background: #0f766e; }
body.wt-dashboard .small-box.bg-green:before { background: #16a34a; }
body.wt-dashboard .small-box.bg-yellow:before { background: #d1a322; }
body.wt-dashboard .small-box.bg-blue:before { background: #2563eb; }
body.wt-dashboard .small-box.bg-purple:before { background: #7c3aed; }
body.wt-dashboard .small-box.bg-teal:before { background: #0d9488; }

body.wt-dashboard .small-box > .inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 20px 18px 16px;
}

body.wt-dashboard .small-box h3 {
    margin: 0 0 18px;
    color: #082f36;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

body.wt-dashboard .small-box p {
    margin: 0;
    color: #536a70;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

body.wt-dashboard .small-box b,
body.wt-dashboard .small-box strong {
    color: #081f26 !important;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.wt-dashboard .small-box.bg-red h3,
body.wt-dashboard .small-box.bg-red p,
body.wt-dashboard .small-box.bg-red b,
body.wt-dashboard .small-box.bg-red strong,
body.wt-dashboard .small-box.bg-red p b,
body.wt-dashboard .small-box.bg-maroon h3,
body.wt-dashboard .small-box.bg-maroon p,
body.wt-dashboard .small-box.bg-maroon b,
body.wt-dashboard .small-box.bg-maroon strong,
body.wt-dashboard .small-box.bg-maroon p b {
    color: #ffffff !important;
}

body.wt-dashboard .small-box.bg-red p,
body.wt-dashboard .small-box.bg-maroon p {
    color: rgba(255, 255, 255, 0.80) !important;
}

body.wt-dashboard .small-box .icon {
    z-index: 1;
    right: 18px;
    bottom: 12px;
    top: auto;
    color: rgba(15, 118, 110, 0.12);
    font-size: 76px;
    line-height: 1;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

body.wt-dashboard .small-box.bg-red .icon,
body.wt-dashboard .small-box.bg-maroon .icon {
    color: rgba(255, 255, 255, 0.18);
}

body.wt-dashboard .small-box:hover .icon {
    transform: scale(1.04) translateX(-2px);
}

body.wt-dashboard .small-box .btn,
body.wt-dashboard .small-box .btn-default {
    min-height: 38px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    box-shadow: none;
}

body.wt-dashboard .small-box:not(.bg-red):not(.bg-maroon) .btn,
body.wt-dashboard .small-box:not(.bg-red):not(.bg-maroon) .btn-default {
    color: var(--wt-hive-teal-dark) !important;
    background: #edf6f3 !important;
    border-color: #c7ddd8 !important;
}

body.wt-dashboard .nav-tabs-custom,
body.wt-dashboard .box {
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(7, 21, 31, 0.08);
    overflow: hidden;
}

body.wt-dashboard .nav-tabs-custom {
    margin-bottom: 20px;
}

body.wt-dashboard .nav-tabs-custom > .nav-tabs {
    display: flex;
    align-items: center;
    min-height: 58px;
    margin: 0;
    padding: 8px 12px;
    background:
        linear-gradient(135deg, rgba(237, 246, 243, 0.92), rgba(255, 255, 255, 0.96));
    border: 0;
    border-bottom: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 0;
}

body.wt-dashboard .nav-tabs-custom > .nav-tabs > li,
body.wt-dashboard .nav-tabs-custom > .nav-tabs > li.pull-right,
body.wt-dashboard .nav-tabs-custom > .nav-tabs > li.pull-left {
    float: none !important;
}

body.wt-dashboard .nav-tabs-custom > .nav-tabs > li.header {
    order: -1;
    margin-right: auto;
    padding: 0 12px 0 6px;
    color: #082f36;
    font-size: 18px;
    font-weight: 800;
}

body.wt-dashboard .nav-tabs-custom > .nav-tabs > li.header i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    color: var(--wt-hive-red);
    background: rgba(215, 25, 32, 0.10);
    border-radius: 9px;
}

body.wt-dashboard .nav-tabs-custom > .nav-tabs > li > a {
    min-height: 38px;
    padding: 10px 14px;
    color: #536a70;
    background: #ffffff;
    border: 1px solid rgba(15, 118, 110, 0.10) !important;
    border-radius: 9px;
}

body.wt-dashboard .nav-tabs-custom > .nav-tabs > li.active > a {
    color: #ffffff;
    background: var(--wt-hive-red);
    border-color: var(--wt-hive-red) !important;
}

body.wt-dashboard .nav-tabs-custom .tab-content {
    padding: 18px;
    background: #ffffff;
}

body.wt-dashboard #revenue-chart {
    min-height: 330px;
}

body.wt-dashboard .box.box-solid.bg-teal-gradient {
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.15), transparent 34%),
        linear-gradient(135deg, #082f36 0%, #0f766e 100%) !important;
    border: 0;
    color: #ffffff;
}

body.wt-dashboard .box.box-solid.bg-teal-gradient .box-header {
    min-height: 66px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

body.wt-dashboard .box.box-solid.bg-teal-gradient .box-title,
body.wt-dashboard .box.box-solid.bg-teal-gradient .box-header i {
    color: #ffffff;
}

body.wt-dashboard .box.box-solid.bg-teal-gradient .box-title {
    font-size: 18px;
}

body.wt-dashboard .box.box-solid.bg-teal-gradient .box-body {
    padding: 18px;
}

body.wt-dashboard .box-tools .btn.bg-teal,
body.wt-dashboard .box-tools .btn {
    min-width: 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: none;
}

body.wt-dashboard .box.box-primary .box-header {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.94));
}

body.wt-dashboard .todo-list > li {
    margin-bottom: 8px;
    padding: 12px;
    background: #f8fcfb;
    border: 1px solid var(--wt-hive-border);
    border-left: 4px solid var(--wt-hive-teal);
    border-radius: 9px;
    color: var(--wt-hive-text);
}

body.wt-dashboard .todo-list > li .handle {
    color: #8fb8b3;
}

body.wt-dashboard .todo-list > li .text {
    color: #10272d;
    font-weight: 700;
}

body.wt-dashboard .todo-list > li .tools {
    color: var(--wt-hive-red);
}

body.wt-dashboard .connectedSortable {
    padding-left: 0;
    padding-right: 18px;
}

body.wt-dashboard .connectedSortable + .connectedSortable {
    padding-right: 0;
    padding-left: 18px;
}

body.wt-dashboard .morris-hover.morris-default-style {
    border: 0;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(7, 21, 31, 0.18);
    font-family: inherit;
}

@media screen and (max-width: 1280px) {
    body.wt-dashboard .content > .row:first-child,
    body.wt-dashboard .content > .row:nth-child(2) {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media screen and (max-width: 991px) {
    body.wt-dashboard .connectedSortable,
    body.wt-dashboard .connectedSortable + .connectedSortable {
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (max-width: 640px) {
    body.wt-dashboard .content {
        padding: 14px;
    }

    body.wt-dashboard .content > .row:first-child,
    body.wt-dashboard .content > .row:nth-child(2) {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.wt-dashboard .small-box {
        height: auto !important;
        min-height: 148px;
    }

    body.wt-dashboard .right-side > .content-header {
        min-height: 72px;
        padding: 18px 16px 12px;
    }

    body.wt-dashboard .right-side > .content-header > h1 {
        font-size: 24px;
    }
}

/* SocietyHive-inspired admin surface refresh. Keep this section last. */
:root {
    --wt-hive-teal: #0f766e;
    --wt-hive-teal-dark: #0b5f59;
    --wt-hive-deep: #07151f;
    --wt-hive-panel: #0b1f2a;
    --wt-hive-panel-2: #12373d;
    --wt-hive-text: #14242f;
    --wt-hive-muted: #647678;
    --wt-hive-border: #d7e7e3;
    --wt-hive-border-2: #c7ddd8;
    --wt-hive-soft: #edf6f3;
    --wt-hive-soft-2: #f7fbfa;
    --wt-hive-card: #f8fcfb;
    --wt-hive-red: #d71920;
    --wt-hive-red-dark: #a90f16;
    --wt-page: #eef5f3;
}

html,
body.skin-blue,
body.bg-red1 {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.16) 0%, rgba(18, 55, 61, 0.10) 36%, transparent 56%),
        linear-gradient(180deg, #f6faf8 0%, #ebf4f1 100%);
    color: var(--wt-hive-text);
    line-height: 1.5;
}

.skin-blue .header .logo,
.header .logo,
.skin-blue .left-side,
.left-side {
    background: #0b1f2a;
}

.skin-blue .header .navbar,
.header .navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 118, 110, 0.12);
    box-shadow: 0 8px 20px rgba(7, 21, 31, 0.08);
}

.skin-blue .navbar .sidebar-toggle,
.navbar .sidebar-toggle {
    color: var(--wt-hive-teal);
    border-right: 1px solid rgba(15, 118, 110, 0.12);
}

.navbar .sidebar-toggle .icon-bar {
    background: var(--wt-hive-teal);
}

.skin-blue .navbar .sidebar-toggle:hover,
.navbar .sidebar-toggle:hover,
.navbar-nav > .user-menu > a.dropdown-toggle:hover,
.navbar-nav > .user-menu.open > a.dropdown-toggle {
    background: #edf6f3;
    color: var(--wt-hive-teal-dark);
}

.wt-user-dot {
    background: var(--wt-hive-teal);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.16);
}

.skin-blue .left-side,
.left-side {
    background:
        radial-gradient(circle at 12% -36px, rgba(215, 25, 32, 0.18), transparent 180px),
        linear-gradient(180deg, #0b1f2a 0%, #09202c 52%, #07151f 100%);
    border-right: 1px solid rgba(184, 214, 210, 0.16);
    box-shadow: 12px 0 30px rgba(7, 21, 31, 0.20);
}

.left-side .sidebar:before {
    background: rgba(7, 21, 31, 0.74);
    border-bottom: 1px solid rgba(184, 214, 210, 0.16);
    color: #ffffff;
    letter-spacing: 0.01em;
}

.left-side .sidebar:after {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--wt-hive-red), #ff4c57);
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.24);
}

.sidebar .user-panel,
.wt-sidebar-user {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(184, 214, 210, 0.18);
    border-radius: 8px;
    box-shadow: inset 3px 0 0 var(--wt-hive-red), 0 8px 20px rgba(7, 21, 31, 0.18);
}

.skin-blue .sidebar > .sidebar-menu > li > a,
.sidebar-menu > li > a {
    color: #b8d6d2;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-menu > li > a > .fa:first-child,
.sidebar-menu > li > a > .glyphicon:first-child,
.sidebar-menu > li > a > .ion:first-child {
    color: #8fb8b3;
}

.skin-blue .sidebar > .sidebar-menu > li > a:hover,
.sidebar-menu > li > a:hover {
    background: rgba(15, 118, 110, 0.22);
    border-color: rgba(184, 214, 210, 0.16);
}

.skin-blue .sidebar > .sidebar-menu > li.active > a,
.sidebar-menu > li.active > a {
    background: rgba(15, 118, 110, 0.28);
    border-color: rgba(209, 180, 106, 0.28);
    box-shadow: inset 3px 0 0 var(--wt-hive-red), 0 8px 20px rgba(7, 21, 31, 0.18);
}

.skin-blue .sidebar > .sidebar-menu > li > .treeview-menu,
.sidebar-menu .treeview-menu {
    background: rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(215, 25, 32, 0.45);
    border-radius: 0 8px 8px 0;
}

.skin-blue .treeview-menu > li > a,
.sidebar-menu .treeview-menu > li > a {
    color: #b8d6d2;
}

.skin-blue .treeview-menu > li > a:hover,
.skin-blue .treeview-menu > li.active > a,
.sidebar-menu .treeview-menu > li > a:hover,
.sidebar-menu .treeview-menu > li.active > a {
    background: rgba(15, 118, 110, 0.20);
}

.right-side {
    background: linear-gradient(180deg, rgba(246, 250, 248, 0.98) 0%, rgba(235, 244, 241, 0.98) 100%);
}

.content {
    background: transparent;
    padding: 20px;
}

.right-side > .content-header {
    padding: 22px 22px 12px;
    background: transparent;
    border-bottom: 0;
}

.right-side > .content-header > h1 {
    margin: 0;
    color: var(--wt-hive-panel-2);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.box,
.modal-content {
    background: #ffffff;
    border: 1px solid rgba(15, 118, 110, 0.10);
    border-top: 0 !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(7, 21, 31, 0.08);
    overflow: hidden;
}

.box.box-primary,
.box.box-info,
.box.box-danger,
.box.box-warning,
.box.box-success {
    border-top: 0 !important;
}

.box-header,
.modal-header {
    min-height: 46px;
    padding: 13px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--wt-hive-border);
}

.box .box-header > .fa,
.box .box-header > .glyphicon,
.box .box-header > .ion,
.box .box-header .box-title,
.box-title,
.modal-title {
    padding: 0;
    margin: 0;
    color: var(--wt-hive-panel-2);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.box-body {
    padding: 16px;
}

.box-footer,
.modal-footer {
    padding: 14px 16px;
    background: #f8fcfb;
    border-top: 1px solid var(--wt-hive-border);
}

.form-group label,
label {
    margin-bottom: 4px;
    color: var(--wt-hive-panel-2);
    font-size: 12px;
    font-weight: 600;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="file"],
select,
textarea {
    min-height: 38px;
    padding: 8px 10px;
    color: var(--wt-hive-text);
    background: var(--wt-hive-soft-2);
    border: 1px solid var(--wt-hive-border-2);
    border-radius: 6px !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-control,
textarea {
    min-height: 82px;
    line-height: 1.45;
    resize: vertical;
}

.input-sm,
.form-control.input-sm {
    min-height: 34px;
    height: 34px;
    padding: 6px 9px;
    font-size: 12px;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--wt-hive-teal) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13) !important;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--wt-hive-teal);
}

input[type="file"]::file-selector-button {
    margin: -2px 10px -2px -4px;
    padding: 7px 12px;
    color: #ffffff;
    background: var(--wt-hive-teal);
    border: 0;
    border-radius: 5px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 6px !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button.close,
.close {
    display: block;
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0;
    color: var(--wt-hive-panel-2);
    background: transparent !important;
    border: 0 !important;
    box-shadow: none;
    transform: none;
}

button.close:hover,
.close:hover {
    color: var(--wt-hive-red);
    transform: none;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-info,
.btn-success,
.btn-danger,
.btn.bg-black-gradient,
input[type="submit"] {
    color: #ffffff !important;
    background: var(--wt-hive-red) !important;
    border-color: var(--wt-hive-red) !important;
    box-shadow: 0 8px 18px rgba(215, 25, 32, 0.18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus,
.btn-success:hover,
.btn-success:focus,
.btn-danger:hover,
.btn-danger:focus,
.btn.bg-black-gradient:hover,
input[type="submit"]:hover {
    background: var(--wt-hive-red-dark) !important;
    border-color: var(--wt-hive-red-dark) !important;
}

.btn-warning,
.btn-default,
input[type="button"] {
    color: var(--wt-hive-teal-dark) !important;
    background: #edf6f3 !important;
    border-color: var(--wt-hive-border) !important;
    box-shadow: none;
}

.btn-warning:hover,
.btn-default:hover,
input[type="button"]:hover {
    background: #dcefeb !important;
    border-color: #9bc9c2 !important;
}

.btn-sm,
.btn-xs {
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.table-responsive {
    margin-bottom: 18px;
    border: 1px solid var(--wt-hive-border);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
    border-color: var(--wt-hive-border);
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 8px 10px;
    color: var(--wt-hive-text);
    font-size: 12px;
    vertical-align: middle;
    border-top: 0;
    border-right: 1px solid var(--wt-hive-border);
    border-bottom: 1px solid var(--wt-hive-border);
}

.table tr > :last-child {
    border-right: 0;
}

.table > thead > tr > th {
    color: #185d58;
    background: var(--wt-hive-soft);
    font-weight: 700;
    border-bottom: 1px solid var(--wt-hive-border);
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #fbfdfc;
}

.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th,
.table-striped > tbody > tr:hover > td {
    background: #f3faf8;
}

.small-box {
    min-height: 106px;
    border-radius: 8px;
    background: var(--wt-hive-card) !important;
    border: 1px solid var(--wt-hive-border);
    color: var(--wt-hive-text) !important;
    box-shadow: 0 8px 18px rgba(7, 21, 31, 0.07);
    overflow: hidden;
}

.small-box > .inner {
    padding: 14px;
}

.small-box h3 {
    color: var(--wt-hive-panel-2);
    font-size: 22px;
}

.small-box p {
    color: var(--wt-hive-muted);
    font-size: 12px;
    font-weight: 700;
}

.small-box .icon {
    color: rgba(15, 118, 110, 0.12);
}

.small-box > .small-box-footer {
    color: var(--wt-hive-teal-dark);
    background: #edf6f3;
    border-top: 1px solid var(--wt-hive-border);
}

.alert {
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 0;
    border-left: 3px solid var(--wt-hive-teal);
    border-radius: 4px;
    font-size: 12px;
}

.alert-success {
    color: #17663a;
    background: #e8f8ef;
}

.alert-danger,
.alert-error {
    color: #9d2f2f;
    background: #fff0f0;
    border-left-color: var(--wt-hive-red);
}

.alert-warning {
    color: #8a5b08;
    background: #fff8e5;
    border-left-color: #d1b46a;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    background: var(--wt-hive-soft);
    border: 1px solid var(--wt-hive-border);
    border-radius: 10px;
}

.nav-tabs > li {
    margin: 0;
}

.nav-tabs > li > a {
    min-height: 34px;
    margin: 0;
    padding: 9px 14px;
    color: var(--wt-hive-teal-dark);
    border: 0 !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-tabs > li > a:hover {
    color: #ffffff;
    background: var(--wt-hive-teal);
}

.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination > li > a,
.pagination > li > span {
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 7px 10px;
    color: var(--wt-hive-teal-dark);
    background: #ffffff;
    border-color: var(--wt-hive-border);
    border-radius: 6px !important;
    font-size: 12px;
    font-weight: 700;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    color: #ffffff;
    background: var(--wt-hive-red);
    border-color: var(--wt-hive-red);
}

.modal {
    background: rgba(7, 21, 31, 0.72);
}

.modal-dialog {
    padding-top: 34px;
}

.modal-content {
    border-radius: 12px !important;
}

.dropdown-menu {
    border: 1px solid var(--wt-hive-border);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(7, 21, 31, 0.14);
}

.dropdown-menu > li > a {
    color: var(--wt-hive-text);
    font-size: 12px;
}

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

.form-box {
    width: 380px;
    max-width: calc(100% - 28px);
    margin: 7% auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(7, 21, 31, 0.18);
}

.form-box .header {
    padding: 24px 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 5%, rgba(215, 25, 32, 0.28), transparent 34%),
        linear-gradient(135deg, #0b1f2a 0%, #12373d 64%, #07151f 100%);
    border-bottom: 1px solid rgba(184, 214, 210, 0.18);
    box-shadow: none;
    text-align: center;
}

.form-box .body,
.form-box .footer {
    background: #ffffff !important;
}

.form-box .body {
    padding: 22px 22px 10px;
}

.form-box .footer {
    padding: 0 22px 22px;
}

.form-box .form-control {
    min-height: 40px;
}

.label,
.badge {
    border-radius: 999px;
    font-weight: 700;
}

.label-danger,
.badge-danger,
.badge.bg-red,
.bg-red {
    background-color: var(--wt-hive-red) !important;
}

.text-red {
    color: var(--wt-hive-red) !important;
}

a {
    color: var(--wt-hive-teal-dark);
}

a:hover,
a:focus {
    color: var(--wt-hive-red);
}

@media screen and (max-width: 767px) {
    .content {
        padding: 12px;
    }

    .right-side > .content-header {
        padding: 16px 14px 8px;
    }

    .box-body,
    .box-footer {
        padding: 14px;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        white-space: normal;
    }

    .table-responsive {
        margin-right: -10px;
        margin-left: -10px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
}

/* Final dashboard layout repair: must stay last to beat Bootstrap/AdminLTE clearfixes. */
body.wt-dashboard .content > .row:first-child,
body.wt-dashboard .content > .row:nth-child(2) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch;
    gap: 18px;
    margin: 0 0 18px !important;
}

body.wt-dashboard .content > .row:first-child:before,
body.wt-dashboard .content > .row:first-child:after,
body.wt-dashboard .content > .row:nth-child(2):before,
body.wt-dashboard .content > .row:nth-child(2):after {
    display: none !important;
    content: none !important;
}

body.wt-dashboard .content > .row:first-child > [class*="col-"],
body.wt-dashboard .content > .row:nth-child(2) > [class*="col-"] {
    float: none !important;
    flex: 1 1 calc(25% - 14px) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 240px;
    padding: 0 !important;
}

body.wt-dashboard .content > .row:first-child .small-box,
body.wt-dashboard .content > .row:nth-child(2) .small-box {
    width: 100%;
    margin: 0;
}

@media screen and (max-width: 1280px) {
    body.wt-dashboard .content > .row:first-child > [class*="col-"],
    body.wt-dashboard .content > .row:nth-child(2) > [class*="col-"] {
        flex-basis: calc(50% - 9px) !important;
    }
}

@media screen and (max-width: 640px) {
    body.wt-dashboard .content > .row:first-child,
    body.wt-dashboard .content > .row:nth-child(2) {
        gap: 12px;
    }

    body.wt-dashboard .content > .row:first-child > [class*="col-"],
    body.wt-dashboard .content > .row:nth-child(2) > [class*="col-"] {
        flex-basis: 100% !important;
        min-width: 0;
    }
}

/* Absolute final mobile admin shell override: keep this block at EOF. */
@media screen and (max-width: 992px) {
    body.skin-blue {
        padding-top: 64px !important;
    }

    body > .header,
    body.fixed > .header {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        height: 64px !important;
        max-height: 64px !important;
        z-index: 1300 !important;
        background: #0b1f2a !important;
        box-shadow: 0 10px 24px rgba(7, 21, 31, 0.18) !important;
    }

    body > .header .logo,
    .skin-blue .header .logo,
    .header .logo {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 64px !important;
        width: auto !important;
        height: 64px !important;
        min-height: 64px !important;
        float: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 14px !important;
        background: #0b1f2a !important;
        border-right: 0 !important;
        box-shadow: inset 0 -3px 0 var(--wt-hive-red, #d71920) !important;
        z-index: 1301 !important;
    }

    .header .logo img {
        width: auto !important;
        max-width: 230px !important;
        max-height: 44px !important;
        object-fit: contain !important;
    }

    body > .header .navbar,
    .skin-blue .header .navbar,
    .header .navbar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 64px !important;
        height: 64px !important;
        min-height: 64px !important;
        margin: 0 !important;
        float: none !important;
        background: #0b1f2a !important;
        border: 0 !important;
        box-shadow: none !important;
        z-index: 1302 !important;
    }

    body > .header .navbar .sidebar-toggle,
    .skin-blue .navbar .sidebar-toggle,
    .navbar .sidebar-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        z-index: 1304 !important;
    }

    body > .header .navbar .sidebar-toggle .icon-bar,
    .navbar .sidebar-toggle .icon-bar,
    .skin-blue .navbar .sidebar-toggle .icon-bar {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-radius: 2px !important;
    }

    body > .header .navbar .sidebar-toggle .icon-bar + .icon-bar,
    .navbar .sidebar-toggle .icon-bar + .icon-bar {
        margin-top: 5px !important;
    }

    body > .header .navbar-right,
    body > .header .navbar .navbar-right,
    body > .header .navbar-nav,
    body > .header .nav.navbar-nav {
        display: none !important;
    }

    body > .wrapper,
    body.fixed > .wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .right-side,
    body.wt-dashboard .right-side {
        margin-left: 0 !important;
        width: auto !important;
    }

    .wrapper.row-offcanvas,
    .row-offcanvas-left,
    .row-offcanvas-left.active {
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
    }

    .left-side,
    .row-offcanvas-left .sidebar-offcanvas,
    body.fixed .sidebar-offcanvas,
    body.fixed .row-offcanvas-left.active .sidebar-offcanvas {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 86vw !important;
        max-width: 310px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 64px) !important;
        margin-top: 0 !important;
        overflow-y: auto !important;
        z-index: 1200 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.24s ease !important;
        -webkit-overflow-scrolling: touch;
    }

    .row-offcanvas-left.active .sidebar-offcanvas,
    body.admin-mobile-menu-open .left-side,
    body.admin-mobile-menu-open .row-offcanvas-left .sidebar-offcanvas {
        transform: translateX(0) !important;
    }

    body.admin-mobile-menu-open {
        overflow: hidden !important;
    }

    body.admin-mobile-menu-open:after {
        content: "";
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        background: rgba(7, 21, 31, 0.48);
    }

    body.admin-mobile-menu-open .right-side {
        pointer-events: none;
    }
}
