/* CSS TOOLS */
:root {
    --bs-box-shadow: 0 5px 10px 0 #888888;
    --bs-border-color: #ced4da;
    --primary-color: #007bff;
}

html {
    font-size: 16px;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

a {
    text-decoration: none;
}


i {
    vertical-align: middle;
}

fieldset {
    margin: 0 0 40px 0;
    border: 0;
}

legend {
    font-size: 1em;
    font-weight: bold;
    padding: 5px 0 6px;
    text-transform: uppercase;
    width: 500px;
}

figure {
    margin: 0 auto;
    text-align: center;
}

.certificate-thumb {
    width: 200px;
}

figcaption {
    font-weight: bold;
    text-align: center;
}

.certificate-thumb figcaption {
    min-height: 3em;
    margin-bottom: 4px;
}

.cb { clear: both;}
.slightly-faded { opacity: 0.5; }
.slightly-faded-with-dropdown .card-body,
.slightly-faded-with-dropdown a { opacity: 0.5; }
.faded { opacity: 0.25; }
.required-asterisk { font-weight: bold; color: #B30000; vertical-align: top;}
.context-menu { float: right; cursor: pointer; color: black; opacity: 0.5; font-size: 28px; }
.sub-context-menu { float: right; cursor: pointer; color: black; opacity: 0.25; }
.width-auto { width: auto; }

.icon-16 {
    height: 16px;
    width: 16px;
}

.note {
    font-size: 0.9em;
    color: #556075;
}

.list-group {
    margin-bottom: 1rem;
}

/* For the TestReach status page */

.clearfix {
    display: inline-block;
}

.btn-half {
    width: 49%;
}

/* CORACLE HEADER */

#header-nav, #footer-nav, .footer {
    background-color: var(--brand-nav-bg);
    color: var(--brand-nav-link-color);
    font-family: var(--brand-font);
    font-size: 1rem;
    /* Pages like the CAS login provide an empty header */
    min-height: 80px;
}

#header-nav .nav-link, #footer-nav a {
    color: var(--brand-nav-link-color) !important;
}

#header-nav {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#header-nav .navbar-brand {
    height: 80px; 
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    align-items: center; /* Keeps the logo vertically centered within the padding */
}

#header-nav .navbar-brand img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

#header-nav .nav-item .nav-link
{
    line-height: 1.5;
    color: var(--brand-nav-link-color) !important;
    font-size: 1rem;
}

#header-nav .nav-item .dropdown-item {
    color: black;
}

#header-nav .navbar-togger-icon {
    color: white;
}

#header-nav .top-icon {
    font-size: 1.5em;
}

#header-nav .top-icon .bi {
    color: var(--brand-nav-icon-color);
}

#header-nav .top-label {
    padding-left: 4px;
}

#header-nav .navbar-brand {
    max-height: 83px;
    width: auto;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background-color: var(--brand-nav-icon-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 4px;
}

.initials {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
}

.avatar-circle-lg {
    width: 120px;
    height: 120px;
    background-color: var(--mantis-brand-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-bottom: 15px;
}

.avatar-circle-lg .initials {
    font-size: 48px; /* Larger initials */
}

.mugshot-lg {
    border: 2px solid var(--mantis-blueberry-jam-12);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* BRAND HEADER */

#main-header {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-family: var(--brand-font);
}

#main-nav {
    padding: 0;
    font-family: var(--brand-font);
}

#main-nav a {
    color: inherit;
    padding-bottom: 0;
    text-decoration: none;
    font-size: 1rem;
}

#main-nav .nav-item a {
    text-align: right;
}

.logo {
    background: url("../images/logo.png") no-repeat;
    background-size: contain;
    height: 40px;
    width: 100px;
    margin: 2px auto 0;
}


main {
    background: var(--mantis-coconut-milk);
    padding-bottom: 2rem;
    padding-top: 15px;
}

main a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

main .btn:hover {
    text-decoration: none;
}

.breadcrumb {
    --bs-breadcrumb-divider-color: white;
    --bs-breadcrumb-border-radius: 0.25rem;
    --bs-breadcrumb-padding-x: var(--brand-bc-padding);
    --bs-breadcrumb-padding-y: 0.75rem;
    margin-bottom: 1rem;
}

