/* ===========================================================================
   InterSpace HR — shared stylesheet
   Base design language from the approved mockup, extended for the full app.
   =========================================================================== */
:root{
  --outer:#b9bcc7;
  --panel:#ffffff;
  --rail-bg:#f7f7fb;
  --ink:#1c1c28;
  --muted:#8e8ea0;
  --muted-2:#b0b0c0;
  --purple:#6f5ce8;
  --purple-deep:#5b48d9;
  --lavender:#dcd6fb;
  --lavender-2:#eceafc;
  --line:#ececf2;
  --blue-tag-bg:#e3f5fb; --blue-tag:#2fa8d5;
  --pink-tag-bg:#fbe7f5; --pink-tag:#df4eb0;
  --purple-tag-bg:#ebe7fc; --purple-tag:#6f5ce8;
  --green-tag-bg:#e4f7ee; --green-tag:#2e9d6b;
  --amber-tag-bg:#fdf0df; --amber-tag:#d98b2e;
  --red-tag-bg:#fce8e8; --red-tag:#d65151;
  --orange:#f0662b;
}
*{margin:0;padding:0;box-sizing:border-box;}
body{
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--outer);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  padding:34px;
  min-height:100vh;
}
a{color:inherit;}
.frame{
  background:var(--panel);
  border-radius:26px;
  max-width:1880px;
  margin:0 auto;
  display:grid;
  grid-template-columns:296px 1fr;
  overflow:hidden;
  box-shadow:0 30px 60px -30px rgba(30,30,60,.25);
}

