.modal-content {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--cb-primary) !important;
    padding: 15px 20px;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.modal-header h5 {
    color: white !important;
    font-weight: 600;
    margin: 0;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body #header h3 {
    color: var(--cb-primary);
    font-size: 30px;
    margin-bottom: 5px;
   
}
.modal-body #header h5 {
   color: #555;
    font-size: 15px;
   
}

.modal-footer {
    /* border-top: 1px solid #eef2f8; */
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}



.modal-footer .btn-secondary {
        background: #6c757d !important;
        /* border-color: #6c757d !important; */
        color: white !important;
        border-radius: 10px !important;
        padding: 8px 20px !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        border: none !important;
    }

    .modal-footer .btn-secondary:hover {
        background: #5a6268 !important;
        border-color: #5a6268 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }


#print{
    background: #28a745 !important; border: none; border-radius: 8px; padding: 10px 18px; color: white; font-size: 0.8rem; transition: 0.2s; cursor: pointer; margin: 0 10px; font-weight:600;
}   

#add_dispatch_btn{
    background: var(--cb-primary) !important;
    border-radius: 10px !important;
        padding: 8px 20px !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        color: white !important;
        border: none !important;
}
#add_dispatch_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}






/* Modal Table Styles - Common for all tables */
.modal-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid black;
}

/* Table Header Styles */
.modal-table thead {
    background-color: #2A652B;
    color: white;
    text-align: center;
}

.modal-table thead tr th {
    font-size: 14px;
    border: 1px solid black;
    padding: 4px;
    text-align: center;
}

/* Table Body Styles - Sab fields center ho jayenge */
.modal-table tbody tr td {
    padding: 3px;
    border: 1px solid black;
    text-align: center;
    text-wrap: nowrap;
    
}

/* Special class for text-wrap (product name ke liye) */
.modal-table tbody tr td.text-wrap {
    white-space: normal;
    word-wrap: break-word;
}

/* Agar aapko kisi specific column ko right-align karna ho to */
.modal-table tbody tr td.text-right {
    text-align: right;
}

/* Agar aapko kisi specific column ko left-align karna ho to */
.modal-table tbody tr td.text-left {
    text-align: left;
}
.modal-table tfoot tr td {
    font-weight: bold;
    border: 1px solid black;
    padding: 4px;
    text-align: center;
}
/* Badge Styles (if not already present) */
.badge {
    display: inline-block;
    padding: 8px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 11px;
}

