/* =====================================================================
   Local CMS custom CSS (partners + partner categories)
   Standalone from SCSS build to avoid grunt / Node dependencies.
   ===================================================================== */

/* Hide SCSS error banner injected by broken moodle.css builds. */
body::before {
  content: none !important;
  display: none !important;
}

/* Shared shell for partner admin screens (Moodle body never gets path-local-cms-<script>; only path-local-cms) */
.local-cms-partners,
.local-cms-partnercats {
  font-size: 0.9375rem;
  color: #343a40;
  /* max-width: 72rem; */
  margin-inline: auto;
}

/* Widen text inputs on partner + partner-category edit forms */
body.path-local-cms-edit_partner .mform .form-control,
body.path-local-cms-edit_partner_category .mform .form-control {
  max-width: 40rem;
}

/* (Active checkbox on partner form has been removed from markup) */

/* Header */
.local-cms-partners__header,
.local-cms-partnercats__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 0.75rem; */
}

.local-cms-partners__title,
.local-cms-partnercats__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #212529;
  line-height: 50px;
}

.local-cms-partners__toolbar,
.local-cms-partnercats__toolbar {
  margin-bottom: 16px;
}

/* Partner categories: search row trái, Manage partners + Add category phải cùng một hàng */
.local-cms-partnercats__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  column-gap: 16px;
  row-gap: 10px;
}

.local-cms-partners__filterbar,
.local-cms-partnercats__filterbar {
  flex: 1 1 auto;
  padding: 12px 16px;
  border-radius: 8px;
}

/* Partner categories: keep search + Apply compact, aligned left with table */
.local-cms-partnercats__filterbar {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.local-cms-partnercats__filterbar-inner {
  max-width: 480px;
  width: 100%;
}

.local-cms-partners__filterbar-inner,
.local-cms-partnercats__filterbar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 5px 10px;
}

.local-cms-partners__filter-field,
.local-cms-partnercats__filter-field {
  flex: 1 1 auto;
}

.local-cms-partners__filter-field--search {
  max-width: 260px;
}

.local-cms-partners__filter-field--submit,
.local-cms-partnercats__filter-field--submit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Apply trong hàng filter — cùng chiều cao với .local-cms-input (2.6rem) */
.local-cms-partners__filter-field--submit .local-cms-button,
.local-cms-partnercats__filter-field--submit .local-cms-button {
  font-size: 0.8125rem;
  padding: 0.2rem 0.8rem;
  line-height: 1;
  height: 2.6rem;
}

/* Taller controls so all filters cùng chiều cao */
.local-cms-partners__label,
.local-cms-partnercats__label {
  line-height: 1.4;
}

.local-cms-partners__filter-field .local-cms-input,
.local-cms-partnercats__filter-field .local-cms-input {
  height: 2.6rem;
  display: flex;
  align-items: center;
}

.local-cms-partners__toolbar-actions,
.local-cms-partnercats__toolbar-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

/* Partners: nút nằm hàng dưới bộ lọc */
.local-cms-partners__toolbar-actions {
  margin-top: 10px;
}

/* Make header action buttons larger */
.local-cms-partners__toolbar-actions .local-cms-button,
.local-cms-partnercats__toolbar-actions .local-cms-button {
  font-size: 0.9375rem;
  padding: 0.55rem 1.3rem;
}

.local-cms-partnership-req__nav {
  margin-bottom: 1rem;
}

.local-cms-partnership-req__excerpt {
  margin-top: 0.25rem;
  font-weight: 400;
}

/* Partnership requests admin (list + detail) */
.local-cms-pr-admin {
  max-width: 1200px;
}

/* List + detail: full width trong #region-main / [role="main"] */
.local-cms-pr-list.local-cms-pr-admin {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  font-size: 0.9375rem;
  color: #343a40;
}

.local-cms-pr-detail.local-cms-pr-admin {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

.local-cms-pr-list.local-cms-pr-admin .local-cms-pr-list__nav {
  margin-bottom: 0;
}

.local-cms-pr-list__filterbar {
  flex: 1 1 auto;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0;
  max-width: 100%;
}

.local-cms-pr-list__filterbar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 5px 10px;
  max-width: 28rem;
}

.local-cms-pr-list__filter-field {
  flex: 1 1 auto;
  min-width: 0;
}

.local-cms-pr-list__filter-field--submit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.local-cms-pr-list__filter-field--submit .local-cms-button {
  font-size: 0.8125rem;
  padding: 0.2rem 0.8rem;
  line-height: 1;
  height: 2.6rem;
}

.local-cms-pr-list__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #212529;
}

.local-cms-pr-list__filter-field .local-cms-input,
.local-cms-pr-list__filter-field select.local-cms-input {
  height: 2.6rem;
  width: 100%;
}

.local-cms-pr-back {
  font-weight: 500;
  text-decoration: none;
}

.local-cms-pr-back:hover {
  text-decoration: underline;
}

.local-cms-pr-list__nav,
.local-cms-pr-detail__nav {
  margin-bottom: 1.25rem;
}