/* ================= SIDEBAR ================= */
.sidebar{
  border-right:1px solid var(--line);
  padding:34px 30px 30px;
  display:flex;
  flex-direction:column;
  min-height:1320px;
}
.logo{
  display:flex;align-items:center;gap:13px;
  font-size:24px;font-weight:800;letter-spacing:-.3px;
  margin-bottom:54px;
  text-decoration:none;
}
.logo-mark{
  width:42px;height:42px;border-radius:50%;
  background:var(--purple);
  display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;
}
.side-label{
  font-size:12.5px;font-weight:600;letter-spacing:1.6px;
  color:var(--muted-2);
  text-transform:uppercase;
  margin:0 0 22px 12px;
}
.nav-item{
  display:flex;align-items:center;gap:16px;
  padding:13px 12px;
  border-radius:12px;
  font-size:17px;font-weight:600;
  color:#3c3c4e;
  text-decoration:none;
  margin-bottom:14px;
}
.nav-item svg{flex:0 0 auto;}
.nav-item.active{color:var(--ink);font-weight:700;background:var(--lavender-2);}
.team-block{margin-top:42px;}
.person{
  display:flex;align-items:center;gap:14px;
  padding:8px 12px;
  margin-bottom:16px;
}
.avatar{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:700;color:#fff;
  flex:0 0 auto;
  letter-spacing:.3px;
}
.av-sm{width:38px;height:38px;font-size:13px;}
.av-1{background:linear-gradient(135deg,#f0a14e,#dd7335);}
.av-2{background:linear-gradient(135deg,#62aef0,#3f74dd);}
.av-3{background:linear-gradient(135deg,#52555e,#2e3138);}
.av-4{background:linear-gradient(135deg,#9a6fe8,#6f5ce8);}
.av-5{background:linear-gradient(135deg,#e87b9d,#d94f78);}
.av-6{background:linear-gradient(135deg,#48c2a8,#2e9d85);}
.av-7{background:linear-gradient(135deg,#e8b14f,#d98b2e);}
.person div b{display:block;font-size:16px;font-weight:700;}
.person div span{display:block;font-size:13.5px;color:var(--muted);margin-top:3px;font-weight:500;}
.settings-block{margin-top:auto;padding-top:60px;}
.nav-item.logout{color:var(--orange);}

/* ================= CONTENT GRID ================= */
.content{
  display:grid;
  grid-template-columns:1fr 472px;
  gap:0 46px;
  padding:34px 42px 42px;
  align-content:start;
}
.content.no-rail{grid-template-columns:1fr;}
.topbar-row{
  grid-column:1 / -1;
  display:flex;align-items:center;gap:28px;
  margin-bottom:2px;
}
.topbar-row .search{flex:1;}

/* Topbar */
.search{
  display:flex;align-items:center;gap:12px;
  border:1px solid #e3e3ea;
  border-radius:999px;
  padding:0 24px;
  height:56px;
  color:var(--muted);
  font-size:16px;
  font-weight:500;
  background:#fff;
}
.search input{
  border:none;outline:none;background:transparent;
  font-family:inherit;font-size:16px;font-weight:500;color:var(--ink);
  width:100%;
}
.search input::placeholder{color:var(--muted);}
.top-right{
  display:flex;align-items:center;justify-content:flex-end;gap:16px;
}
.icon-btn{
  width:52px;height:52px;border-radius:50%;
  border:1px solid #e3e3ea;
  display:flex;align-items:center;justify-content:center;
  position:relative;
  background:#fff;
  text-decoration:none;
}
.icon-btn .dot{
  position:absolute;top:13px;right:15px;
  width:7px;height:7px;border-radius:50%;
  background:var(--orange);
  border:1.5px solid #fff;
}
.top-divider{width:1px;height:40px;background:#e3e3ea;margin:0 8px;}
.profile{display:flex;align-items:center;gap:14px;font-size:18px;font-weight:700;text-decoration:none;}

/* ================= MAIN COLUMN ================= */
.main{min-width:0;}

.banner{
  position:relative;
  margin-top:32px;
  background:linear-gradient(118deg,#7a68ec 0%,#6f5ce8 55%,#6a55e6 100%);
  border-radius:22px;
  padding:40px 44px 42px;
  color:#fff;
  overflow:hidden;
}
.banner .eyebrow{
  font-size:13.5px;font-weight:700;letter-spacing:3px;
  text-transform:uppercase;
  opacity:.92;
}
.banner h1{
  font-size:42px;line-height:1.22;
  font-weight:600;letter-spacing:-.4px;
  margin:14px 0 30px;
  max-width:620px;
}
.banner .cta{
  display:inline-flex;align-items:center;gap:14px;
  background:#101015;
  color:#fff;
  border:none;
  font-family:inherit;
  font-size:16.5px;font-weight:600;
  padding:10px 10px 10px 26px;
  border-radius:999px;
  cursor:pointer;
  text-decoration:none;
}
.banner .cta i{
  width:36px;height:36px;border-radius:50%;
  background:#fff;
  display:flex;align-items:center;justify-content:center;
  font-style:normal;
}
.spark{position:absolute;opacity:.9;}
.spark.dim{opacity:.28;}

/* Stat chips */
.chips{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:30px;
}
.chip{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:15px 16px;
  display:flex;align-items:center;gap:14px;
  box-shadow:0 10px 24px -18px rgba(30,30,60,.18);
  text-decoration:none;color:inherit;
}
.chip .ic{
  width:52px;height:52px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;
}
.ic-purple{background:#eeeafd;}
.ic-pink{background:#fce9f3;}
.ic-blue{background:#e4f6fb;}
.ic-green{background:#e4f7ee;}
.chip .meta{flex:1;min-width:0;}
.chip .meta span{display:block;font-size:13.5px;color:var(--muted);font-weight:500;white-space:nowrap;}
.chip .meta b{display:block;font-size:18px;font-weight:700;margin-top:4px;letter-spacing:-.2px;white-space:nowrap;}
.kebab{color:#b9b9c6;flex:0 0 auto;}

/* Section headers */
.section-head{
  display:flex;align-items:center;justify-content:space-between;
  margin:44px 0 26px;
}
.section-head h2{font-size:25px;font-weight:700;letter-spacing:-.3px;}
.pager{display:flex;gap:12px;}
.pager .pg{
  width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #e3e3ea;background:#fff;text-decoration:none;
}
.pager .pg.solid{background:var(--purple);border-color:var(--purple);}
.see-all{font-size:15.5px;font-weight:600;color:#5b5b6e;text-decoration:underline;text-underline-offset:3px;}

/* Department cards */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}
.card{background:#fff;min-width:0;}
.card .thumb{
  position:relative;
  height:208px;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(135deg,#cfd3e8,#aab1d6);
}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.heart{
  position:absolute;top:14px;right:14px;
  width:40px;height:40px;border-radius:50%;
  background:rgba(20,20,30,.55);
  backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;
}
.tag{
  display:inline-flex;align-items:center;gap:7px;
  font-size:12.5px;font-weight:700;letter-spacing:1.2px;
  border-radius:8px;
  padding:7px 11px;
  margin:18px 0 12px;
}
.tag.blue{background:var(--blue-tag-bg);color:var(--blue-tag);}
.tag.pink{background:var(--pink-tag-bg);color:var(--pink-tag);}
.tag.purple{background:var(--purple-tag-bg);color:var(--purple-tag);}
.tag.green{background:var(--green-tag-bg);color:var(--green-tag);}
.tag.amber{background:var(--amber-tag-bg);color:var(--amber-tag);}
.tag.red{background:var(--red-tag-bg);color:var(--red-tag);}
.card h3{
  font-size:18px;font-weight:700;line-height:1.45;letter-spacing:-.2px;
  min-height:78px;
}
.progress{
  height:5px;border-radius:99px;background:#ededf3;
  margin:20px 0 0;
  overflow:hidden;
}
.progress i{display:block;height:100%;border-radius:99px;background:var(--purple);}
.card .foot{
  display:flex;align-items:center;gap:13px;
  border-top:1px solid var(--line);
  margin-top:18px;
  padding-top:16px;
}
.card .foot div b{display:block;font-size:15.5px;font-weight:700;}
.card .foot div span{display:block;font-size:13px;color:var(--muted);margin-top:2px;font-weight:500;}

/* Activities / data table */
.table{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
}
.trow{
  display:grid;
  grid-template-columns:1.25fr 1fr 1.35fr 110px;
  align-items:center;
  padding:18px 28px;
}
.trow.head{
  background:#fafafc;
  font-size:13px;font-weight:700;letter-spacing:1.4px;
  color:var(--muted);
  text-transform:uppercase;
  padding:16px 28px;
}
.trow + .trow{border-top:1px solid var(--line);}
.t-emp{display:flex;align-items:center;gap:14px;}
.t-emp div b{display:block;font-size:16.5px;font-weight:700;}
.t-emp div span{display:block;font-size:13.5px;color:var(--muted);margin-top:3px;font-weight:500;}
.t-type .tag{margin:0;}
.t-desc{font-size:16px;font-weight:600;letter-spacing:-.1px;}
.t-action{display:flex;justify-content:center;}
.go{
  width:40px;height:40px;border-radius:50%;
  border:1px solid #d9d9e3;
  display:flex;align-items:center;justify-content:center;
  background:#fff;text-decoration:none;
}
.trow.head .t-action{justify-content:center;}

/* ================= RIGHT RAIL ================= */
.rail{
  background:var(--rail-bg);
  border:1px solid #efeff5;
  border-radius:22px;
  padding:28px 28px 30px;
  margin-top:32px;
  align-self:start;
}
.rail-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:8px;
}
.rail-head h2{font-size:22px;font-weight:700;letter-spacing:-.2px;}

.stat-hero{text-align:center;padding:10px 0 6px;}
.ring-wrap{position:relative;width:200px;height:200px;margin:0 auto;}
.ring-wrap svg{position:absolute;inset:0;}
.ring-avatar{
  position:absolute;inset:14px;
  border-radius:50%;
  background:#efe6ef;
  display:flex;align-items:center;justify-content:center;
  font-size:46px;font-weight:800;color:#7a5c8e;
  letter-spacing:1px;
}
.ring-badge{
  position:absolute;top:6px;right:2px;
  background:var(--purple);
  color:#fff;
  font-size:14px;font-weight:700;
  padding:8px 13px;
  border-radius:999px;
  box-shadow:0 6px 14px -6px rgba(111,92,232,.7);
}
.stat-hero h3{font-size:25px;font-weight:700;margin-top:22px;letter-spacing:-.3px;}
.stat-hero p{font-size:15.5px;color:var(--muted);font-weight:500;margin-top:8px;}

/* Wallet balance card (rail) */
.wallet-card{
  background:linear-gradient(135deg,#1c1c28,#2c2c44);
  color:#fff;
  border-radius:18px;
  margin-top:26px;
  padding:24px 24px 22px;
  position:relative;
  overflow:hidden;
}
.wallet-card .wc-label{font-size:13px;font-weight:600;letter-spacing:1.4px;text-transform:uppercase;opacity:.7;display:flex;align-items:center;gap:9px;}
.wallet-card .wc-bal{font-size:34px;font-weight:800;letter-spacing:-.6px;margin-top:12px;}
.wallet-card .wc-rows{display:flex;gap:22px;margin-top:18px;}
.wallet-card .wc-rows div span{display:block;font-size:12px;opacity:.6;font-weight:600;letter-spacing:.4px;text-transform:uppercase;}
.wallet-card .wc-rows div b{display:block;font-size:15.5px;font-weight:700;margin-top:4px;}
.wallet-card .wc-rows .pos b{color:#6fe0b0;}
.wallet-card .wc-rows .neg b{color:#ff9a9a;}
.wallet-card .wc-foot{margin-top:18px;font-size:12.5px;opacity:.55;font-weight:500;}

.chart-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  margin-top:26px;
  padding:26px 24px 18px;
}
.chart-card .cc-title{font-size:15px;font-weight:700;color:#5b5b6e;margin-bottom:18px;}
.chart{position:relative;height:190px;}
.gridline{position:absolute;left:38px;right:0;border-top:1.5px dashed #e4e4ec;}
.gl-1{top:8px;} .gl-2{top:74px;} .gl-3{top:140px;}
.ylab{position:absolute;left:0;font-size:14px;color:#9a9aab;font-weight:600;transform:translateY(-50%);}
.chart-bars{
  position:absolute;left:46px;right:6px;bottom:28px;top:0;
  display:flex;align-items:flex-end;justify-content:space-between;
}
.cbar{width:44px;border-radius:10px;min-height:4px;}
.cbar.lite{background:var(--lavender);}
.cbar.solid{background:var(--purple);}
.x-row{position:absolute;left:46px;right:6px;bottom:0;display:flex;justify-content:space-between;}
.x-row span{font-size:14px;color:#9a9aab;font-weight:600;}

.mentor-head{
  display:flex;align-items:center;justify-content:space-between;
  margin:34px 0 20px;
}
.mentor-head h2{font-size:22px;font-weight:700;letter-spacing:-.2px;}
.plus-btn{
  width:40px;height:40px;border-radius:50%;
  border:1px solid #dcdce6;background:transparent;
  display:flex;align-items:center;justify-content:center;text-decoration:none;
}
.approvals{
  background:#fff;border:1px solid var(--line);border-radius:18px;
  padding:8px 22px 22px;
}
.appr-row{display:flex;align-items:center;gap:15px;padding:18px 2px;}
.appr-row + .appr-row{border-top:1.5px dashed #e7e7ee;}
.appr-row .who{flex:1;min-width:0;}
.who b{display:block;font-size:16.5px;font-weight:700;}
.who span{display:block;font-size:13.5px;color:var(--muted);margin-top:3px;font-weight:500;}
.pill-btn{
  display:inline-flex;align-items:center;gap:9px;
  border:1.5px solid #cdc6f5;color:var(--purple);background:#fff;
  font-family:inherit;font-size:15px;font-weight:700;
  padding:11px 20px;border-radius:999px;cursor:pointer;text-decoration:none;
}
.seeall-btn{
  display:block;width:100%;margin-top:20px;
  background:var(--lavender-2);border:none;color:#3a3a4a;
  font-family:inherit;font-size:16.5px;font-weight:700;
  padding:18px 0;border-radius:999px;cursor:pointer;text-align:center;text-decoration:none;
}
.avatar-stack{position:relative;flex:0 0 auto;}
.badge-add{
  position:absolute;right:-2px;bottom:-2px;
  width:17px;height:17px;border-radius:50%;
  background:#101015;border:2px solid #fff;
  display:flex;align-items:center;justify-content:center;
}

/* ===========================================================================
   Extended app primitives (employees / attendance / leave / payroll / settings)
   =========================================================================== */
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-top:32px;margin-bottom:8px;}
.page-head .ph-eyebrow{font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--purple);}
.page-head h1{font-size:34px;font-weight:700;letter-spacing:-.5px;margin-top:8px;}
.page-head p{font-size:15.5px;color:var(--muted);font-weight:500;margin-top:8px;max-width:640px;}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  font-family:inherit;font-size:15.5px;font-weight:700;
  padding:13px 22px;border-radius:999px;border:none;cursor:pointer;text-decoration:none;
}
.btn-primary{background:var(--purple);color:#fff;}
.btn-dark{background:#101015;color:#fff;}
.btn-ghost{background:#fff;border:1.5px solid #d9d9e3;color:#3c3c4e;}
.btn-sm{padding:9px 16px;font-size:14px;}
.btn-danger{background:#fff;border:1.5px solid #f0c2c2;color:#d65151;}
.btn-success{background:#fff;border:1.5px solid #b7e4cd;color:#2e9d6b;}

/* tiles row */
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:28px;}
.tile{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px 22px;box-shadow:0 10px 24px -20px rgba(30,30,60,.2);}
.tile .tl-ic{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:16px;}
.tile .tl-val{font-size:28px;font-weight:800;letter-spacing:-.6px;}
.tile .tl-label{font-size:14px;color:var(--muted);font-weight:600;margin-top:6px;}
.tile.span2{grid-column:span 2;}

/* generic data tables */
.dtable{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;}
.dtable thead th{
  background:#fafafc;text-align:left;
  font-size:12.5px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);
  padding:16px 24px;
}
.dtable tbody td{padding:18px 24px;border-top:1px solid var(--line);font-size:15.5px;font-weight:500;vertical-align:middle;}
.dtable tbody tr:hover{background:#fbfbfe;}
.cell-emp{display:flex;align-items:center;gap:13px;}
.cell-emp b{display:block;font-size:15.5px;font-weight:700;}
.cell-emp span{display:block;font-size:13px;color:var(--muted);margin-top:2px;font-weight:500;}
.muted{color:var(--muted);font-weight:500;}
.num{font-variant-numeric:tabular-nums;font-weight:700;}

/* status badges */
.badge{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;letter-spacing:.3px;padding:6px 12px;border-radius:999px;}
.badge.green{background:var(--green-tag-bg);color:var(--green-tag);}
.badge.amber{background:var(--amber-tag-bg);color:var(--amber-tag);}
.badge.red{background:var(--red-tag-bg);color:var(--red-tag);}
.badge.blue{background:var(--blue-tag-bg);color:var(--blue-tag);}
.badge.purple{background:var(--purple-tag-bg);color:var(--purple-tag);}
.badge.grey{background:#eef0f4;color:#7a7a8c;}
.dotted{width:7px;height:7px;border-radius:50%;background:currentColor;}

/* panels / forms */
.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 28px;}
.panel h3{font-size:18px;font-weight:700;margin-bottom:18px;letter-spacing:-.2px;}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;}
.field label{font-size:13.5px;font-weight:700;color:#4a4a5c;}
.field input,.field select,.field textarea{
  font-family:inherit;font-size:15px;font-weight:500;color:var(--ink);
  border:1.5px solid #e3e3ea;border-radius:12px;padding:13px 16px;background:#fff;outline:none;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--purple);}
.field textarea{resize:vertical;min-height:90px;}

/* layout split for pages with a form + list */
.split{display:grid;grid-template-columns:1fr 380px;gap:32px;align-items:start;}
@media(max-width:1400px){.split{grid-template-columns:1fr;}}

/* empty state */
.empty{
  background:#fff;border:1.5px dashed #dcdce6;border-radius:18px;
  padding:54px 30px;text-align:center;color:var(--muted);
}
.empty .em-ic{width:58px;height:58px;border-radius:50%;background:var(--lavender-2);display:flex;align-items:center;justify-content:center;margin:0 auto 18px;}
.empty b{display:block;font-size:18px;font-weight:700;color:var(--ink);margin-bottom:8px;}
.empty p{font-size:14.5px;font-weight:500;}

/* live clock pill */
.live-pill{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#2e9d6b;background:var(--green-tag-bg);padding:6px 12px;border-radius:999px;}
.live-pill .pulse{width:8px;height:8px;border-radius:50%;background:#2e9d6b;animation:pulse 1.6s infinite;}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(46,157,107,.5);}70%{box-shadow:0 0 0 7px rgba(46,157,107,0);}100%{box-shadow:0 0 0 0 rgba(46,157,107,0);}}

.flash{padding:15px 22px;border-radius:14px;font-size:15px;font-weight:600;margin-top:24px;}
.flash.ok{background:var(--green-tag-bg);color:var(--green-tag);}
.flash.err{background:var(--red-tag-bg);color:var(--red-tag);}

.section-sub{font-size:13px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);margin:38px 0 18px;}
.inline-actions{display:flex;gap:10px;align-items:center;}
.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:26px 0 18px;}
.toolbar .seg{display:flex;gap:8px;background:#f2f2f7;padding:6px;border-radius:999px;}
.toolbar .seg a{padding:9px 18px;border-radius:999px;font-size:14px;font-weight:700;color:#6a6a7c;text-decoration:none;}
.toolbar .seg a.on{background:#fff;color:var(--purple);box-shadow:0 4px 10px -6px rgba(30,30,60,.3);}

/* ===========================================================================
   Attendance calendar (mockup)
   =========================================================================== */
.att-layout{display:grid;grid-template-columns:1fr 350px;gap:30px;align-items:start;margin-top:10px;}
@media(max-width:1500px){.att-layout{grid-template-columns:1fr;}}

.cal-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px 30px 30px;}
.cal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
.cal-nav{display:flex;align-items:center;gap:12px;}
.cal-nav a{width:40px;height:40px;border-radius:50%;border:1px solid #e7e7ee;display:flex;align-items:center;justify-content:center;text-decoration:none;background:#fff;}
.cal-nav b{font-size:23px;font-weight:700;letter-spacing:-.3px;min-width:150px;text-align:center;}
.cal-filter{display:inline-flex;align-items:center;gap:10px;border:1px solid #e7e7ee;border-radius:999px;padding:10px 18px;font-weight:600;font-size:14.5px;color:#5b5b6e;text-decoration:none;}
.cal-filter .cnt{background:#101015;color:#fff;border-radius:999px;min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;}

.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px 2px;}
.cal-dow{text-align:center;font-size:14px;font-weight:600;color:var(--muted-2);padding-bottom:12px;}
.cal-cell{display:flex;align-items:center;justify-content:center;}
.cal-day{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16.5px;font-weight:600;color:#2b2b3a;text-decoration:none;position:relative;transition:transform .08s;}
.cal-day:hover{transform:scale(1.06);}
.cal-day.empty{color:#cfcfd8;font-weight:500;pointer-events:none;}
.cal-day.dim{color:#b9b9c6;font-weight:500;}
.cal-day.full{background:#e4f7ee;color:#1f7a52;}
.cal-day.part{background:#fdf0df;color:#a8701e;}
.cal-day.none{background:#fbeaea;color:#c44d4d;}
.cal-day.sel{background:#101015!important;color:#fff!important;box-shadow:none!important;}
.cal-day.today:not(.sel){box-shadow:inset 0 0 0 2px var(--purple);}
.cal-day .pip{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.55;}

.att-summary{margin-top:26px;display:flex;flex-direction:column;gap:14px;}
.sum-row{display:flex;align-items:center;gap:18px;background:#fafafc;border:1px solid var(--line);border-radius:16px;padding:16px 20px;}
.sum-ic{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.sum-ic.g{background:#e4f7ee;color:#2e9d6b;} .sum-ic.r{background:#fdeaea;color:#d65151;} .sum-ic.p{background:#efe9fc;color:#6f5ce8;}
.sum-meta{flex:0 0 auto;min-width:92px;}
.sum-meta b{display:block;font-size:21px;font-weight:800;letter-spacing:-.4px;}
.sum-meta span{display:block;font-size:13px;color:var(--muted);font-weight:600;}
.mini-bars{flex:1;display:flex;align-items:flex-end;gap:2px;height:44px;}
.mini-bars i{flex:1;border-radius:2px;min-height:3px;background:#e6e6ee;}
.mini-bars.g i.on{background:#3bbf86;} .mini-bars.r i.on{background:#e0894f;} .mini-bars.p i.on{background:#8a76ea;}

.att-side{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px 24px 18px;align-self:start;}
.as-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.as-head h3{font-size:19px;font-weight:700;display:flex;align-items:center;gap:9px;}
.as-badge{background:#101015;color:#fff;border-radius:999px;min-width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;padding:0 8px;}
.as-date{font-size:13.5px;color:var(--muted);font-weight:600;margin-bottom:8px;}
.as-row{display:flex;align-items:center;gap:13px;padding:12px 4px;border-top:1px solid var(--line);text-decoration:none;color:inherit;}
.as-row .nm{flex:1;min-width:0;}
.as-row .nm b{display:block;font-size:15.5px;font-weight:700;}
.as-row .nm span{display:block;font-size:12.5px;color:var(--muted);font-weight:500;margin-top:1px;}
.as-row .chev{color:#c3c3cf;flex:0 0 auto;}
.as-empty{padding:36px 6px;text-align:center;color:var(--muted);font-size:14px;}

/* ===========================================================================
   Modal (edit employee)
   =========================================================================== */
.modal-back{
  position:fixed;inset:0;background:rgba(18,18,28,.5);backdrop-filter:blur(3px);
  display:none;align-items:flex-start;justify-content:center;z-index:90;
  padding:48px 16px;overflow-y:auto;
}
.modal-back.show{display:flex;}
.modal{
  background:#fff;border-radius:22px;width:580px;max-width:100%;
  padding:30px 30px 26px;box-shadow:0 30px 80px -20px rgba(20,20,40,.5);
  animation:modalIn .24s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn{from{opacity:0;transform:translateY(18px) scale(.98);}to{opacity:1;transform:none;}}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px;}
.modal-head h3{font-size:22px;font-weight:700;letter-spacing:-.3px;}
.modal-head p{font-size:14px;color:var(--muted);margin-top:4px;font-weight:500;}
.modal-close{width:40px;height:40px;border-radius:50%;border:1px solid #e7e7ee;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.modal-foot{display:flex;gap:12px;justify-content:flex-end;margin-top:6px;}
@media(max-width:560px){ .modal{padding:24px 20px;} .modal .grid-2{grid-template-columns:1fr;} }

/* ================= LOGIN ================= */
.login-wrap{min-height:calc(100vh - 68px);display:flex;align-items:center;justify-content:center;}
.login-card{
  background:#fff;border-radius:26px;width:440px;max-width:92vw;
  padding:46px 44px;box-shadow:0 30px 60px -30px rgba(30,30,60,.35);
}
.login-card .logo{justify-content:center;margin-bottom:14px;}
.login-card h1{font-size:26px;font-weight:700;text-align:center;letter-spacing:-.4px;}
.login-card .sub{text-align:center;color:var(--muted);font-size:15px;font-weight:500;margin:8px 0 30px;}
.login-card .btn-primary{width:100%;justify-content:center;margin-top:8px;padding:15px;}

/* ===========================================================================
   Motion & micro-interactions (polish)
   =========================================================================== */
@media (prefers-reduced-motion: no-preference){
  .chip,.card,.tile,.nav-item,.btn,.pill-btn,.cal-day,.as-row,.icon-btn,
  .go,.pg,.cta,.seeall-btn,.cal-filter,.cal-nav a,.plus-btn{
    transition:transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  }
  .chip:hover,.tile:hover{transform:translateY(-3px);box-shadow:0 18px 34px -20px rgba(30,30,60,.32);}
  .card:hover{transform:translateY(-3px);}
  .card:hover .thumb{box-shadow:0 18px 30px -18px rgba(30,30,60,.45);}
  .nav-item:hover{background:var(--lavender-2);}
  .btn:hover,.cta:hover{transform:translateY(-2px);box-shadow:0 12px 22px -12px rgba(111,92,232,.5);}
  .pill-btn:hover{background:var(--lavender-2);}
  .icon-btn:hover,.go:hover,.pg:hover,.cal-nav a:hover,.plus-btn:hover{background:var(--lavender-2);border-color:var(--lavender);}
  .as-row:hover{background:#fafafe;}
  .seeall-btn:hover{background:var(--lavender);}

  @keyframes fadeUp{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
  .main > *, .rail{animation:fadeUp .5s ease both;}
  .main > *:nth-child(1){animation-delay:.02s;}
  .main > *:nth-child(2){animation-delay:.08s;}
  .main > *:nth-child(3){animation-delay:.14s;}
  .main > *:nth-child(4){animation-delay:.20s;}
  .main > *:nth-child(5){animation-delay:.26s;}
  .main > *:nth-child(n+6){animation-delay:.30s;}
  .rail{animation-delay:.16s;}

  @keyframes ringIn{from{stroke-dashoffset:604;}to{stroke-dashoffset:0;}}
  .ring-progress{animation:ringIn 1.2s cubic-bezier(.4,0,.2,1) both;}
}
/* JS-driven grow (bars/progress start at 0, transition to target) */
.progress i, .cbar, .mini-bars i, .sum-meta + .mini-bars i{transition:width .9s cubic-bezier(.4,0,.2,1), height .9s cubic-bezier(.4,0,.2,1);}

/* live update flash */
@keyframes liveFlash{0%{color:var(--purple);}100%{}}
.live-updated{animation:liveFlash .8s ease;}

/* ===========================================================================
   Mobile navigation (off-canvas drawer)
   =========================================================================== */
.nav-toggle{
  display:none; width:50px;height:50px;border-radius:50%;
  border:1px solid #e3e3ea;background:#fff;cursor:pointer;
  align-items:center;justify-content:center;flex:0 0 auto;
}
.nav-overlay{
  position:fixed;inset:0;background:rgba(18,18,28,.46);backdrop-filter:blur(2px);
  opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;z-index:60;
}
.nav-overlay.show{opacity:1;visibility:visible;}

/* ===========================================================================
   Responsive breakpoints
   =========================================================================== */
@media(max-width:1640px){
  .content{grid-template-columns:1fr 420px;gap:0 34px;}
}
@media(max-width:1400px){
  .content{grid-template-columns:1fr;}      /* rail drops under main */
  .rail{margin-top:30px;}
  .banner h1{font-size:36px;}
}
@media(max-width:1200px){
  body{padding:0;}
  .frame{border-radius:0;grid-template-columns:1fr;box-shadow:none;min-height:100vh;}
  .sidebar{
    position:fixed;top:0;left:0;bottom:0;width:300px;max-width:86vw;
    background:#fff;z-index:70;min-height:100vh;overflow-y:auto;
    transform:translateX(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow:0 24px 70px -20px rgba(0,0,0,.45);
  }
  .sidebar.open{transform:translateX(0);}
  .nav-toggle{display:flex;}
  .content,.content.no-rail{padding:18px 20px 40px;gap:0;}
  .topbar-row{gap:14px;}
}
@media(max-width:980px){
  .chips{grid-template-columns:1fr;gap:16px;}
  .cards{grid-template-columns:1fr;gap:20px;}
  .tiles{grid-template-columns:1fr 1fr;gap:16px;}
  .split{grid-template-columns:1fr;gap:24px;}
  .att-layout{grid-template-columns:1fr;gap:22px;}
  .banner{padding:32px 28px 34px;}
  .banner h1{font-size:30px;margin:12px 0 24px;}
  .page-head{flex-direction:column;gap:16px;}
  .page-head h1{font-size:28px;}
  .section-head h2{font-size:22px;}
  /* tables scroll horizontally */
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:18px;}
  .table-wrap .dtable{min-width:680px;}
  .table-wrap .table{min-width:620px;}
}
@media(max-width:640px){
  .content,.content.no-rail{padding:14px 14px 34px;}
  .search{height:50px;padding:0 18px;font-size:15px;}
  .icon-btn{width:46px;height:46px;}
  .profile span.avatar{width:40px;height:40px;}
  .profile{font-size:0;gap:0;}              /* hide name, keep avatar on tiny screens */
  .profile .avatar{font-size:14px;}
  .top-divider{display:none;}
  .tiles{grid-template-columns:1fr;}
  .banner{padding:26px 22px 28px;border-radius:18px;}
  .banner h1{font-size:25px;line-height:1.25;}
  .banner .eyebrow{font-size:12px;letter-spacing:2px;}
  .chip{padding:14px;}
  .cal-card{padding:18px 14px 22px;}
  .cal-day{width:42px;height:42px;font-size:14.5px;}
  .cal-nav b{font-size:18px;min-width:120px;}
  .cal-grid{gap:5px 1px;}
  .sum-row{gap:12px;padding:14px;}
  .sum-meta{min-width:74px;}
  .sum-meta b{font-size:18px;}
  .att-side{padding:20px 16px 14px;}
  .ring-wrap{width:170px;height:170px;}
  .ring-avatar{font-size:38px;}
  .stat-hero h3{font-size:22px;}
  .wallet-card .wc-bal{font-size:28px;}
  .wallet-card .wc-rows{gap:14px;flex-wrap:wrap;}
  .section-head{flex-wrap:wrap;gap:12px;}
  .toolbar .seg{flex-wrap:wrap;}
  .login-card{padding:36px 26px;}
}
@media(max-width:380px){
  .cal-day{width:36px;height:36px;font-size:13px;}
  .banner h1{font-size:22px;}
}
