﻿body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f0f4f7;
    margin: 0;
    padding: 12px;
}

.divInner {
    padding: 1em;
    /*border: 2px solid #e1e1e1;*/
    border-radius: 25px;
    /*background-color: #ededed;*/
}

.header-event {
    background-color: #0056b3;
    color: #FFFFFF;
    padding: 12px;
    margin: 0px;
    text-align: center;
    font-weight: 700;
    font-size: 1.6em;
}

.event-details {
    text-align: center;
    padding: 0px;
    color: #efefef;
    font-size: .5em;
}

.head-link {
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
}

.head-link-selected {
    font-weight: 500;
    color: #bcbcbc;
    text-decoration: none;
}

.header-entry {
    background-color: #fff;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eventTitle {
    font-size: 1.3em;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 5px;
}

.eventAddressDetails {
    font-size: 1em;
    display: inline-block;
    padding-left: 2px;
    padding-top: 5px;
    opacity: .7;
}

.eventDetails {
    font-size: 1.2em;
    display: inline-block;
    padding-top: 5px;
    padding-bottom: 3px;
    font-style: italic;
}

.eventExtraDetails {
    font-size: 1em;
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 3px;
    font-style: italic;
}

.divFooter {
    font-size: .6em;
}

.container {
    padding: .5rem;
}

.container-sheet {
    padding-left: 10px;
}

.container-center {
    display: flex;
    justify-content: center;
}

.scoring-header {
    padding-bottom: 1.2em;
}

.filter-section {
    padding-left: .5rem;
}

.sheet-section {
    margin-top: 20px; /* adds a blank line above each division block */
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.filter-section label {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-right: 6px;
    width: 75px;
    display: inline-block;
}

.filter-section select {
    padding: 6px;
    font-size: .9em;
    border-radius: 5px;
}

.judgesRow {
    font-size:14px;
    font-weight: bold;
}

table, th, td {
    border: solid 0px #DDD;
    width: 700px;
}

.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 60px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 25%;
    left: 50%;
    margin-left: 0px;
    opacity: 0;
    transition: opacity 0.3s;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    border-radius: .3em;
    border: 2px solid #9e9e9e;
}

table.tablesorter tbody td {
    font-size: 1.2em;
    text-align: left;
    border-left: 1px #DDD solid;
}


table.tablesorter thead tr th, table.tablesorter tfoot tr th {
    /*background-color: #cdcdcd;*/
    background-color: #0056b3;
    font-size: 1.3em;
    padding: 4px;
    color: #FFFFFF;
}

/* Extra selectors needed to override the default styling */
table.tablesorter tbody tr.normal-row td {
    background: #FFFFFF !important;
}

table.tablesorter tbody tr.alt-row td {
    background: #e6EEEE;
}

table.tablesorter tbody tr.search-highlight td {
    background: #A8D5BA !important;
}

table.tablesorter-default {
    margin: 3px 0 3px;
}

/* Ensure the last cell (expand column) has a right border */
table.tablesorter-default tbody tr td:last-child,
table.tablesorter-default thead tr th:last-child {
    border-right: 1px solid #ccc; /* match your other borders */
}

.divisionExpandedDetails {
    background-color: #DDD;
}

table.tablesorter-default {
    margin: 3px 0 3px;
}

table.tablesorter-default td {
    background-color: #DDD;
    border-bottom: #ccc 1px solid;
    vertical-align: top;
    padding-left: 2px;
}

.left-dash-panel {
    width: 70%;
    padding: 0 0 0 0;
    float: left;
    vertical-align: top;
}

.right-dash-panel {
    width: 30%;
    padding: 0 0 0 0px;
    float: right;
    vertical-align: top;
}

.thCellNone {
    display: none;
}

.tdCellNone {
    display: none;
}

.thCell {
    display: table-cell;
}

.thPrint {
    display: table-cell;
}

.tdPrint {
    display: table-cell;
}

.tdCell {
    display: table-cell;
}

.thCellSingle1 {
    display: table-cell;
}

.tdCellSingle1 {
    display: table-cell;
}

.thCellSingle2 {
    display: table-cell;
}

.tdCellSingle2 {
    display: table-cell;
}

.thCellMerged1 {
    display: none;
}

.tdCellMerged1 {
    display: none;
}

.thCellMerged2 {
    display: none;
}

.tdCellMerged2 {
    display: none;
}

.table-separator-right-header {
    border-right: 1px #FFFFFF solid;
}

.table-separator-right {
    border-right: 1px #4D4D4D solid;
}

.division-title {
    font-size: 2em;
    font-weight: 700;
    color: #0056b3;
    padding-bottom: 3px;
}

.cross-country-details-title {
    font-size: 0.7em;
    text-decoration: underline;
    color: #0056b3;
}

.division-status {
    font-size: 1.5em;
    font-weight: bold;
    color: red;
}

.division-status-print {
    font-size: 1.5em;
    font-weight: bold;
}

.division-text {
    font-size: 1.3em;
}

.detailed-cross-country-details-title {
    font-size: 1.5em;
    text-decoration: underline;
}

