/* App-specific overrides (loads after TailAdmin style.css) */

/* Sidebar - force width and prevent flex shrinking */
.sidebar {
  width: 130px;
  min-width: 130px;
  flex: 0 0 130px;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / old Edge */
}

/* Keep desktop rail narrower */
@media (min-width: 1024px) {
  .sidebar {
    width: 110px;
    min-width: 110px;
    flex-basis: 110px;
  }
}

.sidebar::-webkit-scrollbar {
  display: none;                /* Chrome / Safari */
}

/* Prevent wrapping on menu labels */
.menu-item-text {
  white-space: nowrap;
}


/* SweetAlert2 – compact sizing to match TailAdmin UI */
/* SweetAlert2 - force compact sizing */
html body .swal2-container .swal2-popup {
  font-size: 0.85rem !important;
  padding: 1.1rem 1.3rem !important;
  width: 26rem !important;
  max-width: calc(100vw - 2rem) !important;
}

html body .swal2-container .swal2-title {
  font-size: 1.1rem !important;
  margin: 0 0 0.5rem 0 !important;
}

html body .swal2-container .swal2-html-container {
  font-size: 0.85rem !important;
  margin: 0.5rem 0 0 0 !important;
}

html body .swal2-container .swal2-actions {
  margin-top: 1rem !important;
}

html body .swal2-container .swal2-confirm,
html body .swal2-container .swal2-cancel {
  font-size: 0.8rem !important;
  padding: 0.45rem 0.9rem !important;
}



/* Pill status label */
.user-status-pill{
  display:inline-flex;
  align-items:center;
  border-radius:9999px;
  padding:2px 10px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

/* Light mode */
.user-status-pill[data-status="active"]{
  background:#dcfce7;
  color:#166534 !important;
}
.user-status-pill[data-status="inactive"]{
  background:#e5e7eb;
  color:#111827 !important;
}

/* Dark mode */
.dark .user-status-pill[data-status="active"]{
  background:rgba(34,197,94,.22);
  color:rgba(255,255,255,.92) !important;
}
.dark .user-status-pill[data-status="inactive"]{
  background:rgba(255,255,255,.12);
  color:rgba(255,255,255,.85) !important;
}