/* ==========================================================================
   GDCONF labels — the one definition of a label chip.

   These used to live in the data-table stylesheet and again, slightly
   differently, in the calendar one, while the map had no copy at all. That is
   why a label on the map rendered as bare uppercase text: nothing styled it.
   Three copies also meant a colour change had to be made three times, and the
   third was always the one that got forgotten.

   Every colour here is a custom property emitted by gdconf_print_label_vars(),
   so the owner's palette reaches tables, calendar and map alike.
   ========================================================================== */

.gdconf-badge,
.gdconf-dt-tag {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 4px;
	/* Width comes from the Appearance toggle, colour from the label's own
	   darkened background, so switching borders on never needs a second pick. */
	border: var(--gcg-lbl-border, 0) solid var(--gcg-l-tag-bd, transparent);
	font-size: var(--gcg-label-size, 10.5px);
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.6;
	white-space: nowrap;
	background: var(--gcg-l-tag-bg, #6694FF);
	color: var(--gcg-l-tag-fg, #D1E5FA);
}

.gdconf-badge.gdconf-badge--scheduled,
.gdconf-badge.gdconf-badge--open,
.gdconf-badge.gdconf-lbl--scheduled  { background: var(--gcg-l-scheduled-bg, #59B946); color: var(--gcg-l-scheduled-fg, #B7E516); border-color: var(--gcg-l-scheduled-bd, transparent); }
.gdconf-badge.gdconf-badge--finished,
.gdconf-badge.gdconf-lbl--finished   { background: var(--gcg-l-finished-bg, #5784A8);  color: var(--gcg-l-finished-fg, #111111); border-color: var(--gcg-l-finished-bd, transparent); }
.gdconf-badge.gdconf-badge--cancelled,
.gdconf-badge.gdconf-badge--canceled,
.gdconf-badge.gdconf-lbl--cancelled  { background: var(--gcg-l-cancelled-bg, #000000); color: var(--gcg-l-cancelled-fg, #FFFFFF); border-color: var(--gcg-l-cancelled-bd, transparent); }
.gdconf-badge.gdconf-badge--today,
.gdconf-badge.gdconf-badge--closed,
.gdconf-badge.gdconf-lbl--alert      { background: var(--gcg-l-alert-bg, #FF0033);     color: var(--gcg-l-alert-fg, #DFCCFF); border-color: var(--gcg-l-alert-bd, transparent); }
.gdconf-badge.gdconf-badge--delayed,
.gdconf-badge.gdconf-badge--postponed,
.gdconf-badge.gdconf-badge--new-date,
.gdconf-badge.gdconf-badge--new,
.gdconf-badge.gdconf-badge--featured,
.gdconf-badge.gdconf-lbl--update     { background: var(--gcg-l-update-bg, #FF9901);    color: var(--gcg-l-update-fg, #FFFBF5); border-color: var(--gcg-l-update-bd, transparent); }
