/* RDG Customisations */

/* CUSTOM FONTS */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --rdg-red: #ed1c24;
  --rdg-red-subtle: 237, 28, 36, 0.5;

  --rdg-yellow: #ffc53b;
  --rdg-yellow-subtle: 255, 197, 59, 0.5;

  --rdg-green: #5fc4b7;
  --rdg-green-subtle: 95, 196, 183, 0.5;

  --rdg-black: #111111;
  --rdg-black-subtle: #33333350;

  --rdg-grey: #58595b;
  --rdg-grey-subtle: 88, 89, 91, 0.5;

  --rdg-light-grey: #a8a9ac;
  --rdg-light-grey-subtle: 168, 169, 172, 0.5;

  --rdg-header-color: var(--rdg-grey);
  --rdg-sub-header-color: var(--rdg-light-grey);

  --rdg-font-family: 'Exo 2', sans-serif;
  --rdg-font-size: 15px;
}

@media (max-width: 980px) {
  .container {
    width: 95%;
  }
  .et_fixed_nav.et_show_nav #page-container, .et_fixed_nav.et_show_nav.et_secondary_nav_enabled #page-container {
    padding-top: 10px;
  }
  a.navbar-brand.img-fluid {
    max-width: 70%;
  }
}

w-10 {
  width: 10% !important
}

w-15 {
  width: 15% !important
}

w-20 {
  width: 20% !important
}

html, body, p {
  color: var(--rdg-grey);
  font-family: var(--rdg-font-family) !important;
  font-size: var(--rdg-font-size) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--rdg-header-color);
  font-family: var(--rdg-font-family);
  line-height: 1.2em;
}

h1 {
  font-size: 1.9em;
  font-weight: 500;
}

h2 {
  font-size: 1.75em;
  font-weight: 500;
}
@media screen and (max-width: 500px) {
  h2 {
    font-size: 1.6em;
  }
}

h3 {
  font-size: 1.6em;
  font-weight: 400;
}

@media screen and (max-width: 500px) {
  h3 {
    font-size: 1.4em;
  }
}

h4 {
  font-size: 1.45em;
  font-weight: 400;
}

@media screen and (max-width: 500px) {
  h4 {
    font-size: 1.2em;
  }
}

h5 {
  font-size: 1.3em;
  font-weight: 400;
}

@media screen and (max-width: 500px) {
  h5 {
    font-size: 1.1em;
  }
}

h6 {
  font-size: 1.15em;
  font-weight: 400;
  line-height: 1.6em;
}

@media screen and (max-width: 500px) {
  h6 {
    font-size: 1.05em;
  }
}

.rdg-quick-link-tagline, .rdg-quick-link-text {
  color: #888;
  font-size: 1.0em !important;
  line-height: 1.4em !important;
}