#breadcrumb-navigation.image-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    min-height: 58px;
    height: auto;
    padding: 0 1rem;
    --bs-breadcrumb-padding-x: 0;
    --bs-breadcrumb-padding-y: 0
}

#breadcrumb-navigation .breadcrumb-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#breadcrumb-navigation .breadcrumb-item img {
    height: 48px;
    width: auto;
    display: block;
}

/* Remove the "/" divider from the right-aligned item and all items after it */
#breadcrumb-navigation .breadcrumb-item.ms-auto::before,
#breadcrumb-navigation .breadcrumb-item.ms-auto ~ .breadcrumb-item::before {
    display: none;
    padding: 0;
    content: none;
}

/* Ensure the images don't have extra padding that looks like a ghost divider */
#breadcrumb-navigation .breadcrumb-item.ms-auto,
#breadcrumb-navigation .breadcrumb-item.ms-auto ~ .breadcrumb-item {
    padding-left: 0.5rem;
    margin-top: 2px;
    margin-bottom: 2px;
}

.media-breadcrumb {
    opacity: 0.5;
    margin: 0;
    padding: 0;
    background-color: inherit !important;
}

.image-holder{
	z-index:1;
	padding:2px;
	border:1px solid #e5e5e5;
	background:#fff;
}

.image-holder img {
    max-width: 100%;
}

.image-holder a {
    display: block;
}

.landscape-ident {
    width: 277px;
    clear: right;
}

th, td {
    padding: 0.5rem;
}

/* Dropdowns */
.dropdown-menu {
    --bs-dropdown-link-color: var(--bs-body-color);
    --bs-dropdown-bg: #f8f8f8;
    --bs-dropdown-min-width: 350px;
    box-shadow: 0 5px 10px 0 #888888;
    opacity: 0.98;
}

.dropdown-item {
    overflow-x: hidden;
    text-overflow: ellipsis;
    line-height: 2rem;
    font-weight: bold;
    text-align: right;
    padding: 4px 18px 6px 18px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    min-height: auto;
}

.dropdown-divider {
    border-top: 1px solid var(--mantis-blueberry-jam-12);
}

.dropdown-item:hover {
    opacity: 0.5;
}

.dropdown-icon {
    float: left;
    font-size: 24px;
    opacity: 0.75;
    line-height: 2rem;
    margin-right: auto;
    vertical-align: middle;
}
.dropdown-menu-narrow {
    --bs-dropdown-min-width: 12rem;
}

.dropdown-menu-narrow .dropdown-item {
    padding: 0.25rem 1rem;
    width: 12rem;
}

/* Forms */

form {
    margin-top: 1em;
    margin-bottom: 1em;
}

form div.control-holder {
    padding: 4px 0;
}

