/* Purple & Gold reference footer, adapted from the supplied V6.0 design.
   Standalone classes ensure existing dashboard/login styles cannot override it. */
.psk-royal-footer,
.psk-royal-footer * { box-sizing: border-box; }
.psk-royal-footer {
  --psk-footer-gold: #ffd859;
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 14px 18px;
  overflow: hidden;
  border: 0;
  border-top: 3px solid #f5b922;
  border-radius: 0;
  background: linear-gradient(110deg,#120024 0%,#2e0057 38%,#430075 68%,#16002b 100%);
  color: #fff;
  text-align: center;
  font-family: 'Noto Sans Kannada','Plus Jakarta Sans',Inter,system-ui,sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 0 -3px 14px rgba(32,0,57,.12);
}
.psk-royal-footer__swoosh {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.psk-royal-footer__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(10px, 8vw, 85px);
  color: #fff;
  font-size: inherit;
  font-weight: 750;
  letter-spacing: .015em;
  text-wrap: balance;
}
.psk-royal-footer__brand { color: #ffe57f; }
.psk-royal-footer__panel { color: #fff; }
.psk-royal-footer__rights { color: #ffd859; }
.psk-royal-footer__separator { color: rgba(255,255,255,.48); }
@media (max-width: 700px) {
  .psk-royal-footer { padding: 12px 12px; min-height: 68px; font-size: 11px; }
  .psk-royal-footer__content { gap: 2px 7px; padding-inline: 5vw; }
}
@media (max-width: 410px) {
  .psk-royal-footer { padding: 12px 8px; font-size: 10px; }
  .psk-royal-footer__content { padding-inline: 0; }
  .psk-royal-footer__brand { flex-basis: 100%; }
  .psk-royal-footer__separator:first-of-type { display: none; }
}
@media print { .psk-royal-footer { display: none !important; } }

/* FINAL V6.1: compact matching footer + sidebar-to-footer wave alignment.
   Visual-only, no app behavior or database rules changed. */
html, body { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
body > .shell { flex: 1 0 auto; min-height: 0; margin-bottom: 0; gap: 0; align-items: stretch; }
body > .shell > .workspace { min-width: 0; min-height: 0; margin-bottom: 0; }
body > .shell > aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  margin-bottom: 0;
  padding-bottom: 0 !important;
  overflow: hidden;
}
body > .shell > aside > nav { flex: 1 0 auto; padding-bottom: 10px; }
.psk-sidebar-footwave {
  flex: 0 0 34px;
  position: relative;
  display: block;
  height: 34px;
  width: 100%;
  margin-top: auto;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(16,0,33,.28) 100%);
}
.psk-sidebar-footwave svg { display: block; width: 100%; height: 100%; }
.psk-royal-footer {
  min-height: 49px;
  padding: 9px 18px;
  border-top-width: 3px;
  font-size: 11.5px;
  line-height: 1.35;
  box-shadow: 0 -2px 8px rgba(27,0,51,.09);
}
.psk-royal-footer__content {
  max-width: 1230px;
  padding: 0 clamp(6px, 7vw, 90px);
  gap: 3px 10px;
  letter-spacing: .012em;
}
@media (min-width: 701px) {
  .psk-royal-footer__brand,
  .psk-royal-footer__panel,
  .psk-royal-footer__rights { white-space: nowrap; }
}
@media (max-width: 700px) {
  .psk-royal-footer { min-height: 58px; padding: 10px 8px; font-size: 10.5px; }
  .psk-royal-footer__content { padding: 0 3vw; gap: 3px 7px; }
  .psk-sidebar-footwave { flex-basis: 24px; height: 24px; }
}
@media (max-width: 390px) {
  .psk-royal-footer { font-size: 10px; }
  .psk-royal-footer__content { padding: 0; }
  .psk-royal-footer__brand { flex-basis: 100%; }
  .psk-royal-footer__separator { display: none; }
}
@media print {
  .psk-royal-footer, .psk-sidebar-footwave { display: none !important; }
}
