/* =========================
   VWM Client Portal — Full CSS (cleaned and corrected)
   ========================= */

/* Login prompt */
.login-prompt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  text-align: center;
}
.login-prompt a.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fc9585;
  color: #000;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}
.login-prompt a.button:hover {
  background-color: #004458;
  color: #fff;
}

/* Title */
#portal-title {
  color: #fff !important;
  font-size: 32px !important;
  font-family: 'Yellowtail', cursive !important;
  text-align: center !important;
  margin: 0 auto !important;
}

/* Main dashboard container */
.client-portal-dashboard {
  max-width: 96% !important;
  margin: 0 auto !important;
  padding: 10px !important;
  width: 100% !important;
}

/* Header banner */
.portal-wrap { display: grid; gap: 24px; }
.client-portal-dashboard .portal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background-color: #004458;
  padding: 15px 25px;
}
.client-portal-dashboard .portal-header .header-left  { justify-self: start; }
.client-portal-dashboard .portal-header .header-center{ justify-self: center; text-align: center; }
.client-portal-dashboard .portal-header .header-right { justify-self: end;   text-align: right; }

@media (max-width: 900px){
  .client-portal-dashboard .portal-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .client-portal-dashboard .portal-header .header-left,
  .client-portal-dashboard .portal-header .header-right {
    justify-self: center;
  }
}

/* Logos */
.client-logo img,
.company-logo img {
  max-height: 150px !important;
  width: auto !important;
  height: auto !important;
}
.client-logo { margin-right: auto; }
.company-logo { margin-left:  auto; }

/* Grid layout */
.client-portal-dashboard .portal-cards {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 32px !important;
  grid-auto-flow: row dense;
  align-items: stretch !important;
}
@media (max-width: 760px) {
  .client-portal-dashboard .portal-cards {
    grid-template-columns: 1fr !important;
  }
}
.elementor .client-portal-dashboard .portal-cards {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 32px !important;
  align-items: stretch !important;
}

/* Grid positions */
.dashboard-box { height: 100%; }
#contact-box         { grid-column: 1; grid-row: 1; }
#unscrewed-room-cta  { grid-column: 2; grid-row: 1; }
#appointments-box    { grid-column: 1; grid-row: 2 / span 3; }
#welcome-video-box   { grid-column: 2; grid-row: 2; }
#quick-links-box     { grid-column: 2; grid-row: 3; }
#meeting-notes-box   { grid-column: 2; grid-row: 4; }

@media (max-width: 760px) {
  #contact-box,
  #unscrewed-room-cta,
  #appointments-box,
  #welcome-video-box,
  #quick-links-box,
  #meeting-notes-box {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* Card styling */
.dashboard-box {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, .10);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  padding: 20px;
}
.dashboard-box h2 {
  background-color: #fcda85 !important;
  color: #000 !important;
  padding: 12px;
  text-align: center !important;
  font-size: 24px;
  font-weight: bold;
  margin: -20px -20px 16px !important;
  border-radius: 4px 4px 0 0;
}

/* Portal navigation */
.vwm-portal-nav {
  display: flex;
  width: 100%;
  margin: 0 0 20px 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.vwm-portal-nav a,
.vwm-portal-nav .vwm-portal-link {
  flex: 1 1 0;
  padding: 14px 10px;
  background-color: #f0f0f0;
  color: #000;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease-in-out;
}
.vwm-portal-nav a:hover,
.vwm-portal-nav .vwm-portal-link:hover {
  background-color: #fcda85;
  color: #000;
}
.vwm-portal-nav a.active,
.vwm-portal-nav .vwm-portal-link.active,
.vwm-portal-nav .vwm-portal-link.is-active {
  background-color: #fcda85;
  color: #000;
  border-bottom: 3px solid #000;
}
.vwm-portal-nav .vwm-portal-link:last-child {
  border-right: none;
}

/* Portal layout helpers */
.vwm-portal-panels {
  margin-top: 24px;
}
.vwm-portal-section {
  margin-bottom: 40px;
}

/* Button */
.button.btn-coral {
  background: #fc9585;
  color: #000;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
  border: 2px solid rgba(0, 0, 0, .10);
}
.button.btn-coral:hover {
  filter: brightness(.95);
}

/* CTA button group */
#unscrewed-room-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
#unscrewed-room-cta .button {
  width: auto;
  max-width: 100%;
}

/* Lists */
.portal-list {
  margin: .25rem 0 0 1.25rem;
  padding: 0;
  list-style: disc;
}
.portal-list li {
  margin: .25rem 0;
}

/* Contact */
#contact-box table {
  border-collapse: separate;
  border-spacing: 0;
  width: auto;
  margin: 6px 0;
}
#contact-box td {
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, .15);
}
#contact-box td:first-child {
  font-weight: 700;
  white-space: nowrap;
  color: #004458;
}

/* Media embeds */
#appointments-box iframe {
  width: 100% !important;
  min-height: 800px !important;
  border: 0 !important;
}
#welcome-video-box iframe {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  border: 0 !important;
}

/* Mobile height fallback */
@media (max-width: 767px) {
  .client-portal-dashboard .dashboard-box {
    min-height: 200px;
    height: auto;
  }
  .client-portal-dashboard .dashboard-box.empty {
    height: 100px !important;
  }
}
