:root {
  /* --site-color: #051139; */
  --site-color: #ac89e9;
  --q-primary: #ac89e9;
  --secondary-color: #7b57b8;
  --app-page-bg: #f6f4fb;
  --app-widget-border: rgba(95, 63, 155, 0.1);
  --app-widget-radius: 18px;
  --app-widget-shadow: 0 14px 36px rgba(72, 40, 120, 0.08);
  --app-widget-shadow-hover: 0 18px 40px rgba(72, 40, 120, 0.12);
  --app-text-title: #2f2348;
  --app-text-muted: #7a718f;
  --chart-primary: #ac89e9;
  --chart-secondary: #7b57b8;
  --chart-tertiary: #c4a8f2;
  /* Attendance color variables */
  --attend-present: #ac89e9;
  --attend-absent: #c4a8f2;
  --attend-leave: #ffc145;
  --attend-late: #16A085;
  --attend-early-off: #34495E;
  --attend-holiday: #64b5f6;
  --attend-unpaid-leave: #f39c12; /* distinct from Leave if needed */
  --attend-unpaid-late: #d35400; /* distinct from Late */
  --attend-unpaid-early-off: #2c3e50; /* distinct from Early Off */

  /* Unified CTA / button chrome (colors vary by role) */
  --app-btn-radius: 10px;
  --app-btn-font-weight: 600;
  --app-btn-min-height: 38px;
  --app-btn-padding-x: 16px;
  --app-btn-font-size: 13px;
  --app-btn-letter-spacing: 0.01em;
  --app-btn-border-width: 1px;
  --app-btn-shadow: 0 4px 14px rgba(72, 40, 120, 0.14);
  --app-btn-shadow-hover: 0 6px 18px rgba(72, 40, 120, 0.2);
  --app-btn-primary-bg: linear-gradient(120deg, #7b57b8 0%, #ac89e9 100%);
  --app-btn-primary-border: rgba(255, 255, 255, 0.18);
  --app-btn-primary-shadow: 0 4px 14px rgba(123, 87, 184, 0.32);
  --app-btn-danger-bg: linear-gradient(120deg, #c62828 0%, #e53935 100%);
  --app-btn-danger-border: rgba(255, 255, 255, 0.14);
  --app-btn-danger-shadow: 0 4px 14px rgba(198, 40, 40, 0.28);
  --app-btn-success-bg: linear-gradient(120deg, #2e7d32 0%, #43a047 100%);
  --app-btn-success-border: rgba(255, 255, 255, 0.14);
  --app-btn-success-shadow: 0 4px 14px rgba(46, 125, 50, 0.26);
  --app-btn-warning-bg: linear-gradient(120deg, #e65100 0%, #fb8c00 100%);
  --app-btn-warning-border: rgba(255, 255, 255, 0.14);
  --app-btn-warning-shadow: 0 4px 14px rgba(230, 81, 0, 0.26);
  --app-btn-neutral-bg: #fff;
  --app-btn-neutral-border: rgba(123, 87, 184, 0.28);
  --app-btn-neutral-color: #7b57b8;
  --app-btn-neutral-shadow: 0 2px 10px rgba(72, 40, 120, 0.08);

  /* Unified module tabs */
  --app-tab-radius: 12px;
  --app-tab-min-height: 40px;
  --app-tab-gap: 8px;
  --app-tab-font-size: 12px;
  --app-tab-inactive-bg: #fff;
  --app-tab-inactive-color: #7b57b8;
  --app-tab-inactive-border: rgba(123, 87, 184, 0.22);
  --app-tab-active-bg: linear-gradient(120deg, #7b57b8 0%, #ac89e9 100%);
  --app-tab-active-shadow: 0 4px 14px rgba(123, 87, 184, 0.24);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bg-primary {
  /* background: #051139 !important; */
  background: var(--site-color) !important;
  color: #fff !important;
}
/* ========== App button / CTA design system ========== */
.app-btn,
.btn-primary {
  border-radius: var(--app-btn-radius) !important;
  font-weight: var(--app-btn-font-weight) !important;
  font-size: var(--app-btn-font-size) !important;
  letter-spacing: var(--app-btn-letter-spacing) !important;
  text-transform: none !important;
  min-height: var(--app-btn-min-height) !important;
  padding: 6px var(--app-btn-padding-x) !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}

.app-btn:before,
.btn-primary:before {
  box-shadow: none !important;
}

/* Scope: main content, dialogs, login — exclude navbar, sidebar, round icons, toggles */
.main-site-container
  .q-btn.q-btn--rectangle:not(.q-btn--round):not(.btn-dropdown),
.main-site-container
  .q-btn.q-btn--rounded:not(.q-btn--round):not(.btn-dropdown),
.q-dialog .q-btn.q-btn--rectangle:not(.q-btn--round):not(.btn-dropdown),
.q-dialog .q-btn.q-btn--rounded:not(.q-btn--round):not(.btn-dropdown),
.loginPageContainer
  .q-btn.q-btn--rectangle:not(.q-btn--round):not(.btn-dropdown) {
  border-radius: var(--app-btn-radius) !important;
  font-weight: var(--app-btn-font-weight) !important;
  font-size: var(--app-btn-font-size) !important;
  letter-spacing: var(--app-btn-letter-spacing) !important;
  text-transform: none !important;
  min-height: var(--app-btn-min-height) !important;
  padding: 6px var(--app-btn-padding-x) !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}

.main-site-container .toggleSwitch .q-btn,
.main-site-container .toggleSwitchContainer .q-btn,
.main-site-container .q-table__control .q-table__bottom .q-btn,
.main-site-container .q-pagination .q-btn {
  border-radius: 8px !important;
  min-height: 32px !important;
  padding: 4px 8px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Solid CTAs — primary, danger, success, warning (elevated / unelevated / push) */
.app-btn--primary,
.btn-primary,
.main-site-container
  .q-btn.bg-primary:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.q-dialog
  .q-btn.bg-primary:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.loginPageContainer
  .q-btn.bg-primary:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline) {
  background: var(--app-btn-primary-bg) !important;
  color: #fff !important;
  border: var(--app-btn-border-width) solid var(--app-btn-primary-border) !important;
  box-shadow: var(--app-btn-primary-shadow) !important;
}

.app-btn--primary:hover,
.btn-primary:hover,
.main-site-container
  .q-btn.bg-primary:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline):hover,
.q-dialog
  .q-btn.bg-primary:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline):hover,
.loginPageContainer
  .q-btn.bg-primary:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline):hover {
  box-shadow: var(--app-btn-shadow-hover) !important;
  filter: brightness(1.03);
}

.app-btn--danger,
.main-site-container
  .q-btn.bg-red:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.main-site-container
  .q-btn.bg-negative:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.q-dialog
  .q-btn.bg-red:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.q-dialog
  .q-btn.bg-negative:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline) {
  background: var(--app-btn-danger-bg) !important;
  color: #fff !important;
  border: var(--app-btn-border-width) solid var(--app-btn-danger-border) !important;
  box-shadow: var(--app-btn-danger-shadow) !important;
}

.app-btn--danger:hover,
.main-site-container
  .q-btn.bg-red:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline):hover,
.main-site-container
  .q-btn.bg-negative:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline):hover,
.q-dialog
  .q-btn.bg-red:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline):hover,
.q-dialog
  .q-btn.bg-negative:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline):hover {
  box-shadow: 0 6px 18px rgba(198, 40, 40, 0.34) !important;
  filter: brightness(1.03);
}

.app-btn--success,
.main-site-container
  .q-btn.bg-positive:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.main-site-container
  .q-btn.bg-green:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.q-dialog
  .q-btn.bg-positive:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.q-dialog
  .q-btn.bg-green:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline) {
  background: var(--app-btn-success-bg) !important;
  color: #fff !important;
  border: var(--app-btn-border-width) solid var(--app-btn-success-border) !important;
  box-shadow: var(--app-btn-success-shadow) !important;
}

.app-btn--warning,
.main-site-container
  .q-btn.bg-orange:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.main-site-container
  .q-btn.bg-warning:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.q-dialog
  .q-btn.bg-orange:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline),
