/* iOS 12: keep content in its scroll pane and dialogs out of the page flow. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
dialog:not([open]){display:none}
dialog[open]{display:block;background:#fff;box-sizing:border-box;max-height:calc(var(--app-height,100vh) - 40px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(18,36,61,.4)}
.legacy-dialogs dialog.legacy-modal{position:fixed;top:calc(var(--app-height,100vh) * .5);left:50%;right:auto;bottom:auto;margin:0;transform:translate(-50%,-50%)}
.legacy-dialogs dialog:focus{outline:none}
.list-layout{flex:1 1 0%;height:0;grid-template-rows:minmax(0,1fr)}
.sidebar,.reading-pane{min-height:0;-webkit-overflow-scrolling:touch}
.wine>*,.wine-page-edit>*,.receipt-fields>*,.wine-toolbar>*,.stock-toolbar>*{min-width:0}
.wine h3,.korean,.grapes,.wine-note,.section-heading h2,#contents a,.wine-page-main,.wine-page-note{overflow-wrap:break-word;word-wrap:break-word}
.wine-book,.count-book{grid-template-rows:minmax(0,1fr)}
#wine-page-nav,.wine-paper,#count-nav,#count-list,.table-scroll,#count-mobile-links{min-height:0;-webkit-overflow-scrolling:touch}
.staff-workspace #wine-management-card{overflow:hidden}
.staff-workspace .receipt-fields input,.staff-workspace input[type=date],.staff-workspace input[type=month]{min-width:0;max-width:100%;box-sizing:border-box;-webkit-appearance:none;appearance:none}
.staff-workspace input::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
.staff-workspace #count-settings{width:calc(100% - 28px);max-width:540px}
.staff-workspace #count-nav-dialog{width:calc(100% - 28px);max-width:430px}
.staff-workspace #detail-dialog,.staff-workspace #wine-find-dialog,.staff-workspace #wine-create-dialog,.staff-workspace #wine-edit-dialog{max-height:calc(var(--app-height,100vh) - 40px)}
.staff-workspace .count-line form{justify-content:flex-end}
.wine-toolbar{align-items:flex-end}
.workspace-tabs{overflow-x:auto;flex-shrink:0;-webkit-overflow-scrolling:touch}
.workspace-tab{flex-shrink:0}
.no-flex-gap .actions> * + *, .no-flex-gap .header-actions> * + *, .no-flex-gap .photo-actions> * + *,
.no-flex-gap .pos-batch-actions> * + *, .no-flex-gap .pager-buttons> * + *, .no-flex-gap .count-line form> * + *{margin-left:8px}
.no-flex-gap .workspace-tabs> * + *, .no-flex-gap .sales-tabs> * + *{margin-left:20px}
.no-flex-gap .title-line> * + *{margin-left:12px}
.no-flex-gap .work-nav>.btn+.btn{margin-top:7px}
.no-flex-gap .pos-batch-fields> *{margin-right:10px!important;margin-bottom:8px!important}
.no-flex-gap .pos-batch-choice input,.no-flex-gap .check-label input{margin-right:7px!important}
@media(max-width:700px){
 .no-flex-gap .work-nav>.btn+.btn{margin-top:0}
 .no-flex-gap .photo-actions> * + *{margin-left:0;margin-top:6px}
 .staff-workspace dialog input:not([type=checkbox]),.staff-workspace dialog select,.staff-workspace dialog textarea{font-size:16px;min-width:0;max-width:100%}
 .staff-workspace .receipt-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .staff-workspace .history-search>div{min-width:0;max-width:100%}
 .staff-workspace .section-head{flex-wrap:wrap}
}
@media print{.list-layout{height:auto;display:block}.reading-pane,.sidebar{overflow:visible}}
