/* AMELIAPOS_R11D_UI4_CORRECTIVO_R1
   Scope: Android menu, dashboard presentation, mobile reporting, ingredient
   and product forms. Does not change payment, salon or ticket rendering. */
@media (max-width: 899px) {
  /* V10 owns Administration navigation. The previous toolbar button must
     remain available as a fallback only when V10 has not initialized. */
  html.asv10-ready body #managementOverlay .management-header-actions
    button:not(#ameliaUnifiedAdminMenuR1),
  html.asv10-ready body #managementOverlay .management-header-actions
    [role="button"]:not(#ameliaUnifiedAdminMenuR1) {
    display:none!important;visibility:hidden!important;pointer-events:none!important;
  }
  html.asv10-ready body #managementOverlay .management-header-actions {
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    min-width:55px!important;gap:0!important;
  }
  html.asv10-ready body #managementOverlay #ameliaUnifiedAdminMenuR1 {
    display:grid!important;flex:0 0 52px!important;min-width:52px!important;
    width:52px!important;height:52px!important;margin-left:auto!important;
  }
  /* The Dashboard remains focused on operating and financial activity.
     Detailed access logs are still kept by the audit service. */
  #managementDashboard .ui4-dashboard-activity-card {display:none!important;}
  #managementDashboard #dashboardRefresh {display:none!important;}
}

@media (max-width: 820px) {
  /* Reporting: full-width primary action, legible search, no clipped tabs. */
  html body #managementReports,
  html body #managementReports .management-module-head,
  html body #managementReports .report-admin-panel {
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  html body #managementReports .enterprise-reports-head .module-actions {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;max-width:100%!important;gap:8px!important;
  }
  html body #managementReports .enterprise-reports-head .module-actions > button {
    display:flex!important;justify-content:center!important;align-items:center!important;
    width:100%!important;max-width:none!important;min-width:0!important;
    min-height:46px!important;height:auto!important;padding:10px 8px!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
    line-height:1.25!important;text-align:center!important;font-size:13px!important;
  }
  html body #managementReports #reportsRefresh {
    grid-column:1/-1!important;grid-row:1!important;
    font-weight:850!important;
  }
  html body #managementReports .report-enterprise-filterbar {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    gap:9px!important;padding:12px!important;box-sizing:border-box!important;
    overflow:visible!important;
  }
  html body #managementReports .report-enterprise-filterbar > label,
  html body #managementReports .report-enterprise-filterbar .r8-primary-period,
  html body #managementReports .report-enterprise-filterbar .report-filter-search,
  html body #managementReports #r8ReportFiltersToggle {
    display:grid;grid-column:1/-1!important;min-width:0!important;width:100%!important;
    max-width:none!important;box-sizing:border-box!important;
  }
  html body #managementReports .report-enterprise-filterbar.r8-filter-ready:not(.r8-filters-expanded)
    > label:not(.r8-primary-period):not(.report-filter-search) {display:none!important;}
  html body #managementReports .report-enterprise-filterbar :is(input,select),
  html body #managementReports .r8-report-selector select {
    display:block!important;width:100%!important;max-width:100%!important;
    min-width:0!important;min-height:46px!important;box-sizing:border-box!important;
    font-size:16px!important;
  }
  html body #managementReports .r8-report-selector {
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  html body #managementReports :is(.enterprise-report-grid,.enterprise-kpis) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;min-width:0!important;
  }
  html body #managementReports :is(.enterprise-metric,.enterprise-kpis > *) {
    min-width:0!important;padding:13px!important;
  }
  html body #managementReports .report-admin-panel :is(table,.report-table) {
    max-width:100%;
  }
  html body #managementReports :is(.enterprise-report-table,.enterprise-table-wrap,.report-table-wrap) {
    max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;
  }

  /* Ingredient drawer: recipe-costing adds its block after the original
     footer. Scroll the entire form and keep the actions at the viewport edge.
     These rules do not move fields, listeners, or submit buttons in the DOM. */
  html body #managementCatalog #ingredientAdminForm.catalog-drawer:not(.hidden) {
    display:flex!important;flex-direction:column!important;
    position:fixed!important;inset:0!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:100dvh!important;max-height:100dvh!important;
    padding:0 0 calc(112px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;border:0!important;border-radius:0!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;box-sizing:border-box!important;
    background:#fff!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer > header:first-child {
    position:sticky!important;top:0!important;flex:0 0 auto!important;
    z-index:7!important;margin:0!important;width:100%!important;
    padding:14px 16px!important;background:#fff!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer > .catalog-drawer-section-title {
    flex:0 0 auto!important;margin:0!important;padding:14px 16px 7px!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer > .master-form-grid {
    flex:0 0 auto!important;min-height:0!important;height:auto!important;
    overflow:visible!important;padding:12px 16px 8px!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;
    grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
    align-content:start!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer > #r205t8IngredientCostPanel {
    flex:0 0 auto!important;order:10!important;min-width:0!important;
    width:calc(100% - 32px)!important;max-width:calc(100% - 32px)!important;
    margin:12px 16px 14px!important;padding:16px!important;
    box-sizing:border-box!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer > #r205t8IngredientCostPanel .r205t8-grid {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    min-width:0!important;gap:12px!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer :is(input,select,textarea) {
    max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer :is(input:not([type="checkbox"]),select) {
    min-height:48px!important;font-size:16px!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer > .catalog-drawer-footer {
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    position:fixed!important;inset:auto 0 0 0!important;order:999!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    min-height:76px!important;margin:0!important;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important;
    background:#fff!important;border-top:1px solid #dce5ec!important;
    box-shadow:0 -10px 28px rgba(12,36,52,.09)!important;z-index:15!important;
    gap:10px!important;box-sizing:border-box!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer > .catalog-drawer-footer > button {
    width:100%!important;max-width:100%!important;min-width:0!important;
    min-height:48px!important;white-space:normal!important;
    font-size:15px!important;line-height:1.15!important;overflow-wrap:anywhere!important;
  }
  /* Existing product editor retains its own proven scroll authority. */
  html body #managementCatalog #productAdminForm.r205p-product-drawer .amelia-product-scroll {
    min-width:0!important;scroll-padding-bottom:35px!important;
  }
  html body #managementCatalog #productAdminForm.r205p-product-drawer .amelia-product-section-content label {
    min-width:0!important;max-width:100%!important;gap:6px!important;
  }
  html body #managementCatalog #productAdminForm.r205p-product-drawer
    :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
    font-size:16px!important;
  }
}
@media (max-width: 359px) {
  html body #managementReports :is(.enterprise-report-grid,.enterprise-kpis) {
    grid-template-columns:minmax(0,1fr)!important;
  }
  html body #managementCatalog #ingredientAdminForm.catalog-drawer > #r205t8IngredientCostPanel .r205t8-grid {
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* UI5 R1 · VENTANAS RESTAURANTE · RESTYLE OVER APPROVED UI4
   Presentation only except native split numeric stepper with existing data-split-qty.
   Quick observations already supplied by installed POS remain owned by their source module. */
