/*
 * df-tokens.css: the DigiFarmer design tokens for the web.
 *
 * Written by hand from the kit's tokens.json (plan section 3.1, item 2-K-03),
 * with the same values as the apps' KitColors, KitSpace, KitText, KitRadius
 * and KitMotion. Change tokens.json first, then this file. From the kit's
 * folder, `dart run tool/check_css_tokens.dart [file]` and
 * test/css_tokens_test.dart fail while the two differ.
 *
 * Connect copies this file to public/css/df-tokens.css and loads it before
 * theme.css (items 2-W-02 and 2-W-08). By itself it only names values: no
 * rule here styles anything.
 *
 * Names: a token's name with dashes, after --df- (primary.strong is
 * --df-primary-strong). Sizes are px, as tokens.json says for the web (the
 * apps' dp and sp). Not here, because only the apps use them: the kit's
 * component colours (color.kit), elevation, the 48 dp app tap target and the
 * app font.
 */

:root {
  /* Colours, by role. A status is always a word and a tone, never colour
     alone; only primary and error are solid fills. */
  --df-primary: #007A3D;              /* buttons, selected states, the header */
  --df-on-primary: #FFFFFF;           /* words on primary, primary-strong, error */
  --df-primary-strong: #00703A;       /* hover, pressed, green words and links */
  --df-primary-container: #DDEFE4;    /* selected chips and tints */
  --df-on-primary-container: #00703A; /* words on primary-container */
  --df-ink: #17231D;                  /* body text */
  --df-ink-soft: #4A5459;             /* secondary text */
  --df-ink-muted: #5E6B64;            /* hints, unselected labels */
  --df-outline: #DCE5E0;              /* dividers, card edges (not for words) */
  --df-outline-strong: #7A867F;       /* input borders */
  --df-surface: #FFFFFF;              /* cards, sheets */
  --df-background: #F5F8F6;           /* the page behind the cards */
  --df-success: #1B5E20;              /* done, paid, approved */
  --df-success-container: #E8F3E9;
  --df-warning: #8A4B00;              /* pending, waiting */
  --df-warning-container: #FFF4E5;
  --df-error: #B3261E;                /* failed, rejected, danger buttons */
  --df-error-container: #FBE9E7;
  --df-info: #0D47A1;                 /* open, sent, disbursed */
  --df-info-container: #E3EDF8;
  --df-neutral: #4A5459;              /* other states, categories */
  --df-neutral-container: #EEF1EF;
  --df-done: #6A1B9A;                 /* completed, closed */
  --df-overdue: #A63A0A;
  --df-offline: #37474F;

  /* Brand: never for words or controls. */
  --df-brand-logo: #009246;           /* the logo only */
  --df-accent-blue: #0878C9;          /* the header gradient only */

  /* Connect's older names, pointed at the roles: one green (owner decision
     D30). theme.css sets its own until item 2-W-02 removes them. */
  --df-green: var(--df-primary);
  --df-green-2: var(--df-primary-strong);

  /* Spacing. */
  --df-space-xs: 4px;
  --df-space-s: 8px;
  --df-space-m: 12px;
  --df-space-l: 16px;
  --df-space-xl: 24px;
  --df-space-xxl: 32px;
  --df-space-xxxl: 48px;

  /* Corners: md is the default (cards, buttons, inputs), lg for dialogs. */
  --df-radius-xs: 4px;
  --df-radius-sm: 8px;
  --df-radius-md: 12px;
  --df-radius-lg: 16px;
  --df-radius-pill: 999px;

  /* How long things move; nothing moves when the browser asks for less
     motion (below). */
  --df-motion-fast: 150ms;
  --df-motion-medium: 250ms;
  --df-motion-slow: 350ms;

  /* Text: the system's own font, and nothing smaller than 12px. */
  --df-font-family: system-ui, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --df-font-size-min: 12px;
  --df-font-size-display: 28px;
  --df-line-height-display: 36px;
  --df-font-size-headline: 22px;
  --df-line-height-headline: 28px;
  --df-font-size-title: 18px;
  --df-line-height-title: 24px;
  --df-font-size-subtitle: 16px;
  --df-line-height-subtitle: 22px;
  --df-font-size-body-large: 16px;
  --df-line-height-body-large: 24px;
  --df-font-size-body: 14px;           /* body text in dense admin lists */
  --df-line-height-body: 20px;
  --df-font-size-small: 12px;          /* captions */
  --df-line-height-small: 16px;

  /* Touch screens and the keyboard: the smallest tap target, and the focus
     ring (2px of --df-primary, 2px away from the control). */
  --df-tap-target: 44px;
  --df-focus-width: 2px;
  --df-focus-offset: 2px;
}

