﻿/******************************************************
 * 
 * Copyright (c) 2007-2025 MyFlightbook LLC
 * Contact myflightbook-at-gmail.com for more information
 *
*******************************************************/

/* 
    open_sans and roboto used from http://www.1001fonts.com/open-sans-font.html and http://www.1001fonts.com/roboto-font.html; 
    Licensed under Appache License 2.0, free for commercial use

*/
@font-face {
    font-family: open_sans;
    font-weight: bold;
    font-style: normal;
    src: url('Fonts/open-sans.bold.ttf') format('opentype')
}

@font-face {
    font-family: open_sans;
    font-weight: normal;
    font-style: normal;
    src: url('Fonts/open-sans.regular.ttf') format('opentype')
}

@font-face {
    font-family: roboto_bold;
    font-weight: bold;
    src: url('Fonts/roboto.bold.ttf') format('opentype')
}

/* Shorthand for common inline styles */
.b {
    font-weight: bold;
}

.i {
    font-style: italic;
}

.l {
    font-size: larger;
}

.c {
    text-align: center;
}

.ra {
    text-align: right;
}

.dn {
    display: none;
}

.dib {
    display: inline-block;
}

.hc {
    margin-left: auto;
    margin-right: auto;
}

.indent {
    margin-left: 1.5em;
}

.largeBold {
    font-weight: bold;
    font-size: larger;
}

.sm {
    font-size: smaller;
}

.imgMiddle {
    vertical-align: middle;
}

.flL {
    float: left;
}

.flR {
    float: right;
}

.topAlign {
    vertical-align: top;
}

.lightText {
    color: var(--text-light);
}

.ctxtTight {
    margin-top: -12px;
    margin-left: 1em;
}

.ctxtRight {
    width: 18em;
    transform: translateX(-90%);
}

.wsprew {
    white-space: pre-wrap;
}

.wsprel {
    white-space: pre-line;
}

.w100 {
    width: 100%;
}

.w90 {
    width: 90%;
}

.w80 {
    width: 80%;
}

.w75 {
    width: 75%;
}

.w70 {
    width: 70%;
}

.w60 {
    width: 60%;
}

.w50 {
    width: 50%;
}

.w40 {
    width: 40%;
}

.w30 {
    width: 30%;
}

.w25 {
    width: 25%;
}

.w1cm {
    width: 1cm;
}

.w12cm {
    width: 1.2cm;
}

.w2cm {
    width: 2cm;
}

.w3cm {
    width: 3cm;
}

.w10ch {
    width: 10ch;
}

.overX {
    overflow-x: auto;
}

.w15em {
    width: 15em;
}

.brdr {
    border: 1px solid var(--default-border);
}

.prgSpin {
    height: 16pt;
    width: 16pt;
}

.ckmrk {
    height: 10pt;
    width: 10pt;
}

/* Basic HTML */
.mfbDefault {
    font-family: open_sans, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 10pt;
    /* max-width: 1400px; */
    margin-left: auto;
    margin-right: auto;
}

.mfbDefault table {
    font-family: open_sans, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}


BODY, body {
    font-family: open_sans, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 10pt;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    margin-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 0px;
    padding-bottom: 5px;
    color: var(--text-default);
    background-color: var(--body-background) !important;
}