.local-cms-pr-table .local-cms-pr-col--index,
.local-cms-pr-table .local-cms-pr-indexcell {
  color: #adb5bd;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.local-cms-pr-tablewrap {
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.local-cms-pr-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.local-cms-pr-table thead tr {
  border-bottom: 2px solid #e9ecef;
  background-color: #f8f9fa;
}

.local-cms-pr-table thead th {
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #212529;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: normal;
  border-bottom: none;
}

.local-cms-pr-table tbody td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
  font-size: inherit;
}

.local-cms-pr-table tbody tr:hover td {
  background-color: #f8f9fa;
}

.local-cms-pr-table thead tr th:last-child,
.local-cms-pr-table tbody tr td:last-child {
  text-align: left;
}

.local-cms-pr-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.local-cms-pr-status--pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.local-cms-pr-status--published {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #198754;
}

.local-cms-pr-status--rejected {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #dc3545;
}

.local-cms-pr-viewlink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  color: #0d6efd;
}

.local-cms-pr-viewlink:hover {
  text-decoration: underline;
  color: #0a58ca;
}

.local-cms-pr-detail__card {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1.35rem 1.5rem 1.5rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.local-cms-pr-detail__title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #212529;
}

.local-cms-pr-detail__dl {
  display: grid;
  grid-template-columns: minmax(9rem, 11rem) 1fr;
  gap: 0.65rem 1.25rem;
  align-items: start;
  margin: 0 0 1.25rem;
}

.local-cms-pr-detail__dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6c757d;
}

.local-cms-pr-detail__dd {
  margin: 0;
  font-size: 0.875rem;
  color: #212529;
  word-break: break-word;
}

.local-cms-pr-detail__dd--desc {
  grid-column: 1 / -1;
}

.local-cms-pr-detail__description {
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  white-space: pre-wrap;
  line-height: 1.55;
}

.local-cms-pr-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e9ecef;
  margin-top: 0.25rem;
}

.local-cms-pr-actionform {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.local-cms-pr-detail__pending-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  min-width: 0;
}

.local-cms-pr-detail__pending-form-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 36rem;
  width: 100%;
}

.local-cms-pr-detail__actions-footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  box-sizing: border-box;
  width: calc(100% + 3rem);
  margin-inline: -1.5rem;
  margin-bottom: -1.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1.5rem 1rem;
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 0.75rem 0.75rem;
  background: #f1f3f5;
}

.local-cms-pr-detail__approve-listing {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.local-cms-pr-detail__approve-listing-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.local-cms-pr-detail__approve-listing-control .form-autocomplete-selection {
  margin-bottom: 0.25rem;
}

.local-cms-pr-listing-err {
  display: none;
  color: #dc3545;
  font-size: 0.8125rem;
  line-height: 1.35;
  margin: 0;
}

.local-cms-pr-listing-err--visible {
  display: block;
}

.local-cms-pr-btn-reject {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
  background: #fff !important;
}

.local-cms-pr-btn-reject:hover {
  background: #fff5f5 !important;
  color: #bb2d3b !important;
  border-color: #bb2d3b !important;
}

/* Partner posts list (title bold, company muted, date stacked, status pills, icon actions) */
.local-cms-pr-table--posts .local-cms-pr-titlecell {
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.local-cms-pr-table--posts .local-cms-pr-companycell {
  color: #6b7280;
  font-weight: 400;
}

.local-cms-pr-datecell {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
  font-size: 0.8125rem;
}

.local-cms-pr-datecell__time {
  font-weight: 600;
  color: #374151;
}

.local-cms-pr-datecell__date {
  color: #6b7280;
  font-size: 0.8125rem;
}

.local-cms-pr-dash {
  color: #9ca3af;
}

.local-cms-pr-th__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.local-cms-pr-th__link:hover {
  color: #dc3545;
  text-decoration: none;
}

.local-cms-pr-th__icon {
  opacity: 0.65;
}

.local-cms-pr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.local-cms-pr-pill__text {
  line-height: 1.2;
}

/* Pending: xanh dương */
.local-cms-pr-pill--pending {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.local-cms-pr-pill--pending .fa {
  color: #2563eb;
}

/* Published: xanh lá */
.local-cms-pr-pill--published {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.local-cms-pr-pill--published .fa {
  color: #059669;
}

/* Rejected: đỏ */
.local-cms-pr-pill--rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.local-cms-pr-pill--rejected .fa {
  color: #dc2626;
}

.local-cms-pr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.local-cms-pr-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.local-cms-pr-iconbtn:hover {
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
}

.local-cms-pr-iconbtn--approve {
  color: #198754;
}

.local-cms-pr-iconbtn--approve:hover {
  background: #d1e7dd;
  color: #0f5132;
}

.local-cms-pr-iconbtn--delete {
  color: #343a40;
}

.local-cms-pr-iconbtn--delete .icon,
.local-cms-pr-iconbtn--delete i.fa {
  color: #343a40;
}

.local-cms-pr-iconbtn--delete:hover {
  background: #f3f4f6;
  color: #111827;
}

.local-cms-pr-iconbtn--delete:hover .icon,
.local-cms-pr-iconbtn--delete:hover i.fa {
  color: #111827;
}

.local-cms-pr-iconbtn--delete .fa-trash::before,
.local-cms-pr-iconbtn--delete:hover .fa-trash::before {
  color: inherit !important;
}

.local-cms-pr-detail__rejectlabel {
  font-weight: 600;
  font-size: 0.875rem;
}

.local-cms-pr-detail__rejectnote {
  width: 100%;
  max-width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  box-sizing: border-box;
}

.local-cms-partners__label,
.local-cms-partnercats__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #212529;
}

/* Inputs */
.local-cms-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid #e9ecef;
  font-size: 0.8125rem;
  color: #343a40;
  background-color: #fff;
}

.local-cms-input:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.16);
  outline: none;
}

