/* Inter, served from this site (no third-party font host, so office firewalls do not block it) */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/static/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/static/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* BAL MIS portal - built to DESIGN-SYSTEM.md. Every colour, radius and duration is a token below; nothing downstream writes a literal. */
:root {
  --bg:         #f6f6fb;
  --bg-2:       #fbfbfe;
  --surface:    #ffffff;
  --surface-2:  #f4f2fb;
  --surface-3:  #eaeaef;
  --ink:        #0f1222;
  --ink-2:      #454764;
  --ink-3:      #6f7292;
  --line:       #e2e2ea;
  --line-2:     #f0f0f4;
  --brand:      #1a237e;
  --brand-2:    #0d1565;
  --brand-ink:  #ffffff;
  --brand-soft: #e9e9f8;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --brand-line: #c6c9e6;
  --ok:   #15803d;  --ok-soft:   #e7f6ec;
  --warn: #a16207;  --warn-soft: #fdf4e3;
  --bad:  #dc2626;  --bad-soft:  #fdeceb;
  --info: #0891b2;  --info-soft: #e4f6fa;
  --r-sm: 9px;   --r: 14px;   --r-lg: 18px;   --r-xl: 24px;
  --sh-1: none;
  --sh-2: 0 10px 30px rgba(21, 28, 82, .10), 0 2px 6px rgba(21, 28, 82, .04);
  --sh-3: 0 26px 64px rgba(21, 28, 82, .22), 0 6px 16px rgba(21, 28, 82, .08);
  --sh-hover: 0 5px 18px rgba(21, 28, 82, .10);
  --ring: 0 0 0 3px var(--brand-soft);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .32s;
  --dur-slide: .42s;
  --panel-max: 1560px;
  --font: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0d0d18;  --bg-2: #141422;  --surface: #191928;  --surface-2: #20203a;  --surface-3: #26263d;
  --ink: #ececf5; --ink-2: #a9aac4; --ink-3: #747590;
  --line: #2a2a45; --line-2: #212137;
  --brand:      #4f6ef7;  --brand-2: #6b83f9;
  --brand-ink: #ffffff;  --brand-soft: #1e2450;  --brand-line: #39417e;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --ok-soft: #12301f; --warn-soft: #33270f; --bad-soft: #3a1717; --info-soft: #0f2d35;
  --sh-1: none;
  --sh-2: 0 1px 2px rgba(0,0,0,.45), 0 10px 26px -10px rgba(0,0,0,.7);
} }
[data-theme="dark"] {
  --bg: #0d0d18;  --bg-2: #141422;  --surface: #191928;  --surface-2: #20203a;  --surface-3: #26263d;
  --ink: #ececf5; --ink-2: #a9aac4; --ink-3: #747590;
  --line: #2a2a45; --line-2: #212137;
  --brand:      #4f6ef7;  --brand-2: #6b83f9;
  --brand-ink: #ffffff;  --brand-soft: #1e2450;  --brand-line: #39417e;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --ok-soft: #12301f; --warn-soft: #33270f; --bad-soft: #3a1717; --info-soft: #0f2d35;
  --sh-1: none;
  --sh-2: 0 1px 2px rgba(0,0,0,.45), 0 10px 26px -10px rgba(0,0,0,.7);
}
* { box-sizing: border-box; }

/* ---------------------------------------------------------------- shell */
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }  /* hidden eye-tip bubbles near the right edge must not widen the page */
body { padding-left: 56px; background: var(--bg); font-family: var(--font); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 660; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 14.5px; }

