/* Signed-in web app theme: dashboard.html, signin.html and account.html.
 *
 * Scoped to those three pages. The public marketing site has its own
 * stylesheets and is not affected by this file.
 *
 * Every value is taken from the finished native app, not approximated:
 *   colours   lib/custom_code/widgets/pp_theme.dart (PPColors) and
 *             lib/flutter_flow/flutter_flow_theme.dart (LightModeTheme)
 *   type      DMSerifDisplay for display/headline styles, ResaleSans (Roboto
 *             Regular and Bold) for titles, labels and body
 *   spacing   PPSpacing 4/8/12/16/24/32
 *   radii     PPRadius 8/12/16 and pill
 * The font files are the app's own bundled files, self-hosted here so the
 * pages load no third-party font request.
 */
@font-face{font-family:'DM Serif Display';src:url('/app-theme/fonts/DMSerifDisplay-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Roboto';src:url('/app-theme/fonts/Roboto-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Roboto';src:url('/app-theme/fonts/Roboto-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}

:root{
  /* PPColors surfaces */
  --app-bg:#FAFAF7;--app-bg2:#F1F2EC;--app-card:#FFFFFF;--app-card-alt:#EDF3E9;--app-line:#DDDED7;
  /* PPColors brand and accents */
  --app-primary:#245D38;--app-primary-dim:#1B482B;--app-on-primary:#FFFFFF;
  --app-info:#285B73;--app-points:#775510;--app-accent:#9A482B;--app-gallery:#65567E;
  /* PPColors text and status */
  --app-text:#13202F;--app-text2:#4A534C;--app-text3:#636963;--app-text-faint:#70766E;
  --app-warning:#855A0E;--app-danger:#B42F2A;

  /* The names the three pages already use, mapped onto the app palette.
     Kept so existing markup and scripts need no rename. */
  --bg:var(--app-bg);--bg2:var(--app-bg2);--bg-2:var(--app-bg2);
  --card:var(--app-card);--card2:var(--app-card-alt);--card-hi:var(--app-card-alt);
  --card-elev:var(--app-card);
  --border:var(--app-line);
  /* ppCard's accent border is the accent at 40% opacity. */
  --border-hi:rgba(36,93,56,0.4);
  --green:var(--app-primary);--green-dim:var(--app-primary-dim);
  --cyan:var(--app-info);--cyan-dim:var(--app-info);
  --gold:var(--app-points);--gold-dim:var(--app-warning);
  --coral:var(--app-danger);--red:var(--app-danger);--orange:var(--app-accent);
  --purple:var(--app-gallery);--magenta:var(--app-gallery);
  --text:var(--app-text);--text-dim:var(--app-text2);--text-muted:var(--app-text3);
  --ink:var(--app-on-primary);

  /* Type: serif for headings, Roboto for everything else, as in the app. */
  --font-h:'DM Serif Display',Georgia,serif;
  --font-b:'Roboto',system-ui,sans-serif;
  /* The old monospace label face becomes the app's label style: Roboto. */
  --font-d:'Roboto',system-ui,sans-serif;

  /* Shadows: the app's cards are flat with a hairline border; elevation is
     a soft text-coloured shadow, and ppCard's glow is the accent at 18%. */
  --shadow-card:0 1px 2px rgba(19,32,47,0.06);
  --shadow-card-hover:0 4px 14px rgba(19,32,47,0.10);
  --shadow-glow-green:0 4px 16px rgba(36,93,56,0.18);
  --shadow-glow-cyan:0 4px 16px rgba(40,91,115,0.18);
  --shadow-glow-gold:0 4px 16px rgba(119,85,16,0.18);

  /* PPSpacing and PPRadius */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;--sp-6:24px;--sp-8:32px;
  --r-xs:8px;--r-sm:8px;--r-md:12px;--r-lg:12px;--r-xl:16px;--r-2xl:16px;--r-3xl:16px;--r-4xl:16px;

  color-scheme:light;
}

html,body{background:var(--app-bg);color:var(--app-text);font-family:var(--font-b)}
/* The app sets display and headline styles in DM Serif Display, weight 400
   (the only weight the face has), so the page never fakes a bold serif. */
h1,h2,.page-header h1,.login-box h1,.login-card h1,.auth-card h1{font-family:var(--font-h);font-weight:400;letter-spacing:0}
::selection{background:rgba(36,93,56,0.18);color:var(--app-text)}
/* An inline display value would otherwise beat the hidden attribute. */
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--app-info);outline-offset:2px}
input::placeholder,textarea::placeholder{color:var(--app-text-faint);opacity:1}

/* Brand: the app's own launcher icon and a plain wordmark, replacing the
   pulsing neon dot and the old logo image. */
.app-mark{width:28px;height:28px;border-radius:8px;flex-shrink:0;display:block}
.brand-line{align-items:center}
.brand-name,.sidebar .logo{font-family:var(--font-b)!important;font-weight:700;font-size:16px;letter-spacing:0;color:var(--app-primary);text-transform:none}
.brand-name span{color:var(--app-text3);font-weight:400}

/* Sign-in card: the app's card is flat with a hairline border and radius 16,
   not the heavy glow the dark theme used to lift it off black. */
.login-box{border-radius:var(--r-2xl)!important;box-shadow:var(--shadow-card-hover)!important}
.login-page::before{display:none}

/* Item and card titles use the app's title style (Roboto), as the native
   inventory does; the serif is for page and section headings only. */

/* Google's light sign-in button: white fill, #1F1F1F text (already set by the
   pages) and a 1px #747775 outline, per Google's sign-in branding guidance.
   Without the outline it disappears into the white sign-in card. */
.google-btn{border:1px solid #747775!important}

/* ── Shared widgets injected by scripts this lane does not own ─────────────
   cookie-consent.js and pp-auth-nav.js carry the old dark styles inline or in
   an injected <style>. They are restyled here, inside the signed-in pages
   only, so the shared scripts stay untouched. */
.pp-cc-banner,.pp-cc-modal{background:var(--app-card)!important;color:var(--app-text)!important;border:1px solid var(--app-line)!important;box-shadow:0 8px 28px rgba(19,32,47,0.14)!important;font-family:var(--font-b)!important}
.pp-cc-banner h3,.pp-cc-banner strong,.pp-cc-modal h3,.pp-cc-row-text strong{color:var(--app-text)!important}
.pp-cc-banner p,.pp-cc-modal p,.pp-cc-row-text,.pp-cc-row-text span,.pp-cc-row-text small{color:var(--app-text2)!important}
.pp-cc-banner a,.pp-cc-modal a{color:var(--app-primary)!important}
.pp-cc-modal-bg{background:rgba(19,32,47,0.45)!important}
#pp-cc-accept,.pp-cc-modal-actions button:first-child{background:var(--app-primary)!important;color:var(--app-on-primary)!important;border-color:var(--app-primary)!important}
#pp-cc-reject,#pp-cc-customise,.pp-cc-modal-actions button:not(:first-child){background:var(--app-card)!important;color:var(--app-text)!important;border:1px solid var(--app-line)!important}
.pp-cc-row{border-color:var(--app-line)!important}

#pp-auth-menu{background:var(--app-card)!important;border:1px solid var(--app-line)!important;box-shadow:0 8px 24px rgba(19,32,47,0.14)!important;font-family:var(--font-b)!important}
#pp-auth-menu>div:first-child{color:var(--app-text3)!important;border-bottom-color:var(--app-line)!important}
#pp-auth-menu>a{color:var(--app-text)!important}
#pp-auth-menu>a:hover{background:var(--app-bg2)!important}
#pp-auth-menu>div:not(:first-child){background:var(--app-line)!important}
#pp-auth-menu>button{color:var(--app-danger)!important;font-family:var(--font-b)!important}
#pp-auth-menu>button:hover{background:rgba(180,47,42,0.08)!important}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:0s!important;animation-duration:0s!important}}
