/* ===================================================================
   Bilcor HRM - modern dashboard & auth theme
   Brand: #0a4d40 (primary)  #098c73 (secondary)
   =================================================================== */
:root{
  --brand:#0a4d40;
  --brand-2:#098c73;
  --brand-grad:linear-gradient(135deg,#098c73 0%,#0a4d40 100%);
  --ink:#1f2a37;
  --muted:#6b7280;
  --line:#e7ebf0;
  --bg:#f4f7f6;
  --card:#ffffff;
  --radius:16px;
  --shadow:0 6px 24px rgba(10,77,64,.08);
  --shadow-sm:0 2px 10px rgba(16,24,40,.06);
  --sidebar-w:264px;
}
*{box-sizing:border-box}
.hrm-body{
  margin:0;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);color:var(--ink);font-size:15px;
}
h1,h2,h3,h4,h5,.hrm-heading{font-family:'Poppins',sans-serif}
a{text-decoration:none}

/* ---------- Layout ---------- */
.hrm-layout{display:flex;min-height:100vh}
.hrm-sidebar{
  width:var(--sidebar-w);flex:0 0 var(--sidebar-w);
  background:var(--brand-grad);color:#dff3ee;position:fixed;top:0;left:0;bottom:0;
  display:flex;flex-direction:column;z-index:1040;transition:transform .28s ease;
}
.hrm-main{margin-left:var(--sidebar-w);flex:1;min-width:0;display:flex;flex-direction:column;min-height:100vh;width:100%}

