/* SMV ASTRO — unified dashboard typography
   Loaded after smvastro.css. Dashboard scope only; notification typography is excluded. */

/* ---------- Shared scale ---------- */
#dashboardContent .smv-consultation-item .smv-question-text,
#dashboardContent .smv-astrologer-dashboard .smv-astro-question-text{
  font-size:var(--smv-dashboard-emphasis)!important;
  line-height:var(--smv-dashboard-emphasis-line)!important;
  font-weight:600!important;
  color:#111!important;
}
#dashboardContent .smv-consultation-item .smv-customer-answer-text,
#dashboardContent .smv-astrologer-dashboard .smv-astro-answer-text{
  font-size:var(--smv-dashboard-body)!important;
  line-height:var(--smv-dashboard-body-line)!important;
  font-weight:400!important;
  color:#000!important;
}

/* ---------- Customer Dashboard ---------- */
#dashboardContent .smv-consultation-item .smv-customer-meta-line{
  font-size:var(--smv-dashboard-meta)!important;
  line-height:var(--smv-dashboard-meta-line)!important;
  font-weight:400!important;
  color:#000!important;
}
#dashboardContent .smv-consultation-item .smv-customer-meta-line>b{
  font-size:var(--smv-dashboard-label)!important;
  font-weight:600!important;
}
#dashboardContent .smv-consultation-item .smv-customer-meta-line>span{
  font-size:var(--smv-dashboard-meta)!important;
  font-weight:400!important;
}
#dashboardContent .smv-consultation-item .smv-private-payment-note{
  font-weight:400!important;
  font-style:normal!important;
  color:#000!important;
}
/* Customer payment actions: keep every label fully inside its button box. */
#dashboardContent .smv-customer-payment-btn{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  height:28px!important;
  width:auto!important;
  max-width:100%!important;
  padding:3px 10px!important;
  font-size:var(--smv-dashboard-control)!important;
  line-height:1!important;
  font-weight:600!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-align:center!important;
}
#dashboardContent .smv-private-payment-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
}
#dashboardContent .smv-private-payment-actions>.smv-customer-payment-btn{
  flex:1 1 0!important;
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  padding-left:5px!important;
  padding-right:5px!important;
  font-size:var(--smv-dashboard-control)!important;
}

/* ---------- Astrologer Dashboard ---------- */
/* Explanations/body copy */
#dashboardContent .smv-astrologer-dashboard> .card>p.small,
#dashboardContent .smv-astrologer-dashboard #astroQuestionQueue>p.small,
#dashboardContent .smv-astrologer-dashboard #astroAnsweredBox>p.small,
#dashboardContent .smv-astrologer-dashboard #astroProfileDescriptionCard>p.small{
  font-size:var(--smv-dashboard-support)!important;
  line-height:1.55!important;
  font-weight:400!important;
  color:#000!important;
}
/* Profile summary values are content, not labels. */
#dashboardContent .smv-astrologer-dashboard .astro-profile-summary-card .smv-approved-badge,
#dashboardContent .smv-astrologer-dashboard .astro-profile-summary-card .smv-approved-badge>span:last-child,
#dashboardContent .smv-astrologer-dashboard .astro-profile-summary-card .smv-astro-profile-value,
#dashboardContent .smv-astrologer-dashboard .astro-profile-summary-card .astro-profile-bio{
  font-size:var(--smv-dashboard-support)!important;
  line-height:1.5!important;
  font-weight:400!important;
  color:#000!important;
}
/* Summary labels and values */
#dashboardContent .smv-astrologer-dashboard .astro-dashboard-summary .smv-summary-label{
  font-size:var(--smv-dashboard-label)!important;
  font-weight:600!important;
  color:#111!important;
}
#dashboardContent .smv-astrologer-dashboard .astro-dashboard-summary .smv-summary-value{
  font-size:var(--smv-dashboard-support)!important;
  font-weight:400!important;
  color:#000!important;
}
#dashboardContent .smv-astrologer-dashboard .astro-dashboard-summary>.card>p{
  font-size:var(--smv-dashboard-support)!important;
  line-height:1.5!important;
  font-weight:400!important;
  color:#000!important;
}
/* Question/history metadata: label bold, result normal. */
#dashboardContent .smv-astrologer-dashboard :is(.smv-astro-open-question,.astro-question-item,.astro-answer-item)>.small,
#dashboardContent .smv-astrologer-dashboard .smv-history-detail,
#dashboardContent .smv-astrologer-dashboard .smv-withdrawal-row>.small{
  font-size:var(--smv-dashboard-meta)!important;
  line-height:var(--smv-dashboard-meta-line)!important;
  font-weight:400!important;
  color:#000!important;
}
#dashboardContent .smv-astrologer-dashboard :is(.smv-astro-open-question,.astro-question-item,.astro-answer-item)>.small>b,
#dashboardContent .smv-astrologer-dashboard .smv-history-detail>b,
#dashboardContent .smv-astrologer-dashboard .smv-withdrawal-row>.small>b{
  font-size:var(--smv-dashboard-label)!important;
  font-weight:600!important;
  color:#111!important;
}
/* Profile description */
#dashboardContent .smv-astrologer-dashboard #astroProfileDescriptionCard .smv-profile-subheading{
  font-size:var(--smv-dashboard-subsection)!important;
  line-height:1.4!important;
  font-weight:600!important;
  color:#111!important;
}
#dashboardContent .smv-astrologer-dashboard #astroProfileDescriptionCard .smv-profile-description-body>p,
#dashboardContent .smv-astrologer-dashboard #astroProfileDescriptionCard .smv-profile-edit-disabled{
  font-size:var(--smv-dashboard-support)!important;
  line-height:1.55!important;
  font-weight:400!important;
  color:#000!important;
}
#dashboardContent .smv-astrologer-dashboard .smv-history-content{
  font-size:var(--smv-dashboard-support)!important;
  line-height:var(--smv-dashboard-body-line)!important;
  font-weight:400!important;
  color:#000!important;
}
#dashboardContent .smv-astrologer-dashboard .smv-history-amount{
  font-size:var(--smv-dashboard-support)!important;
  line-height:var(--smv-dashboard-body-line)!important;
  font-weight:400!important;
}
#dashboardContent .smv-astrologer-dashboard .smv-history-amount>b,
#dashboardContent .smv-astrologer-dashboard .smv-history-amount>.success,
#dashboardContent .smv-astrologer-dashboard .smv-history-amount>.error{
  font-size:var(--smv-dashboard-support)!important;
  font-weight:600!important;
}
#dashboardContent .smv-astrologer-dashboard .empty{
  font-size:var(--smv-dashboard-support)!important;
  line-height:1.5!important;
  font-weight:600!important;
}

