html,
body {
  /* height: 100vh; */
  width: 100vw;
  margin: 0;
  padding: 0;
  /* overflow: hidden; */
  background: #ffffff !important;
}

/* Ensure font is applied to form elements */

*,
*::before,
*::after {
  font-family: "Inter", sans-serif;
}

/* Admin: Account Requests clipped text link */
.req-clip { cursor: pointer; color: #0d6efd; }
.req-clip:hover { text-decoration: underline; }

/* Admin: Modal for full text; allow breaking long words/emails */
#reqTextModal .modal-dialog { max-width: 800px; }
#reqTextModal .modal-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 60vh;
  overflow-y: auto;
}

/* Admin: Request Details modal — wrap long content and keep scrollable */
#reqDetailsModal .modal-dialog { max-width: 900px; }
#reqDetailsModal .modal-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 65vh;
  overflow-y: auto;
}
#reqDetailsModal .modal-body .small { font-size: .92rem; }

/* Admin: Make action column compact */
#user-requests-table td:first-child { white-space: nowrap; }
#user-requests-table .btn { padding: 2px 8px; margin-right: 4px; }

/* Admin: Sticky table header for Account Requests */
.table-responsive:has(#user-requests-table) { position: relative; }
#user-requests-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff; /* keep header opaque over rows */
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* Admin: Sorting + reordering affordances */
#user-requests-table thead th.sortable { cursor: pointer; }
#user-requests-table thead th[data-sort-dir="asc"]::after { content: " \25B2"; font-size: .7em; color: #6b7280; }
#user-requests-table thead th[data-sort-dir="desc"]::after { content: " \25BC"; font-size: .7em; color: #6b7280; }
#user-requests-table thead th.draggable { cursor: move; }
#user-requests-table thead th.drop-target { outline: 2px dashed #0d6efd; outline-offset: -4px; }

/* Admin: resizable columns handle */
#user-requests-table thead th { position: sticky; }
#user-requests-table thead th .col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  /* subtle visual on hover */
  background: rgba(0,0,0,0);
}
#user-requests-table thead th .col-resizer:hover { background: rgba(13,110,253,0.12); }
body.col-resize-cursor { cursor: col-resize !important; }

.dashboard-select-label {
  margin-bottom: 0;
  margin-right: 8px;
  font-weight: 500;
  font-size: 1rem;
}
.dropdown .btn {
  font-weight: 500;
  color: #111827;
  background-color: unset !important;
  border: 0 !important;
}

.dropdown-menu {
  width: 40vw !important;
  height: 100vh;
  right: -14px !important;
  border-radius: 0 !important;
  top: 46px !important;
}
.dropdown-item .initials {
  padding: 3px;
  background: #f43f5e;
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}
.dropdown-item {
  padding: 0.75rem 2rem 0.75rem 1rem !important;
}

/* Share menu sizing override (keep compact) */
#shareDropdownContainer .dropdown-menu {
  width: auto !important;
  min-width: 160px !important;
  max-width: 240px !important;
  height: auto !important;
  max-height: none !important;
  right: 0 !important;
  top: 100% !important;
  margin-top: 6px !important;
  border-radius: 8px !important;
  padding: 0.25rem 0 !important;
}
/* .dropdown-item:hover {
  background-color: #e498a4 !important;
  color: #070707 !important;
} */
@media (max-width: 900px) {
  #dashboardSelect {
    width: 120px !important;
  }
}
@media (max-width: 600px) {
  #dashboardSelect {
    width: 90px !important;
    font-size: 0.85rem;
  }
  .dashboard-select-label {
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  #dashboardMenu.dropdown-menu {
    width: 80vw !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    right: 5% !important;
    border: #111827 1px solid !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
    padding-bottom: 12px !important;
  }
  #dashboardMenu.dropdown-menu .dropdown-item {
    padding: 0.9rem 1.4rem !important;
    font-size: 1.05rem;
  }
}

