/* =========================================================================
   Shared state palette.

   One place for the "what condition is this in" colours, so a table cell, a
   card, a popup header and a status badge all say the same thing the same way.
   Every state carries four tokens:

     --state-<name>          accent / strong colour (dots, left borders)
     --state-<name>-tint     background
     --state-<name>-border   border
     --state-<name>-ink      text on the tint

   Values come from customer_product_planning/table.css, which was the only
   place these existed. Names follow the classes already used there.

   `error` and `healthy` are aliases, so both the layout-definition vocabulary
   (nominal / notice / warning / error) and the health vocabulary
   (healthy / running / notice / warning / critical / unknown) resolve.

   2026-08-19	Bram	T9897.	Promoted out of table.css; see the note in T9741's
                            system_monitor_state_colors.css.
   ========================================================================= */

:root {
	/* nominal / healthy -- green */
	--state-nominal:          #4ea62e;
	--state-nominal-tint:     #d8f0cf;
	--state-nominal-border:   #4ea62e;
	--state-nominal-ink:      #1a4010;

	/* notice -- yellow */
	--state-notice:           #999900;
	--state-notice-tint:      #fdfabf;
	--state-notice-border:    #999900;
	--state-notice-ink:       #4d4d00;

	/* warning -- orange */
	--state-warning:          #efa279;
	--state-warning-tint:     #fde4bf;
	--state-warning-border:   #efa279;
	--state-warning-ink:      #4d2600;

	/* critical / error -- red */
	--state-critical:         #b30000;
	--state-critical-tint:    #f9e2d5;
	--state-critical-border:  #b30000;
	--state-critical-ink:     #4d0000;

	/* projected / running -- blue */
	--state-projected:        #006699;
	--state-projected-tint:   #c9ecf9;
	--state-projected-border: #006699;
	--state-projected-ink:    #002233;

	/* forecast -- purple */
	--state-forecast:         #660099;
	--state-forecast-tint:    #cc66ff;
	--state-forecast-border:  #660099;
	--state-forecast-ink:     #33004d;

	/* forecast, trending up -- lighter blue */
	--state-forecast-up:        #287aa5;
	--state-forecast-up-tint:   #2ba1de;
	--state-forecast-up-border: #287aa5;
	--state-forecast-up-ink:    #4d5454;

	/* definitive -- teal */
	--state-definitive:         #009784;
	--state-definitive-tint:    #00f1d2;
	--state-definitive-border:  #009784;
	--state-definitive-ink:     #00433a;

	/* unknown / not yet known -- grey */
	--state-unknown:          #6b7280;
	--state-unknown-tint:     #f3f4f6;
	--state-unknown-border:   #d8dbe0;
	--state-unknown-ink:      #3f4650;

	/* neutral fills, no semantic meaning */
	--state-neutral-strong:      #535353;
	--state-neutral-strong-ink:  #cccccc;
	--state-neutral:             #a8a8a8;

	/* Aliases, so both vocabularies resolve against the same colours. */
	--state-error:            var(--state-critical);
	--state-error-tint:       var(--state-critical-tint);
	--state-error-border:     var(--state-critical-border);
	--state-error-ink:        var(--state-critical-ink);

	--state-healthy:          var(--state-nominal);
	--state-healthy-tint:     var(--state-nominal-tint);
	--state-healthy-border:   var(--state-nominal-border);
	--state-healthy-ink:      var(--state-nominal-ink);

	--state-running:          var(--state-projected);
	--state-running-tint:     var(--state-projected-tint);
	--state-running-border:   var(--state-projected-border);
	--state-running-ink:      var(--state-projected-ink);

	/* Generic surface tokens the shared card and popup fall back on. */
	--ui-foreground:          #1a1a1a;
	--ui-muted:               #5a5a5a;
	--ui-border:              #d6d6d6;
	--ui-surface:             #ffffff;
	--ui-radius:              8px;
}
