/* Calendario: navegación y selección masiva más claras. */
.tax-calendar-page.calendar-usability-ready .calendar-head-actions{
  flex-wrap:wrap;
  justify-content:flex-end;
}

.calendar-month-picker{
  display:grid;
  gap:4px;
  min-width:132px;
}
.calendar-month-picker>span{
  color:#657080;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.calendar-month-picker select{
  width:100%;
  min-height:42px;
  padding:0 34px 0 12px;
  border:1px solid #cbd4e1;
  border-radius:11px;
  color:#102d62;
  background:#fff;
  font-size:.76rem;
  font-weight:900;
  text-transform:capitalize;
  cursor:pointer;
}

.calendar-day.has-selected-events,
.agenda-day.has-selected-events{
  background:#f3f7fc;
}
.calendar-day.has-all-events-selected{
  background:#eaf2fb;
  box-shadow:inset 0 0 0 2px rgba(16,45,98,.24);
}

.calendar-day-toggle,
.agenda-day-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:4px 7px;
  border:1px solid #c7d1df;
  border-radius:999px;
  color:#102d62;
  background:#fff;
  font-size:.54rem;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  white-space:nowrap;
}
.calendar-day-toggle:hover,
.agenda-day-toggle:hover,
.calendar-day-toggle[aria-pressed="true"],
.agenda-day-toggle[aria-pressed="true"]{
  color:#fff;
  border-color:#102d62;
  background:#102d62;
}
.calendar-date .calendar-day-toggle{margin-left:4px}
.agenda-date .agenda-day-toggle{
  width:52px;
  min-height:30px;
  margin-top:8px;
  padding-inline:4px;
}

.tax-calendar-page [data-select-month][aria-pressed="true"]{
  color:#fff;
  background:#102d62;
}

.calendar-selection-tools{
  display:grid;
  grid-template-columns:minmax(220px,.75fr) minmax(310px,1.25fr);
  gap:20px 26px;
  margin-top:18px;
  padding:22px;
  border:1px solid #cfd8e5;
  border-radius:20px;
  background:#f8fafc;
  box-shadow:0 10px 28px rgba(16,45,98,.06);
}
.calendar-selection-tools h3{
  margin:5px 0 7px;
  color:#102d62;
  font:700 1.65rem/1 Georgia,serif;
  letter-spacing:-.025em;
}
.calendar-selection-tools p{
  margin:0;
  color:#657080;
  font-size:.78rem;
  line-height:1.5;
}
.selection-tools-heading{
  display:grid;
  align-content:start;
}
.selection-tools-heading output{
  display:inline-flex;
  align-items:center;
  justify-self:start;
  min-height:34px;
  margin-top:13px;
  padding:6px 10px;
  border-radius:999px;
  color:#102d62;
  background:#e9f0f9;
  font-size:.7rem;
  font-weight:900;
}

.selection-tools-controls{display:grid;gap:12px}
.calendar-quick-presets{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.calendar-quick-presets button{
  display:grid;
  gap:4px;
  min-height:58px;
  padding:11px 13px;
  border:1px solid #cbd5e3;
  border-radius:13px;
  color:#102d62;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.calendar-quick-presets button:hover{
  border-color:#102d62;
  box-shadow:0 7px 18px rgba(16,45,98,.08);
}
.calendar-quick-presets strong{font-size:.78rem}
.calendar-quick-presets small{color:#697587;font-size:.64rem;font-weight:800}

.calendar-range-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)) auto;
  gap:9px;
  align-items:end;
}
.calendar-range-form label{display:grid;gap:5px}
.calendar-range-form label>span{
  color:#5b6676;
  font-size:.61rem;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.calendar-range-form input{
  width:100%;
  min-width:0;
  min-height:44px;
  padding:9px 10px;
  border:1px solid #c8d2e0;
  border-radius:10px;
  color:#172033;
  background:#fff;
  font-size:.76rem;
  font-weight:800;
}
.calendar-range-form button,
.selection-tools-footer button{
  min-height:44px;
  padding:9px 13px;
  border:1px solid #102d62;
  border-radius:10px;
  color:#102d62;
  background:#fff;
  font-size:.7rem;
  font-weight:900;
  cursor:pointer;
}
.calendar-range-form button{
  color:#fff;
  background:#102d62;
}

.selection-tools-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:11px;
  border-top:1px solid #dce3ec;
}
.selection-tools-footer>span{
  color:#526075;
  font-size:.7rem;
  line-height:1.4;
}
.selection-tools-actions{
  display:flex;
  flex:0 0 auto;
  gap:7px;
}
.selection-tools-actions [data-review-selection]{
  color:#fff;
  background:#102d62;
}
.selection-tools-actions button:disabled{
  opacity:.42;
  cursor:not-allowed;
}

@media(max-width:900px){
  .calendar-selection-tools{grid-template-columns:1fr}
  .selection-tools-heading{
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px 18px;
  }
  .selection-tools-heading p{grid-column:1}
  .selection-tools-heading output{grid-column:2;grid-row:1/3;margin-top:0;align-self:center}
}

@media(max-width:720px){
  .calendar-head{align-items:flex-start}
  .calendar-head-actions{max-width:176px}
  .calendar-month-picker{order:-1;width:100%;min-width:0}
  .calendar-month-picker select{min-height:40px}
  .calendar-selection-tools{
    gap:16px;
    margin-top:12px;
    padding:16px;
    border-radius:16px;
  }
  .calendar-selection-tools h3{font-size:1.4rem}
  .selection-tools-heading{display:grid;grid-template-columns:1fr}
  .selection-tools-heading p,.selection-tools-heading output{grid-column:auto;grid-row:auto}
  .selection-tools-heading output{margin-top:7px}
  .calendar-quick-presets{grid-template-columns:1fr 1fr}
  .calendar-quick-presets button{min-height:64px;padding:10px}
  .calendar-range-form{grid-template-columns:1fr 1fr}
  .calendar-range-form button{grid-column:1/-1}
  .selection-tools-footer{align-items:stretch;flex-direction:column}
  .selection-tools-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .selection-tools-actions button{width:100%}
}

@media(max-width:420px){
  .calendar-head-actions{max-width:154px}
  .calendar-quick-presets{grid-template-columns:1fr}
  .calendar-range-form{grid-template-columns:1fr}
  .calendar-range-form button{grid-column:auto}
}

@media(prefers-reduced-motion:reduce){
  .calendar-quick-presets button{transition:none}
}