.local-cms-input::placeholder {
  color: #adb5bd;
}

.local-cms-input--select {
  padding-right: 2rem;
}

.local-cms-input--number {
  text-align: center;
  max-width: 5rem;
}

/* Buttons */
.local-cms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  background-color: #e9ecef;
  color: #212529;
  text-decoration: none;
}

.local-cms-button:hover {
  text-decoration: none;
  background-color: #dde2e6;
}

.local-cms-button--sm {
  padding-block: 0.3rem;
  font-size: 0.8125rem;
}

.local-cms-button--primary {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.local-cms-button--primary:hover {
  background-color: #bb2d3b;
  border-color: #bb2d3b;
  color: #fff;
}

.local-cms-button--secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

.local-cms-button--secondary:hover {
  background-color: #5c636a;
  border-color: #5c636a;
  color: #fff;
}

.local-cms-button--outline {
  background-color: transparent;
  border-color: #ced4da;
  color: #495057;
}

.local-cms-button--outline:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}

/* Table wrappers */
.local-cms-partners__tablewrap,
.local-cms-partnercats__tablewrap {
  border-radius: 0.5rem;
  overflow: hidden;
}

.local-cms-partners__table,
.local-cms-partnercats__table {
  width: 100%;
  border-collapse: collapse;
}

.local-cms-partners__table thead tr,
.local-cms-partnercats__table thead tr {
  border-bottom: 2px solid #e9ecef;
  background-color: #f8f9fa;
}

.local-cms-partners__table th,
.local-cms-partnercats__table th {
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #212529;
  white-space: nowrap;
}

.local-cms-partners__table td,
.local-cms-partnercats__table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

/* Partner categories: Sort order, Companies, Visible — cùng căn trái với Category name / Slug */
.local-cms-partnercats__table th:nth-child(4),
.local-cms-partnercats__table th:nth-child(5),
.local-cms-partnercats__table th:nth-child(6),
.local-cms-partnercats__table td:nth-child(4),
.local-cms-partnercats__table td:nth-child(5),
.local-cms-partnercats__table td:nth-child(6) {
  text-align: left;
}

.local-cms-partners__table tbody tr:hover td,
.local-cms-partnercats__table tbody tr:hover td {
  background-color: #f8f9fa;
}

.local-cms-partners__index,
.local-cms-partnercats__index {
  color: #adb5bd;
  font-size: 0.75rem;
  width: 4%;
}

.local-cms-partners__email {
  color: #212529;
  word-break: break-all;
}

.local-cms-partners__date {
  color: #212529;
  font-size: inherit;
  white-space: nowrap;
}

.local-cms-partners__active {
  text-align: center;
}

/* Actions: left-align so first icon (view) thẳng hàng khi số nút khác nhau (2 vs 3) */
.local-cms-partners__actions-cell,
.local-cms-partnercats__actions-cell {
  text-align: left;
  vertical-align: middle;
}

.local-cms-partners__table thead tr th:last-child,
.local-cms-partnercats__table thead tr th:last-child {
  text-align: left;
}

.local-cms-partners__empty,
.local-cms-partnercats__empty {
  padding-block: 1.75rem;
  text-align: center;
  color: #adb5bd;
  font-size: 0.875rem;
}

.local-cms-partners__empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  border-top: 1px solid #e5e7eb;
}

.local-cms-partnercats__empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  border-top: 1px solid #e5e7eb;
}

/* Toggle switch */
.local-cms-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.local-cms-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.local-cms-toggle__slider {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background-color: #ccc;
  transition: 0.2s;
}

.local-cms-toggle__slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}

.local-cms-toggle input:checked + .local-cms-toggle__slider {
  background-color: #198754;
}

.local-cms-toggle input:checked + .local-cms-toggle__slider::before {
  transform: translateX(1rem);
}

/* Status colors */
.local-cms-partners__status-label {
  font-weight: 500;
  color: #212529;
}

.status-pub,
.status-draft,
.status-unp {
  color: inherit;
}

/* Action icons */
.local-cms-partners__actions,
.local-cms-partnercats__actions {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4rem;
}

.local-cms-partners__actions a,
.local-cms-partnercats__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  text-decoration: none;
}

.local-cms-partners__actions a:hover,
.local-cms-partnercats__actions a:hover {
  background-color: #f8f9fa;
}

/* Info box for partner categories */
.local-cms-partnercats__info {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #cfe2ff;
  background-color: #e7f1ff;
  color: #0c5aa8;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Partner category form: plain checkbox for Visible */
#fitem_id_visible .select {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: auto !important;
}

#fitem_id_visible .select::before,
#fitem_id_visible .select::after,
#fitem_id_visible .select-dropdown,
#fitem_id_visible .wap {
  display: none !important;
}

