/* Shared across ESAG and SARGA HTML pages */

.esag-amr-filters {
    margin-bottom: 1.5rem;
    row-gap: 1.5rem;
}

.esag-amr-filter-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-right: 1.75rem;
    margin-bottom: 0.75rem;
}

.esag-amr-filter-field .form-label {
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 0.4rem;
    display: block;
    line-height: 1.35;
}

.esag-amr-filter-field .form-select {
    width: 100%;
    margin-top: 0.2rem;
}

/* --- Dashboard (charts / tables / tabs / boxes) --- */

#bigGraph {
    font-size: 0.7em;
}

.circle {
    display: inline-block;
    float: left;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 5px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}

.sorting-cnt {
    display: none;
}

.selection {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */
    margin: 0 1px;
    position: relative;
    width: 150px;
    height: 40px;
    font-size: 1em;
    border: solid 2px rgba(150, 150, 150, 0.2);
    cursor: pointer;
}

/*g.titles>text.n-axis-title>tspan {*/
/*    font-size: 16px;*/
/*}*/
.titles>text>tspan {
    font-size: 16px;
}

.highlight-p {
    font-size: 21px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-wrap: balance !important;
}

.wb-fnote a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
}


.titles>text {
    font-size: 16px;
}

.selection p {
    line-height: 20px;
    margin-left: 22px;
    display: inline;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}

.selection:hover {
    background-color: rgba(150, 150, 150, 0.2);
}

.legend text {
    font-size: 12px !important;
}

.background-rect {
    display: none;
}

#displayPanel {
    width: 100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 150px 1fr;
    grid-template-columns: 150px auto;
}

#logPanel {
    -ms-grid-column: 1;
    -ms-grid-row: 1;
    padding-bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

#logPanel button {
    height: 35px;
    margin: 0;
}

#descPanel {
    -ms-grid-column: 2;
    -ms-grid-row: 1;
}

#descPanel p {
    line-height: 20px;
    font-size: 0.9em;
    margin: 0;
    text-align: center;
}

#descPanel span {
    font-weight: bold;
}

#btnPanel {
    -ms-grid-column-span: 2;
    -ms-grid-row: 3;
    grid-column: span 2;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#graphPanel {
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    -ms-grid-row: 2;
    grid-column: span 2;
    grid-row: 2/3;
    width: 100%;
}

#big {
    width: 100%;
    height: 300px;
}

#big .tick text {
    font-size: 1.1em;
}

.tab {
    overflow: hidden;
    background-color: white;
    color: #295376;
}

/* Style the buttons inside the tab */

.tab button {
    background-color: inherit;
    /*float: left;*/
    border: none;
    outline: none;
    cursor: pointer;
    padding: 2px 16px;
    transition: 0.3s;
    font-size: 17px;
    color: #295376;
}

/* Change background color of buttons on hover */

thead th {
    background-color: white;
    color: black;
}

.sorting_asc,
.sorting_desc {
    background-color: #e7e7e7 !important;
    outline: none;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button:focus {
    border: 1px solid black;
}

/* Create an active/current tablink class */

.tab button.active {
    background-color: #ccc;
}

/* Style the tab content */

.tabcontent {
    display: none;
    padding: 6px 12px;
    border-top: none;
}

.bar {
    fill: #015B7E;
    stroke: #015B7E;
}

.axis {
    stroke: #D8D8D8;
}

text {
    /* fill: #6c686f; */
    fill: black;
}

.tick>line,
.domain {
    stroke: #ccc;
}

.x-axis-title,
.y-axis-title {
    font-size: 0.8em;
}

.x-axis .tick line {
    stroke: black;
}

.x-axis,
.y-axis {
    font-size: 12px;
}

label {
    display: inline;
}

.line {
    fill: none;
    stroke-width: 3px;
}

.chart rect {
    stroke: black;
    stroke-width: 0.09px;
}

/*dashboard */
#dashboard {
    /*height: 90%;*/
}

/* Key numbers boxes */
.boxes {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    padding-left: 1px;
    padding-right: 1px;
    height: 10%;
    justify-content: center;
}

.hiddenInfo {
    border-radius: 10px;
}

.boxes .parent,
.boxes .parent:visited,
.boxes .parent:focus {
    flex: 0 0 30%;
    border: 3px solid #ccc;
    border-radius: 10px;
    margin: 10px;
    text-decoration: none;
    color: black;
}

