/* MRO Planning page (on top of the shared Maintenance Control styles). */
.mjsp .mjsv-pill.is-bad { background: #fbe6e5; color: #a3231f; }
.mjsp-kind { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: #EEF3F8; color: #3D5A80; vertical-align: 1px; }
.mjsp-kind.is-disc { background: #fff2d6; color: #7a4d00; }
.mjsp-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 14px; }
.mjsp-bar .mjsv-f { min-width: 220px; flex: 1 1 220px; margin: 0; }
.mjsp-or { color: #4a5868; padding-bottom: 12px; }
.mjsp-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 6px; counter-reset: s; }
.mjsp-steps li { counter-increment: s; flex: 1 1 120px; padding: 8px 10px 8px 34px; border-radius: 10px; background: #EEF3F8; color: #4a5868; font-weight: 600; font-size: .9rem; position: relative; }
.mjsp-steps li::before { content: counter(s); position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: #cfdbe8; color: #0B2545; font-size: .75rem; display: grid; place-items: center; }
.mjsp-steps li.is-done { background: #e3f3e9; color: #17653a; }
.mjsp-steps li.is-done::before { content: "✓"; background: #17653a; color: #fff; }
.mjsp .mjsv-stat.is-bad b { color: #a3231f; }
.mjsp .mjsv-stat.is-warn b { color: #7a4d00; }
.mjsp .mjsv-big { font-size: 1.15rem; font-weight: 700; color: #0B2545; text-align: right; margin: 0; }
.mjsp .mjsv-inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.mjsp .mjsv-inline input { min-width: 140px; }
.mjsp-grid th, .mjsp-grid td { padding: 4px 2px !important; text-align: center; font-size: .78rem; min-width: 26px; }
.mjsp-grid th:first-child { text-align: left; min-width: 70px; padding-left: 8px !important; }
.mjsp-grid th.is-we { background: #e4ebf3; }
.mjsp-grid td.is-confirmed { background: #0B2545; }
.mjsp-grid td.is-requested { background: #F2A900; }
.mjsp-grid td a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mjsp-grid td.is-requested a { color: #0B2545; }
.mjsp-key span { display: inline-block; padding: 2px 10px; border-radius: 6px; margin-right: 6px; font-size: .85rem; }
.mjsp-key .is-confirmed { background: #0B2545; color: #fff; }
.mjsp-key .is-requested { background: #F2A900; color: #0B2545; }
.mjsp-logbook { font-family: "Courier New", ui-monospace, monospace; font-size: .95rem; line-height: 1.5; border: 1px solid #cfdbe8; border-radius: 10px; padding: 22px 26px; background: #fff; white-space: normal; }
.mjsp-mono { font-family: "Courier New", ui-monospace, monospace; width: 100%; }
@media print {
	.mjsp .mjsv-nav, .mjsp .mjsv-bridges, .mjsp .mjsv-noprint, .mjsp .mjsv-msg { display: none !important; }
	.mjsp .mjsv-card { box-shadow: none; border: 0; }
	.mjsp-logbook { border: 0; padding: 0; }
}
/* Hangar manager's page (no site theme). */
body.mjsp-slotpage { margin: 0; background: #EEF3F8; font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #14202e; }
.mjsp-slotpage main { max-width: 560px; margin: 24px auto; background: #fff; border-radius: 16px; padding: 24px; border-top: 5px solid #F2A900; }
.mjsp-slotpage h1 { color: #0B2545; font-size: 1.4rem; }
.mjsp-slotpage table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.mjsp-slotpage th { text-align: left; color: #4a5868; font-weight: 600; padding: 6px 10px 6px 0; width: 90px; vertical-align: top; }
.mjsp-slotpage td { padding: 6px 0; }
.mjsp-slotpage label { display: grid; gap: 6px; font-weight: 600; margin: 12px 0; }
.mjsp-slotpage input, .mjsp-slotpage textarea { font: inherit; border: 2px solid #9fb1c5; border-radius: 10px; padding: 10px 12px; }
.mjsp-slotpage button { font: inherit; font-weight: 700; border-radius: 10px; padding: 12px 20px; border: 2px solid #0B2545; cursor: pointer; }
.mjsp-slotpage button.yes { background: #17653a; border-color: #17653a; color: #fff; }
.mjsp-slotpage button.no { background: #fff; color: #a3231f; border-color: #a3231f; }
.mjsp-slotpage .ok { background: #e3f3e9; color: #17653a; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.mjsp-slotpage .err { background: #fbe6e5; color: #a3231f; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.mjsp-slotpage .fine { font-size: .8rem; color: #4a5868; }
.mjsp select { max-width: 100%; min-width: 0; }
.mjsp-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.mjsp-filter select { flex: 1 1 220px; width: auto; }
.mjsp .mjsv-bridges a { max-width: 100%; }
.mjsp-bar > * { min-width: 0; }
.mjsp .mjsv-f select { width: 100%; }
.mjsp-bar .mjsv-f { flex: 1 1 200px; min-width: 0; }
.mjsv.mjsp, .mjsp .mjsv-card { grid-template-columns: minmax(0, 1fr); }
.mjsp .mjsv-card > * { min-width: 0; }
.mjsp-mode .mjsv-check { margin: 6px 0; align-items: flex-start; }

/* Schedule: closed days */
.mjsp-grid td.is-blocked { background: repeating-linear-gradient(45deg, var(--wash), var(--wash) 4px, var(--line) 4px, var(--line) 8px); color: var(--muted); font-size: 11px; white-space: nowrap }
.mjsp-key .is-blocked { background: repeating-linear-gradient(45deg, var(--wash), var(--wash) 4px, var(--line) 4px, var(--line) 8px) }
.mjsp-awrdoc table { width: 100% }
.mjsp-grid td.is-blocked, .mjsp-grid td.is-confirmed, .mjsp-grid td.is-requested { max-width: 0; overflow: visible; white-space: nowrap; position: relative }
.mjsp-grid td.is-blocked { overflow: hidden; text-overflow: clip }
.mjsp-grid td.is-confirmed a { color: #fff !important; text-decoration: none }
.mjsp-grid td.is-requested a { color: #0B2545 !important; text-decoration: none }
.mjsp-grid td.is-blocked { overflow: visible }
.mjsp-grid td a, .mjsp-grid td .mjsp-lbl { position: relative; z-index: 2 }
/* 2.8.5: due list file → work package */
.mjsp .mjsv-note { padding: 12px 16px; border-radius: 12px; background: #FFF6E0; border: 1px solid #F2C14E; margin: 10px 0 16px; }
.mjsp .mjsv-note p { margin: 0 0 6px; }
.mjsp .mjsp-imp-det summary { cursor: pointer; font-size: .82rem; color: var(--muted, #5b6b7d); }
.mjsp .mjsp-imp-det small { display: block; line-height: 1.45; margin-top: 4px; }
/* 2.9.0: printed work package and cards (manual signature and stamp) */
.mjsp .mjsp-print { display: grid; gap: 18px; }
.mjsp .mjsp-sheet { background: #fff; border: 1px solid #c9d4e2; border-radius: 10px; padding: 22px 24px; color: #111; font-size: 13.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 10px; }
.mjsp .mjsp-sheet-h { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2.5px solid #0B2545; padding-bottom: 10px; }
.mjsp .mjsp-sheet-h h2 { margin: 2px 0; font-size: 19px; color: #0B2545; line-height: 1.25; }
.mjsp .mjsp-sheet-h p { margin: 0; }
.mjsp .mjsp-co { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b5310; }
.mjsp .mjsp-sheet-no { text-align: right; display: grid; gap: 2px; justify-items: end; min-width: 120px; }
.mjsp .mjsp-sheet-no small { color: #555; font-size: 11px; }
.mjsp .mjsp-sheet-no b { font: 700 15px/1.2 ui-monospace, Menlo, Consolas, monospace; }
.mjsp .mjsp-sheet-no .mjsv-qr { width: 86px; height: 86px; }
.mjsp .mjsp-sheet h3 { margin: 6px 0 0; font-size: 15px; color: #0B2545; }
.mjsp .mjsp-sheet h4 { margin: 6px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #0B2545; }
.mjsp .mjsp-kv, .mjsp .mjsp-list { width: 100%; border-collapse: collapse; }
.mjsp .mjsp-kv th, .mjsp .mjsp-kv td, .mjsp .mjsp-list th, .mjsp .mjsp-list td { border: 1px solid #b9c4d2; padding: 5px 8px; text-align: left; vertical-align: top; }
.mjsp .mjsp-kv th, .mjsp .mjsp-list th { background: #eef3f9; font-weight: 600; width: 1%; white-space: nowrap; }
.mjsp .mjsp-list th { width: auto; }
.mjsp .mjsp-parts td { height: 26px; }
.mjsp .mjsp-det { margin: 0; white-space: pre-line; }
.mjsp .mjsp-lines { display: grid; }
.mjsp .mjsp-lines i { display: block; height: 28px; border-bottom: 1px solid #9aa7b8; }
.mjsp .mjsp-entry { margin: 0; padding: 4px 0; border-bottom: 1px solid #9aa7b8; }
.mjsp .mjsp-entry small { color: #555; }
.mjsp .mjsp-sigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 6px; }
.mjsp .mjsp-sig { border: 1.5px solid #0B2545; border-radius: 6px; padding: 8px 10px; display: grid; gap: 4px; }
.mjsp .mjsp-sig small { color: #555; font-size: 11px; }
.mjsp .mjsp-sig i { display: block; height: 22px; border-bottom: 1px solid #9aa7b8; }
.mjsp .mjsp-sig-boxes { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 6px; }
.mjsp .mjsp-sig-boxes span { border: 1px solid #9aa7b8; border-radius: 4px; min-height: 58px; padding: 3px 6px; font-size: 10.5px; color: #555; }
.mjsp .mjsp-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.mjsp .mjsp-signs div { display: grid; gap: 4px; }
.mjsp .mjsp-signs i { display: block; height: 46px; border-bottom: 1px solid #555; }
.mjsp .mjsp-signs small { color: #555; }
.mjsp .mjsp-sheet-f { margin-top: auto; padding-top: 8px; border-top: 1px solid #c9d4e2; color: #555; font-size: 11px; }
.mjsp .mjsp-card-p.is-disc .mjsp-sheet-h { border-bottom-color: #a3271b; }
@media (max-width: 640px) { .mjsp .mjsp-sheet { padding: 14px; } .mjsp .mjsp-sheet-h { flex-direction: column; } .mjsp .mjsp-sheet-no { text-align: left; justify-items: start; } .mjsp .mjsp-signs { grid-template-columns: 1fr; } .mjsp .mjsp-list { display: block; overflow-x: auto; } }
@media print {
	.mjsp .mjsp-print { display: block; }
	.mjsp .mjsp-sheet { border: 0; border-radius: 0; padding: 0; min-height: 96vh; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.mjsp .mjsp-sheet:last-child { break-after: auto; page-break-after: auto; }
}