/* Mobile actions dropdown — match hamburger menu look */
@media (max-width: 600px) {
  #mobileActionsMenu.dropdown-menu {
    width: 70vw !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    right: 5% !important;
    border: #111827 1px solid !important;
  }
  #mobileActionsMenu .dropdown-item i { width: 1.1rem; text-align: center; }
  /* Colorful variants to match desktop buttons */
  #mobileActionsMenu .dropdown-item { margin: 4px 8px; border-radius: 8px; padding: 8px 10px; }
  #mobileActionsMenu .dropdown-item.hs-act-info { color: #0d6efd; background: #eef5ff; border: 1px solid rgba(13,110,253,.35); }
  #mobileActionsMenu .dropdown-item.hs-act-info:active, 
  #mobileActionsMenu .dropdown-item.hs-act-info:hover { background: #e7f1ff; }
  #mobileActionsMenu .dropdown-item.hs-act-report { color: #E13F4E; background: #fff; border: 1px solid #f1aeb5; }
  #mobileActionsMenu .dropdown-item.hs-act-report:active,
  #mobileActionsMenu .dropdown-item.hs-act-report:hover { background: #fff2f5; }
  #mobileActionsMenu .dropdown-item.hs-act-neutral { color: #111827; background: #fff; border: 1px solid rgba(0,0,0,.08); }
  #mobileActionsMenu .dropdown-item.hs-act-neutral:active,
  #mobileActionsMenu .dropdown-item.hs-act-neutral:hover { background: #f8f9fa; }
}

/* Offcanvas Sidebar */
.offcanvas {
  width: 320px !important;
  max-width: 100vw;
  background: #fff;
  box-shadow: 2px 0 16px rgba(44, 62, 80, 0.12);
  padding-top: 24px;
  padding-bottom: 12px;
}

/* Make date range rows behave inside narrow offcanvas */
.offcanvas .date-range-inline {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center !important;
  gap: 6px !important;
}
.offcanvas .date-range-inline .form-control {
  width: 100% !important;
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.9rem;
}
.offcanvas .date-range-inline .to-inline {
  display: inline-block !important;
  color: #6b7280;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.offcanvas .date-range-inline .to-block { display: none !important; }
.offcanvas .date-range-inline .to-block::before,
.offcanvas .date-range-inline .to-block::after {
  display: none !important;
  content: none !important;
}
/* Tighten label spacing in sidebar */
.offcanvas label.form-label { margin-bottom: 4px; }

/* On wider screens outside offcanvas, allow compact inline layout */
@media (min-width: 992px) {
  .date-range-inline {
    flex-wrap: nowrap;
  }
  .date-range-inline .form-control {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 220px;
  }
  .date-range-inline .to-inline {
    color: #6b7280;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 600px) {
  .offcanvas {
    width: 100vw !important;
  }
}

#sidebarFilters .offcanvas-body {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  #sidebarFilters .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding-bottom: 18px;
  }
  #sidebarFilters .offcanvas-body form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
  }
  #sidebarFilters .offcanvas-body form .mb-3 {
    margin-bottom: 0;
  }
  #sidebarFilters .offcanvas-body form > .d-grid.gap-2 {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 12px 0 4px;
    background: #fff;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    z-index: 5;
  }
  #sidebarFilters .offcanvas-body form > .d-grid.gap-2 .btn {
    min-height: 44px;
    font-size: 1rem;
  }
  #sidebarFilters .choices__inner {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  #sidebarFilters .choices__list--dropdown {
    max-height: 40vh;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  #sidebarFilters .choices__list--dropdown .choices__item {
    padding: 12px 14px;
    font-size: 1rem;
  }
  #sidebarFilters .choices__input {
    padding: 10px 12px;
  }
}

/* Superset Embed Sizing (responsive, flow-based) */
#superset-emb,
#superset-emb iframe {
  width: 100% !important;
  min-width: 0 !important;
  border: none;
  display: block;
  position: static;
  top: auto;
  left: auto;
  padding: 0 10px;
  box-sizing: border-box;
}

