/* Custom Styles for Login Button */
.sa-switcher {
    color: #ec6d2b !important;
    transition: transform 0.3s ease-in-out;
}
.sa-switcher:hover {
    color: #d56528 !important;
    transform: translateX(-10px);
}

.lg a.dropdown-item {
    padding: 10px 10px;
    border-radius: 5px;
}

.lg .dropdown-menu.dropdown-menu-end.show {
    padding: 0;
}

/* Custom Styles for Admin Dashboard */
:root {
    --navbar-height: 80px;
    --sidebar-width: 248px;
}

nav.navbar.app-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    min-height: var(--navbar-height);
    padding: 6px 0;
    overflow: visible;
    background-color: #fff !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

nav.navbar.app-topnav > .app-topnav-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    min-height: calc(var(--navbar-height) - 12px);
    overflow: visible;
    max-width: 100%;
}

nav.navbar.app-topnav .navbar-brand.main-logo {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 50px 4px 12px;
    height: auto;
    display: flex;
    align-items: center;
    overflow: visible;
}

nav.navbar.app-topnav .navbar-brand.main-logo::after {
    position: absolute;
    content: "";
    width: 50px;
    height: calc(100% - 8px);
    top: 4px;
    right: -25px;
    transform: skewX(-30deg);
    background-color: #ed6d2b;
    z-index: 1;
}

nav.navbar.app-topnav .amt-logo,
nav.navbar.app-topnav .pts-logo {
    position: relative;
    z-index: 2;
    display: block;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}

nav.navbar.app-topnav .pts-logo {
    flex: 0 0 auto;
    margin-left: 2.75rem !important;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 248px;
    height: 100vh;
    max-height: 100vh;
    height: -webkit-fill-available;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(36, 61, 30, 0.94) 0%, rgba(50, 83, 39, 0.9) 48%, rgba(62, 95, 48, 0.92) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 28px rgba(15, 23, 42, 0.14);
    padding-top: 0;
    z-index: 1000;
}

/* Dashboard shell: fixed header + sidebar; only main content scrolls */
main.dashboard-shell {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    body:has(#sidebar) {
        overflow: hidden;
    }

    main.dashboard-shell {
        padding-top: var(--navbar-height);
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    @supports (height: 100dvh) {
        main.dashboard-shell {
            height: 100dvh;
            max-height: 100dvh;
        }
    }

    .sidebar {
        top: var(--navbar-height);
        bottom: 0;
        height: auto;
        max-height: none;
        padding-top: 0;
    }

    @supports (height: 100dvh) {
        .sidebar {
            height: auto;
            max-height: none;
        }
    }

    #desk-head {
        height: 100%;
        max-height: 100%;
    }

    @supports (height: 100dvh) {
        #desk-head {
            height: 100%;
            max-height: 100%;
        }
    }

    main.main-right {
        margin-top: 0;
        height: calc(100vh - var(--navbar-height));
        max-height: calc(100vh - var(--navbar-height));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    @supports (height: 100dvh) {
        main.main-right {
            height: calc(100dvh - var(--navbar-height));
            max-height: calc(100dvh - var(--navbar-height));
        }
    }
}

@supports (height: 100dvh) {
    .sidebar {
        height: 100dvh;
        max-height: 100dvh;
    }
}

.sidebar-heading {
    text-align: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

#desk-head .nav {
    gap: 0.1rem;
    padding: 0 0.35rem;
}

#desk-head {
    overflow: hidden;
}

