/* here you can put your own css to customize and override the theme */

.print-table { padding: 0px !important; }   


@media screen {
    div.divFooter { display: none; }
}

@media print {
    div.divFooter {
        bottom: 0;
        position: fixed;
    }

    .modal-content {
        border: none !important;
        padding: 0px !important;
    }

    .modal-header, .modal-footer { display: none; }

    .portlet.box.green { border: none !important; }
}

.approval_text {
    padding-top: 60px;
    text-align: center;
}

.none_border { border: none !important; }

.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th { border: none !important; }

.pad_right .form-group .col-md-8, .pad_right .form-group .col-md-4 {
    padding-left: 8px !important;
    padding-right: 1px !important;
}

.pad_right_inn .col-lg-3, .pad_right_inn .col-md-3, .pad_right_inn .col-sm-3 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}


.sale_table > tbody > tr > td, .sale_table > tbody > tr > th, .sale_table > tfoot > tr > td, .sale_table > tfoot > tr > th, .sale_table > thead > tr > td, .sale_table > thead > tr > th {
    line-height: 1.1 !important;
    padding: 5px !important;
    text-align: right;
}

.sale_order .form-group { margin-bottom: 5px !important; }

.sale_order .control-label {
    font-size: 14px;
    margin-bottom: 5px !important;
}



/* =========================================
   MOBILE: Hide header, floating logo + profile
   ========================================= */

/* The floating logo is hidden on desktop */
.mobile-float-logo {
    display: none;
}

/* The floating dashboard button is hidden on desktop */
.mobile-float-dashboard {
    display: none;
}

@media (max-width: 767px) {

    /* --- Hide the full header bar --- */
    .page-header.navbar {
        display: none !important;
    }

    /* Remove the top margin that was reserved for the header */
    .page-header-fixed .page-container,
    .page-header-fixed.page-header-fixed-mobile .page-container,
    .page-container {
        margin-top: 0 !important;
    }

    /* Zero out the header-height variable — overlay uses this for top/height calculations */
    :root {
        --header-height: 0px !important;
    }

    /* Reduce top padding — header is gone, just need a small gap below floating icons */
    .page-content-wrapper .page-content {
        padding-top: 10px !important;
        padding-bottom: 64px !important;
    }

    /* --- Overlay: full device height since header is hidden --- */
    .overlay {
        top: 0 !important;
        height: 100dvh !important;
        height: 100vh !important;
        left: 0 !important;
        z-index: 99999 !important;
    }

    /* --- Floating dashboard button (top-right) --- */
    .mobile-float-dashboard {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 9998;
        width: 36px;
        height: 36px;
        background: rgba(43, 54, 67, 0.15);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 50%;
        text-decoration: none;
        border: none !important;
        outline: none !important;
        color: #2b3643;
        font-size: 18px;
        transition: background 0.2s;
    }

    .mobile-float-dashboard:hover,
    .mobile-float-dashboard:active {
        background: rgba(43, 54, 67, 0.28);
        color: #2b3643;
        text-decoration: none;
    }

    /* --- Floating logo button (top-left) --- */

    .mobile-float-logo {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 9998;
    }

    .mobile-float-logo .mobile-logo-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 8px;
        padding: 4px;
        text-decoration: none;
        border: none !important;
        outline: none !important;
        box-shadow: none;
        overflow: hidden;
    }

    .mobile-float-logo .mobile-logo-btn:focus,
    .mobile-float-logo .mobile-logo-btn:active {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .mobile-float-logo .mobile-logo-img {
        width: 28px;
        height: 28px;
        object-fit: contain;
        display: block;
    }

    /* --- Profile dropdown panel --- */
    .mobile-float-logo .mobile-profile-dropdown {
        left: 0;
        right: auto;
        top: 54px;
        min-width: 240px;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.08);
        padding: 0;
        overflow: hidden;
    }

    /* User header block inside dropdown */
    .mobile-float-logo .mobile-profile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
    }

    .mobile-float-logo .mobile-profile-avatar img {
        width: 44px;
        height: 44px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #ddd;
    }

    .mobile-float-logo .mobile-profile-name strong {
        display: block;
        font-size: 14px;
        color: #333;
        line-height: 1.3;
    }

    .mobile-float-logo .mobile-profile-name small {
        font-size: 11px;
        color: #888;
    }

    /* Menu items */
    .mobile-float-logo .mobile-profile-dropdown > li > a {
        padding: 11px 18px;
        font-size: 13px;
        color: #444;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-float-logo .mobile-profile-dropdown > li > a i {
        font-size: 15px;
        width: 18px;
        text-align: center;
        color: #666;
    }

    .mobile-float-logo .mobile-profile-dropdown > li > a:hover {
        background: #f4f6f9;
    }

    /* Sign out — red tint */
    .mobile-float-logo .mobile-signout-link,
    .mobile-float-logo .mobile-signout-link i {
        color: #e74c3c !important;
    }

    .mobile-float-logo .mobile-signout-link:hover {
        background: #fff5f5 !important;
    }
}

/*sidebar controll*/

/*.page-header.navbar {
    height: 68px;
    min-height: 68px;
}

.page-header.navbar .page-logo { height: 40px; }

.page-header.navbar .page-logo .logo-default { margin: 26px 0 0; }

.page-header.navbar .menu-toggler.sidebar-toggler { margin: 15px 0 0; }

.page-header.navbar .top-menu .navbar-nav > li.dropdown { height: 68px; }

.page-header.navbar .top-menu .navbar-nav > li.dropdown > .dropdown-toggle { padding: 27px 10px 9px; }

.page-header .top-menu .dropdown-quick-sidebar-toggler > .dropdown-toggle { padding: 17px 10px 9px !important; }

@media (min-width: 992px) {
    .page-sidebar { width: 175px; }
}

@media (min-width: 992px) {
    .page-content-wrapper .page-content { margin-left: 175px; }
}*/

/* =========================================
   SLIM DESKTOP HEADER
   ========================================= */
@media (min-width: 768px) {

    .page-header.navbar {
        height: 44px;
        min-height: 44px;
    }

    .page-header.navbar .page-logo {
        height: 44px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-header.navbar .page-logo .logo-default {
        margin-top: 3px;
    }

    .page-header.navbar .page-top {
        height: 44px;
    }

    .page-header.navbar .top-menu .navbar-nav > li.dropdown {
        height: 44px;
    }

    .page-header.navbar .top-menu .navbar-nav > li.dropdown > .dropdown-toggle {
        padding: 10px 12px;
    }

    .page-header.navbar .menu-toggler.sidebar-toggler {
        margin: 12px 0 0;
    }

    /* Adjust page container top to match new slim header */
    .page-header-fixed .page-container {
        margin-top: 44px;
    }

    .page-sidebar-fixed .page-sidebar {
        top: 44px;
    }
}