/* Keep long imported links inside calendar cards at every viewport. */
.calendar-agenda,.event-list,.event-card,.event-card>div{min-width:0}
.event-card strong,.event-card small,.event-card p{overflow-wrap:anywhere;word-break:normal}
/* One touch layout for phones, iPad, and split-screen tablet windows. */
.main,#content,.panel,.grid,.form-grid,.form-row,.page-head>*,.panel-head>*{min-width:0}
.sidebar nav{flex:1;min-height:0;align-content:start;grid-auto-rows:max-content;gap:4px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:14px}
.sidebar>.brand,.sidebar>.nav-label,.sidebar>.profile{flex-shrink:0}
.sidebar>.profile{margin-top:12px}
.touch-planner-sort{display:none}
.touch-table-wrap{max-width:100%;min-width:0;overscroll-behavior-x:contain;scrollbar-width:thin}
.touch-table-wrap:focus-visible{outline:3px solid #a7c3ff;outline-offset:3px}
@media screen and (max-width:1180px){
  html{scroll-padding-top:90px}
  html,body{width:100%;max-width:100%;overflow-x:clip}
  body{font-size:15px;line-height:1.6;-webkit-text-size-adjust:100%}
  body.modal-open{touch-action:auto!important;overflow:hidden;overscroll-behavior:none}
  .sidebar{display:none}
  .main{margin-left:0;padding:calc(72px + env(safe-area-inset-top)) 24px calc(112px + env(safe-area-inset-bottom));min-height:100dvh}
  .topbar{position:fixed;inset:0 0 auto;z-index:50;height:calc(64px + env(safe-area-inset-top));margin:0;padding:env(safe-area-inset-top) 24px 0;justify-content:space-between;background:#f6f4eff5;border-bottom:1px solid #e2e7ef;backdrop-filter:blur(14px)}
  .mobile-brand{display:flex;gap:9px;font-size:20px;align-items:center}
  .mobile-brand img{width:20px;height:36px;object-fit:contain}
  .top-actions{gap:8px}
  .mobile-menu-button{display:grid;place-items:center}
  .top-actions>.avatar{display:grid;width:40px;height:40px}
  .mobile-logout{display:none}
  .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center}
  .bottom-nav{position:fixed;inset:auto 16px calc(10px + env(safe-area-inset-bottom));z-index:60;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:7px;max-width:640px;margin-inline:auto;border:1px solid #dfe7f2;border-radius:19px;background:#fffffff7;box-shadow:0 8px 28px #1534591a;backdrop-filter:blur(14px)}
  .bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:52px;padding:5px 2px;border:0;border-radius:12px;background:transparent;color:#637593;cursor:pointer}
  .bottom-nav button.active{background:#edf3ff;color:#2463ff}
  .bottom-nav span{font-size:12px;line-height:1.4;white-space:normal;text-align:center}
  .bottom-nav b{display:grid;place-items:center}.bottom-nav b svg{width:21px;height:21px}
  .touch-keyboard-open .bottom-nav{display:none}
  #siteVersionBadge{bottom:calc(88px + env(safe-area-inset-bottom));right:16px;max-width:calc(100vw - 32px);font-size:10px;pointer-events:none}
  .page-head{flex-wrap:wrap;align-items:flex-start;gap:18px;padding:24px 0}
  .page-head h1{font-size:clamp(26px,3.6vw,34px);line-height:1.35;overflow-wrap:anywhere}
  .page-head>button,.page-head>.primary{flex-shrink:0;min-height:46px;white-space:nowrap}
  .page-head p:last-child{font-size:14px;line-height:1.65}
  .panel{max-width:100%;padding:22px}
  .panel-head{gap:12px;flex-wrap:wrap}.panel-head h2{overflow-wrap:anywhere}
  .grid.two-column,.dashboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{grid-template-columns:minmax(0,1fr)}
  .admin-cards,.leave-grid,.reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-layout,.profile-layout{grid-template-columns:minmax(0,1fr)}
  .table-wrap{max-width:100%;margin:0;padding:0;overflow:auto}
  .event-card{grid-template-columns:52px minmax(0,1fr);min-width:0}
  .event-card>div,.event-card strong,.event-card p{min-width:0;overflow-wrap:anywhere;word-break:normal}
  .event-card>.audience-tag,.event-card>button{grid-column:2;justify-self:start}
  .calendar-agenda .event-card{grid-template-columns:46px minmax(0,1fr)}
  .calendar-agenda .event-card>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .calendar-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
  .calendar-toolbar h2{flex:1 0 100%;margin:0}
  .calendar-period{flex:1}.calendar-view-switch{margin-left:auto}
  .calendar-day{min-width:0}.calendar-event-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hub-income-actions,.hub-owner-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hub-filters>div{min-width:0}
  .finance-summary,.finance-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .finance-toolbar,.finance-list-bar,.finance-entries-head,.finance-account-head{flex-wrap:wrap;gap:12px}
  .finance-toolbar>*{min-width:0;max-width:100%}
  .finance-account-head h2,.finance-entries h2{overflow-wrap:anywhere}
  .payroll-toolbar>.payroll-actions{display:flex;flex:1;flex-wrap:wrap;min-width:0}
  .payroll-toolbar .thai-date-control{width:220px;max-width:100%}
  .payroll-toolbar select{width:220px;max-width:100%}
  .payroll-panel .panel-head>.payroll-actions{flex-wrap:wrap}
  .payroll-table{max-width:100%;overscroll-behavior:contain}
  .payroll-actions button,.button-row button,.mobile-review-buttons button{min-height:44px}
  button,input,textarea,select,a{touch-action:manipulation}
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea{font-size:16px!important;min-height:48px;max-width:100%;min-width:0}
  input[type=checkbox],input[type=radio]{accent-color:#2463ff}
  label{font-size:14px;line-height:1.6}
  .thai-date-control{min-width:0}
  .thai-date-display{min-height:56px;grid-template-columns:36px minmax(0,1fr) 18px;gap:9px;padding:9px 12px}
  .thai-date-display strong{font-size:14px;line-height:1.5}.thai-date-display small{font-size:11px;line-height:1.4}
  .modal-bg{inset:var(--app-viewport-top,0px) 0 auto!important;height:var(--app-viewport-height,100dvh)!important;padding:16px!important;align-items:center!important;overflow:hidden!important;box-sizing:border-box}
  .modal-bg>.modal{min-width:0!important;max-width:100%!important;max-height:calc(var(--app-viewport-height,100dvh) - 32px)!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
  .modal-bg .modal-close{width:44px!important;height:44px!important;min-height:44px!important;font-size:24px;z-index:10}
  .ux-dialog{padding:24px!important}
  .ux-dialog>h2{padding-right:12px;font-size:23px!important;line-height:1.5}
  .ux-dialog>p{font-size:13px!important;line-height:1.7!important}
  .ux-dialog label,.ux-dialog .form-help{font-size:14px!important;line-height:1.6!important}
  .ux-dialog input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),.ux-dialog select,.ux-dialog textarea{font-size:16px!important;min-height:48px!important}
  .ux-dialog label small,.ux-dialog .form-help,.planner-form-note{font-size:12px!important;line-height:1.7!important}
  .modal .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .touch-menu-dialog{width:min(720px,100%)!important}
  .touch-menu-dialog .mobile-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mobile-menu-item{min-height:60px;text-align:left}
  .mobile-menu-item strong{font-size:14px}.mobile-menu-item small{font-size:12px}
  .request-modal-backdrop{align-items:center!important;padding:16px!important}
  .request-modal{display:block!important;width:min(720px,100%)!important;max-width:720px!important;overflow-y:auto!important;padding:24px!important;border-radius:22px!important;height:auto!important}
  .request-modal>h2{margin:0 44px 12px 0!important;padding:0!important;font-size:23px!important;line-height:1.5!important}
  .request-modal>p{margin:0 0 20px!important;padding:0!important;font-size:13px!important;line-height:1.7!important}
  .request-modal .request-form{display:grid!important;gap:16px!important;overflow:visible!important;padding:0!important;max-height:none!important}
  .request-form label{gap:7px!important;font-size:14px!important;line-height:1.5!important;margin:0!important}
  .request-form .form-row{gap:14px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .request-form input,.request-form select{height:auto!important;min-height:48px!important;padding:12px 14px!important;font-size:16px!important}
  .request-form textarea{min-height:110px!important;max-height:none!important;padding:12px 14px!important;font-size:16px!important;resize:vertical!important}
  .request-form .form-help{margin:0!important;font-size:12px!important;line-height:1.7!important}
  .request-form .request-submit{position:static!important;min-height:48px!important;margin-top:4px!important;font-size:15px!important}
  .finance-entry-modal{overflow-y:auto!important}
  .finance-entry-modal .form-grid{max-height:none;overflow:visible;padding:0}
  .workforce-modal .form-grid,.workforce-form{min-width:0}
  .thai-picker-layer{height:var(--app-viewport-height,100dvh);top:var(--app-viewport-top,0px);bottom:auto;padding:12px;box-sizing:border-box}
  .thai-picker{max-height:calc(var(--app-viewport-height,100dvh) - 24px)}
  .thai-picker-grid button{height:44px}.thai-picker button,.thai-picker select{font-size:16px}
  .planner-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .planner-metric{min-width:0;padding:20px}.planner-metric>div{gap:10px}.planner-metric strong{font-size:34px}
  .planner-table-wrap{border:0;overflow:visible}
  .planner-table{display:block;width:100%;min-width:0!important}
  .planner-table thead{display:none}
  .planner-table tbody{display:grid;gap:16px}
  .planner-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:1px solid #dfe7f3;border-radius:18px;padding:18px;background:#fff;cursor:default!important}
  .planner-table td{display:block;position:static!important;box-shadow:none!important;border:0;padding:0!important;min-width:0!important;width:auto!important;max-width:none!important;background:transparent!important;overflow-wrap:anywhere}
  .planner-table td:nth-child(1){grid-column:1/-1;grid-row:2}
  .planner-table td:nth-child(2){grid-column:1/-1;grid-row:1}
  .planner-table td:nth-child(3),.planner-table td:nth-child(7),.planner-table td:nth-child(8),.planner-table td[colspan]{grid-column:1/-1}
  .planner-table td[data-label]:not(:nth-child(1)):not(:nth-child(2))::before{content:attr(data-label);display:block;margin-bottom:8px;font-size:12px;font-weight:600;color:#7d8fa9}
  .planner-table td:last-child button{width:100%;min-height:46px}
  .planner-title{font-size:16px}.planner-description{font-size:14px}
  .planner-content-copy{max-height:none}.planner-topic{font-size:16px}.planner-caption{font-size:14px}
  .planner-table .planner-media-cell{min-width:0!important;width:auto}
  .planner-media-cell .planner-media-frame,.planner-media-cell .planner-thumb,.planner-media-cell .planner-no-image{width:min(220px,100%);height:auto!important;aspect-ratio:1;margin-inline:auto}
  .planner-media-cell .planner-thumb img{height:100%;max-height:none;object-fit:contain}
  .planner-order-control button{min-width:44px;min-height:44px}
  .planner-status{font-size:14px;min-height:46px;max-width:100%;white-space:normal}
  .planner-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:16px}
  .planner-toolbar>div:first-child{margin-right:0}
  .planner-toolbar>.planner-table-actions{margin:0;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
  .planner-table-actions .planner-outline{font-size:13px;min-height:46px;padding:10px 12px}
  .planner-filters{gap:12px;padding:14px}.planner-filters .planner-search{flex-basis:100%;min-width:0}
  .planner-filters>span{margin-left:0}.touch-planner-sort{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%;border-top:1px solid #e3eaf7;padding-top:12px}
  .touch-planner-sort button{font-size:13px;white-space:normal;padding:10px}
  .planner-period-bar{flex-wrap:wrap}.planner-months{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior:contain}
  .planner-editor-modal{width:min(1180px,100%)!important;padding:24px!important}
  .planner-layout-options{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px}
  .planner-layout-option{min-width:0}.planner-upload{min-width:0}
}
@media screen and (max-width:900px){
  .grid.two-column,.dashboard-summary-grid{grid-template-columns:minmax(0,1fr)}
  .modal-bg>.modal.payroll-modal{width:100%!important;height:calc(var(--app-viewport-height,100dvh) - 24px)!important;max-height:calc(var(--app-viewport-height,100dvh) - 24px)!important;overflow:hidden!important;padding:20px 0 0!important}
  .pay-editor-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  .pay-editor-fields{padding:18px;min-height:0;overflow-y:auto;touch-action:pan-y}
  .pay-editor-summary{overflow:visible;min-height:0;border-left:0;border-top:1px solid #dfe7f4;padding:12px 18px;background:#f5f8ff}
  .pay-summary-eyebrow,.pay-summary-footnote,.pay-editor-summary dl>div:not(.pay-net){display:none}
  .pay-editor-summary #payRowResult{display:flex;align-items:center;gap:14px;justify-content:space-between}
  .pay-editor-summary .pay-net{display:block;margin:0;padding:0;border:0;font-size:13px}
  .pay-editor-summary .pay-net dd{font-size:18px}
  .pay-transfer{padding:10px 12px;min-width:0}.pay-transfer strong{font-size:21px}
  .pay-editor-footer{padding:12px 18px;gap:10px}.pay-editor-footer>span{display:none}.pay-editor-footer .primary{flex:1;white-space:normal}
  .payroll-modal>h2,.payroll-modal>p{margin-left:18px!important;margin-right:62px!important}
  .payroll-modal>h2{font-size:21px!important}.payroll-modal>p{font-size:12px!important;margin-bottom:14px!important}
  .pay-auto-modal{width:100%!important}
}
@media screen and (max-width:760px){
  .main{padding:calc(66px + env(safe-area-inset-top)) 16px calc(116px + env(safe-area-inset-bottom))}
  .topbar{padding:env(safe-area-inset-top) 16px 0}.top-actions>.avatar{display:none}
  .bottom-nav{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));padding:6px}.bottom-nav span{font-size:11px}
  #siteVersionBadge{right:12px;bottom:calc(86px + env(safe-area-inset-bottom))}
  .page-head{flex-direction:column;gap:14px;padding:22px 0}.page-head>button,.page-head>.primary,.page-head>.header-action{width:100%;white-space:normal}
  .panel{padding:18px;border-radius:18px}.panel-head h2{font-size:19px}
  .admin-cards,.leave-grid,.reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hub-income-actions,.hub-owner-tools,.finance-summary,.finance-account-grid{grid-template-columns:minmax(0,1fr)}
  .hub-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hub-filters>div{min-width:0}
  .finance-entries{padding:18px}.finance-account-tabs,.finance-type-tabs{flex-wrap:wrap;gap:6px}
  .finance-list-bar{align-items:stretch}.finance-list-bar select{width:100%}
  .payroll-toolbar{align-items:stretch;gap:12px}.payroll-toolbar>.payroll-actions{display:grid;grid-template-columns:1fr auto;width:100%;gap:10px}
  .payroll-toolbar .thai-date-control{width:100%}.payroll-toolbar select{grid-column:1/-1;width:100%}
  .payroll-actions{gap:10px}.payroll-panel>.panel-head>.payroll-actions{display:grid;grid-template-columns:1fr;width:100%}
  .payroll-actions button{min-height:46px;white-space:normal}
  .touch-table-wrap{overflow:visible;max-height:none!important}
  .touch-table{display:block;width:100%;min-width:0!important;border:0!important}
  .touch-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
  .touch-table tbody{display:grid;gap:14px;width:100%}
  .touch-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #dfe7f3;border-radius:15px;padding:6px 12px;background:#fff;min-width:0}
  .touch-table tbody td{display:block;position:static!important;min-width:0!important;width:auto!important;max-width:none!important;border:0!important;padding:11px 6px!important;white-space:normal!important;overflow-wrap:anywhere;background:transparent!important;text-align:left!important;box-shadow:none!important}
  .touch-table td:before{content:attr(data-cell-label);display:block;font-size:12px;line-height:1.5;color:#7a8ca7;font-weight:500;margin-bottom:5px}
  .touch-table td:first-child,.touch-table td:has(button),.touch-table td:has(select),.touch-table td:has(input),.touch-table .touch-wide-cell{grid-column:1/-1}
  .touch-table td[colspan]{padding:22px 8px!important}.touch-table td[colspan]:before{display:none}
  .touch-table td button{min-height:44px;white-space:normal}.touch-table td input,.touch-table td select{min-width:0!important;width:100%}
  .touch-table td input[type=checkbox]{width:22px;height:22px;min-height:22px}.touch-table td:has(input[type=checkbox]){display:flex;align-items:center;justify-content:space-between;gap:12px}
  .pay-auto-table{max-height:none;overflow:visible;margin-top:14px}.pay-auto-table .auto-net{color:#1b5bb4;font-size:19px;font-weight:750}
  .pay-auto-modal #autoSummary{position:static;font-size:13px;line-height:1.7}
  .modal-bg{padding:10px!important}.modal-bg>.modal{max-height:calc(var(--app-viewport-height,100dvh) - 20px)!important;border-radius:20px!important}
  .ux-dialog{padding:22px 18px!important}.ux-dialog>h2{font-size:21px!important;margin-right:38px!important;gap:10px}
  .modal-bg .modal-close{right:10px!important;top:10px!important}
  .modal .form-row{grid-template-columns:minmax(0,1fr)}
  .request-modal-backdrop{padding:10px!important}.request-modal{padding:22px 18px!important;max-width:100%!important}
  .request-modal .request-date-row,.request-modal .request-time-row{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  .request-modal>h2{font-size:21px!important;margin-right:40px!important;padding:0!important}
  .request-modal>p{font-size:13px!important;line-height:1.7!important;padding:0!important}
  .request-form .thai-date-display{min-height:56px;grid-template-columns:36px minmax(0,1fr) 18px}
  .request-form .thai-date-display strong{font-size:14px!important;line-height:1.5!important}.request-form .thai-date-display small{font-size:11px!important}
  .request-form label{font-size:14px!important}.request-form .form-help{font-size:12px!important;line-height:1.7!important}
  .request-form .request-submit{min-height:48px!important;font-size:15px!important}
  .touch-menu-dialog .mobile-menu-grid{grid-template-columns:minmax(0,1fr)}
  .mobile-menu-item{min-height:58px}.mobile-menu-logout{min-height:48px;width:100%}
  .planner-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.planner-metric{padding:14px 10px}
  .planner-metric>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:12px}.planner-metric strong{font-size:29px}.planner-metric p{font-size:11px;line-height:1.55}
  .planner-toolbar>.planner-table-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.planner-filters>select{min-width:0;width:auto;flex:1}
  .planner-table tr{padding:16px;gap:14px}.planner-order-control{justify-content:flex-start;gap:12px}
  .planner-table td:nth-child(8) button{font-size:14px}.planner-links a{white-space:normal;overflow-wrap:anywhere;min-height:44px}
  .planner-editor-modal{padding:22px 18px!important;width:100%!important}
  .planner-form{grid-template-columns:minmax(0,1fr)}.planner-layout-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .planner-form-footer{flex-wrap:wrap}.planner-form-footer .primary{flex:1;min-height:48px;white-space:normal}
  .planner-months button{min-height:44px}.planner-period-bar{gap:12px}.planner-period-label{width:100%}
  .calendar-toolbar{gap:10px}.calendar-view-switch button,.calendar-period button{min-height:44px}
  .calendar-day{min-height:72px}.calendar-day-number{font-size:13px}.calendar-weekdays span{font-size:12px}
  .history-row{flex-wrap:wrap;gap:8px}.history-row>div{min-width:0;flex:1 1 180px}
  .profile-account-actions,.event-edit-actions{flex-wrap:wrap}.event-edit-actions button{min-height:46px}
  .employee-pay-options{gap:10px}.employee-pay-settings{padding:16px}.employee-pay-options strong{font-size:14px}
  .form-grid .primary,.form-grid>button{min-height:48px}
}
@media screen and (max-width:380px){
  .main{padding-left:12px;padding-right:12px}.topbar{padding-left:12px;padding-right:12px}
  .mobile-brand{font-size:18px}.top-actions{gap:5px}.bottom-nav span{font-size:10px}
  .panel{padding:15px}.pay-transfer strong{font-size:18px}.pay-editor-summary .pay-net dd{font-size:16px}
  .planner-metric-grid{grid-template-columns:minmax(0,1fr)}.planner-metric>div{flex-direction:row;align-items:center}
  .admin-cards,.leave-grid,.reward-grid{grid-template-columns:minmax(0,1fr)}
  .thai-picker-header{grid-template-columns:32px minmax(0,1fr) 76px 32px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.bottom-nav,.modal,.touch-table *{transition:none!important}}

@media screen and (min-width:761px) and (max-width:900px){
  .pay-auto-table.touch-table-wrap{overflow:visible;max-height:none!important}
  .pay-auto-table .touch-table{display:block;width:100%;min-width:0!important;border:0!important}
  .pay-auto-table .touch-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
  .pay-auto-table .touch-table tbody{display:grid;gap:14px;width:100%}
  .pay-auto-table .touch-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #dfe7f3;border-radius:15px;padding:6px 12px;background:#fff;min-width:0}
  .pay-auto-table .touch-table tbody td{display:block;position:static!important;min-width:0!important;width:auto!important;max-width:none!important;border:0!important;padding:11px 6px!important;white-space:normal!important;overflow-wrap:anywhere;background:transparent!important;text-align:left!important;box-shadow:none!important}
  .pay-auto-table .touch-table td:before{content:attr(data-cell-label);display:block;font-size:12px;line-height:1.5;color:#7a8ca7;font-weight:500;margin-bottom:5px}
  .pay-auto-table .touch-table td:first-child,.pay-auto-table .touch-table td:has(button),.pay-auto-table .touch-table td:has(select),.pay-auto-table .touch-table td:has(input),.pay-auto-table .touch-table .touch-wide-cell{grid-column:1/-1}
  .pay-auto-table .touch-table td[colspan]{padding:22px 8px!important}.pay-auto-table .touch-table td[colspan]:before{display:none}
  .pay-auto-table .touch-table td button{min-height:44px;white-space:normal}.pay-auto-table .touch-table td input,.pay-auto-table .touch-table td select{min-width:0!important;width:100%}
  .pay-auto-table .touch-table td input[type=checkbox]{width:22px;height:22px;min-height:22px}.pay-auto-table .touch-table td:has(input[type=checkbox]){display:flex;align-items:center;justify-content:space-between;gap:12px}
  .pay-auto-table{max-height:none;overflow:visible;margin-top:14px}.pay-auto-table .auto-net{color:#1b5bb4;font-size:19px;font-weight:750}
  .pay-auto-modal #autoSummary{position:static;font-size:13px;line-height:1.7}

}
@media screen and (max-width:1180px){.mobile-brand span{display:inline!important}}

/* Compact desktop navigation without stretching rows to fill the sidebar. */
@media screen and (min-width:1181px){.sidebar .nav-item{min-height:46px;padding-block:10px;line-height:1.5}.sidebar>.brand{padding-bottom:20px}.sidebar>.nav-label{margin-block:6px 12px}}
