/* DataTables checklist + glossary pages (web app, LLM, AWS, security terminologies) */

body.sc-page-checklist .sc-elementor-content,
body.sc-page-glossary .sc-elementor-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px 80px;
}

/* Spreadsheet filter + table widget (overrides inline sd-fa-wrap styles) */
html body.sc-page-checklist .sd-fa-wrap {
  font-family: "Nunito", sans-serif !important;
  color: var(--text, #c6ccd8) !important;
  background: var(--panel, #15171f) !important;
  border: 1px solid var(--border, #272b36) !important;
  border-radius: 18px !important;
  padding: 24px 28px 32px !important;
  margin: 0 auto 2rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

html body.sc-page-checklist .sd-fa-wrap .sd-toolbar {
  margin-bottom: 22px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid var(--border, #272b36) !important;
}

html body.sc-page-checklist .sd-fa-wrap .tags-input {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

html body.sc-page-checklist .sd-fa-wrap .tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  border-radius: 99px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: "Poppins", sans-serif !important;
  cursor: pointer !important;
  border: 1px solid var(--border, #272b36) !important;
  background: var(--bg-2, #101219) !important;
  color: var(--text, #c6ccd8) !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

html body.sc-page-checklist .sd-fa-wrap .tag:hover {
  background: var(--panel-2, #1b1e28) !important;
  border-color: var(--accent, #6d7bff) !important;
  color: var(--heading, #fff) !important;
  transform: translateY(-1px) !important;
}

html body.sc-page-checklist .sd-fa-wrap .tag.tag--active {
  background: var(--accent, #6d7bff) !important;
  border-color: var(--accent, #6d7bff) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(109, 123, 255, 0.35) !important;
}

html body.sc-page-checklist .sd-fa-wrap .sd-clear-filter {
  padding: 8px 16px !important;
  border-radius: 99px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: "Poppins", sans-serif !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 90, 95, 0.45) !important;
  background: rgba(255, 90, 95, 0.1) !important;
  color: #ffb4b8 !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}

html body.sc-page-checklist .sd-fa-wrap .sd-clear-filter:hover {
  background: rgba(255, 90, 95, 0.18) !important;
  border-color: rgba(255, 90, 95, 0.65) !important;
  color: #ffd0d2 !important;
  transform: translateY(-1px) !important;
}

/* Controls row: length + search */
html body.sc-page-checklist .sd-fa-wrap .sd-dt-controls--custom {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px 24px !important;
  margin-bottom: 18px !important;
}

html body.sc-page-checklist .sd-fa-wrap label.sd-dt-line,
html body.sc-page-checklist .sd-fa-wrap label.sd-dt-label {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  color: var(--muted, #78838f) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: "Poppins", sans-serif !important;
}

html body.sc-page-checklist .sd-fa-wrap label.sd-dt-line .sd-dt-suffix {
  color: var(--muted, #78838f) !important;
}

html body.sc-page-checklist .sd-fa-wrap select.sd-dt-select,
html body.sc-page-checklist .sd-fa-wrap input.sd-dt-input {
  background: var(--bg-2, #101219) !important;
  border: 1px solid var(--border, #272b36) !important;
  border-radius: 10px !important;
  color: var(--heading, #fff) !important;
  font-family: "Nunito", sans-serif !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  min-height: 40px !important;
}

html body.sc-page-checklist .sd-fa-wrap input.sd-dt-input {
  min-width: 220px !important;
  width: min(320px, 100%) !important;
}

html body.sc-page-checklist .sd-fa-wrap select.sd-dt-select:focus,
html body.sc-page-checklist .sd-fa-wrap input.sd-dt-input:focus {
  outline: none !important;
  border-color: var(--accent, #6d7bff) !important;
  box-shadow: 0 0 0 2px rgba(109, 123, 255, 0.22) !important;
}

html body.sc-page-checklist .sd-fa-wrap select.sd-dt-select option {
  background: var(--panel, #15171f) !important;
  color: var(--text, #c6ccd8) !important;
}

html body.sc-page-checklist .sd-fa-wrap input.sd-dt-input::placeholder {
  color: var(--muted, #78838f) !important;
  opacity: 1 !important;
}

/* Table */
html body.sc-page-checklist .sd-fa-wrap .sd-table-scroll {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid var(--border, #272b36) !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable {
  width: 100% !important;
  border-collapse: collapse !important;
  border: none !important;
  border-radius: 0 !important;
  background: var(--panel, #15171f) !important;
  margin: 0 !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable thead th {
  background: var(--panel-2, #1b1e28) !important;
  color: var(--heading, #fff) !important;
  border-bottom: 1px solid var(--border, #272b36) !important;
  border-right: 1px solid var(--border, #272b36) !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 14px 16px !important;
  vertical-align: middle !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable thead th:last-child {
  border-right: none !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable tbody td {
  background: var(--panel, #15171f) !important;
  color: var(--text, #c6ccd8) !important;
  border-bottom: 1px solid var(--border, #272b36) !important;
  border-right: 1px solid rgba(39, 43, 54, 0.65) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  padding: 14px 16px !important;
  vertical-align: top !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable tbody td:last-child {
  border-right: none !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable tbody tr.even td {
  background: var(--bg-2, #101219) !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable tbody tr:hover td {
  background: rgba(109, 123, 255, 0.06) !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable thead .sorting,
html body.sc-page-checklist .sd-fa-wrap table.dataTable thead .sorting_asc,
html body.sc-page-checklist .sd-fa-wrap table.dataTable thead .sorting_desc {
  background-image: none !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable thead .sorting::after {
  content: " \21C5" !important;
  opacity: 0.45 !important;
  font-size: 11px !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable thead .sorting_asc::after {
  content: " \2191" !important;
  opacity: 0.85 !important;
  color: var(--accent-2, #a855f7) !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable thead .sorting_desc::after {
  content: " \2193" !important;
  opacity: 0.85 !important;
  color: var(--accent-2, #a855f7) !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable tbody td a {
  color: var(--accent-2, #a855f7) !important;
}

html body.sc-page-checklist .sd-fa-wrap table.dataTable tbody td a:hover {
  color: var(--accent-3, #c084fc) !important;
}

/* Footer: info + pagination */
html body.sc-page-checklist .sd-fa-wrap .dataTables_wrapper {
  color: var(--text, #c6ccd8) !important;
  font-family: "Nunito", sans-serif !important;
  background: transparent !important;
  margin-top: 16px !important;
}

html body.sc-page-checklist .sd-fa-wrap .dataTables_wrapper .dataTables_info {
  color: var(--muted, #78838f) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  padding-top: 14px !important;
}

html body.sc-page-checklist .sd-fa-wrap .dataTables_wrapper .dataTables_paginate {
  padding-top: 10px !important;
}

html body.sc-page-checklist .sd-fa-wrap .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--bg-2, #101219) !important;
  border: 1px solid var(--border, #272b36) !important;
  border-radius: 8px !important;
  color: var(--text, #c6ccd8) !important;
  margin: 0 3px !important;
  padding: 7px 12px !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body.sc-page-checklist .sd-fa-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html body.sc-page-checklist .sd-fa-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--accent, #6d7bff) !important;
  border-color: var(--accent, #6d7bff) !important;
  color: #fff !important;
}

html body.sc-page-checklist .sd-fa-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
  border-color: var(--accent, #6d7bff) !important;
  color: var(--heading, #fff) !important;
  background: var(--panel-2, #1b1e28) !important;
}

html body.sc-page-checklist .sd-fa-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.45 !important;
}

html body.sc-page-checklist .sd-fa-wrap .dataTables_processing {
  background: rgba(11, 12, 16, 0.92) !important;
  border: 1px solid var(--border, #272b36) !important;
  border-radius: 12px !important;
  color: var(--text, #c6ccd8) !important;
}

html body.sc-page-checklist .sd-fa-wrap .dataTables_processing::before {
  border-top-color: var(--accent, #6d7bff) !important;
}

/* Generic DataTables fallback (non sd-fa pages) */
body.sc-page-checklist .dataTables_wrapper {
  color: var(--text, #c6ccd8);
  font-family: "Nunito", sans-serif;
  margin-top: 16px;
}

body.sc-page-checklist .dataTables_wrapper .dataTables_length,
body.sc-page-checklist .dataTables_wrapper .dataTables_filter,
body.sc-page-checklist .dataTables_wrapper .dataTables_info,
body.sc-page-checklist .dataTables_wrapper .dataTables_paginate {
  color: var(--muted, #78838f);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
}

body.sc-page-checklist .dataTables_wrapper .dataTables_filter input,
body.sc-page-checklist .dataTables_wrapper .dataTables_length select {
  background: var(--panel, #15171f) !important;
  border: 1px solid var(--border, #272b36) !important;
  border-radius: 10px !important;
  color: var(--heading, #fff) !important;
  padding: 8px 12px !important;
  margin: 0 8px;
}

body.sc-page-checklist table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
  background: var(--panel, #15171f);
  border: 1px solid var(--border, #272b36);
  border-radius: 12px;
  overflow: hidden;
}

body.sc-page-checklist table.dataTable thead th {
  background: var(--panel-2, #1b1e28) !important;
  color: var(--heading, #fff) !important;
  border-bottom: 1px solid var(--border, #272b36) !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 14px;
}

body.sc-page-checklist table.dataTable tbody td {
  background: var(--panel, #15171f) !important;
  color: var(--text, #c6ccd8) !important;
  border-bottom: 1px solid var(--border, #272b36) !important;
  font-size: 14px;
  padding: 11px 14px;
  vertical-align: top;
}

body.sc-page-checklist table.dataTable tbody tr:hover td {
  background: var(--bg-2, #101219) !important;
}

body.sc-page-checklist .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--panel, #15171f) !important;
  border: 1px solid var(--border, #272b36) !important;
  border-radius: 8px !important;
  color: var(--text, #c6ccd8) !important;
  margin: 0 3px;
  padding: 6px 12px !important;
}

body.sc-page-checklist .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.sc-page-checklist .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--accent, #6d7bff) !important;
  border-color: var(--accent, #6d7bff) !important;
  color: #fff !important;
}

body.sc-page-checklist .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
  border-color: var(--accent, #6d7bff) !important;
  color: var(--heading, #fff) !important;
}

/* Accordion / tabs (normal view) */
body.sc-page-checklist .sc-elementor-content h2.elementor-heading-title,
body.sc-page-checklist .sc-elementor-content h3.elementor-heading-title {
  color: var(--heading, #fff);
  font-family: "Poppins", sans-serif;
}

body.sc-page-checklist .sc-elementor-content .elementor-widget-text-editor,
body.sc-page-checklist .sc-elementor-content .elementor-widget-text-editor li {
  color: var(--text, #c6ccd8);
}

body.sc-page-checklist .sc-elementor-content .elementor-tab-title {
  background: var(--panel, #15171f);
  border-color: var(--border, #272b36);
  color: var(--heading, #fff);
}

body.sc-page-checklist .sc-elementor-content .elementor-tab-content {
  background: var(--bg-2, #101219);
  border-color: var(--border, #272b36);
  color: var(--text, #c6ccd8);
}

@media (max-width: 760px) {
  html body.sc-page-checklist .sd-fa-wrap {
    padding: 18px 16px 24px !important;
  }

  html body.sc-page-checklist .sd-fa-wrap .sd-dt-controls--custom {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html body.sc-page-checklist .sd-fa-wrap input.sd-dt-input {
    width: 100% !important;
    min-width: 0 !important;
  }
}
