.calendar-entry-widget {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 60%;
}

.event-times {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
}

.event-times .col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
    margin-right: 10px;
}

.all-day-checkbox {
    margin-top: 5px;
}

input[type="datetime-local"] {
    width: 100%;
    max-width: 200px;
}

.recurrence-rule-container {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.recurrence-details {
    margin-top: 10px;
}

.end-recurrence, .byhour-byminute-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.end-recurrence > label:first-child {
  width: 100px !important;
}

.end-recurrence label {
    flex-basis: auto;
    min-width: auto !important;
    width: auto !important;
}

.byhour-container label, .byminute-container label {
    width: 180px;
    display: flex;
    flex-direction: column;
}

.end-date-links {
    display: flex;
    gap: 30px;
    align-items: center;
    text-wrap: nowrap;
}

.end-recurrence input[type="radio"] {
    margin: 5px 0;
}

.byhour-input, .byminute-input {
    width: 100%;
}

.frequency-interval {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.frequency-interval label {
    width: 120px;
    min-width: 120px;
}

.frequency-interval select {
    margin-left: 4px;
}

.event-container {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.exclusions-container {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.event-container .help {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.calendar-entry-text {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.calendar-entry-text ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

button {
    margin-top: 5px;
}

input[type="date"], input[type="datetime-local"] {
    width: 180px;
}

.interval-input {
    width: 60px;
}

.weekday-button, .month-button, .bysetpos-button {
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.weekday-button.selected, .month-button.selected, .bysetpos-button.selected {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.bysetpos-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
}