.q-dialog
  .q-btn.bg-warning:not(.q-btn--round):not(.q-btn--flat):not(.q-btn--outline) {
  background: var(--app-btn-warning-bg) !important;
  color: #fff !important;
  border: var(--app-btn-border-width) solid var(--app-btn-warning-border) !important;
  box-shadow: var(--app-btn-warning-shadow) !important;
}

/* Outline primary — secondary CTA */
.app-btn--outline,
.main-site-container
  .q-btn.bg-primary.q-btn--outline:not(.q-btn--round),
.q-dialog .q-btn.bg-primary.q-btn--outline:not(.q-btn--round) {
  background: var(--app-btn-neutral-bg) !important;
  color: var(--app-btn-neutral-color) !important;
  border: var(--app-btn-border-width) solid var(--app-btn-neutral-border) !important;
  box-shadow: var(--app-btn-neutral-shadow) !important;
}

.main-site-container
  .q-btn.bg-primary.q-btn--outline:not(.q-btn--round):hover,
.q-dialog .q-btn.bg-primary.q-btn--outline:not(.q-btn--round):hover {
  background: #f8f4ff !important;
  border-color: rgba(123, 87, 184, 0.45) !important;
  box-shadow: var(--app-btn-shadow) !important;
}

/* Flat cancel / secondary — same chrome, muted fill */
.app-btn--cancel,
.main-site-container .q-btn.bg-red.q-btn--flat:not(.q-btn--round),
.main-site-container .q-btn.bg-negative.q-btn--flat:not(.q-btn--round),
.q-dialog .q-btn.bg-red.q-btn--flat:not(.q-btn--round),
.q-dialog .q-btn.bg-negative.q-btn--flat:not(.q-btn--round) {
  background: #fff5f5 !important;
  color: #c62828 !important;
  border: var(--app-btn-border-width) solid rgba(198, 40, 40, 0.28) !important;
  box-shadow: var(--app-btn-neutral-shadow) !important;
}

.main-site-container
  .q-btn.bg-red.q-btn--flat:not(.q-btn--round):hover,
.main-site-container
  .q-btn.bg-negative.q-btn--flat:not(.q-btn--round):hover,
.q-dialog .q-btn.bg-red.q-btn--flat:not(.q-btn--round):hover,
.q-dialog .q-btn.bg-negative.q-btn--flat:not(.q-btn--round):hover {
  background: #ffebee !important;
  border-color: rgba(198, 40, 40, 0.42) !important;
}

.main-site-container
  .q-btn.bg-primary.q-btn--flat:not(.q-btn--round):not(.q-table tbody .q-btn),
.q-dialog .q-btn.bg-primary.q-btn--flat:not(.q-btn--round) {
  background: #f8f4ff !important;
  color: #7b57b8 !important;
  border: var(--app-btn-border-width) solid rgba(123, 87, 184, 0.22) !important;
  box-shadow: var(--app-btn-neutral-shadow) !important;
}

.main-site-container
  .q-btn.bg-primary.q-btn--flat:not(.q-btn--round):not(.q-table tbody .q-btn):hover,
.q-dialog .q-btn.bg-primary.q-btn--flat:not(.q-btn--round):hover {
  background: #f1e8ff !important;
  border-color: rgba(123, 87, 184, 0.38) !important;
}

/* Table toolbar / ghost icon actions */
.main-site-container .q-table tbody .q-btn.q-btn--flat,
.main-site-container .q-table thead .q-btn.q-btn--flat {
  min-height: 34px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  background: transparent !important;
}

.main-site-container .q-table tbody .q-btn.q-btn--flat:hover,
.main-site-container .q-table thead .q-btn.q-btn--flat:hover {
  background: #f8f4ff !important;
  border-color: rgba(123, 87, 184, 0.22) !important;
}

/* SweetAlert2 confirm / cancel */
.swal2-styled.swal2-confirm {
  border-radius: var(--app-btn-radius) !important;
  font-weight: var(--app-btn-font-weight) !important;
  font-size: var(--app-btn-font-size) !important;
  text-transform: none !important;
  min-height: var(--app-btn-min-height) !important;
  padding: 6px 20px !important;
  border: var(--app-btn-border-width) solid var(--app-btn-primary-border) !important;
  background: var(--app-btn-primary-bg) !important;
  box-shadow: var(--app-btn-primary-shadow) !important;
}

.swal2-styled.swal2-cancel {
  border-radius: var(--app-btn-radius) !important;
  font-weight: var(--app-btn-font-weight) !important;
  font-size: var(--app-btn-font-size) !important;
  text-transform: none !important;
  min-height: var(--app-btn-min-height) !important;
  padding: 6px 20px !important;
  border: var(--app-btn-border-width) solid rgba(198, 40, 40, 0.28) !important;
  background: #fff5f5 !important;
  color: #c62828 !important;
  box-shadow: var(--app-btn-neutral-shadow) !important;
}

.swal2-styled.swal2-deny {
  border-radius: var(--app-btn-radius) !important;
  font-weight: var(--app-btn-font-weight) !important;
  text-transform: none !important;
  box-shadow: var(--app-btn-danger-shadow) !important;
}

/* ========== App module tab design system ========== */
.main-site-container .tabsContainer,
.main-site-container .primary-tabs,
.main-site-container .upcoming-tabs,
.main-site-container .app-module-tabs,
.q-dialog .tabsContainer,
.q-dialog .primary-tabs,
.q-dialog .upcoming-tabs,
.q-dialog .app-module-tabs {
  width: auto !important;
  max-width: 100% !important;
  flex: 1 1 auto;
  margin-top: 16px;
  padding-bottom: 4px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row),
.q-dialog .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs) {
  border: none !important;
  background: transparent !important;
}

.main-site-container .tabsContainer .q-tabs__arrow,
.main-site-container .primary-tabs .q-tabs__arrow,
.main-site-container .upcoming-tabs .q-tabs__arrow,
.main-site-container .app-module-tabs .q-tabs__arrow,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tabs__arrow,
.q-dialog .tabsContainer .q-tabs__arrow,
.q-dialog .primary-tabs .q-tabs__arrow,
.q-dialog .upcoming-tabs .q-tabs__arrow,
.q-dialog .app-module-tabs .q-tabs__arrow,
.q-dialog
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
  .q-tabs__arrow {
  display: none !important;
}

.main-site-container .tabsContainer .q-tabs__content,
.main-site-container .primary-tabs .q-tabs__content,
.main-site-container .upcoming-tabs .q-tabs__content,
.main-site-container .app-module-tabs .q-tabs__content,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tabs__content,
.q-dialog .tabsContainer .q-tabs__content,
.q-dialog .primary-tabs .q-tabs__content,
.q-dialog .upcoming-tabs .q-tabs__content,
.q-dialog .app-module-tabs .q-tabs__content,
.q-dialog
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
  .q-tabs__content {
  flex-wrap: wrap !important;
  overflow: visible !important;
  gap: var(--app-tab-gap) !important;
  justify-content: flex-start !important;
}

.main-site-container .tabsContainer .q-tab,
.main-site-container .primary-tabs .q-tab,
.main-site-container .upcoming-tabs .q-tab,
.main-site-container .app-module-tabs .q-tab,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tab,
.q-dialog .tabsContainer .q-tab,
.q-dialog .primary-tabs .q-tab,
.q-dialog .upcoming-tabs .q-tab,
.q-dialog .app-module-tabs .q-tab,
.q-dialog .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs) .q-tab {
  flex: 0 0 auto !important;
  min-height: var(--app-tab-min-height) !important;
  min-width: 0 !important;
  padding: 0 16px !important;
  border: 1px solid var(--app-tab-inactive-border) !important;
  border-radius: var(--app-tab-radius) !important;
  background: var(--app-tab-inactive-bg) !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease !important;
}

.main-site-container .tabsContainer .q-tab .q-tab__label,
.main-site-container .primary-tabs .q-tab .q-tab__label,
.main-site-container .upcoming-tabs .q-tab .q-tab__label,
.main-site-container .app-module-tabs .q-tab .q-tab__label,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tab
  .q-tab__label,
