/* ==========================================================================
   HEADER & NAVIGATION CUSTOM CSS
   ========================================================================== */

.header .logo img {
    width: 255px !important;
}

#mainNavbar ul li a i {
    color: #ef8354 !important;
}

/* header start*/
.btn-gray-act {
    background-color: #d2d2d2 !important;
    border-radius: 0 10px 10px 0 !important;
}

.btn-gray-act .btn {
    padding: .3rem .7rem !important;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #76adff61 !important;
}

.fit-flex-end {
    align-items: center;
    float: inline-end;
    margin-top: 15px;
    margin-right: 2rem;
}

.fit-input-text {
    background-color: #071C34 !important;
    color: #FFC107 !important;
    border: none !important;
    border-radius: 10px 0 0 10px !important;
    font-weight: 600 !important;
}

.navbar-expand-xl .navbar-nav .dropdown-menu {
    border: none !important;
    border-radius: 20px;
}

.navbar-expand-xl .navbar-nav .dropdown-menu .dropdown-item {
    font-weight: 600 !important;
}

.header1 .navbar {
    background-color: aliceblue;
    padding: 5px;
}

.header1 .navbar-collapse {
    font-weight: 600;
}

.header1 .navbar-collapse a {
    color: #000 !important;
}

.header {
    font-family: 'Poppins', sans-serif !important;
    display: block;
    width: 100%;
    position: relative;
    z-index: 99;
    padding-top: 15px;
    padding-bottom: 5px;
}

.header .item-left {
    flex: 0 0 17%;
}

.header .logo a {
    font-size: 30px;
    color: #000000;
    font-weight: 700;
    text-decoration: none;
}

.header .item-center {
    flex: 0 0 67%;
}

@media (max-width: 768px) {
    .header .logo img {
        width: 8rem;
    }
}

@media (max-width: 1200px) {
    .header .item-right {
        flex: 0 0 17%;
        display: flex;
        justify-content: flex-end;
    }
}

.mobile-menu-head,
.mobile-menu-trigger {
    display: none;
}

