/*
 * Pilot Console UI: cores do tema e classes utilitarias.
 * Substitui os style="" e <font> que estavam escritos no HTML.
 *
 * As classes de cor/fundo/alinhamento usam !important, como as utilities do
 * Bootstrap 5, para manterem a precedencia que o style="" inline tinha.
 */

:root {
	/* Marca */
	--sat-navy: #002857;
	--sat-blue: #123763;
	--sat-royal: #002890;
	--sat-accent: #2fa4e7;
	--sat-sky: #5cc5e3;
	--sat-link-dark: #178acc;

	/* Cinzentos */
	--sat-body: #555555;
	--sat-grey: #7c7e82;
	--sat-gray: #808080;
	--sat-muted: #999999;
	--sat-silver: #b6b9bb;
	--sat-ccc: #cccccc;
	--sat-light: #d5d7d8;

	/* Fundos */
	--sat-bg-panel: #e7e7e8;
	--sat-bg-row: #eeeeee;
	--sat-bg-soft: #f8f8f8;
	--sat-bg-ddd: #dddddd;
	--sat-bg-danger: #b94a48;

	/* Estados (valores originais, para nao mudar o aspeto) */
	--sat-red: #ff0000;
	--sat-green: #008000;
	--sat-green-light: #73a839;
	--sat-orange: #ffa500;
	--sat-gold: #ffd700;
	--sat-font-red: #cc0000;
	--sat-font-green: #00cc00;
	--sat-font-green2: #009933;
	--sat-font-sienna: #a0522d;
	--sat-font-blue: #0000ff;
	--sat-font-blue2: #0033ff;
	--sat-font-cyan: #0099cc;
	--sat-font-amber: #cc6600;
	--sat-font-rust: #dd5600;
	--sat-font-slate: #414f66;
	--sat-font-ink: #0b2548;
}

/* Texto */
.text-sat-navy { color: var(--sat-navy) !important; }
.text-sat-royal { color: var(--sat-royal) !important; }
.text-sat-accent { color: var(--sat-accent) !important; }
.text-sat-sky { color: var(--sat-sky) !important; }
.text-sat-link-dark { color: var(--sat-link-dark) !important; }
.text-sat-body { color: var(--sat-body) !important; }
.text-sat-grey { color: var(--sat-grey) !important; }
.text-sat-gray { color: var(--sat-gray) !important; }
.text-sat-muted { color: var(--sat-muted) !important; }
.text-sat-silver { color: var(--sat-silver) !important; }
.text-sat-ccc { color: var(--sat-ccc) !important; }
.text-sat-light { color: var(--sat-light) !important; }
.text-sat-red { color: var(--sat-red) !important; }
.text-sat-green { color: var(--sat-green) !important; }
.text-sat-green-light { color: var(--sat-green-light) !important; } /* APPROVED do logbook (era style="color:#73a839") */
.text-sat-orange { color: var(--sat-orange) !important; }
.text-sat-gold { color: var(--sat-gold) !important; }
.text-sat-font-red { color: var(--sat-font-red) !important; }
.text-sat-font-green { color: var(--sat-font-green) !important; }
.text-sat-font-green2 { color: var(--sat-font-green2) !important; }
.text-sat-font-sienna { color: var(--sat-font-sienna) !important; }
.text-sat-font-blue { color: var(--sat-font-blue) !important; }
.text-sat-font-blue2 { color: var(--sat-font-blue2) !important; }
.text-sat-font-cyan { color: var(--sat-font-cyan) !important; }
.text-sat-font-amber { color: var(--sat-font-amber) !important; }
.text-sat-font-rust { color: var(--sat-font-rust) !important; }
.text-sat-font-slate { color: var(--sat-font-slate) !important; }
.text-sat-font-ink { color: var(--sat-font-ink) !important; }
.text-justify { text-align: justify !important; }