/* The browser asks for less motion: nothing moves. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --df-motion-fast: 0ms;
    --df-motion-medium: 0ms;
    --df-motion-slow: 0ms;
  }
}

/* =========================================================================
 * Connect only (item 2-W-02; findings SA-VIS-5, SA-VIS-6, DS-COL-3,
 * DS-WEB-25). Everything above is the kit's file, unchanged; the kit's check
 * (tool/check_css_tokens.dart) reads only that part. Below, the classes of
 * Bootstrap 3, AdminLTE 2 and daisyUI are drawn with the tokens. This file
 * loads after vendor.css and the compiled Tailwind and before theme.css, so
 * the !important here beats vendor.css's own !important colours.
 *
 * One green (D30): #007A3D (--df-primary) for buttons, selected states and
 * fills; #00703A (--df-primary-strong) for hover and for green words and
 * links; #009246 (--df-brand-logo) only for the logo. Only primary and error
 * are solid fills; a status is a word on its tone's tint.
 * ========================================================================= */

/* daisyUI (tw-dw-*) had its own violet primary and pale status colours.
 * It reads var(--fallback-p, oklch(var(--p))) and the like. The fallbacks are
 * always set, so they decide the colour; --p and the others are the same
 * colours in oklch, for the rules that read only them. Each status colour is
 * its tone (daisyUI also writes it as the words of an outline button, such as
 * the "Actions" button of every table), with white words on it. */
:root,
[data-theme] {
  --fallback-p: #007A3D;   --p: 50.766% 0.1328 152.26;    /* primary */
  --fallback-pc: #FFFFFF;  --pc: 100% 0 0;                /* on-primary */
  --fallback-er: #B3261E;  --er: 50.128% 0.1783 28.70;    /* error */
  --fallback-erc: #FFFFFF; --erc: 100% 0 0;
  --fallback-su: #1B5E20;  --su: 42.539% 0.1159 144.31;   /* success */
  --fallback-suc: #FFFFFF; --suc: 100% 0 0;
  --fallback-wa: #8A4B00;  --wa: 47.901% 0.1124 59.93;    /* warning */
  --fallback-wac: #FFFFFF; --wac: 100% 0 0;
  --fallback-in: #0D47A1;  --in: 42.172% 0.1569 259.91;   /* info */
  --fallback-inc: #FFFFFF; --inc: 100% 0 0;
}
/* A filled success, warning or info button is the word in its tone on the
   tint, with an edge in the tone (only primary and error are solid), and
   solid while hovered or pressed, as the Bootstrap ones below. */
.tw-dw-btn-success:not(.tw-dw-btn-outline) { background-color: var(--df-success-container); border-color: var(--df-success); color: var(--df-success); }
.tw-dw-btn-warning:not(.tw-dw-btn-outline) { background-color: var(--df-warning-container); border-color: var(--df-warning); color: var(--df-warning); }
.tw-dw-btn-info:not(.tw-dw-btn-outline)    { background-color: var(--df-info-container); border-color: var(--df-info); color: var(--df-info); }
.tw-dw-btn-success:not(.tw-dw-btn-outline):hover, .tw-dw-btn-success:not(.tw-dw-btn-outline):focus-visible, .tw-dw-btn-success:not(.tw-dw-btn-outline):active {
  background-color: var(--df-success); color: var(--df-on-primary);
}
.tw-dw-btn-warning:not(.tw-dw-btn-outline):hover, .tw-dw-btn-warning:not(.tw-dw-btn-outline):focus-visible, .tw-dw-btn-warning:not(.tw-dw-btn-outline):active {
  background-color: var(--df-warning); color: var(--df-on-primary);
}
.tw-dw-btn-info:not(.tw-dw-btn-outline):hover, .tw-dw-btn-info:not(.tw-dw-btn-outline):focus-visible, .tw-dw-btn-info:not(.tw-dw-btn-outline):active {
  background-color: var(--df-info); color: var(--df-on-primary);
}

