

/* =========================================================
 * DASHBOARD – HERO + QUICK CARDS
 * ======================================================= */

.dt-dashboard { position: relative; }

/* HERO WRAPPER */
.dt-dashboard-hero{
  position: relative;
  border-radius: var(--dt-radius-lg, 1.5rem);
  overflow: hidden;
  background: #020617;
  background-image: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.dt-dashboard-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
  opacity:0.75;
}

/* Slider wrapper */
.dt-hero-slider{ position: relative; }

/* Slides */
.dt-hero-slide{ display:none; }
.dt-hero-slide.is-active{ display:block; }

/* HERO IMAGE */
.dt-hero-slide img,
.dt-hero-img{
  position: relative;
  z-index: 1;
  display:block;
  width:100%;
  height:320px;
  max-height:420px;
  object-fit:cover;
  background-color:#020617;
  background-position:center;
  transition: filter .25s ease;
}

/* Hover grow */
@media (hover:hover) and (pointer:fine){
  .dt-dashboard-hero{
    transition: transform .22s ease, box-shadow .22s ease;
    transform-origin:center;
  }
  .dt-dashboard-hero:hover{
    transform: scale(1.01);
    box-shadow: 0 24px 60px rgba(15,23,42,.26);
  }
  .dt-dashboard-hero:hover .dt-hero-slide img,
  .dt-dashboard-hero:hover .dt-hero-img{
    filter: brightness(1.04);
  }
}

/* OVERLAY */
.dt-hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding: 2.4rem 2rem 2.6rem;
  padding-left: 4.25rem;
  background:none;
  color:#f9fafb;
  pointer-events:none;
  z-index:2;
}
.dt-hero-overlay-inner{
  max-width:520px;
  padding:.75rem 1.15rem;
  border-radius:1.1rem;
  background: rgba(15,23,42,.26);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 26px rgba(15,23,42,.40);
}
.dt-hero-title{
  font-size:1.4rem;
  font-weight:600;
  margin-bottom:.2rem;
  color:#f9fafb !important;
  text-shadow: 0 1px 3px rgba(15,23,42,.9);
}
.dt-hero-subtitle{
  font-size:.9rem;
  color:#e5e7eb !important;
  margin-bottom:.6rem;
  text-shadow: 0 1px 2px rgba(15,23,42,.85);
}

/* CTA */
.dt-hero-cta{
  pointer-events:auto;
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding: .30rem 1.4rem !important;
  border-radius:999px;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.10em;
  text-transform:uppercase;
  text-decoration:none !important;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(249,115,22,.30));
  border: 1px solid rgba(255,255,255,.85);
  color:#fff;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    0 14px 32px rgba(15,23,42,.65),
    0 0 0 1px rgba(15,23,42,.4),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -4px 12px rgba(249,115,22,.35);
  transition: transform .16s ease, box-shadow .16s ease, background .18s ease, border-color .18s ease;
}
.dt-hero-cta:hover{
  transform: translateY(-1px) scale(1.03);
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(249,115,22,.40));
  border-color: rgba(255,255,255,.95);
}
.dt-hero-cta-icon{
  width:1.25rem;
  height:1.25rem;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.8rem;
  background: radial-gradient(circle at 30% 0%, #fee2b3, #f97316);
  color:#111827;
  box-shadow: 0 0 0 1px rgba(15,23,42,.7), 0 4px 10px rgba(15,23,42,.7);
}

/* ARROWS */
.dt-hero-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:46px;
  height:64px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.65);
  background: rgba(15,23,42,.55);
  color:#e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  cursor:pointer;
  opacity:.96;
  box-shadow: 0 12px 28px rgba(15,23,42,.45);
  backdrop-filter: blur(4px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  z-index:3;
}
.dt-hero-prev{ left:1.1rem; }
.dt-hero-next{ right:1.1rem; }
.dt-hero-arrow:hover{
  background: rgba(15,23,42,.9);
  border-color:#f9fafb;
  transform: translateY(-50%) scale(1.05);
}

