/* MTSS styling */

/* card shadows */
.card-main {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* nav tabs custom styling */
.nav-tabs {
    border-bottom: 0;
    margin: 0;
    margin-left: 10px;
}

.nav-tabs .nav-item .nav-link {
    color: black;
    text-decoration: none;
}

.nav-tabs .nav-item .nav-link {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.nav-tabs .nav-item .nav-link.active {
    background-color: white;
}

.nav-tabs .nav-link.active {
    border-bottom: 1px solid white !important
}

/* nav pills custom styling */
.nav-blue .nav-pills .nav-link.active {
    color: white;
    background-color: #0d6efd !important; 
}

.nav-pills .nav-link {
    color: #000;
    background-color: #e8e8e8;
}
.nav-pills .nav-link.active {
    color: white;
    background-color: #5c636a; 
}
.nav-pills .nav-item {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* list group links custom styling */
.list-group-item-action {
    color: #000;
}
.list-group-item-action:hover {
    color: rgba(33, 37, 41, 0.75) !important;
}

/* filter row with dropdowns styling */
.main-btn-group .btn:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.main-btn-group .btn:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn {
    text-align: right;
}

/* data log skill filter dropdown adjustment */
.dropdown-label {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.dropdown-caret::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.1em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.input-group .search-nohighlight {
    border: 1px solid transparent;
}

.search-nohighlight:focus {
    box-shadow: none;
    border: 0;
    z-index: 0;
    border: 1px solid transparent;
}

/* accordion styling */

.accordion {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.25rem;
}

.accordion-item {
    margin: 0; 
    border: none;
}
    
.accordion-button {
    background-color: #fff ;
    box-shadow: none;
    font-size: inherit;
}

.accordion-button.collapsed {
    border-color: #dee2e6;
}
    
.accordion-button:not(.collapsed) {
    background-color: #fff ;
    color: #212529;
}
    
.accordion-body {
    padding: 20px;
}

.accordion-button:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

/* getting rid of the dotted line */
.offcanvas:focus {
    outline: none;
    box-shadow: 0;
}

/* visual fixes due to clashing stylesheets */
.link-dark, .link-primary {
    text-decoration: underline;
}

.bg-warning {
    background-color: #fda902 !important;
}

/* stop hiding !!! */
.uk-tooltip {
    z-index: 1100 !important;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .offcanvas.offcanvas-end {
        width: 100% !important; 
        height: 100%; 
    }
}

/* quick log tier chart */
#tierChart {
    width: 100% !important;
}

/* table in the mtss notes */
.table-notes tr th, .table-notes tr td {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* accordion note creation */
#stepAccordion .accordion-button::after {
    display: none !important;
}

#stepAccordion .accordion-button {
    border: none;
    outline: none;
    box-shadow: none;
}

.select-positive {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}
.select-questionable {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
}
.select-poor {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

/* main table */
.custom-thead th {
    color: #fff; /* White text color */
    background-color: #36304a; /* Dark grey background for the header */
    border-bottom: 9px solid #4696Eb; /* Darker line for a bit of depth */
}

.custom-thead {
    border-radius: 10px; /* Standard Bootstrap border radius */
}

/* ensure that the rounding is only visible at the top corners of the table */
.table-rounded {
    border-collapse: separate;
    border-spacing: 0;
}

.table-rounded thead th:first-child {
    border-top-left-radius: 10px; /* Rounded top-left corner */
}

.table-rounded thead th:last-child {
    border-top-right-radius: 10px; /* Rounded top-right corner */
}

.clickable-row:hover {
    cursor: pointer;
}


/* table pagination */
.pagination {
    justify-content: center !important;
}

.paginate_button a:focus {
    outline: none;
    box-shadow: none;
}

/* whining that the sorting icons were positioned wrong =_= */
/* it's slow to load, and it's a formatting nightmare, but it works */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
    left: 0.5rem !important;
    top: 0.5rem;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    left: 1.2rem !important;
    top: 0.5rem;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    padding-left: 2.3rem;
}