/* Hive HR - tokens from the Figma file "Hive HR - CURRENT" (Forest Green / Cream / Ink, Inter). */
:root {
  --forest: #0F4A2D; --forest-2: #0B3821; --cream: #F8F3E9; --ink: #1F2A23; --white: #FFFFFF;
  --muted: #5E6B63; --line: #E7E1D3; --warn: #8A5A00; --warn-bg: #FBF1D8; --bad: #9B2C1F; --bad-bg: #FBE4DF; --ok: #17643B; --ok-bg: #E3F1E7;
  --r-lg: 24px; --r-sm: 12px; --side: 260px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); font-size: 15px; line-height: 1.45; }
h1 { font-size: 28px; font-weight: 500; margin: 0 0 6px; } h2 { font-size: 21px; font-weight: 500; margin: 0 0 6px; } h3 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; }
p { margin: 0 0 10px; } .sub { color: var(--ink); font-size: 14px; } .muted { color: var(--muted); font-size: 13px; }
a { color: var(--forest); }
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--forest); color: var(--white); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: var(--cream); color: var(--forest); display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.brand b { font-size: 21px; font-weight: 700; display: block; line-height: 1.1; } .brand small { font-size: 8px; letter-spacing: .14em; opacity: .85; }
.navgroup { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin: 16px 8px 6px; }
.nav { display: block; color: var(--white); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.nav:hover, .nav:focus-visible { background: rgba(255,255,255,.1); outline: none; } .nav.on { background: var(--cream); color: var(--forest); }
.who { margin-top: auto; padding: 14px 8px 0; font-size: 14px; } .who small { display: block; font-size: 11px; opacity: .85; }
.main { padding: 22px 28px 60px; min-width: 0; }
.card { background: var(--white); border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 20px; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px 28px; margin: 18px 0; }
.field label, .lbl { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; } .field div { font-size: 16px; }
.btn { background: var(--forest); color: var(--white); border: 0; border-radius: var(--r-sm); min-height: 44px; padding: 0 20px; font: 600 13px/1 inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--forest-2); } .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #7FB89A; outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); } .btn.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .row.end { align-items: flex-end; } .spread { justify-content: space-between; }
.tablewrap { overflow-x: auto; margin: 10px -6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; } th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 8px; white-space: nowrap; }
td { padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: top; } tr.click { cursor: pointer; } tr.click:hover td { background: #FBF8F1; }
.badge { display: inline-block; flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EEE9DC; color: var(--ink); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.notice { border-radius: var(--r-sm); padding: 12px 14px; margin: 10px 0; font-size: 14px; background: var(--warn-bg); color: #4D3300; } .notice.bad { background: var(--bad-bg); color: #5E1A12; } .notice.ok { background: var(--ok-bg); color: #0E3F25; }
form.f { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; align-items: end; margin: 12px 0; }
input, select, textarea { width: 100%; min-height: 42px; border: 1.5px solid #CFC8B6; border-radius: 10px; padding: 8px 10px; font: inherit; background: var(--white); color: var(--ink); }
textarea { min-height: 70px; } .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.tab { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 14px; font: 600 13px inherit; cursor: pointer; color: var(--ink); } .tab.on { background: var(--forest); border-color: var(--forest); color: var(--white); }
.check { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 4px; border-top: 1px solid var(--line); } .check small { display: block; color: var(--muted); font-size: 12px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .login .card { width: min(600px, 100%); padding: 44px; } .login .brand { color: var(--ink); margin: 0 0 44px; } .login .mark { background: var(--forest); color: var(--cream); }
.login .btn { width: 100%; margin-top: 14px; } .slip { border: 1px solid var(--line); border-radius: 16px; padding: 20px; } .slip td:last-child, .num { text-align: right; font-variant-numeric: tabular-nums; }
.bottom { display: none; }
/* top bar: on desktop it sits above the content, right of the sidebar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--forest); color: var(--white); padding: 10px 28px; position: sticky; top: 0; z-index: 30; }
.topbar .brand, .topbar .menubtn { display: none; } .topright { display: flex; align-items: center; gap: 12px; margin-left: auto; } .tname { font-size: 13.5px; font-weight: 600; }
.col { min-width: 0; }
.profile { position: relative; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: var(--cream); color: var(--forest); font: 700 14px/1 inherit; cursor: pointer; display: grid; place-items: center; padding: 0; }
.avatar.big { width: 46px; height: 46px; background: var(--forest); color: var(--cream); border: 0; cursor: default; flex: none; }
.pmenu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.22); padding: 16px; z-index: 40; }
.pmenu[hidden] { display: none; } .phead { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .phead small { display: block; color: var(--muted); font-size: 12px; }
.plabel { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 2px; } .psep { border-top: 1px solid var(--line); margin: 12px 0 6px; }
.pitem { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink); text-decoration: none; padding: 10px 8px; border-radius: 10px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pitem:hover, .pitem:focus-visible { background: var(--cream); outline: none; } .pitem.danger { color: var(--bad); }
.seg { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; } .seg button.on { background: var(--forest); color: var(--white); }
/* dark mode */
:root[data-theme="dark"] { --cream: #0E1512; --white: #18211C; --ink: #E8EEE9; --muted: #A3B0A8; --line: #2C3832; --forest: #1E6B44; --forest-2: #17573A;
  --ok-bg: #173A27; --ok: #8FD3AB; --warn-bg: #3A2F14; --warn: #F0C76A; --bad-bg: #3F1D18; --bad: #F2A196; color-scheme: dark; }
:root[data-theme="dark"] .side, :root[data-theme="dark"] .topbar { background: #0F3A25; color: #fff; }
:root[data-theme="dark"] .nav { color: #fff; } :root[data-theme="dark"] .side .mark, :root[data-theme="dark"] .topbar .mark { background: #E8EEE9; color: #0F3A25; }
:root[data-theme="dark"] .pmenu a.pitem { color: var(--ink); } :root[data-theme="dark"] .pitem.danger { color: var(--bad); }
:root[data-theme="dark"] .nav.on { background: #E8EEE9; color: #0F3A25; }
:root[data-theme="dark"] .avatar { background: #E8EEE9; color: #0F3A25; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { border-color: #3A4740; }
:root[data-theme="dark"] .badge { background: #26312B; } :root[data-theme="dark"] tr.click:hover td { background: #1F2A24; }
:root[data-theme="dark"] .notice { color: #F6E3B4; } :root[data-theme="dark"] .notice.bad { color: #F7CFC8; } :root[data-theme="dark"] .notice.ok { color: #CBEBD7; }
:root[data-theme="dark"] .btn.ghost { color: #8FD3AB; border-color: #8FD3AB; } :root[data-theme="dark"] a { color: #8FD3AB; }
:root[data-theme="dark"] .bottom a { color: var(--muted); } :root[data-theme="dark"] .bottom a.on { color: var(--ok); } :root[data-theme="dark"] .btn { color: #fff; }
@media (max-width: 1100px) { :root { --side: 216px; } .main { padding: 18px 18px 60px; } .cols { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .shell { display: block; } .side { display: none; position: fixed; inset: 0; z-index: 20; height: auto; } .side.open { display: flex; }
  .topbar { padding: 10px 14px; }
  .topbar .brand { display: flex; margin: 0; } .topbar .menubtn { display: inline-flex; } .tname { display: none; } .topbar .menubtn { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.6); border-radius: 10px; min-height: 40px; padding: 0 14px; font: 600 13px inherit; }
  .main { padding: 14px 12px 96px; } .card { padding: 20px 18px; border-radius: 20px; } h1 { font-size: 23px; }
  .bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 9; }
  .bottom a { text-align: center; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; padding: 10px 2px; border-radius: 10px; } .bottom a.on { color: var(--forest); background: var(--ok-bg); }
  .login .card { padding: 28px 22px; }
}
@media print { .side, .topbar, .pmenu, .bottom, .btn, .tabs { display: none !important; } .shell { display: block; } body { background: #fff; } }