.topwrap { position: sticky; top: 0; z-index: 60; padding: 14px 18px 10px 14px; background: linear-gradient(to bottom, var(--bg) 72%, transparent); }
.topbar { max-width: var(--panel-max); margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.pod { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 8px; border-radius: 999px;
       background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.pod-me { margin-left: auto; }
.brand { margin-left: -64px; padding: 6px 14px 6px 8px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brandmark { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
             display: grid; place-items: center; font-weight: 750; font-size: 11px; letter-spacing: .02em; }
.brandname { font-weight: 700; font-size: 13px; letter-spacing: .06em; line-height: 1.1; }
.brandname small { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .04em; color: var(--ink-3); }
.pagename { font-size: 15px; font-weight: 660; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--ink-2); cursor: pointer;
           display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.iconbtn svg { width: 18px; height: 18px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
          display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.me { font-size: 12.5px; color: var(--ink-2); padding: 0 4px; white-space: nowrap; }
.me b { color: var(--ink); font-weight: 600; }

.rail { position: fixed; left: 0; top: 70px; bottom: 0; z-index: 70; width: 64px; display: flex; flex-direction: column;
        align-items: center; padding: 6px 0 16px; border-right: 1px solid var(--line); }
.railnav { position: relative; display: flex; flex-direction: column; gap: 4px; }
.railslot { position: relative; display: block; }
.railitem { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none;
            border-radius: 10px; color: var(--ink-3); cursor: pointer; font: inherit;
            transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.railitem svg { width: 19px; height: 19px; }
.railitem:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.railitem.on { color: var(--brand-ink); }
.railsep { width: 28px; height: 1px; background: var(--line); margin: 6px auto; }
.railflyout { position: absolute; left: 100%; top: -6px; z-index: 80; padding-left: 10px; opacity: 0; visibility: hidden; pointer-events: none;
              transform: translateX(-6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; }
.railslot:hover .railflyout, .railslot:focus-within .railflyout { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.rf-card { width: 220px; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); }
.rf-h { font-size: 12px; font-weight: 660; color: var(--ink); padding: 4px 8px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.rf-i { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 12.5px; }
.rf-i:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.rf-i b { color: var(--ink); font-variant-numeric: tabular-nums; }

main { max-width: var(--panel-max); margin: 0 auto 18px; padding: 18px 22px 44px; background: var(--bg-2); border: 1px solid var(--line);
       border-radius: var(--r-xl); box-shadow: var(--sh-2); min-height: calc(100vh - 118px); }
.wrapper { padding: 0 18px 0 0; }

/* ---------------------------------------------------------------- travelling selection (base first, variants after) */
.slidethumb { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; display: inline-flex; align-items: center; justify-content: flex-start;
              border: 1px solid var(--brand); border-radius: 999px; background: var(--brand); color: var(--brand-ink);
              font: inherit; white-space: nowrap; overflow: hidden; opacity: 0;
              transition: transform var(--dur-slide) var(--ease), width var(--dur-slide) var(--ease), opacity .18s var(--ease); }
.thumb-rail { border: 0; border-radius: 10px; padding: 0; justify-content: center; box-shadow: var(--sh-hover);
              transition: transform var(--dur) var(--ease), width var(--dur) var(--ease), opacity .18s var(--ease); }
.thumb-rail svg { width: 19px; height: 19px; color: var(--brand-ink); }
.thumb-chips { padding: 0 14px; font-size: 12.5px; font-weight: 600; }
.thumb-chips .count { background: rgba(255,255,255,.22); color: var(--brand-ink); }
.thumb-bar { border: 0; border-radius: 0 0 3px 3px; background: var(--brand); box-shadow: none; padding: 0; }

/* ---------------------------------------------------------------- page header inside the panel (no title row: a context line and actions) */
.ctxbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ctxbar .sp { flex: 1; }
.ctx { font-size: 12.5px; color: var(--ink-3); }
.ctx b { color: var(--ink-2); font-weight: 600; }

/* chips row that acts like tabs (level 3) */
.chips { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px;
        border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap;
        transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.chip:hover { border-color: var(--brand-line); color: var(--ink); text-decoration: none; }
.chip.on { color: var(--brand-ink); border-color: transparent; font-weight: 600; }
.chips.multi .chip.on { background: var(--brand); color: var(--brand-ink); }
.chips.multi .chip.on .count { background: rgba(255,255,255,.22); color: var(--brand-ink); }
.count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2);
         font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- cards, grids, tiles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--sh-1); }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-h h3 { margin: 0; }
.grid { display: grid; gap: 14px; } .grid > * { min-width: 0; } .g2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g32 { grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.stats::-webkit-scrollbar { display: none; }
.stats.two { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-columns: auto; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; min-width: 0; }
.kpi .l { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.kpi .v { font-size: 22px; font-weight: 680; margin-top: 3px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .v.neg { color: var(--bad); }
.kpi .u { font-size: 11px; color: var(--ink-3); }
.muted { color: var(--ink-3); } .small { font-size: 12px; } .right { text-align: right; } .nowrap { white-space: nowrap; } .mono { font-family: var(--mono); }
.neg { color: var(--bad); } .zero { color: var(--ink-3); }

/* app tiles on the home screen */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px;
        color: var(--ink); transition: box-shadow .16s var(--ease), border-color var(--dur) var(--ease); }
.tile:hover { box-shadow: var(--sh-hover); border-color: var(--brand-line); text-decoration: none; }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; }
.tile .ic svg { width: 20px; height: 20px; }
.tile .nm { font-size: 15px; font-weight: 660; color: var(--ink); line-height: 1.25; }
.tile .meta { font-size: 12px; color: var(--ink-3); }
.tile .kv { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 7px; }
.tile .kv b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- tables */
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.t th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0;
        font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.t td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink); }
.t td.n, .t th.n { text-align: right; white-space: nowrap; }
.t tr.b td { font-weight: 650; }
.t tr.h td { font-weight: 660; color: var(--ink-2); background: var(--surface-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.t tr:hover td { background: var(--surface-2); }
.scroll { overflow: auto; max-height: 640px; border: 1px solid var(--line); border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- badges and statuses */
.badge { display: inline-flex; align-items: center; height: 21px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.b-High, .b-REVIEW, .b-failed { background: var(--bad-soft); color: var(--bad); }
.b-Medium, .b-queued, .b-running, .b-draft { background: var(--warn-soft); color: var(--warn); }
.b-Low, .b-OK, .b-done, .b-published { background: var(--ok-soft); color: var(--ok); }
.b-Info { background: var(--info-soft); color: var(--info); }
.b-n { background: var(--surface-3); color: var(--ink-2); }

/* ---------------------------------------------------------------- forms and buttons */
input[type=text], input[type=search], input[type=email], input[type=password], input[type=date], select, textarea {
  font: inherit; font-size: 13px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow .16s; }
input[type=search]:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type=file] { font: inherit; font-size: 12.5px; color: var(--ink-2); }
textarea { min-height: 64px; resize: vertical; }
label { font-size: 12px; color: var(--ink-3); display: block; margin: 10px 0 4px; font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; height: 34px; padding: 0 15px; border-radius: 999px;
       border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); cursor: pointer;
       transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow .16s; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); text-decoration: none; }
.btn:focus-visible, .chip:focus-visible, .railitem:focus-visible, .iconbtn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand-line); background: var(--surface); }
.btn.sm { height: 28px; padding: 0 11px; font-size: 12px; }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--bad-soft); }
.btn.danger:hover { background: var(--bad-soft); }
.btn[disabled] { opacity: .55; cursor: default; }
.alert { padding: 10px 14px; border-radius: var(--r-sm); margin: 0 0 12px; font-size: 13px; }
.alert.err { background: var(--bad-soft); color: var(--bad); } .alert.ok { background: var(--ok-soft); color: var(--ok); } .alert.info { background: var(--brand-soft); color: var(--ink); }

/* ---------------------------------------------------------------- explanations behind an eye */
.helptip { position: relative; display: inline-flex; align-items: center; flex: none; color: var(--ink-3); cursor: help; line-height: 0; outline: none;
           border-radius: 50%; transition: color .15s; vertical-align: middle; }
.helptip svg { width: 15px; height: 15px; }
.helptip:hover, .helptip:focus-visible { color: var(--brand); }
.helptip:focus-visible { box-shadow: var(--ring); }
.helpbubble { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-4px); width: max-content; max-width: 320px; z-index: 60;
              padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg);
              font-size: 12.5px; font-weight: 450; line-height: 1.5; text-transform: none; letter-spacing: normal; white-space: normal; text-align: left;
              box-shadow: var(--sh-2); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s; }
