/* Guest care uses its available panel width, including inside Front Desk. */
.bp-gr-center{padding:18px;background:#fff;border:1px solid #dbe4df;border-radius:14px;margin-bottom:12px;color:#17372e}
.bp-gr-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.bp-gr-head h2,.bp-gr-head h3{margin:3px 0 0;font-size:22px;font-weight:400;color:#17372e}
.bp-gr-eyebrow{font-size:11px;letter-spacing:.06em;color:#64766e;font-weight:400}
.bp-gr-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.bp-gr-center button,.bp-gr-dialog button{font:inherit;font-weight:400;cursor:pointer;border:1px solid #ccd9d2;border-radius:8px;padding:8px 11px;min-height:40px;color:#24483b;background:#fff}
.bp-gr-center button.primary,.bp-gr-dialog button.primary{background:#17533f;border-color:#17533f;color:#fff}
.bp-gr-center button:focus-visible,.bp-gr-dialog :focus-visible,.bp-gr-legacy :focus-visible{outline:3px solid #e39f32;outline-offset:2px}
.bp-gr-dialog button:disabled{opacity:.55;cursor:wait}
.bp-gr-lanes{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:20px;align-items:start}
.bp-gr-lanes>*,.bp-gr-primary{min-width:0}
.bp-gr-primary{display:grid;gap:14px}
.bp-gr-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px}
.bp-gr-lanes h4{margin:0;font-size:15px;font-weight:400}
.bp-gr-caption{font-size:12px;color:#64766e;margin:2px 0 10px}
.bp-gr-count{display:inline-flex;align-items:center;justify-content:center;background:#edf3ef;color:#34614d;border-radius:5px;min-width:23px;padding:2px 5px;margin-left:5px;font-size:12px;font-variant-numeric:tabular-nums}
.bp-gr-center .bp-gr-case{display:grid;grid-template-columns:auto minmax(0,1fr);text-align:left;gap:5px 8px;padding:10px 12px;margin-bottom:7px;width:100%;background:#f8faf8}
.bp-gr-center .bp-gr-case:hover{background:#edf5f0;border-color:#9db7a9}
.bp-gr-case>span:not(.bp-gr-tag),.bp-gr-case>small{grid-column:1/-1}
.bp-gr-case>span:not(.bp-gr-tag){font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.bp-gr-case>small,.bp-gr-arrival small{font-size:12px;color:#64766e;line-height:1.45}
.bp-gr-case strong{font-size:13px;font-weight:400;align-self:center;overflow-wrap:anywhere}
.bp-gr-tag{display:inline-block;width:max-content;max-width:100%;font-size:11px;line-height:1.4;font-weight:400;background:#e5f1eb;border-radius:5px;padding:3px 6px;color:#276149;overflow-wrap:anywhere}
.bp-gr-tag.recovery{background:#fff0db;color:#875316}.bp-gr-tag.closed{background:#eff1ef;color:#5d6b63}
.bp-gr-arrivals{border-left:1px solid #e3e9e5;padding-left:20px}
.bp-gr-arrival{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;border-bottom:1px solid #e3e9e5;padding:9px 0}
.bp-gr-arrival time{font-size:13px;font-variant-numeric:tabular-nums;color:#24483b;align-self:center}
.bp-gr-arrival strong{font-size:13px;font-weight:400;grid-column:1/-1;overflow-wrap:anywhere}
.bp-gr-arrival small{grid-column:1/-1}
.bp-gr-empty{background:#f7f9f7;color:#64766e;font-size:13px;padding:12px;border-radius:8px;margin:8px 0}
.bp-gr-center .bp-gr-link{padding:7px 0;background:transparent;border:0;font-size:12px;text-align:left;min-height:36px}
.bp-gr-link:hover{text-decoration:underline}
.bp-gr-dnr-lane{padding:12px;background:#f9faf8;border:1px solid #dbe4df;border-radius:10px}
.bp-gr-dnr-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.bp-gr-dnr-head h4{margin:0;font-size:14px;font-weight:400}.bp-gr-dnr-head small{font-weight:400;color:#6b7a76;margin-left:6px;white-space:nowrap;font-size:12px}
.bp-gr-center .bp-gr-dnr-head button{min-height:36px;font-size:12px;padding:6px 9px;background:#fff;color:#24483b;border-color:#ccd9d2;white-space:nowrap}
.bp-gr-dnr-check{display:grid;gap:5px;font-size:12px;color:#4a5f5c;margin:0}
.bp-gr-dnr-check input{width:100%;box-sizing:border-box;min-height:40px;border:1px solid #cdd8d1;border-radius:7px;padding:8px 10px;font:inherit;font-size:14px;background:#fff;color:#1b382c}
.bp-gr-dnr-result{font-size:13px;margin:7px 0}.bp-gr-dnr-result:empty{display:none}.bp-gr-dnr-result.hit{color:#a3291e;font-weight:400}.bp-gr-dnr-result.clear{color:#0f6b4f}
.bp-gr-dnr-clear{margin:7px 0 0;font-size:12px;color:#64766e}
.bp-gr-dnr{border-top:1px solid #dbe4df;padding:10px 0;display:grid;gap:4px}.bp-gr-dnr p{margin:0;font-size:13px;overflow-wrap:anywhere}.bp-gr-dnr strong{font-weight:400}.bp-gr-dnr small{color:#6b7a76;font-size:12px}
.bp-gr-dnr.lifted{opacity:.8}.bp-gr-dnr button{justify-self:start;margin-top:4px}
.bp-gr-dnr-lane summary{cursor:pointer;font-size:13px;margin-top:6px;padding:7px 0;min-height:32px}
.bp-gr-legacy{margin-top:12px}.bp-gr-legacy[hidden]{display:none!important}
.bp-gr-followup{margin-bottom:12px;border:1px solid #dbe4df;border-radius:10px;background:#fff;scroll-margin-top:90px}
.bp-gr-followup>summary{cursor:pointer;font-size:14px;color:#24483b;padding:13px 15px;min-height:44px;box-sizing:border-box}
.bp-gr-followup>summary span{font-size:12px;color:#64766e;margin-left:10px}
.bp-gr-followup>.grid{padding:0 14px 14px;gap:16px;align-items:start}
.bp-gr-followup .card{box-shadow:none;border:0;padding:0;margin:0;background:transparent;min-width:0}
.bp-gr-followup .section-head h3{font-size:16px;font-weight:400}.bp-gr-followup .section-head p{font-size:12px}
.bp-gr-followup .formgrid{gap:10px}.bp-gr-followup label{font-size:12px;font-weight:400}
.bp-gr-followup input,.bp-gr-followup select{min-height:40px;padding:8px 10px;font-size:14px}
.bp-gr-followup textarea{min-height:76px;resize:vertical;font-size:14px;padding:9px 10px}
.bp-gr-followup .bp-guest-follow{width:100%;font:inherit;cursor:pointer;text-align:left;padding:10px;gap:10px}
.bp-gr-followup .bp-guest-follow strong{font-size:13px;font-weight:400}.bp-gr-followup .bp-guest-follow span,.bp-gr-followup .bp-guest-follow small,.bp-gr-followup .bp-guest-follow b{font-size:12px;font-weight:400}
.bp-gr-followup .empty{font-size:13px;padding:12px}
#guestRelationsHistory{margin:0;padding:16px;scroll-margin-top:90px;border-radius:12px}
#guestRelationsHistory .section-head{align-items:center;gap:12px;margin-bottom:12px}
#guestRelationsHistory h3{font-size:18px;font-weight:400}#guestRelationsHistory .section-head p{font-size:12px;margin:4px 0 0;color:#64766e}
#guestRelationsHistoryCount{font-size:12px;color:#64766e;white-space:nowrap}
.bp-gr-history-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,160px) minmax(170px,220px);gap:10px;margin-bottom:14px}
.bp-gr-history-filters label{display:grid;gap:5px;font-size:12px;font-weight:400;color:#536b60;min-width:0}
.bp-gr-history-filters input,.bp-gr-history-filters select{width:100%;min-width:0;min-height:40px;box-sizing:border-box;border:1px solid #cdd8d1;border-radius:8px;background:#fff;color:#24483b;padding:8px 10px;font:inherit;font-size:14px}
.bp-gr-history-columns,.bp-gr-history-row{display:grid;grid-template-columns:minmax(140px,.95fr) minmax(200px,1.8fr) minmax(150px,1.1fr) minmax(135px,.85fr);gap:16px;align-items:start}
.bp-gr-history-columns{font-size:12px;color:#64766e;background:#f4f7f4;padding:9px 12px;border-radius:7px}
.bp-gr-history-rows{display:grid}
#guestRelationsList .bp-gr-history-row{font:inherit;font-size:13px;font-weight:400;line-height:1.45;color:#24483b;cursor:pointer;text-align:left;width:100%;max-width:100%;background:#fff;border:0;border-bottom:1px solid #e1e8e3;border-radius:0;padding:12px;min-height:64px;box-shadow:none}
#guestRelationsList .bp-gr-history-row:hover{background:#f6faf7}
.bp-gr-history-row>span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.bp-gr-history-row small{font-size:12px;line-height:1.45;color:#64766e}
.bp-gr-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.bp-gr-recorded small{font-size:11px}
.bp-gr-dialog{width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #c7d6ce;border-radius:18px;padding:22px;color:#193c2e;background:#fff;box-shadow:0 30px 90px #0b281f44}.bp-gr-dialog::backdrop{background:#10251f88;backdrop-filter:blur(3px)}.bp-gr-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}.bp-gr-form label{display:grid;gap:6px;font-size:13px;font-weight:600}.bp-gr-form label small{display:inline;font-weight:400;color:#728076}.bp-gr-form input,.bp-gr-form select,.bp-gr-form textarea{font:inherit;width:100%;box-sizing:border-box;border:1px solid #cdd8d1;background:#fff;border-radius:8px;padding:10px;color:#1b382c;min-height:42px}.bp-gr-form textarea{resize:vertical}.bp-gr-full{grid-column:1/-1}.bp-gr-route{background:#eff6f1;border-left:3px solid #36735a;padding:11px 12px;font-size:12px;line-height:1.6;border-radius:5px}.bp-gr-dialog [role=status]{font-size:13px;color:#925e25;min-height:18px}.bp-gr-dialog [hidden],.bp-gr-legacy[hidden],#incident-pane-incident[hidden],[data-incident-tab][hidden]{display:none!important}

.bp-gr-form label,.bp-gr-dialog strong{font-weight:400}
.bp-gr-form .wide{grid-column:1/-1}.bp-gr-inline{display:flex!important;align-items:center;gap:8px}
@container bpincidents (max-width:850px){
  .bp-gr-lanes{grid-template-columns:minmax(0,1fr)}
  .bp-gr-arrivals{border-left:0;border-top:1px solid #e3e9e5;padding:14px 0 0}
  .bp-gr-arrival{grid-template-columns:minmax(0,1fr) auto}
  .bp-gr-head{align-items:flex-start;flex-wrap:wrap}
  .bp-gr-history-columns{display:none}
  #guestRelationsList .bp-gr-history-row{grid-template-columns:minmax(0,1fr) minmax(115px,.6fr);gap:10px;padding:12px 0}
  .bp-gr-request,.bp-gr-follow{grid-column:1/-1}
  .bp-gr-recorded{grid-column:2;grid-row:1;text-align:right;justify-items:end}
  .bp-gr-follow::before{content:'Follow-up';font-size:11px;color:#64766e}
  .bp-gr-guest{grid-column:1;grid-row:1}
}
@container bpincidents (max-width:520px){
  .bp-gr-center{padding:13px}.bp-gr-head{gap:12px;margin-bottom:14px}.bp-gr-head h3{font-size:21px}
  .bp-gr-actions{justify-content:flex-start;width:100%;gap:6px}.bp-gr-actions button{min-height:44px;font-size:12px;padding:8px 10px}
  .bp-gr-actions button.primary{margin-left:auto}
  .bp-gr-followup>summary span{display:block;margin:4px 0 0 16px}
  .bp-gr-followup .formgrid{grid-template-columns:minmax(0,1fr)}
  .bp-gr-followup>.grid{padding:0 12px 12px}
  #guestRelationsHistory{padding:13px}#guestRelationsHistory .section-head{flex-wrap:wrap;gap:6px}
  .bp-gr-history-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .bp-gr-history-search{grid-column:1/-1}
  .bp-gr-history-filters input,.bp-gr-history-filters select,.bp-gr-dnr-check input,.bp-gr-followup input,.bp-gr-followup select,.bp-gr-followup textarea{font-size:16px;min-height:44px}
  .bp-gr-center .bp-gr-link,.bp-gr-center .bp-gr-dnr-head button,.bp-gr-dnr-lane summary{min-height:44px}
}
@media(max-width:700px){
  .bp-gr-dialog{padding:16px}.bp-gr-form{grid-template-columns:1fr}.bp-gr-full{grid-column:1}.bp-gr-head h2{font-size:20px}
  .bp-gr-form input,.bp-gr-form select,.bp-gr-form textarea{font-size:16px}
}
/* Match the portal's green controls and keep both case tabs readable. */
#view-incidents .bp-incident-tabs button{font-size:13px;font-weight:400;min-height:42px;padding:9px 14px;color:#315b49}
#view-incidents .bp-incident-tabs button.on{background:#17533f;color:#fff}
.bp-gr-lanes:has(> :only-child){grid-template-columns:minmax(0,1fr)}
.bp-gr-arrivals:only-child{border-left:0;padding-left:0}
