/* Shared phone layout for customer, kitchen and administrator workflows. */
.mobile-app { -webkit-text-size-adjust:100%; }
.mobile-app .customer-header { padding-top:calc(20px + env(safe-area-inset-top,0px)); }
.mobile-app .customer-header .brand-icon { object-fit:cover; }
.mobile-app .customer-bottom-nav { gap:0; }
.mobile-app .customer-nav-item { font-size:.7rem; }
.mobile-app .customer-content { padding-top:8px; }
.mobile-app .page-heading { margin:24px 0 20px; }
.mobile-app .page-heading h1 { font-size:1.8rem; line-height:1.15; }
.mobile-app .page-heading p:not(.eyebrow) { color:var(--muted); font-size:.9rem; line-height:1.65; margin-top:12px; }
.mobile-app .page-heading>.btn,.mobile-app .page-heading>form { width:100%; }
.mobile-app .panel { box-shadow:var(--shadow); }
.mobile-app .panel h2 { font-size:1.15rem; line-height:1.4; }
.mobile-app .panel p { font-size:.9rem; }
.mobile-app .columns,.mobile-app .form-grid,.mobile-app .edit-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
.mobile-app .columns>.panel { margin-bottom:8px; }
.mobile-app .columns { margin-bottom:20px; }
.mobile-app .filter-bar { grid-template-columns:minmax(0,1fr); }
.mobile-app .field { min-width:0; }
.mobile-app input,.mobile-app select,.mobile-app textarea { min-width:0; max-width:100%; }
.mobile-app input[type=file] { font-size:.85rem; padding:10px; }
.mobile-app input[type=checkbox] { flex-shrink:0; }
.mobile-app .check { min-height:44px; }
.mobile-app form>.btn,.mobile-app .mobile-signout .btn { width:100%; }
.mobile-app .inline-form { display:grid; grid-template-columns:minmax(0,1fr); }
.mobile-app .inline-form .field { width:100%; min-width:0; }
.mobile-app details { padding:16px; border-radius:16px; background:var(--surface); min-width:0; margin:12px 0; }
.mobile-app summary { min-height:44px; line-height:1.55; padding:8px 0; font-size:.9rem; }
.mobile-app details[open] { border-color:var(--border); box-shadow:var(--shadow); }
.mobile-app details[open]>summary { padding-bottom:14px; border-bottom:1px solid var(--border); }
.mobile-app .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:20px 0; }
.mobile-app .metric { min-width:0; border-radius:var(--radius-card); padding:17px 14px; background:var(--surface); }
.mobile-app .metric span { font-size:.75rem; line-height:1.4; }
.mobile-app .metric strong { font-size:1.35rem; line-height:1.3; overflow-wrap:anywhere; }
.mobile-app .metric:nth-child(4n+1) { border-top:3px solid var(--primary); }
.mobile-app .metric:nth-child(4n+2) { border-top:3px solid var(--accent); }
.mobile-app .sales-chart>div { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px 0; border-bottom:1px solid var(--border); }
.mobile-app .sales-chart meter { grid-column:1/-1; grid-row:2; width:100%; }
.mobile-app .sales-chart strong { text-align:right; min-width:0; }
.mobile-app .sales-chart label { min-width:0; }
.mobile-app .mobile-signout { margin:24px 0; }
.mobile-app .customer-footer { line-height:1.7; }
.mobile-app [id] { scroll-margin-top:20px; }
.mobile-app .pagination-row a { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
/* Keep table headers for assistive technology while presenting each row as a card. */
.mobile-app .mobile-records { display:block; width:100%; }
.mobile-app .mobile-records thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.mobile-app .mobile-records tbody { display:block; }
.mobile-app .mobile-records tbody tr { display:block; border:1px solid var(--border); border-radius:16px; margin:0 0 14px; padding:8px 15px; background:var(--surface); }
.mobile-app .mobile-records td { display:block; min-width:0; width:100%; padding:11px 0; font-size:.88rem; overflow-wrap:anywhere; border-bottom:1px solid var(--border); box-shadow:none; background:transparent; }
.mobile-app .mobile-records td:last-child { border-bottom:0; }
.mobile-cell-label { display:block; font-size:.65rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.mobile-app .table-responsive:has(.mobile-records) { border:0; border-radius:0; overflow:visible; }
@media(max-width:360px) {
    .mobile-app .customer-header .brand strong { font-size:.8rem; }
    .mobile-app .customer-header { gap:6px; }
    .mobile-app .customer-avatar { width:34px; height:44px; }
    .mobile-app .customer-nav-item { font-size:.65rem; }
    .mobile-app .panel { padding:16px; }
    .mobile-app .page-heading h1 { font-size:1.6rem; }
}
@media(prefers-reduced-motion:no-preference) {
    .mobile-app .btn,.mobile-app .customer-action-card { transition:background-color .15s ease,box-shadow .15s ease; }
}

.mobile-app .panel .page-heading { padding:0; margin:0 0 16px; }
.mobile-app .customer-avatar { min-width:44px; min-height:44px; }