.q-dialog .tabsContainer .q-tab .q-tab__label,
.q-dialog .primary-tabs .q-tab .q-tab__label,
.q-dialog .upcoming-tabs .q-tab .q-tab__label,
.q-dialog .app-module-tabs .q-tab .q-tab__label,
.q-dialog
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
  .q-tab
  .q-tab__label {
  font-size: var(--app-tab-font-size) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  color: var(--app-tab-inactive-color) !important;
}

.main-site-container .tabsContainer .q-tab:not(.q-tab--active):not(.bg-primary) .q-tab__content,
.main-site-container .primary-tabs .q-tab:not(.q-tab--active):not(.bg-primary) .q-tab__content,
.main-site-container .upcoming-tabs .q-tab:not(.q-tab--active):not(.bg-primary) .q-tab__content,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tab:not(.q-tab--active):not(.bg-primary)
  .q-tab__content,
.q-dialog
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
  .q-tab:not(.q-tab--active):not(.bg-primary)
  .q-tab__content {
  color: var(--app-tab-inactive-color) !important;
}

.main-site-container .tabsContainer .q-tab.q-tab--active,
.main-site-container .tabsContainer .q-tab.bg-primary,
.main-site-container .primary-tabs .q-tab.q-tab--active,
.main-site-container .primary-tabs .q-tab.bg-primary,
.main-site-container .upcoming-tabs .q-tab.q-tab--active,
.main-site-container .upcoming-tabs .q-tab.bg-primary,
.main-site-container .app-module-tabs .q-tab.q-tab--active,
.main-site-container .app-module-tabs .q-tab.bg-primary,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tab.q-tab--active,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tab.bg-primary,
.q-dialog .tabsContainer .q-tab.q-tab--active,
.q-dialog .tabsContainer .q-tab.bg-primary,
.q-dialog .primary-tabs .q-tab.q-tab--active,
.q-dialog .primary-tabs .q-tab.bg-primary,
.q-dialog .upcoming-tabs .q-tab.q-tab--active,
.q-dialog .upcoming-tabs .q-tab.bg-primary,
.q-dialog .app-module-tabs .q-tab.q-tab--active,
.q-dialog .app-module-tabs .q-tab.bg-primary,
.q-dialog
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
  .q-tab.q-tab--active,
.q-dialog
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
  .q-tab.bg-primary {
  background: var(--app-tab-active-bg) !important;
  border-color: transparent !important;
  box-shadow: var(--app-tab-active-shadow) !important;
  color: #fff !important;
}

.main-site-container .tabsContainer .q-tab.q-tab--active .q-tab__label,
.main-site-container .tabsContainer .q-tab.bg-primary .q-tab__label,
.main-site-container .primary-tabs .q-tab.q-tab--active .q-tab__label,
.main-site-container .primary-tabs .q-tab.bg-primary .q-tab__label,
.main-site-container .upcoming-tabs .q-tab.q-tab--active .q-tab__label,
.main-site-container .upcoming-tabs .q-tab.bg-primary .q-tab__label,
.main-site-container .app-module-tabs .q-tab.q-tab--active .q-tab__label,
.main-site-container .app-module-tabs .q-tab.bg-primary .q-tab__label,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tab.q-tab--active
  .q-tab__label,
.main-site-container
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
  .q-tab.bg-primary
  .q-tab__label,
.q-dialog .tabsContainer .q-tab.q-tab--active .q-tab__label,
.q-dialog .tabsContainer .q-tab.bg-primary .q-tab__label,
.q-dialog .primary-tabs .q-tab.q-tab--active .q-tab__label,
.q-dialog .primary-tabs .q-tab.bg-primary .q-tab__label,
.q-dialog .upcoming-tabs .q-tab.q-tab--active .q-tab__label,
.q-dialog .upcoming-tabs .q-tab.bg-primary .q-tab__label,
.q-dialog .app-module-tabs .q-tab.q-tab--active .q-tab__label,
.q-dialog .app-module-tabs .q-tab.bg-primary .q-tab__label,
.q-dialog
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
  .q-tab.q-tab--active
  .q-tab__label,
.q-dialog
  .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
  .q-tab.bg-primary
  .q-tab__label {
  color: #fff !important;
}

/* Hide Quasar tab underline — active pill styling is enough */
.q-tabs__indicator {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media screen and (max-width: 768px) {
  .main-site-container .tabsContainer .q-tab,
  .main-site-container .primary-tabs .q-tab,
  .main-site-container .upcoming-tabs .q-tab,
  .main-site-container
    .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
    .q-tab,
  .q-dialog .tabsContainer .q-tab,
  .q-dialog .primary-tabs .q-tab,
  .q-dialog .upcoming-tabs .q-tab,
  .q-dialog
    .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
    .q-tab {
    padding: 0 12px !important;
  }

  .main-site-container .tabsContainer .q-tab .q-tab__label,
  .main-site-container .primary-tabs .q-tab .q-tab__label,
  .main-site-container .upcoming-tabs .q-tab .q-tab__label,
  .main-site-container
    .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs):not(.custom-tab-row)
    .q-tab
    .q-tab__label,
  .q-dialog .tabsContainer .q-tab .q-tab__label,
  .q-dialog .primary-tabs .q-tab .q-tab__label,
  .q-dialog .upcoming-tabs .q-tab .q-tab__label,
  .q-dialog
    .q-tabs:not(.student-detail-tabs):not(.cms-detail-tabs)
    .q-tab
    .q-tab__label {
    font-size: 11px !important;
  }
}

.q-table tbody td {
  text-decoration: none !important;
}

/* Dialog / modal tables keep compact default styling */
.q-dialog .q-table,
.q-menu .q-table {
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}
.overlay-loader {
  visibility: hidden;
  background: rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  z-index: 9999999;
  width: 100%;
  height: 100%;
  text-align: center;
}

.lds-dual-ring {
  width: 80px;
  height: 80px;
  position: fixed;
  z-index: 99999;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.page-heading {
  padding: 0px 20px 0px 20px !important;
}
.page-heading h2 {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 2vw !important;
  text-transform: capitalize;
  opacity: 0.8;
  font-weight: 500;
}
/* .q-field__control,
.q-field__control:active,
.q-field__control:visited,
.q-field__control:focus
{
    border: 1px solid #848484 !important;
    margin: 0 !important;
    outline: none !important;
}
.q-field__native
{
    color: #ccc !important;

}
.q-field--outlined .q-field__control:after {
    border: none !important;
} */

.sidebar .q-btn {
  padding: 6px !important;
  color: #fff !important;
}

.q-card__actions {
  gap: 8px;
}

.q-card__actions .q-btn--rectangle:not(.q-btn--round) {
  min-width: 96px;
}

.nav-link {
  color: #fff;
  padding: 8px;
  font-size: 20px;
  cursor: pointer;
}
.active-link {
  color: #3bc982;
}

.sub-links {
  color: #000;
  text-decoration: none;
  min-width: 100px;
  font-weight: bold;
  padding: 10px;
}
.card-site {
  border-radius: 5px;
  background: #fff;
  box-shadow: 0px 5px 20px rgba(34, 35, 58, 0.15);
  padding: 10px 10px;
  margin-bottom: 5px;
}
.logo-img {
  width: 80px;
  height: 45px;
  object-fit: contain;
}

/* Legacy header hook — modern navbar lives in AdminLayout.vue */
.app-navbar {
  z-index: 2000;
}
.main-site-container {
  padding: 12px 16px 20px;
  background: var(--app-page-bg);
}

body.g-sidenav-show {
  background: var(--app-page-bg) !important;
}

.swal2-container {
  z-index: 9999;
}

.site-heading {
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 500;
  padding: 8px 12px !important;
  border-radius: 10px;
  color: #fff !important;
  background: var(--site-color) !important;
}

.site-heading.page-breadcrumb {
  font-size: inherit;
  padding: 10px 14px !important;
}

/* ========== App data table design system ========== */
.app-table-page {
  width: 100%;
}

.app-table-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.app-table-page__toolbar .page-breadcrumb,
.app-table-page__toolbar .site-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.app-table-page__action {
  flex-shrink: 0;
}

.app-data-table,
.my-sticky-table,
.main-site-container .q-table:not(.graph-data) {
  background: #fff !important;
  border: 1px solid var(--app-widget-border) !important;
  border-radius: var(--app-widget-radius) !important;
  box-shadow: var(--app-widget-shadow) !important;
  overflow: hidden;
}

/* Nested tables inside chart/widget cards — no double chrome */
.chart-widget-card .q-table,
.graph-data.q-table,
.claim-card .q-table,
.nested-widget-card .q-table {
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  background: transparent !important;
}

.app-data-table .q-table__top,
.my-sticky-table .q-table__top,
.main-site-container .q-table:not(.graph-data) .q-table__top {
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #f0ecf5;
}

.app-data-table .q-table__middle,
.my-sticky-table .q-table__middle,
.main-site-container .q-table:not(.graph-data) .q-table__middle {
  background: #fff;
}

.app-data-table thead tr th,
.my-sticky-table thead tr th,
.main-site-container .q-table:not(.graph-data) thead tr th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eefb 100%) !important;
  color: var(--app-text-title) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(95, 63, 155, 0.12) !important;
  padding: 13px 16px !important;
}

