/* New-flight mobile dialog: one bounded scroll area and consistent controls. */
@media(max-width:600px){
.modal-backdrop:has(.new-rotation-form){position:fixed!important;inset:auto 0!important;top:var(--flight-dialog-top,0px)!important;height:var(--flight-dialog-height,100dvh)!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:12px!important;padding-top:max(12px,env(safe-area-inset-top))!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important;box-sizing:border-box!important;overflow:hidden!important}
.app-shell .modal.card:has(.new-rotation-form){width:100%!important;max-width:460px!important;min-width:0!important;max-height:100%!important;height:auto!important;margin:0!important;padding:20px 16px 16px!important;box-sizing:border-box!important;border:1px solid #dbe5ef!important;border-radius:16px!important;background:#fff!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
.modal:has(.new-rotation-form) .modal-close{top:10px!important;right:10px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:10px!important;z-index:2!important}
.new-rotation-form{display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
.new-rotation-form>h2{font-size:20px!important;line-height:28px!important;margin:0!important;padding:0 44px 0 0!important;text-align:left!important;color:#274d70!important}
.new-rotation-form>.new-rotation-subtitle{display:none!important}
.new-rotation-form .new-rotation-columns{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important}
.new-rotation-form .new-rotation-columns>section{display:flex!important;flex-direction:column!important;gap:12px!important;min-width:0!important;margin:0!important;padding:12px 10px!important;border-radius:10px!important;box-sizing:border-box!important}
.new-rotation-form .new-rotation-columns h3{margin:0!important;font-size:12px!important;line-height:18px!important;letter-spacing:.5px!important;text-align:center!important}
.new-rotation-form .field{display:flex!important;flex-direction:column!important;gap:6px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
.new-rotation-form .field>span{display:block!important;width:100%!important;font-size:12px!important;font-weight:600!important;line-height:18px!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important;color:#526e85!important}
.new-rotation-form .new-rotation-columns .field>span{min-height:36px!important;display:flex!important;align-items:flex-end!important}
.new-rotation-form input,.new-rotation-form select{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;margin:0!important;padding:10px!important;font-size:16px!important;font-weight:500!important;line-height:24px!important;border:1px solid #cbdbe8!important;border-radius:8px!important;box-sizing:border-box!important;background-color:#fff!important;color:#284c6c!important;text-align:left!important;text-align-last:left!important;scroll-margin-block:20px}
.new-rotation-form input::placeholder{text-align:left!important}
.new-rotation-form input:focus,.new-rotation-form select:focus{outline:2px solid #8bb3d4!important;outline-offset:1px!important}
.new-rotation-form .new-aircraft-airline-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;min-width:0!important}
.new-rotation-form .new-aircraft-airline-row select{padding-right:34px!important}
.new-rotation-form .new-rotation-shared{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important}
.new-rotation-form input[type=date]{appearance:none!important;-webkit-appearance:none!important;display:block!important;max-width:100%!important;font-size:15px!important;padding:10px 6px!important}
.new-rotation-form input[type=date]::-webkit-date-and-time-value{text-align:left!important;min-width:0!important}
.new-rotation-form .new-rotation-submit{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:48px!important;height:auto!important;margin:0!important;padding:12px!important;font-size:15px!important;line-height:22px!important;border-radius:9px!important;flex-shrink:0!important}
}
@media(max-width:350px){
.new-rotation-form .new-rotation-columns,.new-rotation-form .new-rotation-shared{grid-template-columns:minmax(0,1fr)!important}
.new-rotation-form .new-rotation-columns .field>span{min-height:0!important}
}

/* Searchable selections use their own viewport-bounded dialog. */
.new-rotation-form .new-aircraft-airline-row .modern-picker-native{display:none!important}
.new-rotation-form .new-aircraft-airline-row .modern-picker-trigger{display:flex!important;min-height:46px!important;width:100%!important;min-width:0!important;font-size:15px!important;line-height:22px!important;text-align:left!important;justify-content:space-between!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}
.ff-picker-layer{position:fixed;left:0;right:0;z-index:20000;width:100%;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box;overflow:hidden;background:#17334980}
.ff-search-dialog{width:100%;max-width:420px;max-height:100%;min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px;padding:16px;box-sizing:border-box;border:1px solid #d4e1ec;border-radius:16px;background:#fff;box-shadow:0 16px 45px #17334933;overflow:hidden;color:#284c6c}
.ff-search-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
.ff-search-header h3{margin:0;font-size:17px;line-height:24px;color:#284c6c}
.ff-search-close{display:flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;padding:0;border:1px solid #d4e1ec;border-radius:9px;background:#f3f7fb;color:#466780;font-size:27px;line-height:1;cursor:pointer}
.ff-search-dialog .ff-search-input{flex:0 0 46px;box-sizing:border-box;width:100%;min-width:0;min-height:46px;height:46px;margin:0;padding:10px 12px;border:1px solid #bfd2e2;border-radius:9px;background:#f4f8fc;color:#284c6c;font-size:16px;line-height:24px;outline-offset:2px}
.ff-search-options{flex:0 1 auto;min-height:0;max-height:360px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.ff-search-option{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:12px 10px;border:0;border-bottom:1px solid #e5edf3;border-radius:0;background:#fff;color:#355b7b;font-size:14px;line-height:22px;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.ff-search-option[aria-pressed=true]{background:#eaf3fc;color:#265d8a;font-weight:700}
.ff-search-option:hover,.ff-search-option:focus-visible{background:#f0f5fa}
.ff-search-group{padding:10px;background:#f6f9fc;color:#607e96;font-size:12px;font-weight:700;line-height:18px}
.ff-search-empty{margin:0;padding:18px 10px;color:#607e96;font-size:14px;text-align:center}
@media(max-height:440px){.ff-search-dialog{gap:8px;padding:10px}.ff-search-header h3{font-size:15px}.ff-search-close{height:34px;min-height:34px}}

/* Compact flight dialogs without horizontal overflow. */
.app-shell .modal.card:has(.new-rotation-form){width:min(390px,calc(100vw - 20px))!important;max-width:390px!important;padding:14px!important;border-radius:12px!important}
.new-rotation-form{gap:10px!important}
.new-rotation-form>h2{font-size:17px!important;line-height:24px!important;padding-right:36px!important}
.new-rotation-form .new-rotation-columns{gap:8px!important}
.new-rotation-form .new-rotation-columns>section{padding:9px 8px!important;gap:8px!important}
.new-rotation-form .new-rotation-columns h3{font-size:11px!important;line-height:16px!important}
.new-rotation-form .field{gap:4px!important}
.new-rotation-form .field>span{font-size:11px!important;line-height:15px!important}
.new-rotation-form .new-aircraft-airline-row,.new-rotation-form .new-rotation-shared{gap:8px!important}
.new-rotation-form input,.new-rotation-form .new-aircraft-airline-row .modern-picker-trigger{height:38px!important;min-height:38px!important;padding:7px 9px!important;font-size:14px!important;line-height:22px!important;border-radius:7px!important}
.new-rotation-form .new-rotation-submit{height:40px!important;min-height:40px!important;padding:8px!important;font-size:13px!important;line-height:20px!important}
.modal:has(.new-rotation-form) .modal-close{top:7px!important;right:7px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:7px!important}
.ff-search-dialog{max-width:340px;padding:10px;gap:8px;border-radius:12px}
.ff-search-header h3{font-size:15px;line-height:22px}
.ff-search-close{width:34px;min-width:34px;height:34px;font-size:24px}
.ff-search-dialog .ff-search-input{height:40px;min-height:40px;flex-basis:40px;padding:7px 9px;border-radius:7px}
.ff-search-options{max-height:240px}
.ff-search-option{min-height:40px;padding:8px 9px;font-size:13px;line-height:22px}
.ff-search-group{padding:6px 9px;font-size:11px;line-height:16px}
@media(max-width:600px){
.app-shell .modal.card:has(.new-rotation-form){width:100%!important;padding:14px 12px 12px!important}
.new-rotation-form .new-rotation-columns .field>span{min-height:30px!important}
.new-rotation-form input,.new-rotation-form .new-aircraft-airline-row .modern-picker-trigger{font-size:16px!important;height:40px!important;min-height:40px!important}
.new-rotation-form input[type=date]{font-size:14px!important;padding:7px 4px!important}
.new-rotation-form .new-rotation-submit{min-height:42px!important}
}
@media(max-width:350px){.new-rotation-form .new-rotation-columns .field>span{min-height:0!important}}

.ff-airline-dialog .ff-search-option{font-size:9px;line-height:14px;min-height:28px;padding:6px 8px;font-weight:500}

.app-shell .workspace .operations-passenger-cards .metric-total .checkin-total-weight{display:flex!important;flex:0 0 100%!important;grid-column:1/-1!important;align-items:baseline!important;gap:5px!important;width:100%!important;min-width:0!important;margin-top:5px!important;padding-top:6px!important;border-top:1px solid #dce7ef!important;box-sizing:border-box!important}
.app-shell .workspace .operations-passenger-cards .checkin-total-weight>span{font-size:11px!important;line-height:18px!important;color:#607e96!important}
.app-shell .workspace .operations-passenger-cards .checkin-total-weight>b{font-size:17px!important;line-height:22px!important;color:#315b7c!important}
.app-shell .workspace .operations-passenger-cards .checkin-total-weight>small{font-size:10px!important;line-height:16px!important;color:#607e96!important}

.operations-time-modal .flight-time-date{display:flex;flex-direction:column;gap:5px;margin:8px 0 12px;color:#607e96;font-size:12px}
.operations-time-modal .flight-time-date input{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px;border:1px solid #bfd2e2;border-radius:8px;background:#f4f8fc;color:#284c6c;font-size:16px}
