﻿
@media (max-width: 768px) {

    #tbltaxeffect
    {
        display: none
    }

    .invoice-summary {
        text-align: center;
    }

    .invoice-row {
        flex-direction: column;
        align-items: center;
    }

    .invoice-label, .invoice-value {
        text-align: center;
        font-size: 12px;
    }

    .invoice-summary {
        margin: 5px auto;
        padding: 5px;
    }


    .col-12 {
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
    }

    .add-cart-group {
        padding: 10px;
        margin-bottom: 5px;
    }
    .add-cart-group-prodcode {
       width: 100% !important;
    }

    .add-cart-group-50 {
        width: 50% !important;
    }

        #txtproductcode {
            width: 100% !important;
        }

    #txtunitprice, #txtqty {
        width: 100% !important;
    }


    .chzn-select, .classname {
        width: 100% !important;
    }


    #ProductAjaxPanel {
        display: block;
    }

        #ProductAjaxPanel > div {
            width: 100%;
            margin-bottom: 10px;
        }

  
    /* Flex layout for mobile, stack fields in rows */
    .custom-form-group label {
        font-size: 12px;
    }

        .custom-form-group select,
        .custom-form-group input {
            font-size: 14px;
            padding: 12px;
        }

    .table-title {
        text-align: center;
        color: #000000;
        font-size: 10pt;
        font-weight: bold;
    }

    .invoiceaddnewcusmodel-row-mb-3 {
        padding: 0px !important;
    }

    .hyperlink {
        color: black;
        text-decoration: none;
        font-weight: bold;
        font-size: 11px;
        cursor: pointer;
    }

    .custom-excel-btn {
        background-color: #198754; /* Custom green color */
        border: none;
        padding: 5px 10px;
        font-size: 10px;
        font-weight: bold;
        border-radius: 8px;
        color: white;
        margin-bottom: 10px;
    }

    .custom-creditinvocie-btn {
        background-color: #0a75c7; /* Custom green color */
        border: none;
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 8px;
        color: white;
        margin-bottom: 10px;
    }

        .custom-creditinvocie-btn:hover {
            background-color: #015392;
            transform: scale(1.05);
            color: white;
        }

        .custom-creditinvocie-btn i {
            margin-right: 8px; /* Space between icon and text */
        }

    .no-padding-right {
        padding-right: 0px !important;
        padding-left: 0px !important
    }
 
    .btn-success
    {
        margin-bottom: 10px;
        margin-top: 20px;
    }