.header .item-right a {
    text-decoration: none;
    font-size: 16px;
    color: #000000;
    display: inline-block;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.header .menu > ul > li {
    display: inline-block;
    line-height: 50px;
    margin-left: 25px;
}

.header .menu > ul > li > a {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    position: relative;
    text-transform: capitalize;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header .menu > ul > li .sub-menu > ul > li > a {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    position: relative;
    text-transform: capitalize;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header .menu > ul > li .sub-menu {
    position: absolute;
    z-index: 500;
    background-color: #ffffff;
    box-shadow: -2px 2px 70px -25px rgba(0,0,0,0.3);
    padding: 10px !important;
    transition: all 0.5s ease;
    margin-top: 25px;
    opacity: 0;
    visibility: hidden;
    list-style: none;
}

@media(min-width: 992px) {
    .header .menu > ul > li.menu-item-has-children:hover .sub-menu {
        margin-top: 0;
        visibility: visible;
        opacity: 1;
        border-radius: 10px;
    }
}

.header .menu > ul > li .sub-menu > ul > li {
    line-height: 1;
}

.header .menu > ul > li .sub-menu > ul > li > a {
    display: inline-block;
    padding: 10px 0;
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    transition: color 0.3s ease;
    text-decoration: none;
    text-transform: capitalize;
}

.header .menu > ul > li .single-column-menu {
    min-width: 280px;
    max-width: 350px;
}

.header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li {
    line-height: 1;
    display: block;
}

.header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li > a {
    padding: 10px 0;
    display: inline-block;
    font-size: 15px;
    color: #000000;
    transition: color 0.3s ease;
}

.header .menu > ul > li .sub-menu.mega-menu > .list-item1 > ul > li {
    line-height: 1;
    display: block;
}

.header .menu > ul > li .sub-menu.mega-menu > .list-item1 > ul > li > a {
    padding: 10px 0;
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header .menu > ul > li .sub-menu.mega-menu {
    left: 50%;
    transform: translateX(-50%);
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 15px;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item {
    flex: 0 0 25%;
    padding: 0 15px;
}

.language-btn {
    background-color: #008374 !important;
    color: #fff !important;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item1 {
    flex: 0 0 25%;
    padding: 10px 0 0 0;
    margin-inline: 30px;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item1 .title {
    font-size: 16px;
    color: #5AC493;
    font-weight: 500;
    line-height: 1;
    padding: 10px 0;
    font-weight: bold;
    text-decoration: none;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item1.text-center .title {
    text-align: center;
    text-decoration: none;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item1 img {
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    margin-top: 10px;
}

.header .menu > ul > li .sub-menu.mega-menu > .list-item1 > ul > li > a:hover,
.header .menu > ul > li .sub-menu > ul > li > a:hover,
.header .item-right a:hover,
.header .menu > ul > li:hover > a {
    color: #5AC493;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item .title {
    font-size: 16px;
    color: #5AC493;
    font-weight: 700;
    line-height: 1;
    padding: 10px 0;
    text-decoration: none;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item.text-center .title {
    text-align: center;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item.text-center .title:hover {
    color: #042138;
}

.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item img {
    vertical-align: middle;
    margin-top: 10px;
}

.header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li > a:hover,
.header .menu > ul > li .sub-menu > ul > li > a:hover,
.header .item-right a:hover,
.header .menu > ul > li:hover > a {
    color: #5AC493;
}

/* header responsive */
@media(max-width: 1200px) {
    .header .item-center {
        order: 3;
        flex: 0 0 100%;
    }
    .v-center {
        justify-content: space-between;
    }
    .header .mobile-menu-trigger {
        display: flex;
        height: 30px;
        width: 30px;
        margin-left: 15px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }
    .header .mobile-menu-trigger span {
        display: block;
        height: 2px;
        background-color: #333333;
        width: 24px;
        position: relative;
    }
    .header .mobile-menu-trigger span:before,
    .header .mobile-menu-trigger span:after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000000;
    }
    .header .mobile-menu-trigger span:before {
        top: -6px;
    }
    .header .mobile-menu-trigger span:after {
        top: 6px;
    }
    .header .item-right {
        align-items: center;
    }
    .header .menu {
        position: fixed;
        width: 320px;
        background-color: #ffffff;
        left: 0;
        top: 0;
        height: 100%;
        overflow: hidden;
        transform: translate(-100%);
        transition: all 0.5s ease;
        z-index: 1099;
    }
    .header .menu.active {
        transform: translate(0%);
    }
    .header .menu > ul > li {
        line-height: 1;
        margin: 0;
        display: block;
    }
    .header .menu > ul > li > a {
        line-height: 50px;
        height: 50px;
        padding: 0 50px 0 15px;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    .header .menu > ul > li > a i {
        position: absolute;
        height: 50px;
        width: 50px;
        top: 0;
        right: 0;
        text-align: center;
        line-height: 50px;
        transform: rotate(-90deg);
    }
    .header .menu .mobile-menu-head {
        display: flex;
        height: 50px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 501;
        position: sticky;
        background-color: #ffffff;
        top: 0;
    }
    .header .menu .mobile-menu-head .go-back {
        height: 50px;
        width: 50px;
        border-right: 1px solid rgba(0,0,0,0.1);
        cursor: pointer;
        line-height: 50px;
        text-align: center;
        color: #000000;
        font-size: 16px;
        display: none;
    }
    .header .menu .mobile-menu-head.active .go-back {
        display: block;
    }
    .header .menu .mobile-menu-head .current-menu-title {
        font-size: 15px;
        font-weight: 500;
        color: #000000;
    }
    .header .menu .mobile-menu-head .mobile-menu-close {
        height: 50px;
        width: 50px;
        border-left: 1px solid rgba(0,0,0,0.1);
        cursor: pointer;
        line-height: 50px;
        text-align: center;
        color: #000000;
        font-size: 25px;
    }
    .header .menu .menu-main {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        flex-direction: column;
    }
    .header .menu > ul > li .sub-menu.mega-menu,
    .header .menu > ul > li .sub-menu {
        visibility: visible;
        opacity: 1;
        position: absolute;
        box-shadow: none;
        margin: 0;
        padding: 15px;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-top: 65px;
        max-width: none;
        min-width: auto;
        display: none;
        transform: translateX(0%);
        overflow-y: auto;
    }
    .header .menu > ul > li .sub-menu.active {
        display: block;
    }
    .header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item img {
        margin-top: 0;
    }
    .header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item.text-center .title {
        margin-bottom: 20px;
    }
    .header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item.text-center:last-child .title {
        margin-bottom: 0px;
    }
    .header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item {
        flex: 0 0 100%;
        padding: 0px;
    }
    .header .menu > ul > li .sub-menu > ul > li > a,
    .header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li > a {
        display: block;
    }
    .header .menu > ul > li .sub-menu.mega-menu > .list-item > ul {
        margin-bottom: 15px;
    }
    .menu-overlay {
        position: fixed;
        background-color: rgba(0,0,0,0.5);
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 1098;
        visibility: hidden;
        opacity: 0;
        transition: all 0.5s ease;
    }
    .menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes slideRight {
    0% {
        opacity: 1;
        transform: translateX(0%);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Main Menu (Secondary/Inner Menu styles) */
ul#main-menu {
    font-family: "Lato", sans-serif;
    font-family: 13px;
    font-weight: 300;
    list-style: none;
    position: fixed !important;
    cursor: pointer;
    z-index: 500;
}

ul#main-menu > ul {
    list-style: none;
    opacity: 0;
}

ul#main-menu li {
    background: #21559B;
    padding: 15px 10px 15px 10px;
    border-bottom: 1px solid #fff;
}

ul#main-menu li:hover {
    background: #9eccb3;
}

ul#main-menu li:first-child {
    border-radius: 0 5px 0 0;
}

ul#main-menu li a {
    color: #fff;
    text-decoration: none;
}

ul#main-menu i {
    padding-right: 15px;
    padding-left: 5px;
}

/* Submenu */
#submenu {
    color: #fff;
    position: absolute;
    width: 170px;
    left: 175px;
    margin-top: -50px;
}

ul#submenu > li {
    padding: 10px;
}

ul#main-menu ul#submenu.show-submenu {
    opacity: 1;
    cursor: pointer;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

ul#main-menu ul#submenu.hide-submenu {
    cursor: pointer;
    display: none;
}

@media (max-width: 606px) {
    #main-menu {
        display: none !important;
    }
}

@media (max-width: 1808px) {
    #main-menu > li > a {
        font-size: 0;
        text-align: center;
    }
    #main-menu > li > a .fa {
        font-size: 1.25rem;
        padding: 5px;
    }
}

