/* ========================================
   CSS Variables & Theming
   ======================================== */

html {
    --text-color: #333;
    --text-color-heading: #262c3d;
    --background-1: #fffe;
    --background-2: #e8eaed;
    --background-3: #ccc8;
    --input-background: #aaa3;
    --section-background-image: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
    --zing-background: linear-gradient(to bottom, #b0eea5, #7fd47a);
    --zing-color: #7fd47a;

    --button-color: rgba(0, 0, 0, 0.7);
    --button-background: rgba(0, 0, 0, 0.04);
    --button-border: 1px solid rgba(0, 0, 0, 0.22);
    --button-hover-color: #000;
    --button-hover-background: rgba(0, 0, 0, 0.08);
    --button-hover-border: rgba(0, 0, 0, 0.4);
    --button-active-background: var(--table-header-background);
    --button-disabled-background: rgba(0, 0, 0, 0.02);

    --accent-color: #3b6fe8;
    --table-header-background: linear-gradient(180deg, #e4ecf9 0%, #d6e5f7 100%);
    --table-header-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    --table-header-text-shadow: 0;
    --table-header-color: rgba(25, 45, 80, 0.75);
    --table-header-selected-background: linear-gradient(180deg, #3b6fe8 0%, #2d5fd4 100%);
    --table-header-selected-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    --table-header-box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.4) inset;
    --table-header-selected-text-shadow: 0;
    --table-even-row-background-color: rgba(0, 0, 0, 0.05);
    --table-odd-row-background-color: transparent;
    --table-selected-color: #ffffff;
    --table-selected-row-background: var(--table-header-selected-background);
    --table-selected-row-shadow: 0 0 4px rgba(0, 0, 0, 0.2);

    --menubar-background-image: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
    --menubar-shadow: inset 0 -7px 9px -7px rgba(0,0,0,0.2);
    --border-color: rgbg(255,255,255,0.08);
    --scrollbar-color: hsl(0, 0%, 60%) hsl(0, 0%, 80%);
    --scrollbar-shadow-color: rgba(0, 0, 0, 0.5);
    --tooltip-background-color: rgba(240, 240, 240);
    --modal-background-color: rgba(240, 240, 240, 0.8);
    --modal-content-background-image: var(--section-background-image);
    --chat-current-background: #ffffff;
    --chat-shadow: inset 0 0 2px white, 0 0 3px rgba(0, 0, 0, 0.5);
    --select-background-color: var(--background-3);
    --select-linear-gradient: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
    --input-border-color: #b0c8f0;
    --input-color: #444;
    --input-background-color: var(--background-3);
    --placeholder-color: #747474aa;
    --loading-spinner-background: var(--background-1);
    --fallback-background: var(--background-3);
    --highlight-text-color: #dddddd;
    --shadow-1: 0px 0px 2px 0px rgba(0, 0, 0, 0.3);
    --shadow-2: 0px 0px 8px 1px rgba(0, 0, 0, 0.4);
    --placeholderBlurColorLight: #c0c5d0;
    --placeholderBlurColorDark: #111518;
    --mobile-header-height: 28px;
    --mobile-header-more-height: 40px;
    --link-decoration-color: #5f6368;
    --table-header-border: #b0c8e8;
}

html[data-theme='dark'] {
    --text-color: #b0b0b0;
    --text-color-heading: #cccccc;
    --background-1: #12122a;
    --background-2: #1a1a2e;
    --background-3: #252545;
    --input-background: rgba(255, 255, 255, 0.05);
    --section-background-image: linear-gradient(180deg, #161635 0%, #0e0e23 100%);

    --button-color: rgba(255, 255, 255, 0.8);
    --button-background: rgba(255, 255, 255, 0.05);
    --button-border: 1px solid rgba(255, 255, 255, 0.1);
    --button-hover-color: #FFF;
    --button-hover-background: rgba(255, 255, 255, 0.1);
    --button-hover-border: rgba(255, 255, 255, 0.3);
    --button-disabled-background: rgba(255, 255, 255, 0.02);
    --button-active-background: rgba(255, 255, 255, 0.15);

    --table-header-background: linear-gradient(180deg, #252545 0%, #161635 100%);
    --table-header-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --table-header-text-shadow: none;
    --table-header-color: rgba(255, 255, 255, 0.6);
    --table-header-selected-background: linear-gradient(180deg, #303060 0%, #252545 100%);
    --table-header-selected-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --table-header-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.4) inset;
    --table-header-selected-text-shadow: none;
    --table-even-row-background-color: rgba(255, 255, 255, 0.03);
    --table-odd-row-background-color: transparent;
    --table-selected-color: #dddddd;
    --table-selected-row-background: rgba(96, 147, 231, 0.15);
    --table-selected-row-shadow: inset 0 0 0 1px rgba(96, 147, 231, 0.3);
    --table-header-border: rgba(255, 255, 255, 0.08);

    --menubar-background-image: linear-gradient(to bottom, #161635, #0e0e23);
    --menubar-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    --border-color: rgbg(255,255,255,0.08);
    --scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    --scrollbar-shadow-color: transparent;
    --tooltip-background-color: rgba(22, 22, 53, 0.95);
    --modal-background-color: rgba(0, 0, 0, 0.75);
    --modal-content-background-image: linear-gradient(180deg, #161635 0%, #0e0e23 100%);
    --chat-current-background: rgba(37, 37, 69, 0.8);
    --chat-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --select-background-color: var(--background-3);
    --select-linear-gradient: linear-gradient(to bottom, #303060 0%, #252545 100%);
    --input-border-color: rgba(255, 255, 255, 0.15);
    --input-color: #dddddd;
    --input-background-color: #161635;
    --placeholder-color: rgba(255, 255, 255, 0.3);
    --loading-spinner-background: rgba(0, 0, 0, .7);
    --fallback-background: #0e0e23;
    --highlight-text-color: #6093e7;
    --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.6);
    --shadow-2: none;
    --link-decoration-color: #6a6a8a;
    --zing-color: #4a9e4a;
}

/******************************************************************
	CSS Reset
******************************************************************/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
}
article, aside, details, figcaption, figure, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
html, body {
	width: 100%;
	height: 100%;
}
a { 
    text-decoration: none;
    cursor: pointer;
}
input {
    color: var(--input-color);
	border: 1px solid var(--input-border-color);
    background-color: var(--input-background-color);
	outline: none;
}
textarea {
	border: 1px solid var(--input-border-color);
	background-color: var(--input-background-color);
	color: var(--input-color);
}

/* ========================================
   Base & Typography
   ======================================== */

body {
    font-size: 13px;
    font-family: system-ui;
    color: var(--text-color);
    background: var(--fallback-background);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}
a {
    font-size: inherit;
    color: var(--text-color);
}
h1, h2, h3, h4, h5, h6, .font-display {
    color: var(--text-color-heading);
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: -.01em;
    margin-bottom: 2px;
}
h3, .h3 {
    font-weight: 600;
}
h4, .h4 {
    font-size: 0.95rem;
}
h5, .h5 {
    font-size: 0.85rem;
}
p {
    font-size: 12px;
}

.info {
    font-style: italic;
    font-weight: normal;
    color: var(--text-color);
    opacity: 0.8;
}
.font-mono, .font-numeric, .price, .value, .cell[align="right"], .summary, .amount, .rep-value {
    font-family: system-ui, -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.font-normal {
    font-size: 13px;
    font-family: system-ui, -apple-system, sans-serif;
}
.font-uppercase {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: .65;
}

::placeholder {
    color: var(--placeholder-color);
}

.label, div.header, span.header {
    line-height: 1.4;
    color: var(--text-color);
    text-decoration: none;
    font-size: 12px;
}
.label {
    opacity: 0.8;
}

div.header, span.header {
    font-size: 18px;
}

li.row, div.table-row {
    font-size: 11px;
    color: var(--text-color);
}

/* ========================================
   Layout - Main Structure
   ======================================== */

#mainContainer {
    width: 100%;
    height: calc(100dvh - 40px);
    padding-top: 40px;
}

#main {
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
    top: 0px !important;
    position: fixed !important;
    box-sizing: border-box;
}

#canvasContainer {
    width: 100%;
    height: 100%;
}
.canvas {
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 8px;
    padding-right: 8px;
}
@media screen and (min-width: 800px) {
    .canvas {
        padding-left: 52px;
    }
}

/* Primary Navigation */
#navPrimary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 3px;
    gap: 6px;
    border-radius: 0 24px 24px 0;
    background-color: var(--background-1);
    opacity: 1;
    scrollbar-width: none;
    position: fixed;
    top: calc(50vh - 320px); /*roughly 50% - half of nav height */
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}
#navPrimaryToggle {
    display: none;
}
@media screen and (max-width: 800px) {
    #navPrimary {
        transform: translateX(-100%);
    }
    #navPrimary.active {
        transform: translateX(0);
    }
    #navPrimaryToggle {
        position: fixed;
        bottom: 4px;
        left: 4px;
        z-index: 99;
        width: 48px;
        height: 48px;
        margin: 0;
        border-radius: 50%;
        border: 1px solid #AAA;
        background: var(--background-1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
@media screen and (min-width: 640px) {
    #navPrimary {
        gap: 8px;
        padding: 8px 3px;
    }
}
#navPrimary::-webkit-scrollbar {
    display: none;
}
#navPrimary .label {
    font-size: 16px;
    font-weight: bold;
    background-color: var(--background-2);
    padding: 4px 8px;
    border-radius: 0 8px 8px 0;
    display: none;
    position: absolute;
    left: 44px;
    opacity: 0.8;
}
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    background: color-mix(in srgb, var(--background-1) 75%, transparent);
    box-shadow: var(--shadow-1);
    border: 1px solid transparent;
    transition: border 0.2s, transform 0.5s;
}
.nav-link:hover img {
    transform: scale(1.3);
}
#navPrimary .nav-link:hover, #navPrimary .nav-link.selected {
    cursor: pointer;
    border: 1px solid #eee;
}
#navPrimary .nav-link:hover:active {
    border: 1px solid #ccc;
}
#navPrimary .nav-link:hover .label {
    display: block;
}

