/*
 * IMDTEC Account — Dashboard Suite (v4)
 * Scope: Dashboard template (portal-dashboard.php)
 * Goal: Google Admin inspired cards + hero (pixel-accurate spacing)
 */

body.imdtec-site-account .imd-dash{
  display:flex;
  flex-direction:column;
  gap: 18px;
}

/* ---------------------------------------------------------
   1) Hero (blue card)
   --------------------------------------------------------- */
body.imdtec-site-account .imd-dash-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;

  background: #d2e3fc;
  border: 1px solid rgba(60,64,67,.10);
  border-radius: 16px;

  padding: 24px 28px;
}

body.imdtec-site-account .imd-dash-hero__content{
  min-width: 0;
  flex: 1 1 auto;
}

body.imdtec-site-account .imd-dash-hero__kicker{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(60,64,67,.75);
  font-weight: 700;
  margin-bottom: 8px;
}

body.imdtec-site-account .imd-dash-hero__title{
  margin: 0 0 12px 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: #1f1f1f;
}

body.imdtec-site-account .imd-dash-hero__subtitle{
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3c4043;
  max-width: 70ch;
}

body.imdtec-site-account .imd-dash-hero__actions{
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
body.imdtec-site-account .imd-gbtn{
  display:inline-flex;
  align-items:center;
  gap: 10px;

  border-radius: 999px;
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;

  padding: 11px 18px;
  white-space: nowrap;
}

body.imdtec-site-account .imd-gbtn__icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

body.imdtec-site-account .imd-gbtn--primary{
  background: #0b57d0;
  color: #fff;
}
body.imdtec-site-account .imd-gbtn--primary:hover{
  background: #0a4ec0;
}

body.imdtec-site-account .imd-gbtn--link{
  background: transparent;
  color: #1a73e8;
  padding-left: 6px;
  padding-right: 6px;
}
body.imdtec-site-account .imd-gbtn--link:hover{
  text-decoration: underline;
}

/* Hero media (Google size ≈ 216×160) */
body.imdtec-site-account .imd-dash-hero__media{
  flex: 0 0 216px;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.imdtec-site-account .imd-dash-hero__media img{
  width: 216px;
  height: 160px;
  object-fit: contain;
  display:block;
}

@media (max-width: 900px){
  body.imdtec-site-account .imd-dash-hero{
    flex-direction:column;
    align-items:flex-start;
  }
  body.imdtec-site-account .imd-dash-hero__title{
    font-size: 34px;
  }
  body.imdtec-site-account .imd-dash-hero__media{
    width: 100%;
    flex-basis: auto;
    justify-content:flex-start;
  }
}

/* ---------------------------------------------------------
   2) Secondary cards (Billing + Communication preferences)
   --------------------------------------------------------- */
body.imdtec-site-account .imd-gadmin-cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

body.imdtec-site-account .imd-gcard{
  background: #f1f3f4;
  border: 1px solid rgba(60,64,67,.10);
  border-radius: 16px;
  padding: 22px 24px;
}

body.imdtec-site-account .imd-gcard__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

body.imdtec-site-account .imd-gcard__title{
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #1f1f1f;
}

body.imdtec-site-account .imd-gcard__desc{
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #3c4043;
}

body.imdtec-site-account .imd-gcard__action{
  color: #1a73e8;
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
  padding-top: 6px;
  white-space: nowrap;
}

body.imdtec-site-account .imd-gcard__action:hover,
body.imdtec-site-account .imd-gcard__link:hover,
body.imdtec-site-account .imd-gcard__links a:hover{
  text-decoration: underline;
}

body.imdtec-site-account .imd-gcard__meta{
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(60,64,67,.87);
}

body.imdtec-site-account .imd-gcard__links{
  margin: 18px 0 0;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

body.imdtec-site-account .imd-gcard__links a,
body.imdtec-site-account .imd-gcard__link{
  color: #1a73e8;
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
}

body.imdtec-site-account .imd-gcard__link{
  display:inline-block;
  margin-top: 18px;
}

@media (max-width: 980px){
  body.imdtec-site-account .imd-gadmin-cards{
    grid-template-columns: 1fr;
  }
}