@media (min-width: 768px) {
    .sidebar {
        overflow: hidden;
        z-index: 100;
        width: var(--sidebar-width);
        min-width: var(--sidebar-width);
        max-width: 280px;
        display: flex;
        flex-direction: column;
    }

    #desk-head {
        position: relative;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    #desk-head .desk-head-nav-main {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.08);
        padding-bottom: 0.35rem;
    }

    #desk-head .desk-head-nav-main::-webkit-scrollbar {
        width: 8px;
    }

    #desk-head .desk-head-nav-main::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 8px;
    }

    #desk-head .desk-head-nav-main::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    #desk-head .desk-head-nav-main::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.12);
        border-radius: 8px;
    }

    main.main-right {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        max-width: calc(100% - var(--sidebar-width));
    }

    #desk-head .nav-item > .nav-link {
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    #desk-head .nav-item > .nav-link:not(.active) {
        border-left: 3px solid transparent;
    }

    #desk-head .nav-item:not(:has(> .submenu)) > .nav-link::after {
        content: '';
        flex: 0 0 0.85rem;
        margin-left: auto;
    }

    #desk-head .nav-link i {
        flex: 0 0 1.15rem;
        margin-right: 0;
        text-align: center;
    }

    #desk-head .nav-link b {
        flex: 0 0 0.85rem;
        float: none;
        margin-left: auto;
        text-align: center;
        opacity: 0.55;
    }

    .sb li:hover > .submenu {
        display: none !important;
    }

    /* Portaled to document.body — must not require .sb ancestor */
    ul.submenu.is-flyout-open {
        display: block !important;
        position: fixed;
        z-index: 1200;
        pointer-events: auto;
        margin: 0;
        min-width: 188px;
        visibility: visible;
        opacity: 1;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        background: rgba(40, 66, 33, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 10px 32px rgba(15, 23, 42, 0.28);
        padding: 0.35rem 0;
        overflow: hidden;
        list-style: none;
    }

    ul.submenu.is-flyout-open::before {
        content: '';
        position: absolute;
        top: 0;
        left: -20px;
        width: 20px;
        height: 100%;
    }

    ul.submenu.is-flyout-open .nav-link {
        color: rgba(255, 255, 255, 0.86);
        margin: 0.08rem 0.35rem;
        padding: 0.48rem 0.75rem;
        font-size: 0.8125rem;
        border-left: none;
        border-radius: 10px;
    }

    ul.submenu.is-flyout-open .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    ul.submenu.is-flyout-open .nav-link.active {
        border-left: none;
        background: rgba(237, 109, 43, 0.22);
        color: #fff;
    }

    #desk-head .nav-item > .nav-link {
        white-space: normal;
        line-height: 1.25;
    }

    #desk-head .nav-link b {
        align-self: center;
    }
}

@media (min-width: 768px) and (max-height: 900px) {
    :root {
        --navbar-height: 68px;
    }

    .sidebar {
    }

    nav.navbar.app-topnav .amt-logo,
    nav.navbar.app-topnav .pts-logo {
        max-height: 50px;
    }

    .sb .nav-link {
        font-size: 0.8125rem;
        padding: 0.45rem 0.65rem;
        margin: 0.05rem 0.3rem;
    }

    #desk-head .desk-head-nav-main {
        gap: 0;
    }

}


.sb .nav-link {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 0.62rem 0.85rem;
    margin: 0.1rem 0.45rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sb .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
}

.sb .nav-link.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.14);
    border-left: 3px solid #ed6d2b;
    border-radius: 10px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sb .nav-item {
    transition: background 0.18s ease;
    position: relative;
    border-radius: 10px;
    margin-left: 0;
}

.sb .nav-item:hover,
.sb .submenu li:hover {
    background-color: transparent;
}

.sb .nav-link i {
    margin-right: 0.65rem;
    min-width: 1.15rem;
    opacity: 0.92;
    font-size: 0.92rem;
}

.sb .nav-link b {
    opacity: 0.45;
    font-weight: 400;
    font-size: 0.72rem;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sb .nav-item:hover > .nav-link b {
    opacity: 0.75;
}

.sb .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(40, 66, 33, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.28);
    padding: 0.35rem 0;
    overflow: hidden;
}

.sb .submenu {
    display: none;
    position: absolute;
    left: calc(100% + 6px);
    top: 0;
    min-width: 180px;
    z-index: 1100;
}

@media (max-width: 767.98px) {
    .sb li:hover > .submenu {
        display: block;
    }
}

.sb .submenu li {
    padding: 0;
    transition: background 0.18s ease;
}

.sb .submenu .nav-link {
    margin: 0.08rem 0.35rem;
    padding: 0.48rem 0.75rem;
    font-size: 0.8125rem;
    border-left: none;
}

.sb .submenu .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.sb .submenu .nav-link.active {
    border-left: none;
    background: rgba(237, 109, 43, 0.22);
    color: #fff;
}

#nav-offcanvas {
    background:
        linear-gradient(180deg, rgba(36, 61, 30, 0.97) 0%, rgba(50, 83, 39, 0.95) 48%, rgba(62, 95, 48, 0.97) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#nav-offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    margin: 0.12rem 0;
    padding: 0.65rem 0.85rem;
}

#nav-offcanvas .nav-link.active {
    background: rgba(255, 255, 255, 0.16);
    border-left: 3px solid #ed6d2b;
    color: #fff;
}

#nav-offcanvas .nav-item,
#nav-offcanvas .submenu li {
    border-radius: 10px !important;
}

#nav-offcanvas .dropdown-menu {
    transform: unset !important;
    width: 92% !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0 0.35rem 0.75rem;
}

#nav-offcanvas .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.75;
}

/* Content Area Styling */
.content {
    margin-left: 250px;
    padding: 20px;
}

#mob-head {
    display: none;
    height: 100%;
}

