/* Shared responsive presentation only: no payroll, calendar or account changes. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0}main,.wrap,.card,.bd,section,details{min-width:0}
img,video,canvas{max-width:100%}
input,select,textarea{min-width:0;scroll-margin-block:150px 110px}
input[type=date],input[type=month],input[type=time]{min-inline-size:0}
input::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
.mobile-table-scroll{max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-margin-top:150px}
.mobile-table-scroll:focus-visible{outline:2px solid #91c0ff;outline-offset:3px}
.mobile-table-scroll table{max-width:none}
.mobile-table-hint{font-size:12px;color:var(--muted);margin:6px 0}
.mobile-table-hint[hidden]{display:none!important}
@media(max-width:700px){
 html{scroll-padding-top:170px}
 body{padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
 .wrap,main:not(.wrap){width:100%;max-width:100%;padding:14px max(12px,env(safe-area-inset-right)) 14px max(12px,env(safe-area-inset-left))!important}
 .wrap .wrap{padding-inline:0!important}
 .card,main>section{max-width:100%}
 p,label,.notice,.note,.small,.muted,.app-subtitle,h1,h2,h3,summary{overflow-wrap:anywhere}
 .grid,.grid.two,.grid2,.fields,.zgrid{grid-template-columns:minmax(0,1fr)!important}
 .grid>*,.grid2>*,.fields>*,.zgrid>*,.results>*,.totals>*,.zresults>*{min-width:0}
 .row,.hrow,.actions,.zactions,.nav{min-width:0;flex-wrap:wrap;gap:10px}
 .row>div:has(>input),.row>div:has(>select),.row>.field,.row>.pill,#rangeBox{width:100%;min-width:0!important;flex:1 1 100%!important}
 .row>div:empty{display:none}
 input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;max-width:100%;min-width:0;font-size:16px!important;min-height:46px;line-height:1.4}
 input[type=checkbox],input[type=radio]{flex:none;width:20px;height:20px}
 button,.btn,.btn2,.nav a,.app-menu-link,summary{touch-action:manipulation;min-height:44px}
 button,.btn,.btn2,.nav a{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 .actions>button,.zactions>button,.compare-controls>button,.nav>a{flex:1 1 100%;width:100%}
 .travel-check,.compare-confirm{align-items:flex-start!important;line-height:1.55;min-height:44px}
 .travel-check input,.compare-confirm input{margin-top:3px!important}
 .menu-card>span:not(.menu-icon):not(.menu-arrow){min-width:0}
 .menu-card strong,.menu-card small{overflow-wrap:anywhere}
 .menu-card{gap:11px;padding:14px;min-height:94px}
 .menu-icon{width:36px;height:36px}
 .app-header .app-top{display:grid!important;grid-template-columns:minmax(0,1fr) 44px auto!important;gap:8px!important;padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))!important;padding-top:max(12px,env(safe-area-inset-top))!important}
 .app-header .app-identity{grid-area:1/1/2/4!important;order:initial!important}
 .app-header h1{font-size:19px!important;line-height:1.25!important}
 .app-subtitle,.app-identity>p{font-size:12px!important;line-height:1.45;margin-top:5px}
 .app-header .amount-eye{grid-area:2/2!important;width:44px!important;min-height:44px!important;padding:10px!important}
 .app-header .amount-eye>span{display:none!important}
 .app-header .app-menu-link{grid-area:2/3!important;min-height:44px!important;order:initial!important;padding:9px 12px!important}
 .app-header .compare-header-actions{grid-area:2/2/3/4;justify-content:flex-end}
 .app-header .app-month-nav{grid-area:2/1!important;gap:7px!important;justify-content:flex-start!important;min-width:0}
 .app-header .app-month-nav>button{width:44px!important;height:44px;flex:none;min-height:44px!important;padding:0!important}
 .app-toolbar{padding:0 max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));gap:8px}
 .app-toolbar input{width:100%}
 .app-toolbar label,.app-toolbar .hint{flex-basis:100%}
 /* Calendar: month, privacy and menu first; arrows beside the net on the next row. */
 .app-header:has(#calendarNet) .app-identity{grid-area:1/1!important}
 .app-header:has(#calendarNet) .amount-eye{grid-area:1/2!important}
 .app-header:has(#calendarNet) .app-menu-link{grid-area:1/3!important}
 .app-header:has(#calendarNet) h1{font-size:17px!important}
 .app-header:has(#calendarNet) .app-month-nav{grid-area:2/1/3/4!important;display:flex;width:100%;justify-content:flex-start!important}
 #calendarNet{min-width:0;flex:1!important}
 #calendarNet>details>summary{min-height:44px!important;padding:5px 10px!important}
 #calendarNetTitle{font-size:11px}
 #calendarNetAmount{font-size:16px}
 .calendar-net-body{position:fixed;top:auto;right:max(10px,env(safe-area-inset-right));left:max(10px,env(safe-area-inset-left));width:auto;max-height:60vh;max-height:60dvh;margin-top:8px;z-index:60;padding:4px 14px 12px}
 #calendarWrap{width:100%;min-width:0;padding:10px max(6px,env(safe-area-inset-right)) 20px max(6px,env(safe-area-inset-left))!important}
 #cal,#dow,.calGrid,.dow{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important;min-width:0}
 .cell,button.dayBtn{min-width:0;min-height:78px;padding:5px 3px!important;border-radius:9px!important;overflow:hidden}
 .dowCell{font-size:9px;letter-spacing:0;padding:6px 0}
 .turno{font-size:21px}.cell.hasEff .turno.actual{font-size:24px}
 .cell .iconsRow{font-size:10px;overflow-wrap:anywhere}
 .dayBtn .dayShift{font-size:12px;max-width:100%;overflow-wrap:anywhere}
 .dayBtn .badge{font-size:9px;padding:2px 3px}
 .dBadges{gap:3px}
 #legendColors{grid-column:1/-1}
 .compare-controls>div{width:100%;min-width:0;flex-basis:100%}
 .compare-summary{grid-template-columns:1fr!important}
 .compare-row{grid-template-columns:minmax(0,1fr)!important;gap:9px;padding:16px 0}
 .compare-row>label{grid-column:1!important;margin-bottom:2px}
 .compare-row>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:8px;min-width:0}
 .compare-row small{margin:0;font-size:12px}
 .compare-row output{text-align:right;font-size:15px}
 .compare-row input{padding:10px!important}
 .zresults{grid-template-columns:1fr!important}
 .zresults strong,.kpi .val,.kpi .v{font-size:22px;overflow-wrap:anywhere}
 .mobile-table-scroll table.mobile-wide-table{min-width:560px}
 .mobile-table-scroll table.mobile-detail-table{min-width:920px}
 .mobile-table-scroll th,.mobile-table-scroll td{padding:10px 8px}
 .mobile-table-scroll td:first-child{overflow-wrap:anywhere}
 .mobile-table-scroll th{white-space:normal}
 .mobile-table-scroll input[type=time]{min-width:115px}
 .mobile-table-scroll input[type=number]{min-width:85px}
 /* Full-height sheet, scrollable body, with reachable actions above the home indicator. */
 #dayModal{top:var(--mobile-vtop,0px)!important;bottom:auto!important;height:100vh!important;height:var(--mobile-vh,100dvh)!important;padding:max(8px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important}
 #dayModal .day-sheet{height:100%;max-height:100%;width:100%;border-radius:16px}
 #dayModal .head{padding:12px 14px}
 #dayModal .head h2{font-size:18px}
 #dayModal .head>div{min-width:0}
 #dayModal #dmClose{width:44px;min-height:44px}
 #dayModal .body{padding:10px;flex:1;min-height:0;-webkit-overflow-scrolling:touch}
 #dayModal .day-grid{grid-template-columns:minmax(0,1fr)!important}
 #dayModal .day-section{padding:13px}
 #dayModal .day-interval-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}
 #dayModal .day-check{align-items:flex-start}
 #dayModal .day-check small{display:block;margin-left:0}
 #dayModal .foot{padding:10px 12px 12px}
 #dayModal .day-footer-actions{grid-template-columns:1fr 1.4fr}
}
@media(max-width:360px){.results,.totals{grid-template-columns:minmax(0,1fr)!important}.app-header:has(#calendarNet) h1{font-size:15px!important}.app-header .app-top{gap:6px!important}.app-menu-link svg{display:none}.app-header .app-menu-link{padding:9px 10px!important}.cell .iconsRow{font-size:9px}.cell.hasEff .turno.actual{font-size:21px}}
@media(max-height:500px) and (max-width:950px){body>header.app-header{position:relative!important}#dayModal{top:var(--mobile-vtop,0px)!important;bottom:auto!important;height:var(--mobile-vh,100dvh)!important;padding:6px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important}#dayModal .head{padding:7px 12px}#dayModal .foot{padding:7px 12px}#dayModal .day-sheet{height:100%!important;max-height:100%!important}}
