/* ===========================================
   RESPONSIVE CSS FOR ADMIN LOGIN FORM ONLY
   POPUP CENTER FIX + MOBILE TEXT ADJUSTMENT
=========================================== */

/* Force center popup on ALL screens */
.guj-login-overlay {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* =============================
   Tablet (max-width: 1024px)
============================= */
@media (max-width: 1024px) {

    .guj-login-wrapper {
        padding: 36px 32px;
        max-width: 440px;
    }

    .guj-heading {
        font-size: 20px;
        margin-bottom: 32px;
    }

    .guj-login-form input {
        font-size: 15px;
        padding: 12px 14px;
    }

    .guj-login-btn {
        font-size: 15px;
        padding: 14px;
    }
}

/* =============================
   Large Mobile (max-width: 767px)
============================= */
@media (max-width: 767px) {

    .guj-login-overlay {
        padding: 20px;
        align-items: center !important; /* Always center on mobile */
    }

    .guj-login-wrapper {
        max-width: 92%;
        padding: 28px 24px;
        min-height: auto;
    }

    .guj-heading {
        font-size: 18px;
        margin-bottom: 24px;
        line-height: 1.4;
    }

    .guj-login-form label {
        font-size: 14px;
    }

    .guj-login-form input {
        font-size: 14px;
        padding: 10px 12px;
        margin-bottom: 20px;
    }

    .toggle-icon {
        font-size: 16px;
        right: 10px;
    }

    .guj-login-btn {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* =============================
   Small Mobile (max-width: 480px)
============================= */
@media (max-width: 480px) {

    .guj-login-overlay {
        padding: 16px;
        align-items: center !important;
    }

    .guj-login-wrapper {
        padding: 22px 18px;
    }

    .guj-heading {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .guj-login-form label {
        font-size: 12px;
    }

    .guj-login-form input {
        font-size: 12px;
        padding: 9px 10px;
    }

    .toggle-icon {
        font-size: 15px;
        right: 8px;
    }

    .guj-login-btn {
        padding: 11px 12px;
        font-size: 14px;
        border-radius: 10px;
    }
}

/* =============================
   Extra Small Screens (max-width: 360px)
============================= */
@media (max-width: 360px) {

    .guj-login-overlay {
        padding: 14px;
        align-items: center !important;
    }

    .guj-login-wrapper {
        padding: 18px 14px;
    }

    .guj-heading {
        font-size: 15px;
    }

    .guj-login-form input {
        font-size: 11.5px;
        padding: 8px 9px;
    }

    .guj-login-btn {
        font-size: 14px;
        padding: 10px;
    }

    .toggle-icon {
        font-size: 14px;
        right: 6px;
    }
}

/* ============================================================
   RESPONSIVE CSS FOR BILLING DASHBOARD (SIDEBAR TOGGLE + MOBILE)
   ============================================================ */


/* HIDE TOGGLER ON DESKTOP */
.filter-toggler.vendor {
    display: none;
    visibility: hidden;
}

/* =============================
   TABLET + MOBILE VIEW
   Collapse Sidebar
============================= */
@media (max-width: 1024px) {

    /* SHOW TOGGLE ICON */
    .filter-toggler.vendor {
        display: flex;
        flex-direction: column;
        justify-content: center;
        row-gap: 6px;
        cursor: pointer;
        width: 28px;
        margin-bottom: 20px;
    }

    .filter-toggler.vendor span {
        display: block;
        width: 28px;
        height: 3px;
        background-color: #000;
        transition: 0.3s ease;
    }

    /* COLLAPSED SIDEBAR */
    .vendor-dashbord-left {
        position: fixed;
        left: -270px;
        top: 0;
        width: 270px;
        height: 100vh;
        background: #fff;
        z-index: 999999;
        padding: 30px;
        transition: 0.4s ease;
        box-shadow: 3px 0 12px rgba(0,0,0,0.1);
    }

    /* SIDEBAR ACTIVE (ON TOGGLE CLICK) */
    .vendor-dashbord-left.active {
        left: 0;
    }

    /* RIGHT CONTENT FULL WIDTH */
    .vendor-dashbord-right {
        margin-left: 0 !important;
        padding: 25px 20px !important;
    }

    /* When sidebar is open, prevent body scroll */
    body.sidebar-open {
        overflow: hidden;
    }
}

/* =============================
   MOBILE VIEW (Below 600px)
============================= */
@media (max-width: 600px) {

    .vendor-dashbord-left {
        width: 240px;
        left: -240px;
    }

    .vendor-dashbord-left.active {
        left: 0;
    }

    .vendor-dashbord-right {
        padding: 20px 16px !important;
    }

    .vendor-dashbord-menu-content ul li a {
        font-size: 14px;
        padding: 8px 0 8px 14px;
    }

    .vendor-heading .title h2 {
        font-size: 22px;
    }
}

/* =============================
   VERY SMALL MOBILE (Max 400px)
============================= */
@media (max-width: 400px) {

    .vendor-dashbord-left {
        width: 210px;
        left: -210px;
    }

    .filter-toggler.vendor {
        width: 24px;
    }

    .vendor-dashbord-menu-content ul li a {
        font-size: 13px;
    }

    .vendor-heading .title h2 {
        font-size: 20px !important;
    }
}

/* HIDE TOGGLER ON DESKTOP */
@media (min-width: 1025px) {
    .menu-toggle-icon {
        display: none !important;
    }
}

/* MOBILE + TABLET */
@media (max-width: 1024px) {

    /* Default hamburger */
    .menu-toggle-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        row-gap: 6px;
        width: 32px;
        cursor: pointer;
        z-index: 1000000000;
        margin-bottom: 20px;
        position: relative;
    }

    .menu-toggle-icon span {
        width: 30px;
        height: 3px;
        background: #000;
        border-radius: 2px;
        transition: 0.3s ease;
    }

    /* When open → X icon */
    .menu-toggle-icon.icon-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle-icon.icon-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-icon.icon-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Sidebar hidden */
    .vendor-dashbord-left {
        left: -270px;
        transition: 0.35s ease-in-out;
    }

    /* Sidebar open */
    .vendor-dashbord-left.menu-open {
        left: 0;
    }

    /* Right content full width */
    .vendor-dashbord-right {
        margin-left: 0 !important;
        padding: 20px !important;
    }
}


/* ==========================================
   TABLET (max-width: 1024px)
========================================== */
@media (max-width: 1024px) {

    /* Title + Button stack */
    .vendor-heading-two {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-heading-two .secondary-btn-two {
        width: 100%;
        text-align: center;
    }

    /* Filter box full width */
    .search-product-box {
        width: 100%;
    }

    /* Table scroll */
    .vendor-darhbord-table {
        overflow-x: auto;
    }

    /* Grid auto layout */
    .vendor-darhbord-grid {
        display: block;
    }

    .vendor-darhbord-grid-item {
        width: 100% !important;
        margin-bottom: 20px;
    }
}


/* ==========================================
   LARGE PHONE (max-width: 768px)
========================================== */
@media (max-width: 768px) {

    /* Title text size */
    .vendor-heading-two h4 {
        font-size: 18px;
    }

    .vendor-heading-two p {
        font-size: 14px;
        line-height: 20px;
    }

    /* Filter inputs */
    .search-product-box {
        flex-direction: column;
        align-items: stretch;
        row-gap: 12px;
        padding: 12px;
    }

    .search-product-box select#bp-filter-type {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border: 1px solid #D1D5DB;
    }

    .search-product-box .search-box input {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* Table text shrink */
    .vendor-darhbord-table table th,
    .vendor-darhbord-table table td {
        font-size: 13px;
        padding: 10px 6px;
    }

    .bill-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .action-icons img {
        width: 18px;
    }
}


/* ==========================================
   SMALL PHONE (max-width: 576px)
========================================== */
@media (max-width: 576px) {

    /* Heading section */
    .vendor-heading-two {
        align-items: flex-start;
        gap: 12px;
    }

    .vendor-heading-two h4 {
        font-size: 17px;
    }

    .vendor-heading-two p {
        font-size: 13px;
    }

    /* Add Vendor Modal */
    .bp-modal {
        width: 92%;
        padding: 20px !important;
    }

    .bp-modal h3 {
        font-size: 18px;
    }

    .bp-form-group label {
        font-size: 14px;
    }

    .bp-form-group input {
        font-size: 15px;
        padding: 10px 12px;
    }

    /* Delete confirm box */
    #bp-delete-confirm-overlay .bp-delete-confirm-box {
        width: 92%;
        padding: 20px;
    }

    #bp-delete-confirm-overlay h3 {
        font-size: 16px;
    }

    #bp-delete-confirm-overlay p {
        font-size: 13px;
    }

    /* Search full width */
    .search-product-box {
        width: 100%;
    }
}


/* ==========================================
   EXTRA SMALL PHONE (max-width: 400px)
========================================== */
@media (max-width: 400px) {

    .vendor-heading-two h4 {
        font-size: 16px;
    }

    .vendor-heading-two p {
        font-size: 12px;
    }

    .secondary-btn-two {
        width: 100%;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }

    .search-product-box select,
    .search-product-box input {
        font-size: 13px !important;
    }

    .vendor-darhbord-table table th,
    .vendor-darhbord-table table td {
        font-size: 12px !important;
    }

    .action-icons img {
        width: 16px !important;
    }
}
/* ==========================================
   MOBILE SEARCH BOX BORDER FIX
   (Max-width: 768px)
========================================== */
@media (max-width: 768px) {

    /* Outer wrapper box look */
    .vendor-filter-bar {
        border: 1px solid #D1D5DB !important;
        padding: 15px !important;
        border-radius: 6px;
        background: #fff;
    }

    /* Search box vertical layout */
    .search-product-box {
        flex-direction: column;
        align-items: stretch;
        row-gap: 12px;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        width: 100%;
    }

    /* Dropdown full-width with border */
    .search-product-box select#bp-filter-type {
        width: 100%;
        border: 1px solid #D1D5DB !important;
        border-radius: 4px !important;
        padding: 12px !important;
        font-size: 14px;
        background: #fff;
    }

    /* Search input full-width with border */
    .search-product-box .search-box {
        width: 100%;
        border: 1px solid #D1D5DB !important;
        border-radius: 4px !important;
        background: #fff;
    }

    .search-product-box .search-box input {
        width: 100%;
        padding: 12px !important;
        font-size: 14px !important;
    }
    .search-product-box .search-box input[type="text"]{
        border-left: none;
    }
}
/* ==========================================
   FIX TABLE BUTTON FOR VERY SMALL SCREENS
   (Max-width: 400px)
========================================== */
@media (max-width: 400px) {

    /* Bill Button Smaller */
    .bill-btn {
        font-size: 12px !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        display: inline-block;
        white-space: nowrap !important;
        max-width: 100% !important;
        text-align: center;
    }

    /* Table cells tighter */
    .vendor-darhbord-table table td {
        padding: 8px 4px !important;
    }

    /* Action icons smaller */
    .action-icons img {
        width: 16px !important;
    }

    /* Prevent overlap */
    .action-icons {
        gap: 8px !important;
    }
    #bp-vendor-table-body td, #bp-vendor-table-body th, #bp-vendor-table-body strong, #bp-vendor-table-body a, #bp-vendor-table-body span{
        font-size: 14px;
    }
}
/* ================================
   VENDOR BILLING TABLE (UNIQUE)
================================ */