/* ---------- Admin Dashboard ---------- */
/* Do not target .smv-notification-* here: existing notification typography stays intact. */
#admin .card:not(:has(.smv-notification-row))>h3,
#admin section:not(:has(.smv-notification-row))>h3{
  font-size:var(--smv-dashboard-section)!important;
  line-height:var(--smv-dashboard-heading-line)!important;
  font-weight:800!important;
  color:#ff1493!important;
}
#admin .card:not(:has(.smv-notification-row))>h4{
  font-size:var(--smv-dashboard-subsection)!important;
  line-height:1.35!important;
  font-weight:750!important;
  color:#ff1493!important;
}
#admin .card:not(:has(.smv-notification-row))>p,
#admin .card:not(:has(.smv-notification-row))>.small{
  font-size:var(--smv-dashboard-support)!important;
  line-height:var(--smv-dashboard-body-line)!important;
  font-weight:400!important;
  color:#000!important;
}
#admin .card:not(:has(.smv-notification-row))>label{
  font-size:var(--smv-dashboard-label)!important;
  line-height:1.4!important;
  font-weight:600!important;
  color:#111!important;
}
#admin :is(#adminPendingQuestions,#adminAnswers,#adminRefunds,#adminQuestions)>div>b:first-child{
  font-size:var(--smv-dashboard-emphasis)!important;
  line-height:1.45!important;
  font-weight:600!important;
}
#admin :is(#adminPendingQuestions,#adminAnswers,#adminRefunds,#adminQuestions) .small{
  font-size:var(--smv-dashboard-meta)!important;
  line-height:1.55!important;
  font-weight:400!important;
  color:#000!important;
}
#admin :is(#adminPendingQuestions,#adminAnswers,#adminRefunds,#adminQuestions) .small>b{
  font-size:var(--smv-dashboard-label)!important;
  font-weight:600!important;
}
#admin :is(#adminPendingQuestions,#adminAnswers,#adminRefunds,#adminQuestions) p,
#admin :is(#adminPendingQuestions,#adminAnswers,#adminRefunds,#adminQuestions) .smv-customer-answer-text,
#admin textarea{
  font-size:var(--smv-dashboard-body)!important;
  line-height:1.5!important;
  font-weight:400!important;
  color:#000!important;
}

/* ---------- Admin Dashboard compact controls + notification parity ----------
   Centralized here so legacy dashboard rules cannot enlarge Admin forms. */