/* =========================================================
 * HERO PAGER – MSN STYLE
 * - small white dots
 * - active dot morphs into a pill
 * ======================================================= */

.dt-dashboard .dt-dashboard-hero .dt-hero-slider .dt-hero-pager{
  position:absolute !important;
  left:50% !important;
  transform: translateX(-50%) !important;
  bottom: 1.1rem !important;

  display:inline-flex !important;
  align-items:center !important;
  gap: .40rem !important;

  padding: .40rem .70rem !important;
  border-radius:999px !important;

  background: rgba(15,23,42,.55) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.35) !important;

  pointer-events:auto !important;
  z-index:4 !important;

  overflow:hidden !important;
  isolation:isolate !important;
}

/* IMPORTANT: kill the old underline pill if it exists in markup */
.dt-dashboard .dt-dashboard-hero .dt-hero-slider .dt-hero-pager .dt-hero-pill,
.dt-dashboard .dt-dashboard-hero .dt-hero-slider .dt-hero-pager .dt-hero-pager-pill{
  display:none !important;
}

/* dots */
.dt-dashboard .dt-dashboard-hero .dt-hero-slider .dt-hero-pager .dt-hero-dot{
  appearance:none !important;
  -webkit-appearance:none !important;

  width:6px !important;
  height:6px !important;
  min-width:6px !important;
  min-height:6px !important;

  border-radius:999px !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;

  background: rgba(255,255,255,.40) !important;
  cursor:pointer !important;

  transition:
    width .22s ease,
    height .22s ease,
    background-color .22s ease,
    transform .18s ease,
    opacity .18s ease !important;

  position:relative !important;
  z-index:2 !important;
}

.dt-dashboard .dt-dashboard-hero .dt-hero-slider .dt-hero-pager .dt-hero-dot:hover{
  transform: scale(1.15);
  background: rgba(255,255,255,.65) !important;
}

/* active dot becomes a pill */
.dt-dashboard .dt-dashboard-hero .dt-hero-slider .dt-hero-pager .dt-hero-dot.active{
  width:26px !important;     /* pill length */
  height:6px !important;     /* keep same height so it morphs */
  border-radius:999px !important;
  background: rgba(255,255,255,.95) !important;
  transform:none !important;
}

/* focus */
.dt-dashboard .dt-dashboard-hero .dt-hero-slider .dt-hero-pager .dt-hero-dot:focus-visible{
  outline:none !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,.85) !important;
}

/* RESPONSIVE */
@media (max-width:1024px){
  .dt-hero-slide img, .dt-hero-img{ height:260px; }
  .dt-hero-overlay{ padding:1.4rem 1.6rem; padding-left:3.8rem; }
}
@media (max-width:767.98px){
  .dt-hero-slide img, .dt-hero-img{ height:220px; }
  .dt-hero-overlay{ padding:1.1rem 1.3rem; padding-left:3.4rem; }
  .dt-hero-title{ font-size:1.05rem; }
  .dt-hero-subtitle{ font-size:.82rem; }
  .dt-hero-arrow{ width:38px; height:54px; font-size:1.3rem; }
}

/* QUICK CARDS */
.dt-dashboard-quick{ margin-top:-1.25rem; }
@media (max-width:992px){ .dt-dashboard-quick{ margin-top:.75rem; } }