/* Fundos */
.bg-sat-panel { background-color: var(--sat-bg-panel) !important; }
.bg-sat-row { background-color: var(--sat-bg-row) !important; }
.bg-sat-soft { background-color: var(--sat-bg-soft) !important; }
.bg-sat-ddd { background-color: var(--sat-bg-ddd) !important; }
.bg-sat-danger { background-color: var(--sat-bg-danger) !important; }
.bg-sat-accent { background-color: var(--sat-accent) !important; }
.bg-sat-red { background-color: var(--sat-red) !important; }
.bg-sat-green { background-color: var(--sat-green) !important; }
.bg-sat-orange { background-color: var(--sat-orange) !important; }

/* Ex <font size/face>: tamanhos absolutos como o HTML (size 1..7) */
.font-size-1 { font-size: x-small; }
.font-size-2 { font-size: small; }
.font-size-3 { font-size: medium; }
.font-size-4 { font-size: large; }
.font-size-5 { font-size: x-large; }
.font-size-6 { font-size: xx-large; }
.font-size-7 { font-size: xxx-large; }
.font-arial { font-family: Arial, sans-serif; }
.font-helvetica { font-family: Helvetica, Arial, sans-serif; }
.font-verdana { font-family: Verdana, sans-serif; }
.font-courier { font-family: "Courier New", monospace; }
.font-century-gothic { font-family: "Century Gothic", sans-serif; }

/* Larguras em percentagem (colunas de tabelas) */
.w-5p { width: 5% !important; }
.w-10p { width: 10% !important; }
.w-15p { width: 15% !important; }
.w-20p { width: 20% !important; }
.w-25p { width: 25% !important; }
.w-30p { width: 30% !important; }
.w-35p { width: 35% !important; }
.w-40p { width: 40% !important; }
.w-45p { width: 45% !important; }
.w-50p { width: 50% !important; }
.w-60p { width: 60% !important; }
.w-65p { width: 65% !important; }
.w-70p { width: 70% !important; }
.w-75p { width: 75% !important; }
.w-80p { width: 80% !important; }
.w-90p { width: 90% !important; }

/* Diversos */
.resize-none { resize: none !important; }

/* Largura minima do conteudo do console: so a partir de 768px (era min-width:860px
   inline, que no telemovel alargava a pagina toda e obrigava a scroll lateral) */
@media (min-width: 768px) {
	.console-min { min-width: 860px !important; }
}

/* Telemovel ----------------------------------------------------------------- */
@media (max-width: 767.98px) {
	/* o conteudo nao fica por baixo da toolbar fixa da direita (45px) */
	.container.console-content { padding-right: 50px !important; }
	/* tabelas largas: scroll horizontal so na tabela (js/console-mobile.js poe-nas
	   dentro de .table-responsive) */
	.table-responsive { -webkit-overflow-scrolling: touch; }
	/* imagens e graficos nunca mais largos que o ecra */
	.console-content img { max-width: 100%; height: auto; }
}

/* Logbook: atraso do bloco em minutos a frente do ABT (+12 / -5; antes uma barra de cor) */
.logbook-delay-min { font-size: .85em; font-weight: 600; white-space: nowrap; cursor: help; }
td:has(> .logbook-delay-min) { white-space: nowrap; }
.logbook-col-ebt { width: 70px !important; }
/* coluna centrada (Flight information): o ABT fica alinhado com o EBT e o atraso aparece a direita, fora da centragem */
.delay-hang { position: relative; display: inline-block; }
.delay-hang > .logbook-delay-min { position: absolute; left: 100%; top: 0; margin-left: .3em; }
/* as tabelas do console tem padding com !important (console-pages.css): aqui com mais especificidade */
.table > tbody > tr > td:has(> .delay-hang), .table:has(> thead) > tbody > tr > td:has(> .delay-hang) { padding-right: 2.4em !important; white-space: nowrap; }
.logbook-col-rating { width: 60px; }

/* contador sobre um icone da barra vertical (os antigos tinham isto inline em cada link) */
.toolbar-count { font-family: arial; font-size: 0.5em; position: absolute; top: 14px; left: -7px; }

/* selo de verificado (licenca real) na lista de pilotos, como nas redes sociais */
.verified-badge { color: #1d9bf0; font-size: 15px; line-height: 1; filter: drop-shadow(0 0 .5px rgba(0, 0, 0, .25)); }
[data-bs-theme="dark"] .verified-badge { color: #3aa8f5; }
