/* Calendario semanal estilo Outlook - Clubs Connection */

.cc-cal-fullscreen {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;
}

.cc-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f3f2f1;
    border-bottom: 1px solid #d9d9d9;
}

.cc-cal-toolbar button {
    background: #0f5132;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.cc-cal-toolbar button:hover { background: #0a3d25; }

.cc-cal-range { font-weight: 600; font-size: 15px; color: #1b1b1b; }

.cc-cal-grid-wrap {
    height: 78vh;
    overflow-y: auto;
    overflow-x: auto;
}

.cc-cal-grid {
    display: grid;
    /* columna de horas + 7 días */
    grid-template-columns: 70px repeat(7, minmax(120px, 1fr));
    min-width: 900px;
}

.cc-cal-col-header {
    position: sticky;
    top: 0;
    background: #fafafa;
    border-bottom: 2px solid #0f5132;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    z-index: 2;
}

.cc-cal-time-label {
    font-size: 11px;
    color: #666;
    text-align: right;
    padding-right: 6px;
    border-right: 1px solid #eee;
    border-top: 1px solid #f0f0f0;
    height: 28px; /* 30 minutos = 28px de alto */
    box-sizing: border-box;
}

.cc-cal-slot {
    border-top: 1px solid #f0f0f0;
    border-right: 1px solid #f5f5f5;
    height: 28px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.1s ease;
}

.cc-cal-slot:hover { background: #eaf6ee; }

.cc-cal-slot.cc-slot-free { background: #ffffff; }

.cc-cal-slot.cc-slot-blocked {
    background: repeating-linear-gradient(45deg, #f3d6d6, #f3d6d6 4px, #f9e8e8 4px, #f9e8e8 8px);
}

.cc-cal-slot.cc-slot-match {
    background: #ffcf40; /* tono ámbar, tema de reflectores */
    font-size: 10px;
    color: #3a2a00;
}

.cc-cal-slot.cc-slot-hour-start {
    border-top: 1px solid #d0d0d0;
}

@media (max-width: 782px) {
    .cc-cal-grid-wrap { height: 65vh; }
}