.app-data-table tbody td,
.my-sticky-table tbody td,
.main-site-container .q-table:not(.graph-data) tbody td {
  padding: 12px 16px !important;
  color: #4a4260;
  font-size: 13px;
  border-bottom: 1px solid #f0ecf5 !important;
  vertical-align: middle;
}

.app-data-table tbody tr:nth-child(even) td,
.my-sticky-table tbody tr:nth-child(even) td,
.main-site-container .q-table:not(.graph-data) tbody tr:nth-child(even) td {
  background: #fcfbfe;
}

.app-data-table tbody tr:hover td,
.my-sticky-table tbody tr:hover td,
.main-site-container .q-table:not(.graph-data) tbody tr:hover td {
  background: #f8f4ff !important;
}

.app-data-table tbody tr:last-child td,
.my-sticky-table tbody tr:last-child td,
.main-site-container .q-table:not(.graph-data) tbody tr:last-child td {
  border-bottom: none !important;
}

.app-data-table .q-table__bottom,
.my-sticky-table .q-table__bottom,
.main-site-container .q-table:not(.graph-data) .q-table__bottom {
  background: #faf8ff !important;
  color: var(--app-text-muted) !important;
  border-top: 1px solid rgba(95, 63, 155, 0.1) !important;
  padding: 10px 16px !important;
}

.app-data-table .q-table__bottom .q-table__control,
.my-sticky-table .q-table__bottom .q-table__control,
.main-site-container .q-table:not(.graph-data) .q-table__bottom .q-table__control {
  color: var(--app-text-muted);
}

.app-data-table .q-table__bottom .q-icon,
.my-sticky-table .q-table__bottom .q-icon,
.main-site-container .q-table:not(.graph-data) .q-table__bottom .q-icon {
  color: #7b57b8 !important;
}

.app-data-table .q-table__bottom .q-field__native,
.app-data-table .q-table__bottom .q-field__native span,
.my-sticky-table .q-table__bottom .q-field__native,
.my-sticky-table .q-table__bottom .q-field__native span,
.main-site-container .q-table:not(.graph-data) .q-table__bottom .q-field__native,
.main-site-container .q-table:not(.graph-data) .q-table__bottom .q-field__native span {
  color: var(--app-text-muted) !important;
}

.app-data-table .q-table__bottom .q-select__dropdown-icon,
.my-sticky-table .q-table__bottom .q-select__dropdown-icon,
.main-site-container .q-table:not(.graph-data) .q-table__bottom .q-select__dropdown-icon {
  color: #7b57b8 !important;
}

.app-data-table .tableSearch,
.my-sticky-table .tableSearch,
.main-site-container .q-table:not(.graph-data) .tableSearch {
  min-width: 220px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--app-widget-border);
  border-radius: 10px;
  color: var(--app-text-title);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.app-data-table .tableSearch:focus-within,
.my-sticky-table .tableSearch:focus-within,
.main-site-container .q-table:not(.graph-data) .tableSearch:focus-within {
  border-color: rgba(172, 137, 233, 0.55);
  box-shadow: 0 0 0 3px rgba(172, 137, 233, 0.12);
}

.app-data-table .tableSearch input[type="text"],
.my-sticky-table .tableSearch input[type="text"],
.main-site-container .q-table:not(.graph-data) .tableSearch input[type="text"] {
  color: var(--app-text-title);
}

.app-data-table .tableSearch .q-icon,
.my-sticky-table .tableSearch .q-icon,
.main-site-container .q-table:not(.graph-data) .tableSearch .q-icon {
  color: #7b57b8;
}

.app-data-table .q-table__top .q-btn,
.my-sticky-table .q-table__top .q-btn,
.main-site-container .q-table:not(.graph-data) .q-table__top .q-btn {
  color: #7b57b8;
}

.app-data-table tbody tr,
.my-sticky-table tbody tr {
  transition: background 0.15s ease;
}

.app-table-id-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f1e8ff;
  color: #5f3f9b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-table-status {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: capitalize;
}

.app-table-status--clickable {
  cursor: pointer;
}

.app-table-status--active,
.app-table-status--approved,
.app-table-status--admitted,
.app-table-status--paid,
.app-table-status--present,
.app-table-status--green {
  color: #16a34a;
}

.app-table-status--resolved {
  color: #ea580c;
}

.app-table-status--inactive,
.app-table-status--rejected,
.app-table-status--unpaid,
.app-table-status--absent,
.app-table-status--red {
  color: #dc2626;
}

.app-table-status--freeze,
.app-table-status--leave,
.app-table-status--orange {
  color: #ea580c;
}

.app-table-status--pending,
.app-table-status--upcoming,
.app-table-status--blue {
  color: #2563eb;
}

.app-table-status--closed,
.app-table-status--unpaid-leave,
.app-table-status--grey,
.app-table-status--gray {
  color: #6b7280;
}

.app-table-status--yellow,
.app-table-status--amber {
  color: #ca8a04;
}

.app-table-status--purple {
  color: #9333ea;
}

.app-table-name {
  font-weight: 600;
  color: var(--app-text-title);
}

.clickableColumn,
.openModalOnName {
  font-weight: 600;
  color: var(--app-text-title);
  cursor: pointer;
}

.clickableColumn:hover,
.openModalOnName:hover {
  color: #7b57b8;
}

/* Student detail / CMS / form sections */
.student-detail-page .info-card,
.cms-page .info-card,
.cms-form-page .info-card,
.app-module-form-page .info-card,
.app-form-card .info-card {
  padding: 22px 22px 18px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--app-widget-border);
  border-radius: var(--app-widget-radius);
  box-shadow: var(--app-widget-shadow);
}

.student-profile-card,
.student-status-card,
.student-sidebar-card {
  border: 1px solid var(--app-widget-border) !important;
  box-shadow: var(--app-widget-shadow) !important;
}

/* Student detail — tab panels & nested cards */
.student-detail-page .student-detail-tab-content .session-info-card,
.student-detail-page .student-detail-tab-content .fee-cycle-card,
.student-detail-page .student-detail-tab-content .main-form-container,
.student-detail-page .student-detail-tab-content > div > .q-card:not(.q-dialog__inner) {
  border: 1px solid var(--app-widget-border) !important;
  border-radius: var(--app-widget-radius) !important;
  box-shadow: var(--app-widget-shadow) !important;
  background: #fff !important;
}

.student-detail-page .student-detail-tab-content .session-info-card {
  border-color: var(--app-widget-border) !important;
}

.student-detail-page .student-detail-tab-content .main-form-container {
  margin: 0 !important;
  padding: 22px !important;
}

.student-detail-page .student-detail-tab-content .tabsContainer {
  border: 1px solid rgba(123, 87, 184, 0.22) !important;
  border-radius: var(--app-tab-radius) !important;
  background: #fff;
  margin-bottom: 16px;
}

.student-detail-page .student-basic-info-card {
  margin-bottom: 0 !important;
}

.app-dialog-card {
  border-radius: 18px !important;
  border: 1px solid var(--app-widget-border) !important;
  box-shadow: 0 20px 48px rgba(72, 40, 120, 0.16) !important;
  overflow: hidden;
}

.app-dialog-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--app-text-title);
  text-align: center;
  text-transform: capitalize;
}

.app-dialog-card__divider {
  margin: 0;
  border: none;
  border-top: 1px solid #f0ecf5;
}

