/* LN Hotels ERP — phone / tablet layer.  One shared stylesheet for the dashboard and the stand-alone pages (Users, Roles, Activity, Appearance ...).
   It only adds rules inside media queries (and a few harmless global ones); a laptop or desktop screen looks exactly as before.
   Colours always come from the theme variables, so every theme (and dark mode) works on every screen size. */

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg,video,canvas{max-width:100%}
.m-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.m-scroll>table{margin:0}
/* a two-column grid never stretches past its box because of a wide table inside one column (the table scrolls instead) */
.ac-split>*,.pr-repgrid>*,.sb-docs>*{min-width:0}
.m-scroll.m-hint{background:linear-gradient(to right,var(--surface,#fff) 30%,transparent),linear-gradient(to left,var(--surface,#fff) 30%,transparent) 100% 0,radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.18),transparent),radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.18),transparent) 100% 0;background-repeat:no-repeat;background-size:36px 100%,36px 100%,12px 100%,12px 100%;background-attachment:local,local,scroll,scroll}

/* the phone header, drawer, search sheet, profile menu, bottom bar and offline notice exist only on small screens */
.mobile-nav,.m-scrim,.m-bottom,.m-sheet,.m-pop,.m-offline,.m-filt{display:none}
.m-offline{position:fixed;left:0;right:0;top:0;z-index:60;background:var(--color-danger);color:var(--color-on-primary);font-size:13.5px;font-weight:600;padding:calc(7px + env(safe-area-inset-top,0px)) 14px 7px;text-align:center}
.m-offline.on{display:block}
.m-offline.back{background:var(--color-success)}
.m-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media (max-width:860px){
  :root{--m-head:56px;--m-bottom:60px;--m-gut:14px}
  body{min-width:0;overflow-x:hidden}
  body.m-lock{overflow:hidden}
  .app{display:block;min-height:0}

  /* ---- header ---- */
  .mobile-nav{display:block;position:sticky;top:0;z-index:30;background:var(--surface);border-bottom:1px solid var(--line);padding:env(safe-area-inset-top,0px) max(8px,env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px))}
  .mobile-nav .m-row{display:flex;align-items:center;gap:4px;min-height:var(--m-head)}
  .m-ico{all:unset;box-sizing:border-box;cursor:pointer;width:44px;height:44px;flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;color:var(--ink);-webkit-tap-highlight-color:transparent}
  .m-ico:active{background:var(--surface-2)}
  .m-ico:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
  .m-ico[hidden]{display:none}
  .m-brand{display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0}
  .m-logo{flex:0 0 auto;width:30px;height:30px;border-radius:9px;background:var(--ink);color:var(--surface);font-weight:800;font-size:12px;display:inline-flex;align-items:center;justify-content:center;letter-spacing:.02em}
  .m-title{font-weight:750;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .m-hotel{flex:0 1 112px;min-width:0;width:112px;height:36px;min-height:36px!important;padding:0 24px 0 9px!important;font-size:13px!important;font-weight:650;border-radius:10px;border:1px solid var(--line);background-color:var(--surface-2)}
  .m-av{background:var(--ink);color:var(--surface);font-weight:750;font-size:14px;width:36px;height:36px;flex:0 0 36px;border-radius:50%;margin-left:2px}
  .m-av:active{background:var(--ink);opacity:.85}

  /* ---- drawer: the existing side menu slides in over the page ---- */
  .side{display:flex!important;flex-direction:column;position:fixed;z-index:50;top:0;bottom:0;left:0;width:min(88vw,360px);max-width:100vw;height:100dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;transform:translateX(-102%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s;box-shadow:none;padding-top:max(14px,env(safe-area-inset-top,0px));padding-bottom:max(14px,env(safe-area-inset-bottom,0px));padding-left:max(14px,env(safe-area-inset-left,0px))}
  .side.m-open{transform:none;visibility:visible;transition:transform .22s ease,visibility 0s;box-shadow:6px 0 28px rgba(0,0,0,.35)}
  .side .brand .pair{display:inline-block;margin-right:6px}
  .side-foot{margin-top:auto}
  .m-scrim{position:fixed;inset:0;z-index:40;background:color-mix(in srgb,var(--tint-primary) 50%,transparent);opacity:0;transition:opacity .2s;display:block;pointer-events:none}
  .m-scrim[hidden]{display:none}
  .m-scrim.on{opacity:1;pointer-events:auto}
  nav.tabs button,nav.tabs .navsec{min-height:44px}
  nav.tabs .navtoggle{width:44px;height:44px}
  nav.tabs button{font-size:14px}
  nav.tabs .navkids button,nav.tabs .navparent button[data-tab],nav.tabs .navkids button{font-size:14px}
  nav.tabs .navsec,nav.tabs .navsec i{font-size:12.5px}
  nav.tabs .navkids button{padding:10px 12px}
  nav.tabs .navall{display:flex;gap:8px;margin:0 0 6px}
  nav.tabs .navall button{min-height:40px;flex:1}

  /* ---- search sheet ---- */
  .m-sheet{position:fixed;z-index:70;inset:0;background:var(--bg);flex-direction:column;padding:env(safe-area-inset-top,0px) 0 0}
  .m-sheet.on{display:flex}
  .m-sheet .m-sh-top{display:flex;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--surface)}
  .m-sheet input[type=search]{flex:1;min-width:0;height:46px;border-radius:12px;border:1px solid var(--line);background:var(--surface);padding:0 14px;font-size:16px;color:var(--ink)}
  .m-sheet .m-sh-x{all:unset;cursor:pointer;min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;font-weight:650;color:var(--muted)}
  .m-sheet .m-sh-res{flex:1;overflow-y:auto;padding:6px 8px calc(20px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}
  .m-sheet .m-sh-res button{all:unset;box-sizing:border-box;cursor:pointer;display:block;width:100%;padding:10px 12px;border-radius:12px;min-height:52px}
  .m-sheet .m-sh-res button:active,.m-sheet .m-sh-res button:focus-visible{background:var(--surface-2)}
  .m-sheet .m-sh-res button b{display:block;font-weight:650;font-size:15px}
  .m-sheet .m-sh-res button small{display:block;color:var(--muted);font-size:12.5px}
  .m-sheet .m-sh-res .m-sh-empty{padding:26px 14px;color:var(--muted);text-align:center}
  .m-sheet .m-sh-res .m-sh-h{padding:10px 12px 4px;font-size:11.5px;text-transform:none;letter-spacing:.06em;color:var(--muted);font-weight:700}

  /* ---- profile menu ---- */
  .m-pop{position:fixed;z-index:65;right:8px;top:calc(var(--m-head) + env(safe-area-inset-top,0px) - 2px);width:min(300px,calc(100vw - 16px));background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 36px rgba(0,0,0,.28);padding:10px;max-height:calc(100dvh - 90px);overflow-y:auto}
  .m-pop.on{display:block}
  .m-pop .m-who{padding:6px 8px 10px;border-bottom:1px solid var(--line);margin-bottom:6px}
  .m-pop .m-who b{display:block}
  .m-pop .m-who small{color:var(--muted)}
  .m-pop a,.m-pop button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;width:100%;min-height:44px;padding:0 10px;border-radius:10px;font-size:15px;color:var(--ink)}
  .m-pop a:active,.m-pop button:active,.m-pop a:focus-visible,.m-pop button:focus-visible{background:var(--surface-2)}
  .m-pop hr{border:0;border-top:1px solid var(--line);margin:6px 0}

  /* ---- page area ---- */
  main{padding:8px var(--m-gut) calc(var(--m-bottom) + 28px + env(safe-area-inset-bottom,0px));padding-left:max(var(--m-gut),env(safe-area-inset-left,0px));padding-right:max(var(--m-gut),env(safe-area-inset-right,0px))}
  .bar{position:static;margin-bottom:10px;padding:6px 0;gap:8px}
  .bar h2{font-size:20px}
  .bar>div:first-child{flex:1 1 100%;min-width:0}
  .bar .sub{overflow-wrap:anywhere}
  .m-filt{display:flex;flex:1 1 100%;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer;font-weight:650;font-size:14px;color:var(--ink)}
  .m-filt span{color:var(--muted);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;text-align:right}
  .bar .controls{display:none;flex:1 1 100%;flex-wrap:wrap;gap:8px;width:100%}
  .bar.m-fopen .controls{display:flex}
  .bar .controls>*{flex:1 1 140px;min-width:0}
  .bar .controls .seg{flex:1 1 100%;display:flex}
  .bar .controls .seg button{flex:1;min-height:44px}
  .bar .controls #fromD,.bar .controls #toD{flex:1 1 130px}
  .bar .controls #showP{flex:1 1 100%}
  /* the controls row is inside the sticky-less bar: keep dropdown pickers inside the screen */
  .panel,.card,.kpi,.prop-card{max-width:100%}
  #view{min-width:0}
  #view>*{max-width:100%}
  .g4,.g3,.g2,.prop-cards{grid-template-columns:minmax(0,1fr)}
  /* key figures: two compact cards per row when the screen is wide enough, one per row on the narrowest phones */
  @media (min-width:360px){.g4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.g4 .kpi{padding:12px 12px 10px}.g4 .kpi .val{font-size:clamp(19px,6.2vw,26px);overflow-wrap:anywhere}.g4 .kpi .lbl,.g4 .kpi .sub{overflow-wrap:anywhere}.g4 .kpi .legend{flex-wrap:wrap;gap:2px 8px}}
  .grid>*,.g2>*,.g3>*,.g4>*{min-width:0}
  .panel{padding:12px}
  .panel h3{font-size:15px}
  pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
  #view [style*="min-width:2"],#view [style*="min-width:3"],#view [style*="min-width:4"]{min-width:0!important}


  /* grids that were written with a fixed minimum column width (200-300px) are one column on a phone, so they can never be wider than the screen */
  .ac-split,.ac-tiles,.bqpicks,.sb-docs,.tl-form,.stk-form,.pr-repgrid{grid-template-columns:minmax(0,1fr)!important}
  .ac-split>*,.pr-repgrid>*,.sb-docs>*{min-width:0}
  #mtabs{display:none!important}   /* the old row of section pills is replaced by the drawer menu */

  /* ---- bottom quick bar: every category the person may open, not just a handful — it scrolls sideways instead of hiding the rest behind "More" ---- */
  .m-bottom{display:flex;position:fixed;z-index:60;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:4px max(6px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));min-height:var(--m-bottom);overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  .m-bottom button{all:unset;box-sizing:border-box;cursor:pointer;flex:1 1 0;min-width:0;width:auto;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10.5px;font-weight:600;color:var(--muted);border-radius:10px;padding:2px;-webkit-tap-highlight-color:transparent;scroll-snap-align:start}
  .m-bottom button svg{width:21px;height:21px;flex:0 0 auto}
  .m-bottom button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .m-bottom button[aria-current=page],.m-bottom button.m-open{color:var(--pn,var(--ink))}
  .m-bottom button[aria-current=page] span,.m-bottom button.m-open span{font-weight:800}
  .m-bottom button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
  body.m-kb .m-bottom{display:none}
  body.m-kb main{padding-bottom:40vh}
  /* the category sheet a bottom-bar icon opens: just that category's own screens (grouped the same way the left menu groups them), not the whole left menu */
  .m-cat-sheet{position:fixed;z-index:61;left:0;right:0;bottom:var(--m-bottom,60px);max-height:calc(72vh - var(--m-bottom,60px));background:var(--surface);border-radius:16px 16px 0 0;box-shadow:0 -6px 24px rgba(0,0,0,.18);transform:translateY(110%);transition:transform .22s ease;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom,0px)}
  .m-cat-sheet.on{transform:translateY(0)}
  .m-cat-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px;border-bottom:1px solid var(--line)}
  .m-cat-top h3{margin:0;font-size:15px}
  .m-cat-x{all:unset;cursor:pointer;color:var(--muted);font-size:13px;font-weight:600;padding:4px 8px}
  .m-cat-body{overflow-y:auto;padding:6px 8px 16px}
  .m-cat-glabel{padding:10px 8px 4px;font-size:10.5px;font-weight:700;text-transform:none;letter-spacing:.06em;color:var(--muted)}
  .m-cat-item{all:unset;box-sizing:border-box;display:block;width:100%;cursor:pointer;padding:11px 10px;border-radius:9px;font-size:14px;color:var(--ink);-webkit-tap-highlight-color:transparent}
  .m-cat-item:hover,.m-cat-item:focus-visible{background:var(--surface-2)}
  .m-cat-item[aria-current=page]{background:var(--pn-soft,var(--surface-2));font-weight:700;color:var(--pn,var(--ink))}
  .toast{bottom:calc(var(--m-bottom) + 12px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100vw - 24px)}

  /* ---- controls: big enough for a thumb; 16px text stops iOS from zooming the page when a field is focused ---- */
  main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),main select,main textarea,dialog input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),dialog select,dialog textarea{font-size:16px!important;min-height:44px;max-width:100%}
  main textarea,dialog textarea{min-height:88px}
  main button,main .btn,dialog button,dialog .btn,main [role=button]{min-height:44px;min-width:44px}
  main input[type=checkbox],main input[type=radio],dialog input[type=checkbox],dialog input[type=radio]{width:22px;height:22px;min-height:0;min-width:0;flex:0 0 auto}
  main label:has(>input[type=checkbox]),main label:has(>input[type=radio]),dialog label:has(>input[type=checkbox]),dialog label:has(>input[type=radio]){min-height:44px;display:flex;align-items:center;gap:8px}
  main label,dialog label{max-width:100%}
  main label>select,main label>input:not([type=checkbox]):not([type=radio]),main label>textarea{width:100%}
  main .seg{max-width:100%;overflow-x:auto}
  main .seg button{min-height:40px;flex:0 0 auto}
  main .subtabs,main .sheettabs{-webkit-overflow-scrolling:touch}
  main .subtabs button,main .sheettabs button{min-height:44px;flex:0 0 auto}
  .rform,.fin-form,.gst-top,.ac-form,.ac-bar,.ac-row.wrap{grid-template-columns:minmax(0,1fr)!important}
  .ac-form,.rform{display:grid;gap:10px}
  .gst-top,.ac-bar{flex-direction:column;align-items:stretch}
  .gst-top label,.ac-bar>*{width:100%}
  .finrow{grid-template-columns:minmax(0,1fr) 120px}
  .span2{grid-column:auto!important}
  .xinner{max-width:100%}
  /* the DD-MM-YYYY date box: the text field takes the room that is left, so all ten characters show */
  .ddmm{display:flex;width:100%;max-width:100%;min-width:0}
  main .ddmm-t,dialog .ddmm-t{flex:1 1 auto;width:auto!important;min-width:0;padding:6px 8px;font-size:16px!important;min-height:44px}
  main .ddmm-b,dialog .ddmm-b{flex:0 0 44px;min-height:44px}
  /* a row of buttons wraps instead of running off the screen */
  .row,.actions,.dsr-actions,.ac-row,.erp-links,.btnrow,.tools,.xio-bar{flex-wrap:wrap;gap:8px}
  .xio-bar .btn{flex:1 1 140px}

  /* ---- dialogs become full-height sheets ---- */
  dialog{max-width:100vw!important;width:100vw!important;max-height:100dvh!important;height:auto;margin:auto 0 0 0!important;border-radius:16px 16px 0 0!important;padding:14px 14px calc(14px + env(safe-area-inset-bottom,0px))!important;overflow:auto;position:fixed;bottom:0;top:auto;left:0;right:0;inset-inline:0}
  dialog[open]{display:block}
  dialog.m-full,dialog:has(table),dialog:has(form),dialog:has(textarea){height:100dvh;max-height:100dvh!important;border-radius:0!important;top:0}
  dialog h2,dialog h3{font-size:18px}
  dialog .actions,dialog .row:last-child,dialog menu{position:sticky;bottom:calc(-14px - env(safe-area-inset-bottom,0px));background:var(--surface);padding:10px 0 4px;z-index:2}

  .m-jump{display:flex;flex-direction:column;gap:4px;margin:6px 0 10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);position:sticky;top:var(--m-headh,calc(var(--m-head) + env(safe-area-inset-top,0px)));z-index:5}
  .m-jump label{font-size:12px;color:var(--muted);font-weight:600}
  .m-jump select{width:100%}
  tr.dsr-sec{scroll-margin-top:calc(var(--m-headh,60px) + 84px)}
  /* ---- tables ---- */
  .tbl-wrap,.ac-tw{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
  table{max-width:none}
  .tbl-wrap table,.ac-tw table{min-width:100%}
  td,th{overflow-wrap:anywhere}
  td.n,th.n{white-space:nowrap}
  .pager{flex-wrap:wrap;gap:8px}
  .pager button{min-height:44px}
  .m-sortbar{display:flex;gap:8px;align-items:center;margin:4px 0 8px}
  .m-sortbar select{flex:1;min-width:0}
  .m-sortbar button{flex:0 0 auto}
}

