/* One bordered field for every existing previous/current/next date navigation. */
#app .date-navigation-field{
 display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;
 align-items:center!important;gap:0!important;box-sizing:border-box;
 width:max-content;max-width:100%;min-width:0;min-height:46px;height:46px;
 padding:0!important;border:1px solid var(--line);border-radius:12px;
 background:var(--white);color:var(--ink);overflow:hidden;
}
#app .date-navigation-field>button{
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;
 width:44px!important;min-width:44px!important;min-height:44px!important;height:44px!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;color:var(--ink)!important;font-size:22px;
}
#app .date-navigation-field>button:hover{background:var(--paper)!important}
#app .date-navigation-field>button:focus-visible{outline:2px solid var(--petrol);outline-offset:-3px}
#app .date-navigation-field>label{
 display:block!important;box-sizing:border-box;min-width:0!important;width:100%!important;
 max-width:none!important;margin:0!important;padding:0!important;flex:none!important;
}
#app .date-navigation-field input{
 box-sizing:border-box;width:144px!important;max-width:100%!important;min-width:0!important;
 height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;
 padding:10px 4px!important;border:0!important;border-radius:0!important;
 background:transparent!important;color:var(--ink);font-size:16px;text-align:center;
}
#app .date-navigation-field input[type=month]{width:158px!important}
/* Center the native month picker in the space between both arrows. */
#app .month-control.date-navigation-field>label{
 display:flex!important;align-items:center;justify-content:center;
}

#app .date-navigation-field input::-webkit-date-and-time-value{text-align:center;min-width:0}
#app .date-navigation-field input::-webkit-datetime-edit{padding:0}
#app .date-navigation-field>:is(strong,h2){
 display:flex;flex-direction:column;justify-content:center;align-items:center;
 box-sizing:border-box;min-width:0;margin:0;padding:6px 10px;
 font-size:16px;font-weight:600;line-height:1.3;text-align:center;white-space:nowrap;
}
#app .date-navigation-field>strong>small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
#app .date-navigation-controls{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 flex-wrap:nowrap!important;gap:10px!important;width:max-content;max-width:100%;min-width:0;
}
#app .date-navigation-controls>.date-navigation-field{flex:0 1 auto}
#app .date-navigation-controls>button{flex:0 0 auto;margin:0!important;min-height:46px;height:46px;box-sizing:border-box}
#app #planning-page .planning-month-controls.date-navigation-controls{width:max-content;max-width:100%}
#app #planning-page .planning-month-controls .date-navigation-field{min-width:0}
#app .calendar-navigation{align-items:flex-start;flex-direction:row;justify-content:flex-start}
#app .time-modern-top>.month-control.date-navigation-field{width:max-content;max-width:100%}
#app .rt-date.date-navigation-controls input{flex:none;width:144px!important}
#app .shift-period.date-navigation-controls{margin-right:auto}
#app .cake-week-picker .date-navigation-field{width:100%}
#app .cake-week-controls{align-items:center}
#app .widget-calendar-heading.date-navigation-field{width:100%;margin-bottom:10px}
@media(max-width:700px){
 #app .date-navigation-controls{max-width:100%;gap:8px!important}
 #app .date-navigation-field>:is(strong,h2){font-size:14px;padding-inline:4px}
 #app .date-navigation-field .shift-kw-label{font-size:13px}
 #app .shift-period .date-navigation-field>strong>small{font-size:10px;white-space:normal}
 #app .date-navigation-controls>button{padding-inline:10px!important}
}

/* Preserve the complete native date text on narrow phones. */
@media(max-width:360px){
 #app .date-navigation-controls{flex-wrap:wrap!important}
 #app .date-navigation-controls>.date-navigation-field{flex:0 0 auto;max-width:100%}
 #app .toolbar.cake-week-controls,#app .kiosk-shell .toolbar.cake-week-controls,#app .content:has(>.page-heading-cakes)>.toolbar.cake-week-controls{grid-template-columns:minmax(0,1fr)!important;justify-items:start}
 #app .cake-week-picker{flex:0 0 auto!important;width:min(238px,100%)!important}
}
