/* ============================================================
   PHOEBE CRM: ghi de chung cho dien thoai (<= 768px).
   Nap SAU CUNG trong dashboard.html. Chi nam trong @media, desktop khong doi.
   ============================================================ */
@media (max-width: 768px) {

    /* O nhap >= 16px: iPhone khong tu phong to khi cham vao o.
       !important chi dung cho font-size, de thang style module tu nhung (#section-x .lop). */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    select,
    textarea,
    [contenteditable="true"] {
        font-size: 16px !important;
    }

    /* Nut nho dung chung: vung cham >= 44px */
    .btn-sm,
    body #section-messages .pm-sm,
    body .pm-modal .pm-sm {
        min-height: 44px;
        padding: 0 14px;
        font-size: 13px;
    }

    /* Drawer: nut Dang xuat >= 44px, chua vung an toan duoi */
    .btn-logout { min-height: 44px; }
    .sidebar-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }

    /* Tab gach chan: xuong dong thay vi cuon ngang khong co dau hieu.
       Tien to body de thang style module chen vao <head> luc chay (nap sau file nay). */
    .ph-tabs,
    body .phr-tabs,
    body #section-orders .so-tabs,
    body #section-messages .pm-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        row-gap: 0;
    }
    .ph-tab,
    body #section-messages .pm-tab { min-height: 44px; }
}

/* Chuong thong bao trong ngan menu (ban "Desktop" cua notify.js) cung du 44px tren dien thoai. */
@media (max-width: 768px) {
    body .pn-bell { width: 44px; height: 44px; }
}
