.calendar-period-text { display: inline-block; padding-right: 2rem !important; }
.calendar-period-trigger { position: relative; width: 1.8rem; margin-left: -1.8rem; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.calendar-period-dialog { width: 20rem; max-width: calc(100vw - 2rem); padding: 1rem; border: 1px solid #adb5bd; border-radius: .5rem; color: #212529; background: white; box-shadow: 0 .5rem 2rem #0003; }
.calendar-period-dialog::backdrop { background: #0003; }
.calendar-period-header, .calendar-period-footer { display: flex; justify-content: space-between; gap: .5rem; }
.calendar-period-header input { width: 7rem; text-align: center; }
.calendar-period-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .8rem 0; }
.calendar-period-dialog button { border: 1px solid #adb5bd; border-radius: .25rem; background: #f8f9fa; padding: .4rem; color: #212529; cursor: pointer; }
.calendar-period-dialog button[aria-pressed="true"] { background: #0d6efd; color: white; }
.calendar-period-dialog button:disabled { opacity: .4; cursor: default; }