/* ========================================
   Secondary Layout
   ======================================== */

.mainPanel {
    width: 50%;
    height: 100%;
}

.sidePanel {
    width: 50%;
    padding-left: 0px;
    box-sizing: border-box;
    right: 0;
}

#worldMapCanvas .sidePanel .close {
    right: 55px;
    top: 0;
    z-index: 999;
}
#linksCanvas .sidePanel .close {
    right: 8px;
    top: 8px;
    z-index: 999;
}

#airportDetails>.verticalGroup, .officeCanvasLeftGroup .verticalGroup, #rankingCanvas .verticalGroup, .campaignDetails .verticalGroup, #allianceCanvas .verticalGroup {
    width: 50%;
    gap: 8px;
}

#worldMapCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.vertical-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.max-w-screen-nav {
    max-width: calc(100vw - 60px);
}

/* ========================================
   Specific Canvas Areas
   ======================================== */

#linkDetails {
    display: flex;
}

#linkCharts {
    width: 260px;
    display: flex;
    flex-direction: column;
}

#detailsPanel, #extendedPanel {
    margin-top: 2rem;
    background-color: var(--background-1);
}

#detailsPanel {
    margin-bottom: 2rem;
}

#linkQuality {
    display: inline;
}

.value:has(#linkQuality) {
    display: flex;
    width: auto;
    align-content: end;
    justify-content: flex-start;
}

.airplaneCanvasLeftGroup {
    width: 70%;
    height: 99%;
    position: relative;
}

@media only screen and (min-device-width: 800px) {
    #airplaneModelTableFilters {
        position: absolute;
        top: 0px;
        right: 0px;
    }
}

#airplaneModelTableFilters {
    display: flex;
    gap: 8px
}

.bankCanvasLeftGroup, .oilCanvasLeftGroup {
    width: 44%;
}
.bankCanvasRightGroup, .oilCanvasRightGroup {
    width: 56%;
}

#newLoanOptionsTable {
    min-width: 800px;
}

.airplaneCanvasRightGroup {
    width: 30%;
}

#opsSheet .text-success, #opsSheet .text-warning, #opsSheet .text-danger {
    font-weight: 600;
}

/* Sheet tab row — sits above .sheet-frame */
.sheet-tab-row {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 8px 4px 0;
    flex-wrap: wrap;
}
.sheetOptions {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.sheetOptions .cell {
    background: var(--table-header-background);
    box-shadow: var(--table-header-shadow);
    color: var(--table-header-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 5px 5px 0 0;
    border: 1px solid var(--table-header-border);
    border-bottom: none;
    margin-bottom: -1px;
    cursor: pointer;
    user-select: none;
}
.sheetOptions .cell.selected {
    background: var(--table-header-selected-background);
    box-shadow: var(--table-header-selected-shadow);
    color: var(--table-selected-color);
    text-shadow: var(--table-header-selected-text-shadow);
}
.sheetOptions .cell:hover:not(.selected) {
    background: var(--table-header-selected-background);
}
.sheetOptions .cell:hover:not(.selected) a {
    color: var(--table-selected-color);
}
.sheet-frame {
    width: 100%;
    height: 1400px;
    flex-grow: 1;
    border: 1px solid var(--table-header-border);
    border-radius: 0 4px 4px 4px;
    overflow: hidden;
}

/* Sheet nav — injected by JS inside each sheet */
.sheet-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 12px;
    border-top: 1px solid var(--table-header-border);
    border-bottom: 1px solid var(--table-header-border);
    margin: 0 0 8px;
}
.sheet-nav .nav-link {
    cursor: pointer;
    color: var(--text-color-link, #4a90e2);
    text-decoration: none;
}
.sheet-nav .nav-link:hover {
    text-decoration: underline;
}
.sheet-nav .nav-cycle {
    font-size: 11px;
    opacity: 0.7;
}

.sheet {
    padding: 0 8px;
    box-sizing: border-box;
}
.sheet .table.data {
    padding: 20px;
    box-sizing: border-box;
}
.sheet .table-row {
    height: 25px !important;
}

#eventCanvas .firstColumn {
    width: 30%;
}

#eventCanvas .secondColumn {
    min-width: 400px;
}

#rankingCanvas {
    width: 100%;
}
.rankingTable {
    margin: 0 !important;
    padding: 2px !important;
}

#loanInterestRateChart, #oilPriceChart {
    width: 100%;
    height: 40vh;
    min-height: 320px;
    margin: 0 auto;
}

/* ========================================
   Top Bar & Menubar
   ======================================== */

.menubar {
    top: 0px;
    width: 100%;
    z-index: 999;
    background-image: var(--menubar-background-image);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--menubar-shadow);
}

#topBar {
    pointer-events: none;
    box-shadow: none;
    background: none;
    border: none;
    position: fixed !important;
    z-index: 2;
    align-items: stretch;
}
#topBar > div {
    background: var(--background-1);
}
#topBar * {
    pointer-events: auto;
}
#topBar > div {
    box-shadow: var(--shadow-1);
}
/* #topBar > :first-child { 
    position: absolute;
    top: -1px;
    left: -1px;
    border-radius: 0 0 6px 0;
    padding: 10px 14px;
}
#topBar > :last-child {
    position: absolute;
    top: -1px;
    right: -1px;
    border-radius: 0 0 0 8px;
} */
#topBar .logo {
    width: 44px !important;
    margin-bottom: -8px;
}
#topBar .currentAirline {
    font-size: 14px;
}
#topBar .topBarDetails {
    display: flex;
    padding: 4px 8px;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    gap: 0 1rem;
}
#topBar .topBarDetails > * {
    height: 16px;
}
#topBar .reputationStars {
    margin: 0;
}
#topBar p {
    margin: 0;
}
#topBar .oilprice {
    position: relative;
    bottom: 2px;
}

#patreonDiv {
    margin: 5px;
}
#patreonDiv a img {
    height: 25px;
    border-radius: 2px;
}

#moreTopBarTab {
    position: absolute;
    left: 0;
    right: 0;
    top: 28px;
    margin: auto;
    z-index: 11;
    cursor: pointer;
    transition: all 600ms;
}

.reputationStars {
    margin: auto 8px;
    height: min-content;
}

/* ========================================
   Tables
   ======================================== */

.table {
    display: table;
}

.table.data {
    width: 100%;
}

.table .label {
    display: table-cell;
    width: 40%;
    padding-right: 4px;
    vertical-align: top;
}

.table .value {
    display: table-cell;
    width: 60%;
    vertical-align: middle;
}

.table-width-50 .cell {
    width: 50% !important;
}

.table .cell {
    display: table-cell;
    vertical-align: middle;
}
.avg-cell {
    background-color: color-mix(in srgb, var(--zing-color) 40%, transparent) !important;
}
.table .cell.detailsSelection {
    box-shadow: var(--shadow-1) !important;
}

.summary-row .cell {
    position: sticky;
    border-bottom: 2px solid grey;
    height: 22px;
    background: var(--table-header-selected-background);
}

.table.frequencyDetail .cell, .table.frequencyDetailTotal .cell{
    padding: 4px 2px;
}

.text-hint {
    opacity: 0.8;
}