.help { font-size: 1em; color: #888888; font-style: italic; margin: 0 0 1em 0; clear: left;}

span.label {
    color: #111111;
    font-weight: bold;
}

span.input-like {
    display: inline-block;
    padding: 8px 7px;
}

span.readonly {
    opacity: 0.5;
    height: 1.5em;
}

input[type="file"] {
    /*color: white;*/
    border: 0 solid white;
    margin: 8px 0;
}
input[type="url"]{
    width: 400px;
}

select {
    min-width: 60px;
    padding: 0;
    color: #444444;
    line-height: 1.5em;
}

input.focus, textarea.focus, span.editable.focus {
    border: 1px solid #4C4C4C;
}

textarea {
    height: 8em;
    margin: 0 0 10px 0;
    font-size: 12px;
}

.input-group-width-auto .input-group {
    /* For inline tempus dominii */
    width: auto;
}

/* Select 2 */

.select2-container .select2-selection--single {
    height: 2.4em;
    padding: 4px;
}

 .select2-container .select2-selection--multiple {
    height: auto;
    padding: 0;
}

.select2-container {
    /* This is needed for the select2s in the advanced user search */
    max-width: 100%;
    min-width: 100%;
}


.left-right-form-label {
    font-weight: 600;
}

.button-bar {
    margin-bottom: 3rem;
}

.button-bar .btn {
    margin: 0 1em;
}

.button-bar .btn:first-child {
    margin: 0;
}

/* Starfield */

.django-starfield label {
    width: auto;
    color: #f5b301;
    filter: grayscale(1);
    padding-right: 1rem;
    font-size: 28px;
}

.django-starfield label::before {
    font-size: 28px;
}

/* SOCIAL LOGINS */

.social-login {
    padding-bottom: 1em;
    border-bottom: 1px solid #eeeeee;
}

.social-login .btn {
    max-width: 280px;
    display: block;
    margin: 0 auto 10px;
    line-height: 32px;
}

.inline-btn
{
    vertical-align: middle;
    margin-right: 0;
    float: left;
}

small a { font-size: 1em; color: #88aacc;}

.helptext {
    display: block;
    font-size: 1em;
    clear: right;
}

.markItUpButton {
    width: 24px;
    margin-top: 10px;
    top: 10px;
}

.date {
    color: #556075;
}

/* Activity page */

.col-content {
    overflow: hidden;
    word-wrap:break-word;
    box-sizing: border-box;
    position: relative;
}

.mini-progress {
    padding: 0;
    height: 50px;
}


.table-tools {
    text-align: right;
}

.vaguely_turqie {
    padding-top: 15px;
    background-color: #eefbfb;
    box-shadow:
        1px 0 0 0 #ccc,
        0 1px 0 0 #ccc,
        1px 1px 0 0 #ccc,   /* Just to fix the corner */
        1px 0 0 0 #ccc inset,
        0 1px 0 0 #ccc inset;
}

.vaguely_turqie h5 {
    margin-top: 0;
}

.bordered_image {
    padding: 4px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    -webkit-box-shadow: 0 8px 6px -6px #c7d1d0;
    -moz-box-shadow: 0 8px 6px -6px #c7d1d0;
    box-shadow: 0 8px 6px -6px #c7d1d0;
}

.activity-card-link {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 8px;
    padding: 15px;
    display: block;
    height: 100%;
}

.activity-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: rgba(0,0,0,0.02);
    text-decoration: none;
}

.activity-logo-container {
    margin-bottom: 1rem;
}

.activity_group_logo {
    margin: 24px 0 0 10px;
    display: block;
}

.with_activity_group {
    margin-top: 10px;
    width: 144px;
    margin-left: 10px;
}

.activity_logo {
    float: left;
    width: 60px;
    height: 60px;
    margin: 0 10px 10px 0;
    padding: 3px;
}

.recent-activity-list {
    height: 180px;
    overflow: hidden;
}

.recent_activity_logo {
    float: left;
    margin-right: 10px;
    padding: 2px;
}

.recent_activity {
    margin-bottom: 16px;
}

.activity_search_form {
    margin-top: 24px;
}

.activity_search_form input[type=text]{
}
.activity_search_form input[type=image],
.activity_search_form_large input[type=image]{
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.results_text_container {
    margin-left: 76px;
}


.fadeout-vaguely-turqie {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2em;
    background: -webkit-linear-gradient(
        rgba(238, 251, 251, 0) 0%,
        rgba(238, 251, 251, 1) 100%
    );
    background-image: -moz-linear-gradient(
        rgba(238, 251, 251, 0) 0%,
        rgba(238, 251, 251, 1) 100%
    );
    background-image: -o-linear-gradient(
        rgba(238, 251, 251, 0) 0%,
        rgba(238, 251, 251, 1) 100%
    );
    background-image: linear-gradient(
        rgba(238, 251, 251, 0) 0%,
        rgba(238, 251, 251, 1) 100%
    );
    background-image: -ms-linear-gradient(
        rgba(238, 251, 251, 0) 0%,
        rgba(238, 251, 251, 1) 100%
    );
}

.report_progress_list
{
    margin: 0;
    list-style: none;
    padding: 0;
}

.report_progress_list li {
    margin: 0;
    list-style: none;
    padding: 0;
    font-size: 0.9em;
}

.big_number {
    padding-left: 8px;
}

.badge-bar {
    margin: 1rem 0;
}

/* Badge displays */
.osprey-badge {
    position: fixed;
    bottom: 4px;
    right: 4px;
    display: none;
    color: white;
    border: 1px solid #888888;
    border-radius: 2px;
    height: 170px;
    width: 150px;
    text-align: center;
    letter-spacing: 1px;
}

.osprey-badge img {
    height: 80px;
    width: 80px;
    margin: 4px 35px;
    padding: 0;
}
.osprey-badge h4 {
    font-weight: normal;
    font-size: 12px;
    text-transform: none;
    margin: 4px;
    color: white;
}

.osprey-badgrad {
    background: #444444; /* Old browsers */
    background: linear-gradient(to bottom, #666666 20%,#444444 80%); /* W3C */
}

/* AWARD displays */
.award {
    position: fixed;
    bottom: 4px;
    right: 4px;
    display: none;
    color: white;
    border: 2px solid #888888;
    border-radius: 8px;
    width: 224px;
    text-align: center;
    letter-spacing: 1px;
}

.award img {
    width: 210px;
    margin: 4px 10px;
    padding: 0;
    color: white;
}
.award h4 {
    font-weight: normal;
    font-size: 16px;
    text-transform: none;
    margin: 4px;
    color: white;
}

.awardgrad {
    background: #000000; /* Old browsers */
    background: linear-gradient(to bottom, #666666 20%,#000000 80%); /* W3C */
}


/* LEARNING LINE */

.ib-statement { display: inline-block; }
.ico { display: inline; width: 32px; height: 16px; vertical-align: text-bottom; padding-left: 8px; padding-right: 8px;}

.aux {
    font-size: 0.8em;
    opacity: 0.8;
}

.learning_line .list-group-item {
    border: 0;
}

.dropdown-location-corrector {
    float: right;
}

.scroller-status {
    display: none;
}

/* PROGRESS REPORTS */
.report_by_id {
    margin-bottom: 4px;
    min-height: 60px;
}

.report_by_id .badge {
    margin-right: 0.5rem;
}



/* Normal tables */

.normal-table {
    width: 100%;
}

.normal-table th {
    border: 1px solid #f8f8f8;
    padding: 8px;
    font-weight: bold;
    text-align: left;
}

.normal-table td {
    border: 1px solid #f8f8f8;
    padding: 8px;
    vertical-align: middle;
}

.chart-table td {
    border: 1px solid #f8f8f8;
    padding: 4px;
    vertical-align: middle;
}
/* TOUR */
.popover-navigation {
    margin-top: 2em;
}

.popover .btn-group {
    margin-right: 2em;
}

.popover {
    background-color: #f0f0f0;
}

.popover-header {
    background-color: #e0e0e0;
}

.bs-popover-auto[x-placement^="top"] .arrow::after, .bs-popover-top .arrow::after {
    border-top-color: #442200;
}

.bs-popover-auto[x-placement^="bottom"] .arrow::after, .bs-popover-bottom .arrow::after {
    border-bottom-color: #442200;
}

.bs-popover-auto[x-placement^="left"] .arrow::after, .bs-popover-left .arrow::after {
    border-left-color: #442200;
}

.bs-popover-auto[x-placement^="right"] .arrow::after, .bs-popover-right .arrow::after {
    border-right-color: #442200;
}

/* FANCYBOX */

.fb_confirm_footer {
    border-top: 1px solid #cccccc;
    margin-top: 3em;
    padding: 4px 0;
}

.fb_confirm_ok {
    float: left;
}

.fb_confirm_close {
    float: right;
}

/* MEDIA BOXES */

.mediabox_selected {
    background-color: #d0ffd0 !important;
}

.mediabox {
    margin-top: 8px;
    border: 1px solid #e0ffe0; 
    font-size: 1em;
    padding: 2px;
    clear: left;
}


.mediabox p { font-size: inherit; margin: 0 0 1em 0;
    margin-left: 44px;
}
.mediabox img { float: left; padding: 4px 8px 4px 4px   ;}

.admin-icon { border: 1px solid #f60; padding: 2px; }

.mediabox textarea {
    border: 1px solid #cccccc;
    font-size: 1.1em;
    color: #222244;
    margin: 4px 0;
    padding: 8px;
    width: 100%;
    max-width: none;
}

.mediabox-button-bar {
    margin-left: 44px;
    margin-top: 8px;
}

.controls {
    float: right;
    visibility: hidden;
    padding-left: 16px;
    vertical-align: top;
}


div.mediabox.unread.comments {
  background-color: #C2FFC2;
}

#commentinputbox {
    display: none;
    /*margin-left: 32px;*/
}
#commentbox_template {
    display: none;
}

.commentbox {
}

.commentbox .btn-link {

}
.commentbox .btn-sm {
    font-size: 0.8em;
    margin-left: 44px;
    font-weight: normal;
}

.comments {
    font-size: 0.9em;
    opacity: 0.8;
}

.comments strong {
    font-size: 1.2em;
    opacity: 1;
}

.reply-bar {
    height: 1em;
}

.reply-bar .btn-sm {
    padding: 2px 6px;
    font-size: 0.8em;
    float: right;
}

/* CARDS */
.card {
    --bs-card-bg: var(--brand-card-bg);
    --bs-card-title-color: var(--brand-font-color);
    margin-bottom: 15px;
}

.card label {
    margin: 0;
    text-align: left !important;
}

.card-header, .card-body {
    padding: 8px;
}

.card-body {
    border-top: 1px solid rgba(0,0,0,0.08);
    background-color: rgba(0,0,0,0.03); /* Subtle shelf effect */
}

/* USER DETAILS */

.certificate-thumb {
    display: inline-block;
    margin-right: 1rem;
}

/* STATISTICS */
.stat {
    float: right;
    font-family: monospace;
    font-size: 22px;
    text-align: right;
    clear: right;
}

.tweed-stat-zone {
    border: 1px solid #f8f8f8;
    padding: 1em 0;
    text-align: center;
    line-height: 40px;
}

.tweed-stat {
    font-size: 28px;
    font-weight: bold;
}

/* SEARCH USERS */

.fullpage_list .mediabox {
    padding:3px;
    background: #e8ffe8;
    border:5px solid #F0FFF0;
}

.info-bar {
    margin: 4px 0;
    height: 32px;
}

.info-bar-icon {
    margin: 0 4px;
}

.bottom-bar {
    align-content: flex-end;
}

/* Pagination */
.pagination {
    margin-top: 1em;
}

div.pagination li {
    display: inline;
}

/* FOOTER */
#back-to-top {
    display: none;
    position: fixed;
    z-index: 100;
    bottom: 80px;
    right: 20px;
    
    background-color: var(--mantis-blueberry-jam); 
    color: var(--mantis-white) !important;
    border: 2px solid var(--mantis-white);
    
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    opacity: 1; 
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#back-to-top:hover {
    background-color: var(--mantis-violet-plum);
    transform: translateY(-3px);
    color: var(--mantis-white) !important;
}

#footer-nav {
    clear: both;
    color: #888888;
    margin-top: 10px;
    padding: 10px 0;
    min-height: 100px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

#footer-nav a {
    color: #888888;
    text-decoration: none;
}

#footer-nav a:hover {
    text-decoration: underline;
}

