/* TOWI 20.12.34 · partner mobile stability + passenger/cash finish repair */
html,body{max-width:100%;overflow-x:hidden}
body.partner-page{margin:0;background:#eef2f4}
body.partner-page.partner-authenticated{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important}
body.partner-page>.partner-tabs.partner-nav-stable,
body.partner-page>.tabs.partner-tabs,
body.partner-page nav.partner-tabs{
  position:fixed!important;
  inset:auto 0 0 0!important;
  left:0!important;right:0!important;top:auto!important;bottom:0!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;transform:none!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;
  padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))!important;
  border-radius:0!important;
  background:#07111f!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 -8px 24px rgba(0,0,0,.18)!important;
  z-index:2147483000!important;
  contain:layout paint!important;
}
body.partner-page>.partner-tabs[hidden],body.partner-page nav.partner-tabs[hidden]{display:none!important}
body.partner-page>.partner-tabs button,body.partner-page nav.partner-tabs button{
  min-width:0!important;width:100%!important;max-width:none!important;
  min-height:68px!important;height:auto!important;
  padding:7px 3px!important;margin:0!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;border-radius:15px!important;box-sizing:border-box!important;
}
body.partner-page>.partner-tabs button>span:last-child,body.partner-page nav.partner-tabs button>span:last-child{
  display:block!important;width:100%!important;max-width:100%!important;
  font-size:11.5px!important;line-height:1.1!important;text-align:center!important;white-space:normal!important;
}
body.partner-page>.partner-tabs .nav-icon,body.partner-page nav.partner-tabs .nav-icon{width:22px!important;height:22px!important;flex:0 0 22px!important}
body.partner-page>.partner-tabs .nav-icon svg,body.partner-page nav.partner-tabs .nav-icon svg{width:22px!important;height:22px!important}
body.partner-page #partnerApp .pad{padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))!important}

/* Passenger block: never white-on-light again. */
body.partner-page .active-passenger-info{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  margin:10px 0!important;padding:12px 14px!important;border-radius:14px!important;
  background:#eaf7f1!important;border:1px solid #b9dfd0!important;color:#0b1729!important;
}
body.partner-page .active-passenger-info b,
body.partner-page .active-passenger-info strong,
body.partner-page .active-passenger-info span{color:#0b1729!important;opacity:1!important;text-shadow:none!important}
body.partner-page .active-passenger-info .transport-needed{color:#9a4316!important;font-weight:850!important}

/* Finish / cash modal */
body.partner-page .finish-sheet{background:#04221c!important;color:#fff!important}
body.partner-page .finish-sheet .finish-scroll{padding:16px 16px 10px!important}
body.partner-page .finish-sheet .cash-finish-box{
  background:#f7faf9!important;color:#0b1729!important;border:1px solid #c8dcd5!important;
  border-radius:20px!important;padding:16px!important;gap:11px!important;box-shadow:none!important
}
body.partner-page .finish-sheet .cash-finish-box *,body.partner-page .finish-sheet .cash-finish-box label{color:#0b1729!important;opacity:1!important}
body.partner-page .finish-sheet .cash-finish-box>small{color:#52657a!important}
body.partner-page .finish-sheet #mCashAmount{background:#fff!important;color:#0b1729!important;font-size:22px!important;font-weight:900!important;min-height:58px!important}
body.partner-page .cash-variance-hint{padding:10px 12px;border-radius:12px;background:#edf3f1;color:#52657a!important;font-size:13px!important;font-weight:750!important;line-height:1.35}
body.partner-page .cash-variance-hint.ok{background:#e8f7ef!important;color:#146c4a!important}
body.partner-page .cash-variance-hint.change{background:#fff7dd!important;color:#74540a!important}
body.partner-page .cash-variance-hint.short{background:#fff0ee!important;color:#a63227!important}
body.partner-page .cash-settlement-preview{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.partner-page .cash-settlement-preview>span{background:#eaf3ef!important;border:1px solid #d5e3de!important;border-radius:13px!important;padding:10px!important}
body.partner-page .cash-settlement-preview small{color:#5a6a78!important;font-size:11px!important}
body.partner-page .cash-settlement-preview b{color:#0b1729!important;font-size:16px!important}
body.partner-page .cash-confirm{display:flex!important;align-items:center!important;gap:10px!important;background:#fff!important;border:1px solid #d5e1dd!important;border-radius:13px!important;padding:12px!important}
body.partner-page .cash-confirm input{width:25px!important;height:25px!important;min-height:25px!important;accent-color:#0c8c67!important}
body.partner-page .cash-confirm span{color:#0b1729!important;font-weight:850!important}
body.partner-page .photo-preview{position:relative!important}
body.partner-page .photo-preview .photo-clear{display:inline-flex!important;margin:7px 0 0!important;padding:7px 10px!important;border:0!important;border-radius:10px!important;background:#eef2f4!important;color:#a3322a!important;font-weight:800!important}
body.partner-page .finish-actions{position:sticky!important;bottom:0!important;z-index:20!important;background:#07111f!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important}
body.partner-page .finish-actions #mFinish{min-height:58px!important;font-weight:900!important}
body.partner-page .finish-sheet #mErr{font-weight:800!important;color:#ff746a!important;line-height:1.35!important}
body.partner-page .finish-sheet #priceReasonWrap:not(.hidden){display:grid!important;gap:7px!important;padding:12px!important;border-radius:14px!important;background:#fff7df!important;color:#0b1729!important}
body.partner-page .finish-sheet #priceReasonWrap:not(.hidden) select,
body.partner-page .finish-sheet #priceReasonWrap:not(.hidden) textarea{background:#fff!important;color:#0b1729!important}
@media(max-width:520px){
 body.partner-page .cash-settlement-preview{grid-template-columns:1fr!important}
 body.partner-page .active-passenger-info{align-items:flex-start!important;flex-direction:column!important}
}