#superset-emb {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 12px;
}

/* Hide scrollbars for a clean look */
body,
html {
  scrollbar-width: none;
}
body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none;
}

/* Info Modal: fixed height with internal scroll */
#dashboardInfoModal .modal-dialog {
  height: 70vh;
  max-height: 70vh;
  width: 50vw;
  max-width: 50vw;
}
#dashboardInfoModal .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#dashboardInfoModal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Basic typography for rich descriptions */
#dashboardInfoModal .modal-body h1 { font-size: 1.25rem; margin: 0 0 .5rem; }
#dashboardInfoModal .modal-body h2 { font-size: 1.1rem; margin: .75rem 0 .35rem; }
#dashboardInfoModal .modal-body h3 { font-size: 1rem; margin: .5rem 0 .25rem; }
#dashboardInfoModal .modal-body p { margin: .5rem 0; }
#dashboardInfoModal .modal-body ul { padding-left: 1.2rem; list-style: disc; }
#dashboardInfoModal .modal-body ol { padding-left: 1.2rem; }
#dashboardInfoModal .modal-body li { margin: .25rem 0; }
#dashboardInfoModal .modal-body a { color: #E13F4E; text-decoration: underline; }
#dashboardInfoModal .modal-body pre,
#dashboardInfoModal .modal-body code { background: #f6f6f6; border-radius: 6px; padding: 2px 6px; }
#dashboardInfoModal .modal-body pre { padding: .5rem .75rem; overflow: auto; }
#dashboardInfoModal .modal-body img { max-width: 100%; height: auto; border-radius: 6px; }

/* Report Issue button styling: red text, black border */
.hs-report-issue-btn {
  color: #E13F4E !important; /* brand red */
  border: 1px solid #f1aeb5 !important; /* light red */
  background-color: #fff !important;
}
.hs-report-issue-btn:hover,
.hs-report-issue-btn:focus {
  color: #E13F4E !important;
  border-color: #f1aeb5 !important; /* light red */
  background-color: #f8f9fa !important;
}

/* Align and space header action buttons (Info, Report, Clock) */
#tooltipInfoBtn,
#reportIssueBtn,
#jobStatusBtn {
  display: inline-flex;
  align-items: center;
  height: 32px; /* unify heights */
  padding: 6px 10px; /* unify paddings */
  line-height: 1.2;
}

/* Ensure consistent spacing; clock button previously had right-margin only */
#jobStatusBtn {
  margin-left: 2px !important; /* even tighter gap to Report Issue */
  margin-right: 0 !important;
}

/* Slightly increase the clock icon size for visibility */
#jobStatusBtn .bi {
  font-size: 1.25rem;
}

/* Responsive fallback for small screens */
@media (max-width: 768px) {
  #dashboardInfoModal .modal-dialog {
    width: 90vw;
    max-width: 90vw;
  }
}

/* Mobile visibility helpers */
.hs-mobile-only { display: none !important; }
.hs-desktop-only { display: inline-flex !important; }
@media (max-width: 600px) {
  .hs-mobile-only { display: inline-flex !important; }
  .hs-desktop-only { display: none !important; }
}

