﻿.swal-wide {
    width: 90% !important;
    max-width: 800px !important;
}
.swal-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.swal-left
 {
    flex: 1 1 65%;
    min-width: 300px;
    box-sizing: border-box;
}
.swal-right {
    flex: 1 1 30%;
    min-width: 125px;
    box-sizing: border-box;
    line-height:24px;
}

/*item description with thumb nail ends here*/
/*offline table for invoice*/
/* Table container for horizontal scroll if needed */
.tables-container {
    overflow-x: auto;
    width: 100%;
}

/* Styled responsive table */
/* Table wrapper */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ddd;
}

    .styled-table th,
    .styled-table td {
        padding: 8px 12px;
        border: 1px solid #ccc;
        text-align: center;
    }

    .styled-table th {
        background-color: #f4f4f4;
        font-weight: bold;
    }

.qty-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

    .qty-controls button {
        width: 28px;
        height: 28px;
        font-size: 16px;
        padding: 0;
        border: none;
        background-color: #007bff;
        color: white;
        border-radius: 4px;
        cursor: pointer;
    }

    .qty-controls .qty {
        display: inline-block;
        width: 24px;
        text-align: center;
        font-size: 14px;
    }

/* 🔄 Responsive adjustments */
@media (max-width: 600px) {
    .styled-table {
        font-size: 0.85rem;
    }

    .qty-controls button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .qty-controls .qty {
        width: 20px;
        font-size: 13px;
    }

    .styled-table th,
    .styled-table td {
        padding: 6px 8px;
    }
}



/*.qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

    .qty-controls button {
        width: 28px;
        height: 28px;
        font-size: 16px;
        padding: 0;
        border: none;
        background-color: #007bff;
        color: white;
        border-radius: 3px;
        cursor: pointer;
    }

    .qty-controls span.qty {
        min-width: 24px;
        text-align: center;
        font-size: 14px;
    }*/


    /*.styled-table button {
        padding: 6px 14px;
        font-size: 14px;
        border: none;
        background-color: #007bff;
        color: white;
        border-radius: 4px;
        cursor: pointer;
    }

        .styled-table button:hover {
            background-color: #0056b3;
        }*/
/* Quantity buttons */
/*.qty-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;*/ /* prevent wrapping */
/*}

    .qty-controls button {
        width: 28px;
        height: 28px;
        font-size: 16px;
        padding: 0;
        border: none;
        background-color: #007bff;
        color: white;
        border-radius: 3px;
        cursor: pointer;
    }

    .qty-controls span.qty {
        display: inline-block;
        width: 24px;
        text-align: center;
        font-size: 15px;
    }*/

/* Highlight for active rows (qty > 0) */
.highlight-row {
    background-color: #e6ffe6;
}
/*offline table end hre*/

@media (max-width: 600px) {
    .swal-flex-container {
        flex-direction: column;
    }

    .swal-left,
    .swal-right {
        width: 100%;
    }
}