.helptip:hover .helpbubble, .helptip:focus-visible .helpbubble, .helptip:focus-within .helpbubble { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.card-h .helptip .helpbubble, .kpi .helptip .helpbubble, td .helptip .helpbubble { left: 0; transform: translateX(0) translateY(-4px); }
.card-h .helptip:hover .helpbubble, .kpi .helptip:hover .helpbubble, td .helptip:hover .helpbubble,
.card-h .helptip:focus-visible .helpbubble, .kpi .helptip:focus-visible .helpbubble, td .helptip:focus-visible .helpbubble { transform: translateX(0) translateY(0); }

.helptip.flip .helpbubble { left: auto; right: 0; transform: translateY(-4px); }
.helptip.flip:hover .helpbubble, .helptip.flip:focus-visible .helpbubble, .helptip.flip:focus-within .helpbubble { transform: translateY(0); }

/* ---------------------------------------------------------------- items: observations, risks, documents */
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 18px; margin-bottom: 10px; position: relative; }
.item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line); }
.item.High::before { background: var(--bad); } .item.Medium::before { background: var(--warn); } .item.Low::before, .item.Info::before { background: var(--ok); }
.item .hd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.item .hd .sp { flex: 1; }
.item .amt { font-weight: 680; font-variant-numeric: tabular-nums; }
.item details { margin-top: 8px; }
.item summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 12.5px; list-style: none; display: inline-flex; gap: 5px; align-items: center; }
.item summary::-webkit-details-marker { display: none; }
.item summary::before { content: "+"; font-weight: 700; }
.item details[open] summary::before { content: "\2212"; }
.resp { background: var(--surface-2); border-radius: var(--r-sm); padding: 9px 12px; margin-top: 9px; font-size: 12.5px; }
.formrow { display: grid; grid-template-columns: 220px 1fr auto; gap: 10px; align-items: end; }
.files { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }

