/* RIDEEASE_MOBILE_SETTINGS_POLICY_LAYOUT_FIX_V1_1 */
@media (max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  #content,.sc-shell,.sc-head,.sc-tabs,#polCust,#polOp,
  .re-settings-policy-tabs,.re-settings-policy-card,
  .re-settings-policy-card .fg,.re-settings-policy-card select,
  .re-settings-policy-card input,.re-settings-policy-card textarea{
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  #content,.sc-shell,#polCust,#polOp{width:100% !important;overflow-x:hidden !important}
  .sc-head{width:100% !important}
  .sc-scope{width:100% !important}
  .sc-scope select{display:block !important;width:100% !important;min-width:0 !important;font-size:16px !important}

  /* Main Settings tabs: no clipped button on portrait. */
  .sc-tabs{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
  }
  .sc-tabs .btn{
    width:100% !important;
    min-width:0 !important;
    white-space:normal !important;
    text-align:center !important;
    line-height:1.25 !important;
    padding:11px 8px !important;
  }

  /* Customer / Operator policy tabs. */
  .re-settings-policy-tabs{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
  }
  .re-settings-policy-tabs .btn{width:100% !important;min-width:0 !important;white-space:normal !important}

  .re-settings-policy-card{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
    padding:14px !important;
  }
  .re-settings-policy-card *{box-sizing:border-box;min-width:0}
  .re-settings-policy-scope,
  .re-settings-policy-help{
    width:100% !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
    line-height:1.5 !important;
  }
  .re-settings-policy-card select,
  .re-settings-policy-card input:not([type="file"]),
  .re-settings-policy-card textarea{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    font-size:16px !important;
  }
  .re-settings-policy-card textarea{
    white-space:pre-wrap !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
    overflow-x:hidden !important;
    resize:vertical !important;
    line-height:1.45 !important;
  }
  .re-settings-policy-card input[type="file"]{width:100% !important;max-width:100% !important;font-size:13px !important}
  .re-settings-policy-actions{display:grid !important;grid-template-columns:1fr !important;gap:8px !important;width:100% !important}
  .re-settings-policy-actions .btn{width:100% !important;min-width:0 !important;white-space:normal !important}

  /* Retain Fees & Charges mobile fixes from V1.0. */
  .re-settings-fee-location-card,.re-settings-carwash-card{width:100% !important;max-width:100% !important;min-width:0 !important;overflow:hidden !important;box-sizing:border-box !important}
  .re-settings-fee-location-card *,.re-settings-carwash-card *{box-sizing:border-box;min-width:0}
  .re-settings-fee-help,.re-settings-carwash-help{width:100% !important;max-width:100% !important;white-space:normal !important;overflow-wrap:break-word !important;line-height:1.5 !important}
  #feeLocSel,#branchFeeLoc{display:block !important;width:100% !important;max-width:100% !important;min-width:0 !important;height:44px !important;padding:0 34px 0 12px !important;font-size:16px !important}
  .re-settings-carwash-table{width:100% !important;max-width:100% !important;min-width:0 !important;overflow-x:hidden !important}
  .re-settings-carwash-table table{width:100% !important;min-width:0 !important;table-layout:fixed !important}
  .re-settings-carwash-table th,.re-settings-carwash-table td{min-width:0 !important;padding:10px 8px !important;overflow:hidden !important;text-overflow:ellipsis !important}
  .re-settings-carwash-table th:nth-child(1),.re-settings-carwash-table td:nth-child(1){width:48% !important}
  .re-settings-carwash-table th:nth-child(2),.re-settings-carwash-table td:nth-child(2){width:34% !important}
  .re-settings-carwash-table th:nth-child(3),.re-settings-carwash-table td:nth-child(3){width:18% !important;text-align:center !important}
  .re-settings-carwash-table th:nth-child(4),.re-settings-carwash-table td:nth-child(4){display:none !important}
  .re-settings-carwash-table .cwRateInp{width:100% !important;max-width:100% !important;min-width:0 !important;font-size:16px !important}
}
@media (max-width:390px){
  .sc-tabs{grid-template-columns:1fr !important}
  .re-settings-policy-tabs{grid-template-columns:1fr !important}
}
