/* ============================================================
   MSS Corporate Portal — Dashboard Theme (Black / Red / White)
   Scoped under .mss-dashboard to avoid leaking into AppGini chrome
   ============================================================ */
.mss-dashboard {
  --mss-red:        #C8102E;
  --mss-red-dark:   #9E0C24;
  --mss-red-soft:   #FDEAEC;
  --mss-black:      #0B0B0B;
  --mss-ink:        #1A1A1A;
  --mss-slate:      #4A4A4A;
  --mss-muted:      #8A8A8A;
  --mss-line:       #E7E7E7;
  --mss-bg:         #FAFAFA;
  --mss-white:      #FFFFFF;
  --mss-shadow-sm:  0 1px 2px rgba(11,11,11,.04), 0 1px 3px rgba(11,11,11,.06);
  --mss-shadow-md:  0 4px 14px rgba(11,11,11,.08);
  --mss-shadow-lg:  0 12px 30px rgba(11,11,11,.12);
  --mss-radius:     12px;
  --mss-radius-sm:  8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--mss-ink);
}

/* =========================================
   PREMIUM HERO BANNER (COMPACT)
   ========================================= */
.mss-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111111 0%, #2A0A10 100%);
    border-radius: 16px;
    padding: 25px 35px; /* Reduced padding for a shorter banner */
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #C8102E;
}

/* The Logo Box */
.mss-hero-logo-box {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.mss-hero-logo-box img {
    max-height: 40px; /* Keeps the logo compact */
    max-width: 180px;
    display: block;
}

/* Left Side Content */
.mss-hero-content {
    position: relative;
    z-index: 2;
}

.mss-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #EAB308; /* Golden yellow accent */
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.mss-hero-eyebrow::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background-color: #EAB308;
}

.mss-hero-subtitle {
    color: #a1a1aa !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.mss-hero-subtitle a {
    color: #FFFFFF !important;
    text-decoration: underline;
    font-weight: 500;
}

.mss-hero-subtitle a:hover {
    color: #EAB308 !important;
}

/* The Admin Chip */
.mss-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF !important; 
    padding: 6px 14px; 
    border-radius: 50px;
    font-size: 0.8rem; 
    font-weight: 500;
}
.mss-hero-chip i {
    color: #EAB308 !important;
}

/* Right Side Badge */
.mss-hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin-left: 25px;
}

.mss-hero-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #EAB308 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mss-hero-badge-text h6 {
    color: #FFFFFF !important;
    font-weight: 700;
    margin: 0 0 2px 0;
    font-size: 0.95rem;
}

.mss-hero-badge-text p {
    color: #a1a1aa !important;
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .mss-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }
    .mss-hero-content {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .mss-hero-right {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 15px;
        margin-top: 20px;
        width: 100%;
    }
}/* ---------- Cards ---------- */
.mss-card {
  background: var(--mss-white);
  border: 1px solid var(--mss-line);
  border-radius: var(--mss-radius);
  box-shadow: var(--mss-shadow-sm);
  height: 100%;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mss-card:hover { transform: translateY(-2px); box-shadow: var(--mss-shadow-md); }

.mss-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--mss-black);
  color: #fff;
  font-weight: 600; font-size: .92rem;
  border-bottom: 3px solid var(--mss-red);
}
.mss-card-header .mss-ico-tile {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--mss-red);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #fff;
}

/* ---------- Link rows ---------- */
.mss-list { list-style: none; margin: 0; padding: 6px; }
.mss-list .mss-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--mss-radius-sm);
  color: var(--mss-ink) !important; text-decoration: none !important;
  font-size: .9rem; font-weight: 500;
  transition: background .15s ease, transform .15s ease, color .15s ease;
  position: relative;
}
.mss-list .mss-link .mss-link-ico {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--mss-red-soft);
  color: var(--mss-red);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.mss-list .mss-link .mss-link-text { flex: 1; }
.mss-list .mss-link .mss-link-arrow {
  opacity: 0; transform: translateX(-4px);
  color: var(--mss-red); transition: all .15s ease;
}
.mss-list .mss-link:hover {
  background: var(--mss-red-soft);
  color: var(--mss-red-dark) !important;
  transform: translateX(2px);
}
.mss-list .mss-link:hover .mss-link-ico { background: var(--mss-red); color: #fff; }
.mss-list .mss-link:hover .mss-link-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Charts / widgets ---------- */
.mss-dashboard .card { border-radius: var(--mss-radius); border-color: var(--mss-line); }
.mss-section-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .95rem; color: var(--mss-ink);
  margin: 8px 0 12px;
}
.mss-section-title::before {
  content: ""; width: 6px; height: 20px; border-radius: 3px;
  background: var(--mss-red);
}

/* ---------- Jobber visits widget reskin ---------- */
.mss-dashboard .jobber-visits-widget .combined-info-box {
  background:
    radial-gradient(800px 260px at 100% 0%, rgba(200,16,46,.4), transparent 60%),
    linear-gradient(135deg, #0B0B0B 0%, #1A1A1A 60%, #2A0A10 100%);
  border-radius: var(--mss-radius);
  box-shadow: var(--mss-shadow-md);
}
.mss-dashboard .jobber-visits-widget .visit-card { border-left-color: var(--mss-red); }
.mss-dashboard .jobber-visits-widget .pdf-button .btn { color: var(--mss-red); }

@media (max-width: 767.98px) {
  .mss-hero { padding: 22px; }
  .mss-hero .mss-hero-logo { max-height: 52px; }
}
/* Force headers to be dark */
.mss-card-header { color: #111111 !important; font-weight: 700 !important; }
.mss-card-header i { color: #C8102E !important; }

/* Prevent AppGini from breaking the grid */
.mss-grid-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 24px !important;
}
/* ---------- Force Card Headers to White Text ---------- */
.mss-card-header {
  color: #ffffff !important; 
}

.mss-card-header * {
  color: #ffffff !important;
}

/* Make sure the icon inside the red tile stays white */
.mss-card-header .mss-ico-tile i {
  color: #ffffff !important;
}