/*
 * Customer Tags (TA00182) — on-screen only.
 *
 * Tags are an internal aid for staff working in the ERP. They must never reach a
 * hard copy: no printed page, no print-to-PDF, no printed modal.
 *
 * This lives in a linked stylesheet on purpose. The print-a-modal button used
 * across the app (printThis) copies <link> stylesheets into its print iframe but
 * NOT inline <style> blocks (its defaults are importCSS:true, importStyle:false),
 * so a rule written inline in the layout would silently miss those printouts.
 */
/* The label is painted from data-tag, never stored as a text node — see
 * App\ContactTag::badge(). Anything that exports by stripping markup and keeping
 * the text (DataTables CSV/Excel/PDF/Copy/Print, clipboard, printThis) therefore
 * carries nothing at all. */
.customer-tag-badge::after {
    content: attr(data-tag);
}

/* "+N" overflow chip. Where a customer's tags share a cell with other data — the
 * Pay Due grid's Customer column is the first such place — showing every badge
 * makes one row as wide as its tag list and pushes the badges over the neighbouring
 * column. The caller renders the first few badges and collapses the rest into this
 * chip, whose title names them. Deliberately neutral-coloured: it is a count, not a
 * tag, and must not read as one more label.
 *
 * Styled here rather than in the report's own <style> block so it inherits the
 * print rule below — a chip reading "+5" on a printed page, with the tags it counts
 * hidden, would be worse than either showing or hiding both. */
.customer-tag-more {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
    vertical-align: middle;
    background: #f1f5f9;
    color: #52525b;
    border: 1px solid #e4e4e7;
    cursor: default;
}
/* Painted from data-more, never stored as a text node — same trick as the badge
 * label above, and for the same reason. The count used to be real text, which is
 * why it was the one part of the tag cell that survived an export: a printed Pay
 * Due sheet showed "CHEAP SMOKE AND VAPE+3". The @media print rule below hides
 * the chip on paper, but DataTables' Print/Excel/PDF buttons rebuild the table
 * from stripped markup and never consult a print stylesheet at all. */
.customer-tag-more::after {
    content: attr(data-more);
}

@media print {
    .customer-tag-badge,
    .customer-tag-more {
        display: none !important;
    }
}
