﻿:root {
    --bs3-primary: #337ab7;
    --bs3-success: #3c763d;
    --bs3-warning: #8a6d3b;
    --bs-warning-darkened: #806104; /* equivalent to --bs-warning with brightness of .5 */
    --bs-text-muted-darkened: #5a6268; /* --bs-text-muted-color darkened to keep WCAG AA contrast on tinted backgrounds */
    --participation-observed-color: var(--bs3-primary);
    --participation-assisted-color: var(--bs3-warning);
    --participation-performed-color: var(--bs3-success);
    --date-col-min-width: 5.375rem;
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body > header + .container {
    margin-top: 5rem;
}

.navbar-brand.navbar-brand-icon {
    padding: 0;
    margin: -.3rem 1.125rem -.5rem -.5rem;
}

a.underline-on-hover {
    text-decoration: none;
}

a.underline-on-hover:hover {
    text-decoration: underline;
}

.navbar-brand.navbar-brand-app-name,
.navbar-brand.navbar-brand-app-name:hover {
    color: #FFCD00;
}

.navbar-brand > img {
    max-height: 3.5rem;
}

.navbar-text {
    font-size: smaller;
}

.view-header a:not(:hover) {
    text-decoration: none;
}

.view-header .breadcrumb-item:not(.active):not(:hover),
.breadcrumb-item + .breadcrumb-item::before {   /* this is the breadcrumb divider */
    opacity: .5;
}

.view-header .breadcrumb-item.active {
    color: var(--bs-body-color);
}

.view-header .badge.bg-secondary > a {
    color: rgb(237, 244, 255);  /* equivalent to --bs-link-color (on white bg) with alpha of .075 */
}

.view-header .course-badge {
    margin-right: .75rem;
}

.dataTables-length-wrapper > .dataTables_length  {
    display: inline-block;
    vertical-align: middle;
}

.dataTables-length-wrapper > #export-btn {
    vertical-align: baseline;
}

div.dataTables_processing {
    margin-top: -180px !important;
    z-index: 10;
}

table.table-layout-fixed {
    table-layout: fixed;
}

table tr:not(:hover) a {
    text-decoration: none;
}

/*
    Restore Bootstrap 5.3 striping/hover on DataTables. ccom-pflanagan-datatables 3.0.2 negates the
    box-shadow from dataTables.bootstrap5.css with "box-shadow: none", which also wipes out the
    box-shadow Bootstrap 5.3 itself uses to paint .table-striped / .table-hover. This mirrors the
    fix in ccom-pflanagan-datatables 4.0.x but with DataTables 1.x row classes; remove it when the
    app moves to DataTables 2.x + ccom-pflanagan-datatables 4.x.
*/
table.table.dataTable.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: var(--bs-table-hover-color);
    --bs-table-bg-state: var(--bs-table-hover-bg);
}

/* the extra .table out-specifies the box-shadow:none rules, which load after site.css */
table.table.dataTable.table-striped > tbody > tr.odd > *,
table.table.dataTable.table-hover > tbody > tr:hover > * {
    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}

tr.inactive,
td.inactive,
.table-striped > tbody > tr.inactive:nth-of-type(odd) > *,
.table-hover > tbody > tr.inactive:hover > * {
    color: var(--bs-text-muted-color) !important;
}

table.wrap-text td {
    white-space: normal;
    word-wrap: break-word; /* For legacy browsers */
    word-break: break-word; /* Ensures long words break */
    overflow-wrap: break-word; /* Standard rule for text wrapping */
}

table.mute-links-until-td-hover td:not(:hover) a,
table.mute-links-until-tr-hover tr:not(:hover) a,
table td:not(:hover) .mute-unless-td-hover,
table tr:not(:hover) .mute-unless-tr-hover {
    color: var(--bs-text-muted-color) !important;
    opacity: 0.40;
}

.table-checklist td,
.table-checklist.table-striped > tbody > tr:nth-of-type(odd):not(:hover) > * {
    color: var(--bs-text-muted-color);
}

.table-checklist td:first-child {
    width: 1rem;
    text-align: center;
}

.table-checklist td:first-child > i {
    opacity: .125;
}

.table-checklist tr.checked > td,
.table-checklist tr.checked > td > i,
.table-checklist.table-striped > tbody > tr.checked:nth-of-type(odd) > * {
    font-weight: bold;
    color: var(--bs-table-color);
    opacity: 1;
}

.form-floating-label-style {
    color: var(--bs-placeholder-color);
    transform: matrix(0.85, 0, 0, 0.85, 2.04, -8.16);
    opacity: var(--form-floating-label-opacity);
}

/* This positions the audit icon to the left of the close button */
.modal-header.with-audit-icon .audit-icon {
    transform: translateX(-30px);
}

/* This shifts the close button back to where it would have been if there were no audit icon */
.modal-header.with-audit-icon .btn-close {
    transform: translateX(20px);
}

.scrollable {
    overflow-y: auto;
}

/* Participation icons */

.participation-observed i {
    color: var(--participation-observed-color);
}

.participation-assisted i {
    color: var(--participation-assisted-color);
}

.participation-performed i {
    color: var(--participation-performed-color);
}