
/* MEDIA QUERIES */

@media screen and (max-width: 1024px) {

    body {
        position: relative;
    }

    .sidebar-left {
        display: none;
    }

    .body-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-collapsed .sidebar-left {
        display: none;
    }

    .sidebar-collapsed .body-content {
        margin-left: 0;
    }

    .sidebar-collapsed .header-section {
        margin-left: 0;
    }

    .sidebar-open section {
        overflow-x: hidden;
    }

    .sidebar-open .sidebar-left {
        display: block;
    }

    .sidebar-open .body-content {
        margin-left: 240px;
    }

    .btn-demo {
        margin-bottom: 20px;
    }

    .left-sideinner {
        padding: 5px 10px;
    }

    .left-sideinner .search-content input {
        background: #fff;
        border: 0;
    }

    .sticky-header .header-section {
        left: 0;
    }

    .sticky-header.sidebar-open .header-section {
        left: 240px;
    }

    .sticky-header .right-notification {
        margin-right: 0px;
    }

    .non-sticky-header .sidebar-left-info {
        margin-top: 60px;
    }

    .non-sticky-header  .side-navigation {
        margin-top: 0px;
    }

    .non-sticky-header .sidebar-left .search-content {
        margin-top: 60px;
    }


    .sticky-sidebar  {
        position: absolute;
    }


    .wide-full {
        width: auto;
    }

    .gallery li{
        width: 45%;
    }

}