a.rdg-quick-link:hover {
  background-color: var(--rdg-yellow) !important;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

/* ========================================
   PROFESSIONAL DASHBOARD REDESIGN
   ======================================== */

.rdg-dashboard {
  background: #f5f7fb;
  min-height: 100vh;
  padding-bottom: 60px;
  margin-bottom: 40px;
  margin-top: -15px;
}

.dashboard-header {
  padding: 8px 0;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* Dashboard Subtitle - Mobile First Responsive & Centered */
.dashboard-subtitle {
  font-size: 0.875rem;        /* Mobile: smaller text */
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.5;
  color: #6c757d;             /* Bootstrap muted gray */
  font-weight: 400;
  text-align: center;         /* Center align subtitle */
  max-width: 100%;
  word-wrap: break-word;      /* Wrap long text on mobile */
}

/* Tablet and up */
@media (min-width: 768px) {
  .dashboard-subtitle {
    font-size: 0.95rem;         /* Tablet: slightly larger */
    margin-top: 0.75rem;
    line-height: 1.5;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .dashboard-subtitle {
    font-size: 1rem;            /* Desktop: full size */
    margin-top: 0rem;
    line-height: 1.5;
  }
}

/* Card Styling */
.dashboard-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 24px;
  flex-shrink: 0;
}

.dashboard-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.dashboard-card-subtitle {
  margin: 4px 0 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.dashboard-card-body {
  display: flex;
  flex-direction: column;
}

/* Quick Links Panel - 2 Column Grid Layout (Mobile First) */
.rdg-quick-links-panel .dashboard-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 2 columns on all screen sizes */
  gap: 16px;
}

/* Quick Links - Vertical Centered Card Layout */
.quick-link-card {
  display: flex;
  flex-direction: column;           /* Stack vertically: icon, title, description */
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 16px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #ececec;
  text-decoration: none;
  color: inherit;
  transition: 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Circular Icon with Color Theming */
.quick-link-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;              /* Circular icon */
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 24px;
  flex-shrink: 0;
  transition: 0.2s ease;
}

/* Color Theme for Each Quick Link (using nth-child) */
/* 1st: Performance Analytics - Purple/Blue */
.rdg-quick-links-panel .quick-link-card:nth-child(1) .quick-link-icon {
  background: #eef2ff;
  color: #6366f1;
}

/* 2nd: Training Academy - Green */
.rdg-quick-links-panel .quick-link-card:nth-child(2) .quick-link-icon {
  background: #dcfce7;
  color: #10b981;
}

/* 3rd: Mystery Shopping - Purple/Lavender */
.rdg-quick-links-panel .quick-link-card:nth-child(3) .quick-link-icon {
  background: #f3e8ff;
  color: #a855f7;
}

/* 4th: Store Compliance - Orange */
.rdg-quick-links-panel .quick-link-card:nth-child(4) .quick-link-icon {
  background: #fed7aa;
  color: #f97316;
}

.quick-link-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.quick-link-description {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Report Items */
.report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ececec;
  margin-bottom: 14px;
  transition: 0.2s ease;
}

.report-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.report-main {
  flex: 1;
}

.report-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.report-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.report-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.report-status.in-progress {
  background: #dbeafe;
  color: #2563eb;
}

.report-status.submitted {
  background: #dcfce7;
  color: #15803d;
}

.report-submitted {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
}

.report-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #6b7280;
}

.report-actions {
  margin-left: 16px;
}

.btn-report-edit {
  border: none;
  background: #111827;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-report-edit:hover {
  background: #000;
}

/* Mobile Improvements */
@media (max-width: 768px) {
  .dashboard-title {
    font-size: 1.5rem;
  }

  .dashboard-card {
    padding: 18px;
  }

  .report-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .report-actions {
    margin-left: 0;
    width: 100%;
  }

  .btn-report-edit {
    width: 100%;
  }

  .quick-link-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .quick-link-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

a.rdg-link-hover-danger:hover {
  background-color: #B2313B !important;
  border-radius: 3px !important;
  color: #f5f5f5 !important;
}

/* GRAVITY FORMS */
.gform_button, .gform-theme-button {
  color: #ffffff !important;
  border-width: 14px !important;
  border-color: rgba(0, 0, 0, 0);
  border-radius: 4px;
  letter-spacing: 2px;
  font-size: 18px;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  background-color: #5fc4b7;
}

.gform-theme-button .dashicons {
  color: #222222;
}

/* HACK FOR NOW - BBQs file upload control */
#gform_browse_button_8_1, #gform_submit_button_8  {
  font-size: 14px;
  background-color: #d1040c;
}


/* ************** */

/* PLACEHOLDER SHIMMERS https://codepen.io/kianlavi/pen/BzbRZw */
.shimmer-shine {
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f1f7f8 0%, #edeef1 20%, #f1f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 104px;
  display: inline-block;
  position: relative;

  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: placeholderShimmer;
  animation-timing-function: linear;

  -webkit-animation-duration: 1s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-name: placeholderShimmer;
  -webkit-animation-timing-function: linear;
}

shimmer-box {
  height: 104px;
  width: 100px;
}

shimmer-div {
  display: inline-flex;
  flex-direction: column;
  margin-left: 25px;
  margin-top: 15px;
  vertical-align: top;
}

shimmer-lines {
  height: 15px;
  padding: 8px;
  width: 95%;
}

shimmer-photo {
  display: block !important;
  width: 325px;
  height: 100px;
  margin-top: 15px;
}

@keyframes placeholderShimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

@-webkit-keyframes placeholderShimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

/* END PLACEHOLDER SHIMMERS */

.blur {
  filter: blur(5px);
}

/* ISOTOPE */

.xgrid-item {
  float: left;
  xheight: 450px;
  margin-bottom: 10px;
  margin-right: 10px;
}

.xgrid-sizer,
.xgrid-item {
  /*width: 450px;*/
  width: 48%;
}
@media only screen and (max-width: 600px) {
  .xgrid-item {
    width: 98%;
  }
}

/*.xgrid-item--width2 { width: 40%; }*/

.xgrid-item--shortx { height: 450px; }

.xgrid-item--tallx { height: 760px; }

/*HEAD OFFICE LANDING*/
.rdg-head-office-landing {
  /*min-height: 90vh;*/
}

.rdg-checklist-item {
  border: 1px solid #fff;
}

.rdg-can-trash:hover {
  border: 1px solid var(--bs-danger);
  background-color: var(--bs-danger-bg-subtle) !important;
}

.rdg-can-trash:hover .rdg-checklist-trash-button {
  color: inherit;
}

.rdg-checklist-trash-button {
  color: transparent;
  z-index: -99999999;
}

.rdg-checklist-trash-button:hover {
  color: #222;
  z-index: 99999999;
}

.item-no-highlight:hover {
  background-color: transparent !important;
}

#main-footer {
  background-color: #333;
}
#footer-bottom {
  background-color: transparent;
  padding: 0;
  text-align: center;
}

#footer-info {
  color: #cccccc;
}

 /*SweetAlert2 - feGaussianBlur background */
body.swal2-shown > [aria-hidden='true'] {
  transition: 0.1s filter;
  filter: blur(3px);
}

/* Sticky footer styles */
/* https://getbootstrap.com/docs/4.0/examples/sticky-footer-navbar/sticky-footer-navbar.css */
html {
  background-color: #1F2124;
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  /*margin-bottom: 60px;*/
}
#main-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
}


html.is-staging {
  border-left: 13px solid orange;
  border-right: 13px solid orange;
  border-bottom: 13px solid orange;
}

/* ===== COMPLIANCE CHECKLIST REPORT - IMAGE GRID STYLES ===== */

/* Grid Layout - 2 columns on desktop, 1 on mobile */
.rdg-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Individual Image Card */
.rdg-image-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effect - Cards lift up on mouse over */
.rdg-image-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Label Section - Question and topic */
.rdg-image-label {
  padding: 12px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  color: #333;
}

/* Image Styling */
.rdg-image-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Responsive for Tablets */
@media (max-width: 768px) {
  .rdg-images-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .rdg-image-item img {
    height: 180px;
  }
}

/* Responsive for Mobile */
@media (max-width: 480px) {
  .rdg-images-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles - Always show images when printing */
@media print {
  #rdg-toggle-images-btn {
    display: none;
  }
  
  #rdg-images-grid {
    display: grid !important;
  }
}