#admin label{
  font-size:var(--smv-dashboard-label)!important;
  line-height:1.4!important;
  font-weight:600!important;
  color:#111!important;
}
#admin label>b{font-size:var(--smv-dashboard-label)!important;font-weight:600!important;}

/* The Blog cover picker is a native file input, not a compact text field.
   Do not apply the 36px text-input height/line-height to its browser button. */
#admin #blogCoverFile{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-height:56px!important;
  height:auto!important;
  padding:9px 10px 3px!important;
  margin:4px 0 8px!important;
  line-height:normal!important;
  overflow:visible!important;
}
#admin #blogCoverFile::file-selector-button,
#admin #blogCoverFile::-webkit-file-upload-button{
  box-sizing:border-box!important;
  height:auto!important;
  min-height:0!important;
  padding:8px 12px!important;
  margin:0 10px 0 0!important;
  border:1px solid #dfbd73!important;
  border-radius:3px!important;
  background:linear-gradient(135deg,#dfbd73,#f2d79a)!important;
  color:#24103f!important;
  -webkit-text-fill-color:#24103f!important;
  font:inherit!important;
  font-weight:800!important;
  line-height:normal!important;
  vertical-align:middle!important;
  cursor:pointer!important;
}
#admin input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#admin select{
  min-height:36px!important;
  height:36px!important;
  padding:6px 9px!important;
  margin:4px 0 8px!important;
  border-radius:6px!important;
  font-size:var(--smv-dashboard-support)!important;
  line-height:1.4!important;
  font-weight:400!important;
}
#admin textarea{
  min-height:82px!important;
  padding:7px 9px!important;
  margin:4px 0 8px!important;
  border-radius:6px!important;
}
#admin .action-row{gap:6px!important;margin:6px 0!important;}
#admin .grid{gap:8px!important;}
#admin .small{font-size:var(--smv-dashboard-support)!important;line-height:var(--smv-dashboard-body-line)!important;}

/* Admin Notifications: same hierarchy as Customer/Astrologer notifications. */
#admin .card:has(#adminPrivateNotifications)>h3{
  font-size:var(--smv-dashboard-section)!important;line-height:var(--smv-dashboard-heading-line)!important;font-weight:800!important;
}
#admin .card:has(#adminPrivateNotifications)>p.small{
  font-size:var(--smv-dashboard-support)!important;line-height:1.55!important;font-weight:400!important;color:#000!important;
}
#adminPrivateNotifications .smv-notification-title{
  font-size:var(--smv-dashboard-label)!important;line-height:1.35!important;font-weight:700!important;color:#b00000!important;
}
#adminPrivateNotifications .smv-notification-content{
  font-size:var(--smv-dashboard-meta)!important;line-height:1.45!important;font-weight:400!important;color:#000!important;
}
#adminPrivateNotifications .smv-notification-meta{
  font-size:var(--smv-dashboard-meta)!important;line-height:1.4!important;font-weight:400!important;color:#202020!important;
}
#adminPrivateNotifications .smv-notification-label{font-size:var(--smv-dashboard-meta)!important;font-weight:600!important;color:#202020!important;}
#adminPrivateNotifications .smv-notification-result{font-size:var(--smv-dashboard-meta)!important;font-weight:400!important;color:#202020!important;}

/* Admin compact action buttons: medium height, content-width; paired SAVE/DELETE split left/right. */
#admin button:not(.hidden):not(.smv-v170-collapse-btn):not(.smv-v172-collapse-btn),
#admin .btn:not(.hidden):not(.smv-v170-collapse-btn):not(.smv-v172-collapse-btn),
#admin input[type="button"]:not(.hidden),#admin input[type="submit"]:not(.hidden){
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  height:28px!important;
  min-width:0!important;
  width:calc(50% - 4px)!important;
  max-width:100%!important;
  padding:3px 10px!important;
  font-size:var(--smv-dashboard-control)!important;
  line-height:1!important;
  font-weight:600!important;
  white-space:nowrap!important;
  text-align:center!important;
  overflow:visible!important;
  flex:0 0 auto!important;
}

/* Preserve intentionally hidden Admin controls. Higher-specificity button sizing must never reveal them. */
#admin button.hidden,
#admin .btn.hidden,
#admin input.hidden{display:none!important;}
#admin [data-qcard]>.action-row{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
#admin [data-qcard]>.action-row>[data-qsave],
#admin [data-qcard]>.action-row>[data-qdelete]{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
}
#admin .action-row{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
}
#admin .action-row>.btn,
#admin .action-row>button{
  flex:1 1 calc(50% - 4px)!important;
  width:auto!important;
  min-width:0!important;
}