.table .table-row {
    display: table-row;
    width: 100%;
    height: 22px;
}

/* Table Header */
.table .table-header {
    display: table-header-group;
    width: 100%;
}
.table .table-header .cell:not(:empty) {
    background: var(--table-header-background);
    padding: 6px 4px;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 600;
    color: var(--table-header-color);
    overflow: hidden;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--table-header-border);
}
.table-header .cell {
    box-shadow: var(--table-header-box-shadow) !important;
}
.table-header option {
    font-size: 0.75rem;
    padding: 4px 2px;
}
.table-header option.selected {
    background-color: light-dark(rgb(118, 118, 118), rgb(195, 195, 195));
    color: light-dark(rgb(255, 255, 255), rgb(16, 16, 16));
}
.table-header select option {
    background: var(--background-1);
    color: var(--text-color-heading)
}
.table .table-header .cell.selected, .progressionItem.selected {
    background: var(--table-header-selected-background);
    color: var(--table-selected-color);
    text-shadow: var(--table-header-selected-text-shadow);
}

/* Table Rounded Corners */
.table:not(.rounded-none) .table-header .cell:first-child{
    border-radius:6px 0 0 0;
}
.table:not(.rounded-none) .table-header .cell:last-child{
    border-radius:0 6px 0 0;
}
.table:not(.rounded-none) .table-row:first-child .cell:last-child {
    border-top-right-radius: 6px;
}
.table:not(.rounded-none) .table-row:first-child .cell:first-child {
    border-top-left-radius: 6px;
}
.table:not(.rounded-none) .table-row:last-child .cell:last-child {
    border-bottom-right-radius: 6px;
}
.table:not(.rounded-none) .table-row:last-child .cell:first-child {
    border-bottom-left-radius: 6px;
}

/* Table Row Styles */
.table.data div.table-row:nth-child(even) {
    background-color: var(--table-even-row-background-color);
}

.section.clickable:hover, .section.clickable.selected {
    background: var(--table-header-selected-background);
    box-shadow: var(--table-header-selected-shadow);
}

.data div.table-row:nth-child(odd){
    background: var(--table-odd-row-background-color);
}

.data .table-row.selected:nth-child(even), .data .table-row.selected:nth-child(odd) {
    color: var(--table-selected-color);
    background: var(--table-selected-row-background);
    box-shadow: var(--table-selected-row-shadow);
}

.data .table-row.clickable:hover:nth-child(even), .data .table-row.clickable:hover:nth-child(odd) {
    color: var(--table-selected-color);
    background: var(--table-selected-row-background);
    box-shadow: var(--table-selected-row-shadow);
}

.table .subheading {
    padding: 16px 4px 0;
}

.table-container-y {
    max-height: calc(100dvh - 120px);
    overflow-y: scroll;
    overflow-x: hidden
}

.table-container-x {
    box-sizing: border-box;
    overflow-x: scroll;
    max-width: 100%;
}

.table.data {
    width: 100%;
    table-layout:fixed;
    overflow-x: auto;
    height: min-content;
}

.table.data .table-row > div,
.table.padded .table-row div{
    padding: 6px 4px;
}

.table .table-header .cell.clickable:hover {
    background: var(--table-header-selected-background);
    color: #ffffff;
}

.table-row .logo {
    width: 30px;
    height: 15px;
    float: left;
    margin-right: 4px;
}

/* ========================================
   Item Grid
   ======================================== */

.item-grid {
    display: grid;
    position: relative;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    width: 100%;
}
.grid-header {
    grid-column: 1 / -1;
}
.item {
    width: 160px;
    height: 40px;
    padding-bottom: 8px;
}
.item-span-2 {
    grid-row: span 2;
    width: auto;
    height: auto;
    padding-bottom: 8px;
}
.item-grid > .divider {
    grid-column: 1 / -1;
    margin: 0.5 rem;
}
.i-label {
    font-size: 13px;
    color: var(--text-color);
    letter-spacing: -0.1px;
    min-height: 16px;
    margin-bottom: 2px;
    font-weight: 700;
}
.i-label .tooltip {
    width: 16px;
    height: 16px;
}
.i-value {
    font-size: 13px;
    letter-spacing: -0.1px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.i-value.stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}
@media only screen and (max-device-width : 640px) {
    .item-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        width: 100%;
    }

    .item {
        width: 150px;
        height: unset;
    }

    .i-label {
        height: unset;
    }
}

/* ========================================
   Buttons
   ======================================== */
button, .button, .ajax-file-upload {
    background-color: var(--button-background);
    border: var(--button-border);
    border-radius: 6px;
    padding: 4px 12px;
    margin: 4px;
    color: var(--button-color);
    appearance: none;
    text-align: center;
    line-height: 1.5em;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
/* button hover */
a:focus, button:focus {
    text-decoration: underline;
}
.button:hover:not([class*="disabled"]), .maplibregl-ctrl button:not(:disabled):hover {
    background-color: var(--button-hover-background);
    color: var(--button-hover-color);
    border-color: var(--button-hover-border);
    text-shadow: 0 0 1px rgba(255,255,255,0.5);
}
/* button active */
.button:active:not([class*="disabled"]), .button.active {
    background-color: var(--button-active-background) !important;
    border-color: var(--button-hover-border);
}
.disabled {
}

.button.small {
    height: 20px;
    width: 20px;
}
.button.primary, button.primary {
    font-weight: 600;
    font-size: 120%;
}
.button.secondary, button.secondary {
    opacity: 0.6;
    transition: opacity 0.3s;
}
.button.secondary:hover, button.secondary:hover {
    opacity: 1.0;
}
.button.thin, button.thin {
    padding: 3px 8px;
    border-radius: 4px;
}
.button.text, button.text {
    margin: 0;
    border-color: transparent;
    background-color: transparent;
}
.button-text:hover {
    text-decoration: underline;
}
.button.tight {
    line-height: 1.2rem;
    padding: 2px 6px;
}
.button img {
    vertical-align: middle;
}
.img-button {
  opacity: 0.8;
  cursor: pointer;
  transform: scale(1) translateZ(0); 
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.img-button:hover {
  opacity: 1;
  transform: scale(1.08) translateZ(0);
}
.img-button:active {
  transform: scale(0.98) translateZ(0);
  opacity: 0.95;
  transition: transform 0.1s ease, opacity 0.1s ease; 
}

.button.selected {
    background: var(--button-active-background);
}
.button + .button {
    margin-left: 0 !important;
}

a.selected, span.selected, .clickable:hover:not(.cell), .clickable.selected:not(.cell) {
    background: var(--button-active-background);
}

.isAirplane {
    border: 1px solid transparent;
}
.isAirplane.selected {
    border-color: var(--button-hover-border);
}

a:hover, .clickable:hover, .clickable-no-highlight:hover {
    cursor: pointer;
}

input:disabled, .button.disabled, .clickable.disabled, .round-button.disabled {
    color: #a0a0a0;
    background-color: var(--button-disabled-background);
    position: relative;
}

input:disabled:hover, .button.disabled:hover, .clickable.disabled:hover, .round-button.disabled:hover {
    cursor: not-allowed;
}

button:disabled {
    filter: grayscale(100%);
    cursor: not-allowed;
}

.button.loading {
    position: relative;
}

.button.loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loading-spinner-background)
                    url('/assets/images/icons/spinner-plane.svg')
                    50% 50%
                    no-repeat;
    background-size: auto 80%;
    border-radius: inherit;
}

/* Round Buttons */
.round-button{
    background-image: linear-gradient(to bottom, #f4f1ee, #fff);
    border-radius: 50%;
    box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, .3), inset 0px 4px 1px 1px white, inset 0px -3px 1px 1px rgba(204,198,197,.5);
    position: relative;
    display: inline-block;
    height: 35px;
    width: 35px;
    transition: all .1s linear;
}
.round-button:after{
    color:#e9e6e4;
    content: "";
    display: block;
    font-size: 20px;
    text-decoration: none;
    text-shadow: 0px -1px 1px #bdb5b4, 1px 1px 1px white;
    position: relative;
}
.round-button:hover {
    border-radius: 50% !important;
}
.tick:after{
    content: "✔";
    left:10px;
    top:9px;
}
.tick:not(.disabled):hover:after, .selected .tick:not(.disabled):after, .number-button span {
    color:#83d244;
    text-shadow:0px 0px 6px #83d244;
}
.number-button {
    margin: 5px;
}
.number-button span {
    position: absolute;
    left: 13px;
    top: 10px;
    font-size: 1.2em;
    font-weight: bold;
}
/* ========================================
   Sections & Modals
   ======================================== */

