/* Clover device typography and touch geometry.
   Target viewports: Station 1920x1080, Mini 1280x800, Flex 720x1280. */
html.nsp-clover-device,
html.nsp-clover-device body {
  width:100%; min-width:0; max-width:100%; margin:0;
  color:#10283c; font-family:Arial,Roboto,"Helvetica Neue",sans-serif;
  font-size:16px; line-height:1.35; text-rendering:optimizeLegibility;
  -webkit-text-size-adjust:100%; overflow-x:hidden;
}
html.nsp-clover-device *,html.nsp-clover-device *:before,html.nsp-clover-device *:after { box-sizing:border-box; }
html.nsp-clover-device button,
html.nsp-clover-device input:not([type="checkbox"]):not([type="radio"]),
html.nsp-clover-device select,
html.nsp-clover-device textarea,
html.nsp-clover-device a.primary,
html.nsp-clover-device a.secondary {
  min-height:48px; font:inherit; line-height:1.2;
}
html.nsp-clover-device button,
html.nsp-clover-device a.primary,
html.nsp-clover-device a.secondary { font-weight:700; }
html.nsp-clover-device input,
html.nsp-clover-device select,
html.nsp-clover-device textarea { font-size:16px; }
html.nsp-clover-device label { font-size:14px; line-height:1.3; }
html.nsp-clover-device small,
html.nsp-clover-device .muted { font-size:13px; line-height:1.35; }
html.nsp-clover-device .eyebrow,
html.nsp-clover-device .module-page-title span,
html.nsp-clover-device .panel-head span { font-size:11px!important; line-height:1.25; letter-spacing:1.2px; }
html.nsp-clover-device h1 { font-size:30px; line-height:1.1; }
html.nsp-clover-device h2 { font-size:24px; line-height:1.12; }
html.nsp-clover-device h3 { font-size:19px; line-height:1.2; }
html.nsp-clover-device table { width:100%; font-size:14px; }
html.nsp-clover-device th,
html.nsp-clover-device td { min-height:44px; padding:10px 9px; line-height:1.3; }
html.nsp-clover-device .module-page-header { min-height:64px; padding:8px 10px; }
html.nsp-clover-device .module-page-menu,
html.nsp-clover-device .module-page-refresh { min-height:48px; }
html.nsp-clover-device .module-page-menu { width:48px; min-width:48px; font-size:26px; }
html.nsp-clover-device .module-page-title h2 { font-size:24px; }
html.nsp-clover-device .module-page-header p { font-size:13px; }
html.nsp-clover-device .sidebar nav button { min-height:48px; font-size:15px; }
html.nsp-clover-device .panel,
html.nsp-clover-device .card { min-width:0; }
html.nsp-clover-device img,
html.nsp-clover-device iframe { max-width:100%; }
html.nsp-clover-device body .feature-module button { min-height:48px!important; }

/* Station / Station Duo merchant display: use the large canvas without tiny text. */
html.nsp-clover-station .dash-main { padding:10px 14px; }
html.nsp-clover-station .module-page-header { min-height:66px; }
html.nsp-clover-station .module-page-title h2 { font-size:26px; }
html.nsp-clover-station .pos-board-tech strong { font-size:24px; }
html.nsp-clover-station .pos-board-ticket strong { font-size:18px; }

/* Mini: compact landscape layout with full-size touch controls. */
html.nsp-clover-mini,
html.nsp-clover-mini body { font-size:15px; }
html.nsp-clover-mini .dash-main { padding:7px 9px; }
html.nsp-clover-mini .module-page-header { min-height:58px; padding:5px 7px; gap:7px; }
html.nsp-clover-mini .module-page-title h2 { font-size:21px; }
html.nsp-clover-mini .module-page-header p { display:none; }
html.nsp-clover-mini .panel,
html.nsp-clover-mini .card { padding:10px; }
html.nsp-clover-mini .pos-board-tech strong { font-size:18px; }
html.nsp-clover-mini .pos-board-ticket strong { font-size:16px; }
html.nsp-clover-mini .owner-admin-tabs button,
html.nsp-clover-mini .manager-tabs button,
html.nsp-clover-mini .gcv2-tabs button,
html.nsp-clover-mini .pos-tabs button { min-height:48px!important; font-size:14px!important; }

