/* ==========================================================================
   IN4 CloudHR — Leave Management page styles
   Prefix: .leave-* / .lcp- / .lap- / .lw- / .lt- / .lc- / .ldp- / .lcl- / .lrg- / .lcc- / .ldc- / .lwl-
   ========================================================================== */

/* ---- Hero visual: leave dashboard ---- */
.leave-hero-visual {
  position: relative;
}

.leave-hero-wrap {
  position: relative;
}

.leave-dash {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.leave-dash-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.leave-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-purple);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.leave-dash-head strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  color: var(--ink-900);
}

.leave-dash-head span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.leave-dash-head .btn {
  margin-left: auto;
  font-size: 12.5px;
  padding: 8px 14px;
}

.leave-balance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.leave-balance-item {
  background: #fff;
  padding: 14px 10px;
  text-align: center;
}

.lb-num {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  padding: 4px 0;
  border-radius: 8px;
  margin-bottom: 6px;
}

.lb-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leave-dash-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.leave-dash-section:last-child {
  border-bottom: none;
}

.leave-dash-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.leave-request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 8px;
}

.leave-request-row:last-child {
  margin-bottom: 0;
}

.lr-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink-900);
}

.lr-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.lr-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.lr-status.pending {
  background: #fef3c7;
  color: #d97706;
}

.leave-avatars {
  display: flex;
  gap: 8px;
}

.tm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 12px;
}

.tm-avatar.on-leave {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.leave-mini {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-800);
  animation: floatY 6s ease-in-out infinite;
  z-index: 2;
}

.leave-mini .ico {
  color: var(--purple-600);
  width: 15px;
  height: 15px;
}

.leave-mini.a {
  top: 6%;
  right: -4%;
}

.leave-mini.b {
  bottom: 10%;
  left: -6%;
  animation-delay: -3s;
}

/* ---- Leave policy config panel ---- */

/* ---- Year-end flow ---- */
.leave-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.leave-flow-step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.lfs-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-purple);
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(101, 40, 247, 0.25);
}

.lfs-icon .ico {
  width: 22px;
  height: 22px;
}

.leave-flow-step h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.leave-flow-step p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.leave-flow-arrow {
  align-self: center;
  color: var(--purple-400);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---- Leave application panel ---- */

/* ---- Approval workflow ---- */

.ls-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.ls-badge .ico {
  width: 14px;
  height: 14px;
}

.ls-badge.pending {
  background: #fef3c7;
  color: #d97706;
}

.ls-badge.approved {
  background: #dcfce7;
  color: #16a34a;
}

.ls-badge.rejected {
  background: #fee2e2;
  color: #dc2626;
}

/* ---- Status timeline ---- */
.leave-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.leave-timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: var(--border);
}

.lt-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  position: relative;
}

.lt-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 2px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 1;
}

.lt-dot .ico {
  width: 16px;
  height: 16px;
}

.lt-item.done .lt-dot {
  background: var(--green-50);
  border-color: var(--green-500);
  color: var(--green-600);
}

.lt-item.active .lt-dot {
  background: var(--purple-50);
  border-color: var(--purple-500);
  color: var(--purple-600);
  animation: pulse 2s ease-in-out infinite;
}

.lt-content strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  color: var(--ink-900);
}

.lt-content span {
  font-size: 13.5px;
  color: var(--text-body);
}

.lt-content small {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Holiday calendar ---- */

/* ---- Config list ---- */
.leave-config-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.lcl-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.lcl-item:hover {
  border-color: var(--purple-300);
  box-shadow: var(--shadow-sm);
}

.lcl-item .ico {
  width: 15px;
  height: 15px;
}

/* ---- Dashboard panel ---- */

/* ---- Rule groups ---- */
.leave-rules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.leave-rule-group {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.leave-rule-group:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.lrg-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.lrg-icon .ico {
  width: 20px;
  height: 20px;
}

.leave-rule-group h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.leave-rule-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leave-rule-group li {
  font-size: 13.5px;
  color: var(--text-body);
  padding-left: 16px;
  position: relative;
}

.leave-rule-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-400);
}

/* ---- Employee / Manager compare ---- */
.leave-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.leave-compare-col {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lcc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
}

.lcc-head .ico {
  width: 22px;
  height: 22px;
}

.lcc-head h4 {
  font-size: 17px;
  font-weight: 700;
}