.select-css {
	display: block;
	font-family: sans-serif;
	line-height: 1.3;
	padding: .2em 1.4em .2em .8em;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid #aaa;
	color: var(--text-color);
	box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
	border-radius: .5em;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--select-background-color);
	background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
	var(--select-linear-gradient);
	background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
}
.select-css:hover {
	border-color: #888;
}
.select-css:focus {
	border-color: var(--select-background-color);
	box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
	box-shadow: 0 0 0 3px -moz-mac-focusring;
	color: var(--text-color);
	outline: none;
}
.select-css:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.select-css option {
	font-weight:normal;
}

/* ========================================
   Sections & Modals
   ======================================== */

.section, .modal-content {
    border-radius: 0.5em;
    box-shadow: var(--shadow-2);
    padding: 20px 20px 32px 20px;
    box-sizing:border-box;
}
div.section, #topBar > div {
    box-shadow: var(--shadow-1);
}

.section {
    position: relative;
    border-radius: 8px;
    padding: 16px 12px 20px 12px;
    background: var(--section-background-image);
    border: 1px solid rgba(0, 0, 0, 0.07);
}
html[data-theme='dark'] .section {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.section.tight {
    padding: 4px 4px;
}
.section.tight > h4 {
    padding: 12px 2px 4px;
}
.section.tight > p {
    padding: 2px;
}
.section-title {
    width: 100%;
    font-size: 1em;
    font-weight: 600;
}
.section textarea {
    border-radius: 8px;
}

.officeCanvasRightGroup h4, .officeCanvasRightGroup li, .officeCanvasRightGroup .button, .sidePanel .tight h4 {
    padding-left: 8px;
}
.officeCanvasRightGroup h4 {
    padding-bottom: 8px;
}

.section .section {
    margin: 8px;
}

.config {
    padding: 8px 0;
    margin: 8px 0;
}
.config + .config, .config:first-child {
    border-top: 0.5px solid lightgray;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 11;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: var(--modal-background-color);
}
.modalHeader {
    margin: 0.5rem 0 1.5rem;
}

#airplaneBaseModal .modal {
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal-content {
        padding: 20px 20px 20px 24px;
    }
}

.modal.transparentBackground {
    background-color: transparent;
}

.modal#confirmationModal {
    z-index: 12;
}

.modal-content {
    position: relative;
    z-index: 11;
    margin: 8% auto 0;
    max-width: 96%;
    width: 100%;
    display: block;
    background-image: var(--modal-content-background-image);
    box-shadow: var(--shadow-1);
}

.modal-content p {
    margin-bottom: 8px;
}

.modal-content h4 {
    margin-top: 1rem;
    opacity: 0.85;
}

.modal-content .button:first-of-type {
    margin-left: 0;
}

.blur {
    filter: blur(9px);
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 10px;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Grid Options */
.modal-grid-options {
    display: grid;
    grid-gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    width: 100%;
    margin: 10px 0 40px;
}
.modal-grid-options-320 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.modal-grid-options .option {
    border: 1px solid rgb(100 126 151 / 20%);
    border-radius: 8px;
    padding: 16px 12px 20px 12px;
    box-sizing: border-box;
}
.modal-grid-options .option.available, .modal-grid-options .option.active {
    cursor: pointer;
}
.modal-grid-options .option.active {
    box-shadow: var(--table-header-selected-shadow);
    background: var(--table-header-selected-background);
    color: var(--table-selected-color);
    text-shadow: var(--table-header-selected-text-shadow);
}
.modal-grid-options .option.active h4, .modal-grid-options .option.active .font-display {
    color: var(--table-selected-color);
}
.modal-grid-options .option.available:hover {
    box-shadow: 0px 0px 7px 10px rgb(48 205 255 / 20%);
}
.modal-grid-options .option.unavailable, .modal-grid-options .option.unavailable .dot {
    cursor: not-allowed !important;
}

/* ========================================
   Map & Map Controls
   ======================================== */

#topBar,
#navPrimary,
#navPrimaryToggle,
#sidePanel,
#campaignOverlayPanel,
#searchCanvas {
    will-change: transform;
}

.mapButton {
    box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;
    border-radius: 2px;
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    height: 28px;
    margin-right: 10px;
    font-size: 11px;
}

.mapIcon {
    display: flex;
    background: var(--background-1) !important;
    box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;
    border-radius: 2px;
    cursor: pointer;
    height: 40px;
    width: 40px;
    margin-right: 10px;
    margin-left: 10px;
}

.mapControlPanel {
    padding: 1rem;
    position: absolute !important;
    bottom: 100px !important;
    left: 50% !important;
    z-index: 1 !important;
    transform:translateX(-50%) !important;
    background: var(--background-1);
}

#hideAirportLinksButton {
    position: absolute;
    top: 100px;
    left: 50%;
    width: 150px;
    margin-left: -75px;
    z-index: 1;
}

#floatBackButton {
    position: absolute;
    top: 100px;
    left: 0px;
    z-index: 1000;
    padding: 5px;
    text-align: center;
    box-shadow: inset 0 0 2px white, 0 0 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.7);
}

.blackAndWhite {
    filter: grayscale(100%);
}

/* Map Popup */
.maplibregl-popup-content {
    background-color: var(--background-1) !important;
    color: unset !important;
    font-size: unset !important;
    font-family: unset !important;
}
.maplibregl-popup-content {
    padding: 16px 12px 4px !important;
    border-radius: 20px !important;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
    border-top-color: var(--background-1) !important;
}
.maplibregl-popup * {
    color: var(--text-color-heading) !important;
}
.mapLinkHoverPopup {
    pointer-events: none;
}
.mapLinkHoverPopup .maplibregl-popup-content {
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 12px;
    line-height: 1.4;
}
.mapLinkHoverPopup * {
    color: var(--text-color) !important;
    font-weight: normal;
}
.mapLinkHoverPopupContent {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}
.mapLinkHoverRoute {
    font-weight: 600 !important;
}
.mapLinkHoverOperator {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mapLinkHoverProfit {
    margin-top: 2px;
}
.airportPopupName, .airportPopupName {
    font-size: 16px;
    padding: 0 20px 6px 0;
}
#airportPopupIata {
    float: left;
}
#airportPopupName {
    padding: 0 2px;
}
#airportPopupCity {
    font-size: 15px;
}
#airportPopupCustomsIcon img {
    width: auto;
    height: 15px;
    vertical-align: middle;
    margin-left: 4px;
}
.airportPopupItem {
    min-width: 100px;
    display: inline-flex;
    align-items: center;
}

/* Map Search */
#mapSearch {
    margin-top: 35px;
    margin-left: 0;
}
@media screen and (max-width: 640px) {
    #mapSearch {
        margin-top: 28px;
    }
}
.mapSearchWrapper {
    position: relative;
    display: flex;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-bottom-right-radius: 12px;
}
.mapSearchInput {
    width: 200px;
    padding: 8px 12px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    color: #333;
}
.mapSearchInput::placeholder {
    color: #888;
}
.mapSearchInput:focus {
    outline: none;
}
.mapSearchSubmit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    padding: 0;
    border: none;
    border-radius: 0 0 8px 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}
.mapSearchSubmit:hover {
    background-image: var(--zing-background) !important;
    background-color: white !important;
}
.mapSearchSubmit img {
    width: 18px;
    height: 18px;
}
.mapSearchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
}
.mapSearchResultItem {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #eee;
}
.mapSearchResultItem:last-child {
    border-bottom: none;
}
.mapSearchResultItem:hover,
.mapSearchResultItem.selected {
    background: #e8f0fe;
}
.mapSearchNoResults {
    padding: 12px;
    color: #666;
    font-size: 13px;
    text-align: center;
}
/* Search Canvas */
#searchCanvas > .section {
    display: flex;
    flex-direction: column;
}

/* ========================================
   Forms & Inputs
   ======================================== */

input[type='number'] {
    border-radius: 0px;
    padding: 0;
}
.label-checkbox {
    display: block;
    cursor: pointer;
    padding: 2px 0;
    transition: opacity 0.2s;
}
.label-checkbox:hover {
    opacity: .8;
}

/* ========================================
   Airport Features & Details
   ======================================== */