.small {
    font-size: 0.85em;
}


/* FOOTER PUSH */
html, body {
	height: 100%;
}

.wrapper {
    min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto -120px;
}

.push {
    height: 100px;
}

@media only screen and (min-width: 768px) {

    form.widgetform {
        margin-bottom: 0;
    }

    .widgetform .form-control {
        display: inline-block;
    }
}

@media only screen and (min-width: 992px) {

    .logo {
        background: url("../images/logo.png") no-repeat;
        height: 80px;
        width: 201px;
        margin: 10px 0 0 0;
    }

    .left-right-form-label {
        text-align: right;
    }
}

/* APP LOG DASHBOARD */
.border-top-primary { 
  border-top: 4px solid var(--primary-color); 
}

.border-right-primary { 
  border-right: 4px solid var(--primary-color); 
}

.border-bottom-primary { 
  border-bottom: 4px solid var(--primary-color); 
}

.border-left-primary { 
  border-left: 4px solid var(--primary-color); 
}

.text-monospace { font-family: monospace; }

.wrapper {
    background-color: var(--brand-bg) !important;
}

.progress-track-custom {
    background-color: var(--bs-mantis-blueberry-jam-07) !important;
    border: 1px solid var(--bs-mantis-blueberry-jam-12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-label {
    color: #556075;
    font-weight: 600;
}

.progress-percentage {
    /* Using your solid brand black/blue for maximum contrast */
    color: var(--mantis-blueberry-jam) !important;
    font-weight: 700; /* Bold makes smaller numbers much easier to read */
    font-size: 0.95rem; /* Slightly larger than 'small' but smaller than body */
    letter-spacing: 0.5px;
    line-height: 1;
}

.progress-bar-mantis {
    background-color: var(--mantis-brand-primary) !important;
}

.activity-sidebar-container {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.recent-activity-panel {
    margin-bottom: 20px;
    min-height: 120px; /* Ensures the "Select activity" text doesn't look lost */
}
