/* Skiper UI TextRoll (skiper58): https://skiper-ui.com/v1/skiper58 */
.skiper-roll { position: relative; display: block; overflow: hidden; line-height: 1.25; }
.skiper-roll-first, .skiper-roll-second { display: block; white-space: pre; }
.skiper-roll-second { position: absolute; inset: 0; }
.skiper-roll-first > span, .skiper-roll-second > span {
  display: inline-block;
  transition: transform .3s ease-in-out var(--skiper-delay);
}
.skiper-roll-second > span { transform: translateY(100%); }
.skiper-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  [data-skiper-roll]:focus-visible .skiper-roll-first > span { transform: translateY(-100%); }
  [data-skiper-roll]:focus-visible .skiper-roll-second > span { transform: translateY(0); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  [data-skiper-roll]:not(:disabled):hover .skiper-roll-first > span { transform: translateY(-100%); }
  [data-skiper-roll]:not(:disabled):hover .skiper-roll-second > span { transform: translateY(0); }
}

/* Skiper UI ArrowIcon and MenuIcon (skiper99): https://skiper-ui.com/v1/skiper99 */
.skiper-arrow {
  position: relative; display: inline-grid; place-items: center;
  width: 24px; height: 24px; flex: none; vertical-align: middle;
}
.skiper-arrow svg { width: 24px; height: 24px; transition: transform .5s ease-out; }
.skiper-arrow::after {
  content: ""; position: absolute; right: 9px; top: 11px;
  width: 12px; height: 2px; background: currentColor; border-radius: 1px;
  transform: scaleX(0); transform-origin: right;
  transition: right .3s ease-out, transform .3s ease-out;
}
@media (prefers-reduced-motion: no-preference) {
  [data-skiper-arrow]:focus-visible .skiper-arrow svg { transform: translateX(2px); }
  [data-skiper-arrow]:focus-visible .skiper-arrow::after { right: 7px; transform: scaleX(1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  [data-skiper-arrow]:hover .skiper-arrow svg { transform: translateX(2px); }
  [data-skiper-arrow]:hover .skiper-arrow::after { right: 7px; transform: scaleX(1); }
}
.skiper-menu { position: relative; display: grid; align-items: center; width: 16px; height: 16px; }
.skiper-menu > span {
  position: absolute; width: 100%; height: 2px; border-radius: 999px; background: currentColor;
  transition: transform .3s ease-out;
}
.skiper-menu > span:first-child { transform: translateY(-5px); }
.skiper-menu > span:nth-child(2) { transition: opacity .1s; }
.skiper-menu > span:last-child { transform: translateY(5px); }
#toggleAdminNav[aria-expanded="true"] .skiper-menu > span:first-child { transform: rotate(45deg); }
#toggleAdminNav[aria-expanded="true"] .skiper-menu > span:nth-child(2) { opacity: 0; }
#toggleAdminNav[aria-expanded="true"] .skiper-menu > span:last-child { transform: rotate(-45deg); }

/* Rajib Digital Centre theme */
html:has(.rdc-dashboard) { background: #160f20; }
.rdc-dashboard {
  --ink: #f9eefc; --mut: #dbc9e6; --cy: #dfbaf9; --gb: #674c78;
  color: var(--ink); background: #160f20;
}
.rdc-dashboard header, .rdc-dashboard header.sc {
  background: #21152deb; border-color: #614475;
}
.rdc-dashboard[data-workspace="customer"] .hero {
  background: radial-gradient(ellipse at 78% 20%, #542e70 0%, transparent 58%),
    linear-gradient(115deg, #21142e, #30203e);
  border-bottom-color: #614475;
}
.rdc-dashboard .hero .wrap { gap: clamp(22px, 5vw, 62px); }
.rdc-dashboard .hero h1 { line-height: 1.08; letter-spacing: -.045em; max-width: 17ch; }
.rdc-dashboard .hero .panel { border-radius: 20px; background: #241632d9; }
.rdc-dashboard .hero .panel h2 { font-size: 1.12rem; margin-bottom: 7px; }
.rdc-dashboard .hero .panel a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; color: #f9ebff; text-decoration: none;
}
.rdc-dashboard .hero .panel li { padding: 9px 0; }
.rdc-dashboard .hero .panel li:hover { transform: none; }
.rdc-dashboard .hero .panel .skiper-arrow { color: #dbaff9; }
.rdc-dashboard .customer-tabs {
  align-items: stretch; gap: 8px; padding-inline: 14px;
}
.rdc-dashboard #adminPortal > h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.rdc-dashboard .admin-tabs {
  background: #25182f; border-color: #604572; gap: 6px;
}
.rdc-dashboard[data-workspace="admin"] .btn-o,
.rdc-dashboard #toggleAdminNav {
  background: #31223e; color: #f6e6fb; border-color: #735482;
}
.rdc-dashboard #toggleAdminNav { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.rdc-dashboard[data-workspace="admin"] .admin-tabs button[aria-pressed="true"],
.rdc-dashboard[data-workspace="customer"] .customer-tabs a[aria-current="page"] {
  background: #5b3976; border-color: #b185ce;
}
.rdc-dashboard[data-workspace="admin"] .metric,
.rdc-dashboard[data-workspace="admin"] .request,
.rdc-dashboard[data-workspace="admin"] .report-card,
.rdc-dashboard[data-workspace="admin"] .gov-link {
  background: #271a32; border-color: #614575; color: #f8e9ff;
}
.rdc-dashboard[data-workspace="admin"] .metric strong,
.rdc-dashboard[data-workspace="admin"] .tracking-meta,
.rdc-dashboard[data-workspace="admin"] .gov-link small,
.rdc-dashboard[data-workspace="admin"] .report-card p,
.rdc-dashboard[data-workspace="admin"] .processing summary,
.rdc-dashboard[data-workspace="admin"] #weeklyTrend li,
.rdc-dashboard[data-workspace="admin"] #analyticsStatus { color: #e0c6ed; }
.rdc-dashboard[data-workspace="admin"] .rdc-filters input,
.rdc-dashboard[data-workspace="admin"] .rdc-filters select,
.rdc-dashboard[data-workspace="admin"] #requestList select {
  background: #21162c; color: #f7eaff; border-color: #815d94;
}
.rdc-dashboard[data-workspace="admin"] .report-legend li {
  background: #362343; color: #f7e8fe;
}
.rdc-dashboard[data-workspace="admin"] #completionRing {
  --ring-track: #675071; --ring-ink: #d5a5f5; --ring-full: #a4e6cd;
}
.rdc-dashboard .box, .rdc-dashboard .cbox { min-width: 0; }
.rdc-dashboard #serviceGrid, .rdc-dashboard #schemeGrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
}
.rdc-dashboard .box b::after { content: none; }
.rdc-dashboard .box .skiper-arrow, .rdc-dashboard .box .skiper-arrow::after { color: inherit; }
.rdc-dashboard .box .skiper-arrow svg { display: block; }
.rdc-dashboard .box .skiper-arrow { position: relative; }
.rdc-dashboard .btn[data-skiper-arrow] { display: inline-flex; gap: 5px; align-items: center; }
.rdc-login .container { border-color: #86639c; }
.rdc-login .login-brand div:not(.logo) { color: #fff3fe; }
.rdc-login .role-picker button[aria-pressed="true"] { background: #5b3976; border-color: #ba94d4; }
.rdc-login .main-btn { background: linear-gradient(110deg, #583674, #73498f); }
.rdc-login .main-btn:not(:disabled):hover { box-shadow: 0 10px 20px #21152e80; }
.rdc-dashboard :is(button, a, input, select):focus-visible,
.rdc-login :is(button, a, input, select):focus-visible {
  outline: 2px solid #e6bbff; outline-offset: 3px;
}
@media (max-width: 540px) {
  .rdc-dashboard .customer-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rdc-dashboard .customer-tabs :is(a, button) { justify-content: center; text-align: center; }
  .rdc-dashboard .hero .cta { display: grid; justify-items: stretch; }
  .rdc-dashboard .hero .cta a { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .skiper-arrow::after { transition: none; }
}