.airportFeatures {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.airportFeatures .feature {
    display: flex;
}

.airportCountryFlag .flag {
    position: relative;
    top: -1px;
    width: 18px;
    height: auto;
    margin: 0;
}

#airportDetailsCityImage {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 22%;
    height: 100%;
    border-radius: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
#airportDetailsAirportImage {
    width: 100%;
    height: 260px;
    margin-top: auto;
    border-radius: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.card {
    max-width: 260px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 5px 8px;
    background: var(--table-even-row-background-color);
}

.caption {
    position: absolute;
    bottom: 8px;
    color: var(--background-1);
    background: rgba(0, 0, 0, .4);
    font-size: 10px;
}

.assetsDetails div.blueprint {
    filter: grayscale(100%);
    margin: 0 !important;
}
.assetsDetails div.blueprint:hover {
    filter: none;
}

/* ========================================
   Messages & Notifications
   ======================================== */

dd.info {
    line-height: 1.6em;
    color: var(--text-color);
    text-decoration: none;
    font-size: 10px;
}
dd.error {
    line-height: 1.6em;
    color: #ff8080;
    text-decoration: none;
    font-size: 10px;
}

/* ========================================
   Tabs
   ======================================== */

.tabs {
    list-style: none;
    position: relative;
}

.tabs li:hover {
    color: var(--accent-color);
}
.tabs li.active {
    font-weight: 700;
    background-color: var(--accent-color);
    color: #FFF;
}

/* ========================================
   Dividers & Separators
   ======================================== */

.divider, hr {
    width: 100%;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 8px;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(69, 69, 68, 0), rgba(69, 69, 68, 0.75), rgba(69, 69, 68, 0.75), rgba(69, 69, 68, 0.75), rgba(69, 69, 68, 0));
}
.divider-v {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

.table.data .table-row div.divider.cell {
    border-top: 1px solid var(--accent-color);
    height: 0px;
    background-image: none;
    padding: 0;
}

/* ========================================
   Images & Logos
   ======================================== */

img.logo {
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.2);
    margin-right: 4px;
    margin-top: -2px;
    margin-bottom: -2px;
}

.logo-alliance {
    width: 32px;
    height: 16px;
    margin-top: -4px;
    margin-bottom: -4px;
    transform: scale(1.1) translateX(-2px);
}

img.flag {
    margin-right: 3px;
    position: relative;
    bottom: -1px;
}

.inline-icons img {
    vertical-align: middle;
}

.svg {
    width: 16px;
    height: auto;
    transition: filter 0.3s;
}
html[data-theme="dark"] .svg-monochrome {
    filter: invert(100%);
}
.svg-hover-red:hover {
    filter: invert(30%) sepia(87%) saturate(3031%) hue-rotate(338deg) brightness(90%) contrast(100%);
}
.svg-hover-green:hover {
    filter: invert(52%) sepia(43%) saturate(1039%) hue-rotate(86deg) brightness(99%) contrast(91%);
}
.svg-hover-blue:hover {
    filter: invert(58%) sepia(35%) saturate(3620%) hue-rotate(174deg) brightness(102%) contrast(97%);
}
.info.svg {
    width: 18px;
    margin-top: -2px;
}

.close-button, .maplibregl-popup-close-button {
    line-height: 30px;
    font-size: 30px;
    font-family: system-ui;
    font-weight: 100;
    border: 0 !important;
    background: transparent;
}

.airlineColorDot {
    width: 15px;
    height: 15px;
    padding: 1px;
    border: 1px solid #ccc;
    display: inline-block;
    background-color: #EFEFEF;
    border-radius: 17px;
    cursor: pointer;
}

.roundImage {
    object-fit: cover;
    border-radius: 50%;
    box-shadow: inset 0 0 2px white, 0 0 10px rgba(0, 0, 0, 0.8);
}

.alignHelper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

/* ========================================
   Colors & Text States
   ======================================== */

.warning, .fatal, .negative {
    color: #D46A6A;
}
.fatal {
    font-weight: bold;
}

div.future {
    color: #68A357;
    display: inline-block;
}

.highlight-text {
    color: var(--highlight-text-color) !important;
    font-weight: bold !important;
}

/* ========================================
   Tooltips
   ======================================== */

.tooltip .tooltiptext {
    box-shadow: var(--shadow-1);
}
.tooltiptext:has(img[data-src="/assets/images/clips/flight-frequency.gif"]), .progressionItem .tooltiptext {
    bottom: 125% !important;
    top: unset !important;
}
.tooltiptext[style="text-transform: none; top: 0px; width: 350px; white-space: nowrap;"] {
    width: fit-content !important;
}
.tooltiptext::after {
    display: none;
}

html[data-theme="dark"] [title="Close"] > span {
    filter: invert(1);
}

.touchTitle {
    position: absolute;
    top: 20px;
    padding: 4px;
    left: 0;
    z-index: 1;
    white-space: nowrap;
    background: linear-gradient(#F0E069 0%, #FFF6B3 10%);
    color: #606060;
    border-radius: 3px;
    text-transform: none !important;
}

/* ========================================
   Popovers
   ======================================== */

[popover] {
    color: var(--text-color);
    background: var(--background-1, #1a1a2e);
    border: 1px solid var(--border-color, #444);
    border-radius: 6px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    padding: 1rem 1.5rem;
}
[popover]:popover-open {
    translate: 0 0;
}
[popover] {
    transition: translate 0.2s ease-out, display 0.2s ease-out allow-discrete;
    translate: 0 -22rem;
}

@starting-style {
    [popover]:popover-open {
        translate: 0 -22rem;
    }
}

/* ========================================
   Chat
   ======================================== */

.chat-history ul > :last-child {
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow-1);
}
.chat-history ul > :first-child {
    border-radius: 6px 6px 0 0;
}
.ctabs > li {
    box-shadow: var(--shadow-1) !important;
    border: none !important;
    background: var(--background-2) !important;
}
.ctabs > li.current {
    background: var(--background-1) !important;
}
#live-chat header {
    border: none;
    box-shadow: var(--shadow-1);
}
#chat-box {
    background: var(--background-1);
    padding-top: 8px;
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px var(--scrollbar-shadow-color);
}
::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 6px var(--scrollbar-shadow-color);
}

div {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-color);
}

/* ========================================
   Loading Spinner
   ======================================== */

.loadingSpinner {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: var(--loading-spinner-background);
}
.loader-svg {
    width:  220px;
    height: 220px;
    margin: 30% auto;
    animation:  1.4s linear infinite loader-spin;
    background: url('/assets/images/icons/spinner-plane.svg')
                50% 50%
                no-repeat;
}
.searchInput .spinner {
    position: absolute;
    top: -20px;
}
.spinner {
    z-index: 99;
    animation: 1.4s linear infinite loader-spin;
}

@keyframes loader-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Reputation & Progress
   ======================================== */

.threshold-section {
    max-width: 100%;
    margin: 20px auto 0;
}
.threshold-bar-container {
    overflow-x: scroll;
    overflow-y: visible;
    height: 20px;
    padding: 12px 4px;
}
.threshold-bar {
    position: relative;
    height: 4px;
    border: 1px solid #555;
    border-radius: 25px;
    margin: auto;
    width: 2400px;
    overflow: visible;
}
.threshold-bar.short-fat {
    width: 128px;
    height: 24px;
    overflow: hidden;
}
.threshold-bar .text-center {
    font-size: 1.1rem;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}
.threshold-bar .dot {
    position: absolute;
    top: -6px;
    width: 10px;
    height: 12px;
    padding: 2px;
    border-radius: 10%;
    z-index: 1;
    border-left: 2px solid gold;
    transition: border-color .4s;
}
.threshold-bar .reputationValueCurrent {
    color: var(--background-1);
    font-weight: 900;
    -webkit-text-stroke: 0.4px var(--button-color);
    text-shadow: 1px -0.2px 1px var(--button-color);
}
.dot:hover {
    border-left-color: whitesmoke;
    cursor: pointer;
}
.threshold-bar-bg {
    background: darkgreen;
    height: 100%;
    position: absolute;
    top: 0;
}
.reputationDetails {
    margin: 6px auto 12px;
    width: max-content;
}
.rep-value {
    float: right;
    padding-left: 4px;
}
.progressionItem {
    background: linear-gradient(#7fb8ff, #a2cfff);
    padding: 5px;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.3), 0 0 4px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--table-selected-color);
    border-radius: 3px;
    width: 100px;
    margin: 0.2em 0.2em;
}

/* ========================================
   Plan Link Extended Details
   ======================================== */

#linkCurrentDetails {
    flex-basis: 250px;
    width: 250px;
}

#planLinkExtendedDetails > .table-row {
    height: 32px;
}
#planLinkExtendedDetails .label {
    vertical-align: middle;
    width: 30%
}

