@font-face {
    font-family: "Noto Sans";
    src: url("../fonts/Noto_Sans/static/NotoSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
:root {
    --color-primary: #92174e;
    --color-secondary: #ffc500;
    --color-tertiary: #9afde6;
    --color-quaternary: #002b56;
    --color-quinary: #4d2d99;
    --font-color-primary: #002b56;
    --font-color-secondary: #202329;
    --font-color-tertiary: #17a2b8;
    --font-color-light-primary: #f7f7f8;
}

body {
    background-color: #f7f7f8;
    color: var(--font-color-secondary);
    font-family: "Noto Sans", "Trebuchet MS", sans-serif;
    width: 100%;
}
h1 {
    color: var(--font-color-primary)
}
canvas {
    float: left;
    max-width: 100%;
    max-height: 300px;
}
hr {
    opacity: 1;;
}

.hidden {
    display: none;
}

.container .btn {
    text-align: left !important;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header .btn-link {
    padding: 0 10px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

.card-body {
    overflow-x: scroll;
}

.card-body-with-options {
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
}
.card-body-with-options canvas{
    max-width: 400px;
}
.chart-panel-medium .card-body{
    /* height: 400px;
    max-height: 400px; */
}
.chart-panel-medium .card {
    /* min-height: 500px; */
}
.card {
    border-radius: .375rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}
.card-header .btn-link.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}

.filter-card {
    border-color: var(--color-primary);
}
.filter-card .card-header {
    background-color: var(--color-primary);
    color: var(--font-color-light-primary);
}
.filter-card .card-header .btn-link {
    color: var(--font-color-light-primary);
    text-decoration: none;
}

.filter-card hr {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-primary);
    border-top: 2px solid;
}

.activity-card {
    border-color: var(--color-secondary)
}
.activity-card .card-header {
    background-color: var(--color-secondary);
}
.activity-card hr {
    border-top: var(--color-secondary);
    background-color: var(--color-secondary);
    color: var(--color-secondary);
    border-top: 2px solid;
    clear:both;
}
.activity-card .card-header .btn-link {
    text-decoration: none; 
}

.report-card {
    border-color: var(--color-tertiary);
}
.report-card .card-header {
    background-color: var(--color-tertiary);
    color: var(--font-color-secondary);
}
.report-card .card-header .btn-link {
    color: var(--font-color-secondary);
    text-decoration: none;
}
.report-card hr {
    border-top: var(--color-tertiary);
    background-color: var(--color-tertiary);
    color: var(--color-tertiary);
    border-top: 2px solid;
}

.demographic-card {
    border-color: var(--color-quaternary);
}
.demographic-card .card-header {
    background-color: var(--color-quaternary);
    color: #fff;
}
.demographic-card .card-header .btn-link {
    color: #fff;
    text-decoration: none;
}
.demographic-card hr {
    border-top: var(--color-quaternary);
    background-color: var(--color-quaternary);
    color: var(--color-quaternary);
    border-top: 2px solid;
}

.users-data-card {
    border-color: var(--color-quinary);
}
.users-data-card .card-header {
    background-color: var(--color-quinary);
    color: #fff;
}
.users-data-card .card-header .btn-link {
    color: #fff;
    text-decoration: none;
}
.users-data-card hr {
    border-top: var(--color-quinary);
    background-color: var(--color-quinary);
    color: var(--color-quinary);
    border-top: 2px solid;
}

.form-label {
    margin-bottom: 0.2rem;
}

.form-signin {
    padding: 1rem;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.highcharts-data-table table {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: #212529;
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-color: #212529;
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: #212529;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
    border: 0px;
}

.highcharts-data-table table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, .05);
}

.highcharts-data-table table td, .highcharts-data-table table th {
    padding: .5rem;
}

.highcharts-data-table table thead tr {
    border-bottom: 1px solid;
}

.navbar.navbar-light {
    color: #000;
    background-color: #fff;
}

.navbar-light .navbar-nav .nav-link {
    color: #000;
    background-color: #fff;
}

.navbar-text {
    color: #000 !important;
    margin-left: 10px;
}

#activity-pages-percentage {
    td:first-child {
        word-wrap: break-word;
        max-width: 400px;
    }
}

.child-row {
    background-color: #f6f6f6;
}