/* Role-specific heading colour is preserved; all roles share the same size tokens. */
#dashboardContent .smv-astrologer-dashboard .astro-dashboard-summary>.card>h3,
#dashboardContent .smv-astrologer-dashboard>.card>h3,
#dashboardContent .smv-astrologer-dashboard #astroQuestionQueue>h3,
#dashboardContent .smv-astrologer-dashboard #astroAnsweredBox>h3,
#dashboardContent .smv-astrologer-dashboard #astroProfileDescriptionCard>h3,
#dashboardContent .smv-astrologer-dashboard .withdrawal-history-title,
#dashboardContent .smv-astrologer-dashboard .smv-astro-main-heading,
#dashboardContent #smvLiveDashboardCard>h3,
#dashboardContent>.card>h3,
#dashboardContent #smvLiveDashboardCard h4{
  color:#6b4b1e!important;
  -webkit-text-fill-color:#6b4b1e!important;
}
/* Metric figures follow one responsive scale across Wallet and Earnings cards. */
#dashboardContent .smv-dashboard-metric{
  font-size:var(--smv-dashboard-metric)!important;
  line-height:1.15!important;
  font-weight:800!important;
}

/* Shared dashboard heading hierarchy and compact section rhythm. */
html body #dashboard #dashboardContent :is(h2,h3),
html body #admin#admin :is(h2,h3){
  font-size:var(--smv-dashboard-section)!important;
  line-height:var(--smv-dashboard-heading-line)!important;
  font-weight:800!important;
  margin:0 0 8px!important;
  padding-top:0!important;
}
html body :is(#dashboard#dashboard,#admin#admin) .card::before,
html body :is(#dashboard#dashboard,#admin#admin) :is(h2,h3,h4)::before,
html body :is(#dashboard#dashboard,#admin#admin) :is(h2,h3,h4)::after{content:none!important;display:none!important;}
html body :is(#dashboard#dashboard,#admin#admin) .card{padding:8px 0!important;margin:0 0 12px!important;}
html body :is(#dashboard#dashboard,#admin#admin) .card:last-child{margin-bottom:0!important;}
html body #dashboardContent .grid,html body #admin .grid{gap:12px!important;}
html body #dashboardContent .smv-astrologer-dashboard{padding:0!important;margin:0!important;}


/* ---------- Admin Dashboard functional workgroups ---------- */
#admin .admin-workgroup{
  margin:26px 0 28px;
  padding:17px 0 0;
  border-top:2px solid #e4c98f;
  scroll-margin-top:18px;
}
#admin .admin-workgroup-title{
  margin:0 0 7px;
  color:#861b28;
  font-size:var(--smv-dashboard-section);
  line-height:1.35;
  font-weight:800;
  overflow-wrap:anywhere;
}
#admin .admin-workgroup-description{
  margin:0 0 14px;
  color:#343434;
  font-size:var(--smv-dashboard-support);
  line-height:1.6;
  font-weight:400;
}
#admin .admin-workgroup>.card{
  margin:10px 0 0;
}
#admin .admin-workgroup>.card:first-of-type{
  margin-top:0;
}
@media(max-width:700px){
  #admin .admin-workgroup{
    margin:22px 0 24px;
    padding-top:14px;
    scroll-margin-top:12px;
  }
  #admin .admin-workgroup-title{line-height:1.4;}
  #admin .admin-workgroup-description{line-height:1.6;margin-bottom:12px;}
}




/* Live dashboard typography: consistent with the Live Call / Live Chat heading. */
#dashboardContent #smvLiveDashboardCard>h3,
#dashboardContent #smvLiveDashboardCard h4{
  color:#6b4b1e!important;-webkit-text-fill-color:#6b4b1e!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-booking-kind{
  display:inline-block!important;color:#ff1493!important;-webkit-text-fill-color:#ff1493!important;
  background:transparent!important;font-size:var(--smv-dashboard-emphasis)!important;line-height:1.35!important;
  font-weight:900!important;padding:0!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-booking-id,