/* Bootstrap buttons. Primary and danger are solid. */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: var(--df-primary) !important;
  border-color: var(--df-primary-strong) !important;
  color: var(--df-on-primary) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--df-primary-strong) !important;
}
.btn-danger,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
  background-color: var(--df-error) !important;
  border-color: var(--df-error) !important;
  color: var(--df-on-primary) !important;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active {
  background-color: #8C1D18 !important; /* error, pressed */
  border-color: #8C1D18 !important;
}

/* Success, warning and info: the word in the tone on its tint, with an edge in
   the tone, and solid while hovered or pressed. Success is no longer the same
   green as the main button. */
.btn-success { background-color: var(--df-success-container) !important; border-color: var(--df-success) !important; color: var(--df-success) !important; }
.btn-warning { background-color: var(--df-warning-container) !important; border-color: var(--df-warning) !important; color: var(--df-warning) !important; }
.btn-info    { background-color: var(--df-info-container) !important; border-color: var(--df-info) !important; color: var(--df-info) !important; }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success {
  background-color: var(--df-success) !important; border-color: var(--df-success) !important; color: var(--df-on-primary) !important;
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning {
  background-color: var(--df-warning) !important; border-color: var(--df-warning) !important; color: var(--df-on-primary) !important;
}
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info {
  background-color: var(--df-info) !important; border-color: var(--df-info) !important; color: var(--df-on-primary) !important;
}
.btn-border-success { border-color: var(--df-success); color: var(--df-success); }
.btn-border-warning { border-color: var(--df-warning); color: var(--df-warning); }
.btn-border-danger  { border-color: var(--df-error); color: var(--df-error); }
.btn-border-info    { border-color: var(--df-info); color: var(--df-info); }

/* Status labels and badges: the word on its tint, never smaller than 12px. */
.label { font-size: max(var(--df-font-size-min), 75%); }
.badge { background-color: var(--df-neutral); } /* a plain count; was #777 (4.48:1) */
.label-primary,
.badge-primary,
.label.bg-green,
.badge.bg-green {
  background-color: var(--df-primary-container) !important;
  color: var(--df-on-primary-container) !important;
  border: 1px solid var(--df-primary-strong);
}
.label-success,
.badge-success {
  background-color: var(--df-success-container) !important;
  color: var(--df-success) !important;
  border: 1px solid var(--df-success);
}
.label-warning,
.badge-warning,
.label.bg-yellow,
.badge.bg-yellow {
  background-color: var(--df-warning-container) !important;
  color: var(--df-warning) !important;
  border: 1px solid var(--df-warning);
}
.label-danger,
.badge-danger,
.label.bg-red,
.badge.bg-red {
  background-color: var(--df-error-container) !important;
  color: var(--df-error) !important;
  border: 1px solid var(--df-error);
}
.label-info,
.badge-info,
.label.bg-aqua,
.badge.bg-aqua {
  background-color: var(--df-info-container) !important;
  color: var(--df-info) !important;
  border: 1px solid var(--df-info);
}

/* Alerts and callouts: the words in the tone on its tint. */
.alert-success,
.callout.callout-success {
  background-color: var(--df-success-container) !important;
  border-color: var(--df-success) !important;
  color: var(--df-success) !important;
}
.alert-warning,
.callout.callout-warning {
  background-color: var(--df-warning-container) !important;
  border-color: var(--df-warning) !important;
  color: var(--df-warning) !important;
}
.alert-danger,
.alert-error,
.callout.callout-danger {
  background-color: var(--df-error-container) !important;
  border-color: var(--df-error) !important;
  color: var(--df-error) !important;
}
.alert-info,
.callout.callout-info {
  background-color: var(--df-info-container) !important;
  border-color: var(--df-info) !important;
  color: var(--df-info) !important;
}
.alert-success a, .alert-warning a, .alert-danger a, .alert-error a, .alert-info a,
.callout.callout-success a, .callout.callout-warning a, .callout.callout-danger a, .callout.callout-info a {
  color: inherit !important;
}

/* AdminLTE colour blocks (boxes, box icons, table head rows, dialog panels,
   progress bars) keep their white words, on fills that pass AA with them. */
.bg-green,
.progress-bar-green {
  background-color: var(--df-primary) !important;
}
.modal-success .modal-body,
.progress-bar-success {
  background-color: var(--df-success) !important;
}
.bg-yellow,
.modal-warning .modal-body,
.progress-bar-warning,
.progress-bar-yellow {
  background-color: var(--df-warning) !important;
}
.bg-red,
.modal-danger .modal-body,
.progress-bar-danger,
.progress-bar-red {
  background-color: var(--df-error) !important;
}
.bg-aqua,
.modal-info .modal-body,
.progress-bar-aqua,
.progress-bar-info {
  background-color: var(--df-info) !important;
}

/* Status words on the page. */
.text-success { color: var(--df-success) !important; }
.text-green   { color: var(--df-primary-strong) !important; }
.text-warning,
.text-yellow  { color: var(--df-warning) !important; }
.text-danger,
.text-red     { color: var(--df-error) !important; }
.text-info,
.text-aqua    { color: var(--df-info) !important; }

/* Green words, links and muted help text. */
.text-primary { color: var(--df-primary-strong) !important; }
a { color: var(--df-primary-strong); }
/* Links darken on hover and focus; a link drawn as a button keeps its button colours. */
a:where(:not(.btn, .tw-dw-btn)):hover,
a:where(:not(.btn, .tw-dw-btn)):focus { color: var(--df-ink); }
.text-muted { color: var(--df-ink-muted) !important; }
.help-block { color: var(--df-ink-muted); }

/* Focus ring for the keyboard: 2px of the green, 2px away. */
:focus-visible {
  outline: var(--df-focus-width) solid var(--df-primary) !important;
  outline-offset: var(--df-focus-offset) !important;
}
/* On the dark header, the sidebar brand and the "signed in as" banner (the theme's
   -600 fill) the ring is white; their white menus and panels keep the green.
   The header partials are frozen (#295), so the ring is scoped on their fill. */
div.no-print:is(.tw-bg-primary-600, .tw-bg-red-600) :focus-visible,
.dfc-brand :focus-visible {
  outline-color: #fff !important;
}
div.no-print:is(.tw-bg-primary-600, .tw-bg-red-600) :is(.tw-bg-white, .dropdown-menu, .tw-dw-dropdown-content, .dfc-help-menu, .dfai-panel, .popover) :focus-visible {
  outline-color: var(--df-primary) !important;
}
/* The assistant panel's green head (--df-primary, 3-W-16) also takes the white ring. */
div.no-print:is(.tw-bg-primary-600, .tw-bg-red-600) .dfai-head :focus-visible,
.dfai-head :focus-visible {
  outline-color: #fff !important;
}
/* A dialog that takes the focus itself shows no ring round the whole box. */
.modal:focus-visible,
.modal-dialog:focus-visible,
.modal-content:focus-visible {
  outline: none !important;
}

/* 2-W-05 (SA-VIS-4): "Skip to content", out of sight until the keyboard
   reaches it. Its target, the page's scrolling area, takes the focus
   without a ring round the whole page. */
.df-skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10000;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid var(--df-primary);
  background: var(--df-surface);
  color: var(--df-primary-strong) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  font-weight: 600;
  text-decoration: none;
}
.df-skip-link:focus {
  top: 8px;
  text-decoration: none;
}
#scrollable-container:focus {
  outline: none !important;
}