#fitem_id_visible input[type="checkbox"],
#fitem_id_visible .form-check-input {
  position: static !important;
  opacity: 1 !important;
  width: 1.1rem !important;
  height: 1.1rem !important;
  margin: 0 !important;
}

/* Slug on some CMS forms is optional: hide required asterisk on slug field */
body.path-local-cms-edit_category #fitem_id_slug .text-danger,
body.path-local-cms-edit_partner #fitem_id_slug .text-danger {
  display: none !important;
}

/*
 * Partner category slug: required field but Moodle outputs duplicate asterisks.
 * Hide every .text-danger then restore only the first one.
 */
body.path-local-cms-edit_partner_category #fitem_id_slug .text-danger {
  display: none !important;
}
body.path-local-cms-edit_partner_category #fitem_id_slug .text-danger:first-of-type {
  display: inline !important;
}

/* Hide fake select dropdown chevron on all CMS forms */
.mform .select-dropdown {
  display: none !important;
}

/* Partners + Partner categories actions: grey icons (eye / pencil / trash) */
.local-cms-partners__actions .local-cms-partners__action .icon,
.local-cms-partners__actions .local-cms-partners__action img,
.local-cms-partnercats__actions .local-cms-partnercats__action .icon,
.local-cms-partnercats__actions .local-cms-partnercats__action img {
  filter: grayscale(1) brightness(0.7) !important;
  opacity: 0.85 !important;
}

/* Core {{#pix}} outputs img.icon — ensure visible box (Mustache requires "i/edit, core") */
.local-cms-partners__actions .local-cms-partners__action img.icon,
.local-cms-partnercats__actions .local-cms-partnercats__action img.icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.local-cms-partners__actions .local-cms-partners__action:hover .icon,
.local-cms-partners__actions .local-cms-partners__action:hover img,
.local-cms-partnercats__actions .local-cms-partnercats__action:hover .icon,
.local-cms-partnercats__actions .local-cms-partnercats__action:hover img {
  filter: grayscale(0) brightness(1) !important;
  opacity: 1 !important;
}

/* Edit: core pencil (i/edit), same #343a40 as Q&A admin — not t/edit (cog) or theme mask */
.local-cms-partners__actions .local-cms-partners__action--edit,
.local-cms-partners__actions .local-cms-partners__action--edit:hover,
.local-cms-partners__actions .local-cms-partners__action--edit:focus,
.local-cms-partnercats__actions .local-cms-partnercats__action--edit,
.local-cms-partnercats__actions .local-cms-partnercats__action--edit:hover,
.local-cms-partnercats__actions .local-cms-partnercats__action--edit:focus {
  color: #343a40;
}

.local-cms-partners__actions .local-cms-partners__action--edit .icon,
.local-cms-partners__actions .local-cms-partners__action--edit img,
.local-cms-partnercats__actions .local-cms-partnercats__action--edit .icon,
.local-cms-partnercats__actions .local-cms-partnercats__action--edit img {
  filter: none !important;
  opacity: 0.85 !important;
}

.local-cms-partners__actions .local-cms-partners__action--edit:hover .icon,
.local-cms-partners__actions .local-cms-partners__action--edit:hover img,
.local-cms-partnercats__actions .local-cms-partnercats__action--edit:hover .icon,
.local-cms-partnercats__actions .local-cms-partnercats__action--edit:hover img {
  filter: none !important;
  opacity: 1 !important;
}

/* Delete: core/theme often marks trash as danger red — keep same gray as edit (#343a40) */
.local-cms-partners__actions .local-cms-partners__action--delete,
.local-cms-partners__actions .local-cms-partners__action--delete:hover,
.local-cms-partners__actions .local-cms-partners__action--delete:focus,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete:hover,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete:focus {
  color: #343a40 !important;
}

.local-cms-partners__actions .local-cms-partners__action--delete .icon,
.local-cms-partners__actions .local-cms-partners__action--delete i.icon,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete .icon,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete i.icon {
  color: #343a40 !important;
}

.local-cms-partners__actions .local-cms-partners__action--delete .icon::before,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete .icon::before,
.local-cms-partners__actions .local-cms-partners__action--delete .fa-trash::before,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete .fa-trash::before {
  color: #343a40 !important;
}

.local-cms-partners__actions .local-cms-partners__action--delete img.icon,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete img.icon {
  filter: grayscale(1) brightness(0.5) contrast(1.05) !important;
  opacity: 1 !important;
}

/* Do not let row-hover rule above restore full-colour (red) on trash */
.local-cms-partners__actions .local-cms-partners__action--delete:hover .icon,
.local-cms-partners__actions .local-cms-partners__action--delete:hover i.icon,
.local-cms-partners__actions .local-cms-partners__action--delete:hover img,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete:hover .icon,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete:hover i.icon,
.local-cms-partnercats__actions .local-cms-partnercats__action--delete:hover img {
  color: #343a40 !important;
  filter: grayscale(1) brightness(0.5) contrast(1.05) !important;
  opacity: 1 !important;
}

