/* VietCALL: the "My Profile" pages (/user/…: dashboard, personal data, profile picture, emails, preferences, …) in the
   convention's look, like the login and sign-up cards (vietcall-footer.css, vietcall-signup.css): warm background, white
   cards with a soft shadow, Playfair headings in navy, the brand red as accent. js/vietcall-event-chrome.js puts
   html.vc-user-page on these pages. Everything is scoped to that class. 2026-11-12. */

html.vc-user-page body,
html.vc-user-page .main { background: #f7f6f3 !important; }
html.vc-user-page main { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #2c2c2c; }

/* Breadcrumb */
html.vc-user-page .main-breadcrumb { padding: 0 !important; border: 0 !important; background: transparent !important; }
html.vc-user-page .main-breadcrumb .path { max-width: 1120px; margin: 0 auto !important; padding: 14px 24px 0 !important; box-sizing: border-box; font-size: 13px; }
html.vc-user-page .main-breadcrumb .path > li:first-child { margin-left: 0 !important; padding-left: 0 !important; }
html.vc-user-page .main-breadcrumb a { color: #323e69; }

/* Page frame */
html.vc-user-page main > div:has(> .layout-side-menu) { max-width: 1120px; margin: 0 auto; padding: 0 24px 56px; box-sizing: border-box; }
html.vc-user-page .layout-side-menu { gap: 24px; margin-left: 0 !important; margin-right: 0 !important; }
/* Indico draws the dashboard at 90% width, centred, so it did not line up with the title. */
html.vc-user-page .user-dashboard:not(.banner) { max-width: none !important; margin: 0 !important; }
html.vc-user-page .banner { margin: 8px 0 18px !important; padding: 0 !important; border: 0 !important; align-items: center; }
html.vc-user-page .banner .title {
  margin: 0 !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  color: #323e69 !important;
}

/* Side menu of the profile pages */
html.vc-user-page .side-menu {
  overflow: hidden;
  padding: 8px !important;
  border: 1px solid #e8e3dd !important;
  border-radius: 10px;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(50, 62, 105, 0.06);
}
html.vc-user-page .side-menu .menu-items { gap: 2px; margin: 0; padding: 0; }
html.vc-user-page .side-menu .item { margin: 0 !important; border: 0 !important; background: none !important; }
html.vc-user-page .side-menu .item > a.title {
  display: block;
  min-height: 0 !important;
  padding: 9px 12px !important;
  line-height: 1.35 !important;
  border-left: 3px solid transparent;
  border-radius: 8px;
  color: #3d4560 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500;
  text-decoration: none;
}
html.vc-user-page .side-menu .item > a.title .side-menu-label { line-height: inherit !important; }
html.vc-user-page .side-menu .item > a.title:hover { background: #f3f1ed !important; color: #323e69 !important; }
html.vc-user-page .side-menu .item.active > a.title {
  border-left-color: #bb0400;
  background: #eef0f6 !important;
  color: #323e69 !important;
  font-weight: 700;
}

/* Boxes on the settings pages */
html.vc-user-page .i-box {
  overflow: hidden;
  border: 1px solid #e8e3dd !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(50, 62, 105, 0.06) !important;
}
html.vc-user-page .i-box-group.vert { gap: 20px; }
html.vc-user-page .i-box + .i-box { margin-top: 20px; }
html.vc-user-page .i-box-header {
  padding: 14px 18px !important;
  border-bottom: 1px solid #ebe7e1 !important;
  background: #fff !important;
}
html.vc-user-page .i-box-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #323e69 !important;
}
html.vc-user-page .i-box-content { padding: 18px !important; }
html.vc-user-page main .ui.form input:not([type=checkbox]):not([type=radio]),
html.vc-user-page main .ui.form .ui.dropdown.selection,
html.vc-user-page main .ui.form textarea,
html.vc-user-page main .i-form input[type=text],
html.vc-user-page main .i-form input[type=email],
html.vc-user-page main .i-form select { border-radius: 8px !important; border-color: #cfd4de !important; }
html.vc-user-page main .ui.form input:focus { border-color: #323e69 !important; }
html.vc-user-page main .ui.primary.button,
html.vc-user-page main .i-button.highlight {
  border-radius: 8px !important;
  background: #bb0400 !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.vc-user-page main .ui.primary.button:hover,
html.vc-user-page main .i-button.highlight:hover { background: #d62839 !important; }

/* ---- Dashboard ---- */
html.vc-user-page .banner.user-dashboard .ui.button {
  border: 1px solid #d9d4cc !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #323e69 !important;
}
html.vc-user-page .quick-access-pane { display: flex; gap: 24px; align-items: flex-start; }
html.vc-user-page .quick-access-pane .dashboard-col { flex: 1 1 0; min-width: 0; margin: 0 !important; display: flex; flex-direction: column; gap: 24px; }

/* Profile card: a navy band with the red line of the site header, the photo overlapping it */
html.vc-user-page .your-details {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-areas: "photo text";
  column-gap: 22px;
  margin: 0 !important;
  padding: 72px 24px 22px !important;
  border: 1px solid #e8e3dd;
  border-radius: 12px;
  background: linear-gradient(#323e69, #323e69) top / 100% 64px no-repeat, #fff;
  box-shadow: 0 8px 24px rgba(50, 62, 105, 0.08);
}
html.vc-user-page .your-details::before {
  content: '';
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  height: 4px;
  background: #bb0400;
}
html.vc-user-page .your-details .avatar-image { grid-area: photo; position: relative; z-index: 1; display: block !important; margin: -40px 0 0 !important; }
html.vc-user-page .your-details .avatar-image img {
  display: block;
  width: 116px !important;
  height: 116px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 4px solid #fff !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(50, 62, 105, 0.18) !important;
  object-fit: cover;
}
html.vc-user-page .your-details-wrapper { grid-area: text; min-width: 0; margin: 0 !important; padding: 0 !important; }
html.vc-user-page .your-details-wrapper h2 {
  margin: 0 0 8px !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  color: #323e69 !important;
}
html.vc-user-page .your-labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px !important; }
html.vc-user-page .your-labels br { display: none; }
html.vc-user-page .your-labels .ui.label {
  margin: 0 !important;
  padding: 4px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f3f1ed !important;
  color: #5f6368 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
html.vc-user-page .your-labels .ui.label .detail { margin-left: 6px !important; color: #2c2c2c !important; opacity: 1 !important; font-weight: 500 !important; }
html.vc-user-page .your-labels .ui.blue.label { background: #323e69 !important; color: #fff !important; letter-spacing: 0.04em; text-transform: uppercase; }
html.vc-user-page .contact-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0 !important; font-size: 14.5px; }
html.vc-user-page .contact-details dt { margin: 0 !important; color: #8a8f9c; }
html.vc-user-page .contact-details dt .contact-details-label { display: none; }
html.vc-user-page .contact-details dd { margin: 0 !important; color: #2c2c2c; overflow-wrap: anywhere; }
/* No grid-area: an absolutely positioned grid item is placed in its grid area, not in the card. */
html.vc-user-page .your-details .actions { grid-area: auto; position: absolute; top: 14px !important; right: 16px !important; bottom: auto !important; left: auto !important; margin: 0 !important; }
html.vc-user-page .your-details .actions .ui.button {
  margin: 0 !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
html.vc-user-page .your-details .actions .ui.button:hover { border-color: #fff !important; background: rgba(255, 255, 255, 0.14) !important; }
html.vc-user-page .your-details .actions .ui.button .icon { color: #fff !important; opacity: 1 !important; }

/* Dashboard boxes */
html.vc-user-page .dashboard-box {
  overflow: hidden;
  margin: 0 !important;
  border: 1px solid #e8e3dd !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(50, 62, 105, 0.06) !important;
}
html.vc-user-page .dashboard-box > h2 {
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #ebe7e1 !important;
  background: #fff !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #323e69 !important;
}
html.vc-user-page .dashboard-box.suggestions > h2 { background: #eef0f6 !important; font-size: 16px !important; }
html.vc-user-page .dashboard-box > ul { margin: 0 !important; padding: 6px 0 !important; }
html.vc-user-page .dashboard-box > ul > li {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  border: 0 !important;
  align-items: center;
  gap: 14px;
}
html.vc-user-page .dashboard-box > ul > li + li { border-top: 1px solid #f0ece6 !important; }
html.vc-user-page .dashboard-box .event-date {
  flex: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fbeaea;
  color: #bb0400 !important;
  font-size: 12.5px !important;
  font-weight: 700;
  white-space: nowrap;
}
html.vc-user-page .dashboard-box .event-title { font-size: 15px !important; line-height: 1.4; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
html.vc-user-page .dashboard-box .event-title a,
html.vc-user-page .dashboard-box .category-box-info > a { color: #323e69 !important; font-weight: 700; text-decoration: none; }
html.vc-user-page .dashboard-box .event-title a:hover,
html.vc-user-page .dashboard-box .category-box-info > a:hover { color: #bb0400 !important; text-decoration: underline; }
html.vc-user-page .dashboard-box .item-legend { flex: none; display: flex; gap: 6px; }
html.vc-user-page .dashboard-box .item-legend [class*="icon-"] { font-size: 16px; color: #c9c5bd; }
html.vc-user-page .dashboard-box .item-legend [class*="icon-"].active { color: #323e69; }
html.vc-user-page .dashboard-box .no-event .event-title { color: #8a8f9c !important; font-size: 14px !important; }
html.vc-user-page .dashboard-box .suggestion-favorite { color: #bb0400 !important; font-weight: 600; font-size: 13px; }
html.vc-user-page .dashboard-box .suggestion-remove,
html.vc-user-page .dashboard-box .suggestion-remove .icon { color: #8a8f9c !important; }
html.vc-user-page .dashboard-box .suggestion-remove:hover .icon { color: #bb0400 !important; }

/* Phones and narrow windows: one column */
@media (max-width: 900px) {
  html.vc-user-page .quick-access-pane { flex-direction: column; }
  html.vc-user-page .quick-access-pane .dashboard-col { width: 100%; }
}
@media (max-width: 620px) {
  html.vc-user-page main > div:has(> .layout-side-menu) { padding: 0 12px 40px; }
  html.vc-user-page .main-breadcrumb .path { padding: 12px 12px 0 !important; }
  html.vc-user-page .main-breadcrumb .path > li { margin-left: 0 !important; }
  html.vc-user-page .banner .title { font-size: 26px !important; }
  html.vc-user-page .your-details {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "text";
    justify-items: center;
    padding: 64px 16px 20px !important;
    text-align: center;
  }
  html.vc-user-page .your-labels { justify-content: center; }
  html.vc-user-page .contact-details { justify-content: center; text-align: left; }
  html.vc-user-page .dashboard-box > ul > li { flex-wrap: wrap; gap: 6px 12px; }
  html.vc-user-page .dashboard-box .event-title { flex: 1 1 100%; order: 2; white-space: normal !important; }
}

/* Switches on the settings pages: navy instead of Indico's teal when on */
html.vc-user-page main .ui.toggle.checkbox input:checked ~ label::before,
html.vc-user-page main .ui.toggle.checkbox input:focus:checked ~ label::before { background-color: #323e69 !important; }
