.smitacs-pos-card {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  margin: 16px 0;
}

/* Flex wrapper */
.smitacs-pos-flex {
  display: flex;
  gap: 16px;
  flex-wrap: wrap; /* biar otomatis turun kalau sempit */
}

.smitacs-pos-col {
  flex: 0 0 100%; /* 🔥 INI KUNCI */
  max-width: 100%; /* batas minimal lebar kolom */
}

/* Table */
#pa-cart {
  width: 100%;
  border-collapse: collapse;
}

#pa-cart td,
#pa-cart th {
  text-align: left;
  padding: 8px;
}

/* Tambahan agar tabel tidak pecah di layar kecil */
#pa-cart {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* Responsive breakpoint */
@media (max-width: 768px) {
  .smitacs-pos-flex {
    flex-direction: column; /* ubah jadi vertikal di HP */
  }

  .smitacs-pos-col {
    width: 100%;
  }

  .smitacs-pos-card {
    padding: 12px;
    margin: 12px 0;
  }
}

/* Lebar khusus kolom qty & harga */
#pa-cart td:nth-child(3), /* Qty */
#pa-cart td:nth-child(4) { /* Harga */
    width: 80px;
    text-align: center;
}

/* Input qty & harga biar muat */
#pa-cart input[type="number"],
#pa-cart input[type="text"] {
    width: 60px;
    text-align: right;
    padding: 4px;
    font-size: 13px;
}

/* Tombol hapus kecil */
#pa-cart .btn-delete {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}
#pa-cart .btn-delete:hover {
    background: #c0392b;
}

/* Mobile: rapikan card style */
@media (max-width: 600px) {
    #pa-cart .btn-delete {
        display: inline-block;
        margin-top: 4px;
    }
}

/* =========================
PEMBUKUAN TAB ONLY
========================= */

.smitacs-pos-tab-buttons button{
border:1px solid #ddd;
background:#f7f7f7;
cursor:pointer;
padding:8px 16px;
margin-right:6px;
border-radius:8px 8px 0 0;
font-weight:600;
}

.smitacs-pos-tab-buttons button.active{
background:#0073aa;
color:#fff;
border-color:#0073aa;
}

.smitacs-pos-tabs .pas-tab-content{
display:none !important;
}

.smitacs-pos-tabs .pas-tab-content.active{
display:block !important;
}