/* RACSuite Bookings Management v0.3.60 — mobile filters modal.
 * No selector in this stylesheet modifies .rbg-table, its cells, or pagination.
 */
@media screen and (max-width:767px){
  html.rbgm-pending .rbg-frontend:not(.rbgm-on) .rbg-toolbar,
  html.rbgm-pending .rbg-frontend:not(.rbgm-on) .rbg-active-filters-row,
  html.rbgm-pending .rbg-frontend:not(.rbgm-on) .rbg-status-pills{visibility:hidden!important}
  .rbg-frontend.rbgm-on .rbg-toolbar{display:block!important;margin-top:5px!important}
  .rbg-frontend.rbgm-on .rbg-filters-form{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
    gap:8px!important;min-width:0!important
  }
  .rbg-frontend.rbgm-on .rbg-filter-actions{display:none!important}
  .rbg-frontend.rbgm-on .rbgm-top{display:flex;justify-content:flex-end;gap:8px}
  .rbg-frontend.rbgm-on .rbgm-top .rbg-btn-new-booking{
    width:auto!important;min-height:38px!important;padding:0 13px!important;
    font-size:13px!important;border-radius:10px!important;
  }
  .rbg-frontend.rbgm-on .rbgm-top:empty{display:none}
  .rbg-frontend.rbgm-on .rbgm-controls{display:flex;gap:8px;align-items:stretch;min-width:0;width:100%}
  .rbg-frontend.rbgm-on .rbgm-controls .rbg-filter-group--search{display:block;min-width:0!important;max-width:none!important;flex:1 1 0}
  .rbg-frontend.rbgm-on .rbgm-controls .rbg-filter-group--search label{position:absolute!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important}
  .rbg-frontend.rbgm-on .rbgm-controls .rbg-filter-group--search input{
    width:100%!important;min-width:0!important;min-height:42px!important;
    padding:7px 9px!important;font-size:14px!important;border:1px solid #d4e0e7!important;
    border-radius:10px!important;background:#fff!important
  }
  .rbg-frontend.rbgm-on .rbgm-filters-button{
    flex:0 0 auto;min-height:42px;padding:6px 12px;display:inline-flex;align-items:center;
    justify-content:center;white-space:nowrap;border:1px solid #a7c9dc;
    border-radius:10px;background:#fff;color:#13648c;
    font:700 13px/1.2 Arial,sans-serif;cursor:pointer
  }
  .rbg-frontend.rbgm-on .rbgm-applied{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}
  .rbg-frontend.rbgm-on .rbgm-active-count{font:600 12px/1.3 Arial,sans-serif;color:#657789}
  .rbg-frontend.rbgm-on .rbgm-applied .rbg-active-filters-row{margin:0!important;display:flex;gap:0!important;justify-content:flex-end!important;flex:0 0 auto}
  .rbg-frontend.rbgm-on .rbgm-applied .rbg-active-filters{display:none!important}
  .rbg-frontend.rbgm-on .rbgm-applied .rbg-clear-filters-link{font-size:12px!important;padding:5px 9px!important;white-space:nowrap}
  .rbg-frontend.rbgm-on .rbgm-submit{width:100%}
  .rbg-frontend.rbgm-on .rbgm-quick-apply{width:100%!important;min-height:39px!important;border-radius:10px!important;font-size:13px!important}
  .rbg-frontend.rbgm-on .rbgm-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:7px}
  .rbg-frontend.rbgm-on .rbgm-disclosure{border:1px solid #d8e5ec;border-radius:9px;background:#fff;min-width:0;overflow:hidden}
  .rbg-frontend.rbgm-on .rbgm-disclosure>summary{cursor:pointer;list-style-position:inside;padding:9px 5px;min-height:36px;text-align:center;font-size:11.5px;font-weight:700;color:#435b6c}
  .rbg-frontend.rbgm-on .rbgm-money[open],.rbg-frontend.rbgm-on .rbgm-extra-actions[open]{grid-column:1/-1}
  .rbg-frontend.rbgm-on .rbgm-money .rbg-summary-compact{min-width:0!important;width:100%;margin:0;padding:10px;border-top:1px solid #eef2f4;text-align:left}
  .rbg-frontend.rbgm-on .rbgm-money .rbg-summary-line{justify-content:space-between;flex-wrap:wrap;gap:4px;font-size:12px;white-space:normal}
  .rbg-frontend.rbgm-on .rbgm-extra-links{display:flex;flex-wrap:wrap;gap:7px;padding:10px;border-top:1px solid #eef2f4}
  .rbg-frontend.rbgm-on .rbgm-extra-links .rbg-btn{flex:1 1 auto;min-height:36px;font-size:12px}
}
/* Portalled above page builders and the authenticated Header. */
body.rbgm-modal-open{overflow:hidden!important}
.rbgm-overlay[hidden]{display:none!important}
.rbgm-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:12px!important;font-family:Arial,Helvetica,sans-serif!important}
.rbgm-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.66)}
.rbgm-dialog{position:relative;z-index:1;width:min(600px,100%)!important;max-height:calc(100dvh - 24px)!important;max-height:calc(100vh - 24px);background:#fff;border-radius:16px;box-shadow:0 20px 70px rgba(0,0,0,.32);display:flex;flex-direction:column;overflow:hidden;color:#273846}
.rbgm-dialog-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #e2e9ee}
.rbgm-dialog-heading{margin:0!important;padding:0!important;font:700 18px/1.25 Arial,sans-serif!important;color:#21394b!important}
.rbgm-close{flex:0 0 36px;height:36px;padding:0!important;margin:0!important;border:1px solid #e4e8ed!important;border-radius:9px!important;background:#fff!important;color:#e44358!important;font:700 27px/1 Arial,sans-serif!important;display:flex;align-items:center;justify-content:center;cursor:pointer}
.rbgm-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px;display:flex;flex-direction:column;gap:14px}
.rbgm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.rbgm-fields .rbg-filter-group{display:flex;flex-direction:column;min-width:0!important;width:100%;gap:5px}
.rbgm-fields .rbg-filter-group:first-child{grid-column:1/-1}
.rbgm-fields .rbg-filter-group label{font-size:12px!important;text-align:left!important;color:#486173!important;font-weight:700}
.rbgm-fields .rbg-filter-group input,.rbgm-fields .rbg-filter-group select{width:100%!important;max-width:100%!important;min-width:0!important;min-height:40px!important;padding:7px!important;border:1px solid #d4dce2!important;border-radius:9px!important;background:#fff!important;color:#364656!important;font:500 13px Arial,sans-serif!important}
.rbgm-status-title{display:block;color:#344a5b;font-size:14px;font-weight:700}
.rbgm-dialog-body .rbg-status-pills{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;padding:0!important;margin:0!important;width:100%!important;min-width:0!important}
.rbgm-dialog-body .rbg-status-pill{display:flex!important;align-items:center;flex-wrap:wrap;justify-content:flex-start;width:100%!important;min-width:0!important;min-height:40px!important;padding:7px 8px!important;gap:5px!important;white-space:normal!important;font-size:12px!important;line-height:1.25!important;cursor:pointer}
.rbgm-dialog-body .rbg-status-pill__label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.rbgm-dialog-footer{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid #e2e9ee;background:#fff}
.rbgm-dialog-footer .rbg-btn{min-height:40px!important;flex:1 1 0;border-radius:10px!important;padding:8px!important;text-align:center;white-space:normal;font-size:13px!important}
.rbgm-clear,.rbgm-cancel{color:#4c6474!important;background:#fff!important;border:1px solid #cad7df!important}
.rbgm-dialog-footer .rbg-btn-primary{color:#fff!important}
@media screen and (max-width:390px){.rbgm-overlay{padding:7px!important}.rbgm-dialog{max-height:calc(100dvh - 14px)!important;border-radius:12px}.rbgm-dialog-body{padding:10px}.rbgm-dialog-footer{padding:10px;gap:5px}.rbgm-dialog-footer .rbg-btn{font-size:12px!important}}
@media print{.rbgm-overlay{display:none!important}body.rbgm-modal-open{overflow:visible!important}}
