.wc-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(40px, 1fr));
    gap: 4px;
	
	position: relative;
    z-index: 1;
	
	pointer-events: auto;
}

.wc-header div {
    font-weight: bold;
    text-align: center;
}

.wc-day {
    border-radius: 10px;        /* 🔥 rounded corners */
    padding: 10px 0;            /* controls height */
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    transition: transform 0.1s ease;
	
	position: relative;
    z-index: 10;
	
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}


.wc-day:hover {
    transform: scale(1.05);
}

.wc-day.empty {
    background: transparent;
    cursor: default;
}

#wc-popup {
    display: none;
    position: fixed;
    top: 20%;
    left: 40%;
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
	z-index: 9999;    /* very high to stay above admin elements */
}


.wc-header {
    font-weight:bold;
}

.wc-calendar {
    max-width: 420px;   /* 🔥 keeps it nice on desktop */
    margin: 0 auto;     /* center it */
}

.wc-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}


#wc-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    pointer-events: none;
    display: none;
    z-index: 9999;
	transform: translateX(-50%);
	
	max-width: 90vw;
    white-space: normal;
}


.wc-legend {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
	position: relative;
	z-index: 20;
}

.wc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.wc-download-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.wc-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 4px 8px;
    font-size: 12px;

    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;

    transition: all 0.15s ease;
}

/* iCal button */
.wc-btn-ical {
    background: #e5e7eb;
    color: #111;
}

.wc-btn-ical:hover {
    background: #d1d5db;
}

/* Google button */
.wc-btn-google {
    background: #4285F4;
    color: white;
}

.wc-btn-google:hover {
    background: #3367d6;
}

.wc-btn svg {
    display: block;
}

/* better mobile fit */
@media (max-width: 600px) {
    .wc-calendar {
        max-width: 100%;
        padding: 0 5px;
    }

    .wc-day {
        font-size: 12px;
    }
}


/* popup full width on mobile */
#wc-popup {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
}

/* big tap buttons */
.wc-status-buttons {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.wc-status {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    color: white;
}

.wc-green { background: #22c55e; }
.wc-orange { background: #f59e0b; }
.wc-red { background: #ef4444; }

/* active state */
.wc-status.active {
    outline: 3px solid #000;
}

/* workshop select */
.wc-workshop-select {
    margin-top: 10px;
}

#wc-workshop {
    width: 100%;
    padding: 8px;
    font-size: 14px;
}

/* buttons */
.wc-popup-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

#wc-save, #wc-cancel {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
}

.wc-block {
    margin-bottom: 15px;
}

.wc-block strong {
    display: block;
    margin-bottom: 6px;
}

.wc-workshop {
    width: 100%;
    margin-top: 6px;
    padding: 6px;
}