/* Announcement contrast correction for the dark member-dashboard theme. */
.sthonet-company-site .sth-announcements .sth-announcement-heading h2,
.sthonet-company-site .sth-announcement-manager .sth-announcement-heading h2 {
  display: block !important;
  color: #001c18 !important;
  -webkit-text-fill-color: #001c18 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

.sthonet-company-site .sth-announcements .sth-announcement-heading p,
.sthonet-company-site .sth-announcement-manager .sth-announcement-heading p,
.sthonet-company-site .sth-announcement-empty p,
.sthonet-company-site .sth-announcement-card p {
  display: block !important;
  color: #31534b !important;
  -webkit-text-fill-color: #31534b !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

.sthonet-company-site .sth-announcement-empty strong,
.sthonet-company-site .sth-announcement-card h3 {
  display: block !important;
  color: #001c18 !important;
  -webkit-text-fill-color: #001c18 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}


/* Ensure owner announcement form labels remain readable against the light form background.
   Scoped only to the announcement manager; no other dashboard styling is changed. */
.sth-announcement-manager label,
.sth-announcement-manager form > label,
.sth-announcement-manager .sth-announcement-fields > label {
  color: #173c33 !important;
  -webkit-text-fill-color: #173c33 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}
.sth-announcement-manager label > input,
.sth-announcement-manager label > textarea,
.sth-announcement-manager label > select {
  color: #001c18 !important;
  -webkit-text-fill-color: #001c18 !important;
}

/* v4.17.38: owner confirmation / error message after publishing. */
.sth-announcement-notice{margin:16px 0 0;padding:12px 16px;border-radius:10px;font-weight:800;color:#001c18!important;-webkit-text-fill-color:#001c18!important;background:#e3fb76}
.sth-announcement-notice.is-error{background:#ffd9d9}

/* v4.17.41: owner list text was white on a light panel; make it readable and style Edit / Delete. */
.sth-announcement-manager .sth-announcement-admin-list h3,
.sth-announcement-manager .sth-announcement-admin-list strong {
  color: #001c18 !important; -webkit-text-fill-color: #001c18 !important; opacity: 1 !important; visibility: visible !important; text-shadow: none !important;
}
.sth-announcement-manager .sth-announcement-admin-list small,
.sth-announcement-manager .sth-announcement-admin-list small time,
.sth-announcement-manager .sth-announcement-admin-list p {
  color: #31534b !important; -webkit-text-fill-color: #31534b !important; opacity: 1 !important; visibility: visible !important; text-shadow: none !important;
}
.sth-announcement-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.sth-announcement-actions form { margin: 0; }
.sth-announcement-edit, .sth-announcement-cancel {
  display: inline-block; padding: 13px 20px; border-radius: 10px; border: 2px solid #001c18; background: #fff;
  color: #001c18 !important; -webkit-text-fill-color: #001c18 !important; font-weight: 900; text-decoration: none !important;
}
.sth-announcement-manager button.sth-announcement-delete { background: #9b1c1c; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.sth-announcement-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 640px) { .sth-announcement-actions { justify-content: flex-start; } }

/* v4.17.43: who has viewed each announcement (owner only). */
.sth-announcement-viewers { margin-top: 8px; }
.sth-announcement-viewers summary { cursor: pointer; font-weight: 800; color: #168bb8 !important; -webkit-text-fill-color: #168bb8 !important; }
.sth-announcement-viewers ul { margin: 8px 0 0; padding: 0; list-style: none; max-height: 260px; overflow: auto; display: grid; gap: 6px; }
.sth-announcement-viewers li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 10px; border: 1px solid #dfe8e5; border-radius: 8px; background: #fff; }
.sth-announcement-viewers li strong, .sth-announcement-viewers li em, .sth-announcement-viewers li span, .sth-announcement-viewers li time {
  color: #001c18 !important; -webkit-text-fill-color: #001c18 !important; font-style: normal; font-size: .85rem; opacity: 1 !important; visibility: visible !important;
}

/* v4.17.44: viewed / not yet viewed sections. */
.sth-announcement-viewers h4 { margin: 12px 0 4px !important; font-size: .9rem !important; color: #001c18 !important; -webkit-text-fill-color: #001c18 !important; }
.sth-announcement-viewers ul.is-pending li { background: #fff8e1; border-color: #ecd98a; }
.sth-announcement-note { font-size: .8rem !important; }

/* v4.19.3: owner-only phone numbers in the viewed / not-yet-viewed lists. */
.sth-announcement-viewers .sth-viewer-phone { font-weight: 700; color: #0b6b4f !important; -webkit-text-fill-color: #0b6b4f !important; text-decoration: none; }
.sth-announcement-viewers a.sth-viewer-phone:hover { text-decoration: underline; }
.sth-announcement-viewers .sth-viewer-phone.is-missing { font-weight: 400; font-style: italic; color: #8a6d00 !important; -webkit-text-fill-color: #8a6d00 !important; }
.sth-announcement-viewers .sth-copy-phones { margin-left: 8px; padding: 3px 10px; border: 1px solid #168bb8; border-radius: 999px; background: #fff; color: #168bb8; font-size: .75rem; font-weight: 700; cursor: pointer; }
.sth-announcement-viewers .sth-copy-phones.is-done { background: #e3fb76; border-color: #9bb800; color: #001c18; }

.sth-announcement-viewers .sth-company-number-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #eef7f4; color: #173c33 !important; -webkit-text-fill-color: #173c33 !important; font-size: .82rem; }