div#serviceLevelBar {
    scale: 1.2;
    transform: translate(9%, -9%);
}
.airplaneIcon {
    padding: 1px;
}
.link-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 12px 5px 0;
    align-self: stretch;
}
.link-decoration-circle {
    border: 2px solid var(--link-decoration-color);
    border-radius: 50%;
    height: 10px;
    width: 10px;
    background-color: var(--background-1);
}
.link-decoration-line {
    border-right: 2px dotted var(--link-decoration-color);flex: 1;margin-bottom: 2px;margin-top: 4px;width: 0px;
}
.planLinkPrice {
    width: 64px;
}
.class-values {
    display: flex;
    width: 220px;
    gap: 1.5rem;
}
.class-value-child {
    width: 50px;
    text-align: right;
}
.class-value-child-helper {
    width: 50px;
    opacity:0.6;
    font-size:80%
}
.price-wrapper {
    position: relative;
    display: inline-block;
}
.price-wrapper::before {
    content: '$';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.6;
}
input.price-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--placeholder-color);
    color: inherit;
    font: inherit;
    padding: 0px;
    width: calc(100% - 10px);
    outline: none;
    text-align: right;
    -moz-appearance: textfield;
}
input.price-input::-webkit-outer-spin-button,
input.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input.price-input:focus {
    border-bottom-color: var(--button-color);
}

/* ========================================
   Olympics
   ======================================== */

#olympicsCityVoteTable span {
    font-size: 1.2em;
    font-weight: bold;
}

/* ========================================
   Animations
   ======================================== */

div.glow, span.glow, img.glow {
    animation: glow 2s infinite alternate;
}
span.glow, img.glow {
    border-radius: 2px;
}

