/* Gym management 0.23.214: shared spacing, focused dialogs and readable operational records. */
html:root body #platform-content#platform-content .gc170-controls{display:flex;align-items:center;gap:20px;padding:16px 0 20px;margin:4px 0 0;flex-wrap:wrap}
html:root body #platform-content#platform-content .gc170-controls h2{margin:0;flex:0 1 auto;line-height:1.35;font-size:18px}
html:root body #platform-content#platform-content .gc170-navigation{display:flex;gap:8px;align-items:center;margin:0}
html:root body #platform-content#platform-content .gc170-modes{margin:0 0 0 auto;gap:4px;padding:4px;background:#f2f6fa;border:1px solid #dbe5f0;border-radius:12px}
html:root body #platform-content#platform-content .gc170-controls button{min-height:42px;white-space:nowrap}
html:root body :is(#platform-content#platform-content,#modal#modal) .gym214-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
html:root body :is(#platform-content#platform-content,#modal#modal) .member-trainers214{padding:0;overflow:hidden;margin:18px 0}
html:root body :is(#platform-content#platform-content,#modal#modal) .member-trainers214>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;border-bottom:1px solid #e1e9f2}
html:root body :is(#platform-content#platform-content,#modal#modal) .member-trainers214 h3{display:flex;align-items:center;gap:10px;margin:0;font-size:17px}
.member-trainers214 header p{margin:4px 0 0;color:#708399;font-size:13px}
.trainer-allocations214>article{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px dashed #e1e9f2}
.trainer-allocations214>article>div{flex:1;min-width:0}.trainer-allocations214 small{display:block;margin-top:4px;color:#708399}
html:root body #platform-content#platform-content .member-trainers214>.gym214-actions{margin:0;padding:16px 20px}
.trainer-empty214{padding:18px 20px;margin:0;color:#708399}
html:root body #modal#modal.gym214-dialog{width:min(800px,calc(100vw - 32px));max-width:800px;padding:0;border-radius:20px}
html:root body #modal#modal.gym214-dialog #modal-body{padding:22px;overflow:auto}
html:root body #modal#modal.gym214-dialog form{width:100%;margin:0}
html:root body #modal#modal.gym214-dialog form>fieldset{display:flex;flex-direction:column;gap:16px;border:0;padding:0;margin:0}
html:root body #modal#modal.gym214-dialog :is(.gym-admin-group,.retail-grid,.member-objectives .form-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;border:1px solid #e1e9f2;border-radius:12px;background:#f8fafc}
html:root body #modal#modal.gym214-dialog .gym-admin-group>legend{padding:0 6px;font-weight:650}
html:root body #modal#modal.gym214-dialog .member-objectives{padding:12px 0;border:0;margin:0}
html:root body #modal#modal.gym214-dialog .check-row{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:40px;font-size:14px}
html:root body #modal#modal.gym214-dialog :is(.gym-actions,.gym-admin-actions,.actions){display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin:8px 0 0;padding:12px 0 0;border-top:1px solid #e1e9f2}
html:root body #modal#modal.gym214-dialog .gym-full-width{grid-column:1/-1}
html:root body #modal#modal.gym214-dialog .member-upload-grid168{display:grid;grid-template-columns:1fr;gap:16px;padding:0}
html:root body #modal#modal.gym214-dialog .member-drop168{min-height:120px}
.match-summary214{padding:16px 0 10px}.match-summary214 p{font-size:13px;color:#708399;margin:5px 0}
.match-results214{display:grid;gap:12px}.match-results214>article{border:1px solid #dbe5ef;border-radius:14px;padding:16px;background:#fff}
.match-results214 header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.match-results214 header small{display:block;color:#708399;margin-top:4px}
.match-details214{display:flex;flex-wrap:wrap;gap:10px 16px;padding:12px 0;font-size:13px;color:#536c83}.match-details214>span{display:flex;align-items:center;gap:7px}
.direct-assignment214{margin:20px 0 0;border-top:1px dashed #dbe5ef;padding:16px 0}.direct-assignment214 summary{font-weight:650;cursor:pointer}
html:root body #platform-content#platform-content.facility214 .page-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
html:root body #platform-content#platform-content.facility214 .facility-actions214{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:50%;margin:0}
html:root body #platform-content#platform-content.facility214 .facility-actions214 .button{white-space:nowrap;margin:0;min-height:42px}
html:root body #platform-content#platform-content.facility214 .facility-intro214{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0 14px;padding:20px 22px;background:linear-gradient(115deg,#f0f6fb,#f8fafc);border:1px solid #dfE8f1;border-radius:16px}
html:root body #platform-content#platform-content.facility214 .facility-intro214 h2{margin:0;font-size:19px}
html:root body #platform-content#platform-content.facility214 .facility-intro214 p{margin:5px 0 0;color:#708399;font-size:14px}
.facility-count214{padding:8px 12px;border-radius:9px;background:white;color:#536c83;white-space:nowrap;font-size:13px}
html:root body #platform-content#platform-content.facility214 :is(.card,.gym-admin-records){padding:20px;border:1px solid #dbe5ef;border-radius:16px;box-shadow:0 3px 14px #18385404;margin:0 0 16px;overflow:visible}
html:root body #platform-content#platform-content.facility214 :is(.card,.gym-admin-records)>:is(h2,h3){display:flex;align-items:center;gap:9px;font-size:16px;margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid #e4ebf3}
html:root body #platform-content#platform-content.facility214 .shared-result-list{display:grid;gap:12px;margin:0;padding:0;border:0;background:none;list-style:none}
html:root body #platform-content#platform-content.facility214 .shared-result-list>.line-item{display:block;padding:18px;border:1px solid #e1e9f1;border-radius:12px;background:#fff;margin:0;min-width:0}
html:root body #platform-content#platform-content.facility214 .shared-result-list>.line-item strong{font-size:16px;line-height:1.4}
html:root body #platform-content#platform-content.facility214 .shared-result-list>.line-item p{color:#647991;line-height:1.55;margin:8px 0}
html:root body #platform-content#platform-content.facility214 .shared-result-list>.line-item small{display:block;color:#708399;margin:8px 0}
html:root body #platform-content#platform-content.facility214 .facility-record-actions214{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:12px;margin-top:12px;border-top:1px dashed #e1e9f1}
html:root body #platform-content#platform-content.facility214 .facility-record-actions214 :is(a,button){min-height:38px;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #dbe5ef;border-radius:9px;text-decoration:none;font-size:13px}
html:root body #platform-content#platform-content.facility214 .shared-empty{padding:38px 20px!important;text-align:center;color:#708399;background:#f8fafc;border-radius:12px}
html:root body #platform-content#platform-content.facility214 :is(.retail-context,.gym-equipment-filters){display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:16px;background:#f6f8fb;border:1px solid #e1e9f1;border-radius:12px;margin:0 0 16px}
html:root body #platform-content#platform-content.facility214 :is(.retail-context,.gym-equipment-filters)>label{flex:1;min-width:160px;margin:0}
html:root body #platform-content#platform-content.facility214 .gym-table-scroll{overflow:auto;border:1px solid #e1e9f1;border-radius:12px}
html:root body #platform-content#platform-content.facility214 table{width:100%;border:0;border-collapse:collapse}
html:root body #platform-content#platform-content.facility214 th{background:#f3f7fb;padding:13px 14px;color:#647991;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
html:root body #platform-content#platform-content.facility214 td{padding:15px 14px;border-bottom:1px solid #e6ecf3;font-size:14px}
html:root body #platform-content#platform-content.facility214 td small{display:block;color:#708399;margin-top:5px}
.facility-back214{display:inline-block;margin:8px 0 4px}.pipeline-view214{color:#708399;font-size:13px}
@media(min-width:1000px){html:root body #platform-content#platform-content.facility214[data-facility-tab=providers] .shared-result-list,html:root body #platform-content#platform-content.facility214[data-facility-tab=plans] .shared-result-list,html:root body #platform-content#platform-content.facility214[data-facility-tab=supplies] .shared-result-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
html:root body #platform-content#platform-content .gc170-controls{gap:12px;padding:14px 0}
html:root body #platform-content#platform-content .gc170-controls h2{flex:1 0 100%;font-size:17px}
html:root body #platform-content#platform-content .gc170-navigation{gap:6px}
html:root body #platform-content#platform-content .gc170-modes{margin-left:auto}
html:root body #modal#modal.gym214-dialog{width:calc(100vw - 16px);max-width:none;max-height:94dvh;border-radius:16px}
html:root body #modal#modal.gym214-dialog #modal-body{padding:16px}
html:root body #modal#modal.gym214-dialog :is(.gym-admin-group,.retail-grid){grid-template-columns:minmax(0,1fr);padding:12px}
html:root body #modal#modal.gym214-dialog .member-objectives .form-grid{padding:12px;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
html:root body #platform-content#platform-content.facility214 .page-top{display:block;margin-bottom:16px}
html:root body #platform-content#platform-content.facility214 .facility-actions214{max-width:none;justify-content:flex-start;margin-top:12px}
html:root body #platform-content#platform-content.facility214 .facility-intro214{padding:16px;align-items:flex-start;margin:16px 0 12px}
html:root body #platform-content#platform-content.facility214 .facility-intro214 h2{font-size:17px}
html:root body #platform-content#platform-content.facility214 .facility-intro214 p{font-size:13px}
html:root body #platform-content#platform-content.facility214 :is(.card,.gym-admin-records){padding:14px;margin-bottom:12px}
html:root body #platform-content#platform-content.facility214 .shared-result-list>.line-item{padding:14px}
html:root body #platform-content#platform-content.facility214 :is(.retail-context,.gym-equipment-filters)>label{flex-basis:100%;min-width:0}
html:root body #platform-content#platform-content.facility214 .facility-record-actions214{gap:8px}
html:root body #platform-content#platform-content.facility214 .facility-record-actions214 :is(a,button){min-height:42px}
.trainer-allocations214>article{padding:14px;gap:9px}.member-trainers214 .gym214-actions>.button{width:100%;white-space:nowrap;justify-content:center}
.match-results214 header{flex-wrap:wrap}.match-results214>article{padding:14px}.match-results214 button{width:100%}
}
html:root body #platform-content#platform-content.facility214 .shared-result-list>.line-item:has(>.suite181-record-icon){display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:start}
html:root body #platform-content#platform-content.facility214 .suite181-record-icon{width:36px;height:36px;display:grid;place-items:center;background:#edf4fa;border-radius:10px;margin:0}
html:root body #platform-content#platform-content.facility214 .suite181-record-content{min-width:0;margin:0}
.facility-record-heading214{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;min-height:36px}
html:root body #platform-content#platform-content.facility214 [role=tablist]:not([hidden]){display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:4px;overflow:visible;width:100%;max-width:none;padding:5px;border-radius:12px}
html:root body #platform-content#platform-content.facility214 [role=tablist] [role=tab]{white-space:normal;text-align:center;justify-content:center;min-height:42px;font-size:13px;padding:9px}
@media(max-width:700px){html:root body #platform-content#platform-content.facility214 [role=tablist]:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}.facility-record-heading214{align-items:flex-start}.facility-count214{font-size:11px;padding:6px}}
html:root body #platform-content#platform-content.facility214 nav.shared-tabs[role=tablist]:not([hidden]){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));box-sizing:border-box;min-width:0;max-width:100%;overflow:visible}
html:root body #platform-content#platform-content.facility214 nav.shared-tabs[role=tablist]>a{min-width:0;max-width:100%;white-space:normal!important}

@media(min-width:1000px){html:root body #platform-content#platform-content.facility214 nav.shared-tabs[role=tablist]:not([hidden]){grid-template-columns:repeat(7,minmax(0,1fr))}}
html:root body #modal#modal.gym214-dialog [data-member-form=upload] .member-upload-grid168 label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:13px}
html:root body #modal#modal.gym214-dialog .member-upload-options168{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
html:root body #modal#modal.gym214-dialog .member-drop168{display:flex;flex-direction:column;gap:9px;border:1px dashed #a9bfd5;border-radius:12px;padding:20px;align-items:center;justify-content:center;text-align:center;background:#f5f9fc}
html:root body #modal#modal.gym214-dialog .member-drop168 svg{width:28px;height:28px}
html:root body #modal#modal.gym214-dialog .member-drop168 input{max-width:100%;border:0;padding:4px;font-size:12px;background:transparent}
html:root body #modal#modal.gym214-dialog .member-drop168 input::file-selector-button{padding:9px 12px;border:1px solid #cbdbea;border-radius:8px;background:white;color:#163d62;cursor:pointer;margin-right:8px}