.app-dialog-card__actions {
  padding: 12px 20px 20px;
  gap: 8px;
}

.app-dialog-card__actions .q-btn {
  min-width: 96px;
}

/* Fee voucher dialogs (manual create + edit) */
.q-dialog .edit-voucher-card {
  width: 860px;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px !important;
}

.q-dialog .edit-voucher-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.q-dialog .edit-voucher-header,
.q-dialog .edit-voucher-actions {
  flex-shrink: 0;
}

.q-dialog .edit-voucher-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
}

.q-dialog .edit-voucher-header {
  background: linear-gradient(135deg, #f8f5ff 0%, #fff 100%);
}

.q-dialog .fee-lines--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafafa;
}

.q-dialog .fee-lines__item-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #5f5775;
}

.q-dialog .fee-lines__item-hint {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.3;
}

.q-dialog .totals-panel {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 12px 14px;
}

.q-dialog .totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 0.92rem;
}

.q-dialog .totals-row--main {
  padding-top: 2px;
}

.q-dialog .discount-banner {
  background: #f5f3ff;
  border: 1px solid #e9e0ff;
}

.q-dialog .payment-toggle-panel {
  border: 1px dashed #d0d0d0;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.q-dialog .payment-toggle-panel--active {
  border-color: var(--q-primary);
  background: #f8f5ff;
}

.q-dialog .payment-details-panel {
  border: 1px solid #e0d4f5;
  background: #fdfbff;
}

.q-dialog .payment-confirm-preview {
  background: #eef9f0;
  border: 1px solid #c8e6c9;
}

.q-dialog .paid-summary-block {
  background: #f1f8f4;
  border: 1px solid #c8e6c9;
}

@media screen and (max-width: 767px) {
  .q-dialog .fee-lines--grid {
    grid-template-columns: 1fr;
  }
}

.info-card__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0ecf5;
  font-size: 17px;
  font-weight: 700;
  color: var(--app-text-title);
  line-height: 1.3;
  text-transform: capitalize;
}

.app-form-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.student-detail-page .info-card label,
.cms-page .info-card label,
.cms-form-page .info-card label,
.cms-form-page .cms-form-label,
.app-form-card .info-card label {
  font-size: 13px;
  font-weight: 600;
  color: #5f5775;
}

.student-detail-page .q-field--outlined .q-field__control,
.cms-page .q-field--outlined .q-field__control,
.cms-form-page .q-field--outlined .q-field__control,
.app-form-card .q-field--outlined .q-field__control {
  border-radius: 10px;
}

.staff-dialog-card.app-dialog-card .info-card,
.staff-update-card .info-card,
.staff-qualification-dialog .info-card {
  margin-bottom: 16px;
}

.staff-qualification-dialog .info-card label,
.staff-qualification-dialog .label-required {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5f5775;
}

.staff-qualification-dialog .q-field--outlined .q-field__control {
  border-radius: 10px;
}

.staff-dialog-card .info-card label,
.staff-dialog-card .label-required,
.staff-update-card .info-card label,
.staff-update-card .label-required {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5f5775;
}

.staff-dialog-card .q-field--outlined .q-field__control,
.staff-update-card .q-field--outlined .q-field__control {
  border-radius: 10px;
}

.staff-permissions-section.info-card .staff-permissions-section__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--app-text-title);
}

.app-status-toggle-host {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 0;
  flex-shrink: 0;
}

/* Table Toggle Styling (Start) */
.btn-dropdown,
.btn-dropdown:hover {
  font-size: 20px !important;
  padding: 0px 5px;
  font-weight: 900;
  background: transparent !important;
}

.btn-dropdown:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: none !important;
}

.my-sticky-table .q-btn .block {
  /* margin-bottom: 2px; */
  margin-right: 13px;
}

.my-sticky-table .toggleSwitch .q-btn .q-icon {
  display: none;
}

.toggleSwitch {
  height: fit-content;
  min-width: 106px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-left: 4px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

input:checked + .slider {
  background: linear-gradient(120deg, #7b57b8 0%, #ac89e9 100%);
  box-shadow: 0 2px 8px rgba(123, 87, 184, 0.35);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 999px;
}

.slider.round:before {
  border-radius: 50%;
}

.app-status-toggle.q-toggle {
  margin: 0;
}

.app-status-toggle .q-toggle__inner {
  width: 44px !important;
  min-width: 44px !important;
  height: 24px !important;
  padding: 0 !important;
  font-size: 44px;
}

.app-status-toggle .q-toggle__track {
  height: 24px !important;
  border-radius: 999px;
  opacity: 1 !important;
  background: #e5e7eb !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.app-status-toggle.q-toggle--truthy .q-toggle__track {
  background: linear-gradient(120deg, #7b57b8 0%, #ac89e9 100%) !important;
  box-shadow: 0 2px 8px rgba(123, 87, 184, 0.35);
}

.app-status-toggle .q-toggle__thumb {
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.app-status-toggle.q-toggle--truthy .q-toggle__thumb {
  left: 23px !important;
}

.my-sticky-table .toggleSwitchContainer {
  padding: 8px 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.my-sticky-table .toggleSwitchContainer .app-status-toggle {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}

.my-sticky-table .toggleSwitchContainer .toggleSwitch {
  min-width: 0;
  align-items: center;
}
/* (End) */

.openModalOnName {
  cursor: pointer;
}

.openModalOnName:hover {
  color: #522e8e;
  font-weight: 600;
}

.linkTextDecoration {
  text-decoration: none;
}

/* Legacy breadcrumb — prefer PageHeadingComponent .page-breadcrumb */
.breadcrumb,
.breadcrumb * {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-size: 14px !important;
}
.breadcrumb .q-icon:hover,
.breadcrumb a:hover {
  color: #fff !important;
  transition-duration: 0.3s;
}
.breadcrumb-heading {
  color: #fff !important;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .site-heading {
    display: block;
    text-align: center;
    /* padding: 10px 8px !important; */
  }
}

/* Shared widget / chart cards (dashboard design system) */
.card-container,
.chart-widget-card,
.dashboard-chart-card,
.my-card,
.my-card-table {
  background: #fff !important;
  border: 1px solid var(--app-widget-border) !important;
  border-radius: var(--app-widget-radius) !important;
  box-shadow: var(--app-widget-shadow) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card-container.q-card--bordered,
.q-card.bordered.card-container {
  border: 1px solid var(--app-widget-border) !important;
}

.card-container:hover,
.chart-widget-card:hover,
.dashboard-chart-card:hover,
.my-card:hover {
  box-shadow: var(--app-widget-shadow-hover) !important;
}

.card-container .text-subtitle1,
.chart-widget-card__title,
.dashboard-chart-card__header h2 {
  margin: 0 0 4px;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--app-text-title) !important;
  line-height: 1.25;
}

.chart-widget-card__subtitle,
.dashboard-chart-card__header p {
  margin: 0;
  font-size: 13px;
  color: var(--app-text-muted);
  line-height: 1.45;
}

.chart-widget-card__header,
.dashboard-chart-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}

/* Main dashboard — stat cards & sections (shared with module dashboards) */
.dashboard-page {
  background: #f6f4fb;
}

.dashboard-section {
  margin-bottom: 28px;
}

.stat-card {
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(95, 63, 155, 0.1);
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(72, 40, 120, 0.1);
}

.stat-card__body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}

.stat-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon--purple {
  background: #f1e8ff;
  color: #7b57b8;
}

.stat-card__icon--violet {
  background: #ece8ff;
  color: #6f4ca8;
}

.stat-card__icon--pink {
  background: #f1e8ff;
  color: #7b57b8;
}

.stat-card__icon--green {
  background: #e8f8ef;
  color: #1f9d63;
}

.stat-card__icon--teal {
  background: #e5f7f5;
  color: #148f85;
}

.stat-card__icon--amber {
  background: #fff5df;
  color: #c58b12;
}

.stat-card__icon--slate {
  background: #eef1f6;
  color: #5d6b82;
}

.stat-card__value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: #2f2348;
}

.stat-card__label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4a4260;
}

.stat-card__caption {
  margin-top: 4px;
  font-size: 12px;
  color: #8b839c;
}

.dashboard-chart-card {
  cursor: default;
}