/*    .InvoiceopenModal {
        display: none;
    }*/

    .col {
        width: 50%;
    }

    .dashboard-card h4 {
        font-size: 15px !important;
        font-weight: bold;
    }

    .icon-container {
        display: flex;
        gap: 10px; /* Flexible spacing */
        align-items: center;
    }

        .icon-container a img {
            transition: box-shadow 0.3s ease;
        }

            .icon-container a img:hover {
                box-shadow: 0 0 8px rgba(0, 123, 255, 0.8); /* Blue glow effect */
                border-radius: 5px; /* Rounded corners for a softer look */
            }


    .dashboard-card h6 {
        font-size: 10px !important;
        margin-bottom: 2px;
    }

    .icon-box {
        font-size: 18px !important;
        padding: 0px !important;
    }

    #tbldashboardgstcomliance {
        display: none;
    }

    .social-icons i {
        font-size: 14px !important;
        cursor: pointer;
        text-align: center;
        align-items: center;
    }

    .payment-icons i {
        font-size: 14px !important;
        cursor: pointer;
        text-align: center;
        align-items: center;
    }

    .footer {
        flex-direction: column;
        text-align: center !important;
    }

    .footer-left, .footer-right {
        text-align: center !important;
        margin-bottom: 12px;
    }

    .social-icons {
        text-align: center !important;
    }

    .footer-right .content-wrapper {
        align-items: center;
    }


    /* Grand Total row styling for mobile */
    .grand-total {
        background-color: #CCCCCC !important;
        font-weight: bold;
    }

    .badge {
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 7pt !important;
    }

    #tbleffect table th {
        padding: 2px !important;
        font-size: 8pt;
    }

    #tbleffect table td {
        padding: 2px !important;
        font-size: 9pt;
    }

    h2.dashboard-title {
        font-size: 15px;
        font-weight: bold;
        padding-top: 10px;
        margin-bottom: 10px;
    }

    h5.dashboard-title {
        font-size: 11px;
        font-weight: bold;
        background-color: #4c4c4c;
        padding: 1px;
        color: white;
        text-align: center;
        border-radius: 10px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    h6.dashboard-title {
        font-size: 15px; /* Adjust the size as needed */
        font-weight: bold;
    }

    h7.dashboard-title {
        font-size: 15px; /* Adjust the size as needed */
        font-weight: bold;
    }

    .mainnav ul li a {
        font-size: 14px; /* Reduce font size */
        padding: 10px 12px; /* Adjust padding for better spacing */
    }

    .submenu li a {
        font-size: 13px; /* Reduce submenu font size */
        padding-left: 15px; /* Adjust spacing for submenu items */
    }

    .menu-toggle {
        position: fixed; /* Keep it fixed on top */
        top: 15px;
        left: 15px;
        z-index: 3000; /* Ensure it's above the menu */
        background: rgba(0, 0, 0, 0.7); /* Optional: Adds a background for visibility */
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        display: block;
    }

    .mainnav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        left: -450px;
        width: 200px;
        height: 100%;
        background: #383838;
        transition: left 0.5s ease-in-out, opacity 0.3s ease-in-out;
        padding-top: 65px;
        z-index: 1050;
        opacity: 0; /* Hide initially */
    }

        .mainnav.active {
            left: 0;
            display: flex;
            opacity: 1;
        }



        .mainnav ul {
            flex-direction: column;
            width: 100%;
        }

            .mainnav ul li {
                width: 100%;
                position: relative;
            }

    mainnav ul li a {
        font-size: 8px; /* Reduce menu item font size */
    }

    .mainnav ul li.active > .submenu,
    .submenu li.active > .submenu {
        display: block;
        transform: translateY(0);
    }

    mainnav ul li.active > .submenu {
        display: block;
        transform: translateY(0);
    }

    .submenu li.active > .submenu {
        display: block;
        transform: translateY(0);
    }

    .submenu .submenu {
        position: relative;
        left: 100%;
        width: 150px;
    }

    .submenu {
        position: relative;
        width: 100%;
        top: 0%;
        display: none;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

        .submenu .submenu {
            position: relative;
            width: 100%;
            left: 0;
            display: none;
        }

        .submenu li a {
            padding-left: 20px;
        }



    .payment-icons i {
        font-size: 16px; /* Reduce icon size on mobile */
        margin-left: 8px;
    }

    header {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 20px;
    }

    .header-left, .header-right {
        width: 100%;
        justify-content: center;
    }

        .header-left img {
            height: 80px;
            margin-bottom: 10px;
        }

    header h1 {
        font-size: 18px; /* Reduce header title size */
    }

    .logout, select {
        font-size: 14px; /* Reduce font size for buttons & dropdown */
    }

    .menu-toggle {
        font-size: 16px; /* Keep menu toggle readable */
    }

    .header-right {
        align-items: center; /* Center align on mobile */
        text-align: center;
        width: 100%; /* Use full width */
    }

        .header-right .row {
            justify-content: center; /* Center all row contents */
        }
}

