/* ========== poss.css ========== */

* { box-sizing: border-box; }

body {
    background: #f0f2f5;
    font-family: 'Segoe UI', sans-serif;
}


/* ===== মেইন কন্টেইনার ===== */
.container {
    max-width: 100%;
    padding: 20px 24px;
}

.container h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    margin-bottom: 16px;
}

/* ===== দুই কলাম লেআউট ===== */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
}

/* ===== কার্ড ===== */
.pos-card {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    padding: 16px;
    margin-bottom: 14px;
}

/* ===== লেবেল ===== */
label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
    display: block;
}

/* ===== ইনপুট ===== */
.form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 13px;
    color: #2d3748;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.10);
    background: #fff;
}

.form-control[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: default;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236c757d' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #f8fafc;
    padding-right: 32px;
}

/* ===== স্ক্যান গ্রুপ ===== */
.input-group .form-control {
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.input-group-append .btn-success {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.input-group-append .btn-success:hover { opacity: 0.88; }

/* ===== প্রোডাক্ট সার্চ ===== */
.product-search { position: relative; }

.product-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.product-suggestion {
    padding: 9px 13px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    transition: background 0.15s;
}

.product-suggestion:hover { background: #f0f4ff; }
.product-suggestion:last-child { border-bottom: none; }

/* ===== প্রোডাক্ট টেবিল ===== */
#productList {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 10px;
}

#productList thead th {
    background: #1a1a2e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 12px;
    border: none;
    white-space: nowrap;
}

#productList tbody tr:hover { background: #f8faff; }

#productList tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #2d3748;
    vertical-align: middle;
}

#productList tbody td input[type="number"] {
    width: 70px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 12px;
    text-align: center;
    background: #f8fafc;
    outline: none;
}

#productList tbody td input[type="number"]:focus {
    border-color: #0d6efd;
    background: #fff;
}

/* ===== রিমুভ বাটন ===== */
.btn-danger {
    background: #fff0f0 !important;
    color: #dc3545 !important;
    border: 1.5px solid #ffcccc !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
}

.btn-danger:hover {
    background: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

/* ===== সামারি ইনপুট কালার ===== */
#grand_total,
#final_amount {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
    font-weight: 700;
    font-size: 14px;
}

#collected_one {
    background: #d1fae5 !important;
    border-color: #6ee7b7 !important;
    color: #065f46 !important;
    font-weight: 700;
    font-size: 14px;
}

#collected_one:focus {
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15) !important;
}

#change {
    background: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #92400e !important;
    font-weight: 700;
}

#discount {
    background: #fff5f5 !important;
    border-color: #fca5a5 !important;
}

/* ===== কমপ্লিট বাটন ===== */
.btn-success.btn-lg {
    width: 100%;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #10b981, #0d6efd) !important;
    color: #fff !important;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(13,110,253,0.22);
    margin-top: 10px;
}

.btn-success.btn-lg:hover {
    opacity: 0.90;
    transform: translateY(-1px);
}

/* ===== রেসপন্সিভ ===== */
@media (max-width: 900px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
}