.staff-summary-clickable {
  cursor: pointer;
}

.dashboard-panel-list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ecf5;
  font-size: 14px;
}

.dashboard-panel-list__row:last-child {
  border-bottom: none;
}

.dashboard-panel-list__label {
  color: #6b6280;
}

.dashboard-panel-list__value {
  color: #2f2348;
  font-size: 15px;
}

.dashboard-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-panel-list__row--alert {
  border-bottom: none;
  padding-top: 4px;
}

.dashboard-panel-list__value--alert {
  color: #c62828;
}

.rota-leave-conflicts__banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f5c6cb;
  background: #fff5f5;
  color: #7f1d1d;
}

.rota-leave-conflicts__banner strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.rota-leave-conflicts__banner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #9b1c1c;
}

.rota-leave-conflicts__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.rota-leave-conflict-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fde2e2;
  background: #fffafa;
}

.rota-leave-conflict-item__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rota-leave-conflict-item__staff {
  font-size: 14px;
  font-weight: 700;
  color: #2f2348;
}

.rota-leave-conflict-item__meta {
  font-size: 12px;
  color: #6b6280;
  line-height: 1.4;
}

.chart-widget-card--clickable,
.attendance-chart-clickable,
.student-attendance-chart-clickable,
.student-details-chart-clickable,
.areas-chart-clickable,
.libraries-chart-clickable,
.news-feed-summary-clickable,
.complaints-summary-clickable,
.admission-queries-clickable {
  cursor: pointer;
}

.claim-card,
.nested-widget-card {
  border: 1px solid var(--app-widget-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  background: #faf8ff !important;
}

.claim-card:hover {
  border-color: rgba(172, 137, 233, 0.28) !important;
  background: #f8f4ff !important;
}

/* Report / detail cards — same border treatment as dashboard widgets */
.shadow-card,
.graph-data,
.chart-card,
.profile-card,
.student-status-card,
.info-card,
.guardian-card,
.fee-cycle-card,
.revenue-report-form-container {
  background: #fff !important;
  border: 1px solid var(--app-widget-border) !important;
  border-radius: var(--app-widget-radius) !important;
  box-shadow: var(--app-widget-shadow) !important;
}

.graph-data {
  height: 22rem !important;
  padding: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.graph-data:hover {
  transform: translateY(-2px);
  box-shadow: var(--app-widget-shadow-hover) !important;
}

.revenue-report-form-container {
  padding: 6px 5px 20px 5px;
}

.month-card {
  border: 1px solid var(--app-widget-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--app-widget-shadow) !important;
  background: #fff !important;
}

.chart-widget-card--clickable:hover,
.attendance-chart-clickable:hover,
.student-attendance-chart-clickable:hover,
.student-details-chart-clickable:hover,
.areas-chart-clickable:hover,
.libraries-chart-clickable:hover,
.news-feed-summary-clickable:hover,
.complaints-summary-clickable:hover,
.admission-queries-clickable:hover {
  transform: translateY(-2px);
}

.my-card {
  margin: 0 2px 5px !important;
  min-height: 170px !important;
}

.text_icone {
  font-size: 25px !important;
}

.icon-left {
  font-size: 45px !important;
}

.q-field--readonly.q-field--float .q-field__native,
.q-field--readonly.q-field--float .q-field__input {
  resize: none !important;
}

.main-card-container-staff {
  background: white;
  border: 1px solid var(--app-widget-border);
  border-radius: var(--app-widget-radius);
  box-shadow: var(--app-widget-shadow);
  padding: 20px;
  text-align: center;
}

.label-required::after {
  content: " *";
  color: red;
}

.main-form-container {
  border: 1px solid var(--app-widget-border);
  border-radius: var(--app-widget-radius);
  box-shadow: var(--app-widget-shadow);
  padding: 22px 22px 18px;
  background: #fff;
}

/* Reusable module form / filter pages */
.app-module-form-page {
  width: 100%;
}

.app-module-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  background: linear-gradient(120deg, #5f3f9b 0%, #7b57b8 45%, #ac89e9 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(72, 40, 120, 0.14);
}

.app-module-hero__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.app-module-hero__subtitle {
  margin: 8px 0 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.app-module-hero__art {
  opacity: 0.9;
}

.app-module-form-page__content {
  margin-top: 20px;
}

.app-module-form-page .info-card,
.app-module-form-card {
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--app-widget-border);
  border-radius: var(--app-widget-radius);
  box-shadow: var(--app-widget-shadow);
}

.main-site-container .main-form-container label,
.main-site-container .q-form label,
.app-module-form-page label,
.app-module-form-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5f5775;
}

.main-site-container .main-form-container .q-field--outlined .q-field__control,
.main-site-container .q-form .q-field--outlined .q-field__control,
.app-module-form-page .q-field--outlined .q-field__control {
  border-radius: 10px;
}

.main-site-container .q-editor,
.app-module-form-page .q-editor {
  border: 1px solid var(--app-widget-border);
  border-radius: 12px;
  box-shadow: var(--app-widget-shadow);
  overflow: hidden;
}

.main-site-container .q-editor .q-editor__toolbar,
.app-module-form-page .q-editor .q-editor__toolbar {
  border-bottom: 1px solid #f0ecf5;
  background: #faf8ff;
}

.app-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 4px;
}

.app-form-actions .q-btn {
  min-width: 110px;
}

/* Support ticket dialogs — wide layout for rich text editors */
.q-dialog__inner.support-ticket-dialog {
  padding: 16px;
  width: auto !important;
  max-width: none !important;
}

.q-dialog__inner.support-ticket-dialog > .ticket-dialog-shell {
  width: 1080px !important;
  max-width: 94vw !important;
  min-width: min(1080px, 94vw);
}

.q-dialog__inner.support-ticket-dialog .ticket-dialog-shell__body {
  padding: 24px 28px;
  background: #faf8fc;
}

.q-dialog__inner.support-ticket-dialog .ticket-dialog-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.q-dialog__inner.support-ticket-dialog .ticket-dialog-form-grid__full {
  grid-column: 1 / -1;
}

.q-dialog__inner.support-ticket-dialog .ticket-dialog-field label {
  display: block;
  margin-bottom: 6px;
}

.q-dialog__inner.support-ticket-dialog .ticket-reply-compose {
  width: 100%;
}

.q-dialog__inner.support-ticket-dialog .q-editor.ticket-dialog-editor {
  width: 100% !important;
  min-width: 100%;
  border: 1px solid rgba(123, 87, 184, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.q-dialog__inner.support-ticket-dialog .q-editor.ticket-dialog-editor .q-editor__toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid #f0ecf5;
  background: #faf8ff;
  padding: 4px 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.q-dialog__inner.support-ticket-dialog .q-editor.ticket-dialog-editor .q-editor__toolbar-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0 4px 0 0;
  padding: 0;
  border: none !important;
}

.q-dialog__inner.support-ticket-dialog .q-editor.ticket-dialog-editor .q-editor__toolbar-group + .q-editor__toolbar-group:before {
  display: none !important;
}

.q-dialog__inner.support-ticket-dialog .q-editor.ticket-dialog-editor .q-editor__toolbar .q-btn {
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.q-dialog__inner.support-ticket-dialog .q-editor.ticket-dialog-editor .q-editor__content {
  min-height: 160px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
}

@media screen and (max-width: 767px) {
  .q-dialog__inner.support-ticket-dialog .ticket-dialog-form-grid {
    grid-template-columns: 1fr;
  }

  .q-dialog__inner.support-ticket-dialog > .ticket-dialog-shell {
    width: 96vw !important;
    min-width: 0;
  }
}

@media screen and (max-width: 1023px) {
  .app-module-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-module-hero__art {
    align-self: flex-end;
  }
}

/* Shared module sidebar (dashboard + inner module hubs) */
.module-sidebar {
  background: #fff !important;
  border-right: 1px solid rgba(95, 63, 155, 0.12) !important;
  box-shadow: none !important;
}

.module-sidebar .q-scrollarea .q-scrollarea__container .q-scrollarea__content {
  background-color: #fff !important;
}

.module-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b57b8;
}

.module-sidebar__list {
  padding: 8px 12px 16px;
}

.module-sidebar__item {
  border-radius: 14px;
  margin-bottom: 8px;
  min-height: 56px;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.module-sidebar__item:hover {
  background: #f8f4ff;
  border-color: rgba(172, 137, 233, 0.22);
  transform: translateX(2px);
}

.module-sidebar__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4ecff 0%, #faf6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-sidebar__icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.module-sidebar__label {
  color: #4a3d66;
  font-weight: 600;
  font-size: 14px;
}

.module-sidebar__section {
  padding: 14px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

.module-sidebar-menu-btn {
  display: none;
  position: fixed;
  top: 78px;
  left: 12px;
  z-index: 2100;
  background: #fff;
  box-shadow: 0 8px 20px rgba(72, 40, 120, 0.12);
}

/* Module hub pages — breadcrumb + sidebar + content */
.module-hub {
  width: 100%;
}

.module-hub__heading {
  margin: 0 0 16px;
}

.module-hub__heading .site-heading,
.module-hub__heading .page-breadcrumb {
  margin-bottom: 0 !important;
}

.module-hub__body {
  position: relative;
}

/* Flex shell — single page scroll (no nested q-layout container) */
.module-shell {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--app-widget-border);
  border-radius: var(--app-widget-radius);
  box-shadow: var(--app-widget-shadow);
  overflow: hidden;
}

.module-shell__sidebar {
  flex: 0 0 268px;
  width: 268px;
  background: #fff;
  border-right: 1px solid rgba(95, 63, 155, 0.12);
}

.module-shell__content {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--app-page-bg);
  padding: 20px 24px 28px;
}