.leave-compare-col ul {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leave-compare-col li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-body);
}

.leave-compare-col li .ico {
  color: var(--purple-600);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- Dashboard visibility cards ---- */
.leave-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.leave-dash-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.leave-dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ldc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ldc-icon .ico {
  width: 22px;
  height: 22px;
}

.ldc-content strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.1;
}

.ldc-content span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Mobile phone mockup ---- */
.leave-phone-wrap {
  display: flex;
  justify-content: center;
}

.leave-phone-wrap .phone {
  position: relative;
  width: 240px;
  background: var(--ink-900);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.leave-phone-wrap .phone-notch {
  width: 80px;
  height: 18px;
  margin: 0 auto 10px;
  background: #000;
  border-radius: 999px;
}

.leave-phone-wrap .phone-screen {
  background: #fff;
  border-radius: 22px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ps-head strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  color: var(--ink-900);
}

.ps-head span {
  font-size: 11px;
  color: var(--green-600);
  font-weight: 700;
}

.ps-balance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.psb-item {
  text-align: center;
  padding: 10px 6px;
  background: var(--purple-50);
  border-radius: 10px;
}

.psb-item strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--purple-700);
}

.psb-item span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.ps-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--grad-purple);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.ps-apply .ico {
  width: 14px;
  height: 14px;
}

.ps-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-800);
}

.ps-pending {
  color: #d97706;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ps-approved {
  color: #16a34a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---- Why section: light premium bento ----------------------------------
   A deliberate break from the plain white bands around it, but still light:
   a soft lavender-to-white canvas with two blurred blooms, and an asymmetric
   bento board floating on it — one tall feature tile plus six reason tiles,
   each on its own raised card with the module's gradient chip. */
.page-leave .leave-why {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 90% -8%, rgba(236, 72, 153, 0.10), transparent 70%),
    radial-gradient(640px 420px at 2% 108%, rgba(108, 53, 255, 0.10), transparent 70%),
    linear-gradient(170deg, #fdf6fa 0%, #f7f3ff 52%, #ffffff 100%);
  color: var(--in4-navy);
}

.page-leave .leave-why::before,
.page-leave .leave-why::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-leave .leave-why::before {
  width: 300px;
  height: 300px;
  top: -120px;
  left: -90px;
  background: radial-gradient(closest-side, rgba(236, 72, 153, 0.12), transparent 72%);
}

.page-leave .leave-why::after {
  width: 360px;
  height: 360px;
  right: -130px;
  bottom: -170px;
  background: radial-gradient(closest-side, rgba(108, 53, 255, 0.12), transparent 72%);
}

.page-leave .leave-why .container { position: relative; z-index: 1; }

.page-leave .leave-why .eyebrow { color: var(--purple-600); }

.page-leave .leave-why .section-lead { color: var(--text-muted); }

/* the bento board is now six equal cards: a fixed 3-across board (two rows)
   that steps down to 2 and then 1, so the cards stay equal at every width */
.page-leave .leave-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.page-leave .leave-why .lwl-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04), 0 14px 32px rgba(109, 40, 217, 0.07);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-leave .leave-why .lwl-item:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 72, 153, 0.34);
  box-shadow: 0 6px 12px rgba(17, 24, 39, 0.05), 0 24px 50px rgba(236, 72, 153, 0.16);
}

/* media area — the shot fades up into place on hover */
.page-leave .lwl-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(236, 72, 153, 0.12), transparent 60%),
    linear-gradient(160deg, #fdf7fb 0%, #f4efff 100%);
  border-bottom: 1px solid var(--border-soft);
}

.page-leave .lwl-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: translateY(14px) scale(1.04);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}

.page-leave .lwl-item:hover .lwl-shot img,
.page-leave .lwl-item:focus-visible .lwl-shot img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Touch devices never hover, so the shot is simply always visible there —
   otherwise the card would show an empty frame and no image at all. */
@media (hover: none) {
  .page-leave .lwl-shot img { opacity: 1; transform: none; }
  .page-leave .lwl-shot::after { transform: scaleX(1); }
}

/* a pink hairline that draws in as the shot appears */
.page-leave .lwl-shot::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #be185d, #ec4899 55%, #f9a8d4);
  transition: transform 0.45s var(--ease);
}

.page-leave .lwl-item:hover .lwl-shot::after { transform: scaleX(1); }

.page-leave .lwl-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 22px 26px;
}

