/* CABIN OPS NEO v5.45 — Aviation Glass structure + TAAG Command finish.
   Visual layer only; official PDF rendering and print outputs remain untouched. */
@media screen {
:root{color-scheme:dark;--bg:#060c14;--card:#101b2a;--text:#edf4fc;--muted:#a9b8ca;--border:#30445a;--red:#e31931;--red2:#ff354d;--nav:#080e18;--warn:#62451e;--ok:#3ddd8d;--shadow:0 12px 32px rgba(0,0,0,.28)}
html{background:#060c14}body{background:radial-gradient(ellipse at 72% -18%,#183047 0%,transparent 50%),linear-gradient(145deg,#060b12,#0b1623 65%,#070c13);color:var(--text)}
.app-header{background:linear-gradient(110deg,#080d16 5%,#131e2d 65%,#100b13);border-bottom:1px solid #a51b2b;box-shadow:0 4px 25px #0008,0 1px 10px #c9193038;height:78px}
.brandmark{background:#140a10 url('./taag-symbol.png') center/contain no-repeat;border:1px solid #d9263b;border-radius:13px;box-shadow:0 0 17px #f01b3445;color:transparent;font-size:0;width:49px;height:49px}
.brandcopy strong{color:#ff4054;font-size:18px;letter-spacing:.10em;text-shadow:0 0 15px #d71d344d}.brandcopy span{color:#c2d2e3}.right-status .mini{color:#9db2c6}
.layout{grid-template-columns:245px minmax(0,1fr)}.sidebar{background:linear-gradient(180deg,#0d1827,#08111e);border-right:1px solid #34475b;box-shadow:inset -1px 0 #a81b2b33}.side-heading{color:#ff5b70}.sidebar button{color:#c9d8e8;border:1px solid transparent;border-radius:10px}.sidebar button:hover{background:#172b40;color:#fff;border-color:#38546b}.sidebar button.active{background:linear-gradient(90deg,#751121,#221927 85%);border:1px solid #b6263b;box-shadow:inset 3px 0 #ff4559,0 0 18px #b6203430}.sidebar button span{color:#f94d60}
.workspace{max-width:1680px;padding:26px 27px 70px}.page-heading{background:linear-gradient(110deg,#101d2e,#101824);border:1px solid #34475e;border-left:3px solid #e62b43;border-radius:15px;padding:20px 22px;box-shadow:0 12px 35px #0003}.page-heading h1{color:#fff;text-shadow:0 0 18px #e31b302a}.page-heading p{color:#b3c3d4}.eyebrow{color:#ff5368}
.panel,.stats article,.forms-quick{background:linear-gradient(145deg,rgba(24,39,57,.97),rgba(9,18,30,.98));border:1px solid #33495f;border-radius:15px;box-shadow:0 12px 32px #0004,inset 0 1px #ffffff0b}.panel h2,.panel h3,.panel h4{color:#f2f7ff}.panel p,.muted,.empty{color:#adbdcf}.stats article{border-left:3px solid #ec2740;box-shadow:inset 0 1px #ffffff0c,0 0 16px #d51b2a14}.stats span{color:#b7c8db}.stats strong{color:#fff;text-shadow:0 0 18px #ef2c453b}
button{background:linear-gradient(180deg,#24384e,#152436);color:#f0f6ff;border:1px solid #496077;border-radius:10px;min-height:44px}button:hover{filter:brightness(1.14)}button.primary{background:linear-gradient(135deg,#b41029,#f0223f);border-color:#ff425a;color:white;box-shadow:0 0 15px #e6233e38}button.danger{background:#4b1723;color:#ffdce2;border-color:#a13a4c}button.ghost{color:#cbd9e7}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ff6579}
input,select,textarea{background:#0c1929;color:#f4f8ff;border:1px solid #405770;border-radius:10px}input::placeholder,textarea::placeholder{color:#8498ac}label{color:#cad7e5}small,.line-item small{color:#b4c2d2}.line-item{border-color:#33475d}.dossier-field{background:#0c1a2a;border-color:#33495f}.dossier-field span{color:#adbed1}.tag{background:#243a50;color:#dbe9f8}.tag.ok{background:#123e31;color:#82edb1}.tag.locked{background:#523b17;color:#ffe09a}.tag.warn{background:#541d2a;color:#ffc3cc}
.approval,.caution-inline,.watch-box,#watch-result .watch-box,.pdf-bulk-toolbar,.pdf-zoom-toolbar{background:#18293a;color:#f1f5fb;border-color:#4c6075}.cloud-panel h2{color:#d8f8f0}.pdf-direct-link{background:#192b40;color:#f1f7ff;border-color:#4b6075}.pdf-zoom-toolbar button{background:#23364a;color:white}.modal{background:#142337;color:#f3f7ff;border:1px solid #456078}.modal-mask{background:#03080dd9}.status{background:#124632;color:#8df1b9}.status.offline{background:#49331b;color:#ffdca0}
/* The actual paper/PDF canvas stays white for faithful official form viewing. */
.pdf-page-wrap{background:#d6dde7;color:#162232}.pdf-page-surface{background:white;color:#111}.pdf-marker,.pdf-marker.pdf-text-input{color:#111}.signature{background:#fff;color:#111}.fill-field-row{border-color:#33495f}
#tab-dashboard .stats article{position:relative;overflow:hidden}#tab-dashboard .stats article:after{content:'';position:absolute;right:-25px;top:-35px;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,#fa33451c,transparent 70%);pointer-events:none}
#tab-dashboard .panel{border-top:1px solid #4a5f75}#ops-status-panel{border-left:3px solid #ed2a41}
@media(max-width:1200px){.layout{grid-template-columns:1fr}.sidebar{top:78px;background:#0a1422;border-bottom:1px solid #923040}.sidebar nav{display:flex;overflow-x:auto;gap:7px}.workspace{padding:17px 14px 65px}}
@media(max-width:700px){.app-header{height:65px}.sidebar{top:65px}.page-heading{padding:15px}.brandmark{height:41px;width:41px}.workspace{padding:12px 10px 55px}}
}

/* v5.46 command dashboard: isolated screen styles */
@media screen {
.neo-command{max-width:1900px;margin:0 auto;padding:12px!important}.neo-command button{cursor:pointer}.neo-command .panel{border:1px solid #31506a;background:linear-gradient(140deg,#0a1422,#0d1d2e 70%,#090f19);box-shadow:inset 0 1px 0 #ffffff16,0 0 20px #0009;border-radius:15px}.neo-command h3{font-size:13px;letter-spacing:.07em;margin:0 0 15px;color:#edf3fb}.neo-topline{display:flex;align-items:center;gap:18px;padding:12px 16px;background:linear-gradient(90deg,#080c13,#101d2c,#070b12);border:1px solid #8c1627;border-radius:16px;margin-bottom:12px;box-shadow:0 0 16px #d719303b}.neo-ident{display:flex;align-items:center;gap:10px;min-width:170px}.neo-ident img{width:40px;height:40px;object-fit:contain}.neo-ident b{display:block;color:#ff304a;font-size:20px}.neo-ident b span{display:block;color:white;font-size:13px}.neo-ident small{font-size:9px;color:#b4c1d0}.neo-top-actions{display:flex;flex:1;gap:6px;justify-content:space-around;flex-wrap:wrap}.neo-top-actions button{border:0;background:transparent;color:#e5ecf8;padding:10px 6px;font-size:11px}.neo-top-actions button:hover,.neo-top-actions button:focus{color:#ff4c60;background:#3e1323}.neo-version{color:#b5c6d6;font-size:12px}.neo-main-grid{display:grid;grid-template-columns:minmax(175px,23%) minmax(300px,1fr) minmax(190px,23%);gap:12px}.neo-aircraft,.neo-flight{padding:16px!important}.neo-aircraft button{display:flex;justify-content:space-between;align-items:center;width:100%;margin:6px 0;padding:13px 10px;border:1px solid #28455f;background:linear-gradient(120deg,#0a1724,#13283b);border-radius:9px;color:#e8f0f9;text-align:left}.neo-aircraft button.neo-selected{border-color:#fa2543;box-shadow:0 0 13px #e51b3655}.neo-aircraft button span{font-size:20px}.neo-aircraft p{font-size:11px;color:#94a8be}.neo-search{background:#0b1623;border:1px solid #34506b;padding:10px;border-radius:8px;font-size:11px;color:#9eb2c6}.neo-hero{min-height:345px;position:relative;overflow:hidden;padding:20px!important;background:radial-gradient(ellipse at 65% 55%,#294763 0%,#0d2034 34%,#070c14 76%)!important;border-color:#b91e33!important}.neo-hero:after{content:'';position:absolute;inset:auto 0 0;height:65px;background:linear-gradient(0deg,#1c1119,transparent);pointer-events:none}.neo-hero-label{font-size:13px;color:#edf4fa;display:flex;justify-content:space-between;gap:10px}.neo-hero-label span{font-size:10px;color:#42dd9d}.neo-hero-plane{font-size:clamp(90px,15vw,240px);text-align:center;line-height:1.25;color:#f1f6ff;text-shadow:0 0 18px #70b8ff,0 0 50px #ea1a3d;transform:rotate(-13deg);user-select:none}.neo-hero-name{font-size:20px;color:#fff;letter-spacing:.08em}.neo-hero-name strong{display:block;font-size:25px}.neo-hero>p{font-size:12px;color:#b3c4d5}.neo-hero-chips{display:flex;gap:8px;position:relative;z-index:1}.neo-hero-chips>div{flex:1;padding:9px;background:#0b1c2dcc;border:1px solid #46647c;border-radius:8px}.neo-hero-chips small,.neo-info-grid small{display:block;font-size:9px;color:#a6b9cd}.neo-hero-chips b{font-size:15px}.neo-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.neo-info-grid>div{border:1px solid #28465e;background:#0c2134;padding:14px 10px;border-radius:9px}.neo-info-grid b{display:block;font-size:27px;margin-top:7px}.neo-online{font-size:10px;color:#54dfa3;margin:20px 0}.neo-flight .primary{width:100%;background:#e51c3c;color:white;border:1px solid #ff5267}.neo-module-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:12px 0}.neo-module-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:142px;padding:12px 5px;background:linear-gradient(140deg,#101e2f,#07101b);border:1px solid #38536b;border-radius:13px;color:#eaf3ff;box-shadow:inset 0 1px 0 #ffffff17,0 0 10px #0006}.neo-module-grid button:hover{border-color:#fa2543}.neo-module-grid span{font-size:39px;margin-bottom:8px}.neo-module-grid b{font-size:11px}.neo-module-grid small{font-size:10px;color:#9db3c7;margin-top:5px}.neo-lower{display:grid;grid-template-columns:1fr 1.05fr 1fr;gap:12px}.neo-lower>.panel{padding:16px!important;min-height:215px}.neo-pending button{width:100%;text-align:left;margin:5px 0}.neo-bottom{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:12px 0}.neo-bottom button{min-height:58px;padding:7px;background:#101b2b;color:#f1f5fc;border:1px solid #3a5267;border-radius:10px;font-size:11px}.neo-bottom .primary,.neo-bottom button:last-child{background:linear-gradient(120deg,#600f22,#e31738);border-color:#fa3a52}.neo-diagnostics{margin-top:16px;color:#93a6ba}.neo-diagnostics summary{cursor:pointer;font-size:12px}.neo-diagnostics .panel{padding:14px!important;margin-top:8px}
@media(max-width:1050px){.neo-main-grid{grid-template-columns:180px minmax(260px,1fr)}.neo-flight{grid-column:1/-1}.neo-module-grid{grid-template-columns:repeat(4,1fr)}.neo-lower{grid-template-columns:1fr 1fr}.neo-bottom{grid-template-columns:repeat(4,1fr)}}
@media(max-width:680px){.neo-topline{flex-wrap:wrap}.neo-top-actions{order:3;flex-basis:100%}.neo-main-grid{grid-template-columns:1fr}.neo-aircraft{display:none}.neo-flight{grid-column:auto}.neo-hero{min-height:310px}.neo-module-grid{grid-template-columns:repeat(2,1fr)}.neo-lower{grid-template-columns:1fr}.neo-bottom{grid-template-columns:repeat(2,1fr)}}
}

/* v5.51 — legibilidade dos cartões claros de tripulação; apenas interface, não impressão. */
@media screen {
#tab-crew .crew-profile-detail, #tab-crew .crew-profile-detail *,
#tab-crew .crew-observations, #tab-crew .crew-observations *,
#tab-crew .crew-directory-filters, #tab-crew .crew-directory-filters *,
#tab-crew .crew-directory-collapse, #tab-crew .crew-directory-collapse *,
#tab-crew .crew-search-result, #tab-crew .crew-search-result * { color:#182637; }
#tab-crew .crew-profile-detail h2,#tab-crew .crew-profile-detail h3,#tab-crew .crew-profile-detail h4,
#tab-crew .crew-observations h4,#tab-crew .crew-observations h5 {color:#152335;}
#tab-crew .crew-profile-detail p,#tab-crew .crew-profile-detail li,#tab-crew .crew-profile-detail dd,
#tab-crew .crew-observations p,#tab-crew .crew-observation-entry p {color:#25364a;}
#tab-crew .crew-detail-grid dt,#tab-crew .crew-observation-privacy,#tab-crew .crew-filter-bottom small {color:#475569;}
#tab-crew .crew-observations textarea,#tab-crew .crew-directory-filters input,#tab-crew .crew-directory-filters select {background:#fff;color:#152335;-webkit-text-fill-color:#152335;}
#tab-crew .crew-observations textarea::placeholder,#tab-crew .crew-directory-filters input::placeholder {color:#64748b;-webkit-text-fill-color:#64748b;opacity:1;}
#tab-crew .crew-profile-detail button,#tab-crew .crew-observations button,#tab-crew .crew-directory-filters button {color:#fff;-webkit-text-fill-color:#fff;}
#tab-crew .crew-directory-filters label,#tab-crew .crew-observations label {color:#334155;}
#tab-crew .crew-search-result,#tab-crew .crew-directory-toggle {background:#f3f6fa;color:#182637;}
#tab-crew .crew-search-result small {color:#52647a;opacity:1;}
}

/* v5.52 — contraste legível em superfícies claras e escuras; só ecrã. */
@media screen {
/* Listagem de tripulantes: cartões escuros e linhas compactas. */
#tab-crew .crew-directory-collapse .crew-roster-table,
#tab-crew .crew-directory-collapse .crew-roster-table tbody,
#tab-crew .crew-directory-collapse .crew-roster-table tr,
#tab-crew .crew-directory-collapse .crew-roster-table td,
#tab-crew .crew-directory-collapse .crew-roster-table td *,
#tab-crew .crew-directory-collapse .crew-identity,
#tab-crew .crew-directory-collapse .crew-identity * {color:#f1f6fc!important;-webkit-text-fill-color:#f1f6fc!important;}
#tab-crew .crew-directory-collapse .crew-roster-table td:before,
#tab-crew .crew-directory-collapse .crew-roster-table th,
#tab-crew .crew-directory-collapse .crew-roster-table small {color:#b9ccdf!important;-webkit-text-fill-color:#b9ccdf!important;}
#tab-crew .crew-directory-collapse .crew-roster-table tr {background:#101d2d!important;}
#tab-crew .crew-directory-collapse .crew-roster-table tr:nth-child(even){background:#18283b!important;}
#tab-crew .crew-directory-collapse .crew-roster-table button {color:#fff!important;-webkit-text-fill-color:#fff!important;background:#253c55;border-color:#627b94;}
#tab-crew .crew-directory-collapse .crew-roster-table button.danger {background:#8a1830;border-color:#e44861;}
#tab-crew .crew-directory-collapse .crew-roster-table a {color:#9bd9ff!important;-webkit-text-fill-color:#9bd9ff!important;}
/* Biblioteca de textos: painel de papel claro deve usar tinta escura. */
#tab-templates .report-template-library,
#tab-templates .report-template-library .section-head,
#tab-templates .report-template-library .formgrid {color:#172536!important;}
#tab-templates .report-template-library h2,
#tab-templates .report-template-library h3,
#tab-templates .report-template-library h4,
#tab-templates .report-template-library p,
#tab-templates .report-template-library label,
#tab-templates .report-template-library small,
#tab-templates .report-template-library .muted {color:#34465a!important;-webkit-text-fill-color:#34465a!important;}
#tab-templates .report-template-library input,
#tab-templates .report-template-library select,
#tab-templates .report-template-library textarea {background:#0d1a2b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#627991!important;}
#tab-templates .report-template-library input::placeholder,
#tab-templates .report-template-library textarea::placeholder {color:#b3c5d8!important;-webkit-text-fill-color:#b3c5d8!important;opacity:1;}
#tab-templates .report-template-library button {color:#fff!important;-webkit-text-fill-color:#fff!important;}
/* Proteção adicional para cartões claros dentro do perfil de tripulação. */
#tab-crew .crew-profile-detail .muted,
#tab-crew .crew-observations .muted,
#tab-crew .crew-profile-detail small,
#tab-crew .crew-observations small {color:#465b70!important;-webkit-text-fill-color:#465b70!important;}
}