.badge-primary {
    background-color: #007bff;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}


.btn-account-add{
    background: var(--cb-primary) !important; 
    border: none; border-radius: 10px; padding: 10px 25px; color: white; font-weight: 600;
        cursor: pointer !important; 
        text-wrap:nowrap!important; 

}
.btn-account-add:hover{
    /* background: #1e4a1f !important; */
    transform: translateY(-2px);
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white !important;
    text-decoration: none !important; */
}
@media print {
    .modal-table th,
    .modal-table td {
        border: 1px solid black !important;
        color:black;
    }
}
/* Responsive table for mobile */
@media screen and (max-width: 768px) {
    .modal-table {
        font-size: 12px;
    }
    
    .modal-table thead tr th {
        font-size: 12px;
        padding: 2px;
    }
    
    .modal-table tbody tr td {
        padding: 2px;
    }
}




.btn-print-invoice {
    background: #28a745 !important;
    border: none !important;
    /* border-radius: 8px !important;
    padding: 10px 18px !important; */
    padding: 7px 13px !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        border-radius: 10px !important;
            color: white !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
}

.btn-print-invoice:hover {
    /* background: white !important;
    color: #28a745 !important; */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #28a745 !important;
}



/* ============================================
   UNIVERSAL FORM FIELD STYLES
   Classes: pos-common-label, pos-common-input, pos-common-select
   Use anywhere - just add these classes to your existing elements
   ============================================ */

/* LABEL STYLING */
.pos-common-label {
    font-weight: 600 !important;
    font-size: 0.70rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px !important;
    display: block;
}


/* INPUT FIELD STYLING */
.pos-common-input {
    width: 100%;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1e293b;
}

.pos-common-input:focus {
    border-color: #2a652b !important;
    box-shadow: 0 0 0 3px rgba(42, 101, 43, 0.1) !important;
    outline: none;
}

.pos-common-input[readonly] {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

/* SELECT DROPDOWN STYLING */
.pos-common-select {
    width: 100%;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.85rem !important;
    background-color: #ffffff !important;
    cursor: pointer;
    color: #1e293b !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232a652b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

.pos-common-select:focus {
    border-color: #2a652b !important;
    box-shadow: 0 0 0 3px rgba(42, 101, 43, 0.1) !important;
    outline: none;
}

/* TEXTAREA STYLING (if needed) */
.pos-common-textarea {
    width: 100%;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease;
    background: #ffffff;
}

.pos-common-textarea:focus {
    border-color: #2a652b !important;
    box-shadow: 0 0 0 3px rgba(42, 101, 43, 0.1) !important;
    outline: none;
}

input.pos-common-input[type="number"]::-webkit-inner-spin-button,
input.pos-common-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}





.common-small-button {
    background: var(--cb-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    
}

.common-small-button:hover {
    background: var(--cb-secondary);
    transform: scale(1.02);
    text-decoration: none !important;
    color: white !important;
}

.common-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

.common-form-checkbox input {
    width: 16px;
    height: 18px;
    cursor: pointer;
}


.common-radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    /* margin-bottom: 10px; */
}

.common-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.pos-common-select:disabled {
    background: #edf0f4 !important;
    color: #64748b;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* Enabled Select Styling */
.pos-common-select:enabled {
    background: white;
    color: #1e293b;
    border-color: #cbd5e0;
}


/* ============================================
   UNIVERSAL TABLE STYLES
   Class: pos-common-table
   Works for cart tables, data tables, any table
   Use anywhere - just add class="pos-common-table"
   ============================================ */

/* Main Table Container */
.pos-common-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    margin: 15px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

/* Common Table Styling */
.pos-common-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 500px;
}

/* Table Header */
.pos-common-table thead tr {
    background: #2a652b;
    position: sticky;
    top: 0;
}

.pos-common-table th {
    padding: 12px 10px !important;
    font-weight: 700 !important;
    font-size: 0.75rem;
    text-align: center !important;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: #2a652b;
}

.pos-common-table th:first-child {
    border-top-left-radius: 12px;
}

.pos-common-table th:last-child {
    border-top-right-radius: 12px;
}

/* Table Body */
.pos-common-table td {
    padding: 12px 10px !important;
    font-size: 0.8rem;
    color: #334155;
    text-align: center;
    border-bottom: 1px solid #eef2f8;
    vertical-align: middle;
}

/* Table Row Hover Effect */
.pos-common-table tbody tr:hover {
    background: #f8fafc;
}

/* Empty Cart/Table Message */
.pos-table-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.pos-table-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.pos-table-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Delete/Action Button in Table */
.pos-table-delete-btn {
    background: #dc3545;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pos-table-delete-btn:hover {
    background: #b02a37;
    transform: scale(1.02);
    color: white !important;
}

/* Edit Button in Table */
.pos-table-edit-btn {
    background: #2a652b;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-right: 5px;
}

.pos-table-edit-btn:hover {
    background: #1e4a1f;
    transform: scale(1.02);
    color: white !important;
}

/* Action Buttons Container */
.pos-table-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

/* Table with Fixed Height (for cart tables) */
.pos-table-wrapper-fixed {
    overflow-x: auto;
    overflow-y: auto;
    margin: 15px 0;
    max-height: 200px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.pos-table-wrapper-fixed .pos-common-table thead tr {
    position: sticky;
    top: 0;
}

/* Small/Dense Table Variant */
.pos-common-table-sm th,
.pos-common-table-sm td {
    padding: 8px 8px !important;
    font-size: 0.75rem;
}

/* Borderless Table */
.pos-common-table-borderless td {
    border-bottom: none;
}

.pos-common-table-borderless tbody tr:hover {
    background: transparent;
}

/* Striped Table */
.pos-common-table-striped tbody tr:nth-child(even) {
    background: #f8fafc;
}








/* Compact Table (less padding) */
.pos-common-table-compact th,
.pos-common-table-compact td {
    padding: 8px 6px !important;
}

/* Responsive Table */
@media (max-width: 768px) {
    .pos-common-table-wrapper,
    .pos-common-table-wrapper-fixed {
        border-radius: 8px;
    }
    
    .pos-common-table th,
    .pos-common-table td {
        padding: 8px 6px !important;
        font-size: 0.7rem;
    }
    
    .pos-table-delete-btn,
    .pos-table-edit-btn {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
}