TABLE, table {
    font-family: open_sans, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

h1 {
    font-size: 14pt;
    font-weight: bold;
    color: var(--h1-color);
    width: 100%;
    background-color: var(--h1-background);
    padding: 4px;
    text-align: center;
    margin: 0px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
}

h2 {
    font-size: 12pt;
    font-weight: bold;
    color: var(--h2-color);
}

h3
{
    font-size: 10pt;
    font-weight: bold;
    color: var(--text-default);
}

h4 {
    font-size: 10pt;
    font-weight: normal;
    color: var(--text-default);
}

/* Centered body */
.centeredBody {
    max-width: 1400px;
    margin-left:auto; 
    margin-right: auto;
}

input[type=text], input[type=password], input[type=number], input[type=email], input[type=date], textarea, select {
    font-family: open_sans, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border-radius: 5px;
    border: 1px solid var(--textbox-border-color);
    background-color: var(--textbox-background);
    color: var(--textbox-text-color);
}

input[type=text], input[type=password], input[type=number], input[type=email], input[type=date], textarea {
    padding: 2px;
}

input[type=text].noselect {
    background-color: var(--body-background);
    color: var(--text-default);
}

input[type=text]::placeholder {
    color: var(--watermark-color);
}

    input[type=text].noselect::placeholder {
        color: var(--watermark-color);
    }

/* Data entry form */
.header {
    font-weight: bold;
    color: var(--entry-item-label-color);
    border-bottom: 1px solid var(--entry-header-border-color);
    margin-bottom: 2px;
}
.itemlabel {
    font-size: 9pt;
    color: var(--entry-item-label-color);
}

/* "Please Read" callout or similar */
.callout {
    border: 1px solid var(--default-border);
    background-color: var(--callout-background);
    padding: 3pt;
    margin: 3pt;
    width: 600px;
}

.calloutSponsor {
    height: 120px;
    vertical-align: middle;
    text-align: center;
    display: inline-block;
}

.calloutSmall {
    margin: 5px 10px 5px 10px;
    padding: 5px;
    border: 1px solid var(--callout-border-color);
    border-radius: 5px;
}

.calloutBackground {
    background-color: var(--callout-background);
}

.shadowed {
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
}

.hint
{
    vertical-align:super; 
    font-size:7pt;
    font-weight:bold;
    letter-spacing: 1px;
}

.hintPopup {
    border-radius: 5px;
    padding: 5px;
    margin: 3px;
    max-width: 50%;
    display: none;
    background-color: var(--callout-background);
    box-shadow: 2px 2px 2px 0px var(--box-shadow-color);
}

/* Vertical form (e.g., Edit Make) */
.vfSection {
    padding-top: 3px;
    padding-left: 3px;
    padding-right: 3px;
    padding-bottom: 8px;
    vertical-align: top;
}

.vfPrompt
{
    font-weight:bold;
    width: 130px;
    display: inline-block;
    vertical-align: top;
}

.vfSubDesc {
    font-weight:normal;
    font-size:smaller;
}

.vfValue {
    display: inline-block;
    vertical-align: top;
}

.vfDescription
{
    display: inline-block;
    font-weight: normal;
    font-size: smaller;
    text-align: left;
    text-indent: 0;
}

/* Error/success messages messages */
.success {
    font-weight: bold;
    color: var(--success-color);
}
.ok {
    font-weight: normal;
    color: var(--success-color);
}

.error
{
    font-weight: bold;
    color: var(--error-color);
}

.errorCallout {
    position: absolute;
    z-index: 1000;
    border: 1px solid var(--error-color);
    padding: 5px;
    color: var(--error-color);
    background-color: var(--textbox-background);
    border-radius: 5pt;
    box-shadow: 2px 2px 2px 0px var(--box-shadow-color);
    margin-top: 4pt;
    margin-left: 1.5em;
}

.errorCallout .notch {
    position: absolute;
    top: -10px;
    left: 5px;
    margin: 0;
    border-top: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid var(--error-color);
    padding: 0;
    width: 0;
    height: 0;
}

input[type=text].errorItem, input[type=password].errorItem, input[type=number].errorItem, input[type=email].errorItem, input[type=date].errorItem, textarea.errorItem, select.errorItem {
    border-color: var(--error-color);
}

/* Currency status */
.currencylabel
{
    font-weight: normal;
    font-size: 10pt;
}
.currencygap
{
    font-weight: normal;
    font-size: 8pt;
}
.currencyok
{
    font-weight: normal;
    color: var(--currency-ok);
    font-size: 10pt;
}
.currencynearlydue
{
    font-weight: bold;
    color: var(--currency-close);
    font-size: 10pt;
}
.currencyexpired
{
    font-weight: bold;
    color: var(--currency-expired);
    font-size: 10pt;
}

.currencynodate 
{
    font-weight: bold;
    color: var(--currency-nodate);
    font-size: 10pt;
}

/* Signature status */
.signatureValid
{
    color: var(--success-color);
}
.signatureInvalid
{
    color:var(--error-color);
}

.signatureBlock {
    border: 1px double var(--callout-border-color);
    border-radius: 5px;
    box-shadow: 2px 2px 2px 0px var(--box-shadow-color);
    background-color: var(--callout-background);
    margin: 3px;
    padding: 3px;
    display: inline-block;
}

.bordered .signatureBlock tr td {
    background-color: var(--callout-background);
    border: none;
}

.signatureBlockSig {
    display:inline-block;
    vertical-align: middle;
}

.fineprint
{
    font-weight: normal;
    font-size: smaller;
    text-indent: 0;
    text-align: left;
}

/* Logbook rows */
.subtotalRow
{
    font-weight: bold;
}

.subtotalRowPageBreak
{
    font-weight: bold;
    page-break-after: always;
}

.runningTotalRow
{
    font-weight: bold;
    page-break-after:always;
}

.pageBreakRow 
{
    page-break-after: always;
}

/* Grouped Totals */
.totalsBox {
    display: inline-block;
    vertical-align: top;
    width: 230px;
    padding: 3px;
}

.totalsValue {
    vertical-align: top;
    text-align: right;
    font-weight: bold;
    float: right;
    margin-left: 2px;
    margin-right: 6px;
}

.totalsByTimeTable {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    font-size: smaller;
}

.totalsByTimeCell {
    vertical-align: top;
    text-align: right;
    font-weight: bold;
    width: 6em;
    padding: 3px;
    border-right: 1px solid var(--table-border-color);
}

tr.totalsGroupHeaderRow {
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid var(--table-border-color);
    border-top: 1px solid var(--table-border-color);
}

tr.totalsGroupHeaderRow td {
    padding-top: 6pt;
}

tr.totalsGroupHeaderRow:first-child {
    border-top: none;
}

tr.totalsGroupRow td {
    vertical-align: top;
}

tr.totalsGroupRow:last-child {
    border-bottom: 1px solid var(--table-border-color);
}

td.totalsByTimeCell:nth-child(even) {
    background-color: var(--table-alternate-row-background);
}

tr.totalsGroupDateRanges, tr.totalsGroupRow {
    border-left: 1px solid var(--table-border-color);
}

tr.totalsGroupRow td {
    padding-left: 3pt;
    padding-right: 3pt;
}

.totalsDateRange {
    padding-top: 6pt;
    font-weight: bold;
    text-align: center;
    background-color: none;
    border-bottom: 1px solid var(--table-border-color);
}

td.totalsDateRange:last-of-type {
    border-right: 1px solid var(--table-border-color);
}

/* Autocomplete AJAX.  Insert Training uses "autoInsertxxx */
.AutoExtender, .autoInsertItems {
    font-weight: normal;
    font-size: smaller;
    border: solid 1px var(--callout-border-color);
    line-height: 20px;
    list-style-type: none;
    background-color: var(--menu-background);
    color: var(--menu-color);
    border-radius: 5px;
    padding: 3pt;
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
}

.autoInsertItems {
    position: absolute;
    display: inline-block;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

.AutoExtenderList, .autoInsertItem
{
    border-bottom: dotted 1px var(--table-border-color);
    cursor: pointer;
    list-style-type: none;
}

.AutoExtenderHighlight, .autoInsertItem:hover {
    color: var(--menu-color-selected);
    background-color: var(--menu-background-selected);
    cursor: pointer;
    list-style-type: none;
}

.AutoExtenderList:nth-last-child(1), .autoInsertItem:nth-last-child(1) {
    border-bottom: none;
}

    .ui-state-active:hover, .ui-state-focus:hover {
        color: var(--menu-color-selected);
        background-color: var(--menu-background-selected);
    }

    /* Charting */
    .ttip {
        padding: 2px;
    }

.dataVal {
    font-weight: bold;
}

.dataRank {
}

.dataBucket {
    font-weight: bold;
}

/* Accordian AJAX */
.accordianHeader {
    font-weight: bold;
    line-height: 24pt;
    background-color: var(--accordion-header-background);
    padding: 4px 4px 4px 10px;
    margin-top: 8px;
    border: 1px solid var(--accordion-header-background-selected);
    border-radius: 7px;
}

.accordianHeaderSelected {
    font-weight: bold;
    line-height: 24pt;
    background-color: var(--accordion-header-background-selected);
    padding: 4px 4px 4px 10px;
    margin-top: 8px;
    border-top: 1px solid var(--accordion-header-background-selected);
    border-left: 1px solid var(--accordion-header-background-selected);
    border-right: 1px solid var(--accordion-header-background-selected);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.accordianContent {
    padding: 3px;
    border-bottom: 1px solid var(--accordion-header-background-selected);
    border-left: 1px solid var(--accordion-header-background-selected);
    border-right: 1px solid var(--accordion-header-background-selected);
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.accordionMenuHeader
{
    display:none;
    margin: 0px;
    padding : 0px;
}

.accordionMenuContainer {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2px;
    margin-bottom: 6px;
    text-align: center;
}

.accordionMenuHeaderSelected
{
    display:none;
    margin: 0px;
    padding : 0px;
}

.accordionMenuContent {
    padding: 4px 4px 4px 10px;
    background-color: var(--body-background);
    position: static;
    border: 1px solid var(--default-border);
    margin: 15px;
    border-radius: 7px;
}

.accordionMenuControllerUnselected {
    display: inline-block;
    font-size: smaller;
    line-height: 18pt;
    padding: 3px;
    width: 80px;
    margin: 2px;
    border-bottom: 1px solid var(--default-border);
    border-left: 1px solid var(--default-border);
    border-right: 1px solid var(--default-border);
    border-top: 1px solid var(--default-border);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: var(--accordion-header-background);
    text-align: center;
    font-weight: normal;
    cursor: pointer;
}

.accordionMenuControllerSelected {
    display: inline-block;
    font-size: smaller;
    line-height: 18pt;
    padding: 3px;
    width: 80px;
    margin: 2px;
    border: 1px solid var(--default-border);
    border-radius: 4px;
    background-color: var(--accordion-header-background-selected);
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.filterApplied {
    padding: 3px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2px;
    margin-bottom: 2px;
    background-color: var(--callout-background);
    border: 1px solid var(--default-border);
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
}

.accordionEnhanced {
    border: 1px solid var(--default-border);
    font-weight: bold;
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
}

/* Accordion from jQuery-UI */
.ui-accordion, .ui-accordion h3 {
    font-family: open_sans, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 10pt !important;
    color: var(--text-default);
}

.ui-accordion h3 {
    font-weight: bold;
    line-height: 24pt;
}

.ui-accordion .ui-accordion-content {
    padding: 1em;
}

.ui-accordion .ui-accordion-header {
    background: none;
    background-color: var(--accordion-header-background);
    margin-top: 8px;
    padding: 4px 4px 4px 10px;
}

.ui-accordion .ui-accordion-header-active {
    background: none;
    background-color: var(--accordion-header-background-selected);
    border-bottom: none;
    margin-top: 8px;
    padding: 4px 4px 4px 10px;
}

.ui-accordion-content, ui-accordion-content p {
    margin: 0;
    margin-block: 0;
    margin-inline: 0;
    padding: 0;
    font-size: 9pt;
}

.modalpopup {
    background-color: var(--body-background);
    min-width: 300px;
    padding: 15px;
    border: 1px solid var(--default-border);
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
    border-radius: 5px;
}

.endorsementEdit {
    padding: 5px;
    max-width: 480px;
}

.endorsement {
    width: 600px;
    background-color: var(--callout-background);
    border: 1px solid var(--default-border);
    border-radius: 5px;
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
    page-break-inside: avoid;
}

/* Sidebar UI */
.sidebarRight
{
    padding: 5px;
    display: block;
    height: 100%;
    width: 100%;
    min-width: 280px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

a, a:visited {
    outline: none;
    text-decoration: none;
    color: var(--anchor-color);
}

a:hover {
    outline: none;
    text-decoration: underline;
    color: var(--anchor-color);
}

a img
{
    outline: none;
    border: none;
}

/* Edit Flight */
/* item on the left of a left-right layout */
.itemtimeleft, .itemtimeright {
    display: inline-block;
    vertical-align: bottom;
    width: 150px;
    margin-left: 5px;
    margin-right: 5px;
}

/* item with no particular left/right layout */
.itemtime
{
    padding: 3px;
    display: inline-block;
    width: 250px;
    vertical-align: top;
}

/* Basic info about the flight */
.flightinfoblock
{
    padding: 3px;
}

/* the various times for the flight */
.timesblock
{
    padding: 3px;
}

/* full-width blocks (i.e., no side-to-side */
.fullblock
{
    padding: 3px;
    display: block;
    clear: both;
}

/* item labels in both left and right times */
.itemtimeleft .itemlabel, .itemtimeright .itemlabel, .flightinfoblock .itemlabel {
    padding: 0;
    display: block;
}

/* flight-info items */
.flightinfoitem
{
    float: left;
}

/* PropertyEditing*/
.propItemFlow
{
    display:inline-block;
    vertical-align:bottom;
    width: 180px;
    padding-top: 1px;
    padding-bottom: 2px;
    margin-left: 5px; margin-right: 5px;
}

.propItemContainer
{
    padding: 3px;
    border-style: none;
    max-height: 200px;
}

/* Data that we want to call out */
.overriddenCatClass {
    font-weight: bold;
    color: var(--overridden-catclass);
}

/* 8710 Form */
.PaddedCell {
    padding: 3px;
    border: 1px solid var(--default-border);
}

.PaddedCell:nth-child(even) {
    background-color: var(--table-alternate-row-background);
}

.FootNote
{
    vertical-align:super; 
    font-size:8pt;
}

table.rollupReport {
    font-size: 8pt;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

table.innerReport {
    font-size: 8pt;
    border-collapse: collapse;
    width: 100%;
}

table.catClassSubReport {
    font-size: smaller;
    border-collapse: collapse;
    width: 100%;
}

table.catClassSubReport thead tr {
    vertical-align: bottom;
}

table.catClassSubReport thead tr th:not(:last-child) {
    border-right: 1px solid var(--default-border);
}

table.catClassSubReport tbody tr td {
    border-top: 1px solid var(--default-border);
}

table.catClassSubReport tbody tr td:not(:last-child) {
    border-right: 1px solid var(--default-border);
}

table.innerReport tr td {
    padding: 3px;
}

table.innerReport tr:first-child {
    border-bottom: 1px solid var(--default-border);
}

table.modelRollup tbody tr.totalRow {
    font-weight: bold;
}

.doubleTop {
    border-top-style: double;
}

table.modelRollup tbody tr.t12rollup {
    display: none;
    background-color: var(--table-alternate-row-background);
    font-style: italic;
    font-size: smaller;
}

.t12rollup td:first-child::after {
}

.t12rollup td:first-child::before {
    margin-left: 2em;
    content: ' ● ';
}

/* Logbook gridview header */
.headerBase {
    font-weight: normal;
    color: var(--header-base-color);
}

.headerBase a {
    color: var(--header-base-color);
}

.headerBase a:hover {
    color:var(--anchor-color);
    text-decoration:none;
}

.headerSortAsc {
    font-weight: bold;
}

.headerSortAsc::after {
    content: '▲';
}

.headerSortDesc {
    font-weight: bold;
}

.headerSortDesc::after {
    content: '▼';
}

/* Wizard steps */
.wizStepCompleted
{
    font-weight:normal;
    color: var(--disabled-color);
    font-size: 14pt;
}

.wizStepInProgress
{
    font-weight:bold;
    font-size: 14pt;
}

.wizStepFuture {
    font-weight: normal;
    font-size: 14pt;
    color: var(--entry-item-label-color);
}

/* next steps bullet */
ul.nextStep li {
    
    background: url('../images/rightarrow.png') no-repeat left center; 
    padding: 5px 5px 5px 30px;
    list-style: none;
    margin: 0;
    vertical-align: middle;
}

/* Footer */
.footerContainer {
    text-align: center;
    clear: both;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    width: 100%;
    border-top: 5pt solid var(--theme-color);
    background-color: var(--menu-color);
    color: var(--footer-text);
    font-weight: normal;
    font-family: roboto_bold;
    font-size: 9pt;
}

.footerItem
{
    display:inline-block;
    text-align: left;
    vertical-align:top;
}

.footerItem li {
    list-style-type:none;
    display:block;
    padding-bottom: 4pt;
}

.footerContainer hr {
    display: none;
}

.footerContainer a, footerContainer a:visited, footerContainer a:hover {
    color: var(--footer-text);
}

/* Data entry form tables */
td.header, tr.header
{
    font-weight: bold;
    text-align: left;
}

td.label
{
    vertical-align: middle;
}

/* Filter items for a flight query */
.queryFilterItem {
    display:inline-block; 
    border-radius: 4px; 
    font-size: 10pt; 
    padding: 3px; 
    vertical-align:middle; 
    margin:2px; 
    border: 1px solid var(--default-border); 
    background: var(--callout-background);
}

/* Progress towards ratings */
.progress {
    width: 500px; 
    border: 1px solid var(--default-border); 
    margin-top: 3pt;
    position: relative; 
    height: 20px;
    padding: 3px;
}

.checkedBox
{
    width: 40px;
    height: 40px;
    border: 2px solid var(--default-border);
    text-align: center;
    vertical-align: middle;
    font-size: 30px;
    font-weight: bold;
    line-height: 40px;
}

.percent {
    text-align:center; 
    width:100%; 
    position: absolute; 
    font-weight:bold; 
    vertical-align:bottom; 
    padding: 3px;
    left:0; 
    top:0;
    height:20px;
    line-height: 20px;
    display:inline-block;
    margin-bottom: 5pt;
}

.progressRow {
    vertical-align: top;
    padding-top: 5pt;
    padding-bottom: 5pt;
    page-break-inside: avoid;
}

.bar 
{
    margin: 0;
    left:0;
    top:0;
    height: 20px;
}

.progressCompleted {
    background-color: var(--progress-complete);
}

.progressNotCompleted {
    background-color: var(--progress-incomplete)
}

/* Image List item */
.ilItem {
    display: inline-block; 
    padding: 5px; 
    vertical-align:top; 
    text-align:center;
}

.ilToolbar {
    text-align: center; 
    vertical-align:middle
}

.ilToolbarItem {
    padding-left: 3px;
    padding-right: 3px;
}

.imgShowFull {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 5px;
}

.imgShowFullBackground {
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: 10001;
    width: 100%;
    height: 100%;
}

.imgDismissBtn {
    position: absolute;
    margin: 15px, 15px, auto, auto;
    top: 15px;
    right: 15px;
    z-index: 3;
    border: none;
    outline: none;
    background: none;
}

.imgDismissBtn:focus {
    outline:none;
    border:none;
}

/* Preferences */
.prefSectionRow
{
    margin-bottom: 10px;
}

/* Calendaring */
.calContainer
{
    vertical-align:top;
}

.calPlaceholder
{
    float:left; width:200px; padding: 4px; margin-left: auto; margin-right: auto;
}

.calNavContainer
{
    float:left; width:210px; padding:4px;margin-left: auto; margin-right: auto;
}

.calCalContainer
{
    float:left; width:600px; padding: 4px;
}

.calendar_default_rowheader {
    color: var(--menu-color-selected);
    background-color: var(--menu-background-selected);
}

/* Club */
.clubContainer {
    width: 90%;
    padding: 3px;
    vertical-align: top;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
}

.clubHeader {
    font-weight: bold;
    padding: 5px;
    background-color: var(--callout-background);
    margin-top: 5pt;
    margin-bottom: 5pt;
}

.clubDetailsLeft
{
    vertical-align:top;
    padding: 2px;
    width: 100%;
}

.clubDetailsRight {
    vertical-align: top;
    float: right;
    line-break: auto;
    padding: 4px;
    margin-left: 8px;
    margin-bottom: 4px;
    width: 50%;
    max-width: 30em;
    padding: 5pt;
    border: 1px solid var(--callout-border-color);
    background-color: var(--callout-background);
    border-radius: 6px;
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
}

.clubCFI {
    background-color: var(--callout-background);
    font-weight: bold;
    border-radius: 5px;
    padding: 5px;
}

.clubMemberRow, .clubMemberAlternateRow {
    vertical-align: middle;
    border-bottom: 1px solid var(--table-border-color);
}

.clubMemberAlternateRow {
    background-color: var(--table-alternate-row-background);
}

.clubMemberRow:nth-last-child(1), .clubMemberAlternateRow:nth-last-child(1) {
    border-bottom: none;
}

table.tblAvailablityMap {
    font-size: smaller;
    border-spacing: 0;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
}

table.tblAvailablityMap th {
    font-size: 7pt;
    font-weight: normal;
}

table.tblAvailablityMap th.dateHeader {
    font-weight:bold;
}

    table.tblAvailablityMap th.timeHeader {
        text-align: left;
        border: 1px solid var(--textbox-border-color);
    }

.avmResource {
    font-weight: bold;
}

.avmAvail {
    border-top: 1px solid var(--textbox-border-color);
    border-bottom: 1px solid var(--textbox-border-color);
    border-left: 2px solid var(--textbox-border-color);
    margin-bottom: 1px;
    margin-top: 1px;
    width: 15px !important;
}

.avmBusy {
    background-color: var(--disabled-color);
    border-top: 1px solid var(--textbox-border-color);
    border-bottom: 1px solid var(--textbox-border-color);
    margin-bottom: 1px;
    margin-top: 1px;
    width: 15px !important;
}

.avmSubHour {
    border-left: 2px solid var(--textbox-border-color);
}

    .avmSubHour:last-child, .avmBusy:last-child {
        border-right: 2px solid var(--textbox-border-color);
    }

.avmBusy:nth-child(2) {
    border-left: 2px solid var(--textbox-border-color);
}

/* Drag & drop */
.draggableItem {
    padding-left: 20px;
    padding-right: 4px;
    height: 16px;
    line-height: 16px;
    margin: 4px;
    position: relative;
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--default-border);
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
    background-color: var(--body-background);
    color: var(--text-default);
    cursor: move;
    display: block;
    min-width: 150px;
}

.draggableItem::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: var(--jquery-icons);
    background-position: 0px -224px;
    background-repeat: no-repeat;
    background-size: auto;
    pointer-events: none;
}

.dragTarget {
    overflow-y:scroll;
    height: 136px;
    border: 1px solid var(--default-border);
}

/* Resize handle*/
.resizeHandle {
    height: 20px;
    width: 20px;
    background-image: url(../images/resizehandle.png);
    cursor: se-resize;
    z-index:100;
}

/* Active/Inactive aircraft or other items. */
.activeRow {
    opacity: 1.0;
}

.inactiveRow {
    opacity: 0.5;
}

/* Flight details view */
.detailsHeaderBar {
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: center;
    background-color: var(--callout-background);
    border: 1px solid var(--callout-border-color);
    border-radius: 6px;
}

.detailsSection {
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 90%;
    border: 1px solid var(--default-border);
    border-radius: 5px;
}

.featureAreaDescriptorIcon {
    background-repeat: no-repeat;
    background-position-x: center;
    background-size: 24pt 24pt;
    line-height: 24pt;
    display: block;
}

.noselect:focus {
    outline: none !important;
}

/* Pop-up hover menus */
.popContainer {
    display: inline-block;
}

.popMenuContent {
    background-color: var(--menu-background);
    border: 1px solid var(--default-border);
    color: var(--menu-color);
    padding: 3px;
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
}

.popTrigger:hover, .popContainer:hover .popTrigger {
    background-color: var(--menu-background-selected);
    color: var(--menu-color-selected);
    border-radius: 5px;
}

.popTrigger:hover + .popMenuHidden, .popMenuHidden:hover {
    display: block;
}

.ctxtMenuIcon {
    width: 21px;
    height: 21px;
    background-image: url('/logbook/images/menuchevron.png');
    display: inline-block;
    filter: var(--inverted-image-filter);
}

.darkSensitive {
    filter: var(--inverted-image-filter);
}

.popMenuHidden {
    padding: 3px;
    position: absolute;
    display: none;
    z-index: 100;
}

.searchBox {
    border: 1px solid var(--default-border);
    border-radius: 14px;
    height: 24px;
    display: table-cell;
    vertical-align: middle;
    text-align: left;
    padding-left: 8px;
    padding-right: 3px;
}

.searchBoxIcon {
    vertical-align: middle;
    height: 20px;
}

.searchBoxTextBox {
    width: 120px;
    font-size: 8pt;
    border: none !important;
    vertical-align: middle;
    outline: none !important;
}

.searchBoxTextBox:focus {
    border: none;
}

/* Privacy footer */
#privacyFooter {
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 2px;
    border: 1px solid var(--callout-border-color);
    border-radius: 3px;
    background-color: var(--callout-background);
    padding: 4px;
    position: fixed;
}

@media screen {
    #privacyFooter { bottom: 0px; }
}

/* Signature radio button items */
.signFlightFlightToSign {
    display: inline-block;
    margin: 5px;
    vertical-align:top;
}

.signFlightFlightToSign > table {
    background-color: var(--callout-background);
    border-radius: 5px;
    box-shadow: 2px 2px 3px 0px var(--box-shadow-color);
    border: 1px solid var(--callout-border-color);
    margin-left:auto;
    margin-right:auto;
    padding: 3px;
}

.signFlightFlightToSign td {
    padding: 3px;
}

.signFlightSignatureBlock {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    padding: 3px;
    vertical-align: top;
}

.signFlightInstructorChoice {
    line-height: 24pt;
    font-weight:bold;
}

.bigNumberSection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20pt;
    width: 20pt;
    background-color: var(--theme-color);
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 16pt;
    border: 1px solid var(--theme-color);
    margin-top: 2pt;
    margin-bottom: 2pt;
    margin-right: 4pt;
    border-radius: 10pt;
}

h3.numberedStep {
    display: inline-block;
    vertical-align: middle;
}

/* Gridview styles */
.lbTable {
    font-size: 8pt;
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0px;
}
.lbTable th {
    cursor: pointer;
}

.gvhDefault {
    text-align: left;
    vertical-align: bottom;
    position: sticky;
    top: 0;
    background-color: var(--body-background);
}

tr.gvhDefault th {
    border-bottom: 1px solid var(--sticky-header-border);
}

tr.gvhDefault th:nth-last-child(2), tr.gvhDefault th:last-child {
    border-bottom: none;
}

.gvhCentered, .gvcCentered {
    text-align: center;
}

.gvhLeft, .gvcLeft {
    text-align: left;
}

.gvhRight, .gvcRight {
    text-align: right;
}

.gvcCentered, .gvcLeft, .gvcRight {
    border-right: 1px solid var(--sticky-header-border);
}

.gvcCentered:last-child, .gvcLeft:last-child, .gvcRight:last-child {
    border-right: none;
}

.gvcNoBorderRight, gvhNoBorderRight {
    border-right:none;
}

.gvhBold {
    font-weight: bold;
}

.gvAcImage {
    text-align: center;
    width: 160px;
    vertical-align: top;
}

.gvAcItem {
    vertical-align:top;
}

.gvAcInactive {
    vertical-align:top;
    width: 20px;
}

.gvContext {
    vertical-align:top;
    width: 20px;
}

.gvDelete {
    vertical-align:top;
    width: 13px;
}

/* Flight Context menu */
.flightContextMenu div {
    line-height: 26px;
}
.flightContextMenu img {
    padding-right: 4px;
    vertical-align: middle;
}

/* Sticky-header tables (not gridview) */
.stickyHeaderTable {
    border-color: var(--sticky-header-border);
    font-size: 9pt;
}

table.stickyHeaderTable {
    width: 100%;
    border-collapse: separate; /* Don't collapse */
    border-spacing: 0;
}

    table.stickyHeaderTable th {
        /* Apply both top and bottom borders to the <th> */
        border-bottom: 1px solid var(--sticky-header-border);
        padding: .5em 1em .5em 1em;
        vertical-align: bottom;
        text-align: center;
        font-weight: bold;
    }

table.stickyHeaderTable th.gvhLeft {
    text-align: left;
}

table.stickyHeaderTable th.gvhRight {
    text-align: right;
}

table.stickyHeaderTable td {
    /* For cells, apply the border to one of each side only (right but not left, bottom but not top) */
    border-bottom: 1px solid var(--sticky-header-border);
    border-right: 1px solid var(--sticky-header-border);
    padding: .5em 1em .5em 1em;
}

table.stickyHeaderTable tr {
    vertical-align: top;
}

    table.stickyHeaderTable td:first-child {
        border-left: 1px solid var(--sticky-header-border);
    }

    table.stickyHeaderTable.stickyHeaderAlternate tr:nth-child(even) {
        background-color: var(--table-alternate-row-background);
    }

/* Feature comparison */
table.featureTable {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    vertical-align: top;
    border-spacing: 0px;
    border-collapse: collapse;
}

.featureTable tr {
    vertical-align: middle;
}

    .featureTable tr td {
        padding: 3px;
        vertical-align: middle;
    }

.featureTable .featureGroup {
    font-weight: bold;
    font-size: larger;
}

.featureTable .appHeader {
    font-weight: bold;
    font-size: larger;
    border: none;
}

.featureTable tr.appHeader td {
    border: none;
}

.featureTable .spacerColumn {
    width: 2em;
}

.featureTable .feature {
    text-align: center;
    max-width: 20em;
    border: 1px solid var(--default-border);
}

.featureName {
    max-width: 20em;
    border: 1px solid var(--default-border);
}

.highlightedFeature {
    background-color: var(--callout-background);
}

/* Aircraft menu handle */
.imageMenu {
    display: inline-block;
    vertical-align: top;
    margin-left: -3px;
    background-color: var(--callout-background);
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
}

.imageMenu div {
    padding: 4px;
}

/* Rounded Images */
.roundedImg {
    border-radius: 50%;
    vertical-align: middle;
}

/* Inline edit/read mode for data tables */
tr div.displayCell, tr.editRow div.editCell {
    display: block;
}

tr div.editCell, tr.editRow div.displayCell {
    display: none;
}

/* Badges */
.badgeContainer {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    margin-left: 5px;
    margin-right: 5px;
    width: 140px;
}

.badgeOverlay {
    width: 70px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.badgeImage {
    width: 70px;
    height: 113px;
}

.badgeName {
    font-weight: bold;
}

.badgeDetails {
    font-size: smaller;
}

/* Recent Achievements Calendar */
.monthContainer {
    display: inline-block;
    margin: 3px;
    vertical-align: top;
    border: 1px solid var(--default-border);
}

.monthHeader {
    text-align: center;
    background-color: var(--callout-background);
    font-weight: bold;
    font-size: 9pt;
}

.adjacentDay {
    color: var(--text-light);
    background-color: var(--callout-background);
    height: 30px;
    width: 30px;
}

.includedDay {
    background-color: var(--body-background);
    color: var(--text-default);
    height: 30px;
    width: 30px;
}

.dayOfMonth {
    font-size: 7pt;
    font-weight: normal;
    vertical-align: top;
}

.dateContent {
    display: block;
    font-size: 8pt;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    border-radius: 8px;
}

.dateContentValue {
    background-color: var(--theme-color);
}

.dateContent:hover, .dateContent:link, .dateContent:visited {
    color: var(--text-default);
}

/* Image hover list */
.hoverListContainer a div.hoverListItems {
    display: none;
    position: relative;
    max-width: 500px;
    text-align: left;
}

.hoverListContainer a {
    position: absolute;
    text-decoration: none;
    color: var(--text-default);
    cursor: default;
    font-weight: normal;
}

.hoverListContainer:hover a div.hoverListItems {
    left: -164px;
    top: -14px;
    display: block;
    z-index: 200;
}

/* Ajax file upload */
.fileUploadContainer {
    border: 1px solid gray;
    padding: 3px;
    display: inline-block;
    margin-top: 3pt;
    margin-bottom: 3pt;
}

.fileDragTarget {
    vertical-align: top;
    border: 3px dotted var(--theme-color);
    border-radius: 8pt;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 130px;
    height: 130px;
    color: var(--text-dim);
    padding: 5px;
    font-size: 125%;
    font-weight: bold;
}

.fileDragTargetSmall {
    vertical-align: top;
    border: 3px dotted var(--theme-color);
    border-radius: 8pt;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 8em;
    height: 28pt;
    color: var(--text-dim);
    padding: 5px;
    font-size: 125%;
    font-weight: bold;
}

.fileDragHighlighted {
    border: 3px solid var(--default-border);
}

.fileInQueueContainer {
    vertical-align: top;
    border: 1px solid var(--default-border);
    border-radius: 8pt;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 130px;
    height: 130px;
    padding: 5px;
    font-size: 100%;
    margin-left: 3px;
    margin-right: 3px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.fileInQueContainerInProgress {
    color: var(--text-dim);
}

.fileUploadProgressBar {
    width: 90%;
    height: 22px;
    margin: 5px 0 5px 0;
    position: relative;
}

    .fileUploadProgressBar div.bar {
        width: 0%;
        overflow: hidden;
        background-color: var(--progress-incomplete);
        border: 1px solid var(--progress-incomplete);
        border-radius: 5px;
        padding: 0;
        height: 26px;
    }

    .fileUploadProgressBar div.percent {
        border: 1px solid var(--progress-incomplete);
        border-radius: 5px;
        color: var(--text-default);
    }

.fileUploadResult {
    width: 100%;
}

.fileUploadResult img {
    max-width: 120px;
    max-height: 80px;
}

.fileUploadStatusbar {
    min-height: 25px;
    width: 100%;
    vertical-align: top;
    overflow: hidden;
}

.fileUploadFilename {
    width: 100%;
    font-weight: bold;
    text-align: center;
    text-overflow: ellipsis;
}

.fileUploadFileSize {
    width: 100%;
    font-size: smaller;
    text-align: center;
}

.fileUploadAbort {
    background-color: var(--callout-background);
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    text-align: center;
    color: var(--text-default);
    font-size: larger;
    padding: 4px 15px;
    cursor: pointer;
    margin: 5px auto 5px auto;
    max-width: 60%;
}

.logbookRow, .logbookAlternateRow {
    vertical-align: top;
    border: 1px solid var(--sticky-header-border);
    page-break-inside: avoid;
}

.logbookAlternateRow {
    background-color: var(--table-alternate-row-background);
}

/* Printing */
.printHeaderLeft {
    width: 33%;
}

.printHeaderAddress {
    white-space: pre-wrap;
}

.printHeaderCenter {
    width: 34%;
    text-align: center;
}

.printHeaderLogo {
    max-width: 120px;
}

.printHeaderRight {
    width: 33%;
    text-align: right;
}

.printMarginPagePlaceholder {
    border: 1px dotted var(--text-default);
    width: 60px;
    margin: 4px;
    height: 60px;
}

@media print {
    h1 {
        background-color: none;
    }

    BODY, body {
        border: none;
        background-color: none;
        color: black;
    }

   thead {display: table-header-group;}
   tfoot {display: table-footer-group;}
   .noprint, .footerContainer {display:none; border:none;}
   tr.logbookRowEven:nth-child(even) { background: none; }
   tr.logbookRow td, tr.logbookAlternateRow td {border: 1px solid lightgray; }
   .hintPopup {
    border: none;
    border-radius: 0px;
    padding: 0px;
    margin: 0px;
    }
    .endorsement {
        background-color: none;
        border: 1px solid black;
    }
}

/* All print layouts are contained within pageTable */
.pageTable {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: transparent;
    color: black;
}

.pageTable td {
    padding: 2pt;
}

@media screen {
    .printonly {display:none;}
    tr.logbookRowEven:nth-child(even), .logbookAlternateRow {
        background: var(--table-alternate-row-background);
    }

    .logbookAlternateRow td, .logbookRow td {
        border-bottom: 1px solid var(--sticky-header-border);
    }

    .logbookAlternateRow td:first-child, .logbookRow td:first-child {
        border-left: 1px solid var(--sticky-header-border);
    }

    .logbookAlternateRow td.noprint, .logbookRow td.noprint {
        background-color: var(--body-background);
        border-bottom: none;
    }

    body {
        max-width: 1400px;
    }
}

thead {display: table-header-group;}
tfoot {display: table-footer-group;}