/* ---------------------------------------------------------------- sign-in */
body.signin { padding-left: 0; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px 32px; width: 380px; max-width: 100%; box-shadow: var(--sh-3); }
.login .btn { width: 100%; justify-content: center; margin-top: 18px; height: 40px; }

.chart { position: relative; height: 280px; }
pre.log { background: var(--ink); color: var(--bg); border-radius: var(--r-sm); padding: 14px; max-height: 520px; overflow: auto; font: 12px/1.5 var(--mono); white-space: pre-wrap; }
.foot { color: var(--ink-3); font-size: 11.5px; text-align: center; margin: 18px 0 0; }

/* ---------------------------------------------------------------- motion */
@keyframes riseIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.view > * { animation: riseIn .34s cubic-bezier(.22,.8,.3,1) backwards; }
.view > *:nth-child(1) { animation-delay: .02s; } .view > *:nth-child(2) { animation-delay: .06s; } .view > *:nth-child(3) { animation-delay: .10s; }
.view > *:nth-child(4) { animation-delay: .13s; } .view > *:nth-child(n+5) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .view > *, .railitem, .slidethumb, .railflyout, .btn, .chip { animation: none !important; transition: none !important; }
}
html { scroll-behavior: smooth; }

/* ---------------------------------------------------------------- phone */
.tabbar { display: none; }
@media (max-width: 900px) {
  .rail { display: none; }
  body { padding-left: 0; }
  .brand { margin-left: 0; }
  .topwrap { padding: 10px 10px 8px; }
  .pagename, .me { display: none; }
  main { padding: 14px 12px calc(74px + env(safe-area-inset-bottom, 0px)); border-radius: var(--r-lg); margin: 0 8px 12px; }
  .wrapper { padding: 0; }
  .g2, .g3, .g32 { grid-template-columns: 1fr; }
  .stats, .stats.two { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .formrow { grid-template-columns: 1fr; }
  input[type=text], input[type=search], input[type=email], input[type=password], input[type=date], select, textarea { font-size: 16px; min-height: 44px; }
  .helpbubble, .card-h .helptip .helpbubble, .kpi .helptip .helpbubble, td .helptip .helpbubble, .helptip.flip .helpbubble { position: fixed; left: 16px; right: 16px; top: auto; bottom: 84px; width: auto; max-width: none; transform: none !important; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
            background: var(--surface); border-top: 1px solid var(--line); padding: 0 4px calc(4px + env(safe-area-inset-bottom, 0px));
            box-shadow: 0 -6px 20px rgba(21, 28, 82, .07); }
  .tabitem { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 2px 7px;
             border: 0; background: none; cursor: pointer; font: inherit; font-size: 10px; font-weight: 640; color: var(--ink-3);
             -webkit-tap-highlight-color: transparent; transition: color var(--dur) var(--ease); }
  .tabitem:hover { text-decoration: none; }
  .tabitem svg { width: 21px; height: 21px; }
  .tabitem.on { color: var(--brand); }
  .t.cards, .t.cards tbody, .t.cards tr, .t.cards td { display: block; }
  .t.cards tr:first-child { display: none; }
  .t.cards tr { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 10px 12px; margin-bottom: 8px; }
  .t.cards td { border: 0; padding: 2px 0; }
  .t.cards td.n { text-align: left; }
  .scroll.cardwrap { overflow: visible; max-height: none; border: 0; }
}
@media print {
  .topwrap, .rail, .tabbar, .noprint, .chips { display: none !important; }
  body { padding-left: 0; background: #fff; } main { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .card { break-inside: avoid; } .t th { position: static; } .scroll { max-height: none; overflow: visible; border: 0; }
  .pagebreak { break-before: page; } @page { size: A4 landscape; margin: 12mm; }
}

/* ---------------------------------------------------------------- month-wise view */
.mw-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.mw-bar .chips { margin: 0; }
.mw-bar .grp { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.mw-bar .grp .chips { min-width: 0; flex: 1 1 auto; }
.mw-bar .grp > span { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.mw-bar select { width: auto; height: 34px; border-radius: 999px; padding: 0 12px; }
.chips.multi button.chip { font: inherit; cursor: pointer; }
.kpi .d { font-size: 11.5px; margin-top: 4px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kpi .d .up { color: var(--ok); } .kpi .d .dn { color: var(--bad); }
.kpi .pc { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-left: 6px; }
.chart.tall { height: 330px; } .chart.short { height: 240px; }
.t tr.sub td { color: var(--ink-3); font-size: 12px; }
.t td.cur, .t th.cur { background: var(--surface-2); }
.legend-note { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
@media print { .chart.tall, .chart { height: 250px; } .pack-sec { break-inside: avoid; } }
.t th.sortable { cursor: pointer; user-select: none; } .t th.sortable:hover { color: var(--ink); }
#shTable td:first-child, #shTable th:first-child { min-width: 260px; }
#shTable td.small { min-width: 160px; }
#shQ { height: 34px; border-radius: 999px; padding: 0 14px; }
.iconbtn.on { color: var(--brand); background: var(--brand-soft); }

/* ---------------------------------------------------------------- client view: no printing */
@media print { body.client > * { display: none !important; } body.client::after { content: "Printing is turned off for this portal. Please view the MIS on screen."; display: block; padding: 40px; font: 16px Inter, sans-serif; } }

/* ---------------------------------------------------------------- drill-down panel */
.drill-back { position: fixed; inset: 0; background: rgba(15, 18, 34, .38); z-index: 80; opacity: 0; transition: opacity var(--dur) var(--ease); }
.drill-back.on { opacity: 1; }
.drill { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(1040px, calc(100vw - 20px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-3); z-index: 81; display: flex; flex-direction: column; transform: translateX(105%); transition: transform var(--dur-slide) var(--ease); }
.drill.on { transform: translateX(0); }
.drill-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 10px; border-bottom: 1px solid var(--line-2); }
.drill-h h3 { margin: 0; font-size: 17px; } .drill-h .sub { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.drill-b { padding: 12px 20px 20px; overflow: auto; flex: 1; }
.drill .stats { margin-bottom: 12px; } .drill .kpi .v { font-size: 18px; }
.drill table.t tr.dr-row { cursor: pointer; } .drill table.t tr.dr-row:hover td { background: var(--surface-2); }
.drill table.t tr.dr-v td { background: var(--bg-2); font-size: 12px; }
.drill table.t tr.dr-v td:first-child { padding-left: 26px; }
.drill .nar { max-width: 340px; color: var(--ink-2); font-size: 12px; }
.drill-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.drill-tools .chips { margin: 0; }
td.drill-cell, tr.drill-row td { cursor: pointer; } td.drill-cell:hover, tr.drill-row:hover td { background: var(--brand-soft); }
@media (max-width: 700px) { .drill { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; } .drill .nar { max-width: 200px; } }
[hidden] { display: none !important; }
.grid.wide { grid-template-columns: 1fr; }
#shTable td.small { min-width: 240px; }
.take { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; padding: 8px 12px; background: var(--surface-2, var(--line-2)); border-radius: 8px; } .take:empty { display: none; }

/* ================================================================ Planet Biogas: brand theme (tokens only) and management views */
[data-brand="planet"] {
  --brand: #005c41; --brand-2: #00432f; --brand-ink: #ffffff; --brand-soft: #e2f1eb; --brand-line: #b4d8ca;
  --gold: #d4ac00; --gold-soft: #fbf3d3;
  --s1: #005c41; --s2: #d4ac00; --s3: #2a78d6; --s4: #e86a3a; --s5: #6aa88f; --s6: #8b6fd6; --s7: #b38a00; --s8: #d1495b;
}
@media (prefers-color-scheme: dark) { :root[data-brand="planet"]:not([data-theme="light"]) {
  --brand: #2fbf8a; --brand-2: #4fd3a0; --brand-ink: #04140e; --brand-soft: #10291f; --brand-line: #1f5a44;
  --gold: #e8c33a; --gold-soft: #2c250b;
  --s1: #2fbf8a; --s2: #e8c33a; --s3: #4f93ea; --s4: #f07f52; --s5: #7cc2a6; --s6: #a38ef0; --s7: #c9a520; --s8: #e46d7d;
} }
[data-theme="dark"][data-brand="planet"] {
  --brand: #2fbf8a; --brand-2: #4fd3a0; --brand-ink: #04140e; --brand-soft: #10291f; --brand-line: #1f5a44;
  --gold: #e8c33a; --gold-soft: #2c250b;
  --s1: #2fbf8a; --s2: #e8c33a; --s3: #4f93ea; --s4: #f07f52; --s5: #7cc2a6; --s6: #a38ef0; --s7: #c9a520; --s8: #e46d7d;
}

.pctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.pctl .sp { flex: 1; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg a { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.seg a:hover { text-decoration: none; color: var(--ink); background: var(--surface-2); }
.seg a.on { background: var(--brand); color: var(--brand-ink); }
.workchips { margin-top: -8px; }
.workchips .lab { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; align-self: center; margin-right: 4px; }
.workchips .chip { height: 28px; font-size: 12px; }
.workchips .chip.on { background: var(--surface-2); color: var(--ink); border-color: var(--brand-line); }

.kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; min-width: 0; overflow: hidden;
         transition: box-shadow .16s var(--ease), transform .16s var(--ease); }
.kcard:hover { box-shadow: var(--sh-hover); }
.kcard .l { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); font-weight: 550; }
.kcard .v { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.15; }
.kcard .v small { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.kcard .d { font-size: 12px; color: var(--ink-2); margin-top: 4px; min-height: 18px; }
.kcard .d b { font-weight: 650; }
.kcard.hero { background: var(--brand); border-color: var(--brand); }
.kcard.hero .l, .kcard.hero .d, .kcard.hero .v small { color: var(--brand-ink); opacity: .85; }
.kcard.hero .v { color: var(--brand-ink); }
.kcard.hero .helptip { color: var(--brand-ink); }
.kcard .spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100% !important; height: 38px !important; opacity: .35; pointer-events: none; }
.kcard .l, .kcard .v, .kcard .d { position: relative; z-index: 1; }
.kcard .v.neg, .neg { color: var(--bad); }
.pos { color: var(--ok); }
.tone-ok { color: var(--ok); } .tone-warn { color: var(--warn); } .tone-bad { color: var(--bad); }

.bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--brand); transition: width .6s var(--ease); }
.bar > i.g { background: var(--gold); }
.bar.thin { height: 6px; }
.projcard { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.gauge { position: relative; width: 170px; height: 110px; }
.gauge canvas { position: absolute; inset: 0; }
.gauge .gv { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 26px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.gauge .gl { position: absolute; left: 0; right: 0; bottom: -12px; text-align: center; font-size: 11px; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.fact .l { font-size: 11.5px; color: var(--ink-3); }
.fact .v { font-size: 16px; font-weight: 680; font-variant-numeric: tabular-nums; color: var(--ink); }
.chart.tall { height: 320px; } .chart.mid { height: 260px; } .chart.short { height: 200px; }
.attn { list-style: none; margin: 0; padding: 0; }
.attn li { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.attn li:last-child { border-bottom: 0; }
.attn .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--line); }
.attn .High { background: var(--bad); } .attn .Medium { background: var(--warn); } .attn .Low { background: var(--ok); }
.attn .tx { font-size: 12.5px; color: var(--ink-2); }
.attn .tx b { color: var(--ink); }
.attn .am { font-weight: 680; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* P&L and balance sheet: the Planet layout, collapsible */
.pt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.pt th { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: right; padding: 8px 10px; font-size: 10.5px; text-transform: uppercase;
         letter-spacing: .05em; color: var(--ink-3); font-weight: 650; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pt th:first-child, .pt td:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 260px; max-width: 360px; }
.pt th:first-child { z-index: 3; }
.pt td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.pt td.tot, .pt th.tot { background: var(--surface-2); font-weight: 650; }
.pt td:first-child { white-space: normal; }
.pt tr.sec td { font-weight: 700; background: var(--brand-soft); color: var(--ink); border-bottom-color: var(--brand-line); }
.pt tr.sec td:first-child { background: var(--brand-soft); }
.pt tr.cat td { font-weight: 640; cursor: pointer; }
.pt tr.cat td:first-child::before { content: "▸"; display: inline-block; width: 14px; color: var(--ink-3); transition: transform .2s var(--ease); }
.pt tr.cat.open td:first-child::before { transform: rotate(90deg); }
.pt tr.sub td { color: var(--ink-2); }
.pt tr.sub td:first-child { padding-left: 34px; }
.pt tr.sub[hidden] { display: none; }
.pt tr.sub .lk { cursor: pointer; color: var(--ink-2); }
.pt tr.sub .lk:hover { color: var(--brand); text-decoration: underline; }
.pt tr.res td { font-weight: 750; font-size: 13.5px; border-top: 2px solid var(--ink-3); background: var(--surface-2); }
.pt tr.res td:first-child { background: var(--surface-2); }
.pt td.z { color: var(--ink-3); }
.pt tr:hover td { background: var(--surface-2); }
.ptwrap { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.legend-note { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-sm); background: var(--gold-soft, var(--warn-soft)); color: var(--ink); font-size: 12.5px; margin-bottom: 14px; }
.callout b { font-weight: 650; }
.minitable td, .minitable th { padding: 6px 8px; }

@media (max-width: 1200px) { .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .kcard .v { font-size: 21px; }
  .kcard .spark { display: none; }
  .projcard { grid-template-columns: 1fr; justify-items: center; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .pt th:first-child, .pt td:first-child { min-width: 170px; }
}
.sitegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sitebtn { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.sitebtn:hover { text-decoration: none; border-color: var(--brand-line); background: var(--brand-soft); }
.sitebtn span { font-size: 12px; color: var(--ink-3); }
.card.site input, .card.site select { min-height: 44px; font-size: 16px; }
.btn.big { width: 100%; min-height: 48px; font-size: 15px; margin-bottom: 14px; }
@media (min-width: 901px) { .card.site, form.card.site { max-width: 720px; } .btn.big { max-width: 720px; } }

/* year on year */
.chg { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg.pos { color: var(--ok); } .chg.neg { color: var(--bad); }
.pt.yoyt th .sub-h { font-weight: 500; font-size: 10.5px; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.pt.yoyt td.chgc, .pt.yoyt th.chgc { font-size: 12px; color: var(--ink-3); border-right: 1px solid var(--line-2); }
.pt tr.cat.plain td:first-child { padding-left: 22px; }
.pt tr.cat.plain td:first-child::before { content: none; }
.vs { display: grid; gap: 4px; }
.vsrow { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l c" "v was"; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.vsrow .l { grid-area: l; color: var(--ink-2); font-size: 12.5px; }
.vsrow .v { grid-area: v; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vsrow .was { grid-area: was; color: var(--ink-3); font-size: 12px; text-align: right; }
.vsrow .c { grid-area: c; text-align: right; font-size: 13px; }
.pt tr.cat.plain td { cursor: default; font-weight: 500; }
.kcard.hero .chg { color: inherit; font-weight: 700; }
.pctl .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .pctl .seg::-webkit-scrollbar { display: none; }
.pctl .seg a { white-space: nowrap; flex: 0 0 auto; }

/* client logo in the header and on the sign-in page; a white chip keeps the brand colours true in dark mode */
.logochip { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 8px; background: #fff; }
.brandlogo { height: 26px; width: auto; display: block; }
.brand .brandname { font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
/* exchange rates */
.t.rates td { padding-top: 4px; padding-bottom: 4px; vertical-align: middle; }
.rates-fy { margin: 18px 0 6px; font-size: 13px; color: var(--ink-2); }
.t.rates input { width: 120px; text-align: right; font-variant-numeric: tabular-nums; }
.t.rates tr.ahead td { color: var(--ink-3); }
.t.rates tr.gap td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.rates-top { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; } .rates-top .rates-src { flex: 1; min-width: 220px; margin: 0; }
textarea[name=paste] { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* eye icon: sits inline after its label; the bubble is drawn by the page above everything */
.helpbubble { display: none !important; }
.tipfloat { position: fixed; z-index: 1000; display: none; max-width: min(300px, calc(100vw - 16px)); padding: 8px 11px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 500; line-height: 1.45; box-shadow: var(--sh-2); pointer-events: none; }
.kcard .l { display: block; }
.kcard .l .helptip, .card-h .helptip, label .helptip { margin-left: 5px; vertical-align: -2px; }
.helptip { padding: 2px; }
/* sign in */
.loginbrand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.login .box h1 { font-size: 20px; margin: 0 0 4px; }
.login .box form { display: grid; gap: 2px; }
.login .box .btn { margin-top: 14px; min-height: 44px; }
.login input.otp { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.login label.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.login label.check input { width: 18px; height: 18px; min-height: 0; }
.linkform { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.login .box form.linkform, .login .box p.linkform { display: flex; justify-content: center; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 520px) { .login { padding: 16px; } .login .box { width: 100%; max-width: none; margin: 0; box-sizing: border-box; } }
.ratesfy { margin: 0 0 12px; }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); } .check-inline input { width: 16px; height: 16px; min-height: 0; }
/* brand pod: logo, a thin rule, MIS - same height as the account pod */
.brand { min-height: 48px; box-sizing: border-box; gap: 10px; padding: 6px 16px 6px 12px; }
.brand .logochip { padding: 0; background: transparent; }
.brand .brandlogo { height: 28px; }
.brand .brandname { color: var(--brand); padding-left: 10px; border-left: 1px solid var(--line); }
[data-theme="dark"] .brand .logochip { background: #fff; padding: 3px 6px; border-radius: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logochip { background: #fff; padding: 3px 6px; border-radius: 8px; } }
.topbar { gap: 14px; }
.secttl { margin: 18px 2px 10px; font-size: 15px; }
.pt.projt th { white-space: normal; min-width: 110px; }
.sysalert { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; } .sysalert > div > div + div { margin-top: 4px; }
.alert.warn { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); }

/* ---------------- reimbursement claims (employee: phone first) */
.claimk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.claimk .kcard .v { font-size: 20px; }
.btn.big.claimnew { display: flex; align-items: center; justify-content: center; margin: 4px 0 12px; }
.callout.claimteam { display: block; margin-bottom: 12px; }
.claimmonth { margin: 18px 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
a.claimrow { display: block; color: var(--ink); text-decoration: none; padding: 12px 14px; margin-bottom: 8px; }
a.claimrow:hover { border-color: var(--brand-line); text-decoration: none; }
.claimrow .cr1, .claimrow .cr2 { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.claimrow .cr2 { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.claimrow .cr3 { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amt { font-variant-numeric: tabular-nums; font-weight: 650; } .amt.big { font-size: 20px; margin-left: auto; }
.claimdl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; margin: 0; font-size: 14px; } .claimdl dt { color: var(--ink-3); } .claimdl dd { margin: 0; }
.claimsteps { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13.5px; }
.claimsteps li { position: relative; padding: 5px 0 5px 22px; color: var(--ink-3); }
.claimsteps li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); }
.claimsteps li.done { color: var(--ink); } .claimsteps li.done::before { background: var(--ok); border-color: var(--ok); }
.claimsteps li.now { color: var(--ink); font-weight: 600; } .claimsteps li.now::before { border-color: var(--warn); }
.claimsteps li.bad { color: var(--bad); } .claimsteps li.bad::before { background: var(--bad); border-color: var(--bad); }
.claimbtns { display: flex; gap: 8px; margin-top: 10px; }
.billgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.bill { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); text-decoration: none; min-width: 0; }
.bill img, .bill .pdf { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.bill .pdf { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--bad); }
.bill .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claimform [hidden] { display: none !important; }
.tscroll { overflow-x: auto; }
.claimt td.ck, .claimt th.ck { width: 28px; }
.claimbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.claimbar input[type=text] { flex: 1; min-width: 200px; margin: 0; } .claimbar input[type=date] { width: auto; margin: 0; } .claimbar label { margin: 0; }
.claimfilter, .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.claimfilter select, .inline-form select { width: auto; margin: 0; height: 32px; }
@media (max-width: 600px) { .claimk { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .claimk .kcard { padding: 10px; } .claimk .kcard .v { font-size: 16px; } .claimk .kcard .l { font-size: 11px; } }

.empnew { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 12px; } .empnew label { margin-top: 0; }
@media (max-width: 1100px) { .empnew { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 600px) { .empnew { grid-template-columns: 1fr; } }