.auth-main {
  position: relative;
}
.auth-main .auth-wrapper {
  height: 100%;
  width: 100%;
  min-height: 100vh;
}
.auth-main .auth-wrapper .saprator {
  position: relative;
  display: flex;
  align-self: center;
  justify-content: center;
}
.auth-main .auth-wrapper .saprator:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--bs-border-color);
  z-index: 1;
}
.auth-main .auth-wrapper .saprator span {
  font-size: 0.875rem;
  padding: 8px 24px;
  background: var(--bs-card-bg);
  z-index: 5;
  text-transform: capitalize;
  color: var(--pc-heading-color);
  font-weight: 500;
}
.auth-main .auth-wrapper.v3 {
  display: flex;
  align-items: center;
}
.auth-main .auth-wrapper.v3 .auth-form {
  flex-direction: column;
  background: #ebd5c6;
  min-height: 100vh;
  padding: 24px;
  background-repeat: no-repeat;
  background-size: auto 75%;
  background-position: left center;
  position: relative;
  /*justify-content: space-between;*/
}
.auth-main .auth-wrapper.v3 .auth-form > * {
  position: relative;
  z-index: 5;
}
.auth-main .auth-wrapper.v3 .auth-form:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(16px);
}
.auth-main .auth-wrapper .auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}
.auth-main .auth-wrapper .auth-form .card {
  width: 100%;
  max-width: 480px;
  box-shadow: none;
}
.auth-main .auth-wrapper .auth-form .card-header {
  background: #ed1846;
}
.auth-main .auth-wrapper .auth-form img + span {
  padding-left: 10px;
}
.auth-main .auth-wrapper .auth-form h5 span {
  text-decoration: underline;
}
.auth-main .auth-wrapper .auth-footer,
.auth-main .auth-wrapper .auth-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-footer {
  visibility: hidden;
}
.login-logo {
  width: 150px;
}
.login-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.navbar-toggler-icon {
  background-size: 125%;
  /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");*/
}
.navbar-logo {
  width: 80px;
}

/* Icon-style logout button, subtle hover */
#logout-btn { opacity: 0.85; }
#logout-btn:hover { opacity: 1; }

/* User avatar and initials */
/* .user-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; }
.user-initials { width:36px; height:36px; background:#E13F4E; color:#fff; font-weight:600; } */
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-initials {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}


/* Keep main container width similar to screenshot */
.container {
  max-width: 1280px; /* closer to reference */
  padding-left: 24px;
  padding-right: 24px;
}

/* Homepage layout: reduce side margins by widening container
   and slightly tightening side padding */
#home-container {
  max-width: 1440px;
  padding-left: 16px;
  padding-right: 16px;
}