/* Force table to not break layout */
.vendor-billing-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Buttons inside table fix */
.vendor-billing-table .bill-btn {
    white-space: nowrap;
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
}

/* Edit/Delete Icons */
.vendor-billing-table .action-icons {
    white-space: nowrap;
}

.vendor-billing-table .action-icons span {
    display: inline-block;
    cursor: pointer;
    margin-right: 6px;
}

.vendor-billing-table .action-icons img {
    width: 18px;
    height: 18px;
}

/* ================================
   MOBILE RESPONSIVE TABLE
================================ */
@media (max-width: 568px) {

    /* Make table scrollable */
    .vendor-billing-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vendor-billing-table table {
        min-width: 700px; /* Ensures scroll activates */
    }

    /* Reduce button size for mobile */
    .vendor-billing-table .bill-btn {
        padding: 4px 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Smaller icons */
    .vendor-billing-table .action-icons img {
        width: 16px;
        height: 16px;
    }
}
/* ==============================================
   RESPONSIVE FIXES — Vendor Account Page (INLINE OVERRIDE)
   ============================================== */

/* ------------------------------
   MAX WIDTH 1024px (Tablets)
------------------------------ */
@media (max-width: 1024px) {

    .hisab-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .hisab-summary {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .hisab-wrapper {
        flex-direction: column !important;
    }

    
    .hisab-right {
        width: 100% !important;
    }
    .hisab-left{
        width: 40%;
    }
}

/* ------------------------------
   MAX WIDTH 768px
------------------------------ */
@media (max-width: 768px) {

    .hisab-header {
        padding: 18px !important;
        gap: 15px !important;
    }

    .hisab-summary {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .summary-box {
        width: 48% !important;
    }

    .kb-header-row {
        font-size: 13px !important;
        padding: 10px !important;
    }
}

/* ------------------------------
   MAX WIDTH 568px (MOBILE)
------------------------------ */
@media (max-width: 568px) {

    /* HEADER */
    .hisab-header {
        padding: 15px !important;
    }

    .hisab-count h2 {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }

    .hisab-count p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    /* SUMMARY STACK */
    .hisab-summary {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .summary-box {
        width: 100% !important;
        padding: 12px 16px !important;
    }

    /* ENTRY WRAPPER */
    .hisab-wrapper {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .hisab-left {
        width: 100% !important;
    }

    .bp-add-btn {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    /* TABLE CONTAINER */
    .kb-entry-list {
        overflow-x: auto !important;
        border-radius: 10px !important;
        background: #fff !important;
    }
}
@media (max-width: 460px) {
    #bp-vendor-table-body td, #bp-vendor-table-body th, #bp-vendor-table-body strong, #bp-vendor-table-body a, #bp-vendor-table-body span{
          font-size: 14px;
    }
    #bp-vendor-table-body .bill-btn {
       font-size: 14px;
    }
}