@media (max-width: 992px) {

    .table-title {
        text-align: center;
        color: #000000;
        font-size: 11pt;
        font-weight: bold;
    }

    .invoiceaddnewcusmodel-row-mb-3 {
        padding: 0px !important;
    }

    .form-label {
        font-size: 8pt; 
    }

    .hyperlink {
        color: black;
        text-decoration: none;
        font-weight: bold;
        font-size: 8pt;
        cursor: pointer;
    }

    .invoicerightcol-md-4col-12mb-3 {
        padding: 0px !important;
    }

    .logout-item {
        background-color: white !important;
        color: black !important;
    }

        /* Add hover effect */
        .logout-item:hover {
            background-color: #cc0000 !important; /* Darker red on hover */
        }

    /* Styling for the Font Awesome icons inside the submenu */
    .top-submenu li a i {
        padding-right: 0px; /* Adds some space between icon and text */
        font-size: 13px; /* Adjusts the size of the icon */
        color: #333; /* Optional: sets the color of the icons */

        width: 16px; /* Ensures uniform icon width */
        text-align: center; /* Aligns icon properly */
    }


    .mainnav ul li a {
        color: white;
        text-decoration: none;
        font-size: 13px;
        display: block;
        padding: 7px 8px;
    }

    .top-menu {
        display: flex;
        justify-content: flex-end;
        background: #9e9e9e;
        position: relative;
        border-bottom: solid 1px #ffffff;
        align-items: center;
        text-align: center;
        padding: 2px;
        font-size: 13px;
    }

        .top-menu a {
            color: white;
            text-decoration: none;
            font-size: 12px;
            position: relative;
            margin-right: 10px;
            margin-left: 10px;
        }


    .top-submenu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #ffffff;
        list-style: none;
        width: 160px;
        left: -71px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
        padding: 5px;
        margin: 0;
    }

        .top-submenu li a {
            color: #000000;
            text-decoration: none;
            display: block;
            font-size: 11px;
            text-align: left;
            display: flex;
            align-items: center;
            padding: 5px 5px;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 2px 0px;
            text-decoration: none;
        }

    .row {
        width: 100% !important;
        margin: 0 !important;
        padding-bottom: 15px;
    }

    .col {
        width: 50%;
        padding-bottom: 0px !important;
        margin-bottom: -8px;
    }

    .dashboard-card h4 {
        font-size: 15px !important;
        font-weight: bold;
    }

    .dashboard-card h6 {
        font-size: 8px !important;
        margin-bottom: 2px;
    }

    .icon-box {
        font-size: 14px !important;
        padding: 0px !important;
    }

    #tbldashboardgstcomliance {
        display: none;
    }

    .social-icons i {
        font-size: 14px !important;
        cursor: pointer;
        text-align: center;
        align-items: center;
    }

    .payment-icons i {
        font-size: 14px !important;
        cursor: pointer;
        text-align: center;
        align-items: center;
    }

    .footer {
        flex-direction: column;
        text-align: center !important;
    }

    .footer-left, .footer-right {
        text-align: center !important;
        margin-bottom: 12px;
    }

    .social-icons {
        text-align: center !important;
    }

    .footer-right .content-wrapper {
        align-items: center;
    }

    #tbleffect table, #tbleffect thead, #tbleffect tbody, #tbleffect th, #tbleffect td, #tbleffect tr {
        display: block;
    }
  

    #tbleffect thead {
        display: none; /* Hide table header */
    }

    #tbleffect tr {
        margin-bottom: 10px;
        border: 2px solid white;
        padding: 10px;
        background: #DDDDDD;
        font-size: 9pt; /* Set font size */
        padding-left: 10px;
    }

    #tbleffect td {
        border: none;
        display: flex;
        justify-content: space-between;
        padding: 2px; /* Reduced padding for mobile */
        font-size: 9pt; /* Set font size */
        padding-left: 10px;
    }

    #tbleffect td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: capitalize;
    }

    /* Ensure alternating row colors on mobile */
    #tbleffect tr:nth-child(odd) {
        background-color: #f2f2f2;
        border-radius: 10px;
    }

    #tbleffect tr:nth-child(even) {
        background-color: rgb(0 0 0 / 2%);
        border-radius: 10px;
    }

    #tbleffect tr:hover {
        background-color: #00AEEF !important;
        color: white;
    }

    /* Grand Total row styling for mobile */
    .grand-total {
        background-color: #CCCCCC !important;
        font-weight: bold;
    }

    .badge {
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 7pt !important;
    }

    #tbleffect table th {
        padding: 2px !important;
        font-size: 8pt;
    }

    #tbleffect table td {
        padding: 2px !important;
        font-size: 9pt;
    }

    h2.dashboard-title {
        font-size: 15px;
        font-weight: bold;
        padding-top: 10px;
        margin-bottom: 10px;
    }

    h5.dashboard-title {
        font-size: 11px;
        font-weight: bold;
        background-color: #0dcaf0;
        padding: 1px;
        color: white;
        text-align: center;
        border-radius: 10px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    h6.dashboard-title {
        font-size: 15px; /* Adjust the size as needed */
        font-weight: bold;
    }

    h7.dashboard-title {
        font-size: 15px; /* Adjust the size as needed */
        font-weight: bold;
    }




    .payment-icons i {
        font-size: 16px; /* Reduce icon size on mobile */
        margin-left: 8px;
    }

    header {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 20px;
    }

    .header-left, .header-right {
        width: 100%;
        justify-content: center;
    }

        .header-left img {
            height: 80px;
            margin-bottom: 10px;
        }

    header h1 {
        font-size: 18px;
    }

    .logout, select {
        font-size: 14px;
    }

    .menu-toggle {
        font-size: 16px; /* Keep menu toggle readable */
    }

    .header-right {
        align-items: center; /* Center align on mobile */
        text-align: center;
        width: 100%; /* Use full width */
    }

        .header-right .row {
            justify-content: center; /* Center all row contents */
        }
}
