/* Force uniform row height across all rooms on the schedule grid */
table.reservations tr {
    height: 32px !important;
    max-height: 32px !important;
}

table.reservations td.resourcename,
table.reservations td.slot,
table.reservations div.reserved {
    height: 32px !important;
    max-height: 32px !important;
    line-height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Darker vertical border at the start of every hour (:00:00 in ref timestamp + header labels) */
table.reservations td.reslabel,
table.reservations tr.slots td[ref*="0000"] {
    border-left: 2px solid #495057 !important;
}

/* Darker vertical border at the start of every hour */
table.reservations td.resourcename,
table.reservations td.resdate,
table.reservations td.reslabel,
table.reservations tr.slots td[ref*="4500"] {
    border-right: 2px solid #495057 !important;
}

table.reservations td.reslabel,
table.reservations tr.slots td[ref*="0000"] {
    border-left: 2px solid #495057 !important;
}

/* Hide self-registration prompt and link on the login page */
#login-box .register,
div.register,
a[href*="register.php"] {
    display: none !important;
}

/* Hide password reset link on the login page */
a[href*="forgot.php"] {
    display: none !important;
}

/* Hide My Account navigation dropdown and account-management links */
#navMyAccount,
li.dropdown:has(a[href*="profile.php"]),
a[href*="profile.php"],
a[href*="password.php"],
a[href*="notification-preferences.php"] {
    display: none !important;
}

/* Increase schedule grid font sizes for readability */
table.reservations td.resdate,
table.reservations td.reslabel {
    font-size: 15px !important;
    font-weight: 600 !important;
}

table.reservations td.resourcename,
table.reservations td.resourcename a {
    font-size: 15px !important;
}

table.reservations div.reserved {
    font-size: 14px !important;
}

/* Hide Private Function Notes (attribute ID 4) unless signed in as admin (1) or privfunc (3) */
body:not([data-userid="1"]):not([data-userid="2"]):not([data-userid="3"]) .customAttribute:has([name="psiattribute[4]"]) {
    display: none !important;
}

/* Highlight Tentative bookings distinctly on the schedule grid */
table.reservations div.reserved:has(*:is(span, div, a)) {
    transition: background-color 0.15s ease;
}
table.reservations div.reserved[data-tooltip*="Tentative" i],
table.reservations div.reserved[title*="Tentative" i] {
    background: repeating-linear-gradient(
        -45deg,
        #fff3cd,
        #fff3cd 8px,
        #ffe69c 8px,
        #ffe69c 16px
    ) !important;
    color: #664d03 !important;
    border: 2px dashed #d39e00 !important;
}

/* Amber striped highlight for Tentative reservations on the schedule grid */
.reserved[data-tentative="1"],
.reserved[title*="Tentative" i],
.reserved[data-tooltip*="Tentative" i] {
    background: repeating-linear-gradient(
        -45deg,
        #fff3cd,
        #fff3cd 8px,
        #ffe69c 8px,
        #ffe69c 16px
    ) !important;
    color: #664d03 !important;
    border: 2px dashed #d39e00 !important;
}

/* Hide Participants (.users) and Accessories (.accessories) in hover popup */
.res_popup_details .users,
.res_popup_details .accessories {
    display: none !important;
}


/* Hide the top color legend bar */
div.schedule-legend,
div.schedule-legend > div {
    display: none !important;
}



/* Make future unbooked slots plain white on read-only views (/View and vibrant user_id=4) while keeping past slots default gray */
body:not([data-userid]) td.unreservable:not(.pasttime),
body:not([data-userid]) td.restricted:not(.pasttime),
body[data-userid=""] td.unreservable:not(.pasttime),
body[data-userid=""] td.restricted:not(.pasttime),
body[data-userid="0"] td.unreservable:not(.pasttime),
body[data-userid="0"] td.restricted:not(.pasttime),
body[data-userid="4"] td.unreservable:not(.pasttime),
body[data-userid="4"] td.restricted:not(.pasttime) {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Strip the diagonal hatch from past slots on read-only views so they match bookers/privfunc solid dark gray */
td.unreservable.pasttime,
td.restricted.pasttime,
td.pasttime {
    background-image: none !important;
    background-color: #d0d0d0 !important;
}

/* Hide Reports menu from read-only vibrant account (user_id=4) */
body[data-userid="4"] a[href*="reports"] {
    display: none !important;
}

/* Hide entire Reports dropdown menu from read-only vibrant account (user_id=4) */
body[data-userid="4"] .navbar-nav > li:has(a[href*="reports"]),
body[data-userid="4"] a[href*="reports"] {
    display: none !important;
}

/* Keep vibrant (user_id=4) focused strictly on the Schedule view */
body[data-userid="4"] .navbar-nav > li:has(a[href*="dashboard"]),
body[data-userid="4"] .navbar-nav > li:has(a[href*="participation"]),
body[data-userid="4"] .navbar-nav > li:has(a[href*="my-calendar"]),
body[data-userid="4"] .navbar-nav > li:has(a[href*="search-availability"]),
body[data-userid="4"] a[href*="search-availability"] {
    display: none !important;
}

/* Keep navbar visible for vibrant (user_id=4) so Sign Out remains accessible */

/* Hide the left-side Check (Resources / Schedule) dropdown for vibrant (user_id=4) while keeping Sign Out */
body[data-userid="4"] #navSchedule,
body[data-userid="4"] .navbar-nav:not(.navbar-right) > li.dropdown,
body[data-userid="4"] .navbar-nav > li.dropdown:has(a[href*="schedule.php"]) {
    display: none !important;
}