.module-shell__backdrop {
  display: none;
}

@media (min-width: 1061px) {
  .module-shell__sidebar {
    display: block !important;
  }

  .module-shell__backdrop {
    display: none !important;
  }
}

@media (max-width: 1060px) {
  .module-shell {
    position: relative;
  }

  .module-shell__sidebar {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    bottom: 0;
    z-index: 2001;
    box-shadow: 0 12px 32px rgba(72, 40, 120, 0.18);
  }

  .module-shell__sidebar--open {
    display: block;
  }

  .module-shell__backdrop {
    display: block;
    position: fixed;
    inset: 68px 0 0 0;
    z-index: 2000;
    background: rgba(47, 35, 72, 0.35);
  }

  .module-shell--drawer-closed .module-shell__backdrop {
    display: none;
  }

  .module-shell--drawer-closed .module-shell__sidebar {
    display: none;
  }
}

@media (max-width: 1060px) {
  .module-sidebar-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .breadcrumb,
  .breadcrumb * {
    font-size: 14px !important;
  }
}

/* Rota / Schedule */
.rota-page {
  padding: 0;
}

.rota-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rota-toolbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rota-toolbar__left--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.rota-toolbar__week {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--app-text-title, #2f2348);
}

.rota-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rota-grid-wrapper {
  overflow: auto;
  padding: 0 !important;
}

.rota-grid {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.rota-grid th,
.rota-grid td {
  border: 1px solid #e8e4f0;
  vertical-align: top;
}

.rota-grid__label-col {
  width: 120px;
  background: #faf9fc;
  padding: 10px 12px;
  position: sticky;
  left: 0;
  z-index: 2;
  font-weight: 600;
}

.rota-grid__day-head {
  text-align: center;
  background: #f3eef9;
  padding: 10px 6px;
  font-weight: 600;
}

.rota-grid__day-num {
  font-size: 1.1rem;
  color: #5b3a8c;
}

.rota-grid__section-row {
  background: #faf9fc;
  padding: 8px 12px;
}

.rota-grid__cell {
  padding: 6px;
  min-height: 70px;
  position: relative;
  background: #fff;
}

.rota-shift-blocks {
  min-height: 24px;
}

.rota-shift-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  cursor: pointer;
}

.rota-shift-block--conflict {
  box-shadow: 0 0 0 2px #ef4444;
}

.rota-shift-block__time {
  font-weight: 600;
}

.rota-shift-block__staff {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5b3a8c;
}

.rota-add-shift-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  margin-top: 4px;
  border: 1px dashed #c4b5fd;
  border-radius: 6px;
  background: transparent;
  color: #7b57b8;
  cursor: pointer;
  font-size: 18px;
}

.rota-add-shift-btn:hover {
  background: #f5f0ff;
}

.rota-hint {
  font-size: 12px;
  color: #6b7280;
}

.rota-page-header__hint {
  font-size: 13px;
  color: #6b7280;
}

.rota-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.rota-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.rota-color-swatch--active {
  border-color: #2f2348;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7b57b8;
}

.rota-day-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.rota-day-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e8e4f0;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #5f5775;
}

.rota-day-toggle--active {
  background: #7b57b8;
  border-color: #7b57b8;
  color: #fff;
}

.rota-shift-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.rota-shift-dialog__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.rota-stat-card {
  text-align: center;
  padding: 20px !important;
}

.rota-stat-card__label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.rota-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  color: #5b3a8c;
}

.rota-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.rota-week-overview {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.rota-week-day {
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid #e8e4f0;
  background: #faf9fc;
}

.rota-week-day--has-shift {
  background: #f5f0ff;
  border-color: rgba(123, 87, 184, 0.3);
}

.rota-week-day__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #5b3a8c;
}

.rota-week-day__status {
  font-size: 13px;
  margin-top: 4px;
  color: #6b7280;
}

.rota-dash-card {
  text-align: center;
}

.rota-dash-card__value {
  font-size: 32px;
  font-weight: 700;
  color: #5b3a8c;
  line-height: 1.2;
}

.rota-dash-card__label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.rota-dash-week__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0ecf5;
  font-size: 14px;
}

.rota-dash-week__row:last-of-type {
  border-bottom: none;
}

.rota-toolbar__week-range {
  font-weight: 500;
  color: #6b7280;
}

/* Staff timetable — staff picker (object-bound q-select, no use-input) */
.rota-timetable-page .rota-staff-select .q-field__input,
.rota-timetable-page .rota-staff-select input {
  color: #2f2348 !important;
  font-size: 14px;
  font-weight: 500;
  opacity: 1 !important;
  min-width: 0;
}

.rota-timetable-shifts-card .rota-timetable-list__title {
  padding-bottom: 0;
}

.rota-timetable-shifts-table .q-table__top,
.rota-timetable-shifts-table thead tr:first-child th {
  background: #faf9fc;
}

.rota-timetable-shifts-table thead th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b3a8c;
}

.rota-timetable-table__time {
  display: inline-block;
  padding: 4px 10px 4px 8px;
  border-left: 3px solid #7b57b8;
  background: #f5f0ff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5b3a8c;
}

.rota-staff-select__selected {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rota-staff-select__selected-name {
  font-size: 14px;
  font-weight: 600;
  color: #2f2348;
}

.rota-staff-select__selected-role {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

.rota-staff-select__selected-role::before {
  content: "·";
  margin-right: 8px;
  color: #c4b5d8;
}

.rota-staff-select__placeholder {
  font-size: 14px;
  color: #9ca3af;
}

.rota-staff-select__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b57b8, #9b7fd4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.rota-staff-select__menu {
  max-height: 320px;
}

.rota-timetable-day--today {
  border-color: #7b57b8;
  box-shadow: 0 0 0 2px rgba(123, 87, 184, 0.2);
}

.rota-timetable-day--today .rota-timetable-day__head {
  background: #7b57b8;
}

.rota-timetable-day--today .rota-timetable-day__label,
.rota-timetable-day--today .rota-timetable-day__num {
  color: #fff;
}

.rota-timetable-page .rota-timetable-profile__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b57b8, #9b7fd4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.rota-timetable-page .rota-timetable-profile__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--app-text-title, #2f2348);
  line-height: 1.3;
}

.rota-timetable-page .rota-timetable-profile__designation {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.rota-timetable-page .q-field--outlined .q-field__control {
  border-radius: 10px;
}

.rota-timetable-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px !important;
}

.rota-timetable-profile__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b57b8, #9b7fd4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.rota-timetable-profile__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--app-text-title, #2f2348);
}

.rota-timetable-profile__designation {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.rota-dash-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px !important;
}

.rota-dash-stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f5f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rota-dash-stat__value {
  font-size: 26px;
  font-weight: 700;
  color: #5b3a8c;
  line-height: 1.2;
}

