/* Build 232 — revisão visual completa das Ofertas no App.
   Escopo exclusivo: Lista de Espera / modal de oferta / acompanhamento / app do profissional. */

/* Cabeçalho da Lista de Espera */
.p2-wait-page .wait-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}

/* Modal do operador: criação da oferta */
.wait-prof-offer-dialog-v3{width:min(980px,calc(100vw - 26px));max-height:92vh;padding:0;border:0;border-radius:24px;overflow:auto;background:#f7f9fa;box-shadow:0 28px 85px rgba(22,43,58,.28)}
.wait-prof-offer-dialog-v3::backdrop,.wait-prof-offer-manager-v3::backdrop{background:rgba(13,31,43,.48);backdrop-filter:blur(2px)}
.wait-prof-offer-dialog-v3 .wait-prof-offer-head{position:sticky;top:0;z-index:5;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 18px;background:#fff;border-bottom:1px solid #e4eaed}
.wait-prof-offer-dialog-v3 .wait-prof-offer-head h2{margin:4px 0 4px;color:#17364c;font-size:25px;letter-spacing:-.025em}
.wait-prof-offer-dialog-v3 .wait-prof-offer-head p{max-width:720px;margin:0;color:#6c808d;font-size:12px;line-height:1.45}
.wait-prof-offer-patient-v3{display:grid;grid-template-columns:1.6fr .55fr .9fr 1.05fr;gap:10px;padding:16px 20px 4px}
.wait-prof-offer-patient-v3>div{min-width:0;padding:12px 14px;border:1px solid #e0e7eb;border-radius:14px;background:#fff}
.wait-prof-offer-patient-v3 small,.wait-prof-offer-turns>span{display:block;margin-bottom:4px;color:#7b8d97;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.wait-prof-offer-patient-v3 strong{display:block;overflow:hidden;color:#284c62;font-size:13px;text-overflow:ellipsis}
.wait-prof-offer-turns>div{display:flex;gap:5px;flex-wrap:wrap}.wait-prof-offer-turns b{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:9px;background:#f7eaf0;color:#7d1642;font-size:10px}.wait-prof-offer-turns b small{margin:0;color:#9a5873;font-size:8px;letter-spacing:0;text-transform:none}.wait-prof-offer-turns.is-any b{background:#eef3f5;color:#506c7b}
.wait-prof-offer-flash{margin:12px 20px 0;padding:11px 14px;border:1px solid #bddfc9;border-radius:12px;background:#eef8f2;color:#276745;font-size:11px;font-weight:850}

.wait-prof-offer-step{margin:14px 20px 0;padding:17px;border:1px solid #dfe7eb;border-radius:18px;background:#fff;box-shadow:0 5px 18px rgba(23,54,76,.035)}
.wait-prof-offer-step-title{display:flex;align-items:center;gap:10px;margin-bottom:13px}.wait-prof-offer-step-title>span{width:29px;height:29px;flex:0 0 29px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#7d1642;color:#fff;font-size:12px;font-weight:950}.wait-prof-offer-step-title strong,.wait-prof-offer-step-title small{display:block}.wait-prof-offer-step-title strong{color:#24495f;font-size:14px}.wait-prof-offer-step-title small{margin-top:2px;color:#7d8f99;font-size:9px}
.wait-prof-offer-specialties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.wait-prof-offer-specialty-card{position:relative;min-height:82px;padding:12px 116px 12px 13px;border:1px solid #dde5e9;border-radius:13px;background:#fbfcfd;text-align:left;cursor:pointer;transition:.14s ease}
.wait-prof-offer-specialty-card:hover{border-color:#b8cbd4;background:#fff}.wait-prof-offer-specialty-card.on{border-color:#8d375d;background:#fff7fa;box-shadow:0 0 0 2px rgba(125,22,66,.08)}
.wait-prof-offer-specialty-name{display:block;color:#254b61;font-size:12px;font-weight:950}.wait-prof-offer-specialty-card small{display:block;margin-top:5px;color:#748893;font-size:9px;line-height:1.35}.wait-prof-offer-specialty-card em{position:absolute;top:12px;right:11px;max-width:100px;padding:5px 7px;border-radius:999px;background:#e9f4ee;color:#27704b;font-style:normal;font-size:8px;font-weight:950;text-align:center}.wait-prof-offer-specialty-card.is-open em{background:#e8f0f5;color:#315f78}.wait-prof-offer-specialty-card.is-empty em{background:#f0ecee;color:#7b6871}.wait-prof-offer-specialty-card.is-reserved em{background:#fff0d8;color:#8a5b18}

.wait-prof-offer-destination-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:12px}.wait-prof-offer-destination-grid>label>span{display:block;margin-bottom:5px;color:#526d7c;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.wait-prof-offer-destination-grid .p2-input{min-height:46px;border-radius:11px;background:#fff}.wait-prof-offer-destination-grid .wait-prof-offer-mode{margin:0;padding:10px 12px;border:1px solid #dfe7eb;border-radius:13px;background:#f8fafb}.wait-prof-offer-destination-grid .wait-prof-offer-mode legend{padding:0 5px;color:#7d1642;font-size:9px;font-weight:950;text-transform:uppercase}.wait-prof-offer-destination-grid .wait-prof-offer-mode label{display:flex;align-items:flex-start;gap:8px;padding:7px 8px;border-radius:9px;cursor:pointer}.wait-prof-offer-destination-grid .wait-prof-offer-mode label:hover{background:#fff}.wait-prof-offer-destination-grid .wait-prof-offer-mode span b,.wait-prof-offer-destination-grid .wait-prof-offer-mode span small{display:block}.wait-prof-offer-destination-grid .wait-prof-offer-mode span b{color:#35566a;font-size:10px}.wait-prof-offer-destination-grid .wait-prof-offer-mode span small{margin-top:2px;color:#7e9099;font-size:8px}.wait-prof-offer-direct{grid-column:1/-1}.wait-prof-offer-send-summary{grid-column:1/-1;padding:11px 13px;border-radius:11px;background:#eef5f7;color:#4e6d7d}.wait-prof-offer-send-summary strong,.wait-prof-offer-send-summary span{display:block}.wait-prof-offer-send-summary strong{font-size:10px}.wait-prof-offer-send-summary span{margin-top:3px;font-size:9px;line-height:1.4}.wait-prof-offer-destination-grid>.p2-error{grid-column:1/-1;margin:0}.wait-prof-offer-send{grid-column:1/-1;min-height:44px;font-weight:900}.wait-prof-offer-existing{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px solid #ccdde6;border-radius:14px;background:#f7fbfd}.wait-prof-offer-existing span,.wait-prof-offer-existing strong,.wait-prof-offer-existing small{display:block}.wait-prof-offer-existing span{color:#32627b;font-size:9px;font-weight:900;text-transform:uppercase}.wait-prof-offer-existing strong{margin-top:3px;color:#254b61;font-size:14px}.wait-prof-offer-existing small{margin-top:3px;color:#708893;font-size:9px}.wait-prof-offer-empty-state{padding:25px 18px;border:1px dashed #ced9de;border-radius:13px;background:#fafcfd;text-align:center;color:#70848f}.wait-prof-offer-empty-state strong,.wait-prof-offer-empty-state span{display:block}.wait-prof-offer-empty-state strong{color:#36576a;font-size:12px}.wait-prof-offer-empty-state span{margin-top:4px;font-size:9px}.wait-prof-offer-empty-state.danger{border-color:#e3c6ce;background:#fff8fa}.wait-prof-offer-empty-state.danger strong{color:#9a3150}
.wait-prof-offer-footer{position:sticky;bottom:0;z-index:4;margin-top:16px;padding:13px 20px;border-top:1px solid #e2e8eb;background:#fff;box-shadow:0 -9px 28px rgba(22,49,67,.06)}

/* Acompanhamento do operador */
.wait-prof-offer-manager-v3{width:min(1180px,calc(100vw - 26px));max-height:92vh;padding:0;border:0;border-radius:24px;overflow:hidden;background:#f5f8f9;box-shadow:0 28px 85px rgba(22,43,58,.28)}
.wait-prof-offer-manager-v3>.wait-dialog-head{padding:20px 22px 16px;background:#fff;border-bottom:1px solid #e1e8eb}.wait-prof-offer-manager-v3>.wait-dialog-head h2{margin:4px 0;color:#17364c;font-size:24px}.wait-prof-offer-manager-v3>.wait-dialog-head p{margin:3px 0 0;color:#768a95;font-size:10px}
.wait-prof-offer-manager-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:13px 16px 2px}.wait-prof-offer-manager-summary>div{padding:11px 13px;border:1px solid #dee7eb;border-radius:12px;background:#fff}.wait-prof-offer-manager-summary span,.wait-prof-offer-manager-summary strong{display:block}.wait-prof-offer-manager-summary span{color:#778c97;font-size:9px;font-weight:850}.wait-prof-offer-manager-summary strong{margin-top:3px;color:#7d1642;font-size:20px}
.wait-prof-offer-manager-v3 .wait-prof-offer-manager-body{max-height:calc(92vh - 180px);padding:12px 16px 18px;overflow:auto}.wait-prof-offer-manager-v3 .wait-prof-offer-card{border-radius:16px}.wait-prof-offer-manager-v3 .wait-prof-offer-card>header p b{color:#7d1642}.wait-prof-offer-manager-v3 .wait-prof-offer-recipient-list{grid-template-columns:repeat(2,minmax(0,1fr))}.wait-prof-offer-manager-v3 .wait-prof-offer-recipient.respondida{box-shadow:inset 3px 0 0 #4f819b}

/* App do profissional: uma oferta por linha, leitura rápida e sem poluição */
.pp-shell-with-nav>.pp-prof-offers{width:min(1120px,calc(100% - 34px));padding:24px 0 44px}
.pp-prof-offers-head-v3{align-items:center;margin-bottom:12px;padding:17px 18px;border:1px solid #dfe7eb;border-radius:17px;background:#fff;box-shadow:0 6px 20px rgba(23,54,76,.045)}.pp-prof-offers-head-v3 h1{margin:3px 0 4px;font-size:27px}.pp-prof-offers-head-v3 p{max-width:720px}
.pp-prof-offers-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}.pp-prof-offers-summary>div{padding:10px 13px;border:1px solid #e0e8eb;border-radius:12px;background:#f9fbfc}.pp-prof-offers-summary span,.pp-prof-offers-summary strong{display:block}.pp-prof-offers-summary span{color:#7a8e98;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.pp-prof-offers-summary strong{margin-top:2px;color:#294f65;font-size:18px}
.pp-prof-offers-list-v3,.pp-prof-offers-list-v3.history{display:flex!important;flex-direction:column;gap:12px;opacity:1}
.pp-offer-card-v3{height:auto;padding:0!important;overflow:hidden;border-radius:18px!important;background:#fff}
.pp-offer-v3-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #e8edef;background:#fbfcfd}.pp-offer-v3-head h2{margin:7px 0 2px;color:#17364c;font-size:18px}.pp-offer-v3-head p{margin:0;color:#718691;font-size:10px}.pp-offer-v3-turn{min-width:150px;padding:9px 11px;border-radius:11px;background:#f8edf2;text-align:right}.pp-offer-v3-turn span,.pp-offer-v3-turn strong{display:block}.pp-offer-v3-turn span{color:#936079;font-size:8px;font-weight:900;text-transform:uppercase}.pp-offer-v3-turn strong{margin-top:3px;color:#7d1642;font-size:12px}
.pp-offer-v3-patient{display:grid;grid-template-columns:1.5fr .45fr .8fr;gap:0;border-bottom:1px solid #edf1f3}.pp-offer-v3-patient>div{min-width:0;padding:14px 17px}.pp-offer-v3-patient>div+div{border-left:1px solid #edf1f3}.pp-offer-v3-patient span,.pp-offer-v3-doc>span{display:block;color:#7d909a;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.pp-offer-v3-patient h3{margin:4px 0 0;color:#244b61;font-size:17px}.pp-offer-v3-patient strong{display:block;margin-top:4px;color:#35576a;font-size:12px}
.pp-offer-v3-doc{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 17px;background:#fff}.pp-offer-v3-doc>strong{color:#718590;font-size:10px}
.pp-offer-response-v3{margin:0!important;padding:15px 17px 17px!important;border:0!important;border-top:1px solid #edf1f3!important;border-radius:0!important;background:#f8fafb!important}.pp-offer-response-v3 .pp-offer-response-head strong{font-size:11px}.pp-offer-response-v3 .pp-offer-agenda-actions{display:flex;justify-content:flex-end}.pp-offer-response-v3 .pp-offer-agenda-actions .pp-btn{width:auto;min-width:215px}.pp-offer-agenda-selected-row.is-occupied{border-color:#e8c58c;background:#fff9ef}
.pp-prof-offers-history-title{margin:25px 2px 10px}

/* Seletor de horários */
.pp-offer-agenda-picker-v3{width:min(920px,calc(100vw - 20px));border-radius:22px}.pp-offer-agenda-picker-v3 .pp-agenda-picker-head{padding:19px 21px}.pp-offer-agenda-picker-v3 .pp-agenda-picker-head h2{font-size:22px}.pp-offer-agenda-picker-v3 .pp-agenda-picker-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.pp-offer-agenda-picker-v3 .pp-agenda-picker-slot{min-height:66px}.pp-offer-agenda-picker-v3 .pp-agenda-picker-slot.is-occupied{box-shadow:inset 3px 0 0 #c68728}

@media(max-width:900px){
  .wait-prof-offer-patient-v3{grid-template-columns:1fr 1fr}.wait-prof-offer-specialties{grid-template-columns:1fr}.wait-prof-offer-manager-v3 .wait-prof-offer-recipient-list{grid-template-columns:1fr}.pp-offer-v3-patient{grid-template-columns:1fr 1fr}.pp-offer-v3-patient>div:first-child{grid-column:1/-1;border-bottom:1px solid #edf1f3}.pp-offer-v3-patient>div:nth-child(2){border-left:0}.pp-offer-agenda-picker-v3 .pp-agenda-picker-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .p2-wait-page .wait-head-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.p2-wait-page .wait-head-actions .p2-btn{width:100%}
  .wait-prof-offer-dialog-v3,.wait-prof-offer-manager-v3{width:calc(100vw - 8px);max-height:96vh;border-radius:15px}.wait-prof-offer-dialog-v3 .wait-prof-offer-head{padding:15px}.wait-prof-offer-dialog-v3 .wait-prof-offer-head h2{font-size:20px}.wait-prof-offer-patient-v3{grid-template-columns:1fr;padding:11px 11px 0}.wait-prof-offer-step{margin:11px 11px 0;padding:12px}.wait-prof-offer-specialty-card{padding-right:100px}.wait-prof-offer-destination-grid{grid-template-columns:1fr}.wait-prof-offer-direct,.wait-prof-offer-send-summary,.wait-prof-offer-destination-grid>.p2-error,.wait-prof-offer-send{grid-column:1}.wait-prof-offer-footer{padding:11px;display:grid;grid-template-columns:1fr 1fr}.wait-prof-offer-footer .p2-btn{width:100%}.wait-prof-offer-manager-summary{grid-template-columns:1fr 1fr;padding:10px}.wait-prof-offer-manager-v3 .wait-prof-offer-manager-body{padding:10px;max-height:calc(96vh - 230px)}
  .pp-shell-with-nav>.pp-prof-offers{width:calc(100% - 12px);padding:12px 0 25px}.pp-prof-offers-head-v3{align-items:flex-start;flex-direction:column;padding:14px}.pp-prof-offers-head-v3 .pp-btn{width:100%}.pp-prof-offers-summary{grid-template-columns:repeat(3,1fr);gap:5px}.pp-prof-offers-summary>div{padding:8px}.pp-prof-offers-summary span{font-size:7px}.pp-prof-offers-summary strong{font-size:16px}.pp-offer-v3-head{flex-direction:column}.pp-offer-v3-turn{width:100%;text-align:left}.pp-offer-v3-patient{grid-template-columns:1fr}.pp-offer-v3-patient>div{border-left:0!important;border-bottom:1px solid #edf1f3}.pp-offer-v3-doc{align-items:flex-start;flex-direction:column}.pp-offer-response-v3 .pp-offer-agenda-actions{flex-direction:column}.pp-offer-response-v3 .pp-offer-agenda-actions .pp-btn{width:100%;min-width:0}.pp-offer-agenda-picker-v3{width:calc(100vw - 8px);max-height:96vh}.pp-offer-agenda-picker-v3 .pp-agenda-picker-slots{grid-template-columns:1fr}
}