/**
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 * We offer the best and most useful modules PrestaShop and modifications
 * for your online store.
 *
 * @author    knowband.com <support@knowband.com>
 * @copyright 2026 Knowband
 * @license   see file: LICENSE.txt
 * @category  PrestaShop Module
 */

/* The ONLY file in this module allowed to contain literal colour values.
   Everything else references var(--kb-pc-*). Enforced by
   tools/kbpc-harness/check-css.mjs.

   Contrast: every pair is verified by tools/kbpc-harness/check-contrast.mjs
   against the ground it actually sits on, including the composited rgba
   tints. Four values differ from the approved screen designs because a
   white-only measurement passed them and a real one did not:
     low     #68747A -> #5D696F  (4.39:1 on the stage)
     accent  #0C7A80 -> #0A7076  (4.47:1 on its own tint)
     warn    #A1660A -> #8D5A08  (4.23:1 on its own tint)
     good    #1F7A4D -> #1C7047  (4.71:1, passing but thin) */

.kb-pc,
.kbpc-admin,
/* Native HelperList / HelperForm output that follows the admin nav has no .kb-pc
   wrapper; it inherits the same tokens through the sibling selector. */
.kb-pc-adm-nav ~ .panel,
.kb-pc-adm-nav ~ form {
    /* --- ground & surface --- */
    --kb-pc-panel: #ffffff;
    --kb-pc-app: #e9edee;
    --kb-pc-soft: #f5f8f8;
    --kb-pc-line: #dde4e6;
    --kb-pc-line-2: #eaf0f1;

    /* --- ink --- */
    --kb-pc-ink: #14191b;
    --kb-pc-mid: #4e595e;
    --kb-pc-low: #5d696f;
    --kb-pc-on-accent: #ffffff;

    /* --- accent --- */
    --kb-pc-accent: #0a7076;
    --kb-pc-accent-hover: #085e63;
    --kb-pc-accent-soft: rgba(10, 112, 118, .10);
    --kb-pc-accent-line: rgba(10, 112, 118, .30);

    /* --- semantic (separate from accent, never decorative) --- */
    --kb-pc-good: #1c7047;
    --kb-pc-good-soft: rgba(28, 112, 71, .09);
    --kb-pc-good-line: rgba(28, 112, 71, .28);
    --kb-pc-warn: #8d5a08;
    --kb-pc-warn-soft: rgba(141, 90, 8, .09);
    --kb-pc-warn-line: rgba(141, 90, 8, .28);
    --kb-pc-danger: #b03227;

    /* --- canvas chrome --- */
    --kb-pc-dot: rgba(20, 25, 27, .10);
    --kb-pc-knob: #ffffff;
    --kb-pc-track: #c9d2d5;
    --kb-pc-scrim: rgba(20, 25, 27, .55);
    /* admin: neutral status dot and pill ground, selection handle */
    --kb-pc-off-dot: #b3bdc1;
    --kb-pc-off-bg: #eef1f2;
    --kb-pc-focus: #0a7076;

    /* --- type --- */
    --kb-pc-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --kb-pc-fs-micro: 9px;
    --kb-pc-fs-label: 11px;
    --kb-pc-fs-body: 12.5px;
    --kb-pc-fs-strong: 13.5px;
    --kb-pc-fs-lg: 17px;
    --kb-pc-fs-xl: 30px;
    --kb-pc-track-caps: .08em;

    /* --- space --- */
    --kb-pc-s1: 4px;
    --kb-pc-s2: 7px;
    --kb-pc-s3: 11px;
    --kb-pc-s4: 15px;
    --kb-pc-s5: 18px;
    --kb-pc-s6: 22px;

    /* --- radius --- */
    --kb-pc-r-sm: 6px;
    --kb-pc-r-md: 8px;
    --kb-pc-r-lg: 11px;
    --kb-pc-r-pill: 999px;

    /* --- elevation --- */
    --kb-pc-sh-1: 0 1px 2px rgba(20, 25, 27, .06);
    --kb-pc-sh-2: 0 8px 22px -8px rgba(20, 25, 27, .40);
    --kb-pc-sh-accent: 0 7px 18px -7px rgba(10, 112, 118, .80);
    --kb-pc-sh-sheet: 0 -10px 26px -18px rgba(20, 25, 27, .50);

    /* --- layout --- */
    --kb-pc-rail-w: 76px;
    --kb-pc-panel-w: 296px;
    --kb-pc-props-w: 272px;
    --kb-pc-top-h: 54px;
    --kb-pc-bottom-h: 66px;
    /* 90px, not 82: a 52px thumb centred leaves 19px below it, and
       .kb-pc-at-lb hangs 18px under the thumb. At 82px the label overflowed
       by 3px and the strip grew a scrollbar. */
    --kb-pc-areas-h: 90px;
    --kb-pc-touch: 44px;
}

/* Admin shell additions (06-10-2026). Additive: nothing above is changed.
   Icon tones are decorative and always paired with a text label; every tone
   is at least 4.5:1 on the white panel. */
.kb-pc,
.kbpc-admin {
    --kb-pc-r-xl: 12px;
    --kb-pc-shell-w: 232px;
    --kb-pc-sh-card: 0 1px 2px rgba(20, 25, 27, .05), 0 4px 14px -6px rgba(20, 25, 27, .10);
    --kb-pc-sh-card-hover: 0 1px 2px rgba(20, 25, 27, .08), 0 10px 24px -10px rgba(20, 25, 27, .22);
    --kb-pc-danger-soft: rgba(176, 50, 39, .09);
    --kb-pc-danger-line: rgba(176, 50, 39, .28);

    --kb-pc-ic-dashboard: #4f4bc4;
    --kb-pc-ic-dashboard-soft: rgba(79, 75, 196, .10);
    --kb-pc-ic-box: #1a64a8;
    --kb-pc-ic-box-soft: rgba(26, 100, 168, .10);
    --kb-pc-ic-templates: #7143b5;
    --kb-pc-ic-templates-soft: rgba(113, 67, 181, .10);
    --kb-pc-ic-bookmark: #b23a72;
    --kb-pc-ic-bookmark-soft: rgba(178, 58, 114, .10);
    --kb-pc-ic-type: #1c7047;
    --kb-pc-ic-type-soft: rgba(28, 112, 71, .10);
    --kb-pc-ic-drop: #b5501a;
    --kb-pc-ic-drop-soft: rgba(181, 80, 26, .10);
    --kb-pc-ic-image: #0b768a;
    --kb-pc-ic-image-soft: rgba(11, 118, 138, .10);
    --kb-pc-ic-sliders: #4e595e;
    --kb-pc-ic-sliders-soft: rgba(78, 89, 94, .10);
    --kb-pc-ic-library: #0a7076;
    --kb-pc-ic-library-soft: rgba(10, 112, 118, .10);
}
