@media(min-width:1700px){#homeWorkspace{padding:34px 48px 40px}.homeTeam{max-height:500px}.homeTeamRow{min-height:70px}.homeColumns{grid-template-columns:minmax(0,2fr) minmax(340px,1fr)}}
@media(max-width:1250px){#indexSidebar{width:192px;min-width:192px}#homeWorkspace{padding:24px}.homeColumns{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:16px}.homeTableHead,.homeTeamRow{padding-left:14px;padding-right:14px;grid-template-columns:minmax(125px,1fr) 64px 64px 70px 28px;gap:6px}.homeAvatar{display:none}.homePlanPerson .homeAvatar{display:flex}.homeHeading{font-size:28px}.homeBottomGrid{grid-template-columns:1fr 1fr}.homeAgendaPanel{grid-column:1/-1}.homeTeamTools{padding-left:14px;padding-right:14px}.homeMetric{padding:17px}.homeMetricValue{font-size:27px}}
@media(max-width:1050px){.homeColumns{grid-template-columns:1fr}.homePlanFields{max-width:560px}.homeTeam{max-height:430px}.homeAvatar{display:flex}.homeTableHead,.homeTeamRow{grid-template-columns:minmax(160px,1.6fr) repeat(3,minmax(66px,.65fr)) 34px}.homeHeadingRow{align-items:flex-start;flex-direction:column}.homeMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}.homePlanModes{max-width:480px}}
@media(max-width:720px){#indexMain{flex-direction:column}#indexSidebar{width:100%;min-width:0;height:auto;padding:0 14px;flex-shrink:0}#indexLogoWrap{padding:14px 0 8px}#indexBrandIcon{width:28px;height:28px}#indexBrandName{font-size:18px}#indexBrandSub,#indexMenuLabel,#indexSidebarFooter{display:none}#indexMenu{flex-direction:row;overflow-x:auto;gap:4px;padding:4px 0 11px}.indexMenuItem{font-size:11px;white-space:nowrap;min-height:36px;padding:9px 11px;gap:6px}.indexMenuItem svg{width:14px;height:14px}#indexContent{flex:1;min-height:0;width:100%}#homeWorkspace{padding:22px 16px 28px}.homeTopline{align-items:flex-start;gap:8px;margin-bottom:18px}.homeTopline .homeMuted{font-size:9px;text-align:right}.homeEyebrow{font-size:9px}.homeHeading{font-size:27px;letter-spacing:-.9px}.homeSubtitle{font-size:12px;max-width:290px}.homeHeadingRow{gap:18px;margin-bottom:24px}.homeActions{width:100%}.homeActions .homeButton{flex:1;padding:11px 8px;font-size:11px}.homeSectionLine{align-items:flex-start;flex-direction:column;gap:2px}.homeSectionLine .homeMuted{font-size:10px}.homeMetrics{gap:10px;margin-bottom:18px}.homeMetric{padding:16px 14px;min-height:133px}.homeMetricLabel{font-size:11px}.homeMetricValue{font-size:26px;margin:10px 0 6px}.homeMetric .homeMuted{font-size:10px}.homeColumns{gap:18px}.homePanelHead{padding:18px 15px 15px;gap:8px}.homeTitle{font-size:14px}.homePanelHead .homeMuted{font-size:10px}.homePanelHead .homeTextButton{font-size:10px;flex-shrink:0}.homeTeamTools{padding:0 14px 14px;gap:10px}#homeSearch{max-width:none}.homeFilters{width:100%;justify-content:space-between}.homeFilter{font-size:10px;flex:1}.homeTableHead,.homeTeamRow{grid-template-columns:minmax(120px,1fr) 62px 70px 26px;gap:5px;padding:0 12px}.homeTableHead>div:nth-child(2),.homeTeamRow>.homeBalance:nth-child(2){display:none}.homeTableHead{font-size:8px}.homeTeamRow{min-height:70px}.homeTeamRow .homeAvatar{display:none}.homePersonName{font-size:10px}.homeBalance{font-size:10px}.homePersonStatus{font-size:9px}.homePanelFoot{padding:11px 14px;gap:8px}.homePanelFoot .homeMuted{font-size:9px}.homePlanPanel{padding:20px}.homePlanPanel>.homeTitle{font-size:22px}.homeBottomGrid{grid-template-columns:1fr;gap:18px;margin-top:18px}.homeAgendaPanel{grid-column:auto}.homeRep,.homeRecentRow,.homeHoliday{padding-left:16px;padding-right:16px}.homeError{left:16px;right:16px;max-width:none}#indexContentTop{padding:17px 16px;flex-shrink:0}#indexContentTopTitle{font-size:20px}#indexContentTopSubMenu{overflow-x:auto;flex-wrap:nowrap;max-width:100%}.indexContentTopSubMenuItem{white-space:nowrap;font-size:11px}#timesheetMain,#usuariosMain,#equipamentosMain,#relatoriosMain{padding:10px}#timesheetMainHeaderRow{flex-wrap:wrap;gap:8px}#timesheetMainHeaderSearch{min-width:0;flex:1}#timesheetMainCards{flex-wrap:wrap}#timesheetMainHeaderDropName{min-width:0}#timesheetMainActions,#timesheetMainManagementActions{height:auto;min-height:70px;flex-wrap:wrap}#indexNotice{max-width:calc(100vw - 32px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
@media print{#indexSidebar{display:none!important}#homeWorkspace{overflow:visible}#homeRefresh,.homeActions,.homePlanPanel{display:none}.homeColumns{display:block}.homeTeam{max-height:none}#indexContent{overflow:visible}}

@media(max-width:720px){#timesheetMainHeader{padding:12px;gap:12px}#timesheetMainHeaderTitleDate{display:none}#timesheetMainHeaderSearch{padding:0;display:grid;grid-template-columns:24px minmax(0,1fr) 82px;width:100%;gap:5px}#timesheetMainHeaderDropName{width:100%!important;max-width:100%;flex:1}#timesheetMainHeaderDropNameCurrent{font-size:12px;overflow:hidden;display:block;text-overflow:ellipsis;padding:12px 9px}#timesheetMainHeaderDropMesCurrent{font-size:12px;padding:12px 8px}#timesheetMainHeaderDropNameList{max-width:calc(100vw - 68px);min-width:100%;width:100%!important}.timesheetMainHeaderDropNameOption{font-size:12px}#timesheetMainCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.timesheetMainCard{min-width:0;padding:10px 8px}.timesheetMainCardLabel{font-size:8px;white-space:nowrap}.timesheetMainCardValue{font-size:15px}#timesheetMainPrintWrap{grid-column:1/-1;height:30px;justify-content:flex-end}#timesheetMain{gap:10px}#timesheetMainActions,#timesheetMainManagementActions{min-height:48px;padding:8px}.timesheetMainTimeRow{flex-wrap:wrap;gap:7px;padding:10px}.timesheetMainTimeDate{min-width:0;flex:1;font-size:12px}.timesheetMainTimeDateSub{font-size:10px}.timesheetMainTimeMarks{order:3;flex-basis:100%;margin-left:24px}.timesheetMainTimeBalance{min-width:55px;font-size:11px}.timesheetMainTimeOccurrenceInfo{white-space:normal;height:auto;min-height:26px}#reportsMain{padding:10px}}

@media(max-width:1100px){.homeTeamBars .homeTeamRow{grid-template-columns:minmax(140px,1fr) minmax(130px,1.3fr) 28px;gap:12px}.homeViewToolbar{flex-wrap:wrap}.homeBarLegend .homeMuted{display:none}#timesheetMainSummaryCloseWrap{margin-left:0}}
@media(max-width:720px){#indexContentTopSubMenu.timesheetSectionTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px;padding:5px;overflow:visible}#indexContentTopSubMenu.timesheetSectionTabs .indexContentTopSubMenuItem{font-size:13px;min-height:42px;padding:10px 8px}#timesheetMainPrintWrap{grid-column:1/-1;width:100%;height:auto;margin:4px 0 0;justify-content:stretch;gap:8px}#timesheetMainPrintBtn,#timesheetMainCopyBtn{flex:1;min-width:0;height:42px;padding:0 10px}.timesheetActionLabel{font-size:12px}#timesheetMainSummaryActions{padding:14px}#timesheetMainSummaryFilters{gap:12px 8px}#timesheetMainSummaryFilters>.timesheetMainSummaryField:first-child{min-width:0;flex:1}#timesheetMainSummaryStatus{width:100%;gap:8px;align-items:stretch}.timesheetMainSummaryStatusItem{min-height:40px;height:auto;padding:10px;font-size:11px;white-space:normal;flex:1}#timesheetMainSummaryCloseWrap{margin-left:0;border-left:0;padding-left:0}.homeViewToolbar{padding:0 14px 14px;gap:10px}.homeViewSwitch{margin-left:auto}.homeViewButton{font-size:11px;padding:8px 11px}.homeTeamBars .homeTeamRow{grid-template-columns:minmax(0,1fr) 28px;gap:9px 12px;padding:13px 14px;min-height:94px}.homeTeamBars .homePerson{grid-column:1;grid-row:1}.homeTeamBars .homeSheetLink{grid-column:2;grid-row:1}.homeTeamBars .homeBarVisual{grid-column:1/-1;grid-row:2;gap:12px}.homeTeamBars .homeBarValue{font-size:12px;width:75px}.homeTeamBars .homeBarTrack{height:12px}.homeTeamBars .homeTeam{max-height:480px}.homeTeamBars .homePersonName{font-size:12px}.homeBarLegend{gap:10px;font-size:10px}.homeViewToolbar .homeMuted{display:none}}

@media(max-width:720px){#authLoginPage{padding:22px 16px}.authCard{padding:28px 24px}.authTitle{font-size:23px}#authSecurityPage{padding:18px 14px}#authNotice{left:16px;right:16px;max-width:none}#indexSidebar:has(#authLogout){position:relative}#indexSidebarFooter:has(#authLogout){display:block;position:absolute;top:7px;right:14px;margin:0;padding:0;border:0}#indexSidebarFooter:has(#authLogout)>div{display:none}#authLogout{width:auto;margin:0;padding:7px 10px;font-size:10px}}

/* Identidade VECor e crédito AXIATI. */
@media(max-width:720px){#indexLogoWrap{padding:12px 0 8px;max-width:152px}#indexBrand{gap:0;align-items:flex-start}#indexBrand .brandLogo{height:44px;border-width:8px;width:148px;border-radius:5px}#indexBrandSub{display:none}#brandFooter{padding:10px 16px;min-height:43px;gap:10px}.brandFooterCaption{font-size:9px}.brandFooterName{font-size:10px;letter-spacing:1.4px}#brandFooterLink{font-size:9px}body:has(#authLoginPage)>#brandFooter{padding:12px 20px}#authLoginPage{padding:24px 18px}.authBrand .brandLogo{width:220px}.authBrand{margin-bottom:28px}.authCard{border-radius:14px}#indexSidebarFooter:has(#authLogout){top:18px}}
@media(max-width:380px){.brandFooterCaption{display:none}#brandFooter{justify-content:center}}
@media print{#brandFooter{display:none!important}}

/* Telas menores usam rolagem da página e navegação em gaveta. */
@media(max-width:1100px) and (min-width:901px){#timesheetRail{flex-basis:184px;padding:18px 12px}#timesheetMain{padding:16px 14px}#timesheetMainHeaderTitleDate{display:none}.timesheetMainTimeRow{gap:8px;padding:9px 10px}.timesheetMainTimeDate{font-size:12px}.timesheetMainTimeMarks{gap:5px}.timesheetMainTimeMark{min-width:48px;padding:0 6px;font-size:12px}}
@media(max-width:900px){
    body.indexApp{height:auto;min-height:100dvh;width:100%;display:block;overflow:visible}
    html.indexDrawerLocked,html.indexDrawerLocked body.indexApp{overflow:hidden}
    #indexMobileHeader{display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:100;height:64px;padding:10px 16px;background:#fffdfc;border-bottom:1px solid var(--brand-line);box-shadow:0 2px 10px #290f1505}
    #indexMobileHeader .brandLogo{width:124px;height:34px;aspect-ratio:auto}
    .indexMobileCaption{margin-left:auto;max-width:80px;font-size:10px;line-height:1.4;color:#8a747a;text-align:right}
    #indexMobileMenuToggle,#indexDrawerClose{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border:1px solid var(--brand-line);border-radius:8px;color:var(--brand-wine);background:#fff;cursor:pointer}
    #indexMobileMenuToggle svg,#indexDrawerClose svg{height:22px;width:22px}
    #indexMain{height:auto;min-height:calc(100dvh - 64px);display:block}
    #indexMain>#indexSidebar{position:fixed;inset:0 auto 0 0;z-index:1200;width:min(300px,85vw);min-width:0;height:100dvh;padding:0 16px;transform:translateX(-100%);visibility:hidden;transition:transform .24s ease,visibility .24s;box-shadow:12px 0 40px #290f1533;overflow-y:auto;overscroll-behavior:contain}
    .indexDrawerOpen #indexMain>#indexSidebar{transform:translateX(0);visibility:visible}
    #indexDrawerBackdrop{position:fixed;inset:0;z-index:1190;background:#1d10166b;backdrop-filter:blur(2px);cursor:pointer}
    .indexDrawerOpen #indexDrawerBackdrop{display:block}
    #indexDrawerClose{position:absolute;top:18px;right:14px;width:36px;height:36px;background:#ffffff0d;border-color:#ffffff25;color:white}
    #indexSidebar #indexLogoWrap{padding:22px 44px 22px 0;max-width:none}
    #indexSidebar #indexBrand{align-items:flex-start;gap:12px}
    #indexSidebar #indexBrand .brandLogo{width:178px;max-width:100%;height:58px;border-width:10px}
    #indexSidebar #indexBrandSub{display:block;font-size:9px;letter-spacing:2px}
    #indexSidebar #indexMenuLabel{display:block;padding:10px 12px}
    #indexSidebar #indexMenu{flex-direction:column;overflow:visible;gap:6px;padding:6px 0 20px;flex-shrink:0}
    #indexSidebar .indexMenuItem{font-size:14px;min-height:48px;padding:13px 14px;gap:12px;white-space:normal}
    #indexSidebar .indexMenuItem svg{width:19px;height:19px}
    #indexSidebar #indexSidebarFooter{display:block;position:static;margin: auto 0 22px;padding:20px 12px 0;border-top:1px solid #ffffff18}
    #indexSidebar #indexSidebarFooter>div{display:block}
    #indexSidebar #authLogout{width:100%;margin-top:14px;padding:12px;font-size:12px;min-height:44px}
    #indexContent{height:auto;min-height:calc(100dvh - 64px);width:100%;overflow:visible;display:flex;flex-direction:column}
    #indexContent>#brandFooter{margin-top:auto}
    #homeWorkspace,#authSecurityPage,#usuariosMain,#reportsMain,#equipamentosMain{flex:0 0 auto;overflow:visible;min-height:0}
    .homeTeam{max-height:none;overflow:visible}
    #indexContent:has(#timesheetLayout)>#indexContentTop{padding:18px 16px 10px;background:var(--brand-paper);border:0}
    #indexContent:has(#timesheetLayout) #indexContentTopTitle{font-size:21px}
    #timesheetLayout{display:flex;flex-direction:column;flex:0 0 auto;overflow:visible;gap:12px;padding:0 12px 24px;min-width:0}
    #timesheetRail,#timesheetMain{display:contents}
    #timesheetRail .timesheetRailLabel{display:none}
    #timesheetRail #indexContentTopSubMenu.timesheetSectionTabs{order:0;display:flex;flex-direction:row;gap:4px;padding:4px;background:#ede7e5;border:1px solid var(--brand-line);border-radius:9px;overflow-x:auto;max-width:100%;width:100%;margin-bottom:2px}
    #timesheetRail #indexContentTopSubMenu.timesheetSectionTabs .indexContentTopSubMenuItem{flex:1;justify-content:center;min-height:42px;padding:10px 8px;font-size:12px;white-space:nowrap;border-radius:6px}
    #timesheetMainHeader{order:1;margin:0;padding:12px;gap:0;border-radius:10px}
    #timesheetMainHeaderRow{gap:0;flex-wrap:nowrap}
    #timesheetMainHeaderTitleDate{display:none}
    #timesheetMainHeaderSearch{display:grid;grid-template-columns:24px minmax(0,1fr) 86px;gap:6px;padding:0;width:100%;min-width:0}
    #timesheetMainHeaderDropName{width:100%!important;min-width:0;max-width:100%;flex:1}
    #timesheetMainHeaderDropNameCurrent{font-size:12px;padding:13px 9px;display:block}
    #timesheetMainHeaderDropMesCurrent{font-size:12px;padding:13px 8px}
    #timesheetMainHeaderDropNameList{max-width:calc(100vw - 48px);min-width:100%;width:100%!important}
    .timesheetMainHeaderDropNameOption{font-size:12px;white-space:normal}
    #timesheetBalances:not(.timesheetMainSectionHidden){display:contents}
    #timesheetMainCards{order:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
    #timesheetMainCards .timesheetMainCard{padding:12px 10px;border-radius:8px;min-width:0}
    #timesheetMainCards .timesheetMainCardLabel{font-size:8px;letter-spacing:.2px;margin-bottom:6px;white-space:nowrap}
    #timesheetMainCards .timesheetMainCardValue{font-size:18px}
    #timesheetMainPrintWrap{grid-column:1/-1;flex-direction:row;gap:8px;margin:0;width:100%}
    #timesheetMainPrintBtn,#timesheetMainCopyBtn{height:40px;min-height:40px;min-width:0;flex:1;justify-content:center;font-size:12px;padding:0 10px}
    #timesheetMainTracking,#timesheetMainManagement,#timesheetMainRules,#timesheetMainSummary{order:3;flex:0 0 auto;overflow:visible;height:auto;min-height:0;gap:10px}
    #timesheetMainTime,#timesheetMainManagementList,#timesheetMainRulesList,#timesheetMainSummaryList{height:auto;max-height:none;flex:0 0 auto;overflow:visible;min-height:0}
    #timesheetMainActions,#timesheetMainManagementActions{height:auto;min-height:44px;padding:0;gap:8px;background:transparent;border:0;box-shadow:none}
    .timesheetSectionTitle{font-size:14px}.timesheetSectionCaption{font-size:10px}
    #timesheetMainTime .timesheetMainTimeRow,#timesheetMainManagementList .timesheetMainTimeRow{display:grid;grid-template-columns:18px minmax(0,1fr) 32px 64px;gap:10px 8px;padding:14px 12px;min-height:0;flex-wrap:initial}
    .timesheetMainTimeCheck{grid-column:1;grid-row:1;align-self:center}
    .timesheetMainTimeDate{grid-column:2;grid-row:1;font-size:13px;min-width:0;white-space:normal}
    .timesheetMainTimeDateSub{font-size:11px}
    .timesheetMainTimeAdd,.timesheetMainOccurrenceAddWrap{grid-column:3;grid-row:1;min-width:30px;width:30px;height:32px;align-self:center}
    .timesheetMainTimeBalance{grid-column:4;grid-row:1;font-size:12px;min-width:0;margin:0;align-self:center}
    .timesheetMainTimeMarks{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;width:100%;margin:0;gap:8px;min-width:0}
    .timesheetMainTimeMark{flex:0 0 calc(25% - 6px);min-width:56px;height:38px;padding:0 7px;font-size:14px;border-radius:7px}
    .timesheetMainTimeMarkInput{height:38px;width:calc(25% - 6px);font-size:14px}
    .timesheetMainTimeOccurrenceInfo{flex-basis:100%;white-space:normal;height:auto;min-height:30px}
    .timesheetMainTimeRuleLabelRow{grid-column:1/-1;grid-row:2;min-width:0;white-space:normal;font-size:12px}
    .timesheetMainOccurrenceList{grid-column:1/-1;grid-row:2;min-width:0}
    .timesheetMainOccurrenceLabel{min-width:0;width:100%;white-space:normal}
    #timesheetMainSummaryActions{padding:12px;min-height:0}
    .timesheetMainSummaryHeader{display:none}
    .timesheetMainSummaryRow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 6px;padding:16px 12px}
    .timesheetMainSummaryRow .timesheetMainSummaryCell{display:flex;flex-direction:column;align-items:flex-start;min-width:0;width:auto;flex:auto;font-size:12px;white-space:normal}
    .timesheetMainSummaryRow .timesheetMainSummaryCellName{grid-column:1/-1;font-size:13px}
    .timesheetMainSummaryRow .timesheetMainSummaryCell:not(:first-child):before{display:block;color:#8a747a;font-size:9px;font-weight:500;margin-bottom:5px}
    .timesheetMainSummaryRow .timesheetMainSummaryCell:nth-child(2):before{content:'Pendências'}
    .timesheetMainSummaryRow .timesheetMainSummaryCell:nth-child(3):before{content:'Banco'}
    .timesheetMainSummaryRow .timesheetMainSummaryCell:nth-child(4):before{content:'Mês'}
    .timesheetMainSummaryRow .timesheetMainSummaryCell:nth-child(5):before{content:'Total'}
    .timesheetMainRuleHeader{display:none}
    .timesheetMainRuleRow{display:flex;flex-wrap:wrap;gap:10px;padding:14px 12px}
    .timesheetMainRuleRow .timesheetMainRuleCell{min-width:0;flex:1 1 calc(50% - 10px)}
    .timesheetMainRuleRow .timesheetMainRuleCellLabel{flex-basis:100%}
    .timesheetMainRuleRow .timesheetMainRuleCellActions{justify-content:flex-start}
    .timesheetMainRulesField{min-width:0;flex:1 1 130px}
    #timesheetMainRulesCreate{min-width:0}
    #timesheetMainInvalid{flex-basis:100%;min-width:0}
}
@media(max-width:360px){#indexMobileHeader{gap:10px;padding:10px 12px}.indexMobileCaption{font-size:9px;max-width:62px}#timesheetRail #indexContentTopSubMenu.timesheetSectionTabs .indexContentTopSubMenuItem{font-size:11px;padding:10px 6px}#timesheetMainCards .timesheetMainCardValue{font-size:16px}}
@media print{#indexMobileHeader,#indexDrawerBackdrop,#indexDrawerClose,#timesheetRail{display:none!important}#timesheetLayout{display:block;overflow:visible}#timesheetMain{display:block}}

@media(max-width:900px){#timesheetMainBalanceNote{grid-column:1/-1;padding:0 2px;font-size:10px}.timesheetMainDayNote{grid-column:1/-1;grid-row:3;padding:0;font-size:11px}.timesheetMainCutoffNote{font-size:11px}}

@media(max-width:900px){
    #usuariosWrap{flex:0 0 auto;min-height:0;gap:12px}
    #usuariosList{flex:0 0 auto;overflow:visible;padding:2px}
    .usuariosHeader{grid-template-columns:minmax(0,1fr) auto 28px;gap:10px;padding:14px 12px}
    .usuariosName{font-size:12px}
    .usuariosStatusTag{font-size:10px;padding:5px 8px}
    .usuariosExpand{width:28px;height:28px}
    .usuariosDetails{padding:16px 12px}
    .usuariosContract{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
    .usuariosField{min-width:0}
    .usuariosFieldScaleWrap,.usuariosSave{grid-column:1/-1}
    .usuariosFieldInput{font-size:16px;padding:9px 7px}
    .usuariosToggle{font-size:11px}
}

@media(max-width:1100px) and (min-width:901px){.indexModuleRail{flex-basis:184px;padding:18px 12px}}
@media(max-width:900px){
    #indexContent:has(.indexModuleLayout)>#indexContentTop{padding:18px 16px 10px;background:var(--brand-paper);border:0}
    #indexContent:has(.indexModuleLayout) #indexContentTopTitle{font-size:21px}
    .indexModuleLayout{display:flex;flex-direction:column;flex:0 0 auto;overflow:visible;gap:12px;padding:0 12px 24px}
    .indexModuleRail{display:contents}
    .indexModuleRailLabel{display:none}
    .indexModuleTabs{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;padding:4px;background:#ede7e5;border:1px solid var(--brand-line);border-radius:9px;width:100%}
    .indexModuleTab{flex:1 1 90px;min-height:44px;padding:10px 8px;justify-content:center;text-align:center;font-size:12px;border-radius:6px}
    .indexModuleLayout>#equipamentosMain,.indexModuleLayout>#reportsMain,.indexModuleLayout>#apiMain{flex:0 0 auto;padding:0;overflow:visible;min-width:0}
    #reportsContent,#reportsTimebankWrap{flex:0 0 auto;overflow:visible}
    #reportsTimebankList{flex:0 0 auto;overflow-x:auto;max-width:100%}
    .indexModuleLayout .indexMainApiGroup{padding:12px;min-width:0}
    .indexModuleLayout .indexMainApiHeader{flex-wrap:wrap;gap:10px}
    .indexModuleLayout .indexMainApiHeaderLeft{min-width:0}
    .indexModuleLayout .indexMainApiTitleSummary{overflow-wrap:anywhere}
    .indexModuleLayout .indexMainApiCodeBox{overflow-x:auto;max-width:100%}
}

/* A gaveta móvel compartilha a navegação discreta do desktop. */
@media(max-width:900px){
    #indexMain>#indexSidebar{background:linear-gradient(165deg,#51252f 0%,#36191f 48%,#290f15 100%);padding:0 20px}
    #indexSidebar #indexLogoWrap{padding:30px 38px 24px 6px}
    #indexSidebar #indexBrand{gap:12px;align-items:flex-start}
    #indexSidebar #indexBrand .brandLogo{width:168px;height:58px;border:10px solid #fff;border-radius:5px}
    #indexSidebar #indexBrandSub{display:block;font-size:11px;letter-spacing:0;color:#dcc4c4}
    #indexSidebar #indexMenu{gap:24px;padding:10px 0 24px}
    #indexSidebar .indexMenuItem{min-height:48px;padding:13px;font-size:15px;gap:0}
    
    
    #indexSidebar #indexDrawerClose{top:23px;right:14px;border:0;background:transparent;color:#ecdedd;box-shadow:none}
    #indexSidebar #indexSidebarFooter{position:static;margin:auto 6px 22px;padding:16px 0 0;border-top:1px solid #ffffff20}
    #indexSidebar #authLogout{width:100%;min-height:44px;margin:0;padding:12px 14px;font-size:13px}
}

@media(prefers-reduced-motion:reduce){.indexSlidingTabs>.indexSubmenuIndicator{transition:none!important}}

@media(max-width:900px){
    #reportsDailyWrap{overflow:visible;flex:0 0 auto;padding:0 0 20px}
    .reportsDailyHeading{font-size:18px}
    .reportsDailyToolbar{flex-wrap:wrap}
    #reportsDailyPicker{flex:1;min-width:210px}
    #reportsDailyOptions{position:relative;top:auto;margin-top:6px}
}

@media(max-width:900px){.reportsDailyAxis,.reportsDailyAxisZero{font-size:16px}}

@media(max-width:600px){#reportsDailyCards{gap:8px}#reportsDailyDetail,#reportsDailyCurrentCard{padding:11px}.reportsDailyDetailTitle{font-size:12px;line-height:1.5}.reportsDailyDetailRow,.reportsDailyLegendCard{gap:6px;font-size:11px}#reportsDailyCards .reportsDailyPersonName{font-size:11px}#reportsDailyCards .reportsDailyMuted{font-size:11px}}

@media(max-width:600px){.reportsDailyToolbar{gap:8px}#reportsDailyPicker{min-width:0;width:auto;flex:1}#reportsDailySelected{font-size:12px}#reportsDailyToggle{padding:12px 9px}#reportsDailyRefresh{padding:12px 10px}#reportsDailyOptions{position:absolute;top:calc(100% + 6px);margin-top:0;width:max(100%,220px);max-width:calc(100vw - 72px)}}

@media(max-width:600px){#reportsDailyCurrentCard{padding:13px}#reportsDailyLegend .reportsDailyLegendCard{gap:8px 12px}#reportsDailyLegend .reportsDailyPersonName{flex-basis:100%;font-size:12px}#reportsDailyLegend .reportsDailyMuted{font-size:11px}#reportsDailyTooltip .reportsDailyDetailRow{font-size:12px}}


/* Mesmo ritmo em telas estreitas, mantendo rolagem natural da página. */
@media screen and (max-width:1200px){
    .homeColumns{grid-template-columns:minmax(0,1fr)}
    .homePlanPanel{max-width:none}
    .homeMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:900px){
    #indexContentTop,#indexContent:has(#timesheetLayout)>#indexContentTop,#indexContent:has(.indexModuleLayout)>#indexContentTop{padding:20px 16px}
    #homeWorkspace{padding:20px 16px 24px}
    .homeHeadingRow{align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:24px}
    .homeHeading{font-size:26px}
    .homeTopline{margin-bottom:12px}
    .homeMetrics{gap:8px}
    .homeMetric{padding:14px;min-height:0}
    .homeMetricValue{font-size:26px}
    .homeColumns{gap:20px}
    .homeFilter,.homeViewButton,.homeTextButton{min-height:40px}
    .homePanelHead{padding:16px}
    .homeTeamTools{padding:0 16px 12px}
    .homeFilters{margin-left:0;max-width:100%}
    .homePlanPanel{padding:16px}
    .homeTeamBars .homeTeam{max-height:none}
    #usuariosMain{padding:0 12px 24px}
    #usuariosList{flex:0 0 auto}
    .usuariosHeader{gap:8px;padding:12px;min-height:64px}
    #timesheetMainHeaderSearch{grid-template-columns:32px minmax(0,1fr) 86px;align-items:center}
    #timesheetMainHeaderNavNames{width:32px;gap:4px}
    #timesheetMainHeaderPrevName,#timesheetMainHeaderNextName{width:32px;height:30px}
    #timesheetMainHeaderDropNameCurrent,#timesheetMainHeaderDropMesCurrent{font-size:12px}
    #timesheetMainCards .timesheetMainCard{padding:10px 8px}
    #timesheetMainCards .timesheetMainCardLabel{font-size:10px;white-space:normal;min-height:28px;letter-spacing:0}
    #timesheetMainCards .timesheetMainCardValue{font-size:18px}
    #timesheetMainTime .timesheetMainTimeRow,#timesheetMainManagementList .timesheetMainTimeRow{grid-template-columns:18px minmax(0,1fr) 36px 60px;gap:8px;padding:12px 10px}
    .timesheetMainTimeAdd,.timesheetMainOccurrenceAddWrap{width:36px;min-width:36px;height:36px}
    #reportsDailyCurrentCard{width:100%;min-width:0}
    #reportsDailyLegend .reportsDailyPersonName{flex-basis:100%}
    #reportsDailyLegend .reportsDailyMuted{font-size:12px}
    #reportsDailyPrevious,#reportsDailyNext{width:32px;height:30px}
    .reportsDailyToolbar{align-items:center}
    #reportsDailyToggle{min-height:48px}
    #reportsDailyTooltipClose{width:36px;height:36px}
    #brandFooter{padding:12px 16px}
}
@media screen and (max-width:380px){
    .homeFilter{padding:7px 6px;font-size:11px}
    #timesheetMainHeaderSearch{grid-template-columns:30px minmax(0,1fr) 76px;gap:4px}
    #timesheetMainCards .timesheetMainCardLabel{font-size:9px}
    #reportsDailyRefresh{padding:10px 8px;font-size:12px}
}

@media screen and (min-width:1201px){.homeColumns{grid-template-columns:minmax(0,1fr) 360px;gap:24px}#homeWorkspace{padding:24px}}

@media screen and (max-width:900px){
 #reportsDailyWrap{gap:14px}
 #reportsDailyCurrentCard{padding:18px 16px 12px;width:100%;min-width:0}
 #reportsDailyPlot>.reportsDailyMuted{padding:0 16px 12px}
 .reportsDailyHelp{padding:14px 16px}
 #reportsDailyLegend :is(.reportsTimebankValuePositive,.reportsTimebankValueNegative,.reportsTimebankValueNeutral){font-size:28px}
 .reportsDailyHeading{font-size:20px}
 #reportsDailySearch{font-size:16px}
}

@media screen and (max-width:900px){
 #indexMain>#indexSidebar{transition:transform var(--motion-drawer) var(--ease-drawer),visibility 0s linear var(--motion-drawer)}
 .indexDrawerOpen #indexMain>#indexSidebar{transition-delay:0s}
 #indexDrawerBackdrop{display:block;opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--motion-drawer) var(--ease-out),visibility 0s linear var(--motion-drawer)}
 .indexDrawerOpen #indexDrawerBackdrop{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
}
@media(prefers-reduced-motion:reduce){
 #reportsDailyOptions,.reportsDailyChevron,.usuariosExpandVertical{transform:none!important}
 body.indexApp :is(#indexMobileMenuToggle,#indexDrawerClose,#reportsDailyPrevious,#reportsDailyNext,.homeFilter,.homeViewButton):active{transform:none}
}