.child-row td:first-child {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
}

.activity-time-table tr th, .activity-time-table tr td {
    width: 16%;
}

.activity-time-table tr th:nth-child(1), .activity-time-table tr td:nth-child(1) {
    word-wrap: break-word;
    min-width: 320px;
}

.app-footer {
    color: #fff;
    width: 100%;
    background-color: #000;
    padding: 16px;
}
.app-footer a {
    color: #fff;
    text-decoration: underline;
}
.app-footer a:hover {
    color: #ffeb3b;
    text-decoration: underline;
}
.app-footer ul {
    list-style-type: none;
}
.app-footer .copyright {
    border-bottom: 7px solid #ec0836;
    display: inline-block;
    line-height: 36px;
    margin-bottom: 14px;
    text-decoration: none;
}

.app-footer .tourbuttonfloat {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #ffc500;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 1;
    display: flex0;
    justify-content: center;
    align-items: center;
}

.app-footer .tourbuttonfloat i {
    margin: 0 auto;
    line-height: 60px;
}

.container {
    max-width: 98%;
    width: 100% !important;
}

@media (max-width: 1024px) {
    .activity-time-table tr th, .activity-time-table tr td {
        width: auto;
    }

    .activity-time-table tr th:nth-child(1), .activity-time-table tr td:nth-child(1) {
        word-wrap: break-word;
        min-width: auto;
    }
}

.expand-btn { 
    cursor: pointer; 
    background: #007bff; 
    color: #fff; 
    border: none; 
    padding: 5px 10px; 
}
.details-row { 
    display: none; 
    background: #f9f9f9; 
}
.details-cell { 
    padding: 10px; 
}

#tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
}

.select-checkbox option::before, .select-checkbox optgroup:checked::before {
    font-family: "Font Awesome 6 Free";
    content: "\f096";
    width: 1.3em;
    text-align: center;
    display: inline-block;
}
.select-checkbox option:checked::before, .select-checkbox optgroup:checked::before {
  content: "\f046";
}

.select-checkbox option::checkmark {
    display: none;
}

/* Outer row: make both main columns equal height */
.row.equal-height-cols {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Both top-level columns become flex columns */
.row.equal-height-cols > .col-lg-6,
.row.equal-height-cols > .col-md-12,
.row.equal-height-cols > .col-sm-12 {
    display: flex;
    flex-direction: column;
}

/* Left column should fill full height */
.row.equal-height-cols > .border-end {
    height: auto;
}

/* Make the left column content a vertical flex layout */
.row.equal-height-cols > .border-end > .row.mb-2 {
    flex: 0 0 auto;
}

.row.equal-height-cols > .border-end > .col-md-12 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Let the select grow to fill remaining space */
#departmentSelect {
    flex: 1 1 auto;
    min-height: 0;
    /* height: 100%; */
}

/* Right column blocks stack naturally */
#role-options,
#gender-options,
#home-intl-options,
#dap-options {
    flex: 0 0 auto;
}

/* Actions column in the admin screens */
.actions-column {
    min-width: 200px;
}

.btn-login {
    border: 1px solid rgb(91, 95, 199);
    background-color: rgb(91, 95, 199);
    padding: 10px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
}

.btn-login:hover {
    background-color: rgb(91, 95, 199);
    color: #fff;
    text-decoration: none;
}

/* Dashboard alert */
.alert-dashboard {
    color: #fff;
    background-color: #f86718;
    border-color: #f86718;
}

.white-link {
    color: #fff;
    text-decoration: underline;
}

/* Dark mode support */
.prefers-dark {
    background-color: #333;
    color: #e0e0e0;
}

.prefers-dark a {
    color: #bb86fc;
}

.prefers-dark .alert-dashboard {
    background-color: #f86718;
    border-color: #f86718;
    color: #fff;
}

.prefers-dark .white-link {
    color: #e0e0e0;
}

.prefers-dark .card {
    background-color: #444;
    color: #e0e0e0;
}

.prefers-dark .btn {
    color: #fff;
}

.prefers-dark table, .prefers-dark th, .prefers-dark td, .prefers-dark .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: #444;
    color: #e0e0e0;
}

.prefers-dark .activity-card .card-header {
    color: #111;
}