/* WEB v0.9.75 FIX75 - WEB KUNDE detail polish
   - customer editor top close button handled in JS
   - tenant tours hero spacing
   - HostingFee plan pending action readability
   - customer invoice table single-line desktop layout + recipient email
*/

/* Keep the usage chip fully visible above the tour filter toolbar. */
.tenant-tours-page > .tenant-tours-hero{
  margin-bottom:24px!important;
  overflow:visible!important;
}
.tenant-tours-page > .tenant-tours-hero .tenant-limit-chip{
  position:relative;
  z-index:1;
  margin-bottom:2px;
}

/* HostingFee plan: give the action column enough room and never crop a pending choice. */
@media(min-width:901px){
  .modal.tour-editor-hosting-wide .hf40-plan-table th:nth-child(1),
  .modal.tour-editor-hosting-wide .hf40-plan-table td:nth-child(1){width:23%!important}
  .modal.tour-editor-hosting-wide .hf40-plan-table th:nth-child(2),
  .modal.tour-editor-hosting-wide .hf40-plan-table td:nth-child(2){width:13%!important}
  .modal.tour-editor-hosting-wide .hf40-plan-table th:nth-child(3),
  .modal.tour-editor-hosting-wide .hf40-plan-table td:nth-child(3){width:16%!important}
  .modal.tour-editor-hosting-wide .hf40-plan-table th:nth-child(4),
  .modal.tour-editor-hosting-wide .hf40-plan-table td:nth-child(4){width:16%!important}
  .modal.tour-editor-hosting-wide .hf40-plan-table th:nth-child(5),
  .modal.tour-editor-hosting-wide .hf40-plan-table td:nth-child(5){width:32%!important}
  .modal.tour-editor-hosting-wide .hf70-pending-choice{
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.15;
    text-align:center;
    justify-content:center;
  }
}

/* Customer invoices: fit the full table into the desktop content width without
   horizontal/vertical table scrollbars and without wrapped headings/cells. */
@media(min-width:1181px){
  .hf25-customer-invoices .subscription-table-wrap{
    overflow-x:hidden!important;
    overflow-y:visible!important;
  }
  .hf25-customer-invoice-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    font-size:10px!important;
  }
  .hf25-customer-invoice-table th,
  .hf25-customer-invoice-table td{
    padding:8px 5px!important;
    min-width:0!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle!important;
  }
  .hf25-customer-invoice-table th:nth-child(1),.hf25-customer-invoice-table td:nth-child(1){width:8.5%!important}
  .hf25-customer-invoice-table th:nth-child(2),.hf25-customer-invoice-table td:nth-child(2){width:10%!important}
  .hf25-customer-invoice-table th:nth-child(3),.hf25-customer-invoice-table td:nth-child(3){width:8%!important}
  .hf25-customer-invoice-table th:nth-child(4),.hf25-customer-invoice-table td:nth-child(4){width:6%!important}
  .hf25-customer-invoice-table th:nth-child(5),.hf25-customer-invoice-table td:nth-child(5){width:6%!important}
  .hf25-customer-invoice-table th:nth-child(6),.hf25-customer-invoice-table td:nth-child(6){width:6%!important}
  .hf25-customer-invoice-table th:nth-child(7),.hf25-customer-invoice-table td:nth-child(7){width:6%!important}
  .hf25-customer-invoice-table th:nth-child(8),.hf25-customer-invoice-table td:nth-child(8){width:6%!important}
  .hf25-customer-invoice-table th:nth-child(9),.hf25-customer-invoice-table td:nth-child(9){width:6%!important}
  .hf25-customer-invoice-table th:nth-child(10),.hf25-customer-invoice-table td:nth-child(10){width:7%!important}
  .hf25-customer-invoice-table th:nth-child(11),.hf25-customer-invoice-table td:nth-child(11){width:10%!important}
  .hf25-customer-invoice-table th:nth-child(12),.hf25-customer-invoice-table td:nth-child(12){width:14.5%!important}
  .hf25-customer-invoice-table th:nth-child(13),.hf25-customer-invoice-table td:nth-child(13){width:6%!important}

  .hf25-customer-invoice-table .hf48-action-button,
  .hf25-customer-invoice-table .hf42-mail-button{
    width:auto!important;
    max-width:100%!important;
    min-height:30px!important;
    padding:6px 7px!important;
    font-size:10px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .hf25-customer-invoice-table .hf61-mail-line{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    flex-wrap:nowrap!important;
    min-width:0;
  }
  .hf25-customer-invoice-table .delivery-status,
  .hf25-customer-invoice-table .invoice-status,
  .hf25-customer-invoice-table .hf48-money-cell,
  .hf25-customer-invoice-table .hf75-interval-cell{
    white-space:nowrap!important;
  }
  .hf25-customer-invoice-table .hf25-url,
  .hf25-customer-invoice-table td:nth-child(2) strong,
  .hf25-customer-invoice-table td:nth-child(3) strong{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap!important;
  }
  .hf75-mail-address{
    display:block;
    max-width:100%;
    margin-bottom:5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#60778a;
    font-size:9.5px;
  }
}