.detailed-cross-country-details {
    padding: 0px 10px 10px 0px;
}

.txtSearch {
    height: 2.5em;
    border-radius: .3em;
    border: 2px solid #e9e9e9;
    font-size: 1em;
    width: 250px;
    /*display: none;*/
}

.divisionExpandedDetails {
    background-color: #DDD;
}

.sheet-section {
    display: flex;
    flex-wrap: wrap; /* let children wrap to next line */
    align-items: center;
    gap: 8px;
}

/* header + icon on same line */
.sheet-section > h4 {
    margin: 12px 0 6px;
    flex: 0 1 auto; /* width = content */
}

.sheet-section > .division-status-print {
    display: inline-flex;
    align-items: center;
    margin: 12px 0 6px;
    text-decoration: none;
}

.sheet-section > .division-status-print i {
    font-size: 18px; /* tweak size if needed */
}

/* make the content start on its own line */
.sheet-section > div {
    flex: 1 0 100%; /* full width on next line */
}

@media only screen and (max-width: 420px) {
    .small-font {
        font-size: 1em;
        color: gray; /* Optional: Change text color */
        font-style: italic; /* Optional: Add emphasis */
    }

    table.tablesorter tbody tr.alt-row td {
        background: #FFE996;
    }

    .table-separator-right-header {
        border-right: 1px #FFFFFF solid;
    }

    .table-separator-right {
        border-right: 1px #4D4D4D solid;
    }

    .eventTitle {
        font-size: 1.1em;
        font-weight: bold;
        display: inline-block;
        padding-bottom: 5px;
    }

    .eventAddressDetails {
        font-size: 0.9em;
        display: inline-block;
        padding-left: 2px;
        padding-top: 5px;
        opacity: .7;
    }

    .eventDetails {
        font-size: 0.8em;
        display: inline-block;
        padding-top: 5px;
        padding-bottom: 3px;
        font-style: italic;
    }

    .eventExtraDetails {
        font-size: 0.8em;
        display: inline-block;
        padding-top: 10px;
        padding-bottom: 3px;
        font-style: italic;
    }

    .scoring-header {
        padding-bottom: 0.5em;
    }
    
    .judgesRow {
        font-size: 12px;
        font-weight: bold;
    }
    table.tablesorter tbody td {
        font-size: 1.1em;
        /*background-color: #CDCDCD;*/
        text-align: left;
    }

    table.tablesorter thead tr th, table.tablesorter tfoot tr th {
        /*background-color: #CDCDCD;
        font-size: 1.2em;
        padding: 4px;*/
        background-color: #0056b3;
        font-size: 0.5em;
        padding: 4px;
        color: #FFFFFF;
    }

    .thCell {
        display: table-cell;
    }

    .tdCell {
        display: table-cell;
    }

    .thCellSingle1 {
        display: none;
    }

    .tdCellSingle1 {
        display: none;
    }

    .thCellSingle2 {
        display: none;
    }

    .tdCellSingle2 {
        display: none;
    }

    .thCellMerged1 {
        display: table-cell;
    }

    .tdCellMerged1 {
        display: table-cell;
    }

    .thCellMerged2 {
        display: table-cell;
    }

    .tdCellMerged2 {
        display: table-cell;
    }

    .division-title {
        font-size: 1.5em;
    }

    .cross-country-details-title {
        font-size: 0.8em;
        text-decoration: underline;
    }

    .detailed-cross-country-details-title {
        font-size: 1em;
        text-decoration: underline;
    }

    .division-status {
        font-size: 1em;
        font-weight: bold;
        color: red;
    }

    .division-text {
        font-size: 1em;
    }

    .txtSearch {
        height: 2em;
        border-radius: .3em;
        border: 2px solid #e9e9e9;
        font-size: .6em;
        width: 250px;
    }
}

@media only screen and (max-width: 380px) {
    table.tablesorter thead tr th, table.tablesorter tfoot tr th {
        background-color: #0056b3;
        font-size: 0.5em;
        padding: 4px;
        color: #FFFFFF;
    }
}

@media only screen and (max-width: 350px) {
    table.tablesorter thead tr th, table.tablesorter tfoot tr th {
        background-color: #0056b3;
        font-size: 0.4em;
        padding: 4px;
        color: #FFFFFF;
    }
}

