/* ==========================================================================
   LibCal WordPress Plugin – Widget Styles
   Matches the HTML structure and class names used on libraries.uh.edu
   ========================================================================== */

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.hide {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Hours tables (week & today)
   -------------------------------------------------------------------------- */

table.custom-striped {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

table.custom-striped tbody tr:nth-child(odd) {
    background-color: #f7f7f7;
}

table.custom-striped td {
    padding: 6px 10px;
    vertical-align: top;
    border-bottom: 1px solid #e5e5e5;
}

/* Week view */
td.branch-day {
    font-weight: 600;
    white-space: nowrap;
    width: 40%;
}

td.branch-day-hours {
    width: 60%;
}

/* Today view */
td.branch-name {
    font-weight: 600;
    width: 55%;
}

td.branch-name a {
    color: inherit;
    text-decoration: none;
}

td.branch-name a:hover {
    text-decoration: underline;
}

td.branch-hours {
    width: 45%;
}

/* --------------------------------------------------------------------------
   Events widget
   -------------------------------------------------------------------------- */

table.calendarific-widget-header,
table.calendarific-widget-footer,
table.calendarific-widget-table {
    width: 100%;
    border-collapse: collapse;
}

table.calendarific-widget-header td {
    padding: 6px 0 8px;
    font-weight: 700;
    font-size: 1em;
}

table.calendarific-widget-header a,
table.calendarific-widget-footer a {
    color: inherit;
    text-decoration: none;
}

table.calendarific-widget-header a:hover,
table.calendarific-widget-footer a:hover {
    text-decoration: underline;
}

#calendarific-widget-scrollbox {
    max-height: 320px;
    overflow-y: auto;
}

table.calendarific-widget-table tr {
    border-bottom: 1px solid #e5e5e5;
}

table.calendarific-widget-table tr:last-child {
    border-bottom: none;
}

td.calendarific-widget-date {
    width: 52px;
    min-width: 52px;
    text-align: center;
    vertical-align: top;
    padding: 8px 6px 8px 0;
}

.calendarific-widget-date-month {
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

.calendarific-widget-date-number {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}

td.calendarific-widget-name {
    vertical-align: top;
    padding: 8px 0;
}

.calendarific-widget-event-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.calendarific-widget-event-title a {
    color: inherit;
    text-decoration: none;
}

.calendarific-widget-event-title a:hover {
    text-decoration: underline;
}

.calendarific-widget-event-time {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 2px;
}

.calendarific-widget-event-location {
    font-size: 0.82em;
    color: #666;
}

table.calendarific-widget-footer td {
    padding: 6px 0 0;
    font-size: 0.85em;
}
