.toast{
  display: none;
  min-width: 20vw
}
.toast.show {
    display: block;
    opacity: 1;
    position: fixed;
    z-index: 99999999;
    margin: 20px;
    right: 0;
    top: 3.5rem;
}
.swal2-container{
    z-index: 99999999;
}
#preloader2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #ffffff82;
}

#preloader2:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #1977cc;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}
@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    color: #000000cf;
    font-style: italic;
}
.main-footer{
    padding: 0.5rem !important;
}

.form-control{
    padding:0px  12px !important;
}

/* ============================================================
   Helpdesk Shell Theme
   Scope: app chrome only — topbar, sidebar, page-title bar,
   dashboard widgets. Report/table pages are untouched.

   Sidebar stays dark; topbar + dashboard/content area are light.

   Tokens:
     --shell-surface / --shell-surface-raised / --shell-border
       sidebar dark surface + hover/active states
     --shell-text / --shell-text-muted
       text on the dark sidebar
     --content-bg / --content-surface / --content-border
       light app background, topbar/card surface, hairlines
     --content-text / --content-text-muted
       text on the light content area
     --shell-accent / --shell-accent-2   the "stitch line" gradient
     --shell-font-display   heading typeface (Space Grotesk)

   Signature: a thin blue->teal gradient rail, reused as the
   sidebar's left edge, the topbar's bottom border, and the
   accent bar beside every section heading (nods to the
   business being a uniform/print production line).
   ============================================================ */
:root{
  --shell-surface: #171b24;
  --shell-surface-raised: #1f2530;
  --shell-border: #262c3a;
  --shell-text: #e7e9f0;
  --shell-text-muted: #8791a8;

  --content-bg: #f2f4f8;
  --content-surface: #ffffff;
  --content-border: #e3e6ee;
  --content-text: #1f2430;
  --content-text-muted: #6b7280;

  --shell-accent: #4f8dfd;
  --shell-accent-2: #35c9b0;
  --shell-font-display: 'Space Grotesk', 'Source Sans Pro', sans-serif;
}

body.hold-transition,
.wrapper,
.content-wrapper{
  background: var(--content-bg) !important;
}

/* ---------- Topbar (light) ---------- */
.main-header.navbar{
  background: var(--content-surface) !important;
  border-bottom: 1px solid var(--content-border);
  position: relative;
}
.main-header.navbar::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:2px;
  background: linear-gradient(90deg, var(--shell-accent), var(--shell-accent-2));
}
.main-header .nav-link{
  color: var(--content-text) !important;
}
.main-header .nav-link:hover{
  background: var(--content-bg);
  border-radius: .375rem;
}
.main-header large b{
  font-family: var(--shell-font-display);
  letter-spacing: .02em;
}

/* ---------- Sidebar ---------- */
.main-sidebar{
  background: var(--shell-surface) !important;
  border-right: 1px solid var(--shell-border);
}
.main-sidebar .brand-link{
  border-bottom: 1px solid var(--shell-border);
}
.main-sidebar .brand-text{
  font-family: var(--shell-font-display);
  color: var(--shell-text);
}
.main-sidebar .dropdown-menu{
  background: var(--shell-surface-raised);
  border: 1px solid var(--shell-border);
}
.main-sidebar .dropdown-menu .dropdown-item{
  color: var(--shell-text);
}
.main-sidebar .dropdown-menu .dropdown-item:hover{
  background: var(--shell-bg);
  color: #fff;
}

.nav-sidebar .nav-link{
  color: var(--shell-text-muted) !important;
  border-radius: .375rem;
  margin: 1px 6px;
  width: calc(100% - 12px);
  transition: background .15s ease, color .15s ease;
}
.nav-sidebar .nav-link:hover{
  background: var(--shell-surface-raised) !important;
  color: var(--shell-text) !important;
}
.nav-sidebar .nav-link.active{
  background: var(--shell-surface-raised) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--shell-accent);
}
.nav-sidebar .nav-link.active .nav-icon{
  color: var(--shell-accent-2);
}
.nav-treeview{
  background: rgba(0,0,0,.15);
  border-radius: .375rem;
  margin: 0 6px;
}

/* ---------- Page title bar (content-header) ---------- */
.content-header h1{
  font-family: var(--shell-font-display);
  color: var(--content-text);
  letter-spacing: .01em;
  font-weight: 600;
}

/* Quiet divider under the page title / dashboard section titles */
hr.border-primary{
  border: none !important;
  height: 2px;
  background: var(--shell-accent);
  opacity: .18 !important;
  border-radius: 2px;
  margin: .5rem 0 1.5rem;
}

/* Dashboard section titles (e.g. "Work In Progress") */
.content h3{
  font-family: var(--shell-font-display);
  color: var(--content-text);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: .25rem;
}

/* ---------- Dashboard info-box widgets ---------- */
.info-box{
  background: var(--content-surface);
  border-radius: .85rem;
  border: 1px solid var(--content-border);
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
  padding: 1.1rem 1.1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.info-box:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,.10);
}
.info-box .info-box-icon{
  border-radius: .65rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.15rem;
  align-self: center;
}
.info-box-content{
  margin-left: .9rem;
  align-self: center;
}
.info-box-text{
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--content-text-muted);
}
.info-box-number{
  font-family: var(--shell-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--content-text);
}

/* Softer, pastel tints for the info-box icon chips instead of
   solid saturated Bootstrap colors - keeps the same color meaning
   (warning/success/danger/etc.) but reads calmer and more refined */
.info-box-icon.bg-warning{ background: #fef3e2 !important; color: #b9770e !important; }
.info-box-icon.bg-success{ background: #e7f7ef !important; color: #1e7e4d !important; }
.info-box-icon.bg-danger{  background: #fdecea !important; color: #c23b2c !important; }
.info-box-icon.bg-primary{ background: #eaf1ff !important; color: #2f6fe4 !important; }
.info-box-icon.bg-secondary{ background: #f0f1f5 !important; color: #5a6270 !important; }
.info-box-icon.bg-light{  background: #f4f5f8 !important; color: #4b5568 !important; }
.info-box-icon.bg-dark{   background: #eaecf1 !important; color: #2b3040 !important; }