.hover-rotate {
  transform: scale(1) rotate(0deg) translateZ(0) !important; 
  transition: opacity 0.2s ease, transform 1s cubic-bezier(0.2, 0, 0, 1);
}
.hover-rotate:hover {
  box-shadow: var(--table-header-selected-shadow);
  transform: scale(1.02) rotate(60deg) translateZ(0) !important;
}
.hover-rotate:active {
  transform: scale(0.98) rotate(60deg) translateZ(0) !important;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px -5px #C0D4F8;
    }
    to {
        box-shadow: 0 0 5px 5px #6495ED;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Snowflakes */
.snowflake {
    color: rgba(255, 255, 255, 0);
}

@keyframes snowflakes-fall{0%{top:-10%}100%{top:100%}}
@keyframes snowflakes-shimmer{0%{opacity: 1}100%{opacity: 1}50%{opacity: 0.2}}
@keyframes snowflakes-shake-1{0%,100%{transform:translateX(0)}50%{transform:translateX(80px)}}
@keyframes snowflakes-shake-2{0%,100%{transform:translateX(0)}50%{transform:translateX(40px)}}
@keyframes snowflakes-shake-3{0%,100%{transform:translateX(0)}50%{transform:translateX(20px)}}
@keyframes snowflakes-shake-4{0%,100%{transform:translateX(0)}50%{transform:translateX(10px)}}
@keyframes snowflakes-shake-5{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}

.snowflake{
    position:fixed;top:-10%;z-index:9999;user-select:none;cursor:default;
    animation-duration:10s,3s,10s;
    animation-timing-function:linear,ease-in-out,ease-in-out;
    animation-iteration-count:infinite,infinite,infinite;
    animation-play-state:running,running,running
}

/* Confetti */
.confetti {
    position: absolute;
}
.confetti.red {
    background-color: #E94A3F;
}
.confetti.yellow {
    background-color: #FAA040;
}
.confetti.blue {
    background-color: #5FC9F5;
}

/* ========================================
   Theme-Specific Overrides
   ======================================== */

body.christmas {
    background: linear-gradient(to bottom, rgba(117, 114, 113, 0.8) 10%, rgba(40, 49, 77, 0.8) 30%, rgba(29, 35, 71, 0.8) 50%, rgba(19, 25, 28, 0.8) 80%, rgba(15, 14, 14, .8) 100%), url(../images/background/snow.gif) !important;
    background-size: cover !important;
}

html[data-theme="dark"] .airportCanvasLeftGroup > :first-child .section {
    background: var(--placeholderBlurColorDark);
}

/* ========================================
   Base Styles & Resets
   ======================================== */

.hover\:bg-red:hover{
    background-color: red;
}

li.dot {
    display: flex;
    align-items: center;
    margin: 4px 0;
}

iframe.clip {
    display:block;
    margin:auto;
}

.mobileOnly {
    display: none;
}

/* ========================================
   Utility Classes - Typography
   ======================================== */

small, .small {
    font-size: 85%;
}
.small-10px {
    font-size: 10px;
}
i, .italic {
    font-style: italic;
}
.strong {
    font-weight: bold;
}
.iata {
    color: currentColor;
    position: relative;
    opacity: .7;
    font-weight: 600;
    padding-right: 4px;
}
.heading-center {
    text-align: center;
    line-height: 1.1;
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.text-base {
    font-size: 1rem;
}
.text-sm {
    font-size: 0.85rem
}
.text-xs {
    font-size: 0.7rem
}
.text-xxs {
    font-size: 0.55rem
}
.text-underline {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.text-white {
    color: white;
}
.text-grey {
    color: dimgrey;
}
.font-extralight {
    font-weight: 200;
}
.text-danger {
    color: #da3e3e;
}
.text-warning {
    color: #ed9624;
}
.text-middling {
    color: #e8e854;
}
.text-success {
    color: #239536;
}
.font-normal {
    font-weight: 400;
}
.capitalize {
    text-transform: capitalize;
}
.leading-none {
    line-height: 1;
}
.leading-tight {
    line-height: 1.25;
}
.leading-snug {
    line-height: 1.375;
}
.leading-relaxed {
    line-height: 1.625;
}
.bg-darkGreen {
    background-color: darkgreen;
}

/* ========================================
   Utility Classes - Spacing
   ======================================== */

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.mt-auto { margin-top: auto !important; }
.mb-auto { margin-bottom: auto !important; }
.m-0 { margin: 0px !important; }
.mt-0 { margin-top: 0px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 20px !important; }
.mt-8 { margin-top: 32px !important; }
.mt-10 { margin-top: 40px !important; }
.mr-0 { margin-right: 0px !important; }
.mr-1 { margin-right: 4px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-4 { margin-right: 16px !important; }
.mb-0 { margin-bottom: 0px !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-8 { margin-bottom: 32px !important; }
.ml-0 { margin-left: 0px !important; }
.ml-1 { margin-left: 4px !important; }
.ml-2 { margin-left: 8px !important; }
.ml-4 { margin-left: 16px !important; }
.p-0 { padding: 0px !important; }
.p-2 { padding: 8px !important; }
.p-4 { padding: 16px !important; }
.pt-0 { padding-top: 0px; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-5 { padding-top: 20px; }
.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.pt-10 { padding-top: 40px; }
.pt-12 { padding-top: 48px; }
.pt-16 { padding-top: 64px; }
.pr-0 { padding-right: 0px; }
.pr-1 { padding-right: 4px; }
.pr-2 { padding-right: 8px; }
.pr-3 { padding-right: 12px; }
.pr-4 { padding-right: 16px; }
.pr-5 { padding-right: 20px; }
.pr-6 { padding-right: 24px; }
.pr-8 { padding-right: 32px; }
.pr-10 { padding-right: 40px; }
.pr-12 { padding-right: 48px; }
.pr-16 { padding-right: 64px; }
.pr-1\/4 { padding-right: 25%; }
.pr-1-4 { padding-right: 25%; }
.pb-0 { padding-bottom: 0px; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-5 { padding-bottom: 20px; }
.pb-6 { padding-bottom: 24px; }
.pb-8 { padding-bottom: 32px; }
.pb-10 { padding-bottom: 40px; }
.pb-12 { padding-bottom: 48px; }
.pb-16 { padding-bottom: 64px; }
.pl-0 { padding-left: 0px; }
.pl-1 { padding-left: 4px; }
.pl-2 { padding-left: 8px; }
.pl-3 { padding-left: 12px; }
.pl-4 { padding-left: 16px; }
.pl-5 { padding-left: 20px; }
.pl-6 { padding-left: 24px; }
.pl-8 { padding-left: 32px; }
.pl-10 { padding-left: 40px; }
.pl-12 { padding-left: 48px; }
.pl-16 { padding-left: 64px; }
.px-0 { padding-left: 0px; padding-right: 0px; }
.px-05 { padding-left: 2px; padding-right: 2px; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-10 { padding-left: 40px; padding-right: 40px; }
.px-12 { padding-left: 48px; padding-right: 48px; }
.px-16 { padding-left: 64px; padding-right: 64px; }
.py-0 { padding-top: 0px !important; padding-bottom: 0px !important; }
.py-05 { padding-top: 2px; padding-bottom: 2px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }

/* ========================================
   Utility Classes - Sizing
   ======================================== */

.h-1 { height: 4px !important; }
.h-2 { height: 8px !important; }
.h-3 { height: 12px !important; }
.h-4 { height: 16px !important; }
.h-5 { height: 20px !important; }
.h-6 { height: 24px !important; }
.h-7 { height: 28px !important; }
.h-8 { height: 32px !important; }
.w-56 {width: 56px;}
.w-68 {width: 68px;}
.w-auto { width: auto !important; }
.w-full { width: 100% !important; }
.w-half { width: 50% !important; }
.min-w-40 { min-width: 10rem; }
.min-w-52 { min-width: 13rem; }
.min-w-80 { min-width: 20rem; }
.min-w-96 { min-width: 24rem; }
.max-w-60 { max-width: 15rem; }
.max-w-72 { max-width: 19rem; }
.max-w-260px { max-width: 260px; }
.max-w-32 {max-width: 8rem;}
.gap-0 { gap: 0 !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-8 { gap: 2rem !important; }

/* ========================================
   Utility Classes - Visual
   ======================================== */

.opacity-30 { opacity: 0.3; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.scale-75 { scale: 75%; }
.rotate-90 { rotate: 90deg}
.-rotate-90 { rotate: -90deg}
.list-disc { list-style: outside circle; padding-left: 16px; }
.list-disc li { padding-bottom: 4px; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.border { border: 1px solid var(var(--border-color));}
.border-top { border-top: 1px solid var(var(--border-color));}
.rounded { border-radius: 8px !important; }
.rounded-none { border-radius: 0px !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-x: auto !important; }
.overflow-x-clip { overflow-x: clip !important; }
.overflow-y-clip { overflow-y: clip !important; }

/* Airline Type Visibility */
.airlineType-Mega-BaseState-Owned #stockProgress,
.airlineType-Mega-BaseState-Owned .airlineTypeHide {
    display: none;
}
.airlineType-Legacy #elitesProgress,
.airlineType-Legacy #touristsTravelersProgress {
    display: none;
}
.airlineType-RegionalPartner #touristsTravelersProgress,
.airlineType-RegionalPartner #elitesProgress {
    display: none;
}
.airlineType-Discount #elitesProgress,
.airlineType-Discount .business,
.airlineType-Discount .first {
    display: none;
}
.airlineType-Luxury .economy,
.airlineType-Luxury #touristsTravelersProgress {
    display: none;
}
.airlineType-RegionalPartner .MEDIUM,
.airlineType-RegionalPartner .LARGE,
.airlineType-RegionalPartner .EXTRAORDINARY {
    display: none;
}

/* ========================================
   Utility Classes - Flexbox / display
   ======================================== */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.top-0 { top: 0px; }
.left-0 { left: 0px; }
.right-0 { right: 0px; }
.block {
    display: block;
}
.contents {
    display: contents;
}
.flex-grow { 
    flex-grow: 1 !important; 
}
.flex-align-center {
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.inline-block {
    display: inline-block;
}
.flex-row {
    display: flex;
    width: 100%;
    gap: 0 0.5rem;
    box-sizing: border-box;
}
.flex-col {
    display: flex;
    flex-direction: column;
    gap: 0 0.5rem;
    height: 100%;
    box-sizing: border-box;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-scroll-x-hidden {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.flex-scroll-x-hidden::-webkit-scrollbar {
    display: none;
}
.justify-center {
    justify-content: center;
}
.flex-row > div {
    flex-shrink: 0;
}
.items-start {
    align-items: flex-start;
}
.items-end {
    align-items: flex-end;
}
.items-center {
    align-items: center;
}
.center {
    margin: 12px auto;
    width: max-content;
}
.pull-left { float: left; }

/* ========================================
   Utility Classes - Flex Containers
   ======================================== */

.sidebar-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(400px, 7fr) minmax(280px, 3fr);
}
@media (max-width: 1000px) {
    .sidebar-grid {
        gap: 10px;
    }
}
@media (max-width: 800px) {
    .sidebar-grid {
        grid-template-columns: 1fr;
    }
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: 8px;
}

@media (max-width: 800px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
}

.two-up-grid {
    display: grid;
    grid-gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    width: 100%;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .two-up-grid {
        grid-template-columns: 1fr;
    }
}

.three-up-grid {
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    width: 100%;
    margin-top: 10px;
}
   
.flex-container-width-half {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}
.flex-container-width-half > div, .flex-container-width-half > button, .flex-container-width-half.gap-2 > a {
    flex: 1 1 calc(50% - 1rem);
    box-sizing: border-box;
    margin: 0 auto;
}
@media only screen and (max-device-width: 640px) {
.flex-container-width-half > div {
        width: 100% !important;
    }
}

.flex-container-width-third {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}
.flex-container-width-third > div, .flex-container-width-third > button {
    flex: 1 1 calc(33% - 1rem);
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 0;
}

.flex-container-width-quarter {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
}
.flex-container-width-quarter > div, .flex-container-width-quarter > button {
    flex: 1 1 calc(25% - 0.5rem);
    box-sizing: border-box;
}

.container-cols-180px {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 2rem 1.33rem;
    width: 100%;
}
.container-cols-180px > div,
.container-cols-180px > button {
    box-sizing: border-box;
}

/* ========================================
   Media Queries - Desktop
   ======================================== */

/* Disable screen dimming on some modals */
@media screen and (min-width: 640px) {
    #managerStatusModal, #settingsModal {
        background: none;
        pointer-events: none;
    }
    #managerStatusModal .modal-content, #settingsModal .modal-content {
        pointer-events: auto;
        position: absolute;
        margin: 0;
        top: 48px;
    }
    #managerStatusModal .modal-content {
        left: 300px;
    }
    #settingsModal .modal-content {
        right: 100px;
    }
}

/* Fullscreen Map */
@media only screen and (min-device-width : 640px) {
    #hideRivalMapButton {
        top: 48px !important;
    }
    #linksCanvas .mainPanel {
        width: 50%;
    }
    .mapOverlayPanel {
        padding-left: 0px;
        padding-right: 48px;
        box-sizing: border-box;
        pointer-events: none;
        border-radius: 8px !important;
        position: absolute;
        right: 0;
        top: 4px;
    }
    .mapOverlayPanel > * {
        pointer-events: auto;
    }
    .modelIllustration {
        margin: 0 -8px;
    }
    .officeCanvasRightGroup .section {
        padding: 16px 4px 4px 4px;
    }
    #linksCanvas .mapOverlayPanel {
        position: unset;
        padding: 0;
    }
    #map .gmnoprint[role="menubar"] {
        position: fixed !important;
        top: 40px !important;
        left: 44px !important;
        width: 100px;
    }
    #map .gmnoprint[role="menubar"] > :first-child {
        border-radius: 8px 8px 0 0 !important;
    }
    #map .gmnoprint[role="menubar"] > :last-child {
        border-radius: 0 0 8px 8px !important;
    }
    #map .gmnoprint[role="menubar"] > * {
        transition: all 0.2s !important;
    }
    #map .gmnoprint[role="menubar"] > * button {
        width: 100px;
        padding: 0px !important;
    }
    #map .gmnoprint[role="menubar"] > *:hover {
        background: var(--background-2) !important;
    }
    #map .gmnoprint[role="menubar"] > *:hover:active {
        background: var(--background-1) !important;
    }
    #map .gmnoprint[role="menubar"] ul:has(.ssQIHO-checkbox-menu-item) {
        position: relative !important;
        border-radius: 4px !important;
        filter: invert(.9);
        box-shadow: 0 5px 5px 0 #fff4 !important;
        left: 100% !important;
        top: -100% !important;
    }
    #map .mapIcon {
        position: fixed !important;
        border-radius: 8px;
        margin: 4px !important;
    }
    #map #toggleMapHeatmapButton {
        top: 48px;
        right: 0px;
    }
    #map #toggleChampionButton {
        top: 96px;
        right: 0px;
    }
    #map #toggleAllianceBaseMapViewButton {
        top: 144px;
        right: 0px;
    }
    #countryCanvas .mainPanel {
        width: 60%;
    }
    #countryCanvas .sidePanel {
        width: 40%;
    }
}

/* ========================================
   Login Page Overlay
   ======================================== */

#loginPageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#loginPageOverlay .login-page-content {
    background: var(--section-background-image);
    padding: 40px 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
}

#loginPageOverlay .login-title {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-color-heading);
}

#loginPageOverlay .login-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-color);
    opacity: 0.8;
}

#loginPageOverlay .login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

#loginPageOverlay .login-form input {
    padding: 12px 40px 12px 12px;
    font-size: 1rem;
    border: 1px solid var(--input-border-color);
    border-radius: 6px;
    background: var(--input-background-color);
    color: var(--text-color);
}