/* ---------- Brand ---------- */
.hrm-brand{display:flex;align-items:center;justify-content:space-between;padding:20px 18px;border-bottom:1px solid rgba(255,255,255,.12)}
.hrm-brand a{display:flex;align-items:center;gap:10px;color:#fff;font-family:'Poppins';font-weight:600;font-size:18px}
.hrm-brand img{height:34px;width:auto;background:#fff;border-radius:8px;padding:3px}
.hrm-sidebar-close{background:transparent;border:0;color:#fff;font-size:20px}

/* ---------- Nav ---------- */
.hrm-nav{padding:14px 12px;flex:1;overflow-y:auto}
.hrm-nav-link{
  display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:12px;
  color:#cfeae3;font-weight:500;margin-bottom:4px;transition:.18s;
}
.hrm-nav-link i{width:20px;text-align:center;font-size:15px}
.hrm-nav-link:hover{background:rgba(255,255,255,.12);color:#fff}
.hrm-nav-link.active{background:#fff;color:var(--brand);box-shadow:var(--shadow-sm)}
.hrm-sidebar-foot{padding:12px;border-top:1px solid rgba(255,255,255,.12)}
.hrm-sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(8,30,26,.45);z-index:1035}
.hrm-sidebar-backdrop.show{display:block}

/* ---------- Topbar ---------- */
.hrm-topbar{
  background:#fff;border-bottom:1px solid var(--line);padding:14px 26px;
  display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:1020;
}
.hrm-burger{background:transparent;border:0;font-size:20px;color:var(--brand)}
.hrm-topbar-title{flex:1;display:flex;align-items:center;gap:12px}
.hrm-topbar-title h1{font-size:20px;margin:0;font-weight:600}
.hrm-role-chip{background:rgba(9,140,115,.12);color:var(--brand);font-size:12px;font-weight:600;padding:4px 10px;border-radius:20px}
.hrm-user{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;border-radius:30px;padding:4px;transition:background .15s}
a.hrm-user:hover{background:rgba(9,140,115,.08)}
.hrm-user-meta strong{color:var(--ink)}
.hrm-avatar{width:42px;height:42px;border-radius:50%;background:var(--brand-grad);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;overflow:hidden}
.hrm-avatar img{width:100%;height:100%;object-fit:cover}
.hrm-user-meta{display:flex;flex-direction:column;line-height:1.1}
.hrm-user-meta small{color:var(--muted);font-size:12px}

/* ---------- Content ---------- */
.hrm-content{padding:26px;flex:1}
.hrm-footer{border-top:1px solid var(--line);background:#fff}
.hrm-footer-inner{padding:16px 26px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:13px}
.hrm-footer-links a{color:var(--brand);margin-left:14px;font-weight:500}

/* ---------- Cards / stats ---------- */
.hrm-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.hrm-card .hrm-card-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}
.hrm-card .hrm-card-head h3{margin:0;font-size:16px;font-weight:600}
.hrm-card .hrm-card-body{padding:20px}
.hrm-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;margin-bottom:22px}
.hrm-stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm);display:flex;align-items:center;gap:16px;position:relative;overflow:hidden}
.hrm-stat .ic{width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;color:#fff;background:var(--brand-grad);flex:0 0 auto}
.hrm-stat .v{font-size:26px;font-weight:700;font-family:'Poppins';line-height:1}
.hrm-stat .l{color:var(--muted);font-size:13px;margin-top:4px}
.hrm-stat.alt .ic{background:linear-gradient(135deg,#f5a623,#f08c00)}
.hrm-stat.alt2 .ic{background:linear-gradient(135deg,#3b82f6,#2563eb)}
.hrm-stat.alt3 .ic{background:linear-gradient(135deg,#ef4444,#b91c1c)}

/* ---------- Grid helpers ---------- */
.hrm-grid{display:grid;gap:18px}
.hrm-grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.hrm-grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}

/* ---------- Tables ---------- */
.hrm-table{width:100%;border-collapse:collapse;font-size:14px}
.hrm-table th,.hrm-table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.hrm-table th{font-weight:600;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.03em;background:#fafbfc}
.hrm-table tbody tr:hover{background:#f8fbfa}
.hrm-table-wrap{overflow-x:auto}

/* ---------- Buttons ---------- */
.btn-brand{background:var(--brand-grad);border:0;color:#fff;font-weight:600}
.btn-brand:hover{filter:brightness(1.06);color:#fff}
.btn-outline-brand{border:1px solid var(--brand);color:var(--brand);background:#fff;font-weight:600}
.btn-outline-brand:hover{background:var(--brand);color:#fff}
.text-brand{color:var(--brand)!important}
.bg-brand{background:var(--brand)!important;color:#fff}

/* ---------- Forms ---------- */
.hrm-form label{font-weight:500;margin-bottom:6px;font-size:14px}
.hrm-form .form-control,.hrm-form .form-select{border-radius:10px;padding:10px 12px;border:1px solid var(--line)}
.hrm-form .form-control:focus,.hrm-form .form-select:focus{border-color:var(--brand-2);box-shadow:0 0 0 .2rem rgba(9,140,115,.15)}

/* ---------- Empty state ---------- */
.hrm-empty{text-align:center;padding:46px 20px;color:var(--muted)}
.hrm-empty i{font-size:42px;color:#cbd5d1;margin-bottom:12px}

/* ===================================================================
   AUTH (login / register) - full screen branded
   =================================================================== */
.hrm-auth{min-height:100vh;display:flex;background:var(--brand-grad);align-items:center;justify-content:center;padding:24px;font-family:'Inter',sans-serif}
.hrm-auth-card{background:#fff;border-radius:22px;box-shadow:0 30px 60px rgba(0,0,0,.25);width:100%;max-width:560px;overflow:hidden}
.hrm-auth-head{padding:30px 34px 10px;text-align:center}
.hrm-auth-head img{height:48px;margin-bottom:10px}
.hrm-auth-head h2{font-family:'Poppins';font-size:24px;margin:0 0 6px;color:var(--brand)}
.hrm-auth-head p{color:var(--muted);margin:0}
.hrm-auth-body{padding:18px 34px 34px}
.hrm-auth-foot{text-align:center;padding:0 34px 28px;color:var(--muted)}
.hrm-auth-foot a{color:var(--brand);font-weight:600}

/* ---------- Wizard ---------- */
.wiz-steps{display:flex;justify-content:space-between;margin:6px 0 26px;position:relative}
.wiz-steps:before{content:"";position:absolute;top:18px;left:6%;right:6%;height:3px;background:var(--line);z-index:0}
.wiz-prog{position:absolute;top:18px;left:6%;height:3px;background:var(--brand-2);z-index:1;transition:width .3s ease;width:0}
.wiz-step{position:relative;z-index:2;text-align:center;flex:1}
.wiz-step .dot{width:38px;height:38px;border-radius:50%;background:#fff;border:3px solid var(--line);color:var(--muted);display:flex;align-items:center;justify-content:center;margin:0 auto 6px;font-weight:700;transition:.25s}
.wiz-step.active .dot,.wiz-step.done .dot{border-color:var(--brand-2);background:var(--brand-2);color:#fff}
.wiz-step small{font-size:11px;color:var(--muted)}
.wiz-step.active small{color:var(--brand);font-weight:600}
.wiz-pane{display:none;animation:fade .3s ease}
.wiz-pane.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* role cards */
.role-cards{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:520px){.role-cards{grid-template-columns:1fr 1fr}}
.role-card{border:2px solid var(--line);border-radius:14px;padding:18px;cursor:pointer;display:flex;gap:14px;align-items:center;transition:.18s;background:#fff}
.role-card:hover{border-color:var(--brand-2)}
.role-card.selected{border-color:var(--brand);background:rgba(9,140,115,.06)}
.role-card .ic{width:46px;height:46px;border-radius:12px;background:var(--brand-grad);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 auto}
.role-card h4{margin:0;font-size:15px;font-family:'Poppins'}
.role-card p{margin:0;font-size:12px;color:var(--muted)}

/* intl-tel-input width fix */
.iti{width:100%}

/* ===================================================================
   PUBLIC pages (jobs / talent) - integrate with site, scoped wrapper
   =================================================================== */
/* The main-site header (.wpo-site-header-s3) is position:absolute so it can overlay
   the homepage hero. These public pages have no hero, so it would cover the content.
   hrm.css loads ONLY on jobs/talent (never the homepage), so pinning it into normal
   flow here fixes the overlap without affecting the homepage hero overlay. */
.page-wrapper .wpo-site-header-s3{position:relative}
.page-wrapper .wpo-site-header-s3 .navigation{box-shadow:0 2px 12px rgba(10,77,64,.08)}
/* Sticky footer: keep the main site footer pinned to the bottom on short pages
   (jobs/talent) instead of floating mid-screen. Scoped to hrm.css = public pages. */
.page-wrapper{display:flex;flex-direction:column;min-height:100vh}
.page-wrapper .hrm-public{flex:1 0 auto}
.page-wrapper .wpo-site-footer{margin-top:auto}
.hrm-public{padding:40px 0;background:var(--bg)}
.hrm-public .container{max-width:1180px}
.job-card,.talent-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);transition:.2s;height:100%}
.job-card:hover,.talent-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.job-card .jc-body{padding:20px}
.job-card .jc-title{font-family:'Poppins';font-size:17px;color:var(--ink);font-weight:600;margin:0 0 4px}
.job-card .jc-emp{color:var(--muted);font-size:13px;margin-bottom:12px}
.job-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.job-chip{background:#eef5f3;color:var(--brand);font-size:12px;font-weight:600;padding:4px 10px;border-radius:20px}
.job-wage{font-weight:700;color:var(--brand);font-family:'Poppins'}
.filter-bar{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm);margin-bottom:24px}
.talent-card{padding:22px;text-align:center}
.talent-card .t-av{width:84px;height:84px;border-radius:50%;margin:0 auto 12px;background:var(--brand-grad);color:#fff;display:flex;align-items:center;justify-content:center;font-size:30px;font-family:'Poppins';overflow:hidden}
.talent-card .t-av img{width:100%;height:100%;object-fit:cover}
.section-head{text-align:center;margin-bottom:30px}
.section-head h2{font-family:'Poppins';color:var(--brand);font-weight:700}
.section-head p{color:var(--muted);max-width:640px;margin:0 auto}

/* payslip print */
.payslip{max-width:720px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:12px;padding:30px}
@media print{.no-print{display:none!important}.hrm-sidebar,.hrm-topbar,.hrm-footer{display:none!important}.hrm-main{margin:0!important}.hrm-content{padding:0!important}}

/* ===================================================================
   Skeleton / shimmer loading
   =================================================================== */
.skeleton{position:relative;overflow:hidden;background:#e9eef0;border-radius:8px}
.skeleton::after{content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);
  animation:shimmer 1.3s infinite}
@keyframes shimmer{100%{transform:translateX(100%)}}
.sk-line{height:12px;margin:8px 0;border-radius:6px}
.sk-line.lg{height:18px}
.sk-line.w40{width:40%}.sk-line.w60{width:60%}.sk-line.w80{width:80%}.sk-line.w100{width:100%}
.sk-circle{width:48px;height:48px;border-radius:50%}
.sk-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm)}
.sk-chip{display:inline-block;height:20px;width:64px;border-radius:20px;margin-right:6px}

/* ===================================================================
   Notification bell + dropdown
   =================================================================== */
.hrm-bell{position:relative;background:transparent;border:0;width:42px;height:42px;border-radius:50%;color:var(--brand);font-size:18px;transition:.15s}
.hrm-bell:hover{background:rgba(9,140,115,.1)}
.hrm-bell .dot{position:absolute;top:6px;right:6px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;display:none;align-items:center;justify-content:center;line-height:18px}
.hrm-bell .dot.show{display:flex}
.hrm-noti{position:absolute;top:54px;right:18px;width:340px;max-width:calc(100vw - 24px);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);z-index:1100;display:none;overflow:hidden}
.hrm-noti.show{display:block;animation:fade .2s ease}
.hrm-noti-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.hrm-noti-head h4{margin:0;font-size:15px;font-family:'Poppins'}
.hrm-noti-list{max-height:380px;overflow-y:auto}
.hrm-noti-item{display:flex;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);color:var(--ink);transition:.12s}
.hrm-noti-item:hover{background:#f6faf9}
.hrm-noti-item.unread{background:rgba(9,140,115,.07)}
.hrm-noti-item .nic{width:34px;height:34px;border-radius:50%;background:var(--brand-grad);color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:13px}
.hrm-noti-item .ntext{font-size:13px;line-height:1.4}
.hrm-noti-item .nago{color:var(--muted);font-size:11px}
.hrm-noti-empty{padding:30px;text-align:center;color:var(--muted);font-size:13px}
.hrm-topbar-right{display:flex;align-items:center;gap:8px}

/* install button */
#hrmInstallBtn{display:none;align-items:center;gap:6px}

/* ===================================================================
   Smart search autocomplete
   =================================================================== */
.hrm-ac-wrap{position:relative}
.hrm-ac{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:1200;display:none;overflow:hidden}
.hrm-ac.show{display:block;animation:fade .15s ease}
.hrm-ac-item{display:flex;gap:12px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line);cursor:pointer;color:var(--ink)}
.hrm-ac-item:last-child{border-bottom:0}
.hrm-ac-item:hover,.hrm-ac-item.active{background:#f3f8f6}
.hrm-ac-item .aic{width:34px;height:34px;border-radius:9px;background:#eef5f3;color:var(--brand);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.hrm-ac-item .atext b{display:block;font-size:14px}
.hrm-ac-item .atext small{color:var(--muted);font-size:12px}
.hrm-ac-sugs{padding:8px 14px;display:flex;flex-wrap:wrap;gap:6px;background:#fafbfc;border-bottom:1px solid var(--line)}
.hrm-ac-sugs a{font-size:12px;background:#eef5f3;color:var(--brand);padding:3px 10px;border-radius:20px;font-weight:600}
.hrm-ac-empty{padding:18px;text-align:center;color:var(--muted);font-size:13px}
mark{background:#fff2ab;padding:0 1px}

/* ---------- Responsive ---------- */
@media(max-width:991.98px){
  .hrm-sidebar{transform:translateX(-100%)}
  .hrm-sidebar.open{transform:translateX(0)}
  .hrm-main{margin-left:0}
}
@media(max-width:575.98px){
  .hrm-content{padding:16px}
  .hrm-topbar{padding:12px 16px}
  .hrm-user-meta{display:none}
  .hrm-auth-body,.hrm-auth-head{padding-left:20px;padding-right:20px}
}

/* ===================================================================
   Modern image uploader (avatar / company logo) - click-to-upload
   =================================================================== */
.img-uploader{display:flex;flex-direction:column;align-items:center;gap:10px}
.img-uploader .iu-preview{
  position:relative;width:130px;height:130px;border-radius:50%;
  background:var(--brand-grad);color:#fff;cursor:pointer;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  font-family:'Poppins';font-size:40px;font-weight:600;
  border:3px solid #fff;box-shadow:0 10px 26px rgba(10,77,64,.22);
  transition:transform .18s ease,box-shadow .18s ease;outline:none
}
.img-uploader[data-shape="square"] .iu-preview{border-radius:18px}
.img-uploader .iu-preview:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(10,77,64,.3)}
.img-uploader .iu-preview:focus-visible{box-shadow:0 0 0 4px rgba(9,140,115,.35)}
.img-uploader .iu-preview.is-empty{
  background:#f3f8f6;color:var(--brand-2);border:2px dashed var(--brand-2);box-shadow:none
}
.img-uploader .iu-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
.img-uploader .iu-preview.has-img img{display:block}
.img-uploader .iu-preview.has-img .iu-ph{display:none}
.img-uploader .iu-ph{display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none}
.img-uploader .iu-ph i{font-size:34px;line-height:1}
.img-uploader .iu-ph small{font-size:11px;font-weight:600;letter-spacing:.3px}
.img-uploader .iu-overlay{
  position:absolute;left:0;right:0;bottom:0;padding:8px 4px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.6));
  color:#fff;font-size:12px;font-weight:600;text-align:center;
  opacity:0;transform:translateY(6px);transition:.18s;pointer-events:none
}
.img-uploader .iu-preview:hover .iu-overlay,
.img-uploader .iu-preview.has-img .iu-overlay{opacity:1;transform:none}
.img-uploader .iu-hint{font-size:12px;color:var(--muted);text-align:center;margin:0}
.img-uploader .iu-remove{
  background:none;border:0;color:#ef4444;font-size:12px;font-weight:600;cursor:pointer;padding:0;display:none
}
.img-uploader .iu-remove.show{display:inline-block}