/* Survey management screen */
body.path-local-cms-manage_survey .local-cms-survey-admin {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  row-gap: 1.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px 24px;
  box-sizing: border-box;
  color: #343a40;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__hero {
  margin: 0;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

/* Filter row + Create survey cùng hàng (trái / phải) */
body.path-local-cms-manage_survey .local-cms-survey-admin__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  column-gap: 1rem;
  row-gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__filters {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background: transparent;
  border: 0;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__filter-field {
  min-width: 0;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__filter-field--status {
  flex: 0 1 11rem;
  max-width: 11rem;
  min-width: 9rem;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__filter-field--search {
  flex: 1 1 16rem;
  max-width: 260px;
  min-width: 12rem;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__filter-field--submit {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__add {
  white-space: nowrap;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__tablewrap {
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__paging {
  margin: 0;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__table {
  margin-bottom: 0;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__table thead th {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__status.is-published {
  background: #ecfdf3;
  color: #027a48;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__status.is-published::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #12b76a;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__status.is-draft {
  background: #f3f4f6;
  color: #6b7280;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__status.is-draft::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #9ca3af;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__actions {
  /* display: inline-flex; */
  align-items: center;
  gap: 8px;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__actions .icon,
body.path-local-cms-manage_survey .local-cms-survey-admin__actions img {
  filter: grayscale(1) brightness(0.7) !important;
  opacity: 0.9 !important;
}

body.path-local-cms-manage_survey .local-cms-survey-admin__action--view:not(a) {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  cursor: default;
}

/* Quick survey hub: two cards under hero + breadcrumb */
.cms-category-page .cms-survey-hub {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hub trong khung trắng (cms-category-primary-body): full width cột, breadcrumb không lệch nền */
.cms-category-page .cms-survey-hub-page-body .cms-survey-hub {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Trang Cộng đồng Q&A khi ẩn diễn đàn chỉ còn hub: cùng khung với cms.scss (trước khi chạy grunt theme). */
#page-local-cms-community_topic .cms-category-page .cms-category-primary-host .cms-page-content.cms-category-primary-body.cms-survey-hub-page-body {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px 24px 48px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  #page-local-cms-community_topic .cms-category-page .cms-category-primary-host .cms-page-content.cms-category-primary-body.cms-survey-hub-page-body {
    padding: 48px 64px 64px;
  }
}

.cms-category-page .cms-survey-hub__row {
  margin-top: 0.5rem;
}

.cms-category-page .cms-survey-hub__card {
  background: #f7fefb;
  border: 1px solid #e6f9f2;
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  min-height: 220px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.cms-category-page .cms-survey-hub__card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.cms-category-page .cms-survey-hub__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.cms-category-page .cms-survey-hub__desc {
  margin: 0 0 1rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cms-category-page .cms-survey-hub__cta {
  display: inline-block;
  margin-top: auto;
  font-weight: 700;
  color: #c62828;
  text-decoration: none;
  font-size: 0.95rem;
}

.cms-category-page .cms-survey-hub__cta:hover {
  color: #b71c1c;
  text-decoration: underline;
}

.cms-category-page .cms-survey-hub__cta--muted {
  color: #9ca3af;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.cms-category-page .cms-survey-hub__cta--muted:hover {
  text-decoration: none;
  color: #9ca3af;
}

/* Survey editor screen */
body.path-local-cms-edit_survey .local-cms-survey-editor {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px 24px;
  box-sizing: border-box;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__panel {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

body.path-local-cms-edit_survey .local-cms-survey-editor__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #e5e7eb;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__tabs {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0 28px;
  border-bottom: 1px solid #e5e7eb;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__tabs li {
  margin: 0;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  padding: 18px 0 16px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__tab.active {
  color: #ef4444;
  border-bottom-color: #ef4444;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__panes {
  padding: 24px 28px 10px;
  /* Room to scroll past sticky action bar so last fields are not hidden */
  padding-bottom: 5.5rem;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__pane {
  display: none;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__pane.active {
  display: block;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__field {
  margin-bottom: 18px;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__control {
  width: 100%;
  min-height: 46px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  border-radius: 10px;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__control::placeholder {
  color: #9ca3af;
}

/* Survey type select: first empty option reads like other placeholders (no ::placeholder on select). */
body.path-local-cms-edit_survey #local_cms_survey_type.local-cms-survey-editor__control:invalid {
  color: #9ca3af;
}
body.path-local-cms-edit_survey #local_cms_survey_type.local-cms-survey-editor__control:valid {
  color: #111827;
}
body.path-local-cms-edit_survey #local_cms_survey_type.local-cms-survey-editor__control option {
  color: #111827;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__control--textarea {
  min-height: 110px;
  resize: vertical;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__empty {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__muted {
  color: #6b7280;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__preview {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__preview-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.1rem;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__preview-meta {
  margin: 0 0 10px;
  color: #374151;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__preview-desc {
  color: #111827;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__footer {
  position: sticky;
  bottom: 0;
  z-index: 30;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  margin-top: 12px;
  border-top: 1px solid #e5e7eb;
  background: #f3f4f6;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}

body.path-local-cms-edit_survey .local-cms-survey-editor__footer-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
  max-width: 100%;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__footer-actions .btn {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  white-space: nowrap;
}

/* view_survey.php: same tab/pane chrome as edit (body may not include path-local-cms-edit_survey on all stacks) */
body.path-local-cms-view_survey .local-cms-survey-editor__form {
  margin: 0;
}

body.path-local-cms-view_survey .local-cms-survey-editor__panes {
  padding: 24px 28px 10px;
}

body.path-local-cms-view_survey .local-cms-survey-editor__pane {
  display: none;
}

body.path-local-cms-view_survey .local-cms-survey-editor__pane.active {
  display: block;
}

body.path-local-cms-view_survey .local-cms-survey-editor__preview {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}

body.path-local-cms-view_survey .local-cms-survey-editor__footer {
  position: static;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 28px 24px;
  border-top: 1px solid #e5e7eb;
}

body.path-local-cms-view_survey .local-cms-survey-editor__field {
  margin-bottom: 18px;
}

body.path-local-cms-view_survey .local-cms-survey-editor__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

body.path-local-cms-view_survey .local-cms-survey-editor__control {
  width: 100%;
  min-height: 46px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
}

body.path-local-cms-view_survey .local-cms-survey-editor__pane[data-pane="preview"].active .local-cms-survey-editor__take-preview {
  min-height: 120px;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__footer .btn {
  min-width: 7rem;
  border-radius: 10px;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__btn-draft {
  background-color: #ffffff;
  color: #111827;
  border-color: #9ca3af;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__btn-draft:hover {
  background-color: #f9fafb;
  color: #111827;
  border-color: #6b7280;
}

/* SME group: questions are bordered blocks, not nested .card inside .card-body (readability on view + edit). */
body.path-local-cms-edit_survey .local-cms-survey-group-questions .local-cms-survey-q--ingroup,
body.path-local-cms-view_survey .local-cms-survey-group-questions .local-cms-survey-q--ingroup {
  border-color: #e5e7eb;
}

/* SME group: “+ Thêm câu hỏi trong nhóm” lives inside [data-group-questions-host] */
body.path-local-cms-edit_survey .local-cms-survey-group-questions[data-group-questions-host] {
  display: block;
}

/* Full-width red “+ Thêm câu hỏi trong nhóm” (footer: direct child of [data-group-questions-host]) */
body.path-local-cms-edit_survey [data-group-questions-host] > .local-cms-survey-group-addq-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  clear: both;
  justify-content: flex-start;
  color: #dc2626;
  font-weight: 600;
}

body.path-local-cms-edit_survey [data-group-questions-host] > .local-cms-survey-group-addq-footer:hover {
  color: #991b1b;
}

body.path-local-cms-edit_survey [data-group-questions-host] > .local-cms-survey-group-addq-footer .local-cms-survey-add-question-btn__plus {
  border-color: #fecaca;
  color: #dc2626;
}

body.path-local-cms-edit_survey [data-group-questions-host] > .local-cms-survey-group-addq-footer:hover .local-cms-survey-add-question-btn__plus {
  border-color: #f87171;
  color: #991b1b;
  background: #fff5f5;
}

/* Flat editor (hộ nuôi tôm / SME flat): host chỉ cao theo thẻ câu hỏi; nút + nằm sát ngay dưới danh sách, căn trái */
body.path-local-cms-edit_survey .local-cms-survey-editor__flat-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__flat-stack > #local_cms_survey_questions_host {
  flex: 0 0 auto;
  width: 100%;
  align-self: stretch;
  text-align: left;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__flat-stack > .local-cms-survey-flat-addq-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  align-self: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  padding: 0.75rem 0 0.35rem;
  border: none;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fb171c;
  text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 4px #fff, 0 1px 2px rgba(0, 0, 0, 0.12);
}

body.path-local-cms-edit_survey .local-cms-survey-editor__flat-stack > .local-cms-survey-flat-addq-footer:hover {
  color: #b91c1c;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__flat-stack > .local-cms-survey-flat-addq-footer .local-cms-survey-add-question-btn__text {
  color: inherit;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__flat-stack > .local-cms-survey-flat-addq-footer .local-cms-survey-add-question-btn__plus {
  border-color: #fecaca;
  color: #fb171c;
}

body.path-local-cms-edit_survey .local-cms-survey-editor__flat-stack > .local-cms-survey-flat-addq-footer:hover .local-cms-survey-add-question-btn__plus {
  border-color: #f87171;
  color: #b91c1c;
  background: #fff5f5;
}

/* SME: “+ Thêm nhóm” — compact, centered, red text + icon */
body.path-local-cms-edit_survey .local-cms-survey-add-group-wrap {
  display: flex;
  justify-content: center;
}

body.path-local-cms-edit_survey .local-cms-survey-add-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.15rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #dc2626;
  border-color: #fecaca;
  background-color: #fff;
}

body.path-local-cms-edit_survey .local-cms-survey-add-group-btn:hover {
  color: #991b1b;
  border-color: #f87171;
  background-color: #fff5f5;
}

body.path-local-cms-edit_survey .local-cms-survey-add-group-btn .local-cms-survey-add-question-btn__text {
  color: inherit;
}

body.path-local-cms-edit_survey .local-cms-survey-add-group-btn .local-cms-survey-add-question-btn__plus {
  width: 22px;
  height: 22px;
  font-size: 1rem;
  border-color: #fecaca;
  color: #dc2626;
}

body.path-local-cms-edit_survey .local-cms-survey-add-group-btn:hover .local-cms-survey-add-question-btn__plus {
  border-color: #f87171;
  color: #991b1b;
  background: #fff5f5;
}

body.path-local-cms-edit_survey .local-cms-survey-icon-x {
  flex-shrink: 0;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.path-local-cms-edit_survey .local-cms-survey-icon-x:hover {
  color: #b91c1c;
  background: #fef2f2;
}

body.path-local-cms-edit_survey .local-cms-survey-icon-plus {
  flex-shrink: 0;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.path-local-cms-edit_survey .local-cms-survey-icon-plus:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff5f5;
}

body.path-local-cms-edit_survey .local-cms-survey-opt-row .local-cms-survey-icon-x {
  align-self: center;
}

body.path-local-cms-edit_survey .local-cms-survey-add-question-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  border: none;
  background: transparent;
  cursor: pointer;
}

body.path-local-cms-edit_survey .local-cms-survey-add-question-btn:hover {
  color: #b91c1c;
}

body.path-local-cms-edit_survey .local-cms-survey-add-question-btn__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1.1rem;
  line-height: 1;
  background: #fff;
}

body.path-local-cms-edit_survey .local-cms-survey-add-question-btn:hover .local-cms-survey-add-question-btn__plus {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff5f5;
}

body.path-local-cms-view_survey .local-cms-survey-view {
  max-width: 48rem;
  margin: 0 auto;
}

body.path-local-cms-view_survey .local-cms-survey-view__back {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

body.path-local-cms-view_survey .local-cms-survey-view__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.3;
}

body.path-local-cms-view_survey .local-cms-survey-view__meta {
  border-radius: 12px;
}

body.path-local-cms-survey_take .local-cms-survey-take__tier {
  margin-top: 0.75rem;
  line-height: 1.5;
}

body.path-local-cms-survey_take .local-cms-survey-take__result {
  border-radius: 12px;
}

/* Quick survey take layout (#survey-form-wrap + .quick-survey-*); editor preview mirrors same markup under .local-cms-survey-editor__take-preview */
body.path-local-cms-survey_take #survey-form-wrap.local-cms-survey-take,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview.local-cms-survey-take,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview.local-cms-survey-take {
  margin-left: auto;
  margin-right: auto;
}

/* Khung nội dung làm khảo sát (breadcrumb theme ở ngoài) */
body.path-local-cms-survey_take .quick-survey-take-host,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-host,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-host {
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.75rem 2rem;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  body.path-local-cms-survey_take .quick-survey-take-host,
  body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-host,
  body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-host {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

body.path-local-cms-survey_take .quick-survey-take-card,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1.25rem 1.1rem 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.path-local-cms-survey_take .quick-survey-take-card,
  body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card,
  body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card {
    padding: 1.75rem 1.75rem 2rem;
  }
}

/* Kết quả SME đã có .quick-survey-sheet — tránh hai lớp viền trong khung */
body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-sheet,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-sheet,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-sheet {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-hero-compact,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-hero-compact,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-hero-compact {
  margin-bottom: 1.35rem;
  padding-left: 0;
  padding-right: 0;
}

body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-form,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-form,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-form {
  margin: 0;
}

/* Tách câu hỏi rõ hơn trong khung */
body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-q,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-q,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-q {
  /* margin: 0 0 0; */

  padding: 0 0 1.35rem;
  border-bottom: 1px solid #f0f0f0;
}

body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-q:last-of-type,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-q:last-of-type,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-q:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-q-label,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-q-label,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-q-label {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-options,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-options,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-options {
  gap: 0.6rem;
}

body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-option,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-option,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-option {
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-q-textwrap .quick-survey-q-text,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-q-textwrap .quick-survey-q-text,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-q-textwrap .quick-survey-q-text {
  max-width: 100%;
}

body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-submit-wrap,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-submit-wrap,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-submit-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Nút không full-width trong khung — căn trái cùng lề với block câu hỏi */
body.path-local-cms-survey_take .quick-survey-take-card .quick-survey-submit,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-submit,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-take-card .quick-survey-submit {
  width: auto;
  min-width: 12rem;
}

body.path-local-cms-survey_take .quick-survey-hero-compact,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-hero-compact,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-hero-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

body.path-local-cms-survey_take .quick-survey-title,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-title,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-title {
  /* Theme hay đặt h1 { display:flex } — text-align không đủ; ép block + full width */
  display: block !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center !important;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: #111827;
}

body.path-local-cms-survey_take .quick-survey-subtitle,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-subtitle,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 auto 1rem;
  max-width: 36rem;
}

body.path-local-cms-survey_take .quick-survey-subtitle p:last-child,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-subtitle p:last-child,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-subtitle p:last-child {
  margin-bottom: 0;
}

body.path-local-cms-survey_take .quick-survey-back-btn,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-back-btn,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-back-btn {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  color: #b91c1c;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

body.path-local-cms-survey_take .quick-survey-back-btn:hover,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-back-btn:hover,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-back-btn:hover {
  color: #991b1b;
  background: #fef2f2;
  text-decoration: none;
}

body.path-local-cms-survey_take .quick-survey-sheet,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-sheet,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-sheet {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.path-local-cms-survey_take .quick-survey-form,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-form,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-form {
  margin: 0;
}

body.path-local-cms-survey_take .local-cms-survey-take-sme-guide,
body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide {
  margin: 1.25rem 1.1rem 0;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #0f172a;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.path-local-cms-survey_take .local-cms-survey-take-sme-guide,
  body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide,
  body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide,
  body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide,
  body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide,
  body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide {
    margin: 1.5rem 60px 0;
  }
}

body.path-local-cms-survey_take .local-cms-survey-take-sme-guide__title,
body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide__title,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide__title,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__title,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide__title,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__title {
  font-weight: 700;
  color: #1e3a8a;
}

body.path-local-cms-survey_take .local-cms-survey-take-sme-guide__intro,
body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide__intro,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide__intro,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__intro,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide__intro,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__intro {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1e293b;
}

body.path-local-cms-survey_take .local-cms-survey-take-sme-guide__list,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide__list,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #1e293b;
}

body.path-local-cms-survey_take .local-cms-survey-take-sme-guide__list li + li,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide__list li + li,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-sme-guide__list li + li {
  margin-top: 0.35rem;
}

body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide__steps,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__steps,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__steps {
  margin: 0;
  padding-left: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #1e293b;
}

body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide__steps > .local-cms-survey-take-shrimp-guide__step + .local-cms-survey-take-shrimp-guide__step,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__steps > .local-cms-survey-take-shrimp-guide__step + .local-cms-survey-take-shrimp-guide__step,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__steps > .local-cms-survey-take-shrimp-guide__step + .local-cms-survey-take-shrimp-guide__step {
  margin-top: 0.65rem;
}

body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide__step3-lead,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__step3-lead,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__step3-lead {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide__step-num,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__step-num,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__step-num {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide__optlist,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__optlist,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__optlist {
  margin: 0.35rem 0 0;
  padding-left: 0.25rem;
  list-style: none;
}

body.path-local-cms-survey_take .local-cms-survey-take-shrimp-guide__optlist li + li,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__optlist li + li,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .local-cms-survey-take-shrimp-guide__optlist li + li {
  margin-top: 0.35rem;
}

body.path-local-cms-survey_take .quick-survey-questions,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-questions,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-questions {
  margin: 0;
  padding: 60px;
}
body.path-local-cms-survey_take .quick-survey-q,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-q,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-q {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  min-width: 0;
}

body.path-local-cms-survey_take .quick-survey-group-heading,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-group-heading,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-group-heading {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

body.path-local-cms-survey_take .quick-survey-group-section:first-child .quick-survey-group-heading,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-group-section:first-child .quick-survey-group-heading,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-group-section:first-child .quick-survey-group-heading {
  margin-top: 0;
}

body.path-local-cms-survey_take .quick-survey-group-questions,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-group-questions,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-group-questions {
  padding-left: 1.5rem;
}

body.path-local-cms-survey_take .quick-survey-q-label,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-q-label,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-q-label {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

body.path-local-cms-survey_take .quick-survey-multihint,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-multihint,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-multihint {
  margin: -0.25rem 0 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

body.path-local-cms-survey_take .quick-survey-q-note,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-q-note,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-q-note {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

body.path-local-cms-survey_take .quick-survey-options,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-options,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.path-local-cms-survey_take .quick-survey-option,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-option,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
}

body.path-local-cms-survey_take .quick-survey-option:hover,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-option:hover,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-option:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
}

body.path-local-cms-survey_take .quick-survey-option-input,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-option-input,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-option-input {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: #b91c1c;
}

body.path-local-cms-survey_take .quick-survey-option-text,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-option-text,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-option-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  color: #111827;
}

body.path-local-cms-survey_take .quick-survey-submit-wrap,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-submit-wrap,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-submit-wrap {
  margin-top: 1.75rem;
}

body.path-local-cms-survey_take .quick-survey-submit,
body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-submit,
body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-submit {
  width: 100%;
}

@media (min-width: 576px) {
  body.path-local-cms-survey_take .quick-survey-submit,
  body.path-local-cms-edit_survey .local-cms-survey-editor__take-preview .quick-survey-submit,
  body.path-local-cms-view_survey .local-cms-survey-editor__take-preview .quick-survey-submit {
    width: auto;
    min-width: 12rem;
  }
}

/* Partner directory admin detail (partner_view.php) */
.local-cms-partner-view__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.local-cms-partner-view__logo {
  width: 120px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  border-radius: 0.25rem;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.local-cms-partner-view__head .local-cms-pr-detail__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

/* Hover lift-up for recommend-slider course cards (all contexts outside landing-page / cms-course-layout-page scope) */
.card-deck.recommend-slider .dashboard-card {
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-deck.recommend-slider .dashboard-card:hover,
.card-deck.recommend-slider .dashboard-card:focus-within {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 6px 14px rgba(15, 23, 42, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  .card-deck.recommend-slider .dashboard-card {
    transition: none;
  }
  .card-deck.recommend-slider .dashboard-card:hover,
  .card-deck.recommend-slider .dashboard-card:focus-within {
    transform: none;
  }
}