#loginPageOverlay .login-form input::placeholder {
    color: var(--placeholder-color);
}

#loginPageOverlay .login-form .forgot-link {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--background-1);
    opacity: 0.6;
    font-size: 0.9rem;
}

#loginPageOverlay .login-form .forgot-link:hover {
    opacity: 1;
}

#loginPageOverlay .login-form input:nth-of-type(1) + .forgot-link {
    top: 12px;
}

#loginPageOverlay .login-form input:nth-of-type(2) + .forgot-link {
    top: 68px;
}

#loginPageOverlay .button {
    margin-top: 8px;
    padding: 12px;
    font-size: 1rem;
}

/* ========================================
   Media Queries - Mobile
   ======================================== */

@media screen and (max-width: 640px) {
    #topBar {
        height: var(--mobile-header-height);
    }
    #topBar > :last-child {
        top: 0px;
        right: 0px;
        border-radius: 0 0 0 6px;
    }
    .mapOverlayPanel {
        width: calc(100vw - 48px);
        padding: 0px;
    }
    .mainPanel {
        height: 100%;
    }
    #map {
        height: 75%;
    }
}

/* ========================================
   Airplane Config (Svelte Components)
   ======================================== */

/* ========================================
   Stock Market Dropdowns
   ======================================== */
.smDropdown {
    position: relative;
    display: inline-block;
}
.smDropdownToggle {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.smDropdownMenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 140px;
    background: var(--background-1);
    border: 1px solid var(--background-2);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 4px 0;
}
.smDropdown.open .smDropdownMenu {
    display: block;
}
.smDropdownItem {
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
}
.smDropdownItem:hover {
    background: var(--background-2);
}
.smDropdownItem.active {
    font-weight: bold;
}
.smDropdownCheckItem {
    padding: 4px 12px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.smDropdownCheckItem:hover {
    background: var(--background-2);
}
.smDropdownOnly {
    margin-left: auto;
    font-size: 10px;
    color: #666;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}
.smDropdownCheckItem:hover .smDropdownOnly {
    color: #aaa;
}
.smDropdownOnly:hover {
    color: #fff !important;
}

.chart-container.svelte-16dxm5m{height:100%;display:flex;flex-direction:column}.empty-chart.svelte-16dxm5m{display:flex;justify-content:center;align-items:center;height:180px;border-radius:4px;color:#333}

/* -------------------------------------------------------------------------
   AircraftConfig module styles (replaces Svelte-scoped .svelte-udovpc rules)
   All rules scoped under .aircraft-config-view to avoid collisions.
   ------------------------------------------------------------------------- */
.aircraft-config-view .svg-btn {
    margin: 0 2px;
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    width: 24px;
    height: 20px;
    transition: opacity .2s;
}
.aircraft-config-view .svg-btn:hover:enabled { opacity: .4; }
.aircraft-config-view .svg-btn svg { width: auto; height: 100%; }
.aircraft-config-view .inputs label { width: 72px; text-transform: capitalize; }
.aircraft-config-view .inputs input { width: 44px; }
.aircraft-config-view .inputs {
    display: flex;
    flex-direction: column;
    padding: 8px 0 4px;
    gap: 2px;
}
.aircraft-config-view .inputs div { display: flex; align-items: baseline; }
.aircraft-config-view .inputs input { margin: 4px 0 0; }
.aircraft-config-view .config-btn-max {rotate: -90deg;}
.aircraft-config-view .planeDiagram {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #ccc;
    overflow: hidden;
    padding: 0 8px 0 16px;
    border-radius: 80px 40px 40px 80px;
}
.aircraft-config-view .seat-group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: end;
    align-content: start;
    width: auto;
    height: 100%;
}
.aircraft-config-view .seat-group.top    { padding: 0; justify-content: end; }
.aircraft-config-view .seat-group.center { padding: 0; justify-content: center; }
.aircraft-config-view .seat-group.bottom { padding: 0; justify-content: start; }
.aircraft-config-view .group-business {
    margin: 0 6px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 100%;
    align-content: start;
}
.aircraft-config-view .top    .group-business { justify-content: end; }
.aircraft-config-view .center .group-business { justify-content: center; }
.aircraft-config-view .bottom .group-business { justify-content: start; }
.aircraft-config-view .seat {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: 4px;
    min-height: 6px;
    border: .5px solid #222;
    margin: .5px 0 .5px 4px;
}
.aircraft-config-view .economy  { background-color: #deb887; width: 4px;  height: 6px; }
.aircraft-config-view .business { background-color: silver;   width: 4px;  height: 9px;  margin: 1px 0 1px 5px; }
.aircraft-config-view .first    { background-color: gold;     width: 9px;  height: 11px; margin: 1px 0 1px 3px; }
.aircraft-config-view .aisle {
    flex: 0 0 auto;
    height: 7px;
    width: 100%;
    background-color: #daa520;
    opacity: .15;
}
#linksActionBar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-2);
    color: var(--text-color);
    padding: 12px 28px 12px 48px;
    z-index: 99;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Links table column widths */
.link-col-flight        { width: 5%; }
.link-col-from          { width: 13%; }
.link-col-to            { width: 13%; }
.link-col-model         { width: 10%; }
.link-col-airplaneIds   { width: 12%; }
.link-col-dist          { width: 6%; }
.link-col-cap           { width: 7%; }
.link-col-q             { width: 4%; }
.link-col-lf            { width: 4%; }
.link-col-elf           { width: 4%; }
.link-col-blf           { width: 4%; }
.link-col-flf           { width: 4%; }
.link-col-sf            { width: 4%; }
.link-col-rev           { width: 6%; }
.link-col-profit        { width: 6%; }
.link-col-margin        { width: 5%; }
.link-col-staff         { width: 5%; }
.link-col-pps           { width: 6%; }

/* Links column visibility — CSS-class approach (O(1) per toggle) */
#linksCanvas.links-hide-flightCode           [data-col-key="flightCode"]           { display: none; }
#linksCanvas.links-hide-fromAirportCode      [data-col-key="fromAirportCode"]      { display: none; }
#linksCanvas.links-hide-toAirportCode        [data-col-key="toAirportCode"]        { display: none; }
#linksCanvas.links-hide-model                [data-col-key="model"]                { display: none; }
#linksCanvas.links-hide-distance             [data-col-key="distance"]             { display: none; }
#linksCanvas.links-hide-totalCapacity        [data-col-key="totalCapacity"]        { display: none; }
#linksCanvas.links-hide-computedQuality      [data-col-key="computedQuality"]      { display: none; }
#linksCanvas.links-hide-totalLoadFactor      [data-col-key="totalLoadFactor"]      { display: none; }
#linksCanvas.links-hide-economyLF            [data-col-key="economyLF"]            { display: none; }
#linksCanvas.links-hide-businessLF           [data-col-key="businessLF"]           { display: none; }
#linksCanvas.links-hide-firstLF              [data-col-key="firstLF"]              { display: none; }
#linksCanvas.links-hide-satisfaction         [data-col-key="satisfaction"]         { display: none; }
#linksCanvas.links-hide-revenue              [data-col-key="revenue"]              { display: none; }
#linksCanvas.links-hide-profit               [data-col-key="profit"]               { display: none; }
#linksCanvas.links-hide-profitMargin         [data-col-key="profitMargin"]         { display: none; }
#linksCanvas.links-hide-currentStaffRequired [data-col-key="currentStaffRequired"] { display: none; }
#linksCanvas.links-hide-profitPerStaff       [data-col-key="profitPerStaff"]       { display: none; }
#linksCanvas.links-hide-airplaneIds          [data-col-key="airplaneIds"]          { display: none; }

/* Vertical dual-handle range filter slider */
.rs-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    padding: 8px 0 6px;
    gap: 3px;
}
.rs-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--table-header-color);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: 0.2px;
}
.rs-label.active {
    color: var(--accent-color);
}
.rs-area {
    position: relative;
    flex: 1;
    width: 20px;
    min-height: 40px;
}
.rs-track,
.rs-fill {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    top: 0;
    bottom: 0;
    border-radius: 2px;
    pointer-events: none;
}
.rs-track { background: var(--table-header-border); }
.rs-fill  { background: var(--accent-color); opacity: 0.75; bottom: unset; }
.rs-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    writing-mode: vertical-lr;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}
.rs-input::-webkit-slider-runnable-track { background: transparent; }
.rs-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--background-1);
    cursor: ns-resize;
    box-shadow: var(--shadow-1);
}
.rs-input::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--background-1);
    cursor: ns-resize;
    box-shadow: var(--shadow-1);
}
.rs-input::-moz-range-track { background: transparent; }