/* Responsive Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    body:has(#sidebar) {
        overflow: auto;
    }

    main.dashboard-shell {
        padding-top: 0;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .sidebar {
        top: 0;
        height: 100vh;
        max-height: 100vh;
    }

    @supports (height: 100dvh) {
        .sidebar {
            height: 100dvh;
            max-height: 100dvh;
        }
    }

    main.main-right {
        height: auto;
        max-height: none;
        overflow: visible;
        padding-top: 1rem;
    }
}

@media (max-width: 991.98px) {
    main.dashboard-shell {
        padding-top: 75px;
    }

    main.main-right {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        height: 75px;
        padding-top: 0;
        text-align: center;
        border-radius: 0 0 10px 10px;
        z-index: 1100;
    }

    #desk-head {
        display: none;
    }

    #mob-head {
        display: flex;
        align-items: center;
        height: 100%;
    }

    #mob-head .navbar {
        display: flex;
        align-items: center;
        height: 100%;
        overflow: visible;
    }

    #mob-head .navbar-brand {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 4px 0.35rem 4px 0;
        overflow: visible;
    }

    #mob-head .navbar-brand::after {
        display: none;
    }

    #mob-head .amt-logo,
    #mob-head .pts-logo {
        max-height: 54px;
        width: auto;
        height: auto !important;
        object-fit: contain;
    }

    #mob-head .pts-logo {
        margin-left: 0.75rem !important;
    }

    #sidebar .main-logo,
    #sidebar .pts-logo {
        width: auto;
        max-width: 42%;
    }

    #sidebar .pts-logo {
        margin-left: 0.75rem !important;
    }

    #sidebar .amt-logo {
        width: auto;
        max-width: 100%;
    }
    
    .sb .submenu { 
    	left: unset;
    }
    
    .sb .dropdown-menu { 
    	background: transparent;
    }
}


/* table */
.table-responsive .col-sm-12 {
    border-radius: 10px !important;
    border-color: transparent !important;
    margin-bottom: 0 !important;
}

.table-responsive .col-sm-12 table {
    margin-top: 0 !important;
}

.table {
    margin-bottom: 0 !important;
}

tbody tr {
    font-size: 13px;
    color: #4e4e4e;
    line-height: 1.2;
    font-weight: unset;
}

tbody tr.odd {
    background-color: transparent;
}

tbody tr.even {
    background-color: #f2f2f2;
}

th::after, th::before {
    display: none !important;
}

.table-responsive th {
    resize: horizontal;
    overflow: auto;
    background: #f9f9f8 !important;
    vertical-align: middle!important;
    font-weight: 500;
    padding: 5px 10px;
    padding-right: 10px !important;
    font-size: 13px;
}

.table-responsive td {
    padding: 4px 10px;
    padding-right: 10px !important;
    font-size: 12px;
}

.dataTables_filter {
    display: none !important;
}

.dataTables_length {
    margin: 5px 0 !important;
}

.dataTables_info {
    display:none !important;
}

.pagination {
    --bs-pagination-color: #ec6d2b;
    --bs-pagination-hover-color: #ec6d2b;
    --bs-pagination-focus-color: #ec6d2b;
    --bs-pagination-active-bg: #ec6d2b;
    --bs-pagination-active-border-color: #ec6d2b;
}

/* Tabs */
.nav-tabs .nav-link {
    background: #008dd2;
    color: white;
    margin: 0 2px;
    border-radius: 3px 3px 0 0;
    border:none;
}

.nav-tabs a.nav-link.active {
    border: 1px solid #80808040;
    background: #ADD8E6;
}

#store-info-tab {
    margin-left: 0;
}

#store-info-tab.active {
    margin-left: -0.5px;
}

ul#myTabs {
    border-bottom: none;
}

.tab-content {
    box-shadow: 0 0 1px grey;
}

/* fields */
.bootstrap-tagsinput .tag {
    margin: 2px 0;
    margin-right: 5px;
    color: white !important;
    background-color: #ec6d2b;
    padding: 0 5px 2px 5px;
    border-radius: 5px;
    font-size: 15px;
}

.bootstrap-tagsinput {
    display: flex !important;
    flex-wrap: wrap !important;
    width: calc(100% - 45px) !important;
    border-radius: 0 5px 5px 0 !important;
}

.customer-add .bootstrap-tagsinput {
    width: 100% !important;
    border-radius: 2px !important;
    padding: 7px;
}

/* Bootstrap customizing */
.card, .btn, .form-control, .rounded, .form-select {
    border-radius: 2px !important;
 }

 .btn-primary {
    --bs-btn-bg: #ec6d2b;
    --bs-btn-border-color: #ec6d2b;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #f2702a;
    --bs-btn-hover-border-color: #f2702a;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #f2702a;
    --bs-btn-active-border-color: #f2702a;
    --bs-btn-disabled-bg: #e87f46;
    --bs-btn-disabled-border-color: #e87f46;
 }

.btn-primary:hover {
    background-color: #ff7637;
    border-color: #ff7637;
 }