.dt-dashboard-card{
  position:relative;
  border-radius: var(--dt-radius-md, .9rem);
  overflow:hidden;
  height:100%;
  display:flex;
  flex-direction:column;
  background: rgba(255,255,255,.94);
  border:1px solid rgba(226,232,240,.9);
  box-shadow: var(--dt-shadow-soft, 0 12px 32px rgba(15,23,42,.06));
  backdrop-filter: blur(6px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.dt-dashboard-card::before{
  content:"";
  position:absolute;
  inset-inline:0;
  top:0;
  height:3px;
  background: linear-gradient(90deg, #f97316, #ec4899, #6366f1);
  opacity:.6;
}
.dt-dashboard-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  border-color: rgba(148,163,184,.9);
  background: rgba(255,255,255,.98);
}
.dt-dashboard-card .card-body{
  border-radius: inherit;
  display:flex;
  flex-direction:column;
}
.dt-dashboard-card .card-body > *:last-child{ margin-bottom:0; }
.dt-dashboard-footnote{ font-size:.78rem; color:#9ca3af; }

/* =========================================================
 * DASHBOARD NEWS + TASKS
 * ======================================================= */
.dt-dashboard-panels { margin-top: 0.75rem; }

.dt-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom: 0.9rem;
}
.dt-panel-head-right{
  display:flex;
  align-items:center;
  gap:0.6rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.dt-panel-chip{
  display:inline-flex;
  align-items:center;
  padding:.25rem .55rem;
  border-radius:999px;
  font-size:.75rem;
  font-weight:600;
  color:#0f172a;
  background: rgba(99,102,241,.10);
  border:1px solid rgba(99,102,241,.20);
}
.dt-panel-chip--soft{
  background: rgba(236,72,153,.08);
  border-color: rgba(236,72,153,.18);
}
.dt-panel-cta.btn.btn-xs{
  padding:.20rem .55rem;
  font-size:.75rem;
  border-radius:999px;
}

/* =========================================================
 * NEWS – Edge-style tiles (like your SS2)
 * ======================================================= */

.dt-news-tiles{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dt-news-tile{
  border-radius: 1rem;
  overflow:hidden;
  position:relative;
  border: 1px solid rgba(226,232,240,.9);
  background:#0b1220;
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
  min-height: 260px;
}
.dt-news-tile-link{
  display:block;
  height:100%;
  text-decoration:none !important;
  color:inherit;
}
.dt-news-tile-media{
  position:absolute;
  inset:0;
  background:#0b1220;
}
.dt-news-tile-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.01);
}
.dt-news-tile-fallback{
  width:100%;
  height:100%;
  background: radial-gradient(circle at 20% 0%, rgba(99,102,241,.35), rgba(2,6,23,1) 55%);
}

.dt-news-tile-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap: .35rem;
  padding: 1rem 1rem 1rem;
  color:#fff;
  background:
    linear-gradient(to top,
      rgba(2,6,23,.92) 0%,
      rgba(2,6,23,.55) 35%,
      rgba(2,6,23,.05) 70%,
      rgba(2,6,23,0) 100%);
}
.dt-news-tile-kicker{
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: rgba(255,255,255,.78);
}
.dt-news-tile-title{
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.dt-news-tile-sub{
  font-size: .85rem;
  color: rgba(255,255,255,.80);
  line-height: 1.35;
  max-width: 95%;
}
.dt-news-tile-meta{
  font-size: .78rem;
  color: rgba(255,255,255,.70);
}

@media (hover:hover) and (pointer:fine){
  .dt-news-tile{
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .dt-news-tile:hover{
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(15,23,42,.18);
    border-color: rgba(148,163,184,.9);
  }
}

/* Optional compact list under tiles */
.dt-news-list{
  margin-top: 0.9rem;
  display:flex;
  flex-direction:column;
  gap: .35rem;
}
.dt-news-list-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding: .55rem .70rem;
  border-radius: .75rem;
  text-decoration:none !important;
  border: 1px solid rgba(226,232,240,.85);
  background: rgba(255,255,255,.75);
  color:#0f172a;
}
.dt-news-list-item:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(148,163,184,.9);
}
.dt-news-list-title{
  font-size: .90rem;
  font-weight: 600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dt-news-list-date{
  font-size:.78rem;
  color:#64748b;
  white-space:nowrap;
}

/* Responsive */
@media (max-width: 991.98px){
  .dt-news-tiles{ grid-template-columns: 1fr; }
  .dt-news-tile{ min-height: 240px; }
}


/* =========================================================
 * EMPTY STATE (used by News + Tasks)
 * ======================================================= */
.dt-empty{
  border-radius: .95rem;
  border: 1px dashed rgba(148,163,184,.55);
  background: rgba(255,255,255,.65);
  padding: 1.1rem 1.05rem;
}
.dt-empty-title{
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .2rem;
}
.dt-empty-sub{
  font-size: .9rem;
  color: #64748b;
}

/* =========================================================
 * TASKS (Panel)
 * ======================================================= */
.dt-task-list{
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.dt-task-item{
  border-radius: .9rem;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.78);
  padding: .75rem .85rem;
}

.dt-task-item.is-empty{
  border-style: dashed;
  background: rgba(255,255,255,.55);
}

.dt-task-title{
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.dt-task-sub{
  margin-top: .15rem;
  font-size: .88rem;
  color: #64748b;
}






/* =========================================================
 * DASHBOARD FIX — make HERO start at same top line as NAV
 * Put this at the VERY BOTTOM of your dashboard css
 * ======================================================= */

/* 1) Remove any accidental top spacing inside the Dashboard tab */
#Dashboard.dt-tab-content,
#Dashboard .dt-dashboard{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 2) Bootstrap .row/.col can introduce visual “top gap” in some portal shells */
#Dashboard .row:first-child{
  margin-top: 0 !important;
}
#Dashboard .row.mb-3{
  margin-top: 0 !important;
}



/* 4) Keep it safe on mobile so it won’t touch the header */
@media (max-width: 767.98px){
  #Dashboard .dt-dashboard-hero{
    margin-top: 0 !important;
  }
}