.boxes .box {
    text-decoration: none;
    color: black;
}

.boxes .parent:hover {
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 2px 2px;
}

.innerBox {
    flex: 0 0 23%;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-left: 0px;
    margin-right: 3px;
    text-decoration: none;
    color: black;
    margin-bottom: 5px;
}

.innerBox div {
    padding-left: 3px;
    padding-right: 3px;
}

.boxes p {
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.boxes p.h2 {
    font-size: 30px;
    margin-top: 5px;
}

table {
    border: 1.5px solid black;
}

.top {
    margin-bottom: 10px;
}

td {
    border: 1.5px solid black;
    padding: 4px;
}

th {
    border: 1.5px solid black;
    padding: 5px;
}

/* Graph Panels */
#graphArea {
    /*text-align: center;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0px;
    padding-right: 0px;
}

.graphPanels {
    flex: 0 0 47%;
    margin: 10px;
    text-decoration: none;
    color: black;
    margin-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}


#graphHospital text,
#graphHospitalBySex text {
    font-size: 16px;
}

#probable-exposure .y-axis,
#probable-exposure .x-axis,
#probable-exposure #legend {
    font-size: 16px;
}

td#ratetested {
    min-width: 80px;
}

td#numtested {
    min-width: 113px;
}

#full:disabled {
    background-color: #cccccc;
}

.tooltip {
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 5px;
    padding: 10px;
    position: fixed;
    max-width: 500px;
    font-size: 20px;
    pointer-events: none;
    /* Prevents tooltip from interfering with mouse events */
}


.ttFuncRect {
    /*padding: 5px;*/
    width: 15px;
    height: 15px;
    display: inline-block;
}

@media only screen and (max-width: 800px) {

    #probable-exposure .y-axis,
    #probable-exposure .x-axis,
    #probable-exposure #legend {
        font-size: 18px;
    }

    #hospitalization text {
        font-size: 18px;
    }

    .x-axis-title,
    .y-axis-title {
        font-size: 1.1em !important;
    }

    .txtTotal {
        white-space: nowrap;
    }

    .boxes .parent:visited,
    .boxes .parent:focus,
    .boxes .parent:hover {
        flex: 0 0 37.5%;
        border: 1px solid #ccc;
        border-radius: 10px;
        margin: 5px;
        text-decoration: none;
        color: black;
    }

    .boxes p {
        font-size: 16px;
    }
}

@media only screen and (max-width: 991px) {
    .selection {
        border-radius: 0;
    }

    #big {
        height: 500px;
    }

    #btnPanel {
        -ms-grid-column-span: 2;
        -ms-grid-row: 3;
        grid-column: span 2;
    }

    #graphPanel {
        -ms-grid-column: 1;
        -ms-grid-column-span: 2;
        -ms-grid-row: 2;
        grid-column: span 2;
        grid-row: 2/3;
    }

    #mainImg {
        margin-bottom: 20px;
    }

    .textarea {
        margin-top: 20px;
    }

    #full,
    #howto {
        display: none;
    }

    .innerBox,
    .graphPanels {
        flex: 0 0 100%;
    }
}

@media only screen and (min-width: 991px) {
    .pathText {
        display: none;
    }

    .textarea {
        margin-top: 128px;
        height: 138px;
    }
}

#graphHospitalBySex {
    display: none;
}

@media only screen and (max-width: 525px) {
    .selection {
        width: 180px;
        height: 50px;
    }

    .selection p {
        margin-left: 27px;
    }

    #big {
        height: 300px;
    }

    #descPanel {
        -ms-grid-column: 1;
        -ms-grid-column-span: 2;
        -ms-grid-row: 2;
        grid-column: span 2;
    }

    #logPanel {
        -ms-grid-column-span: 2;
        flex-wrap: wrap;
        grid-column: span 2;
    }

    #btnPanel {
        -ms-grid-row: 4;
    }

    #graphPanel {
        -ms-grid-row: 3;
        grid-column: span 2;
        grid-row: 3/4;
    }

    .btn-success,
    .btn-info {
        margin: 5px 0px !important;
        width: 100% !important;
    }
}