.rota-dash-stat__label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.rota-timetable-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  .rota-timetable-week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rota-timetable-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rota-timetable-day {
  border: 1px solid #e8e4f0;
  border-radius: 12px;
  background: #faf9fc;
  overflow: hidden;
  min-height: 110px;
}

.rota-timetable-day--active {
  background: #fff;
  border-color: rgba(123, 87, 184, 0.35);
  box-shadow: 0 4px 14px rgba(91, 58, 140, 0.08);
}

.rota-timetable-day__head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px 6px;
  background: #f3eef9;
}

.rota-timetable-day--active .rota-timetable-day__head {
  background: #ede6f8;
}

.rota-timetable-day__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #5b3a8c;
}

.rota-timetable-day__num {
  font-size: 15px;
  font-weight: 700;
  color: #2f2348;
}

.rota-timetable-day__body {
  padding: 8px;
  min-height: 56px;
}

.rota-timetable-day__shift {
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: #f5f0ff;
  border-left: 3px solid #7b57b8;
}

.rota-timetable-day__shift-time {
  font-size: 12px;
  font-weight: 600;
  color: #5b3a8c;
}

.rota-timetable-day__off {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  padding-top: 12px;
}

.rota-timetable-list__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--app-text-title, #2f2348);
  margin-bottom: 10px;
}

.rota-timetable-shift__date {
  font-size: 14px;
  font-weight: 600;
  color: #2f2348;
}

.rota-timetable-shift__time {
  font-size: 13px;
  color: #5b3a8c;
  margin-top: 2px;
}

.rota-attendance-table thead th,
.rota-payroll-table thead th {
  background: #faf9fc;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b3a8c;
}

.rota-attendance-page .rota-page-header__hint,
.rota-payroll-tabs {
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  border: 1px solid #ece8f2;
}

.rota-payroll-tabs .q-tabs__indicator {
  display: none !important;
}

.rota-payroll-section {
  margin-bottom: 20px;
}

.rota-payroll-section:last-child {
  margin-bottom: 0;
}

.rota-payroll-panels {
  background: transparent;
}

.rota-payroll-panels .q-tab-panel {
  padding: 0;
}

.rota-payroll-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #c5d9f5;
  background: #eef5ff;
}

.rota-payroll-action-bar__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2f2348;
}

.rota-payroll-action-bar__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rota-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.rota-payroll-records-table thead th {
  background: #faf9fc;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b3a8c;
}

.rota-staff-payroll-page .rota-page-header__hint a,
.rota-payroll-summary-page .rota-page-header__hint a {
  color: #7b57b8;
  font-weight: 600;
  text-decoration: none;
}

.rota-staff-payroll-page .rota-page-header__hint a:hover,
.rota-payroll-summary-page .rota-page-header__hint a:hover {
  text-decoration: underline;
}

.rota-payroll-weeks-table thead th {
  background: #faf9fc;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b3a8c;
}

.rota-payroll-weeks-table .q-table__middle {
  max-height: 480px;
}

.rota-payroll-summary-page .rota-staff-select .q-field__input,
.rota-payroll-summary-page .rota-staff-select input,
.rota-staff-payroll-page .rota-staff-select .q-field__input,
.rota-staff-payroll-page .rota-staff-select input,
.rota-staff-attendance-page .rota-staff-select .q-field__input,
.rota-staff-attendance-page .rota-staff-select input {
  color: #2f2348 !important;
  font-size: 14px;
  font-weight: 500;
  opacity: 1 !important;
}

.rota-payroll-summary-page .rota-page-header__hint,
.rota-staff-payroll-page .rota-page-header__hint,
.rota-staff-attendance-page .rota-page-header__hint {
  font-size: 13px;
  color: #6b7280;
}

.rota-period-strip .q-card__section {
  padding: 12px 16px;
}

.rota-period-strip__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e0d8ec;
  border-radius: 8px;
  background: #fff;
}

.rota-period-strip__label {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #2f2348;
}

.rota-staff-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 20px;
}

.rota-staff-hero__profile {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}

.rota-staff-hero__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b57b8, #9b7fd4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.rota-staff-hero__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2f2348;
}

.rota-staff-hero__role {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.rota-staff-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.rota-staff-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.rota-staff-hero__stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #2f2348;
}

.rota-staff-hero__stat-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rota-staff-hero__links {
  margin-left: auto;
}

.rota-week-detail-dialog__header {
  background: #faf9fc;
  padding: 16px 20px;
}

.rota-week-detail-dialog__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2f2348;
}

.rota-week-detail-dialog__subtitle {
  font-size: 13px;
  color: #6b7280;
}

.rota-week-detail-dialog__body {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.rota-week-detail-dialog__actions {
  padding: 12px 16px;
  gap: 8px;
}

.rota-week-detail-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 6px;
}

.rota-week-detail-card__value {
  font-size: 22px;
  font-weight: 700;
  color: #2f2348;
}

.rota-week-detail-section__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #2f2348;
}

.rota-week-detail-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rota-week-detail-step {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}

.rota-week-detail-step--highlight .rota-week-detail-step__label,
.rota-week-detail-step--highlight .rota-week-detail-step__value {
  font-weight: 700;
  color: #4c1d95;
}

.rota-week-detail-step__label {
  color: #374151;
}

.rota-week-detail-step__value {
  color: #111827;
  text-align: right;
}

.rota-week-detail-shifts thead th {
  background: #faf9fc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #5b3a8c;
}

.rota-staff-id {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3eef9;
  color: #5b3a8c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.rota-post-id {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  font-family: Consolas, monospace;
}

.rota-staff-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rota-staff-identity--with-avatar .rota-staff-identity__text {
  text-align: left;
}

.rota-staff-identity__name {
  display: block;
}

.rota-staff-identity__role,
.rota-staff-identity__meta {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.rota-staff-name-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.rota-staff-name-link:hover strong {
  color: #5b3a8c;
  text-decoration: underline;
}

.rota-staff-name-link__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b57b8, #9b7fd4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.rota-staff-name-link__role {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.rota-empty-state {
  text-align: center;
  color: #6b7280;
}

.rota-empty-state h3 {
  margin: 12px 0 4px;
  font-size: 16px;
  color: #2f2348;
}

.rota-empty-state p {
  margin: 0;
  font-size: 13px;
}

.rota-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.rota-salaries-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  color: #6b7280;
}

.rota-attendance-records-table thead th,
.rota-attendance-day .q-item {
  font-family: inherit;
}

.rota-attendance-day .q-expansion-item__container {
  border-radius: 10px;
}

.rota-payroll-page .rota-page-header__hint {
  font-size: 13px;
  color: #6b7280;
  max-width: 520px;
}

.rota-claim-dialog {
  width: 720px;
  max-width: 95vw;
}

.rota-claim-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #faf9fc;
}

.rota-claim-dialog__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2f2348;
}

.rota-claim-dialog__subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.rota-claim-dialog__meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.rota-claim-dialog__meta-value {
  font-size: 15px;
  font-weight: 700;
  color: #2f2348;
}

.rota-claim-dialog__field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.rota-claim-dialog__body {
  padding: 20px;
}

.rota-claim-dialog__hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.rota-claim-message {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed #d8d2e6;
  background: #faf9fc;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  white-space: pre-wrap;
}

.rota-claim-dialog__mode {
  border: 1px solid #ece8f2;
  border-radius: 10px;
  overflow: hidden;
}

.rota-claim-dialog__mode .q-btn {
  min-height: 42px;
  font-weight: 600;
}

.rota-claim-dialog__mode .q-btn--active {
  box-shadow: none !important;
}

.rota-claim-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.rota-attendance-claims-panel .rota-payroll-tabs .q-tab {
  min-height: 40px;
}

.rota-attendance-claims-panel .rota-payroll-tabs .q-tab--active {
  background: #f5f0ff;
  border-radius: 8px;
}

.rota-claims-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.rota-claim-sessions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rota-claim-session {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #faf9fc;
}

.rota-claim-session__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 8px;
}

.rota-claim-total {
  font-size: 13px;
  color: #374151;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f0ff;
}

.rota-attendance-page-tabs .q-btn-toggle {
  max-width: 360px;
}
