/* ============================================================
   POS — STRUCTURE & LAYOUT
   Controls sizing, spacing, positioning, overflow.
   Does NOT define colors, backgrounds, or shadows.
   Load order: pos.css → pos_theme.css → pos_mobile.css
   ============================================================ */

/* ── Reset & Base ── */
body {
    margin: 0;
    padding: 0;
    font-family: arial;
}

/* ── Page Shell ── */
#content {
    width: 100%;
    height: 97.5vh;
    vertical-align: top;
    overflow-y: hidden;
}

#_tabContent {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

/* ── Column Widths ── */
#_tabContentL {
    width: 300px;
    vertical-align: top;
}
#_tabContentR {
    width: 300px;
    vertical-align: top;
}
#_tabContentT,
#_tabContentB {
    width: 100%;
    vertical-align: top;
}
#_tabContentC {
    vertical-align: top;
    border-left: 1px solid;
    border-right: 1px solid;
}

/* ── Section Headers ── */
._hedAtas {
    position: relative;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    padding: 5px;
    border-bottom: 1px solid;
}

/* ── Shared: Floated Card Buttons (meja, menu items) ── */
._iconMeja,
._iconMenu {
    float: left;
    border: 1px solid;
    margin-right: 10px;
    margin-bottom: 10px;
    vertical-align: center;
    font-weight: bold;
    font-size: 15px;
    border-radius: 8px;
}
._iconMeja {
    width: 110px;
    height: 50px;
    padding: 10px;
    margin-left: 10px;
}
._iconMenu {
    text-align: center;
    width: 180px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* ── Shared: Nav/Filter Buttons (lantai, kat, skat) ── */
._iconLantai,
._iconKat,
._iconSKat {
    padding: 5px;
    float: left;
    border: 1px solid;
    margin-right: 10px;
    margin-bottom: 10px;
    vertical-align: center;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
}

/* ── Shared: Action Buttons (approve, pindah, reset, show print) ── */
._btnAccept,
._btnReset,
._btnPindah,
._btnShowPrint {
    padding: 5px;
    border: 1px solid;
    margin-right: 10px;
    margin-bottom: 10px;
    vertical-align: center;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
}

/* ── Print Buttons ── */
._btnPrint {
    padding: 5px;
    border: 1px solid;
    margin-right: 3px;
    margin-bottom: 10px;
    vertical-align: center;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
}

/* ── Back Buttons ── */
._back {
    float: left;
    border: 1px solid;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}
._back2 {
    float: left;
    border: 1px solid;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* ── Utility/Misc Buttons ── */
._to {
    border: 1px solid;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
}
._bayar {
    border: 1px solid;
    font-size: 16px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    font-weight: bold;
}

/* ── Category / Filter Areas ── */
._dataKat {
    text-align: center;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

/* ── Shared: Data Panel Tables (mejaDet, SKat, MenuDet) ── */
._dataMejaDet,
._dataSKat,
._dataMenuDet {
    float: none;
    width: 95%;
    border-radius: 8px;
}
._dataMejaDet {
    margin-top: -10px;
    margin-left: 5px;
}
._dataSKat {
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 5px;
    border-radius: 8px;
}
._dataMenuDet {
    margin-top: -10px;
    margin-left: 20px;
}
._dataMenuDet tr td {
    padding: 5px;
    padding-left: 20px;
}
._dataMejaDetHed td {
    border-radius: 8px 8px 0 0;
}

/* ── Menu Item Scroll Area ── */
._dataMenuItem {
    height: 67.5vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ── Petugas (Staff) Selector ── */
._petugas {
    font-size: 14px;
    float: right;
}
._petugasSelect {
    border: 1px solid;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
}

/* ── Search Input ── */
._menuSearch,
._pembeli {
    width: 90%;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}
._clearSearch {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 40px;
}

/* ── Menu Item Card internals ── */
._menuItemImg {
    width: 150px;
    height: 150px;
}
._menuItemName {
    height: 60px;
    padding-top: 10px;
}
._menuItemPrice {
    margin-bottom: 10px;
    font-weight: bold;
}
._menuItemNote, ._menuItemTambahan {
    margin-top: 3px;
}
._menuItemNoteSelect {
    width: 90%;
}
._menuItemKet {
    margin-top: 1px;
}
._menuItemKetArea {
    width: 90%;
    height: 50px;
}
._menuItemTambah {
    margin-top: 10px;
}

/* ── Qty Controls ── */
._btnPlusMin {
    width: 30px;
    height: 30px;
}
._qtyItem {
    width: 30px;
    height: 30px;
    text-align: center;
}
/* Chrome, Edge, Safari */
._qtyItem::-webkit-outer-spin-button,
._qtyItem::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
._qtyItem[type=number] {
    -moz-appearance: textfield;
}
._btnTambah {
    width: 70px;
    height: 30px;
}

/* ── Bill Panel ── */
._dataBill {
    padding: 10px;
    padding-top: 20px;
    text-align: center;
}
#_hedBill {
    text-align: center;
    padding: 5px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}
#_detBill {
    text-align: left;
    padding: 10px;
    padding-top: 20px;
    height: 400px;
    overflow: auto;
    font-size: 14px;
}

/* ── Bill Item Layout ── */
._divItem0 {
    border-bottom: 1px dashed;
    margin-bottom: 10px;
}
._divItem {
    margin-bottom: 10px;
}
._divItem3 {
    margin-top: -17px;
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
}
._notApp,
._orderFinish {
    font-weight: bold;
}

/* ── Bill Totals Table ── */
._tabTotal {
    width: 100%;
    border-top: 1px solid;
    border-radius: 0 0 8px 8px;
}
._tabTotal tr td {
    padding-left: 10px;
    font-size: 15px;
    border-bottom: 1px solid;
    font-weight: bold;
}
._txtTot {
    width: 150px;
    height: 30px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding-right: 10px;
}

/* ── Modal Overlay ── */
#_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
}

/* ── Meja Picker Select ── */
#_pilihMeja {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid;
    border-radius: 4px;
    margin-bottom: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
#_pilihMeja::-ms-expand {
    display: none;
}
#_pilihMeja optgroup {
    font-weight: bold;
    font-style: italic;
}

/* ── jQuery UI Dialog ── */
.ui-dialog {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 20px;
    padding-top: 0;
    border-radius: 8px;
    z-index: 9999 !important;
}
.ui-dialog-buttonpane button {
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
    margin-top: 5px;
}