@media only screen and (min-width: 421px) and (max-width: 559px) {
    /*@media only screen and (max-width: 559px) {*/
    table.tablesorter tbody tr.alt-row td {
        background: #FFE996;
    }

    .eventTitle {
        font-size: 1.2em;
        font-weight: bold;
    }

    .eventDetails {
        font-size: 1em;
    }

    table.tablesorter tbody td {
        font-size: 1.2em;
        /*background-color: #CDCDCD;*/
        text-align: left;
    }

    table.tablesorter thead tr th, table.tablesorter tfoot tr th {
        /*background-color: #CDCDCD;
        font-size: 1.4em;
        padding: 4px;*/
        background-color: #0056b3;
        font-size: 0.8em;
        padding: 4px;
        color: #FFFFFF;
    }

    .thCell {
        display: table-cell;
    }

    .tdCell {
        display: table-cell;
    }

    .thCellSingle1 {
        display: none;
    }

    .tdCellSingle1 {
        display: none;
    }

    .thCellSingle2 {
        display: none;
    }

    .tdCellSingle2 {
        display: none;
    }

    .thCellMerged1 {
        display: table-cell;
    }

    .tdCellMerged1 {
        display: table-cell;
    }

    .thCellMerged2 {
        display: table-cell;
    }

    .tdCellMerged2 {
        display: table-cell;
    }

    .table-separator-right-header {
        border-right: 1px #FFFFFF solid;
    }

    .table-separator-right {
        border-right: 1px #4D4D4D solid;
    }

    .division-title {
        font-size: 1.5em;
    }

    .cross-country-details-title {
        font-size: 0.8em;
        text-decoration: underline;
    }

    .detailed-cross-country-details-title {
        font-size: 1.2em;
        text-decoration: underline;
    }

    .division-status {
        font-size: 1.2em;
        font-weight: bold;
        color: red;
    }

    .division-text {
        font-size: 1em;
    }

    .txtSearch {
        height: 2em;
        border-radius: .3em;
        border: 2px solid #e9e9e9;
        font-size: .6em;
        width: 250px;
    }
}

@media only screen and (min-width: 560px) and (max-width: 980px) {
    table.tablesorter tbody tr.alt-row td {
        background: #FFE996;
    }

    table.tablesorter tbody td {
        font-size: 1.3em;
        /*background-color: #CDCDCD;*/
        text-align: left;
    }

    table.tablesorter thead tr th, table.tablesorter tfoot tr th {
        /* background-color: #CDCDCD;
        font-size: 1.3em;
        padding: 4px;
        */
        background-color: #0056b3;
        font-size: 1.3em;
        padding: 4px;
        color: #FFFFFF;
    }

    .thCell {
        display: table-cell;
    }

    .tdCell {
        display: table-cell;
    }

    .thCellSingle1 {
        display: none;
    }

    .tdCellSingle1 {
        display: none;
    }

    .thCellSingle2 {
        display: none;
    }

    .tdCellSingle2 {
        display: none;
    }

    .thCellMerged1 {
        display: table-cell;
    }

    .tdCellMerged1 {
        display: table-cell;
    }

    .thCellMerged2 {
        display: table-cell;
    }

    .tdCellMerged2 {
        display: table-cell;
    }

    .table-separator-right-header {
        border-right: 1px #FFFFFF solid;
    }

    .table-separator-right {
        border-right: 1px #4D4D4D solid;
    }

    .division-title {
        font-size: 1.7em;
        font-weight: bold;
    }

    .cross-country-details-title {
        font-size: 0.8em;
        text-decoration: underline;
    }

    .detailed-cross-country-details-title {
        font-size: 1.3em;
        text-decoration: underline;
    }

    .division-status {
        font-size: 1.3em;
        font-weight: bold;
        color: red;
    }

    .division-text {
        font-size: 1.3em;
    }

    .txtSearch {
        height: 2em;
        border-radius: .5em;
        border: 2px solid #e9e9e9;
        font-size: .6em;
        margin: 3px;
        width: 250px;
    }
}

@media print {
    table, th, td {
        border: solid 1px #DDD;
        width: 700px;
    }

    table.tablesorter tbody td {
        font-size: 1.6em;
        /*background-color: #CDCDCD;*/
        text-align: left;
    }

    table.tablesorter thead tr th, table.tablesorter tfoot tr th {
        /*background-color: #CDCDCD;
    font-size: 1.8em;
    padding: 4px;*/
        background-color: #0056b3;
        font-size: 1.8em;
        padding: 4px;
        color: #FFFFFF;
    }

    .thCellNone {
        display: none;
    }

    .tdCellNone {
        display: none;
    }

    .thCell {
        display: table-cell;
    }

    .thPrint {
        display: none;
    }

    .tdPrint {
        display: none;
    }

    .tdCell {
        display: table-cell;
    }

    .thCellSingle1 {
        display: table-cell;
    }

    .tdCellSingle1 {
        display: table-cell;
    }

    .thCellSingle2 {
        display: table-cell;
    }

    .tdCellSingle2 {
        display: table-cell;
    }

    .thCellMerged1 {
        display: none;
    }

    .tdCellMerged1 {
        display: none;
    }

    .thCellMerged2 {
        display: none;
    }

    .table-separator-right-header {
        border-right: 1px #FFFFFF solid;
    }

    .table-separator-right {
        border-right: 1px #4D4D4D solid;
    }

    .tdCellMerged2 {
        display: none;
    }

    .division-title {
        font-size: 2.2em;
    }

    .cross-country-details-title {
        font-size: 0.8em;
        text-decoration: underline;
    }

    .division-status {
        font-size: 1.3em;
        font-weight: bold;
        color: red;
    }

    .division-text {
        font-size: 1.3em;
    }

    .sheet-section > .division-status-print {
        display: none !important;
    }

    .sheet-section > h4 {
        font-size: 4em; /* or whatever size you want on paper */
        margin: 0 0 8px;
    }
}