/* New homepage (reference-based) */
.hs2-section-title {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.25rem; color: #1f2937;
  padding-bottom: 12px; border-bottom: 1px solid #f1f1f1;
  margin: 30px 0 16px 0;
}
.hs2-section-title i { color: #E13F4E; }

.hs2-grid { row-gap: 24px; }

.hs2-card { background:#fff; border:1px solid #f0f0f0; border-radius: 10px; position: relative;
  /* Dark shadow with smooth hover escalation */
  box-shadow: 0 10px 28px rgba(17,24,39,0.18);
  transition: box-shadow .18s ease;
  cursor: pointer;
  height: 180px; /* reduced height for a more rectangular look */
  overflow: hidden; position: relative; }
.hs2-card:hover { box-shadow: 0 16px 44px rgba(17,24,39,0.26); }
.hs2-card-body { padding: 20px; display:flex; flex-direction:column; height:100%; }
.hs2-card-top { display:flex; align-items:center; margin-bottom:8px; padding-right: 64px; }
.hs2-icon-square { width:34px; height:34px; border-radius:8px; background:#E13F4E; color:#fff; display:inline-flex; align-items:center; justify-content:center; margin-right:10px; transition:background-color .2s ease, transform .2s ease; }
.hs2-card-title { font-weight:600; color:#111827; flex:1; min-width:0; transition:color .2s ease; }
.hs2-info { color:#9ca3af; }
.hs2-info-btn { position:absolute; top:10px; right:12px; color:#9ca3af; z-index: 2; }
/* Favorite star: outline icon uses theme color when active/hovered */
.hs2-fav-btn { position:absolute; top:10px; right:38px; color:#E13F4E; z-index: 2; transition: color .15s ease; }
.hs2-fav-btn:hover, .hs2-fav-btn:focus { color:#c6303d; }
.hs2-fav-btn[aria-pressed="true"] { color:#E13F4E; }
.hs2-desc { color:#6b7280; font-size:.94rem; margin-top:8px; margin-bottom:8px; transition:color .2s ease; }
.hs2-desc { display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden; }
.hs2-view { margin-top:auto; display:flex; align-items:center; justify-content:center; gap:6px; color:#E13F4E; font-weight:600; transition:color .2s ease, transform .2s ease; }
.hs2-view i { transition:transform .2s ease; }

/* Hover effects for each card part */
.hs2-icon-square:hover { background:#c6303d; transform:scale(1.05); }
.hs2-card-title:hover { color:#E13F4E; }
.hs2-desc:hover { color:#374151; }
.hs2-view:hover { color:#c6303d; transform:translateX(4px); text-decoration: underline; }
.hs2-view:hover i { transform:translateX(4px); }

/* Title size auto-reduction when too long (set via JS) */
.hs2-card-title.title-small { font-size: 0.98rem; }
.hs2-card-title.title-xsmall { font-size: 0.92rem; }

/* Global header notice (animated, below the fixed header) */
:root { --hn-speed: 100; }
#global-header-notice-container {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1025; /* Below fixed navbar (1030), above main content */
  overflow: hidden;
  white-space: nowrap;
  /* Place it below the fixed navbar (dynamic height) */
  margin-top: var(--nav-height, 70px);
  padding: 6px 12px;
  background: rgba(255, 235, 59, 0.2);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-sizing: border-box;
}

@media (max-width: 600px) {
  #global-header-notice-container { padding: 4px 8px; }
}

/* Two-item marquee structure inside the notice */
#global-header-notice { display:block; flex: 1 1 auto; white-space:nowrap; font-size: clamp(11px, 2.8vw, 14px); overflow: hidden; }
#global-header-notice .hn-stage { position: relative; height: 1.6em; }
#global-header-notice .hn-item  { position: absolute; top: 0; padding: 0 8px; will-change: transform; }

/* Details icon button */
#global-header-notice-details {
  flex: 0 0 auto;
  margin-left: 8px;
  background: transparent;
  border: 0;
  color: #6b5200;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
#global-header-notice-details:hover { background: rgba(0,0,0,0.05); }

/* Tighten spacing below notice when present */
body.has-header-notice #home-container { margin-top: 0.75rem !important; }
body.has-header-notice #superset-emb { margin-top: 6px; }
/* Ensure dashboard pages sit below fixed header
   - Default: push content below navbar height (fallback 70px)
   - When notice is present, the notice already offsets nav height, so keep a small gap */
#dashboard-content { margin-top: calc(var(--nav-height, 70px) + 8px); }
body.has-header-notice #dashboard-content { margin-top: 8px; }

/* Remove legacy keyframe-based animation; motion handled via JS now */

.dash-tile.card {
  border: 1px solid #ececec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  /*min-width: 220px;*/
  /*width: 250px;*/
}
.dash-tile.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.dash-tile.card:hover .dashboard-title {
  text-decoration: underline;
  color: #e52c4a;
}
.badge.draft {
  background: #a5a5a5;
  color: #fff;
}
.badge.published {
  background: #2bb673;
  color: #fff;
}
.dashboard-title {
  font-weight: 600;
  font-size: 16px;
}
.icon-symbol {
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background: #e52c4a;
  border-radius: 50%;
}
.icon-symbol i {
  color: #ffffff;
  font-size: 18px;
}
@media (max-width: 600px) {
  .dash-tile.card {
    min-width: 95vw;
    width: 100%;
  }
}

/* =============================
   Homepage sections and cards
   ============================= */

.hs-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1f2937;
  margin: 18px 0 12px 0;
}
.hs-section-title .hs-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e52c4a;
}

.hs-card {
  border: 1px solid #ececec;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 16px 14px 16px;
  height: 100%;
  min-height: 170px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none !important;
  color: inherit;
  position: relative;
}
.hs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.hs-card .hs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hs-card .hs-card-top .bi-info-circle { color: #9ca3af; }
.hs-card .hs-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fbe8eb;
  color: #e52c4a;
}
.hs-card::before {
  /* thin white stub at top-left like the mock */
  content: "";
  position: absolute;
  top: 12px;
  left: -12px; /* protrude to meet the rail */
  width: 12px;
  height: 40px;
  background: #ffffff;
  border-radius: 6px;
}
.hs-card .hs-title {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
}
.hs-card .hs-desc {
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.92rem;
}
.hs-card .hs-footer {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #e52c4a;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(100,100,100,0.08);
}
.hs-card.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* JWT user pill */
#user-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

/* Manage Access pill to match mock */
#manage-access-btn .btn {
  background:#E13F4E; color:#fff; border:none; border-radius:8px; padding:6px 14px; font-weight:600;
}
#manage-access-btn .btn i { margin-right: 6px; }

/* --- Modern Dropdown Styling --- */
.custom-dashboard-dropdown {
  min-width: 270px;
  max-width: 600px;
  padding: 10px 0;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(50, 50, 93, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e3ea;
  background: #fff;
  margin-top: 8px !important;
  max-height: 70vh;
  overflow-x: auto;
  overflow-y: auto;
  /* Add animation for open */
  animation: dropdown-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-dashboard-dropdown .dropdown-item {
  font-size: 1.08rem;
  font-weight: 500;
  color: #181d27;
  padding: 12px 22px;
  transition: background 0.18s, color 0.18s;
  border-radius: 8px;
  margin: 0 6px 4px 6px;
  display: flex;
  align-items: center;
}

/*.custom-dashboard-dropdown .dropdown-item:hover,
.custom-dashboard-dropdown .dropdown-item:focus {
  background-color: #f9e6ef !important;
   color: #e52c4a !important; 
 text-decoration: none;
}*/

/* .custom-dashboard-dropdown .dropdown-item.active,
.custom-dashboard-dropdown .dropdown-item.active:focus {
  background-color: #e52c4a !important;
  color: #fff !important;
} */

@media (max-width: 600px) {
  .custom-dashboard-dropdown {
    min-width: 80vw !important;
    max-width: 90vw !important;
    border-radius: 10px !important;
  }
}
/* Simple, modern dashboard dropdown button */
.dashboard-dropdown-btn {
  background: #fff;
  color: #181d27 !important;
  border: 1.5px solid #ececec !important;
  border-radius: 8px !important;
  padding: 0.55rem 1.2rem !important;
  font-weight: 500 !important;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.15s, border-color 0.13s, color 0.12s,
    background 0.16s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* .dashboard-dropdown-btn:focus,
.dashboard-dropdown-btn:hover {
  border-color: #e52c4a !important;
   color: #e52c4a !important; 
  box-shadow: 0 6px 16px rgba(229,44,74,0.07);
  background: #f9e6ef;
} */
.dashboard-dropdown-btn .bi {
  font-size: 1.06rem;
  opacity: 0.95;
}
.funnel-btn {
  background: #ffffff !important; /* Light pink */
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.funnel-btn .bi-funnel {
  color: #050505; /* Darker pink */
  font-size: 1.7rem;
}
.dropdown-item:focus,
.dropdown-item:active {
  background-color: #fff !important; /* or whatever you want */
  color: #181d27 !important; /* your desired text color */
  outline: none !important;
  box-shadow: none !important;
}
#sso-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

#sso-login-btn:hover {
  background-color: #f3f4f6;
  border-color: #cbd5e1;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

#sso-login-btn img {
  margin-top: -2px;
}

#sso-login-btn span {
  font-weight: 500;
}

/* Request account button styled like Gmail SSO */
.request-account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}
.request-account-btn:hover {
  background-color: #f3f4f6;
  border-color: #cbd5e1;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}
.request-account-btn i {
  font-size: 1.05rem;
  line-height: 1;
  margin-top: -1px; /* align with text similar to Google icon */
}
.request-account-btn span {
  font-weight: 500;
}

.aesthetician-btn {
  text-decoration: none;
}
/* .aesthetician-btn i {
  color: #ec4899;
} */
.aesthetician-btn span {
  text-align: center;
}

#login-btn {
  width: 100%;
  background-color: #2563eb;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#login-btn:hover {
  background-color: #1d4ed8;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

#login-btn:active {
  background-color: #1e40af;
}

/* Reusable auth primary button (same style as #login-btn) */
.auth-btn {
  width: 100%;
  background-color: #2563eb;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-btn:hover { background-color: #1d4ed8; box-shadow: 0 3px 6px rgba(0,0,0,0.08); }
.auth-btn:active { background-color: #1e40af; }

.auth-muted { color: #6b7280; }
.auth-link { color: #2563eb; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

/* Keep spinner aligned nicely within buttons */
.btn .spinner-border { vertical-align: -0.125em; }

/* Secondary button variant matching theme */
.auth-btn-secondary {
  width: 100%;
  background-color: #ffffff;
  color: #111827;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.auth-btn-secondary:hover { background-color: #f9fafb; box-shadow: 0 3px 6px rgba(0,0,0,0.06); }
.auth-btn-secondary:active { background-color: #f3f4f6; }
.form-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #111827;
}

#user-access-table th,
#user-access-table td {
  padding: 18px 22px !important;
  vertical-align: middle;
  font-size: 1.1rem;
  background: #fff;
  border-bottom: 1.5px solid #ececec;
  text-align: center;
}

#user-access-table th {
  background: #f6f0fa;
  font-weight: 700;
  letter-spacing: 0.025em;
  border-bottom: 2px solid #bca7fa;
}

#user-access-table tr:last-child td {
  border-bottom: none;
}

/* Row hover: just background color, no animation */
#user-access-table tbody tr:hover {
  background: #f3ecfc !important;
}

/* Modern buttons, no animation */
#user-access-table .btn {
  min-width: 120px;
  margin-left: 6px;
  margin-top: -2px;
  box-shadow: 0 1px 7px 0 rgba(140, 80, 255, 0.05);
  border-radius: 8px;
  font-weight: 500;
  border: none;
}
#user-access-table .btn-success {
  background: linear-gradient(90deg, #56f1a7 0%, #13b889 100%);
  color: #fff;
}
#user-access-table .btn-danger {
  background: linear-gradient(90deg, #f76e9a 0%, #845ef7 100%);
  color: #fff;
}
#user-access-table .btn-success:hover,
#user-access-table .btn-danger:hover {
  filter: brightness(1.07);
}

/* Icons, no animation */
#user-access-table .text-success,
#user-access-table .text-danger {
  font-size: 1.33em;
  vertical-align: middle;
  margin-right: 7px;
}
#user-access-table .text-success {
  color: #18c172 !important;
  text-shadow: 0 1px 7px #e0fff1;
}
#user-access-table .text-danger {
  color: #f45470 !important;
  text-shadow: 0 1px 7px #ffe0e7;
}
#user-access-table {
  margin: 36px auto 0 auto;
  /* min-width: 900px; */ /* <--- You can remove or comment out this line for more flexibility */
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid #bca7fa;
  box-shadow: 0 4px 28px 0 rgba(90, 110, 130, 0.1);
  background: #fff;
  table-layout: auto; /* <--- This enables columns to size based on their content */
}
/* Custom styling only for Manage Access dropdown */
.access-dropdown-menu {
  width: 270px !important;
  max-height: 70vh !important;
  overflow-y: auto !important;
  right: -14px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  top: 46px !important;
  background: #fff;
  z-index: 999;
}

@media (max-width: 600px) {
  .access-dropdown-menu {
    width: 85vw !important;
    max-height: 50vh !important;
    right: 10px !important;
  }
}
/* Ensure navbar grows to fit wrapped controls (override inline height) */
nav.navbar {
  height: auto !important;
  min-height: 56px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  nav.navbar { padding-top: 6px; padding-bottom: 6px; }
}

/* Make Snapchat Choices dropdown fill remaining space */
.adhoc-filter-row .choices[data-type="select-one"] {
  flex: 1 1 auto;
  min-width: 0;
}