.page-leave .leave-why .lwl-body h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--in4-navy);
  margin: 0;
}

.page-leave .leave-why .lwl-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* the gradient chip */
.page-leave .leave-why .lwl-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 13px;
  background-image: var(--plate, linear-gradient(135deg, #be185d 0%, #ec4899 55%, #f9a8d4 100%));
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28);
  transition: transform 0.25s var(--ease);
}

.page-leave .leave-why .lwl-item:hover .lwl-chip { transform: scale(1.06) rotate(-4deg); }

.page-leave .leave-why .lwl-chip .ico {
  width: 17px;
  height: 17px;
  font-size: 17px;
  line-height: 1;
  color: #ffffff;
  background-image: none;
  -webkit-text-fill-color: #ffffff;
}

/* ---- Lead band checklist -------------------------------------------------
   The Book a demo list on the left: one flex row per point, so the tick sits
   on the text's centre line with a real gap before the label instead of
   relying on inline styles. */
.page-leave .lead-band .lead-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-leave .lead-band .lead-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.page-leave .lead-band .lead-list .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
  color: #f9a8d4;
}

@media (max-width: 1100px) {
  .page-leave .leave-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 640px) {
  .page-leave .leave-why-grid { grid-template-columns: 1fr; gap: 14px; }
  .page-leave .lwl-shot { aspect-ratio: 2 / 1; }
  .page-leave .lwl-body { padding: 18px 18px 22px; }
  .page-leave .leave-why .lwl-body h3 { font-size: 15.5px; }
  .page-leave .leave-why .lwl-body p { font-size: 13.5px; }
}

.lwl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.lwl-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.lwl-item .ico {
  width: 20px;
  height: 20px;
  color: var(--purple-600);
  flex-shrink: 0;
}

.lwl-item span {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-800);
}

/* ---- Image placeholder (empty, to be filled later) ---- */
.leave-img-placeholder {
  width: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  color: var(--text-muted);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.leave-img-placeholder .ico {
  width: 40px;
  height: 40px;
  color: var(--purple-300);
}

.leave-img-placeholder span {
  font-size: 14px;
  font-weight: 600;
}

.leave-img-placeholder small {
  font-size: 12px;
  color: var(--text-muted);
}

.leave-img-placeholder:hover {
  border-color: var(--purple-300);
  background: var(--purple-50);
}

/* ---- Slide-left animation ---- */
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--rd, 0s);
}

.slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Final CTA ---- */

/* ---- Approval cards (left column) ---- */
.approval-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.ap-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.ap-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-200);
}

.ap-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ap-icon .ico {
  width: 20px;
  height: 20px;
}

.ap-card strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.ap-card p {
  font-size: 14px;
  color: var(--text-body);
  margin: 0;
  max-width: none;
}

/* ---- Premium approval flow (right column) ---- */
.approval-flow {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.af-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--purple-50), #fff);
}

.af-head h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}

.af-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple-700);
  background: var(--purple-100);
  padding: 5px 12px;
  border-radius: 999px;
}

.af-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.af-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.af-node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-purple);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(101, 40, 247, 0.28);
  position: relative;
  z-index: 1;
}

.af-node .ico {
  width: 18px;
  height: 18px;
}

.af-line {
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-300), var(--border));
}

.af-step:last-child .af-line,
.af-final .af-line {
  display: none;
}

.af-content {
  padding-top: 4px;
  padding-bottom: 24px;
}

.af-step:last-child .af-content,
.af-final .af-content {
  padding-bottom: 0;
}

.af-content strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.af-content span {
  font-size: 13px;
  color: var(--text-muted);
}