/* 2-W-06 (plan section 3.3): the shared Blade components in
   resources/views/components. Spacing, colours and type from the tokens. */
/* 3-W-10: x-back-link (also x-page-header's "back"). */
.df-back-link {
  display: inline-block;
  margin-bottom: var(--df-space-xs);
  color: var(--df-primary-strong);
}
.df-page-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--df-space-s);
}
.df-page-header__row > h1 {
  margin: 0;
  font-size: 24px; /* as AdminLTE draws .content-header > h1 */
}
.df-page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--df-space-s);
}
.df-page-header__subtitle {
  margin: var(--df-space-xs) 0 0;
  max-width: 72ch;
  color: var(--df-ink-muted);
  font-size: var(--df-font-size-body);
}
/* 3-W-15 (SA-VIS-24): x-tech-details, the closed "Technical details" fold for decision codes and server commands. */
.df-tech-details {
  margin: var(--df-space-s) 0;
  max-width: 72ch;
  color: var(--df-ink-muted);
  font-size: var(--df-font-size-small);
}
.df-tech-details > summary {
  display: list-item;
  cursor: pointer;
  color: var(--df-ink-muted);
}
.df-tech-details > summary:hover {
  color: var(--df-ink);
}
.df-tech-details__body {
  margin-top: var(--df-space-xs);
  padding: var(--df-space-s) var(--df-space-m);
  border-left: 3px solid var(--df-outline);
  background: var(--df-surface);
}
.df-tech-details__body > :last-child {
  margin-bottom: 0;
}
.df-field__required {
  margin-left: 2px;
  color: var(--df-error);
}
/* 4-W-01: a group of choices (radios) named like a field label, not like Bootstrap's large legend */
.df-legend {
  margin-bottom: 5px;
  border: 0;
  font-size: inherit;
  font-weight: 700;
}
/* 4-W-01: a field of a small form inside a table cell keeps a visible label */
.df-field--compact {
  margin-bottom: var(--df-space-xs);
}
.df-field--compact > label {
  margin-bottom: 2px;
  font-size: var(--df-font-size-small);
}
.df-field--compact .help-block {
  margin: 2px 0 0;
  font-size: var(--df-font-size-small);
}
.df-money,
.df-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.df-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--df-space-s);
}
.df-row-actions__form {
  display: inline;
  margin: 0;
}
/* 5-W-01 (CS-LAYOUT-2): opposite money decisions in one cell (pay / refuse, approve / reject): each in its own block,
   16px from the next, with a small (btn-sm, not btn-xs) button, so a tap on a tablet does not land on the other one. */