/* 5) Ensure the hero wrapper itself has no internal “top pad” effect */
#Dashboard .dt-hero-slider,
#Dashboard .dt-hero-slide,
#Dashboard .dt-hero-img{
  margin-top: 0 !important;
  padding-top: 0 !important;
}


 
 






/* HERO click/tap reliability */
.dt-hero-slider { position: relative; }
.dt-hero-arrow,
.dt-hero-pager,
.dt-hero-dot { pointer-events: auto !important; }

.dt-hero-arrow { 
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dt-hero-pager { touch-action: manipulation; }




/* =========================================================
   DASHBOARD — match Assigned Staff width + start inset
   ========================================================= */

#Dashboard .dt-dashboard.dt-page-inset{ 
  padding: 1.25rem; /* MATCH Assigned Staff (20px) */
  background: transparent !important;
  margin-top: 0px !important;
}

/* Neutralize bootstrap row negative margins ONLY inside Dashboard */
#Dashboard .dt-dashboard.dt-page-inset .row{
  margin-left: 0 !important;
  margin-right: 0 !important;
  --bs-gutter-x: 0; /* so cols won’t re-add side padding unexpectedly */
}

/* IMPORTANT:
   Don’t zero out ALL col padding (that makes it feel wider).
   Only remove padding for full-width cols if needed. */
#Dashboard .dt-dashboard.dt-page-inset .col-12{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Y alignment (keep as you already wanted) */
#Dashboard .dt-dashboard.dt-page-inset{
  padding-top: 1.25rem !important; /* 20px top like Assigned Staff feel */
}

#Dashboard .dt-dashboard-hero{
  margin-top: 0 !important;
}




/* =========================================================
   DASHBOARD — Reduce gap between HERO and NEWS panel (half)
   Put at VERY BOTTOM of dt.dashboard.css
   ========================================================= */

/* 1) Reduce Bootstrap mb-3 on the HERO row (1rem -> ~0.5rem) */
#Dashboard .dt-dashboard.dt-page-inset > .row.mb-3{
  margin-bottom: .5rem !important;
}

/* 2) Reduce your custom panels top margin (.75rem -> ~.375rem)
      AND reduce vertical gutters from g-3 (1rem -> ~.5rem) */
#Dashboard .dt-dashboard-panels{
  margin-top: .375rem !important;
  --bs-gutter-y: .001rem;  /* halves g-3 vertical spacing */
}