/* Flex: portrait, thumb-friendly and scrollable; no horizontal clipping. */
html.nsp-clover-flex,
html.nsp-clover-flex body { font-size:16px; }
html.nsp-clover-flex .dashboard,
html.nsp-clover-flex .dash-main,
html.nsp-clover-flex .content,
html.nsp-clover-flex .feature-module { width:100%; min-width:0; max-width:100vw; }
html.nsp-clover-flex .dash-main { padding:5px; }
html.nsp-clover-flex .dashboard.menu-open>.sidebar { width:86vw!important; max-width:330px!important; }
html.nsp-clover-flex .sidebar nav button { min-height:52px; padding:9px 12px!important; font-size:16px!important; }
html.nsp-clover-flex button,
html.nsp-clover-flex input:not([type="checkbox"]):not([type="radio"]),
html.nsp-clover-flex select,
html.nsp-clover-flex textarea,
html.nsp-clover-flex a.primary,
html.nsp-clover-flex a.secondary { min-height:52px; }
html.nsp-clover-flex .module-page-header {
  min-height:58px; padding:5px; gap:6px;
  grid-template-columns:48px minmax(0,1fr) auto;
}
html.nsp-clover-flex .module-page-menu { width:48px; min-width:48px; min-height:48px; }
html.nsp-clover-flex .module-page-title h2 { max-width:100%; font-size:20px; white-space:normal; }
html.nsp-clover-flex .module-page-title span { font-size:10px!important; }
html.nsp-clover-flex .module-page-header p { display:none; }
html.nsp-clover-flex .module-page-refresh { min-width:84px; padding:6px 8px; font-size:13px; }
html.nsp-clover-flex .module-page-header[data-module-title="turn"] { grid-template-columns:minmax(0,1fr) auto; }
html.nsp-clover-flex .module-page-header[data-module-title="turn"] .module-page-menu-labeled {
  width:auto; min-width:0; min-height:52px; padding:0 12px; font-size:17px;
}
html.nsp-clover-flex .panel,
html.nsp-clover-flex .card { padding:9px; border-radius:9px; }
html.nsp-clover-flex .metric-grid,
html.nsp-clover-flex .owner-admin-cards,
html.nsp-clover-flex .gcv2-metrics { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:6px!important; }
html.nsp-clover-flex .owner-admin-tabs,
html.nsp-clover-flex .manager-tabs,
html.nsp-clover-flex .gcv2-tabs,
html.nsp-clover-flex .pos-tabs { overflow-x:auto; -webkit-overflow-scrolling:touch; }
html.nsp-clover-flex .owner-admin-tabs button,
html.nsp-clover-flex .manager-tabs button,
html.nsp-clover-flex .gcv2-tabs button,
html.nsp-clover-flex .pos-tabs button { flex:0 0 auto; min-width:112px; min-height:52px!important; font-size:14px!important; }
html.nsp-clover-flex .pos-board-commandbar { min-height:62px; gap:5px; padding:5px; }
html.nsp-clover-flex .pos-board-title h2 { font-size:20px; }
html.nsp-clover-flex .pos-board-search { min-width:0; }
html.nsp-clover-flex .pos-board-tech strong { font-size:17px; }
html.nsp-clover-flex .pos-board-ticket strong { font-size:16px; }
html.nsp-clover-flex .pos-board-section-title,
html.nsp-clover-flex .pos-board-technicians,
html.nsp-clover-flex .pos-board-queue { min-width:0; }
html.nsp-clover-flex .booking-dialog,
html.nsp-clover-flex dialog { width:calc(100vw - 12px)!important; max-width:calc(100vw - 12px)!important; max-height:calc(100vh - 12px)!important; }
html.nsp-clover-flex body .feature-module button { min-height:52px!important; }

@media (orientation:portrait) and (max-width:800px) {
  html.nsp-clover-device .ticket-draft-frame { height:calc(100vh - 70px); min-height:0; }
}