.df-money-decision {
  display: block;
  margin: 0 0 var(--df-space-l);
}
.df-money-decision:last-child {
  margin-bottom: 0;
}
/* 5-W-01 (SA-VIS-9): the shared widget (components.widget) puts its content in a box that grows to the width of what is
   inside. A DataTable that folds (common.js starts DataTables Responsive and marks the table df-dtr) needs a box as wide
   as the page to know which columns to fold, so that box is a plain block there. */
.tw-inline-block.tw-min-w-full:has(table.df-dtr) {
  display: block;
}
/* The "+" that opens a folded row sits on the name cell (df-dtr-control): a tap there, or Enter on it, shows the folded
   columns under the row. */
table.dataTable.df-dtr.collapsed > tbody > tr[role=row] > td.df-dtr-control {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
}
table.dataTable.df-dtr.collapsed > tbody > tr[role=row] > td.df-dtr-control::before {
  position: absolute;
  top: 9px;
  left: 4px;
  display: block;
  box-sizing: content-box;
  width: 14px;
  height: 14px;
  border: 2px solid var(--df-on-primary);
  border-radius: 14px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.45);
  background-color: var(--df-primary);
  color: var(--df-on-primary);
  font-family: 'Courier New', Courier, monospace;
  line-height: 14px;
  text-align: center;
  text-indent: 0;
  content: '+';
}
table.dataTable.df-dtr.collapsed > tbody > tr.parent > td.df-dtr-control::before {
  background-color: var(--df-error);
  content: '-';
}
/* 5-W-02 (SA-VIS-10): small buttons and boxes are at least 32px tall (Bootstrap draws btn-xs about 22px, btn-sm and
   input-sm 30px, daisyUI tw-dw-btn-xs 24px), and 44px (--df-tap-target) on a touch screen. The font stays 12px. */
