/* The saved costing reader uses bounded pages so phone screenshots stay readable. */
.saved-review-modal .modal-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:12px 18px}
.saved-review-modal .modal{width:760px;max-height:min(760px,96dvh);height:min(760px,96dvh)}
.saved-review-modal.modal{width:760px;max-height:min(760px,96dvh);height:min(760px,96dvh)}
.saved-review-modal .modal-head{padding:11px 18px;flex:none}.saved-review-modal .modal-head h2{font-size:16px;line-height:1.3}
.saved-review-modal .modal-foot{padding:9px 14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:none}.saved-review-modal .modal-foot>button{min-width:0;min-height:42px;font-size:11px;padding:8px 7px;white-space:normal;line-height:1.2}
.saved-review-page{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;gap:8px;font-size:13px;color:var(--ink,#24382c)}
.saved-review-id{font-size:11px;color:var(--muted,#697269);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}
.saved-review-jump{display:flex;gap:8px;align-items:center;flex:none;min-width:0}.saved-review-jump>label{font-size:12px;font-weight:650}.saved-review-jump>select{flex:1;min-width:0;min-height:40px;padding:6px 9px;font-size:13px}.saved-review-jump>span{font-size:11px;color:var(--muted,#697269);flex:none;font-variant-numeric:tabular-nums;min-width:38px;text-align:right}
.saved-review-content{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;justify-content:flex-start;gap:12px}.saved-review-content.is-overview{gap:0}
.saved-review-page-title{font-size:15px;line-height:1.4;margin:0;overflow-wrap:anywhere;max-height:42px}
.saved-review-rows{margin:0;display:grid;gap:0;min-width:0}.saved-review-rows>div{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);gap:14px;border-bottom:1px solid var(--line,#e0e6dd);padding:12px 0;min-width:0}.saved-review-rows dt{font-size:12px;line-height:1.45;color:var(--muted,#697269);overflow-wrap:anywhere}.saved-review-rows dd{margin:0;font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap;min-width:0}.saved-review-rows .is-total dd{color:var(--green,#244b35)}
.saved-review-pagination{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-top:auto;flex:none;border-top:1px solid var(--line,#e0e6dd);padding-top:8px}.saved-review-pagination>button{min-height:42px;min-width:75px;font-size:12px}.saved-review-pagination>span{font-size:10px;line-height:1.25;color:var(--muted,#697269);text-align:center;min-width:0}
.saved-review-overview{display:flex;flex-direction:column;gap:10px;min-height:0;min-width:0}.saved-review-client{font-size:18px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-review-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding-bottom:9px;border-bottom:1px solid var(--line,#e0e6dd)}.saved-review-facts>div{min-width:0}.saved-review-facts span{font-size:10px;color:var(--muted,#697269);display:block;line-height:1.3}.saved-review-facts strong{font-size:12px;line-height:1.35;display:block;overflow-wrap:anywhere;min-width:0}
.saved-review-costs{margin:0;display:grid;gap:0}.saved-review-costs>div{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:26px;line-height:1.3}.saved-review-costs dt{font-size:12px;color:var(--muted,#697269)}.saved-review-costs dd{margin:0;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.saved-review-costs>.is-total{border-top:1px solid var(--line,#e0e6dd);padding-top:5px;margin-top:3px;min-height:32px}.saved-review-costs>.is-total dt{font-weight:700;color:var(--ink,#24382c)}
.saved-review-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}.saved-review-band{display:flex;flex-direction:column;gap:4px;border:1px solid #bed5c2;border-radius:9px;padding:9px 10px;background:#f0f8f2;min-width:0}.saved-review-band>span{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:650;line-height:1.2}.saved-review-band i{width:7px;height:7px;border-radius:50%;display:inline-block;background:#27874a;flex:none}.saved-review-band>strong{font-size:18px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.saved-review-band>small{font-size:10px;line-height:1.3;overflow-wrap:anywhere}.saved-review-band .saved-review-incentive{font-weight:650}.saved-review-band.band-blue{background:#eff5ff;border-color:#bdd0ea}.saved-review-band.band-blue i{background:#3e79c0}.saved-review-band.band-red{background:#fff3f2;border-color:#e3c0bb}.saved-review-band.band-red i{background:#c05343}
.saved-review-selling{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:10px 13px;border:1px solid #bad1c0;border-radius:9px;background:#eaf3e9;min-width:0}.saved-review-selling>span{font-size:12px;font-weight:650;line-height:1.3;min-width:0}.saved-review-selling small{display:block;font-size:11px;font-weight:400;margin-top:3px}.saved-review-selling>strong{font-size:22px;line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;text-align:right}
.saved-review-caption{margin:0;font-size:10px;color:var(--muted,#697269);line-height:1.4;overflow-wrap:anywhere}
@media(max-width:740px){
  .modal-backdrop.saved-review-modal{padding:0}.saved-review-modal .modal,.saved-review-modal.modal{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
  .saved-review-modal .modal-head{padding:9px 12px}.saved-review-modal .modal-head h2{font-size:14px}.saved-review-modal .modal-head button{min-height:36px;min-width:36px}
  .saved-review-modal .modal-body{padding:7px 12px}.saved-review-modal .modal-foot{padding:7px 10px;padding-bottom:max(7px,env(safe-area-inset-bottom));grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.saved-review-modal .modal-foot>button{font-size:10px;min-height:42px;padding:5px 4px}
  .saved-review-page{gap:7px;font-size:12px}.saved-review-id{font-size:10px}.saved-review-jump{gap:6px}.saved-review-jump>select{min-height:38px;font-size:12px}.saved-review-jump>label{font-size:11px}
  .saved-review-content{gap:8px}.saved-review-page-title{font-size:13px;line-height:1.3;max-height:34px}
  .saved-review-rows>div{padding:9px 0;gap:9px;grid-template-columns:minmax(0,.9fr) minmax(0,1.45fr)}.saved-review-rows dt{font-size:11px;line-height:1.4}.saved-review-rows dd{font-size:12px;line-height:1.4}
  .saved-review-overview{gap:8px}.saved-review-client{font-size:16px}.saved-review-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;padding-bottom:7px}.saved-review-facts span{font-size:10px}.saved-review-facts strong{font-size:11px;line-height:1.3}
  .saved-review-costs>div{min-height:23px}.saved-review-costs dt{font-size:11px}.saved-review-costs dd{font-size:12px}.saved-review-costs>.is-total{min-height:28px;padding-top:4px;margin-top:2px}
  .saved-review-bands{gap:5px}.saved-review-band{padding:7px 6px;gap:3px;border-radius:8px}.saved-review-band>span{font-size:11px}.saved-review-band>strong{font-size:15px;line-height:1.2}.saved-review-band>small{font-size:10px;line-height:1.2}.saved-review-band i{width:6px;height:6px}
  .saved-review-selling{padding:8px 10px}.saved-review-selling>span{font-size:11px}.saved-review-selling small{font-size:10px;margin-top:2px}.saved-review-selling>strong{font-size:20px}
  .saved-review-pagination{gap:6px;padding-top:6px}.saved-review-pagination>button{min-height:40px;min-width:70px;font-size:11px}.saved-review-pagination>span{font-size:10px}
}
@media(max-width:360px){.saved-review-modal .modal-body{padding:6px 10px}.saved-review-overview{gap:7px}.saved-review-band>strong{font-size:13px}.saved-review-selling>strong{font-size:18px}.saved-review-facts strong{font-size:11px}.saved-review-band>small{font-size:9px}}
@media(max-height:620px){.saved-review-modal .modal-head{padding:6px 10px}.saved-review-modal .modal-body{padding-top:5px;padding-bottom:5px}.saved-review-page{gap:5px}.saved-review-overview{gap:5px}.saved-review-facts{gap:5px 9px}.saved-review-costs>div{min-height:21px}.saved-review-band{padding-top:5px;padding-bottom:5px}.saved-review-selling{padding-top:6px;padding-bottom:6px}.saved-review-caption{font-size:9px}.saved-review-rows>div{padding:7px 0}}