.af-final .af-node {
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.af-status {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .leave-rules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .leave-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leave-balance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  .leave-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .leave-flow-step {
    max-width: none;
  }

  .leave-flow-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .leave-compare {
    grid-template-columns: 1fr;
  }

  .leave-rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leave-mini {
    display: none;
  }
}

@media (max-width: 640px) {
  .leave-rules-grid {
    grid-template-columns: 1fr;
  }

  .leave-dashboard-grid {
    grid-template-columns: 1fr;
  }

}

/* ==========================================================================
   Leave page — brand colour system
   Same four devices the Attendance page uses: dual-colour headings, a tapered
   gradient rule under each section title, gradient icon plates and a
   two-column lead form. The colour code is this module's home page menu tab
   accent (--acc #EC4899 / soft #FDF2F8), deepened at the start of the ramp.
   ========================================================================== */

/* ---- Dual-colour headings: solid ink + ONE gradient accent phrase -------- */
.page-leave .section-title em.lv-dual,
.page-leave .inner-hero-copy h1 .grad {
  background: linear-gradient(96deg, #be185d 0%, #ec4899 40%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* ---- Tapered accent rule under every section title ---------------------- */
.page-leave .section-title { position: relative; }

.page-leave .section-title::after {
  content: "";
  display: block;
  width: 148px;
  max-width: 42%;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: #6C35FF;
}

.page-leave .section-head.center .section-title::after { margin-inline: auto; }

/* ---- Icon plates: gradient tile, white glyph ---------------------------- */
.page-leave .icon-badge {
  background-image: var(--plate, linear-gradient(135deg, #be185d 0%, #ec4899 55%, #f9a8d4 100%));
  background-color: transparent;
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--plate-shadow, 0 8px 18px rgba(236, 72, 153, 0.24));
}

.page-leave .icon-badge .ico {
  background-image: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* the same plate on the section-specific icon boxes, so every icon on the page
   — feature rows, workflow steps, rule groups and day cards alike — reads as
   one gradient. Their old per-icon inline colours were removed from the HTML. */
.page-leave .lfs-icon,
.page-leave .ap-icon,
.page-leave .lrg-icon,
.page-leave .ldc-icon,
.page-leave .af-node {
  background-image: var(--plate, linear-gradient(135deg, #be185d 0%, #ec4899 55%, #f9a8d4 100%));
  background-color: transparent;
  color: #ffffff;
  box-shadow: var(--plate-shadow, 0 8px 18px rgba(236, 72, 153, 0.24));
}

.page-leave .lfs-icon .ico,
.page-leave .ap-icon .ico,
.page-leave .lrg-icon .ico,
.page-leave .ldc-icon .ico,
.page-leave .af-node .ico {
  background-image: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* ---- Glyph sizing and centring ------------------------------------------
   Font Awesome glyphs scale with font-size, so a fixed width/height smaller
   than the inherited 18px clipped them and pushed them off centre. Every icon
   box now sizes itself from its font-size (width/height 1em) and centres with
   flex, and the inline list icons get breathing room from their label. */
.page-leave .ico {
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: middle;
}

/* Inside a plate/chip the glyph is a flex box, so it is centred on the tile
   rather than sitting on the text baseline — this is what was leaving some
   icons sitting high or low in their square. */
.page-leave .icon-badge .ico,
.page-leave .lwl-chip .ico,
.page-leave .lfs-icon .ico,
.page-leave .lrg-icon .ico,
.page-leave .ldc-icon .ico,
.page-leave .ap-icon .ico,
.page-leave .af-node .ico,
.page-leave .at-stage .icon-badge .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.page-leave .ls-badge .ico,
.page-leave .ps-apply .ico { font-size: 14px; }

.page-leave .leave-mini .ico,
.page-leave .lcl-item .ico { font-size: 15px; }

.page-leave .lt-dot .ico,
.page-leave .leave-compare-col li .ico { font-size: 16px; }

.page-leave .af-node .ico { font-size: 18px; }

.page-leave .lrg-icon .ico,
.page-leave .lwl-item .ico,
.page-leave .ap-icon .ico { font-size: 20px; }

.page-leave .af-node .ico { font-size: 18px; }

.page-leave .lfs-icon .ico,
.page-leave .lcc-head .ico,
.page-leave .ldc-icon .ico { font-size: 22px; }

.page-leave .leave-img-placeholder .ico { font-size: 40px; }

/* icons inside flex rows line up on the text baseline, not the box edge
   (.lcl-item stays inline-flex — it is a chip; the rest are block rows) */
.page-leave .lwl-item,
.page-leave .leave-dash-card,
.page-leave .leave-compare-col li,
.page-leave .leave-mini { display: flex; align-items: center; }

.page-leave .lcl-item .ico,
.page-leave .lwl-item .ico,
.page-leave .leave-dash-card .ico,
.page-leave .leave-compare-col li .ico,
.page-leave .leave-mini .ico { margin-right: 2px; }

/* section title accent phrase: one solid colour (no gradient) */
.page-leave .section-title em.lv-dual {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #DB2777;
  -webkit-text-fill-color: #DB2777;
}
