/* LIVRAA UI Kit (Figma "LIVRAA · Design system"). Loaded after the legacy theme styles.
   The --theme-* properties below are the kit defaults (config/brand.php). layouts.brand
   prints the values saved in Configurations → Theme right after this file, so a colour or
   typeface changed in admin wins without editing a stylesheet. */
@font-face{font-family:Montserrat;src:url('../fonts/montserrat/Montserrat-Variable.woff2') format('woff2'),url('../fonts/montserrat/Montserrat-Variable.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url('../fonts/inter/Inter-Variable.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Noto Sans Arabic';src:url('../fonts/noto_sans_arabic/NotoSansArabic-Variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{
    --theme-primary:#22b45a;--theme-primary-rgb:34,180,90;
    --theme-on-primary:#ffffff;--theme-on-primary-rgb:255,255,255;
    --theme-primary-dark:#0f7a3a;--theme-primary-dark-rgb:15,122,58;
    --theme-primary-container:#e3f6e6;--theme-primary-container-rgb:227,246,230;
    --theme-on-primary-container:#0f7a3a;--theme-on-primary-container-rgb:15,122,58;
    --theme-secondary:#d4f36a;--theme-secondary-rgb:212,243,106;
    --theme-on-secondary:#101814;--theme-on-secondary-rgb:16,24,20;
    --theme-secondary-container:#f1fbcf;--theme-secondary-container-rgb:241,251,207;
    --theme-on-secondary-container:#101814;--theme-on-secondary-container-rgb:16,24,20;
    --theme-text:#101814;--theme-text-rgb:16,24,20;
    --theme-text-secondary:#5c6862;--theme-text-secondary-rgb:92,104,98;
    --theme-text-muted:#9aa59f;--theme-text-muted-rgb:154,165,159;
    --theme-line:#e7ede8;--theme-line-rgb:231,237,232;
    --theme-background:#f4f7f2;--theme-background-rgb:244,247,242;
    --theme-surface:#ffffff;--theme-surface-rgb:255,255,255;
    --theme-purple:#8d6bf5;--theme-purple-rgb:141,107,245;
    --theme-purple-soft:#efeafe;--theme-purple-soft-rgb:239,234,254;
    --theme-yellow:#ffcf33;--theme-yellow-rgb:255,207,51;
    --theme-yellow-soft:#fff5d1;--theme-yellow-soft-rgb:255,245,209;
    --theme-blue:#4fb2f5;--theme-blue-rgb:79,178,245;
    --theme-blue-soft:#e2f2fe;--theme-blue-soft-rgb:226,242,254;
    --theme-coral:#ff7360;--theme-coral-rgb:255,115,96;
    --theme-coral-soft:#ffe8e3;--theme-coral-soft-rgb:255,232,227;
    --theme-orange:#ff9b3d;--theme-orange-rgb:255,155,61;
    --theme-orange-soft:#ffefdc;--theme-orange-soft-rgb:255,239,220;
    --theme-font:'Montserrat';
    --theme-gradient-screen:linear-gradient(180deg,#f3f5d1 0%,#dbf3d9 45%,#f4f7f2 100%);
    --theme-gradient-hero:linear-gradient(135deg,#22b45a 0%,#88db6d 38%,#e6f58e 78%);
    --theme-gradient-sky:linear-gradient(180deg,#d2f4d4 0%,#c1e6f3 100%);
    --theme-gradient-lime:linear-gradient(135deg,#e4f993 0%,#c4ee6a 100%);
    --theme-gradient-ring:linear-gradient(90deg,#22b45a 0%,#d4f36a 100%);
    /* Kit shapes: pill buttons and tags, large-radius cards, one soft shadow. */
    --theme-radius-card:20px;--theme-radius-control:12px;--theme-radius-pill:999px;
    --theme-shadow-card:0 1px 2px rgba(var(--theme-text-rgb),.04),0 8px 24px -8px rgba(var(--theme-text-rgb),.10);

    /* Names the screens already use, pointed at the kit. --brand-primary is the readable
       dark green (labels on white, large fills under white text); --brand-botanical is the
       bright kit green; --brand-ink is body text. Danger and info keep their dark tones:
       the kit has no red or olive that stays readable as text. */
    --brand-primary:var(--theme-primary-dark);--brand-botanical:var(--theme-primary);--brand-evergreen:var(--theme-primary-dark);
    --brand-ink:var(--theme-text);--brand-olive:#475627;--brand-tangerine:var(--theme-coral);--brand-citrus:var(--theme-orange);
    --brand-cream:var(--theme-secondary-container);--brand-cypress:#9e2c21;--brand-paper:var(--theme-background);
    /* Admin panel surface: the kit's Screen gradient, viewport-anchored by custom.css. */
    --brand-surface:var(--theme-gradient-screen);
    /* --app-font is owned by css/custom.css (admin panel); do not alias it here. */
    --brand-font:var(--theme-font),Inter,Arial,sans-serif;
    --primary:var(--theme-primary);--success:var(--brand-evergreen);--info:var(--brand-olive);--warning:var(--brand-citrus);--danger:var(--brand-cypress);
}
[dir="rtl"],[lang="ar"],.arabic_text,.tajawal__regular{--brand-font:'GE Dinar','Noto Sans Arabic',Tahoma,sans-serif}
body{font-family:var(--brand-font);color:var(--theme-text);background:var(--theme-background)}
body:not(.ws-body) h1,body:not(.ws-body) h2,body:not(.ws-body) h3,body:not(.ws-body) h4{font-weight:700;color:var(--theme-text)}
img[src*="livraa-logo"],.brand-logo img,.left-brand img{object-fit:contain;height:auto}

/* Buttons (kit: Components → Buttons). Green with a white label, darker when pressed;
   white and lime are the secondary shapes. Buttons joined to a field or to each other
   keep the control radius so the join stays square. */
.btn{border-radius:var(--theme-radius-pill);font-weight:600}
.btn-group>.btn,.input-group .btn,.btn.btn-square,.bootstrap-select>.btn,.dropdown-toggle.form-control{border-radius:var(--theme-radius-control)}
.btn-group>.btn:not(:last-child),.input-group>.input-group-prepend>.btn{border-start-end-radius:0;border-end-end-radius:0}
.btn-group>.btn:not(:first-child),.input-group>.input-group-append>.btn{border-start-start-radius:0;border-end-start-radius:0}
.btn.btn-primary{background:var(--theme-primary);border-color:var(--theme-primary);color:var(--theme-on-primary)}
.btn.btn-primary:hover,.btn.btn-primary:focus,.btn.btn-primary:not(:disabled):not(.disabled):active{background:var(--theme-primary-dark);border-color:var(--theme-primary-dark);color:var(--theme-on-primary)}
.btn.btn-outline-primary{color:var(--theme-primary-dark);border-color:var(--theme-primary)}
.btn.btn-outline-primary:hover,.btn.btn-outline-primary:focus{background:var(--theme-primary);border-color:var(--theme-primary);color:var(--theme-on-primary)}
.btn.btn-light-primary{background:var(--theme-primary-container);border-color:transparent;color:var(--theme-on-primary-container)}
.btn.btn-light-primary:hover,.btn.btn-light-primary:focus{background:var(--theme-primary);color:var(--theme-on-primary)}
.btn.btn-lime{background:var(--theme-secondary);border-color:var(--theme-secondary);color:var(--theme-on-secondary)}
.btn.btn-lime:hover,.btn.btn-lime:focus{background:var(--theme-secondary-container);border-color:var(--theme-secondary);color:var(--theme-on-secondary)}

/* Text and fills. Links and "primary" text use the dark green; the bright green is for fills. */
.text-primary{color:var(--theme-primary-dark)!important}
.text-success{color:var(--brand-evergreen)!important}
.bg-primary{background:var(--theme-primary)!important}
.bg-success{background:var(--brand-evergreen)!important}
.bg-light-primary{background:var(--theme-primary-container)!important}
.nav-pills .nav-link.active,.nav-pills .show>.nav-link{background:var(--theme-secondary);color:var(--theme-on-secondary)}
.form-control:focus{border-color:var(--theme-primary);box-shadow:0 0 0 3px rgba(var(--theme-primary-rgb),.16)}
.card{border-radius:var(--theme-radius-card);box-shadow:var(--theme-shadow-card)}
.header,.header-mobile,.header-bottom{background:#fff}
.header .brand-logo,.header-mobile .brand-logo{margin-inline:0!important;padding:0!important}
:focus-visible{outline:2px solid var(--theme-primary-dark);outline-offset:3px}

/* Kit components for new markup: tags, icon tiles, progress bar, gradient surfaces.
   The darker label tones keep small text readable on each soft tint. */
.kit-tag{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:var(--theme-radius-pill);background:var(--theme-surface);color:var(--theme-text);font-size:11px;line-height:14px;font-weight:600;box-shadow:var(--theme-shadow-card)}
.kit-tag--lime{background:var(--theme-secondary);box-shadow:none}
.kit-tag--green{background:var(--theme-primary-container);color:var(--theme-on-primary-container);box-shadow:none}
/* Status pill (approvals): soft tint, a dot in the state colour, a 12px label. */
.status-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:var(--theme-radius-pill,999px);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap;border:1px solid transparent}
.status-pill::before{content:"";flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:currentColor}
.status-pill--approved{background:var(--theme-primary-container,#e3f6e6);border-color:rgba(var(--theme-primary-rgb,34,180,90),.25);color:var(--theme-primary-dark,#0f7a3a)}
.status-pill--pending{background:var(--theme-yellow-soft,#fff5d1);border-color:rgba(var(--theme-yellow-rgb,255,207,51),.45);color:#8a6400}
.status-pill--rejected{background:var(--theme-coral-soft,#ffe8e3);border-color:rgba(var(--theme-coral-rgb,255,115,96),.35);color:#9e2c21}
.kit-tag--coral{background:var(--theme-coral-soft);color:#b8382a;box-shadow:none}
.kit-tag--purple{background:var(--theme-purple-soft);color:#5b3fc4;box-shadow:none}
.kit-tag--yellow{background:var(--theme-yellow-soft);color:#8a6400;box-shadow:none}
.kit-tag--blue{background:var(--theme-blue-soft);color:#1b6fae;box-shadow:none}
.kit-tag--orange{background:var(--theme-orange-soft);color:#a8560a;box-shadow:none}
.kit-tile{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--theme-radius-control);background:var(--theme-primary-container);color:var(--theme-primary-dark)}
.kit-tile--purple{background:var(--theme-purple-soft);color:var(--theme-purple)}
.kit-tile--yellow{background:var(--theme-yellow-soft);color:#c99700}
.kit-tile--blue{background:var(--theme-blue-soft);color:var(--theme-blue)}
.kit-tile--coral{background:var(--theme-coral-soft);color:var(--theme-coral)}
.kit-tile--orange{background:var(--theme-orange-soft);color:var(--theme-orange)}
.kit-tile--lime{background:var(--theme-secondary);color:var(--theme-on-secondary)}
.kit-progress{height:6px;border-radius:var(--theme-radius-pill);background:var(--theme-line);overflow:hidden}
.kit-progress>span{display:block;height:100%;border-radius:inherit;background:var(--theme-gradient-ring)}
.kit-surface-hero{background:var(--theme-gradient-hero)}
.kit-surface-sky{background:var(--theme-gradient-sky)}
.kit-surface-lime{background:var(--theme-gradient-lime)}
.kit-surface-screen{background:var(--theme-gradient-screen)}

/* Kit text styles (Typography): size / line height, weight. */
.kit-display-l{font-size:36px;line-height:40px;font-weight:800}
.kit-h1{font-size:28px;line-height:34px;font-weight:700}
.kit-h2{font-size:20px;line-height:26px;font-weight:700}
.kit-h3{font-size:16px;line-height:22px;font-weight:700}
.kit-number-xl{font-size:44px;line-height:48px;font-weight:800}
.kit-number-m{font-size:24px;line-height:30px;font-weight:700}
.kit-body-semibold{font-size:15px;line-height:22px;font-weight:600}
.kit-body{font-size:15px;line-height:22px;font-weight:500}
.kit-small-semibold{font-size:13px;line-height:18px;font-weight:600}
.kit-small{font-size:13px;line-height:18px;font-weight:500}
.kit-caption{font-size:11px;line-height:14px;font-weight:600}
.kit-overline{font-size:11px;line-height:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}

/* Illustrative phone preview on the website. */
.ws-app-preview{min-height:100%;aspect-ratio:920/2000;background:var(--theme-gradient-screen);color:var(--theme-text);text-align:start;overflow:hidden}
.ws-app-preview__header{background:var(--theme-primary-dark);padding:12% 8% 8%}
.ws-phone__screen .ws-app-preview__header img{width:100%;height:auto;display:block;background:transparent;object-fit:contain;border-radius:0}
.ws-app-preview__content{padding:10% 8%;font-size:clamp(8px,.9vw,14px)}
.ws-app-preview__eyebrow{font-size:.8em;line-height:1.6;margin-bottom:1em}
.ws-app-preview h3{font-size:1.5em;line-height:1.35;font-weight:700}
.ws-app-preview__card{padding:10%;background:var(--theme-gradient-lime);border-radius:12px;margin-block:14%;text-align:center;line-height:1.6}
.ws-phone__screen .ws-app-preview__card img{display:block;width:48%;height:auto;margin:0 auto 10%;background:transparent;object-fit:contain;border-radius:0}
.ws-app-preview__card p{font-size:1.2em;margin:0}
.ws-app-preview__tile{padding:9% 6%;margin-block:5%;background:#fff;border:1px solid var(--theme-line);border-radius:8px;font-size:.85em}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
