/* Work areas remain compact, distinct and readable inside or outside visits. */
@media screen {
 #estimateView #lineItems{padding:14px;background:#e8eaed}
 #estimateView #lineItems .estimate-visit{margin-bottom:16px}
 #estimateView #lineItems .estimate-visit:last-child{margin-bottom:0}
 #estimateView #lineItems .visit-body{background:#e8eaed;padding:12px}
 #estimateView #lineItems .work-area{margin:0 0 16px;border:1px solid #b9c1cb;border-radius:7px;background:#fff;box-shadow:none;overflow:hidden}
 #estimateView #lineItems>.work-area:last-child{margin-bottom:0}
 #estimateView #lineItems .work-area>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;list-style:none;margin:0;padding:12px 14px;background:#d7dce2!important;border:0!important;border-left:4px solid #ee791e!important;border-bottom:1px solid #b9c1cb!important;border-radius:0;color:#252b32!important}
 #estimateView #lineItems .work-area:not([open])>summary{border-bottom:0!important}
 #estimateView #lineItems .work-area>summary::-webkit-details-marker{display:none}
 #estimateView #lineItems .work-area>summary::before{content:'›';display:block;font-size:1.25rem;color:#4e5966;transform:rotate(0);transition:transform .15s}
 #estimateView #lineItems .work-area[open]>summary::before{transform:rotate(90deg)}
 #estimateView #lineItems .work-area>summary .work-area-title{display:flex;align-items:baseline;flex:1 1 200px;flex-wrap:wrap;gap:8px;margin:0;min-width:0}
 #estimateView #lineItems .work-area-title small{font-size:.75rem;letter-spacing:.05em;color:#535e6b;white-space:nowrap}
 #estimateView #lineItems .work-area-title strong{font-size:1.0625rem;line-height:1.35;font-weight:700;color:#242a32;margin:0;overflow-wrap:anywhere}
 #estimateView #lineItems .work-area>summary .area-quantity{font-size:.9375rem;line-height:1.4;font-weight:650;margin:0;color:#252b32;font-variant-numeric:tabular-nums}
 #estimateView #lineItems .work-area>summary .area-visit-name{margin:0;padding:3px 8px;border:1px solid #acb6c2;border-radius:4px;background:#edf0f3;color:#37424f;font-size:.8125rem;line-height:1.4;overflow-wrap:anywhere}
 #estimateView #lineItems .work-area>summary [data-area-total]{order:3;flex:0 1 auto;margin:0;font-size:.8125rem;line-height:1.4;color:#4c5867;text-align:right;font-variant-numeric:tabular-nums}
 #estimateView #lineItems .work-area>summary .area-visit-days{order:4;margin:0;padding:0;border:0;background:transparent;color:#4c5867;font-size:.8125rem;white-space:normal;flex-wrap:wrap}
 #estimateView #lineItems .work-area>summary .area-visit-days strong{color:#37424f;font-size:.8125rem}
 #estimateView #lineItems .work-area-controls{padding:10px 14px;gap:8px 14px;background:#f6f7f9;align-items:end}
 #estimateView #lineItems .work-area-controls label{font-size:.8125rem;gap:4px;min-width:0}
 #estimateView #lineItems .work-area-controls [data-remove-group]{margin-left:auto}
 #estimateView #lineItems .work-area .group-help{font-size:.8125rem;color:#5d6672;margin:6px 14px 9px}
 #estimateView #lineItems .work-area .estimate-table tbody tr:nth-child(odd)>td{background:#fff}
 #estimateView #lineItems .work-area .estimate-table tbody tr:nth-child(even)>td{background:#f2f4f7}
 #estimateView #lineItems .work-area-layer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;background:#fff;border-top:1px solid #dce1e7}
 #estimateView #lineItems [data-area-layer-count]{margin-left:auto;color:#596574;font-size:.8125rem}
 #estimateView #lineItems .work-area-subtotal{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:10px 22px;padding:10px 14px;border-top:1px solid #d2d9e1;background:#edf0f4;color:#53606e;font-size:.8125rem}
 #estimateView #lineItems .work-area-subtotal>span{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:6px}
 #estimateView #lineItems .work-area-subtotal>[hidden]{display:none}
 #estimateView #lineItems .work-area-subtotal strong{font-size:.9375rem;font-weight:650;color:#252c35;font-variant-numeric:tabular-nums}
 #estimateView #lineItems .area-selling-value strong{border-bottom:2px solid #ee791e}
 @media(max-width:650px){
  #estimateView #lineItems{padding:8px}
  #estimateView #lineItems .visit-body{padding:8px}
  #estimateView #lineItems .work-area>summary{padding:10px;gap:6px 10px}
  #estimateView #lineItems .work-area>summary .work-area-title{flex-basis:calc(100% - 28px)}
  #estimateView #lineItems .work-area>summary [data-area-total]{text-align:left}
  #estimateView #lineItems .work-area-controls [data-remove-group]{margin-left:0}
  #estimateView #lineItems .work-area-subtotal{justify-content:flex-start;gap:8px 16px}
 }
 @media(prefers-reduced-motion:reduce){#estimateView #lineItems .work-area>summary::before{transition:none}}
}