/* ---- phones: a table that does not fit becomes a stack of record cards (the full data stays; "Details" opens the rest) ---- */
@media (max-width:600px){
  table.m-card{display:block;width:100%!important;min-width:0!important;border:0}
  table.m-card thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  table.m-card tbody,table.m-card tfoot{display:block}
  table.m-card tr{display:block;position:relative;margin:0 0 10px;padding:8px 12px 6px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
  table.m-card tr.m-hasx{padding-bottom:36px;cursor:pointer}
  table.m-card td,table.m-card th{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border:0!important;padding:5px 0!important;text-align:right!important;white-space:normal;min-height:0;background:transparent!important}
  table.m-card td::before,table.m-card th[scope=row]::before{content:attr(data-label);flex:0 0 38%;max-width:50%;text-align:left;font-size:12px;color:var(--muted);font-weight:600;overflow-wrap:anywhere}
  table.m-card td>*{max-width:100%}
  table.m-card td:first-child,table.m-card th:first-child{display:block;text-align:left!important;font-weight:750;font-size:15px;padding-bottom:6px!important;border-bottom:1px solid var(--line)!important;margin-bottom:2px}
  table.m-card td:first-child::before{display:none}
  table.m-card td:empty{display:none}
  table.m-card td.m-x{display:none}
  table.m-card tr.m-open td.m-x{display:flex}
  table.m-card tr.m-hasx::after{content:"Details \25BE";position:absolute;left:12px;right:12px;bottom:6px;font-size:12.5px;font-weight:650;color:var(--pn,var(--ink));text-align:left}
  table.m-card tr.m-hasx.m-open::after{content:"Hide details \25B4"}
  table.m-card td.m-act{justify-content:flex-start;flex-wrap:wrap;gap:8px}
  table.m-card td.m-act::before{display:none}
  table.m-card td[colspan]{display:block;text-align:left!important}
  table.m-card td[colspan]::before{display:none}
  table.m-card tfoot tr{background:var(--surface-2)}
  table.m-card td.bar-cell i{display:none}
  table.m-card input,table.m-card select{max-width:60%}
}

@media (max-width:430px){.m-hotel{flex-basis:88px;width:88px;font-size:12.5px!important;padding:0 20px 0 7px!important}.m-title{font-size:15px}.mobile-nav .m-row{gap:2px}.m-ico{width:40px;flex-basis:40px}.m-av{width:36px;flex-basis:36px}}
/* keyboard / tiny phones */
@media (max-width:360px){
  :root{--m-gut:10px}
  .m-hotel{flex-basis:92px;width:92px}
  .m-title{font-size:15px}
}
@media (max-width:860px) and (orientation:landscape) and (max-height:520px){
  .mobile-nav .m-row{min-height:48px}
  .m-bottom{display:none}
  main{padding-bottom:30px}
  .side{width:min(60vw,340px)}
  dialog{border-radius:0!important;height:100dvh}
}
@media (min-width:861px){
  .m-jump{display:none!important}
  .m-bottom,.m-sheet,.m-pop,.m-scrim,.m-filt{display:none!important}
}
@media (prefers-reduced-motion:reduce){.side,.m-scrim{transition:none!important}}
@media print{.mobile-nav,.m-bottom,.m-sheet,.m-pop,.m-scrim,.m-offline,.m-filt,.m-jump,.m-sortbar{display:none!important}}

/* ---- stand-alone pages (users, roles, activity, appearance ...) ---- */
@media (max-width:760px){
  body.admin-page,.wrap,.container{padding-left:12px;padding-right:12px}
  .card,.panel,section.card{max-width:100%;overflow-wrap:anywhere}
  .card table,.panel table{display:block;overflow-x:auto;max-width:100%}
  .toolbar,.filters,.row,.grid,.bar{flex-wrap:wrap}
  .grid{grid-template-columns:minmax(0,1fr)!important}
  input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px;min-height:44px;max-width:100%}
  button,.btn,a.btn{min-height:44px}
  label{max-width:100%}
  label>select,label>input:not([type=checkbox]):not([type=radio]){width:100%}
  .two,.three,.cols{grid-template-columns:minmax(0,1fr)!important}
  [style*="min-width:2"],[style*="min-width:3"],[style*="min-width:4"]{min-width:0!important}
  .card h2,.card h3{overflow-wrap:anywhere}
  .thgrid{grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr))}
  header{padding:10px 14px!important;gap:6px 10px!important}
  header nav{margin-left:0!important;flex:1 1 100%;gap:2px 4px}
  header nav a,header .who a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px}
  header .who{margin-left:0!important;flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:0 4px}
  .card input[type=color],.card input[type=text],.card input[type=number]{min-width:0}
  .crow{grid-template-columns:minmax(0,1fr) 52px minmax(80px,100px)!important}
}
/* link-style buttons inside tables and cards: a comfortable touch height without changing how they look */
@media (max-width:860px){
  .linkbtn{display:inline-flex;align-items:center;min-height:40px;min-width:40px}
  #view button,#view .btn{min-height:40px;min-width:40px}
  .gd-sort{min-height:40px}
  main td input[type=checkbox],main th input[type=checkbox],#view td input[type=checkbox],#view th input[type=checkbox]{width:36px!important;height:36px!important}
  header nav a,header .who a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px}
  tr.kbon>td,tr[tabindex]>td{padding-top:10px;padding-bottom:10px}
  main td a:not(.btn),main li a:not(.btn),main p a:not(.btn),#view td a:not(.btn){padding:9px 4px}
}

/* header: brand/title, search and profile only — the menu lives in the bottom bar */
@media (max-width:860px){#mMenu,#mHotel{display:none!important}}