.btn-xs,
.btn-sm,
.btn-group-xs > .btn,
.btn-group-sm > .btn {
  min-height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.tw-dw-btn-xs {
  height: 32px;
  min-height: 32px;
}
input.input-sm,
select.input-sm:not([multiple]),
.input-group-sm > input.form-control,
.input-group-sm > select.form-control:not([multiple]),
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
  height: 32px;
}
select.input-sm:not([multiple]),
.input-group-sm > select.form-control:not([multiple]) {
  line-height: 32px;
}
@media (pointer: coarse) {
  .btn-xs,
  .btn-sm,
  .btn-group-xs > .btn,
  .btn-group-sm > .btn {
    min-height: var(--df-tap-target);
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .tw-dw-btn-xs,
  .tw-dw-btn-sm,
  .tw-dw-input-sm,
  .tw-dw-select-sm {
    height: var(--df-tap-target);
    min-height: var(--df-tap-target);
  }
  input.input-sm,
  select.input-sm:not([multiple]),
  .input-group-sm > input.form-control,
  .input-group-sm > select.form-control:not([multiple]),
  .input-group-sm > .input-group-addon,
  .input-group-sm > .input-group-btn > .btn {
    height: var(--df-tap-target);
  }
  select.input-sm:not([multiple]),
  .input-group-sm > select.form-control:not([multiple]) {
    line-height: var(--df-tap-target);
  }
  .df-help-toggle {
    min-width: var(--df-tap-target);
    min-height: var(--df-tap-target);
  }
}
/* Row actions that DataTables controllers write as strings ("btn btn-xs ...") sit straight in the cell: 8px apart, also
   when they wrap onto a second line, so a tap does not land on the next one (x-row-actions has the same gap). */
td > :is(.btn-xs, .btn-sm, .tw-dw-btn-xs, .tw-dw-btn-sm) {
  margin-top: var(--df-space-xs);
  margin-bottom: var(--df-space-xs);
}
td > :is(.btn-xs, .btn-sm, .tw-dw-btn-xs, .tw-dw-btn-sm):not(:last-child) {
  margin-right: var(--df-space-s);
}
/* 5-W-02: help that used to open only on mouse hover. @show_tooltip draws a button that opens its note on hover, on a
   tap and on keyboard focus (public/js/app.js); Superadmin pages write the note under the field instead (help-block). */
.df-help-toggle {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  min-width: 24px; /* WCAG 2.5.8: at least 24px to tap */
  min-height: 24px;
  font-size: 16px; /* as .hover-q, which it also has */
  line-height: 1;
  cursor: help;
}
.df-subnav {
  margin-bottom: var(--df-space-l);
}
.df-status-chip {
  display: inline-block;
  white-space: nowrap;
}

/* 6-W-01 (SA-VIS-16, DS-WEB-19): the inline styles the Superadmin pages repeat most, as classes, so a page needs no
   style="" for them (scripts/ratchet/superadmin-ratchet.js counts what is left). Each one does what the style="" it
   replaced did, so it wins as that did (!important). A form hidden with the hidden attribute still hides. */
.df-inline { display: inline !important; }         /* was style="display:inline": a form whose button sits in a line */
.df-m-0 { margin: 0 !important; }                  /* was style="margin:0" */
.df-mt-0 { margin-top: 0 !important; }             /* was style="margin-top:0" */
.df-mb-0 { margin-bottom: 0 !important; }          /* was style="margin-bottom:0" */
.df-mt-field { margin-top: 25px !important; }      /* was style="margin-top:25px": a box or button level with the
                                                      inputs beside it, which have a label above them */
.df-pre-line { white-space: pre-line !important; } /* was style="white-space:pre-line": typed text keeps its lines */
.df-inline[hidden] { display: none !important; }

/* 6-W-03 (SA-VIS-25): small-screen polish.
   A dashboard figure's label wraps onto a second line instead of being cut ("New registr…" on a phone); a longer one
   ends in an ellipsis after two lines. */
.df-kpi-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
/* A map is at most 60% of the screen high (600px on a large one), so the page can still be scrolled past it. On a
   touch screen it moves only after a tap on .df-map-shield (the page's script), so a finger scrolling the page is not
   caught by the map. */
.df-map {
  position: relative;
  width: 100%;
  height: min(60vh, 600px);
  min-height: 280px;
  border-radius: 8px;
}
.df-map-shield {
  position: absolute;
  inset: 0;
  z-index: 1000; /* over Leaflet's panes and controls */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.12);
  color: var(--df-ink);
  font: inherit;
  cursor: pointer;
}
.df-map-shield span {
  padding: var(--df-space-xs) var(--df-space-m);
  border-radius: 999px;
  background: var(--df-surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Less motion, when the browser asks for it: nothing slides or spins. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 4-W-04 (CS-STATE-2): the password re-check ran out (components/recheck-timer, common.js) */
.df-recheck[hidden],
form[data-df-recheck][hidden] {
    display: none;
}
.df-recheck-note {
    margin: 0 0 var(--df-space-s);
    color: var(--df-ink-muted);
}

/* 6-W-05 (DS-BRAND-24): Superadmin > Farmer app branding draws each waiting colour as a small button with white
   writing. Only the button's background (the business's own colour) stays inline on the page. */
.df-brand-colours { margin: 4px 0; }
.df-brand-colour { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.df-brand-colour-chip {
  display: inline-block;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--df-on-primary);
  font-weight: 600;
  text-align: center;
}
.df-brand-reject { display: flex; gap: 6px; flex-wrap: wrap; }
