/* Desktop-only workspace polish for the invoice and purchase-order editor.
   Mobile and tablet layouts are intentionally untouched. */
@media screen and (min-width: 1280px) {
  #invoice-render {
    min-width: 1140px !important;
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #invoice-render input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
  #invoice-render textarea,
  #invoice-render select {
    color: #0f172a;
    opacity: 1;
    -webkit-text-fill-color: currentColor;
    font-size: 15px;
    line-height: 1.45;
  }

  /* Bill To and Ship To use the shared InputRow component, whose inline/custom
     color can otherwise appear lighter than the rest of the editor. */
  #bill-to-section input,
  #bill-to-section textarea,
  #ship-to-section input:not([type="checkbox"]),
  #ship-to-section textarea {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 700 !important;
    opacity: 1 !important;
  }

  #invoice-render input::placeholder,
  #invoice-render textarea::placeholder {
    color: #64748b;
    opacity: 1;
  }

  #invoice-render input:not([type="color"]):not([type="checkbox"]):not([type="radio"]):focus,
  #invoice-render textarea:focus,
  #invoice-render select:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
  }

  #invoice-render .text-\[9px\] {
    font-size: 10px;
  }

  #invoice-render .text-\[10px\] {
    font-size: 11px;
  }

  #invoice-render .text-\[11px\] {
    font-size: 12px;
  }

  #invoice-render .text-xs {
    font-size: 13px;
    line-height: 1.45;
  }

  /* Match the receipt/dollar tax tooltip to the adjacent information tooltip.
     The original text is collapsed so it cannot create blank or indented space. */
  #summary-section .group.relative:has(svg.lucide-receipt) > div.absolute {
    width: 12rem !important;
    padding: 0.5rem !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
    white-space: normal !important;
  }

  #summary-section .group.relative:has(svg.lucide-receipt) > div.absolute::after {
    content: "Only line items marked as taxable are included in the tax calculation.";
    display: block;
    width: 100%;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    text-indent: 0;
    white-space: normal;
  }

  /* Give long totals a little more breathing room on screen without changing
     the PDF-generation layout logic. */
  #summary-section {
    min-width: 330px !important;
  }

  #final-total-container > span:last-child {
    min-width: 150px !important;
    margin-left: 18px;
    letter-spacing: 0.015em;
    white-space: nowrap;
  }
}
