/* V7.2.5.143 — saisie explicite des postes personnalisés, par département. */
.crew-role-other-option{margin-top:5px;border-top:1px solid #4c7295!important;color:#abf2d1!important;background:#173e3d!important;font-weight:750!important;}
.crew-role-other-option:hover,.crew-role-other-option.active{background:#226452!important;color:white!important;}
#crew-other-panel:not([hidden]){display:flex;flex-direction:column;gap:8px;padding:10px;background:#142e3e;border:1px solid #4f9c89;border-radius:8px;margin-top:8px;}
#crew-other-panel strong{font-size:12px;color:#baf6db}
#crew-other-panel .crew-other-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap;}
#crew-other-panel .crew-other-controls input{flex:1 1 160px;min-width:100px;}
#crew-other-panel .crew-other-controls button{padding:8px 9px;white-space:nowrap;font-size:11px;}
#crew-other-error:not(:empty){color:#ffb2ae;font-size:11px;}
/* BIBLE / ÉQUIPE TECHNIQUE : tableau à gauche + formulaire réel à droite. */
#crew-screen .ar143-crew-workspace{display:block;min-width:0;}
#crew-screen .ar143-crew-workspace.ar143-inspector-active{display:grid;grid-template-columns:minmax(0,44%) minmax(0,56%);gap:12px;align-items:start;}
#crew-screen .ar143-crew-workspace>.crew-list-panel{min-width:0;}
#crew-screen #crew-side-panel{box-sizing:border-box;min-width:0;min-height:440px;max-height:calc(100dvh - var(--ar141-nav-bottom,100px) - 22px);height:var(--ar143-crew-height,calc(100dvh - var(--ar141-nav-bottom,100px) - 100px));position:sticky;top:calc(var(--ar141-nav-bottom,100px) + 11px);overflow:hidden;background:#1b2c42;border:1px solid #60809c;border-radius:12px;box-shadow:0 9px 30px #06101c88;}
#crew-screen #crew-side-panel[hidden]{display:none!important;}
/* Le logiciel garde le dialogue original (champs, disponibilité, boutons, contacts). */
body.ar143-crew-open.ar141-editor-open::before{display:none!important;}
body.ar143-crew-open #crew-screen #crew-side-panel #crew-dialog.ar141-docked[open]{display:block!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;inset:auto!important;margin:0!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;min-height:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;background:#1b2c42!important;z-index:auto!important;}
body.ar143-crew-open #crew-screen #crew-dialog>form{height:100%!important;max-height:none!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
body.ar143-crew-open #crew-screen #crew-dialog .ar-form-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;padding:13px 15px;overscroll-behavior:contain;}
body.ar143-crew-open #crew-screen #crew-dialog .crew-dialog-head{padding:12px 15px;}
body.ar143-crew-open #crew-screen #crew-dialog .crew-dialog-head h2{font-size:17px;}
body.ar143-crew-open #crew-screen #crew-dialog .crew-dialog-actions{flex:0 0 auto;padding:9px 10px;display:flex;gap:6px;flex-wrap:wrap;}
body.ar143-crew-open #crew-screen #crew-dialog .crew-dialog-actions>div{flex:1 1 300px;justify-content:flex-end;gap:5px;flex-wrap:wrap;}
body.ar143-crew-open #crew-screen #crew-dialog .crew-dialog-actions button{padding:6px 8px;font-size:11px;white-space:nowrap;}
body.ar143-crew-open #crew-screen #crew-dialog .crew-fields-grid{gap:9px;}
body.ar143-crew-open #crew-screen #crew-dialog .crew-day-head,
body.ar143-crew-open #crew-screen #crew-dialog .crew-day-line{grid-template-columns:minmax(70px,1fr) minmax(100px,1.2fr) minmax(70px,.7fr) 28px;gap:4px;padding:6px 5px;font-size:10px;}
/* À gauche, en édition, les quatre colonnes indispensables restent visibles. */
#crew-screen .ar143-inspector-active .crew-table{min-width:0!important;width:100%!important;table-layout:auto!important;}
#crew-screen .ar143-inspector-active .crew-table th:nth-child(n+4):nth-child(-n+7),
#crew-screen .ar143-inspector-active .crew-table td:nth-child(n+4):nth-child(-n+7){display:none!important;}
#crew-screen .ar143-inspector-active .crew-table th,#crew-screen .ar143-inspector-active .crew-table td{padding:8px 6px!important;font-size:11px!important;min-width:0;}
#crew-screen .ar143-inspector-active .crew-table td{overflow-wrap:anywhere;}
#crew-screen .ar143-inspector-active .crew-table th:nth-child(-n+3){width:auto!important;}
#crew-screen .ar143-inspector-active .crew-table th:last-child{width:65px!important;}
#crew-screen .ar143-inspector-active .crew-table td .crew-open{white-space:normal;}
@media(max-width:1080px){
 #crew-screen .ar143-crew-workspace.ar143-inspector-active{grid-template-columns:minmax(0,1fr);}
 #crew-screen #crew-side-panel{position:relative;top:auto;height:min(76dvh,740px);max-height:none;min-height:400px;}
}
@media(max-width:640px){
 body.ar143-crew-open #crew-screen #crew-dialog .crew-fields-grid{grid-template-columns:minmax(0,1fr)!important;}
 body.ar143-crew-open #crew-screen #crew-dialog .crew-dialog-actions button{font-size:10px;}
}
@media print{#crew-screen #crew-side-panel{display:none!important;}}