@media (max-width:767px){
 html body[data-business-mode="restaurant"] #lineOverlay,
 html body[data-business-mode="restaurant"] #ticketMenuOverlay,
 html body[data-business-mode="restaurant"] #splitOverlay{
   padding:0!important;place-items:stretch!important;align-items:end!important;
   background:rgba(5,22,39,.70)!important;overflow:hidden!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-dialog,
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .compact-menu,
 html body[data-business-mode="restaurant"] #splitOverlay .split-dialog{
   box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;
   height:auto!important;max-height:calc(100dvh - 14px)!important;
   margin:0!important;padding:22px 16px calc(24px + env(safe-area-inset-bottom,0px))!important;
   overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
   display:flex!important;flex-direction:column!important;gap:15px!important;
   background:#fff!important;border-radius:24px 24px 0 0!important;
   box-shadow:0 -14px 45px rgba(6,23,40,.19)!important;
 }
 html body[data-business-mode="restaurant"] :is(#lineOverlay,#ticketMenuOverlay,#splitOverlay) .dialog>header,
 html body[data-business-mode="restaurant"] #lineOverlay .config-titlebar{
   flex:0 0 auto!important;display:flex!important;align-items:flex-start!important;
   justify-content:space-between!important;gap:13px!important;
   margin:0!important;padding:1px 0 7px!important;border:0!important;
 }
 html body[data-business-mode="restaurant"] :is(#lineOverlay,#ticketMenuOverlay,#splitOverlay) .dialog>header h2{
   color:#0b223f!important;font-size:clamp(24px,7vw,32px)!important;line-height:1.12!important;
   letter-spacing:-.035em!important;margin:0 0 7px!important;font-weight:850!important;
 }
 html body[data-business-mode="restaurant"] :is(#lineOverlay,#ticketMenuOverlay,#splitOverlay) .dialog>header p{
   font-size:14px!important;color:#5b6c81!important;line-height:1.44!important;margin:0!important;
 }
 html body[data-business-mode="restaurant"] :is(#lineOverlay,#ticketMenuOverlay,#splitOverlay) .dialog>header .icon-btn{
   flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;
   font-size:28px!important;border:0!important;border-radius:14px!important;background:#f0f3f6!important;
   color:#0c2541!important;display:grid!important;place-items:center!important;
 }
 html body[data-business-mode="restaurant"] :is(#lineOverlay,#ticketMenuOverlay,#splitOverlay) button{
   touch-action:manipulation!important;-webkit-tap-highlight-color:transparent;
 }
 /* Line editor: original fields and submit handlers remain in place. */
 html body[data-business-mode="restaurant"] #lineOverlay .line-commandbar{
   display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;
   gap:10px!important;min-width:0!important;border:0!important;padding:0!important;background:transparent!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-commandbar>.line-command:first-child{
   grid-column:1!important;grid-row:1!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-commandbar>.toolbar-price{
   grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
   align-items:flex-end!important;justify-content:center!important;min-width:0!important;
   padding:12px!important;background:#f8fafc!important;border:1px solid #dce4eb!important;border-radius:14px!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-commandbar>.discount-command{
   grid-column:1/-1!important;grid-row:2!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-commandbar>.line-command{
   min-width:0!important;padding:13px!important;gap:8px!important;
   background:#fff!important;border:1px solid #dce4eb!important;border-radius:14px!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .config-kicker,
 html body[data-business-mode="restaurant"] #lineOverlay .toolbar-price>span{
   font-size:11px!important;font-weight:850!important;letter-spacing:.045em!important;
   text-transform:uppercase!important;color:#4f6279!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .toolbar-price strong{
   font-size:clamp(18px,5vw,25px)!important;line-height:1.15!important;color:#0a2341!important;white-space:nowrap!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .product-qty-stepper{
   width:100%!important;max-width:220px!important;height:48px!important;display:grid!important;
   grid-template-columns:1fr .8fr 1fr!important;border:1px solid #b9c8d8!important;
   border-radius:10px!important;overflow:hidden!important;background:#fff!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .product-qty-stepper button{
   min-width:0!important;min-height:46px!important;height:46px!important;background:#f0f4f8!important;
   border:0!important;color:#0b2541!important;font-size:29px!important;font-weight:750!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .product-qty-stepper strong{
   display:grid!important;place-items:center!important;min-width:0!important;font-size:23px!important;color:#0b2541!important;
   border-left:1px solid #dbe3ec!important;border-right:1px solid #dbe3ec!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .percent-discount-editor{
   width:100%!important;display:flex!important;height:48px!important;border:1px solid #bdcad7!important;
   border-radius:11px!important;overflow:hidden!important;background:#fff!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay #lineDiscount{
   min-width:0!important;flex:1!important;width:100%!important;min-height:46px!important;
   padding:9px 13px!important;border:0!important;font-size:21px!important;color:#0b2541!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .percent-discount-editor>span{
   display:grid!important;place-items:center!important;width:49px!important;min-width:49px!important;
   border-left:1px solid #dce4eb!important;background:#eef2f6!important;font-size:21px!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay #lineDiscountHint{
   color:#5b6e84!important;line-height:1.4!important;font-size:12px!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-options-layout{
   flex:0 0 auto!important;min-height:0!important;height:auto!important;max-height:none!important;
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
   overflow:visible!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-options-layout.hidden{display:none!important}
 html body[data-business-mode="restaurant"] #lineOverlay .line-options-layout>.config-panel{
   min-height:0!important;max-height:none!important;overflow:visible!important;
   border:1px solid #dce4eb!important;border-radius:15px!important;padding:13px!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-note{
   flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   padding:14px!important;gap:10px!important;margin:0!important;border:1px solid #dce4eb!important;
   border-radius:15px!important;background:#fff!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-note>span{
   text-transform:uppercase!important;font-size:12px!important;font-weight:850!important;letter-spacing:.04em!important;
   color:#304760!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-note small{
   font-weight:500!important;letter-spacing:0!important;text-transform:none!important;color:#677a8d!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay #lineNote{
   box-sizing:border-box!important;width:100%!important;min-height:78px!important;height:78px!important;
   resize:vertical!important;font-size:16px!important;border:1px solid #bdcad7!important;
   padding:12px 13px!important;border-radius:12px!important;color:#0b2541!important;background:#fff!important;
 }
 /* In place: visual styling for existing quick-note widgets when present on newer live builds.
    This stylesheet never adds note options, note state, listeners or serialization. */
 html body[data-business-mode="restaurant"] #lineOverlay :is(.quick-notes,.note-presets,.quick-observations,[data-quick-observations]){
   display:flex!important;flex-wrap:wrap!important;gap:9px!important;
   min-width:0!important;border:1px solid #dce4eb!important;border-radius:15px!important;
   padding:13px!important;margin:0!important;background:#fff!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay :is(.quick-notes,.note-presets,.quick-observations,[data-quick-observations]) :is(button,[role="button"]){
   flex:1 1 105px!important;min-height:44px!important;padding:9px 12px!important;
   border:1px solid #c6d2df!important;border-radius:12px!important;background:#fff!important;
   font-size:13px!important;color:#0b2541!important;font-weight:750!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay :is(.quick-notes,.note-presets,.quick-observations,[data-quick-observations]) :is(button,[role="button"]):is(.active,.selected,[aria-pressed="true"]){
   border-color:#ff7300!important;color:#fff!important;background:#ff7300!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-footer{
   flex:0 0 auto!important;position:static!important;display:block!important;
   border:0!important;padding:0 0 3px!important;margin:0!important;background:#fff!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .config-calculation{
   display:grid!important;min-width:0!important;width:100%!important;max-width:none!important;gap:7px!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .config-grand-total{
   display:flex!important;align-items:center!important;justify-content:space-between!important;
   padding-top:11px!important;margin-top:3px!important;border-top:1px solid #e2e8ee!important;
   font-size:17px!important;color:#0b2541!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .config-grand-total strong{
   font-size:clamp(25px,8vw,34px)!important;color:#ff7300!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-dialog{
   padding-bottom:calc(95px + env(safe-area-inset-bottom,0px))!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-actions{
   position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:10!important;
   display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,.95fr) minmax(0,1.65fr)!important;
   width:100%!important;max-width:100vw!important;min-width:0!important;margin:0!important;
   padding:10px 11px calc(10px + env(safe-area-inset-bottom,0px))!important;
   gap:8px!important;background:#fff!important;border-radius:16px 16px 0 0!important;
   box-shadow:0 -6px 26px rgba(15,34,52,.13)!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-actions button{
   min-width:0!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:54px!important;
   padding:8px 7px!important;border-radius:12px!important;white-space:normal!important;
   font-size:clamp(11px,3.45vw,15px)!important;line-height:1.16!important;font-weight:850!important;
 }
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-actions .ghost{background:#eff3f7!important;border:0!important;color:#0b2541!important}
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-actions .danger{background:#fff0f0!important;border:1px solid #f3c4c6!important;color:#ac1118!important}
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-actions .primary{background:#ff7300!important;border:0!important;color:#fff!important}
 /* Ticket actions: all existing action IDs preserved; only semantic text wrapper added. */
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .compact-menu{gap:13px!important}
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .menu-actions{
   width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   gap:10px!important;padding:0 0 6px!important;
 }
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .menu-actions>button{
   min-width:0!important;width:100%!important;min-height:88px!important;display:grid!important;
   grid-template-columns:54px minmax(0,1fr) 18px!important;align-items:center!important;gap:13px!important;
   padding:14px!important;border:1px solid #dce4eb!important;border-radius:17px!important;
   background:#fff!important;color:#0b2541!important;text-align:left!important;
   box-shadow:0 2px 7px rgba(18,45,70,.035)!important;
 }
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .menu-actions>button:before{
   display:grid!important;place-items:center!important;content:"";width:54px;height:54px!important;
   border-radius:14px!important;background:#eef2f6!important;color:#0b2541!important;
   font-size:29px!important;font-weight:800!important;
 }
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .menu-actions>button:after{
   content:"›"!important;grid-column:3!important;grid-row:1!important;
   font-size:36px!important;line-height:1!important;color:#718298!important;
 }
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .ticket-action-copy{
   grid-column:2!important;grid-row:1!important;min-width:0!important;display:grid!important;gap:4px!important;
 }
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .ticket-action-copy strong{
   font-size:17px!important;line-height:1.18!important;white-space:normal!important;color:#0b2541!important;
 }
 html body[data-business-mode="restaurant"] #ticketMenuOverlay .ticket-action-copy small{
   margin:0!important;line-height:1.38!important;font-size:12px!important;font-weight:500!important;color:#5f7085!important;
 }
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #ticketDiscountBtn:before{content:"%";color:#f97316!important;background:#fff2e8!important}
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #prebillBtn:before{content:"▤"}
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #splitBtn:before{content:"⑂";color:#f97316!important;background:#fff2e8!important}
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #mergeBtn:before{content:"↗"}
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #backSalonBtn:before{content:"↩"}
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #deleteSaleBtn{
   margin-top:13px!important;background:#fff2f3!important;border-color:#facbd0!important;
 }
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #deleteSaleBtn:before{content:"⌫";background:#ffe1e3!important;color:#b91c1c!important}
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #deleteSaleBtn:after,
 html body[data-business-mode="restaurant"] #ticketMenuOverlay #deleteSaleBtn .ticket-action-copy strong{color:#b91c1c!important}
 /* Split check: native checkbox and original quantities/API, with tactile stepper. */
 html body[data-business-mode="restaurant"] #splitOverlay .split-dialog{gap:18px!important}
 html body[data-business-mode="restaurant"] #splitOverlay .split-layout{
   width:100%!important;min-width:0!important;min-height:0!important;display:grid!important;
   grid-template-columns:minmax(0,1fr)!important;gap:20px!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-layout>div{min-width:0!important;width:100%!important}
 html body[data-business-mode="restaurant"] #splitOverlay .split-lines{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important;
   min-width:0!important;max-height:none!important;overflow:visible!important;margin-bottom:17px!important;padding:0!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-line{
   display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;
   min-height:93px!important;gap:10px!important;padding:13px!important;
   border:1px solid #dce4eb!important;border-radius:16px!important;background:#fff!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-line label{
   min-width:0!important;display:flex!important;align-items:center!important;gap:9px!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-line label input{
   flex:0 0 24px!important;width:24px!important;height:24px!important;accent-color:#ff7300!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-line label span{min-width:0!important;display:grid!important;gap:5px!important}
 html body[data-business-mode="restaurant"] #splitOverlay .split-line label strong{
   font-size:clamp(13px,4.1vw,17px)!important;line-height:1.15!important;color:#0b2541!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-line label small{
   font-size:11px!important;font-weight:500!important;line-height:1.25!important;color:#687b91!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-stepper{
   display:grid!important;grid-template-columns:37px 37px 37px!important;max-width:111px!important;
   height:44px!important;overflow:hidden!important;border:1px solid #bfccda!important;border-radius:11px!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-stepper button{
   width:100%!important;height:42px!important;min-width:0!important;min-height:0!important;
   border:0!important;background:#f0f4f8!important;color:#0b2541!important;
   font-size:21px!important;font-weight:750!important;padding:0!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-stepper input{
   width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;
   min-height:0!important;text-align:center!important;padding:0!important;margin:0!important;
   border:0!important;border-left:1px solid #dce4eb!important;border-right:1px solid #dce4eb!important;
   border-radius:0!important;background:#fff!important;font-size:18px!important;font-weight:850!important;
   color:#0b2541!important;appearance:textfield!important;-moz-appearance:textfield!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-stepper input::-webkit-inner-spin-button,
 html body[data-business-mode="restaurant"] #splitOverlay .split-stepper input::-webkit-outer-spin-button{appearance:none!important;margin:0!important}
 html body[data-business-mode="restaurant"] #splitOverlay #createPartialCheck{
   width:100%!important;min-height:56px!important;border:0!important;border-radius:14px!important;
   background:#ff7300!important;color:#fff!important;font-size:16px!important;font-weight:850!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .partial-ledger{
   border:0!important;border-top:1px solid #e2e8ee!important;padding:20px 0 0!important;
   min-width:0!important;background:#fff!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .partial-ledger h3{
   color:#0b2541!important;font-size:23px!important;margin:0 0 14px!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay #partialChecks>.hint{
   min-height:235px!important;display:grid!important;place-content:center!important;text-align:center!important;
   padding:27px 20px!important;margin:0!important;border:1px solid #dce4eb!important;
   border-radius:18px!important;background:#f8fafc!important;font-size:14px!important;line-height:1.5!important;
   color:#405872!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay #partialChecks>.hint:before{
   display:block!important;content:"▤";font-size:58px!important;line-height:1.1!important;
   color:#8fa5bb!important;margin:0 auto 17px!important;
 }
 html body[data-business-mode="restaurant"] :is(#lineOverlay,#splitOverlay,#ticketMenuOverlay) :is(input,textarea,button):focus-visible{
   outline:3px solid rgba(249,115,22,.4)!important;outline-offset:2px!important;
 }
}
@media (max-width:359px){
 html body[data-business-mode="restaurant"] #splitOverlay .split-line{
   grid-template-columns:minmax(0,1fr)!important;
 }
 html body[data-business-mode="restaurant"] #splitOverlay .split-stepper{margin-left:34px!important}
 html body[data-business-mode="restaurant"] #lineOverlay .line-editor-actions{grid-template-columns:minmax(0,.75fr) minmax(0,.8fr) minmax(0,1.55fr)!important;gap:5px!important}
}
