html {
    font-size: 14px;
}

body {
    background-color: #f8f9fa;
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
}

.badge {
    font-size: 0.85rem;
}

.calendar-header .btn {
    width: 2.5rem;
}

.table-scroll {
    max-height: 800px;
    overflow-y: auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(2.5rem, 1fr));
    gap: 0.5rem;
}

.calendar-cell {
    background: #fff;
    border-radius: 0.5rem;
    min-height: 3.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.calendar-cell--label {
    background: transparent;
    border: none;
    font-weight: 600;
    text-align: center;
    cursor: default;
}

.calendar-day-number {
    font-weight: 600;
}

.calendar-cell--muted {
    color: #adb5bd;
    background: #f1f3f5;
}

.calendar-cell--has-events {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.15);
}

.calendar-cell--selected {
    background: #0d6efd;
    color: #fff;
    border-color: #0a58ca;
}

.calendar-cell--selected.calendar-cell--muted {
    background: #467fd0;
}


.calendar-cell--incomplete .calendar-day-number {
    color: #adb5bd;
}

.event-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e9ecef;
    padding-right: 1.75rem;
    transition: background 0.2s ease;
}

.event-chip--active {
    background: rgba(13, 110, 253, 0.15);
    border: 1px solid #0d6efd;
}

.event-chip__button {
    border: none;
    background: transparent;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
}

.event-chip__delete {
    position: absolute;
    right: 0.25rem;
    border: none;
    background: transparent;
    color: #dc3545;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}

.event-chip__delete:hover {
    color: #a71d2a;
}

.new-event-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
}

.new-event-row .form-control {
    width: 100%;
}
