/* ================== GROUP BOOKING ==========================*/
.group-calendar__header .w-20 {
	width: 20%;
}
.group-calendar__week-label {
    font-size: 15px;
    font-weight: 500;
    min-width: 180px;
    text-align: center;
}

.second-screen__nav-btn {
	background: transparent;
	border: none;
  	font-size: 2em;
}
.second-screen__nav-btn:hover > i {
	color:  var(--main-green);
	cursor: pointer;
}
.group-calendar__nav .btn-today {
	background-color: var(--btn-primary);
	padding: .3rem .5rem;
	font-size: .8em;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	color: var(--white);
}

/* GRID LAYOUT */
.group-calendar {
    display: grid;
    grid-template-columns: 52px repeat(7, 1fr);
    border: 1px solid var(--grey-background, #eee);
    border-radius: 8px;

    height: calc(100dvh - 340px);
	overflow: scroll;
	overflow-x: auto;
}

/* TIMES COLUMN */
.group-calendar__times {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--grey-background, #eee);
}
.group-calendar__time-header {
    height: 48px;
    border-bottom: 1px solid var(--grey-background, #eee);
}
.group-calendar__time-slot {
    height: 80px;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
    padding-right: 6px;
    font-size: 11px;
    color: #888;
    justify-content: flex-end;
    border-bottom: 1px solid var(--grey-background, #eee);
}

/* DAY COLUMNS */
.group-calendar__col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--grey-background, #eee);
    min-width: 0;
}
.group-calendar__col:last-child {
    border-right: none;
}
.group-calendar__col--weekend .group-calendar__day-body {
    background: #fafafa;
}

/* DAY HEADER */
.group-calendar__day-header {
    position: sticky;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--grey-background, #eee);
    gap: 2px;
    top: 0;
    z-index: 3;
    background-color: var(--white);
}
.group-calendar__day-header--today .group-calendar__day-num {
    background: var(--btn-primary);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.group-calendar__weekday {
    font-size: 8px;
    text-transform: uppercase;
    color: #888;
}
.group-calendar__day-num {
    font-size: 15px;
    font-weight: 500;
}

/* DAY BODY */
.group-calendar__day-body {
    position: relative;
    height: 780px;
    flex: 1;
}
.group-calendar__hour-row {
    position: absolute;
    left: 0; right: 0;
    height: 80px;
    border-bottom: 1px solid var(--grey-background, #eee);
}
/* position hour rows */
.group-calendar__hour-row:nth-child(1) { top: 0px; }
.group-calendar__hour-row:nth-child(2) { top: 80px; }
.group-calendar__hour-row:nth-child(3) { top: 160px; }
.group-calendar__hour-row:nth-child(4) { top: 240px; }
.group-calendar__hour-row:nth-child(5) { top: 320px; }
.group-calendar__hour-row:nth-child(6) { top: 400px; }
.group-calendar__hour-row:nth-child(7) { top: 480px; }
.group-calendar__hour-row:nth-child(8) { top: 560px; }
.group-calendar__hour-row:nth-child(9) { top: 640px; }
.group-calendar__hour-row:nth-child(10) { top: 720px; }
.group-calendar__hour-row:nth-child(11) { top: 800px; }
.group-calendar__hour-row:nth-child(12) { top: 880px; }
.group-calendar__hour-row:nth-child(13) { top: 960px; }

/* TASK BLOCKS */
.group-task {
    position: absolute;
    min-height: 24px;
    border-radius: 6px;
    padding: 4px 6px;
    overflow: visible;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: opacity .15s, box-shadow .15s;
    z-index: 1;
	color: #fff;
	top: var(--task-top);
    height: var(--task-height);
    left: var(--task-left);
    width: var(--task-width);
    background: var(--task-color);
}

.group-task * {
	color: var(--white)
}

.group-task:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
	z-index: 2;
}

.group-task__content {
    overflow: hidden;
    height: 100%;
}

.group-task--full {
    cursor: not-allowed;
	background: #313131 !important;
    opacity: .7;
}

.group-task--full:hover {
	box-shadow: none;
}

.group-task--past {
    cursor: not-allowed;
	opacity: .7;
}

.group-task--selected {
	box-shadow: 0 2px 8px rgba(0,0,0,.5);
	background: var(--btn-primary) !important;
}

.group-task__hover-info {
    display: none;
    position: absolute;
	background: #333;
    z-index: 100;
    border-radius: 6px;
    padding: 8px;
    min-width: 160px;
    top: 0;
    left: 105%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #333;
    white-space: nowrap;
}

.group-task__hover-info .text-green,
.group-task__hover-info .text-green span {
	color: var(--main-green);
}

.group-task__hover-info .text-red,
.group-task__hover-info .text-red span {
	color: var(--text-red);
}

.group-task:hover .group-task__hover-info {
    display: block;
}

/* ========== GROUP RESPONSIVE ========== */
@media (max-width: 850px) {
    .left-side-group {
        padding: 8rem 1rem 1rem 1rem;
    }

	.group-calendar__container {
		margin-top: 1rem;
	}

	.group-calendar__header {
		position: sticky;
		left: 0;
		right: 0;
	}

    .group-calendar {
        grid-template-columns: 40px repeat(7, 180px);
    }

    .group-calendar__times {
        position: sticky;
        left: 0;
        z-index: 4;
        background-color: var(--white);
    }

    .group-calendar__time-slot {
        font-size: .7em;
    }

    .group-task__time { display: none; }
}

@media (max-width: 480px) {
	.left-side-group {
		padding: 5rem 1rem 1rem 1rem;
	}

    .group-calendar {
        height: calc(100dvh - 210px);
    }
}