.kp-kalendarz {
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* LISTA */

.kp-kalendarz-lista .kp-event {
    display: flex;
    gap: 12px;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: #fafafa;
    align-items: flex-start;
}

.kp-icon-wrap {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kp-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.kp-event-content {
    flex: 1;
}

.kp-date {
    font-weight: bold;
    color: #005bbb;
    margin-bottom: 4px;
    font-size: 15px;
}

.kp-title {
    font-size: 17px;
    margin-bottom: 4px;
}

.kp-desc {
    font-size: 14px;
    color: #555;
}

/* KALENDARZ MIESIĘCZNY */

.kp-kalendarz-miesiac {
    margin-top: 30px;
}

.kp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.kp-calendar-header-cell {
    background: #f0f4f8;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
}

.kp-calendar-cell {
    min-height: 80px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 4px;
    position: relative;
    font-size: 12px;
}

.kp-calendar-cell:nth-child(7n) {
    border-right: none;
}

.kp-calendar-day-number {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 13px;
}

.kp-calendar-event {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}

.kp-calendar-icon .kp-icon {
    width: 18px;
    height: 18px;
}

.kp-calendar-title {
    font-size: 11px;
}

/* Puste komórki */
.kp-calendar-cell.kp-empty {
    background: #fafafa;
}

/* Najbliższy termin */

.kp-next {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 6px;
    background: #fafafa;
    max-width: 400px;
}

.kp-next-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

.kp-next-date {
    font-weight: bold;
    color: #005bbb;
    margin-bottom: 4px;
}

.kp-next-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.kp-next-desc {
    font-size: 13px;
    color: #555;
}

/* Widok roku */

.kp-kalendarz-rok .kp-event {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

@media (max-width: 600px) {
    .kp-calendar-header-cell {
        font-size: 11px;
        padding: 6px;
    }
    .kp-calendar-cell {
        min-height: 60px;
        padding: 3px;
    }
    .kp-calendar-day-number {
        font-size: 11px;
    }
    .kp-calendar-title {
        font-size: 10px;
    }
}