/* Tablet refinement only: reduce nested chrome and give the lower Interior
   controls a consistent, readable rhythm. Pricing, order, and bindings stay
   owned by the protected estimator and its existing compatibility modules. */
@media (min-width:761px) and (max-width:1366px){
  .pe-live .painting-module-shell.interior .painting-component-column{
    box-shadow:none!important;
  }

  /* Doors and Door Trim use one divided surface instead of cards inside a card. */
  .pe-live .painting-module-shell.interior .painting-door-mix-row>td{
    padding:0!important;
    background:#081722!important;
  }

  .pe-live .painting-module-shell.interior .painting-door-mix-panel{
    gap:0!important;
    background:transparent!important;
  }

  .pe-live .painting-module-shell.interior .painting-door-mix-heading{
    padding:10px 10px 9px!important;
    border-bottom:1px solid #294154!important;
  }

  .pe-live .painting-module-shell.interior .painting-door-mix-grid{
    gap:0!important;
    border:0!important;
    border-radius:0!important;
    background:#07141e!important;
    overflow:hidden!important;
  }

  .pe-live .painting-module-shell.interior .painting-door-option{
    gap:9px!important;
    padding:12px 14px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  .pe-live .painting-module-shell.interior .painting-door-option:nth-child(2){
    border-left:1px solid #294154!important;
  }

  .pe-live .painting-module-shell.interior .painting-door-option>footer{
    margin-top:1px!important;
    border-top-color:#243a4b!important;
  }

  .pe-live .painting-module-shell.interior .painting-door-save-status{
    padding:9px 10px!important;
    border-top:1px solid #294154!important;
    background:#081722!important;
  }

  /* These two matching quantity rows should never look like different boxes. */
  .pe-live .painting-module-shell.interior
  :is(tr[data-room-component-row="thresholds"],tr[data-room-component-row="specialty-items"]){
    height:64px!important;
  }

  .pe-live .painting-module-shell.interior
  :is(tr[data-room-component-row="thresholds"],tr[data-room-component-row="specialty-items"])>td{
    height:64px!important;
    min-height:64px!important;
    vertical-align:middle!important;
  }

  /* Match the visible quantity and price boxes, not only the table-row height. */
  .pe-live .painting-module-shell.interior
  :is(tr[data-room-component-row="thresholds"],tr[data-room-component-row="specialty-items"])
  .paint-qty-stack{
    min-height:56px!important;
    align-content:start!important;
  }

  .pe-live .painting-module-shell.interior
  :is(tr[data-room-component-row="thresholds"],tr[data-room-component-row="specialty-items"])
  :is(.paint-qty-stepper,.paint-price-input){
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    margin:0!important;
  }

  .pe-live .painting-module-shell.interior
  :is(tr[data-room-component-row="thresholds"],tr[data-room-component-row="specialty-items"])
  .paint-price-input{
    display:block!important;
  }

  /* Closet Wall Space belongs to the column, so remove its second outer box. */
  .pe-live .painting-module-shell.interior .painting-component-column-secondary{
    align-self:start!important;
    overflow:visible!important;
  }

  .pe-live .painting-module-shell.interior .painting-component-column-secondary .paint-closet-block{
    margin:0!important;
    border:0!important;
    border-top:1px solid #31566c!important;
    border-radius:0!important;
    background:#071923!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head{
    grid-template-columns:minmax(0,1fr) 88px 70px 34px!important;
    gap:8px!important;
    min-height:64px!important;
    height:auto!important;
    padding:8px 10px!important;
    border-bottom:1px solid #294154!important;
    background:transparent!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-head .paint-item-main strong{
    font-size:12.5px!important;
    line-height:1.2!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows{
    gap:0!important;
    margin:0!important;
    padding:0 10px 8px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    overflow:visible!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div,
  .pe-live .painting-module-shell.interior .paint-closet-subrows>div:has([data-closet-sub-price]){
    grid-template-columns:minmax(0,1fr) 68px 86px 30px!important;
    align-items:center!important;
    gap:8px!important;
    min-height:44px!important;
    height:44px!important;
    padding:6px 2px!important;
    border:0!important;
    border-bottom:1px solid #243a4b!important;
    border-radius:0!important;
    background:transparent!important;
    font-size:11.5px!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows>div:last-child{
    border-bottom:0!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows [data-closet-sub-price]{
    width:68px!important;
    min-height:30px!important;
    height:30px!important;
    padding:3px 5px!important;
    font-size:11.5px!important;
  }

  .pe-live .painting-module-shell.interior .paint-closet-subrows :is(em,b){
    font-size:11px!important;
    white-space:nowrap!important;
  }
}
