/* ADS HR – styles. Brand: ADS blue #155886, ADS green #86c336 */
:root{
  --blue:#155886; --blue-d:#0e3f61; --navy:#0f3d5e; --green:#86c336; --green-d:#2f5c10; --green-l:#e7f4d8;
  --blue-l:#e3eef7; --orange-l:#fdeee2; --orange-d:#8a3505; --red-l:#fde8e4; --red-d:#9a2a14;
  --ink:#1d2733; --muted:#4b5b6b; --muted2:#5b6b7a; --line:#e1e8ee; --line2:#eef2f5; --bg:#f4f7f9; --field:#c9d5df;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.5}
h1,h2,h3{font-family:Nunito,Inter,sans-serif;color:var(--navy);line-height:1.2}
h1{font-size:26px;margin:0}
h2{font-size:18px;margin:0 0 12px}
h3{font-size:16px;margin:0 0 8px}
a{color:var(--blue)} a:hover{color:var(--blue-d)}
img{max-width:100%}

/* layout */
.shell{display:flex;min-height:100vh}
.side{width:248px;flex:0 0 248px;background:var(--navy);padding:18px 14px;display:flex;flex-direction:column;gap:3px}
.side .logo{background:#fff;border-radius:10px;padding:8px 12px;margin-bottom:16px;align-self:flex-start}
.side .logo img{height:42px;display:block}
.side a.nav{color:#d7e6f1;text-decoration:none;padding:0 12px;border-radius:8px;font-size:14px;display:flex;align-items:center;justify-content:space-between;min-height:42px}
.side a.nav:hover{background:rgba(255,255,255,.08);color:#fff}
.side a.nav.on{background:var(--green);color:#13280a;font-weight:600}
.side .sep{height:1px;background:rgba(255,255,255,.12);margin:10px 4px}
.side .badge{background:#fff;color:var(--navy);border-radius:99px;font-size:12px;font-weight:700;padding:1px 8px}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 28px;background:#fff;border-bottom:1px solid var(--line)}
.topbar .who{font-size:14px;color:var(--muted)}
.topbar .who strong{color:var(--ink)}
.topbar .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.content{padding:26px 28px 48px;display:flex;flex-direction:column;gap:20px;max-width:1400px;width:100%}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.page-head p{margin:4px 0 0;color:var(--muted);font-size:14px}
.crumbs{font-size:14px;color:var(--muted2)}

/* cards & grids */
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}
.card > h2:first-child{margin-top:0}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.grid-2{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(380px,1fr))}
.stat .label{margin:0;font-size:13px;color:var(--muted2)}
.stat .num{margin:6px 0 0;font-size:30px;font-weight:700;color:var(--navy)}
.stat .sub{margin:4px 0 0;font-size:13px;color:var(--muted)}
.stat .num.warn{color:#b4470b}
dl.facts{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
dl.facts dt{font-size:12px;color:var(--muted2);text-transform:uppercase;letter-spacing:.04em}
dl.facts dd{margin:3px 0 0;font-size:15px;overflow-wrap:anywhere}

/* tables */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted2);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:11px 12px;border-bottom:1px solid var(--line2);vertical-align:top}
.tbl td.num,.tbl th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.tbl tr.total td{font-weight:700;border-top:1px solid var(--muted2)}
.tbl tbody tr:hover{background:#fafcfd}
.empty{padding:28px;text-align:center;color:var(--muted2)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 16px;border-radius:8px;border:1px solid var(--blue);background:var(--blue);color:#fff;font:600 14px Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
.btn:hover{background:#fff;color:var(--blue)}
.btn.ghost{background:#fff;color:var(--ink);border-color:var(--field)}
.btn.ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn.green{background:var(--green-l);color:var(--green-d);border-color:var(--green-l)}
.btn.green:hover{border-color:var(--green-d)}
.btn.soft{background:var(--blue-l);color:var(--blue);border-color:var(--blue-l)}
.btn.soft:hover{border-color:var(--blue)}
.btn.danger{background:#fff;color:var(--red-d);border-color:#e7b8ad}
.btn.danger:hover{background:var(--red-l)}
.btn.sm{min-height:34px;padding:0 11px;font-size:13px}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.btn-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
form.inline{display:inline}
.btn.menu-btn{display:none}
.btn-row .pill,.alert .pill{white-space:normal}

/* pills */
.pill{display:inline-block;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--line2);color:var(--muted);white-space:nowrap}
.pill.green{background:var(--green-l);color:var(--green-d)}
.pill.blue{background:var(--blue-l);color:var(--blue)}
.pill.orange{background:var(--orange-l);color:var(--orange-d)}
.pill.red{background:var(--red-l);color:var(--red-d)}

/* forms */
.form{display:flex;flex-direction:column;gap:16px}
.fields{display:grid;gap:14px 16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.field small{font-weight:400;color:var(--muted2)}
.field.full{grid-column:1/-1}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=month],input[type=search],input[type=tel],select,textarea{
  width:100%;min-height:44px;border:1px solid var(--field);border-radius:8px;padding:0 12px;font:400 15px Inter,system-ui,sans-serif;color:var(--ink);background:#fff}
textarea{padding:10px 12px;min-height:90px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:1px}
.check{display:flex;gap:8px;align-items:center;font-weight:400}
.check input{width:18px;height:18px}
fieldset{border:1px solid var(--line);border-radius:10px;padding:14px 16px}
legend{font-weight:700;color:var(--navy);padding:0 6px}
.help{font-size:13px;color:var(--muted2);margin:0}

/* alerts */
.alert{padding:12px 16px;border-radius:10px;font-size:14px}
.alert.success{background:var(--green-l);color:var(--green-d)}
.alert.error{background:var(--red-l);color:var(--red-d)}
.alert.info{background:var(--blue-l);color:var(--navy)}
.alert.warn{background:var(--orange-l);color:var(--orange-d)}

/* tabs */
.tabs{display:flex;gap:4px;border-bottom:1px solid #d5dee6;overflow-x:auto}
.tabs a{min-height:44px;padding:0 16px;display:flex;align-items:center;border-bottom:3px solid transparent;color:var(--muted);text-decoration:none;font-size:14px;font-weight:500;white-space:nowrap}
.tabs a.on{border-bottom-color:var(--blue);color:var(--blue);font-weight:600}

.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.steps li{padding:12px 14px;border-radius:10px;background:var(--line2);color:var(--muted);font-size:14px;font-weight:600}
.steps li.done{background:var(--green-l);color:var(--green-d)}
.steps li.now{background:var(--blue);color:#fff}

.avatar{width:64px;height:64px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font:700 22px Nunito,Inter,sans-serif;flex:0 0 auto}
.bar{height:8px;background:var(--line2);border-radius:99px;min-width:70px}
.bar > span{display:block;height:8px;background:var(--blue);border-radius:99px}
.muted{color:var(--muted2)}
.right{text-align:right}
.nowrap{white-space:nowrap}
.sr{position:absolute;left:-9999px}

/* auth & public */
.auth{min-height:100vh;display:flex;flex-wrap:wrap}
.auth .hero{flex:1 1 420px;background:var(--navy);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;gap:40px}
.auth .hero .logo{background:#fff;border-radius:12px;padding:10px 16px;align-self:flex-start}
.auth .hero .logo img{height:60px;display:block}
.auth .hero h1{color:#fff;font-size:40px;max-width:460px}
.auth .hero p{color:#cfe0ec;font-size:17px;max-width:460px}
.auth .panel{flex:1 1 420px;display:flex;align-items:center;justify-content:center;padding:48px 24px}
.auth form{width:100%;max-width:400px}
.lang-switch{display:flex;gap:4px;justify-content:flex-end}
.lang-switch a{min-width:44px;height:36px;border-radius:6px;border:1px solid var(--field);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;text-decoration:none;color:var(--ink);background:#fff}
.lang-switch a.on{background:var(--blue);border-color:var(--blue);color:#fff}
.pub-head{background:#fff;border-bottom:1px solid var(--line)}
.pub-wrap{max-width:1120px;margin:0 auto;padding:14px 24px}
.pub-head .pub-wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.pub-hero{background:var(--navy);color:#fff}
.pub-hero .pub-wrap{padding:52px 24px}
.pub-hero h1{color:#fff;font-size:38px;max-width:740px}
.pub-hero p{color:#cfe0ec;font-size:17px;max-width:640px}
.job-card{display:flex;flex-direction:column;gap:10px}
.prose{line-height:1.7}
.prose p{margin:0 0 12px}

@media (max-width: 900px){
  .shell{display:block}
  .side{width:auto;display:none;position:fixed;inset:0 25% 0 0;z-index:30;overflow-y:auto;box-shadow:0 0 0 100vmax rgba(10,30,45,.45)}
  .side.open{display:flex}
  .btn.menu-btn{display:inline-flex}
  .topbar .who,.hide-sm{display:none}
  .grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .stat .num{font-size:24px}
  .card{padding:16px}
  .topbar{padding:10px 16px;position:sticky;top:0;z-index:20}
  .topbar .who span.role{display:none}
  .content{padding:18px 16px 40px}
  h1{font-size:23px}
  .auth .hero{padding:32px 24px}
  .auth .hero h1{font-size:30px}
  .pub-hero h1{font-size:28px}
  .grid-2{grid-template-columns:1fr}
}
@media (max-width: 420px){
  .side{inset:0 12% 0 0}
}
@media print{
  .side,.topbar,.no-print{display:none!important}
  body{background:#fff}
}