@media only screen and (max-width: 1690px) {

    p.fsel,
    h3.fsel {
        font-size: 1.1vw !important;
    }

    h1.fsel {
        font-size: 2vw !important;
    }

    .innerBox.fsel {
        margin-left: 2px;
        margin-right: 2px;
    }

    #full.fsel,
    #howto.fsel,
    #langToggle.fsel {
        font-size: 0.8vw;
    }

    .graphPanels.fsel {
        /*height: 40%!important;*/
        /*flex: 0 0 46%!important;*/
        margin: 2px !important;
    }

    #barDiv.fsel .axis text,
    #barDiv.fsel .barText {
        font-size: 23px !important;
    }

    #trendData.fsel .trendX text,
    #trendData.fsel .trendY text,
    #trendData.fsel .xAxisTrendLabel,
    #trendData.fsel yAxisTrendLabel,
    #trendData2.fsel .trendX2 text,
    #trendData2.fsel .trendY2 text,
    #trendData2.fsel .xAxisTrendLabel2,
    yAxisTrendLabel2 {
        font-size: 15px;
    }

    .graphPanelsText p.fsel {
        line-height: 3vh;
        font-size: 1.3vh !important;
    }
}

@media only screen and (max-width: 1200px) {
    .dropdown {
        /*height: 29px !important;*/
        font-size: 0.9em !important;
    }
}

@media only screen and (max-width: 1000px) {

    #full,
    #howto,
    #langToggle {
        margin-top: -10px !important;
    }
}

.navbuttons {
    padding: 0px;
}

.navbuttons .btn-group {
    padding: 20px 0px;
}

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

    .boxes .parent,
    .boxes .parent:visited,
    .boxes .parent:focus,
    .boxes .parent:hover {
        flex: 0 0 100%;
        border: 3px solid #ccc;
        border-radius: 10px;
        margin: 10px;
        text-decoration: none;
        color: black;
    }

    .navbuttons a {
        padding: 10px 0px !important;
    }
}

.info {
    opacity: 0.3;
}

.info:hover {
    cursor: pointer;
    opacity: 1;
}

.info:hover+.hiddenInfo {
    display: block;
}

.hiddenInfo {
    display: none;
}

/* --- Antimicrobial-resistant gonorrhoea (flex legend layout + tables) --- */

.flex-item {
    min-height: 120px;
    /* Adjust this value to match the height required for 3 rows of legend items */
    display: flex;
    align-items: center;
    /* Optional: vertically center content within the legend div */
    flex-direction: column;
}


.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
}

.full-width {
    flex: 1 1 100%;
    max-width: 100%;
}

.flex-item {
    flex: 1 1 calc(50% - 20px);
    margin: 3px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.flex-item h2 {
    margin-top: 30px;
    min-height: 80px;
    /* Set a fixed or minimum height for titles */
    margin: 0 0 10px 0;
    /* Adjust margin to create spacing after the header */
    /*text-align: left;*/
    /* Left-align the header text */
    display: flex;

}

thead th {
    background-color: white;
    color: black;
}

.sorting_asc,
.sorting_desc {
    background-color: #e7e7e7 !important;
    outline: none;
}

.sorting-cnt {
    display: none;
}

.wb-fnote a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
}

.flex-item div {
    flex: 1;
}

#figure1Div2>details {
    margin-bottom: 30px;
    margin-right: 10px;
    margin-left: 10px;
}

#genderBtn {
    margin-bottom: 10px;
}

li>div>span.legend-text {
    font-size: 15px !important;
}

.table-responsive {
    padding-right: 2px;
}
.titles>.c-axis-title {
    font-size: 20px !important;
}

.titles>text>tspan {
    font-size: 20px !important;
}

/* --- Resources and compact helpers --- */

.no-bullets {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.sorting-cnt {
    display: none;
}

.section-divider {
    border-right: 2px solid #444;
}

.wb-fnote a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
}

table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-color: #103d65 !important;
    color: white;
}
table.dataTable thead .sorting_asc {
    background-image: url(/src/img/sorting-icons/sort_asc.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting_desc {
    background-image: url(/src/img/sorting-icons/sort_desc.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting {
    background-image: url(/src/img/sorting-icons/sorting_both.png)!important;
	padding-right: 15px;
}
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled, table.dataTable thead .sorting_desc_disabled {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
}
table.dataTable thead .sorting-cnt {
    white-space: nowrap;
    display: none !important;
}