#dashboardContent #smvLiveDashboardCard .smv-live-booking-detail{
  font-size:var(--smv-dashboard-body)!important;line-height:var(--smv-dashboard-body-line)!important;font-weight:600!important;
  color:#111!important;-webkit-text-fill-color:#111!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-booking-detail b{
  font-size:var(--smv-dashboard-body)!important;font-weight:800!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-session-mode{
  font-size:var(--smv-dashboard-emphasis)!important;line-height:1.4!important;font-weight:900!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-session-meta{
  font-size:var(--smv-dashboard-body)!important;line-height:var(--smv-dashboard-body-line)!important;font-weight:700!important;
  color:#111!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-session-meta b{
  font-size:var(--smv-dashboard-body)!important;font-weight:900!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-session-open-button{
  font-size:var(--smv-dashboard-body)!important;line-height:1.5!important;color:#00e676;
  -webkit-text-fill-color:#00e676;text-decoration:none!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-session-receipt-action{
  display:inline-block;
  min-width:0;
  min-height:0;
  height:auto;
  margin:8px 0 0;
  padding:0;
  appearance:none;
  -webkit-appearance:none;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#5b2a86;
  -webkit-text-fill-color:#5b2a86;
  font-family:inherit;
  font-size:var(--smv-dashboard-body);
  font-weight:800;
  line-height:1.5;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
#dashboardContent #smvLiveDashboardCard .smv-live-session-receipt-action:focus,
#dashboardContent #smvLiveDashboardCard .smv-live-session-receipt-action:hover{
  background:transparent;
  box-shadow:none;
  color:#5b2a86;
  -webkit-text-fill-color:#5b2a86;
  text-decoration:none;
}
#dashboardContent #smvLiveDashboardCard .smv-live-session-open-button:focus,
#dashboardContent #smvLiveDashboardCard .smv-live-session-open-button:hover{
  text-decoration:none!important;
}


/* Live session state: the two role dashboards share this same session row. */
#dashboardContent #smvLiveDashboardCard .smv-live-presence-dot{
  display:inline-block;
  width:10px;height:10px;flex:0 0 10px;
  border-radius:50%;box-sizing:border-box;vertical-align:middle;
}
#dashboardContent #smvLiveDashboardCard .smv-live-presence-dot[hidden]{
  display:none!important;
}
#dashboardContent #smvLiveDashboardCard .smv-live-presence-dot--active{
  background:#00e676;border:1px solid #008f4c;
  box-shadow:0 0 0 2px rgba(0,230,118,.18);
  animation:smvLiveSessionGreenPulse .42s steps(2,end) infinite;
}
#dashboardContent #smvLiveDashboardCard .smv-live-presence-dot--closed{
  background:#ff1744;border:1px solid #b8001e;
  box-shadow:0 0 0 2px rgba(255,23,68,.16);
}
#dashboardContent #smvLiveDashboardCard .smv-live-window-closed-label:not([hidden]){
  display:inline-block;
  font-weight:900!important;color:#ff1744!important;
  -webkit-text-fill-color:#ff1744!important;
}
@keyframes smvLiveSessionGreenPulse{
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:.2;transform:scale(.78);}
}
@media(prefers-reduced-motion:reduce){
  #dashboardContent #smvLiveDashboardCard .smv-live-presence-dot--active{
    animation:none;opacity:1;
  }
}


/* ---------- Earnings, Live and consultation date/time metadata ---------- */
#dashboardContent .smv-live-session-dates,
#dashboardContent .smv-live-booking-dates,
#dashboardContent .smv-private-chat-dates,
#dashboardContent .smv-earning-history-row .smv-history-detail{
  display:block;
  margin:7px 0 0;
  font-size:var(--smv-dashboard-meta);
  line-height:1.55;
  font-weight:400;
  color:#242424;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
#dashboardContent .smv-live-booking-dates,
#dashboardContent .smv-live-session-dates,
#dashboardContent .smv-private-chat-dates{
  padding:7px 9px;
  border-left:3px solid #c59a43;
  border-radius:4px;
  background:rgba(197,154,67,.08);
}
#dashboardContent .smv-earning-history-row{
  padding:12px 0;
  border-bottom:1px solid rgba(80,65,38,.16);
}
#dashboardContent .smv-earning-history-row .smv-history-amount{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px;
}
#dashboardContent .smv-earning-history-row .smv-history-amount>b{
  font-size:var(--smv-dashboard-emphasis);
  font-weight:750;
  font-variant-numeric:tabular-nums;
}
#dashboardContent .smv-earning-history-row .smv-history-content{
  margin-top:4px;
  font-size:var(--smv-dashboard-support);
  line-height:1.5;
  overflow-wrap:anywhere;
}
@media(max-width:480px){
  #dashboardContent .smv-live-session-dates,
  #dashboardContent .smv-live-booking-dates,
  #dashboardContent .smv-private-chat-dates,
  #dashboardContent .smv-earning-history-row .smv-history-detail{line-height:1.6;}
}