@media screen and (max-width: 767px) {

    .search-content {
        position: relative;
    }

    .search-content input {
        background:#fff;
    }

    .sidebar-left .search-content  {
        display: block;
    }

    .breadcrumb-wrapper, .search-content {
        display: none;
    }

    .mail-box aside {
        display: block;
    }

    .mail-box .sm-side , .mail-box .lg-side, .profile-desk .p-aside, .profile-desk .p-short-info{
        width: 100% ;
        display: inline-block;
    }

    .profile-timeline ul li .avatar-desk .gallery a {
        margin-bottom: 10px;
    }

    .profile-follow, .profile-value-info {
        text-align: center;
        position: static;
        margin-bottom: 10px;
    }

    .profile-intro {
        padding: 20px 0;
    }

    .fb-timeliner {
        display: none;
    }

    .compose-mail .compose-options {
        top: 26px;
    }

    /* full calendar fix */
    .fc-header-right {
        right:15px;
        position: absolute;
    }

    .fc-header-left .fc-button {
        margin: 0px !important;
        top: 0px !important;
    }

    .fc-header-right .fc-button {
        margin: 0px !important;
        top: -50px !important;
    }

    .fc-state-active, .fc-state-active .fc-button-inner, .fc-state-hover, .fc-state-hover .fc-button-inner {
        background: none !important;
        color: #FFFFFF !important;
    }

    .fc-state-default, .fc-state-default .fc-button-inner {
        background: none !important;
    }

    .fc-button {
        border: none !important;
        margin-right: 2px;
    }

    .fc-view {
        top: 0px !important;
    }

    .fc-button .fc-button-inner {
        margin: 0px !important;
        padding: 2px !important;
        border: none !important;
        margin-right: 2px !important;
        background-color: #fafafa !important;
        background-image: -moz-linear-gradient(top, #f2f2f2, #f2f2f2) !important;
        background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#f2f2f2)) !important;
        background-image: -webkit-linear-gradient(top, #f2f2f2, #f2f2f2) !important;
        background-image: -o-linear-gradient(top, #f2f2f2, #f2f2f2) !important;
        background-image: linear-gradient(to bottom, #f2f2f2, #f2f2f2) !important;
        filter: progid:dximagetransform.microsoft.gradient(startColorstr='#f2f2f2', endColorstr='#f2f2f2', GradientType=0) !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        box-shadow: none !important;
        -webkit-border-radius: 2px !important;
        -moz-border-radius: 2px !important;
        border-radius: 2px !important;
        color: #fff !important;
        border: none !important;
        text-shadow: none !important;
        text-align: center;
    }

    .fc-button.fc-state-disabled .fc-button-inner,
    .fc-header-left .fc-button .fc-button-inner{
        color: #bcbbbb !important;
    }

    .fc-button.fc-state-active .fc-button-inner {
        background-color: #e5e4e4 !important;
        background-image: -moz-linear-gradient(top, #e5e4e4, #dddcdc) !important;
        background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e5e4e4), to(#dddcdc)) !important;
        background-image: -webkit-linear-gradient(top, #e5e4e4, #dddcdc) !important;
        background-image: -o-linear-gradient(top, #e5e4e4, #dddcdc) !important;
        background-image: linear-gradient(to bottom, #e5e4e4, #dddcdc) !important;
        filter: progid:dximagetransform.microsoft.gradient(startColorstr='#e5e4e4', endColorstr='#dddcdc', GradientType=0) !important;
    }

    .fc-content {
        margin-top: 50px;
    }

    .fc-header-title h2 {
        line-height: 40px !important;
        font-size: 15px !important;
    }

    .fc-header {
        margin-bottom:0px !important;
    }

    .fc-header-left, .fc-header-center, .fc-header-right {
        width: 100%;
        display: block;
    }

    .fc-header-title h2 {
        margin-top: -35px;
    }


    .fc-header-right .fc-state-default .fc-button-inner,
    .fc-header-left .fc-state-default:hover .fc-button-inner{
        background: #53D192 !important;
        border-color: #53D192;
        border-style: none solid;
        color: #fff!important;
    }


    .fc-header-right .fc-state-default .fc-button-inner:hover,
    .fc-header-right .fc-state-active  .fc-button-inner{
        background: #2f9f67 !important;
        border-color: #2f9f67;
        border-style: none solid;
        color: #fff;
    }

    .mail-box aside {
        height: auto;
    }

    .gallery {
        margin: 0;
    }
    .gallery li{
        width: 100%;
        margin: 0 0 20px 0;
    }

}

@media screen and (max-width: 640px) {

    .compose-mail .compose-options {
        top: 26px;
    }

    .dataTables_wrapper .dataTables_filter {
        float: right;
        text-align: right;
    }


    .dataTables_wrapper .dataTables_length {
        float: left;
        text-align: left;
    }

    .tbl-top {
        padding: 10px 20px;
    }

    div.ColVis {
        margin-bottom: 0;
    }

    .tbl-head {
        padding: 10px 15px 0;
    }

    .dataTables_wrapper .ColVis_Button {
        margin-right: 0;
    }

    td.details-control {
        display: inline-block;
        width: 20px;
        height: 20px;
    }

}

@media screen and (max-width: 480px) {

    .compose-mail .compose-options {
        top: 26px;
    }
}


@media only screen and  (max-width: 479px) {
    .state-information {
        display: inline-block;
        margin-top: 20px;
        position: static;
        width: 100%;
    }
    .state-information .state-graph {
        float: left;
        margin-left: 0;
        margin-right: 30px;
        text-align: center;
    }

    .notification-menu li:nth-child(2) .dropdown-menu {
        margin-right: 0px !important;
    }
    .notification-menu .dropdown-title {
        min-width: 265px;
        padding: 0;
    }
    .error-wrapper .icon-404,
    .error-wrapper .icon-500 {
        width: 90%;
    }

    .error-wrapper .icon-404 {
        margin: 0;
    }

    .body-500 .error-wrapper h2 {
        margin: -5px 0 30px -6px;
    }

    .login-social-link a.facebook {
        margin-right: 20px;
    }
    .mail-box aside {
        display: block;
    }

    .mail-box .sm-side , .mail-box .lg-side, .profile-desk .p-aside, .profile-desk .p-short-info{
        width: 100% ;
        display: inline-block;
    }

    .profile-timeline ul li .avatar-desk .gallery a {
        margin-bottom: 10px;
    }

    .profile-follow, .profile-value-info {
        text-align: center;
        position: static;
    }

    .profile-intro {
        padding: 20px 0;
    }

    .notification-menu .info-number {
        padding: 0px 10px;
    }

    .team-list li a {
        text-align: center;
    }

    .fc-header-title h2 {
        margin-top: -35px;
    }

    button.btn {
        margin-bottom: 10px;
    }

    .error-wrapper p {
        padding: 0 20px;
    }

    .sm-mbot a {
        margin-bottom: 5px;
    }

    .compose-btn {
        /*margin-bottom: 0px;*/
    }

    .compose-btn .btn {
        float: left;
        margin-left: 2px;
    }

    .mail-option .btn-group {
        margin-bottom: 5px;
    }

    .invoice .total-purchase, .invoice .amount {
        text-align: right;
    }

    .inv-info {
        margin-top: 20px;
    }

    .modal-footer button.btn {
        float: left;
    }


}

@media screen and (max-width: 360px) {



    .notification-menu li:first-child .dropdown-menu {
        margin-right: -90px;
    }

    .notification-menu li:nth-child(2) .dropdown-menu {
        margin-right: -45px;
    }

    .notification-menu li:nth-child(3) .dropdown-menu {
        margin-right: 0px;
    }

    .nav-tabs.nav-justified.nav-profile > li {
        float: none;
        display: block;
        width: auto;
    }

    .d-none {
        display: none;
    }

    .error-wrapper h2 {
        margin: -5px 0 30px 0px;
    }

    .error-wrapper p {
        padding: 0 20px;
    }

    .error-wrapper .icon-404,
    .error-wrapper .icon-500 {
        background: url("../img/404-sm.png") no-repeat;
        width: 206px;
        height: 131px;
    }

    .error-wrapper .icon-500{
        background: url("../img/500-sm.png") no-repeat;
        width: 206px;
        height: 131px;
    }


    .hidden-sm {
        display: none;
    }

    .navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover {
        color: #fff;
    }

    .invoice h1.inv-title, .invoice .amount {
        font-size: 34px;
        text-align: right;
    }

    .total-purchase {
        margin-top: 20px;
    }

    .amount {
        padding: 15px;
    }
}

@media screen and (max-width: 320px) {

    .d-none {
        display: none;
    }

}

/* ------------------------------------------------------------------
   Bootstrap 5: offcanvas layout header + sidebar nav (loads after
   offcanvascss/style*.css so these overrides win)
   ------------------------------------------------------------------ */

/* Mega menu was .navbar-collapse.collapse — BS5 hides .collapse without .show */
@media (min-width: 768px) {
    .header-section .mega-menu.navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        visibility: visible !important;
    }
}

@media (max-width: 767px) {
    .header-section .mega-menu.navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        flex-basis: 100%;
        width: 100%;
    }
    .header-section .mega-menu .navbar-nav {
        height: auto !important;
        flex-direction: column;
        align-items: stretch;
    }
}

.header-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 60px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
    border-bottom: 1px solid rgba(169, 120, 209, 0.14);
    box-shadow: 0 2px 18px rgba(15, 23, 42, 0.04);
    overflow: visible;
    position: relative;
}

.header-section::after {
    content: none;
}

.header-section .mega-menu {
    float: none;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.header-section .mega-menu .navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.notification-wrap {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex: 0 0 auto;
}

.right-notification {
    float: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.right-notification .navbar-nav,
.right-notification .nav.navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.right-notification .navbar-nav > li,
.right-notification .nav.navbar-nav > li {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 0;
}
.right-notification .navbar-nav > li.dropdown.show,
.right-notification .nav.navbar-nav > li.dropdown.show {
    z-index: 1100;
}
.right-notification .navbar-nav,
.right-notification .nav.navbar-nav {
    position: relative;
    isolation: isolate;
}

.right-notification .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-section .header-toolbar-icon {
    color: #64748b;
    transition: color 0.2s ease;
}
.header-section .nav-icon-notify { color: #a855f7; }
.header-section .nav-icon-inbox { color: #0ea5e9; }
.header-section .nav-icon-account { color: #3fb68b; }
.header-section .right-notification .navbar-nav > li > a,
.header-section .right-notification .navbar-nav > li > .dropdown-toggle {
    border-radius: 11px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.header-section .right-notification .navbar-nav > li > a:hover,
.header-section .right-notification .navbar-nav > li > .dropdown-toggle:hover,
.header-section .right-notification .navbar-nav > li.dropdown.show > .dropdown-toggle {
    background: linear-gradient(135deg, rgba(169, 120, 209, 0.14) 0%, rgba(63, 182, 139, 0.1) 100%);
    box-shadow: 0 2px 10px rgba(169, 120, 209, 0.12);
}
.header-section .dropdown-menu {
    border: none !important;
    border-radius: 14px !important;
    padding: 0 !important;
    margin-top: 0.4rem !important;
    min-width: 280px;
    max-width: min(380px, 96vw);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 20px 50px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.14);
    overflow: hidden;
    z-index: 1101 !important;
    animation: none !important;
    transform: none !important;
}
.header-section .dropdown-menu.show {
    animation: none !important;
}
.header-section .dropdown-menu::before {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #a978d1 0%, #3fb68b 100%);
}
.header-section .dropdown-menu .title {
    padding: 14px 18px !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
}
.header-section .dropdown-menu.hdropdown li > a {
    padding: 12px 18px !important;
    font-size: 13px;
    color: #475569;
}
.header-section .dropdown-menu.hdropdown li > a:hover {
    background: linear-gradient(90deg, rgba(169, 120, 209, 0.1) 0%, transparent 100%) !important;
    color: #6b4a9a;
}
.header-section .label-menu-corner .badge {
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(169, 120, 209, 0.35);
}

/* Sticky header: width 100% + left offset overflowed the viewport */
.sticky-header .header-section {
    left: 240px;
    right: 0;
    width: auto;
}

.sticky-header.sidebar-collapsed .header-section {
    left: 52px;
    right: 0;
    width: auto;
}

.sticky-header .right-notification,
.sticky-header.sidebar-collapsed .right-notification {
    margin-right: 24px;
}

/* BS5 dropdown open state */
.mega-menu .nav .show > a,
.mega-menu .nav .show > a:hover,
.mega-menu .nav .show > a:focus {
    background-color: #fff;
}

/* Sidebar: BS5 .nav is row-wrap; stack vertically */
ul.nav.side-navigation {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
}

ul.nav.side-navigation > li > a {
    display: block;
}

/* Sidebar mobile logo shares .logo — avoid absolute header positioning */
.sidebar-left > .logo {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    line-height: 1.4;
    padding: 14px 20px;
    z-index: 1;
    box-sizing: border-box;
}

.header-section .navbar-toggler.mobile-menu-toggle {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    padding: 0.4rem 0.55rem;
    color: #64748b;
}
.header-section .navbar-toggler.mobile-menu-toggle:hover {
    border-color: rgba(169, 120, 209, 0.45);
    color: #6b4a9a;
}

.header-section .dropdown.mobile-menu {
    position: relative;
    z-index: 0;
}
.header-section .dropdown.mobile-menu:has(.dropdown-menu.show) {
    z-index: 1100;
}
.header-section .mobile-account-menu {
    min-width: 240px;
    max-width: min(280px, 94vw);
    padding: 0.4rem 0 !important;
    margin-top: 0.35rem !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 20px 50px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.14);
    overflow: hidden;
    z-index: 1101 !important;
    animation: none !important;
}
.header-section .mobile-account-menu::before {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #a978d1 0%, #3fb68b 100%);
}
.header-section .mobile-account-menu .dropdown-item {
    padding: 0.55rem 1.1rem;
    font-size: 13px;
    color: #475569;
}
.header-section .mobile-account-menu .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(169, 120, 209, 0.1) 0%, transparent 100%);
    color: #6b4a9a;
}