@media (max-width: 1200px) {
    .header .logo img {
        width: 166px !important;
    }
    .g-billing-accounts-heading-dropdown {
        display: none !important;
    }
}

.navbar-nav {
    flex-direction: row !important;
}

/* ============================================= */


/* --------------------------------------
       Professional DataTables Layout 
       -------------------------------------- */
    .modern-dt-container {
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.04) !important;
        border: 1px solid #e2e8f0 !important;
        overflow: hidden !important;
        margin-bottom: 2rem !important;
        font-family: 'Poppins', sans-serif !important;
    }

    .table-list {
        width: 100% !important;
        margin: 0 !important;
        border-collapse: collapse !important;
        border: none !important;
    }

    /* Gradient Table Header */
    .table-list thead {
        background: linear-gradient(135deg, #042138 0%, #008374 100%) !important;
        border: none !important;
    }

    .table-list thead th {
        border: none !important;
        color: #ffffff !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        padding: 1.25rem 1.5rem !important;
        vertical-align: middle !important;
    }

    /* DataTables Sorting Arrows for Dark Header */
    table.dataTable thead .sorting,
    table.dataTable thead .sorting_asc,
    table.dataTable thead .sorting_desc {
        background-image: none !important;
        position: relative !important;
    }

    table.dataTable thead > tr > th.sorting::before,
    table.dataTable thead > tr > th.sorting::after,
    table.dataTable thead > tr > th.sorting_asc::before,
    table.dataTable thead > tr > th.sorting_asc::after,
    table.dataTable thead > tr > th.sorting_desc::before,
    table.dataTable thead > tr > th.sorting_desc::after {
        opacity: 0.3 !important;
        color: #ffffff !important;
    }

    table.dataTable thead > tr > th.sorting_asc::before,
    table.dataTable thead > tr > th.sorting_desc::after {
        opacity: 1 !important;
        color: #ffffff !important;
    }

    /* Table Body */
    .table-list tbody tr {
        background: #ffffff !important;
        transition: all 0.3s ease !important;
        border-bottom: 1px solid #f1f5f9 !important;
        cursor: pointer !important;
    }

    .table-list tbody tr:hover {
        background: #f8fafc !important;
        box-shadow: inset 4px 0 0 #008374 !important;
    }

    .table-list tbody td {
        border: none !important;
        padding: 1.25rem 1.5rem !important;
        vertical-align: middle !important;
        color: #051c3c !important;
    }

    /* Colored Icons */
    .dt-icon-wrapper {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.2rem !important;
        margin: 0 auto !important;
        transition: all 0.3s ease !important;
        background: #f1f5f9 !important;
        color: #64748b !important;
    }

    .table-list tbody tr:hover .dt-icon-wrapper {
        background: #008374 !important;
        color: #ffffff !important;
        transform: scale(1.1) !important;
        box-shadow: 0 4px 10px rgba(0,131,116,0.2) !important;
    }

    /* Status Pills */
    .table-list .label.status {
        padding: 0.5rem 1rem !important;
        border-radius: 999px !important;
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: inline-flex !important;
        border: none !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
    }
    
    .table-list .status-active, .table-list .status-paid, .table-list .status-open { background: #e0f2fe !important; color: #0284c7 !important; }
    .table-list .status-pending, .table-list .status-unpaid, .table-list .status-answered { background: #fef3c7 !important; color: #d97706 !important; }
    .table-list .status-suspended { background: #fee2e2 !important; color: #dc2626 !important; }
    .table-list .status-terminated, .table-list .status-cancelled, .table-list .status-closed { background: #fce7f3 !important; color: #db2777 !important; }
    .table-list .status-fraud, .table-list .status-refunded { background: #1e293b !important; color: #f8fafc !important; }
    .table-list .status-customer-reply { background: #dcfce7 !important; color: #166534 !important; }

    /* DataTables Top/Bottom Controls */
    .modern-dt-container .dataTables_wrapper .dataTables_filter {
        padding: 1.5rem 1.5rem 0.5rem !important;
        float: right !important;
    }
    .modern-dt-container .dataTables_wrapper .dataTables_filter input {
        border: 1px solid #e2e8f0 !important;
        border-radius: 99px !important;
        padding: 0.5rem 1.25rem !important;
        outline: none !important;
        transition: all 0.3s !important;
        background: #fff !important;
        font-size: 0.9rem !important;
        width: 220px !important;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
    }
    .modern-dt-container .dataTables_wrapper .dataTables_filter input:focus { 
        border-color: #008374 !important; 
        box-shadow: 0 0 0 3px rgba(0,131,116,0.1) !important; 
        width: 280px !important; 
    }

    .modern-dt-container .dataTables_wrapper .dataTables_length {
        padding: 1.5rem 0 0.5rem 1.5rem !important;
        float: left !important;
        color: #64748b !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
    }
    .modern-dt-container .dataTables_wrapper .dataTables_length select {
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 0.3rem 1rem !important;
        margin: 0 0.5rem !important;
        background: #fff !important;
        outline: none !important;
        font-weight: 700 !important;
        color: #051c3c !important;
    }

    .modern-dt-container .dataTables_wrapper .dataTables_paginate {
        padding: 1rem 1.5rem 1.5rem !important;
    }
    .modern-dt-container .dataTables_wrapper .dataTables_paginate .paginate_button {
        border: none !important;
        background: #f1f5f9 !important;
        border-radius: 8px !important;
        color: #64748b !important;
        font-weight: 600 !important;
        margin: 0 3px !important;
        box-shadow: none !important;
        transition: all 0.2s !important;
        padding: 0.4rem 0.8rem !important;
    }
    .modern-dt-container .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #e2e8f0 !important;
        color: #051c3c !important;
    }
    .modern-dt-container .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: #008374 !important;
        color: #fff !important;
        box-shadow: 0 4px 10px rgba(0,131,116,0.25) !important;
    }
    
    .modern-dt-container .dataTables_wrapper .dataTables_info {
        color: #94a3b8 !important;
        font-size: 0.85rem !important;
        padding: 1.5rem 0 1.5rem 1.5rem !important;
        
    }
      table.table-list thead th {
              background: linear-gradient(135deg, #042138 0%, #008374 100%) !important;
        }




        
    /* =================================== */

@media (max-width: 767px) {
    /* Hide the table header on mobile */
    .table-list thead {
        display: none !important;
    }

    .table-list, 
    .table-list tbody, 
    .table-list tr, 
    .table-list td {
        display: block !important;
        width: 100% !important;
    }

       .table-list tbody tr {
        display: flex !important;
        margin-bottom: 1.5rem !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        flex-direction: column!important;
        align-content: center!important;
        justify-content: center!important;
        align-items: center!important;
    }

    .table-list tbody td {
        gap:15px!important;
        text-align: right !important;
        padding: 0.75rem 0.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        position: relative !important;
        display: flex !important;
        justify-content:  center!important;
        align-items: center !important;
    }

    .table-list tbody td:last-child {
        border-bottom: none !important;
    }

    /* Add labels for mobile view using Data attributes or manual labels */
    .table-list tbody td::before {
        content: attr(data-label); /* Requires adding data-label to HTML */
        float: left;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: #94a3b8;
    }

    /* Adjust the icon wrapper for mobile */
    .dt-icon-wrapper {
        margin: 0 !important;
        width: 36px !important;
        height: 36px !important;
    }

    /* Adjust DataTables Controls for Mobile */
    .modern-dt-container .dataTables_wrapper .dataTables_filter,
    .modern-dt-container .dataTables_wrapper .dataTables_length {
        float: none !important;
        text-align: center !important;
        padding: 1rem !important;
        width: 100% !important;
    }

    .modern-dt-container .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin: 0 !important;
    }
}


    /* =========================================== */

    .status-on-hold {
        background-color: #b45309!important;
    }

    .status- {
        background-color: #003072 !important;
    }
    .label {
        width:max-content!important;
    }

    .fa-download {
        color:green!important;
    }
    .table-list tbody td {
        font-size:14px!important;
        font-weight:500!important;
    }


    .div-service-buttons .btn-view-details {
            font-size: 0.85rem!important;
    font-weight: 700!important;
    color: #008374!important;
    text-decoration: none!important;
    padding: 0.4rem 0.8rem!important;
    border-radius: 8px!important;
    background: rgba(0, 131, 116, 0.1)!important;
    transition: background 0.2s!important;
    }

    .table-container .listtable .btn-default{
        font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #008374 !important;
    text-decoration: none !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 8px !important;
    background: rgba(0, 131, 116, 0.1) !important;
    transition: background 0.2s !important;
    }