/* LLUMEA V6 — calendario semanal administrativo */
.admin-week-card-v6 {
    margin-bottom: 28px;
    overflow: hidden;
}

.admin-week-card-v6 .week-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.admin-week-card-v6 .week-inline-nav {
    display: grid;
    grid-template-columns: auto minmax(160px, auto) auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid #eadfd2;
    border-radius: 13px;
    background: #f8f1e9;
}

.admin-week-card-v6 .week-inline-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    color: #8d6028;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.admin-week-card-v6 .week-inline-nav a:hover {
    background: #fffaf3;
}

.admin-week-card-v6 .week-inline-nav strong {
    text-align: center;
    color: #3f3023;
    font-size: 14px;
    white-space: nowrap;
}

.admin-calendar-wrap-v6 {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #e5d8ca;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    -webkit-overflow-scrolling: touch;
}

.admin-week-grid-v6 {
    --calendar-columns: 72px repeat(7, minmax(132px, 1fr));
    display: grid !important;
    grid-template-columns: var(--calendar-columns) !important;
    grid-template-rows: 66px repeat(var(--calendar-rows), 46px) !important;
    min-width: 996px;
    position: relative;
    isolation: isolate;
    background: #fffdf9;
}

.admin-week-grid-v6 .cal-head-v6,
.admin-week-grid-v6 .cal-time-v6,
.admin-week-grid-v6 .cal-cell-v6 {
    min-width: 0;
    box-sizing: border-box;
    border-right: 1px solid #ece2d7;
    border-bottom: 1px solid #ece2d7;
}

.admin-week-grid-v6 .cal-head-v6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 8px 5px;
    background: #f6eee5;
    color: #35291f;
}

.admin-week-grid-v6 .cal-head-v6 span {
    font-size: 10px;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94795d;
}

.admin-week-grid-v6 .cal-head-v6 strong {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
}

.admin-week-grid-v6 .cal-head-v6.today {
    background: #ead5b7;
    box-shadow: inset 0 -3px 0 #b98032;
}

.admin-week-grid-v6 .cal-time-v6 {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: sticky;
    left: 0;
    z-index: 15;
    padding-top: 7px;
    background: #faf5ef;
    color: #735f4d;
    font-size: 11px;
    font-weight: 650;
}

.admin-week-grid-v6 .cal-time-head-v6 {
    z-index: 25;
    align-items: center;
    padding-top: 0;
}

.admin-week-grid-v6 .cal-cell-v6 {
    background: #fffdf9;
}

.admin-week-grid-v6 .cal-cell-v6:nth-of-type(even) {
    background: #fefbf7;
}

.admin-week-grid-v6 .cal-cell-v6.current-day {
    background: #fffbf3;
}

.admin-week-grid-v6 .calendar-booking-v6 {
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    margin: 3px 5px;
    padding: 6px 8px 6px 10px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--service-color) 45%, #dbcbb8);
    border-left: 4px solid var(--service-color);
    border-radius: 8px;
    background: color-mix(in srgb, var(--service-color) 11%, #fffdf9);
    box-shadow: 0 3px 10px rgba(77, 53, 30, .09);
    color: #30251d;
    text-decoration: none;
}

.admin-week-grid-v6 .calendar-booking-v6:hover {
    z-index: 30;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(77, 53, 30, .15);
}

.admin-week-grid-v6 .calendar-booking-v6 strong,
.admin-week-grid-v6 .calendar-booking-v6 small,
.admin-week-grid-v6 .calendar-booking-v6 span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-week-grid-v6 .calendar-booking-v6 strong {
    font-size: 12px;
    line-height: 1.2;
}

.admin-week-grid-v6 .calendar-booking-v6 small {
    margin-top: 2px;
    color: #736251;
    font-size: 10px;
    line-height: 1.2;
}

.admin-week-grid-v6 .calendar-booking-v6 span {
    margin-top: 3px;
    color: #8c602a;
    font-size: 9px;
    font-weight: 700;
}

.admin-calendar-empty-v6 {
    padding: 30px;
    border: 1px dashed #dccbb9;
    border-radius: 12px;
    text-align: center;
    color: #7d6d5d;
    background: #fcf8f3;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    .admin-week-grid-v6 .calendar-booking-v6 {
        border-color: #decbb6;
        background: #f4e8da;
    }
}

@media (max-width: 850px) {
    .admin-week-card-v6 .week-section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-week-card-v6 .week-inline-nav {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .admin-week-card-v6 {
        padding: 16px;
    }

    .admin-week-card-v6 .week-inline-nav {
        grid-template-columns: 1fr auto 1fr;
        gap: 4px;
    }

    .admin-week-card-v6 .week-inline-nav a {
        padding: 0 7px;
        font-size: 11px;
    }

    .admin-week-card-v6 .week-inline-nav strong {
        font-size: 12px;
    }

    .admin-calendar-wrap-v6 {
        border-radius: 10px;
    }

    .admin-week-grid-v6 {
        --calendar-columns: 58px repeat(7, 112px);
        grid-template-rows: 58px repeat(var(--calendar-rows), 42px) !important;
        min-width: 842px;
    }

    .admin-week-grid-v6 .calendar-booking-v6 {
        margin: 2px 3px;
        padding: 5px 6px;
    }

    .admin-week-grid-v6 .calendar-booking-v6 span {
        display: none;
    }
}
